Lines Matching refs:btype
1087 size_t* pos, size_t inlength, unsigned btype)
1097 if(btype == 1) getTreeInflateFixed(&tree_ll, &tree_d);
1098 else if(btype == 2) error = getTreeInflateDynamic(&tree_ll, &tree_d, in, bp, inlength);
1231 unsigned BTYPE;
1234 BTYPE = 1 * readBitFromStream(&bp, in);
1235 BTYPE += 2 * readBitFromStream(&bp, in);
1237 if(BTYPE == 3) return 20; /*error: invalid BTYPE*/
1238 else if(BTYPE == 0) error = inflateNoCompression(out, in, &bp, &pos, insize); /*no compression*/
1239 else error = inflateHuffmanBlock(out, in, &bp, &pos, insize, BTYPE); /*compression, BTYPE 01 or 10*/
1602 /*non compressed deflate block data: 1 bit BFINAL,2 bits BTYPE,(5 bits): it jumps to start of next byte,
1609 unsigned BFINAL, BTYPE, LEN, NLEN;
1613 BTYPE = 0;
1615 firstbyte = (unsigned char)(BFINAL + ((BTYPE & 1) << 1) + ((BTYPE & 2) << 1));
1850 After the BFINAL and BTYPE, the dynamic block consists out of the following:
1863 addBitToStream(bp, out, 0); /*first bit of BTYPE "dynamic"*/
1864 addBitToStream(bp, out, 1); /*second bit of BTYPE "dynamic"*/
1935 addBitToStream(bp, out, 1); /*first bit of BTYPE*/
1936 addBitToStream(bp, out, 0); /*second bit of BTYPE*/
1972 if(settings->btype > 2) return 61;
1973 else if(settings->btype == 0) return deflateNoCompression(out, in, insize);
1974 else if(settings->btype == 1) blocksize = insize;
1975 else /*if(settings->btype == 2)*/
1994 if(settings->btype == 1) error = deflateFixed(out, &bp, &hash, in, start, end, settings, final);
1995 else if(settings->btype == 2) error = deflateDynamic(out, &bp, &hash, in, start, end, settings, final);
2222 settings->btype = 2;
5411 zlibsettings.btype = 1;
5412 /*a custom encoder likely doesn't read the btype setting and is optimized for complete PNG
5692 if(state->encoder.zlibsettings.btype > 2)
5694 CERROR_RETURN_ERROR(state->error, 61); /*error: unexisting btype*/
5941 case 20: return "invalid deflate block BTYPE encountered while decoding";
5993 case 61: return "invalid BTYPE given in the settings of the encoder (only 0, 1 and 2 are allowed)";