Searched refs:bitsUsed (Results 1 – 8 of 8) sorted by relevance
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/conversion/eot/ |
D | HuffmanEncoderTest.java | 27 assertEquals(1, HuffmanEncoder.bitsUsed(0)); in testBitsUsed() 28 assertEquals(1, HuffmanEncoder.bitsUsed(1)); in testBitsUsed() 29 assertEquals(8, HuffmanEncoder.bitsUsed(255)); in testBitsUsed() 30 assertEquals(9, HuffmanEncoder.bitsUsed(256)); in testBitsUsed() 31 assertEquals(32, HuffmanEncoder.bitsUsed(-1)); in testBitsUsed()
|
/third_party/flutter/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/conversion/eot/ |
D | HuffmanEncoderTest.java | 27 assertEquals(1, HuffmanEncoder.bitsUsed(0)); in testBitsUsed() 28 assertEquals(1, HuffmanEncoder.bitsUsed(1)); in testBitsUsed() 29 assertEquals(8, HuffmanEncoder.bitsUsed(255)); in testBitsUsed() 30 assertEquals(9, HuffmanEncoder.bitsUsed(256)); in testBitsUsed() 31 assertEquals(32, HuffmanEncoder.bitsUsed(-1)); in testBitsUsed()
|
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/ |
D | LzcompCompress.java | 295 int bitsNeeded = HuffmanEncoder.bitsUsed(dist - DIST_MIN); in getNumDistRanges() 306 int bitsUsed = HuffmanEncoder.bitsUsed(value); in encodeLength() local 308 while (i < bitsUsed) { in encodeLength() 312 int symbol = bitsUsed > BIT_RANGE ? 2 : 0; in encodeLength() 323 for (i = bitsUsed - BIT_RANGE; i >= 1; i -= BIT_RANGE) { in encodeLength() 344 int bitsUsed = HuffmanEncoder.bitsUsed(value); in encodeLengthCost() local 346 while (i < bitsUsed) { in encodeLengthCost() 350 int symbol = bitsUsed > BIT_RANGE ? 2 : 0; in encodeLengthCost() 361 for (i = bitsUsed - BIT_RANGE; i >= 1; i -= BIT_RANGE) { in encodeLengthCost()
|
D | HuffmanEncoder.java | 45 bitsUsed(range - 1); in HuffmanEncoder() 47 bitCount2 = bitsUsed(range - 257); in HuffmanEncoder() 216 public static int bitsUsed(int x) { in bitsUsed() method in HuffmanEncoder
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/ |
D | LzcompCompress.java | 295 int bitsNeeded = HuffmanEncoder.bitsUsed(dist - DIST_MIN); in getNumDistRanges() 306 int bitsUsed = HuffmanEncoder.bitsUsed(value); in encodeLength() local 308 while (i < bitsUsed) { in encodeLength() 312 int symbol = bitsUsed > BIT_RANGE ? 2 : 0; in encodeLength() 323 for (i = bitsUsed - BIT_RANGE; i >= 1; i -= BIT_RANGE) { in encodeLength() 344 int bitsUsed = HuffmanEncoder.bitsUsed(value); in encodeLengthCost() local 346 while (i < bitsUsed) { in encodeLengthCost() 350 int symbol = bitsUsed > BIT_RANGE ? 2 : 0; in encodeLengthCost() 361 for (i = bitsUsed - BIT_RANGE; i >= 1; i -= BIT_RANGE) { in encodeLengthCost()
|
D | HuffmanEncoder.java | 45 bitsUsed(range - 1); in HuffmanEncoder() 47 bitCount2 = bitsUsed(range - 257); in HuffmanEncoder() 216 public static int bitsUsed(int x) { in bitsUsed() method in HuffmanEncoder
|
/third_party/ffmpeg/libavcodec/ |
D | roqvideoenc.c | 438 static const int bitsUsed[4] = {2, 10, 10, 34}; in gather_data_for_subcel() local 482 if (ROQ_LAMBDA_SCALE*subcel->eval_dist[i] + enc->lambda*bitsUsed[i] < in gather_data_for_subcel() 485 subcel->best_bit_use = bitsUsed[i]; in gather_data_for_subcel() 487 enc->lambda*bitsUsed[i]; in gather_data_for_subcel() 502 int bitsUsed[4] = {2, 10, 10, 0}; in gather_data_for_cel() local 543 bitsUsed[3] = 2 + divide_bit_use; in gather_data_for_cel() 546 if (ROQ_LAMBDA_SCALE*cel->eval_dist[i] + enc->lambda*bitsUsed[i] < in gather_data_for_cel() 550 enc->lambda*bitsUsed[i]; in gather_data_for_cel() 554 tempData->mainChunkSize += bitsUsed[cel->best_coding]; in gather_data_for_cel()
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
D | dng_read_image.cpp | 583 const int32 bitsUsed = codeSize - bitsSoFar; in GetCodeWord() local 587 const int32 bitsNotUsed = 32 - bitsUsed; in GetCodeWord() 591 fBitBuffer <<= bitsUsed; in GetCodeWord() 592 fBitBufferCount -= bitsUsed; in GetCodeWord()
|