Lines Matching refs:compress
138 for compress, name in COMPRESS_NAMES.items():
140 return compress
143 def compress_name(compress): argument
155 return COMPRESS_NAMES[compress]
223 def __init__(self, name, ftype, data, cbfs_offset, compress=COMPRESS_NONE): argument
230 self.compress = compress
242 if self.compress == COMPRESS_LZ4:
244 elif self.compress == COMPRESS_LZMA:
272 def raw(cls, name, data, cbfs_offset, compress): argument
286 return CbfsFile(name, TYPE_RAW, data, cbfs_offset, compress)
357 content = struct.pack(STAGE_FORMAT, self.compress,
363 if self.compress == COMPRESS_LZ4:
365 elif self.compress == COMPRESS_LZMA:
371 self.compress, self.memlen)
538 compress=COMPRESS_NONE): argument
552 cfile = CbfsFile.raw(name, data, cbfs_offset, compress)
734 compress = self._read_attr(fd, file_pos, attr, offset)
735 if compress is None:
748 (cfile.compress, cfile.entry, cfile.load, cfile.data_len,
753 cfile = CbfsFile.raw(name, data, cbfs_offset, compress)
790 compress = COMPRESS_NONE
792 return compress
805 atag, alen, compress, _decomp_size = struct.unpack(
812 return compress