/external/zlib/src/contrib/blast/ |
H A D | blast.c | 52 unsigned next; /* index of next write location in out[] */ 54 unsigned char out[MAXWIN]; /* output buffer and sliding window */ member in struct:state 77 if (s->left == 0) longjmp(s->env, 1); /* out of input */ 161 if (s->left == 0) longjmp(s->env, 1); /* out of input */ 167 return -9; /* ran out of codes */ 343 to = s->out + s->next; 358 if (s->outfun(s->outhow, s->out, s->next)) return 1; 367 s->out[s->next++] = symbol; 369 if (s->outfun(s->outhow, s->out, s->next)) return 1; 404 if (err != 1 && s.next && s.outfun(s.outhow, s.out, [all...] |
/external/zlib/src/contrib/inflate86/ |
H A D | inffas86.c | 37 Decode literal, length, and distance codes and write out the resulting 54 LEN -- ran out of enough output space or enough available input 83 /* 32 16 */ unsigned char FAR *out; /* edi rdi local strm->next_out */ member in struct:inffast_ar 85 /* 48 24 */ unsigned char FAR *end; /* r10 while out < end */ 112 ar.out = strm->next_out; 113 ar.beg = ar.out - (start - strm->avail_out); 114 ar.end = ar.out + (strm->avail_out - PAD_AVAIL_OUT); 141 " movq 32(%%rsp), %%rdi\n" /* rdi = out */ 282 " subq 40(%%rsp), %%rax\n" /* nbytes = out - beg */ 289 " subq %%r15, %%rsi\n" /* from = out [all...] |
H A D | inffast.S | 173 #define out 60 /* unsigned char* */ define 243 * out = strm->next_out; 245 * beg = out - (start - strm->avail_out); 246 * end = out + (strm->avail_out - 257); 266 addl %ebx, %ecx /* avail_out += out */ 268 movl %ebx, out(%esp) 351 movl out(%esp), out_r 426 /* while (in < last && out < end) 429 jbe .L_break_loop /* if (out >= end) */ 435 /* regs: %esi = in, %ebp = hold, %bl = bits, %edi = out [all...] |
/external/zlib/src/contrib/masmx64/ |
H A D | inffas8664.c | 44 Decode literal, length, and distance codes and write out the resulting
61 LEN -- ran out of enough output space or enough available input
88 /* 32 16 */ unsigned char FAR *out; /* edi rdi local strm->next_out */
member in struct:inffast_ar 90 /* 48 24 */ unsigned char FAR *end; /* r10 while out < end */
129 ar.out = strm->next_out;
130 ar.beg = ar.out - (start - strm->avail_out);
131 ar.end = ar.out + (strm->avail_out - PAD_AVAIL_OUT);
174 strm->next_out = ar.out;
178 strm->avail_out = (unsigned)(ar.out < ar.end ?
179 PAD_AVAIL_OUT + (ar.end - ar.out) [all...] |
/external/zlib/src/contrib/puff/ |
H A D | puff.c | 75 * - Break out test code to separate file 100 unsigned char *out; /* output buffer */ member in struct:state 101 unsigned long outlen; /* available space at out */ 102 unsigned long outcnt; /* bytes written to out so far */ 134 longjmp(s->env, 1); /* out of input */ 181 /* copy len bytes from in to out */ 184 if (s->out != NIL) { 188 s->out[s->outcnt++] = s->in[s->incnt++]; 254 return -10; /* ran out of codes */ 299 longjmp(s->env, 1); /* out o [all...] |
/external/zlib/src/ |
H A D | crc32.c | 21 DYNAMIC_CRC_TABLE and MAKECRCH can be #defined to write out crc32.h. 81 out is a one). We start with the highest power (least significant bit) of 141 /* write out CRC tables to crc32.h */ 143 FILE *out; local 145 out = fopen("crc32.h", "w"); 146 if (out == NULL) return; 147 fprintf(out, "/* crc32.h -- tables for rapid CRC calculation\n"); 148 fprintf(out, " * Generated automatically by crc32.c\n */\n\n"); 149 fprintf(out, "local const z_crc_t FAR "); 150 fprintf(out, "crc_tabl [all...] |
H A D | gzguts.h | 174 unsigned char *out; /* output buffer (double-sized when reading) */ member in struct:__anon34354
|
H A D | inffast.c | 33 Decode literal, length, and distance codes and write out the resulting 50 LEN -- ran out of enough output space or enough available input 74 unsigned char FAR *out; /* local strm->next_out */ local 76 unsigned char FAR *end; /* while out < end, enough space available */ 101 out = strm->next_out - OFF; 102 beg = out - (start - strm->avail_out); 103 end = out + (strm->avail_out - 257); 137 PUP(out) = (unsigned char)(here.val); 186 op = (unsigned)(out - beg); /* max distance in output */ 199 PUP(out) [all...] |
H A D | inflate.c | 48 * - Pull out common wnext == 0 case for speed in inflate_fast() 75 * for the in() and out() functions 308 Write out the inffixed.h that is #include'd above. Defining MAKEFIXED also 323 a.out > inffixed.h 615 unsigned in, out; /* save starting available input and output */ local 636 out = left; 1024 inflate_fast(strm, out); 1125 copy = out - left; 1177 out -= left; 1178 strm->total_out += out; [all...] |
/external/zlib/src/examples/ |
H A D | gun.c | 114 /* structure for infback() to pass to output function out() -- it maintains the 128 On success out() returns 0. For a write failure, out() returns 1. If the 131 local int out(void *out_desc, unsigned char *buf, unsigned len) function 168 /* throw out what's left in the current bits byte buffer (this is a vestigial 235 strm->msg = (char *)"lzw bits out of range"; 281 if (outcnt && out(&outd, outbuf, outcnt)) { 353 if (out(&outd, outbuf, outcnt)) { 377 The return value is a zlib error code: Z_MEM_ERROR if out of memory, 475 ret = inflateBack(strm, in, indp, out, [all...] |
H A D | gzappend.c | 273 if (gz.buf == NULL) bye("out of memory", ""); 282 if (window == NULL) bye("out of memory", ""); 287 if (ret != Z_OK) bye("out of memory", " or library mismatch"); 312 if (ret == Z_MEM_ERROR) bye("out of memory", ""); 369 if (ret != Z_OK) bye("out of memory", ""); 392 unsigned char *in, *out; local 405 out = malloc(CHUNK); 406 if (in == NULL || out == NULL) bye("out of memory", ""); 425 strm->next_out = out; [all...] |
H A D | gzjoin.c | 34 gzjoin takes one or more gzip files on the command line and writes out a 244 /* write a four-byte little-endian unsigned integer to out */ 245 local void put4(unsigned long val, FILE *out) argument 247 putc(val & 0xff, out); 248 putc((val >> 8) & 0xff, out); 249 putc((val >> 16) & 0xff, out); 250 putc((val >> 24) & 0xff, out); 264 /* Write header for gzip file to out and initialize trailer. */ 265 local void gzinit(unsigned long *crc, unsigned long *tot, FILE *out) argument 267 fwrite("\x1f\x8b\x08\0\0\0\0\0\0\xff", 1, 10, out); 279 gzcopy(char *name, int clr, unsigned long *crc, unsigned long *tot, FILE *out) argument [all...] |
H A D | zpipe.c | 42 unsigned char out[CHUNK]; local 66 strm.next_out = out; 70 if (fwrite(out, 1, have, dest) != have || ferror(dest)) { 98 unsigned char out[CHUNK]; local 124 strm.next_out = out; 136 if (fwrite(out, 1, have, dest) != have || ferror(dest)) { 168 fputs("out of memory\n", stderr);
|
H A D | zran.c | 68 off_t out; /* corresponding offset in uncompressed data */ member in struct:point 90 /* Add an entry to the access point list. If out of memory, deallocate the 93 off_t in, off_t out, unsigned left, unsigned char *window) 125 next->out = out; 141 returns the number of access points on success (>= 1), Z_MEM_ERROR for out 191 /* inflate until out of input, output, or at end of block -- 265 while (--ret && here[1].out <= offset) 291 offset -= here->out; 379 fprintf(stderr, "zran: out o 92 addpoint(struct access *index, int bits, off_t in, off_t out, unsigned left, unsigned char *window) argument [all...] |
/external/zlib/src/test/ |
H A D | infcover.c | 243 data is allocated and must eventually be freed. NULL is returned if out of 289 unsigned char *in, *out; local 301 out = malloc(len); assert(out != NULL); 303 head.extra = out; 305 head.name = out; 307 head.comment = out; 319 strm.next_out = out; 327 ret = inflateSetDictionary(&strm, out, 0); 331 ret = inflateSetDictionary(&strm, out, 511 unsigned char *in, *out, *win; local [all...] |
H A D | minigzip.c | 242 unsigned char out[BUFLEN]; local 250 strm->next_out = out; 253 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file); 301 unsigned char out[BUFLEN]; local 310 strm->next_out = out; 313 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file); 339 void gz_compress OF((FILE *in, gzFile out)); 341 int gz_compress_mmap OF((FILE *in, gzFile out)); 343 void gz_uncompress OF((gzFile in, FILE *out)); 362 void gz_compress(in, out) 463 gzFile out; local 501 FILE *out; local [all...] |
/external/zopfli/src/zopfli/ |
H A D | blocksplitter.c | 132 static void AddSorted(size_t value, size_t** out, size_t* outsize) { argument 134 ZOPFLI_APPEND_DATA(value, out, outsize); 136 if ((*out)[i] > value) { 139 (*out)[j] = (*out)[j - 1]; 141 (*out)[i] = value;
|
H A D | deflate.c | 39 unsigned char* bp, unsigned char** out, size_t* outsize) { 40 if (*bp == 0) ZOPFLI_APPEND_DATA(0, out, outsize); 41 (*out)[*outsize - 1] |= bit << *bp; 46 unsigned char* bp, unsigned char** out, size_t* outsize) { 51 if (*bp == 0) ZOPFLI_APPEND_DATA(0, out, outsize); 52 (*out)[*outsize - 1] |= bit << *bp; 62 unsigned char* bp, unsigned char** out, 68 if (*bp == 0) ZOPFLI_APPEND_DATA(0, out, outsize); 69 (*out)[*outsize - 1] |= bit << *bp; 102 Encodes the Huffman tree and returns how many bits its encoding takes. If out 38 AddBit(int bit, unsigned char* bp, unsigned char** out, size_t* outsize) argument 45 AddBits(unsigned symbol, unsigned length, unsigned char* bp, unsigned char** out, size_t* outsize) argument 61 AddHuffmanBits(unsigned symbol, unsigned length, unsigned char* bp, unsigned char** out, size_t* outsize) argument 105 EncodeTree(const unsigned* ll_lengths, const unsigned* d_lengths, int use_16, int use_17, int use_18, unsigned char* bp, unsigned char** out, size_t* outsize) argument 251 AddDynamicTree(const unsigned* ll_lengths, const unsigned* d_lengths, unsigned char* bp, unsigned char** out, size_t* outsize) argument 297 AddLZ77Data(const unsigned short* litlens, const unsigned short* dists, size_t lstart, size_t lend, size_t expected_data_size, const unsigned* ll_symbols, const unsigned* ll_lengths, const unsigned* d_symbols, const unsigned* d_lengths, unsigned char* bp, unsigned char** out, size_t* outsize) argument 325 bp, out, outsize); local 329 bp, out, outsize); local 528 AddLZ77Block(const ZopfliOptions* options, int btype, int final, const unsigned short* litlens, const unsigned short* dists, size_t lstart, size_t lend, size_t expected_data_size, unsigned char* bp, unsigned char** out, size_t* outsize) argument 586 DeflateDynamicBlock(const ZopfliOptions* options, int final, const unsigned char* in, size_t instart, size_t inend, unsigned char* bp, unsigned char** out, size_t* outsize) argument 639 DeflateFixedBlock(const ZopfliOptions* options, int final, const unsigned char* in, size_t instart, size_t inend, unsigned char* bp, unsigned char** out, size_t* outsize) argument 670 DeflateNonCompressedBlock(const ZopfliOptions* options, int final, const unsigned char* in, size_t instart, size_t inend, unsigned char* bp, unsigned char** out, size_t* outsize) argument 700 DeflateBlock(const ZopfliOptions* options, int btype, int final, const unsigned char* in, size_t instart, size_t inend, unsigned char* bp, unsigned char** out, size_t* outsize) argument 721 DeflateSplittingFirst(const ZopfliOptions* options, int btype, int final, const unsigned char* in, size_t instart, size_t inend, unsigned char* bp, unsigned char** out, size_t* outsize) argument 755 DeflateSplittingLast(const ZopfliOptions* options, int btype, int final, const unsigned char* in, size_t instart, size_t inend, unsigned char* bp, unsigned char** out, size_t* outsize) argument 827 ZopfliDeflatePart(const ZopfliOptions* options, int btype, int final, const unsigned char* in, size_t instart, size_t inend, unsigned char* bp, unsigned char** out, size_t* outsize) argument 844 ZopfliDeflate(const ZopfliOptions* options, int btype, int final, const unsigned char* in, size_t insize, unsigned char* bp, unsigned char** out, size_t* outsize) argument [all...] |
H A D | gzip_container.c | 79 unsigned char** out, size_t* outsize) { 83 ZOPFLI_APPEND_DATA(31, out, outsize); /* ID1 */ 84 ZOPFLI_APPEND_DATA(139, out, outsize); /* ID2 */ 85 ZOPFLI_APPEND_DATA(8, out, outsize); /* CM */ 86 ZOPFLI_APPEND_DATA(0, out, outsize); /* FLG */ 88 ZOPFLI_APPEND_DATA(0, out, outsize); 89 ZOPFLI_APPEND_DATA(0, out, outsize); 90 ZOPFLI_APPEND_DATA(0, out, outsize); 91 ZOPFLI_APPEND_DATA(0, out, outsize); 93 ZOPFLI_APPEND_DATA(2, out, outsiz 77 ZopfliGzipCompress(const ZopfliOptions* options, const unsigned char* in, size_t insize, unsigned char** out, size_t* outsize) argument [all...] |
H A D | zlib_container.c | 52 unsigned char** out, size_t* outsize) { 62 ZOPFLI_APPEND_DATA(cmfflg / 256, out, outsize); 63 ZOPFLI_APPEND_DATA(cmfflg % 256, out, outsize); 66 in, insize, &bitpointer, out, outsize); 68 ZOPFLI_APPEND_DATA((checksum >> 24) % 256, out, outsize); 69 ZOPFLI_APPEND_DATA((checksum >> 16) % 256, out, outsize); 70 ZOPFLI_APPEND_DATA((checksum >> 8) % 256, out, outsize); 71 ZOPFLI_APPEND_DATA(checksum % 256, out, outsize); 50 ZopfliZlibCompress(const ZopfliOptions* options, const unsigned char* in, size_t insize, unsigned char** out, size_t* outsize) argument
|
H A D | zopfli_bin.c | 40 unsigned char** out, size_t* outsize) { 43 *out = 0; 52 *out = (unsigned char*)malloc(*outsize); 54 if (*outsize && (*out)) { 55 size_t testsize = fread(*out, 1, *outsize, file); 58 free(*out); 59 *out = 0; 64 assert(!(*outsize) || out); /* If size is not zero, out must be allocated. */ 88 unsigned char* out local 39 LoadFile(const char* filename, unsigned char** out, size_t* outsize) argument [all...] |
H A D | zopfli_lib.c | 30 unsigned char** out, size_t* outsize) { 32 ZopfliGzipCompress(options, in, insize, out, outsize); 34 ZopfliZlibCompress(options, in, insize, out, outsize); 38 in, insize, &bp, out, outsize); 28 ZopfliCompress(const ZopfliOptions* options, ZopfliFormat output_type, const unsigned char* in, size_t insize, unsigned char** out, size_t* outsize) argument
|
/external/zopfli/src/zopflipng/lodepng/ |
H A D | lodepng.cpp | 54 -DLODEPNG_NO_COMPILE_ALLOCATORS to the compiler, or comment out 89 out of a loop (to go to the cleanup phase of a function). This macro does that. 278 static unsigned string_resize(char** out, size_t size) argument 280 char* data = (char*)lodepng_realloc(*out, size + 1); 284 *out = data; 290 static void string_init(char** out) argument 292 *out = NULL; 293 string_resize(out, 0); 297 static void string_cleanup(char** out) argument 299 lodepng_free(*out); 303 string_set(char** out, const char* in) argument 349 lodepng_load_file(unsigned char** out, size_t* outsize, const char* filename) argument 1086 inflateHuffmanBlock(ucvector* out, const unsigned char* in, size_t* bp, size_t* pos, size_t inlength, unsigned btype) argument 1186 inflateNoCompression(ucvector* out, const unsigned char* in, size_t* bp, size_t* pos, size_t inlength) argument 1216 lodepng_inflatev(ucvector* out, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) argument 1250 lodepng_inflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) argument 1263 inflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) argument 1431 encodeLZ77(uivector* out, Hash* hash, const unsigned char* in, size_t inpos, size_t insize, unsigned windowsize, unsigned minmatch, unsigned nicematch, unsigned lazymatching) argument 1600 deflateNoCompression(ucvector* out, const unsigned char* data, size_t datasize) argument 1642 writeLZ77data(size_t* bp, ucvector* out, const uivector* lz77_encoded, const HuffmanTree* tree_ll, const HuffmanTree* tree_d) argument 1671 deflateDynamic(ucvector* out, size_t* bp, Hash* hash, const unsigned char* data, size_t datapos, size_t dataend, const LodePNGCompressSettings* settings, int final) argument 1916 deflateFixed(ucvector* out, size_t* bp, Hash* hash, const unsigned char* data, size_t datapos, size_t dataend, const LodePNGCompressSettings* settings, int final) argument 1964 lodepng_deflatev(ucvector* out, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) argument 2003 lodepng_deflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) argument 2016 deflate(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) argument 2071 lodepng_zlib_decompress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) argument 2116 zlib_decompress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) argument 2133 lodepng_zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) argument 2176 zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) argument 2194 zlib_decompress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGDecompressSettings* settings) argument 2202 zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize, const LodePNGCompressSettings* settings) argument 2434 lodepng_chunk_append(unsigned char** out, size_t* outlength, const unsigned char* chunk) argument 2453 lodepng_chunk_create(unsigned char** out, size_t* outlength, unsigned length, const char* type, const unsigned char* data) argument 2897 addColorBits(unsigned char* out, size_t index, unsigned bits, unsigned in) argument 2982 rgba8ToPixel(unsigned char* out, size_t i, const LodePNGColorMode* mode, ColorTree* tree , unsigned char r, unsigned char g, unsigned char b, unsigned char a) argument 3056 rgba16ToPixel(unsigned char* out, size_t i, const LodePNGColorMode* mode, unsigned short r, unsigned short g, unsigned short b, unsigned short a) argument 3393 lodepng_convert(unsigned char* out, const unsigned char* in, LodePNGColorMode* mode_out, const LodePNGColorMode* mode_in, unsigned w, unsigned h, unsigned fix_png) argument 4082 unfilter(unsigned char* out, const unsigned char* in, unsigned w, unsigned h, unsigned bpp) argument 4124 Adam7_deinterlace(unsigned char* out, const unsigned char* in, unsigned w, unsigned h, unsigned bpp) argument 4174 removePaddingBits(unsigned char* out, const unsigned char* in, size_t olinebits, size_t ilinebits, unsigned h) argument 4204 postProcessScanlines(unsigned char* out, unsigned char* in, unsigned w, unsigned h, const LodePNGInfo* info_png) argument 4562 decodeGeneric(unsigned char** out, unsigned* w, unsigned* h, LodePNGState* state, const unsigned char* in, size_t insize) argument 4737 lodepng_decode(unsigned char** out, unsigned* w, unsigned* h, LodePNGState* state, const unsigned char* in, size_t insize) argument 4781 lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize, LodePNGColorType colortype, unsigned bitdepth) argument 4794 lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize) argument 4799 lodepng_decode24(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize) argument 4805 lodepng_decode_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename, LodePNGColorType colortype, unsigned bitdepth) argument 4817 lodepng_decode32_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename) argument 4822 lodepng_decode24_file(unsigned char** out, unsigned* w, unsigned* h, const char* filename) argument 4882 addChunk(ucvector* out, const char* chunkName, const unsigned char* data, size_t length) argument 4889 writeSignature(ucvector* out) argument 4902 addChunk_IHDR(ucvector* out, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth, unsigned interlace_method) argument 4923 addChunk_PLTE(ucvector* out, const LodePNGColorMode* info) argument 4940 addChunk_tRNS(ucvector* out, const LodePNGColorMode* info) argument 4985 addChunk_IDAT(ucvector* out, const unsigned char* data, size_t datasize, LodePNGCompressSettings* zlibsettings) argument 5000 addChunk_IEND(ucvector* out) argument 5009 addChunk_tEXt(ucvector* out, const char* keyword, const char* textstring) argument 5025 addChunk_zTXt(ucvector* out, const char* keyword, const char* textstring, LodePNGCompressSettings* zlibsettings) argument 5052 addChunk_iTXt(ucvector* out, unsigned compressed, const char* keyword, const char* langtag, const char* transkey, const char* textstring, LodePNGCompressSettings* zlibsettings) argument 5093 addChunk_bKGD(ucvector* out, const LodePNGInfo* info) argument 5123 addChunk_tIME(ucvector* out, const LodePNGTime* time) argument 5140 addChunk_pHYs(ucvector* out, const LodePNGInfo* info) argument 5158 filterScanline(unsigned char* out, const unsigned char* scanline, const unsigned char* prevline, size_t length, size_t bytewidth, unsigned char filterType) argument 5231 filter(unsigned char* out, const unsigned char* in, unsigned w, unsigned h, const LodePNGColorMode* info, const LodePNGEncoderSettings* settings) argument 5855 lodepng_encode_memory(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) argument 5871 lodepng_encode32(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h) argument 5876 lodepng_encode24(unsigned char** out, size_t* outsize, const unsigned char* image, unsigned w, unsigned h) argument 6065 decompress(std::vector<unsigned char>& out, const unsigned char* in, size_t insize, const LodePNGDecompressSettings& settings) argument 6079 decompress(std::vector<unsigned char>& out, const std::vector<unsigned char>& in, const LodePNGDecompressSettings& settings) argument 6087 compress(std::vector<unsigned char>& out, const unsigned char* in, size_t insize, const LodePNGCompressSettings& settings) argument 6101 compress(std::vector<unsigned char>& out, const std::vector<unsigned char>& in, const LodePNGCompressSettings& settings) argument 6136 decode(std::vector<unsigned char>& out, unsigned& w, unsigned& h, const unsigned char* in, size_t insize, LodePNGColorType colortype, unsigned bitdepth) argument 6153 decode(std::vector<unsigned char>& out, unsigned& w, unsigned& h, const std::vector<unsigned char>& in, LodePNGColorType colortype, unsigned bitdepth) argument 6159 decode(std::vector<unsigned char>& out, unsigned& w, unsigned& h, State& state, const unsigned char* in, size_t insize) argument 6174 decode(std::vector<unsigned char>& out, unsigned& w, unsigned& h, State& state, const std::vector<unsigned char>& in) argument 6182 decode(std::vector<unsigned char>& out, unsigned& w, unsigned& h, const std::string& filename, LodePNGColorType colortype, unsigned bitdepth) argument 6193 encode(std::vector<unsigned char>& out, const unsigned char* in, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) argument 6207 encode(std::vector<unsigned char>& out, const std::vector<unsigned char>& in, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth) argument 6215 encode(std::vector<unsigned char>& out, const unsigned char* in, unsigned w, unsigned h, State& state) argument 6230 encode(std::vector<unsigned char>& out, const std::vector<unsigned char>& in, unsigned w, unsigned h, State& state) argument [all...] |
H A D | lodepng_util.cpp | 360 void inflate(std::vector<unsigned char>& out, const std::vector<unsigned char>& in, size_t inpos = 0) argument 375 else if(BTYPE == 0) inflateNoCompression(out, &in[inpos], bp, pos, in.size()); 376 else inflateHuffmanBlock(out, &in[inpos], bp, pos, in.size(), BTYPE); 480 void inflateHuffmanBlock(std::vector<unsigned char>& out, argument 500 out.push_back((unsigned char)(code)); 517 out.push_back(out[back++]); 533 void inflateNoCompression(std::vector<unsigned char>& out, argument 544 out.push_back(in[p++]); //read LEN bytes of literal data 550 int decompress(std::vector<unsigned char>& out, cons argument 607 std::vector<unsigned char> out; //now the out buffer will be filled local [all...] |
/external/zopfli/src/zopflipng/ |
H A D | zopflipng_lib.cc | 42 unsigned CustomPNGDeflate(unsigned char** out, size_t* outsize, argument 59 ZopfliDeflate(&options, 2 /* Dynamic */, 1, in, insize, &bp, out, outsize); 66 free(*out); 67 *out = out2; 76 ZopfliDeflate(&options, 2 /* Dynamic */, 1, in, insize, &bp, out, outsize); 182 std::vector<unsigned char>* out) { 239 error = lodepng::encode(*out, image, w, h, state); 243 if (!error && out->size() < 4096) { 246 lodepng::decode(temp, w, h, teststate, *out); 262 if (out2.size() < out 176 TryOptimize( const std::vector<unsigned char>& image, unsigned w, unsigned h, const lodepng::State& inputstate, bool bit16, const std::vector<unsigned char>& origfile, ZopfliPNGFilterStrategy filterstrategy, bool use_zopfli, int windowsize, const ZopfliPNGOptions* png_options, std::vector<unsigned char>* out) argument 284 std::vector<unsigned char> out; local [all...] |