Lines Matching refs:codebook
334 if (prev_cp->codebook != cp->codebook ||
421 cp->codebook = 0;
935 if (cp->codebook > 0 && cp->huff_lsbs > 24) {
939 put_bits(pb, 2, cp->codebook );
964 codebook_index [ch] = cp->codebook - 1;
967 sign_shift = lsb_bits[ch] + (cp->codebook ? 2 - cp->codebook : -1);
969 if (cp->codebook > 0)
1462 /** Min and max values that can be encoded with each codebook. The values for
1463 * the third codebook take into account the fact that the sign shift for this
1464 * codebook is outside the coded value, so it has one more bit of precision.
1541 * given codebook and a given offset.
1544 unsigned int channel, int codebook,
1548 int32_t codebook_min = codebook_extremes[codebook][0];
1549 int32_t codebook_max = codebook_extremes[codebook][1];
1552 int codebook_offset = 7 + (2 - codebook);
1570 if (codebook == 2) {
1591 bitcount += ff_mlp_huffman_tables[codebook][sample + codebook_offset][1];
1604 * given codebook. Searches for the best offset to minimize the bits.
1607 unsigned int channel, int codebook,
1621 codebook_bits_offset(ctx, channel, codebook,
1644 * any or no codebook.
1892 for (unsigned int codebook = 0; codebook < NUM_CODEBOOKS; codebook++) {
1896 PathCounter *dst_path = &path_counter[codebook];
1905 if (compare_best_offset(&prev_bo[codebook], &cur_bo[codebook]))
1908 src_path = &path_counter[codebook];
1911 temp_bitcount = best_codebook_path_cost(ctx, channel, src_path, codebook);
1915 best_codebook = codebook;
1923 dst_path->path[++dst_path->cur_idx] = codebook;
1945 cp->codebook = best_codebook;