def tiff_header(read_buffer):
<EOL>data = struct.unpack('<STR_LIT>', read_buffer[<NUM_LIT:0>:<NUM_LIT:2>])<EOL>if data[<NUM_LIT:0>] == <NUM_LIT> and data[<NUM_LIT:1>] == <NUM_LIT>:<EOL><INDENT>endian = '<STR_LIT:<>'<EOL><DEDENT>elif data[<NUM_LIT:0>] == <NUM_LIT> and data[<NUM_LIT:1>] == <NUM_LIT>:<EOL><INDENT>endian = '<STR_LIT:>>'<EOL><DEDENT>else:<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>msg = msg.format(byte_order=read_buffer[<NUM_LIT:6>:<NUM_LIT:8>],<EOL>little_endian=bytes([<NUM_LIT>, <NUM_LIT>]),<EOL>big_endian=bytes([<NUM_LIT>, <NUM_LIT>]))<EOL>raise IOError(msg)<EOL><DEDENT>_, offset = struct.unpack(endian + '<STR_LIT>', read_buffer[<NUM_LIT:2>:<NUM_LIT:8>])<EOL>exif = ExifImageIfd(endian, read_buffer, offset)<EOL>return exif.processed_ifd<EOL>
Interpret the uuid raw data as a tiff header.