Home
last modified time | relevance | path

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

/external/libvpx/libvpx/vp9/encoder/
Dvp9_resize.c214 static const interp_kernel *choose_interp_filter(int inlength, int outlength) { in choose_interp_filter() argument
216 if (outlength16 >= inlength * 16) in choose_interp_filter()
218 else if (outlength16 >= inlength * 13) in choose_interp_filter()
220 else if (outlength16 >= inlength * 11) in choose_interp_filter()
222 else if (outlength16 >= inlength * 9) in choose_interp_filter()
228 static void interpolate(const uint8_t *const input, int inlength, in interpolate() argument
230 const int64_t delta = (((uint64_t)inlength << 32) + outlength / 2) / in interpolate()
232 const int64_t offset = inlength > outlength ? in interpolate()
233 (((int64_t)(inlength - outlength) << 31) + outlength / 2) / outlength : in interpolate()
234 -(((int64_t)(outlength - inlength) << 31) + outlength / 2) / outlength; in interpolate()
[all …]
/external/zopfli/src/zopflipng/lodepng/
Dlodepng_util.cpp394 …fmanDecodeSymbol(const unsigned char* in, size_t& bp, const HuffmanTree& codetree, size_t inlength) in huffmanDecodeSymbol()
400 …if((bp & 0x07) == 0 && (bp >> 3) > inlength) { error = 10; return 0; } //error: end reached withou… in huffmanDecodeSymbol()
408 const unsigned char* in, size_t& bp, size_t inlength) in getTreeInflateDynamic()
413 …if(bp >> 3 >= inlength - 2) { error = 49; return; } //the bit pointer is or will go past the memory in getTreeInflateDynamic()
428 … unsigned long code = huffmanDecodeSymbol(in, bp, codelengthcodetree, inlength); if(error) return; in getTreeInflateDynamic()
433 if(bp >> 3 >= inlength) { error = 50; return; } //error, bit pointer jumps past memory in getTreeInflateDynamic()
446 if(bp >> 3 >= inlength) { error = 50; return; } //error, bit pointer jumps past memory in getTreeInflateDynamic()
457 if(bp >> 3 >= inlength) { error = 50; return; } //error, bit pointer jumps past memory in getTreeInflateDynamic()
481 … const unsigned char* in, size_t& bp, size_t& pos, size_t inlength, unsigned long btype) in inflateHuffmanBlock()
485 …else if(btype == 2) { getTreeInflateDynamic(codetree, codetreeD, in, bp, inlength); if(error) retu… in inflateHuffmanBlock()
[all …]
Dlodepng.cpp939 const unsigned char* in, size_t* bp, size_t inlength) in getTreeInflateDynamic() argument
944 size_t inbitlength = inlength * 8; in getTreeInflateDynamic()
953 if((*bp) >> 3 >= inlength - 2) return 49; /*error: the bit pointer is or will go past the memory*/ in getTreeInflateDynamic()
1087 size_t* pos, size_t inlength, unsigned btype) in inflateHuffmanBlock() argument
1092 size_t inbitlength = inlength * 8; in inflateHuffmanBlock()
1098 else if(btype == 2) error = getTreeInflateDynamic(&tree_ll, &tree_d, in, bp, inlength); in inflateHuffmanBlock()
1136 error = (*bp) > inlength * 8 ? 10 : 11; in inflateHuffmanBlock()
1175 error = (*bp) > inlength * 8 ? 10 : 11; in inflateHuffmanBlock()
1186 …lateNoCompression(ucvector* out, const unsigned char* in, size_t* bp, size_t* pos, size_t inlength) in inflateNoCompression() argument
1195 if(p >= inlength - 4) return 52; /*error, bit pointer will jump past memory*/ in inflateNoCompression()
[all …]