Searched refs:ImageChunk (Results 1 – 1 of 1) sorted by relevance
597 class ImageChunk(object): class730 if chunk_hdr_sz != struct.calcsize(ImageChunk.FORMAT):747 header_bin = self._image.read(struct.calcsize(ImageChunk.FORMAT))748 (chunk_type, _, chunk_sz, total_sz) = struct.unpack(ImageChunk.FORMAT,750 data_sz = total_sz - struct.calcsize(ImageChunk.FORMAT)752 if chunk_type == ImageChunk.TYPE_RAW:757 self._chunks.append(ImageChunk(ImageChunk.TYPE_RAW,765 elif chunk_type == ImageChunk.TYPE_FILL:770 self._chunks.append(ImageChunk(ImageChunk.TYPE_FILL,776 elif chunk_type == ImageChunk.TYPE_DONT_CARE:[all …]