Home
last modified time | relevance | path

Searched refs:BTYPE (Results 1 – 3 of 3) sorted by relevance

/external/zopfli/src/zopflipng/lodepng/
Dlodepng_util.cpp371 …unsigned long BTYPE = readBitFromStream(bp, &in[inpos]); BTYPE += 2 * readBitFromStream(bp, &in[in… in inflate() local
373 zlibinfo->back().btype = BTYPE; in inflate()
374 if(BTYPE == 3) { error = 20; return; } //error: invalid BTYPE in inflate()
375 else if(BTYPE == 0) inflateNoCompression(out, &in[inpos], bp, pos, in.size()); in inflate()
376 else inflateHuffmanBlock(out, &in[inpos], bp, pos, in.size(), BTYPE); in inflate()
Dlodepng.cpp1231 unsigned BTYPE; in lodepng_inflatev() local
1234 BTYPE = 1 * readBitFromStream(&bp, in); in lodepng_inflatev()
1235 BTYPE += 2 * readBitFromStream(&bp, in); in lodepng_inflatev()
1237 if(BTYPE == 3) return 20; /*error: invalid BTYPE*/ in lodepng_inflatev()
1238 else if(BTYPE == 0) error = inflateNoCompression(out, in, &bp, &pos, insize); /*no compression*/ in lodepng_inflatev()
1239 …else error = inflateHuffmanBlock(out, in, &bp, &pos, insize, BTYPE); /*compression, BTYPE 01 or 10… in lodepng_inflatev()
1609 unsigned BFINAL, BTYPE, LEN, NLEN; in deflateNoCompression() local
1613 BTYPE = 0; in deflateNoCompression()
1615 firstbyte = (unsigned char)(BFINAL + ((BTYPE & 1) << 1) + ((BTYPE & 2) << 1)); in deflateNoCompression()
/external/zlib/src/doc/
Drfc1951.txt80 3.2.4. Non-compressed blocks (BTYPE=00) ................... 11
82 3.2.6. Compression with fixed Huffman codes (BTYPE=01) .... 12
83 3.2.7. Compression with dynamic Huffman codes (BTYPE=10) .. 13
496 next 2 bits BTYPE
514 BTYPE specifies how the data are compressed, as follows:
576 3.2.4. Non-compressed blocks (BTYPE=00)
655 3.2.6. Compression with fixed Huffman codes (BTYPE=01)
690 3.2.7. Compression with dynamic Huffman codes (BTYPE=10)