Lines Matching refs:huffman_code
268 HuffmanTreeCode* const huffman_code) {
271 for (k = 0; k < huffman_code->num_symbols; ++k) {
272 if (huffman_code->code_lengths[k] != 0) {
277 for (k = 0; k < huffman_code->num_symbols; ++k) {
278 huffman_code->code_lengths[k] = 0;
279 huffman_code->codes[k] = 0;
286 const HuffmanTreeCode* const huffman_code) {
291 VP8LWriteBits(bw, huffman_code->code_lengths[ix], huffman_code->codes[ix]);
313 HuffmanTreeCode huffman_code;
318 huffman_code.num_symbols = CODE_LENGTH_CODES;
319 huffman_code.code_lengths = code_length_bitdepth;
320 huffman_code.codes = code_length_bitdepth_symbols;
331 if (!VP8LCreateHuffmanTree(histogram, 7, &huffman_code)) {
337 ClearHuffmanTreeIfOnlyOneSymbol(&huffman_code);
368 StoreHuffmanTreeToBitMask(bw, tokens, length, &huffman_code);
377 const HuffmanTreeCode* const huffman_code) {
385 for (i = 0; i < huffman_code->num_symbols && count < 3; ++i) {
386 if (huffman_code->code_lengths[i] != 0) {
411 return StoreFullHuffmanCode(bw, huffman_code);