Home
last modified time | relevance | path

Searched refs:compress (Results 1 – 25 of 75) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Darchive_util.py51 def make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0, argument
72 if compress is not None and compress not in compress_ext.keys():
78 if compress != 'compress':
79 archive_name += compress_ext.get(compress, '')
101 tar = tarfile.open(archive_name, 'w|%s' % tar_compression[compress])
108 if compress == 'compress':
111 compressed_name = archive_name + compress_ext[compress]
113 cmd = [compress, archive_name, compressed_name]
115 cmd = [compress, '-f', archive_name]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_zlib.py81 self.assertRaises(zlib.error, zlib.compress, 'ERROR', 10)
119 compressed = zlib.compress(data, 1)
135 x = zlib.compress(HAMLET_SCENE)
141 x = zlib.compress(data)
146 x = zlib.compress(HAMLET_SCENE)
155 compress = lambda s: zlib.compress(s, 1) function
156 self.check_big_compress_buffer(size, compress)
169 x1 = co.compress(data)
185 x1 = co.compress(HAMLET_SCENE)
198 bufs.append(co.compress(data[i:i+256]))
[all …]
Dtest_itertools.py312 self.assertEqual(list(compress(data='ABCDEF', selectors=[1,0,1,0,1,1])), list('ACEF'))
313 self.assertEqual(list(compress('ABCDEF', [1,0,1,0,1,1])), list('ACEF'))
314 self.assertEqual(list(compress('ABCDEF', [0,0,0,0,0,0])), list(''))
315 self.assertEqual(list(compress('ABCDEF', [1,1,1,1,1,1])), list('ABCDEF'))
316 self.assertEqual(list(compress('ABCDEF', [1,0,1])), list('AC'))
317 self.assertEqual(list(compress('ABC', [0,1,1,1,1,1])), list('BC'))
321 self.assertEqual(list(compress(data, selectors)), [1,3,5] * n)
322 self.assertRaises(TypeError, compress, None, range(6)) # 1st arg not iterable
323 self.assertRaises(TypeError, compress, range(6), None) # 2nd arg not iterable
324 self.assertRaises(TypeError, compress, range(6)) # too few args
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/
Dbz2_codec.py26 output = bz2.compress(input)
62 c = self.compressobj.compress(input)
65 return self.compressobj.compress(input)
Dzlib_codec.py25 output = zlib.compress(input)
61 c = self.compressobj.compress(input)
64 return self.compressobj.compress(input)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/
Dbz2_codec.py26 output = bz2.compress(input)
62 c = self.compressobj.compress(input)
65 return self.compressobj.compress(input)
Dzlib_codec.py25 output = zlib.compress(input)
61 c = self.compressobj.compress(input)
64 return self.compressobj.compress(input)
/device/linaro/hikey/installer/hikey960/
Dmkdtimg38 def compress(filename, input, output): function
55 output.write(compobj.compress(data))
65 compress(dtb_file, input, output)
108 if args.compress == True:
131 if args.compress != True:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/zlib/
Dzlibdemo.py21 comptext = zlib.compress(s, 1)
35 comptext = comptext+compressor.compress(s[i:i+chunk])
Dminigzip.py25 def compress (filename, input, output): function
44 output.write(compobj.compress(data))
125 compress(filename, input, output)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
Dtest_archive_util.py73 make_tarball(splitdrive(base_name)[1], '.', compress=None)
139 make_tarball(base_name, 'dist', compress=None)
150 make_tarball(base_name, 'dist', compress=None, dry_run=True)
167 make_tarball(base_name, 'dist', compress='compress')
181 make_tarball(base_name, 'dist', compress='compress',
249 archive_name = make_tarball(base_name, 'dist', compress=None,
/device/generic/goldfish/camera/fake-pipeline2/
DJpegCompressor.cpp102 res = compress(); in compressSynchronous()
122 res = compress(); in threadLoop()
131 status_t JpegCompressor::compress() { in compress() function in android::JpegCompressor
DJpegCompressor.h97 status_t compress();
/device/google/cuttlefish_common/guest/hals/camera/fake-pipeline2/
DJpegCompressor.cpp93 res = compress(); in compressSynchronous()
111 res = compress(); in threadLoop()
120 status_t JpegCompressor::compress() { in compress() function in android::JpegCompressor
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dshutil.py338 def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0, argument
358 if compress is not None and compress not in compress_ext.keys():
362 archive_name = base_name + '.tar' + compress_ext.get(compress, '')
391 tar = tarfile.open(archive_name, 'w|%s' % tar_compression[compress])
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dshutil.py334 def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0, argument
354 if compress is not None and compress not in compress_ext.keys():
358 archive_name = base_name + '.tar' + compress_ext.get(compress, '')
386 tar = tarfile.open(archive_name, 'w|%s' % tar_compression[compress])
Dgzip.py114 self.compress = zlib.compressobj(compresslevel,
227 self.fileobj.write( self.compress.compress(data) )
359 self.fileobj.write(self.compress.flush())
374 self.fileobj.write(self.compress.flush(zlib_mode))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/ccbench/
Dccbench.py112 def compress(s): function
113 zlib.decompress(zlib.compress(s, 5))
114 return compress, (arg, )
122 def compress(s): function
123 bz2.compress(s)
124 return compress, (arg, )
/device/generic/goldfish/camera/jpeg-stub/
DCompressor.h40 bool compress(const unsigned char* data,
DJpegStub.cpp45 if (compressor->compress(reinterpret_cast<const unsigned char*>(buffer), in JpegStub_compress()
/device/google/cuttlefish_common/guest/hals/camera/
DCompressor.h40 bool compress(const unsigned char* data,
DJpegStub.cpp45 if (compressor->compress(reinterpret_cast<const unsigned char*>(buffer), in JpegStub_compress()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dzipimport.c690 long compress, crc, data_size, file_size, file_offset, date, time; in read_directory() local
751 compress = PyMarshal_ReadShortFromFile(fp); in read_directory()
778 t = Py_BuildValue("siiiiiii", path, compress, data_size, in read_directory()
843 long compress, data_size, file_size, file_offset; in get_data() local
846 if (!PyArg_ParseTuple(toc_entry, "slllllll", &datapath, &compress, in get_data()
875 raw_data = PyString_FromStringAndSize((char *)NULL, compress == 0 ? in get_data()
894 if (compress != 0) { in get_data()
900 if (compress == 0) /* data is not compressed */ in get_data()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dzipimport.c690 long compress, crc, data_size, file_size, file_offset, date, time; in read_directory() local
758 compress = PyMarshal_ReadShortFromFile(fp); in read_directory()
786 t = Py_BuildValue("siiiiiii", path, compress, data_size, in read_directory()
856 long compress, data_size, file_size, file_offset; in get_data() local
859 if (!PyArg_ParseTuple(toc_entry, "slllllll", &datapath, &compress, in get_data()
898 raw_data = PyString_FromStringAndSize((char *)NULL, compress == 0 ? in get_data()
922 if (compress != 0) { in get_data()
928 if (compress == 0) /* data is not compressed */ in get_data()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
Dmake_vms.com71 $ CALL MAKE compress.OBJ "CC ''CCOPT' compress" -
72 compress.c zlib.h zconf.h
279 OBJS = adler32.obj, compress.obj, crc32.obj, gzio.obj, uncompr.obj, infback.obj\
307 compress.obj : compress.c zlib.h zconf.h
351 $ myrec = f$edit(rec - "\", "trim,compress")

123