Lines Matching refs:codebook
375 static inline void encode_vlc_codeword(PutBitContext *pb, unsigned codebook, int val) in encode_vlc_codeword() argument
381 switch_bits = (codebook & 3) + 1; in encode_vlc_codeword()
382 rice_order = codebook >> 5; /* rice code order */ in encode_vlc_codeword()
383 exp_order = (codebook >> 2) & 7; /* exp golomb code order */ in encode_vlc_codeword()
411 int codebook = 3, code, dc, prev_dc, delta, sign, new_sign; in encode_dcs() local
416 codebook = 3; in encode_dcs()
425 encode_vlc_codeword(pb, ff_prores_dc_codebook[codebook], code); in encode_dcs()
426 codebook = (code + (code & 1)) >> 1; in encode_dcs()
427 codebook = FFMIN(codebook, 3); in encode_dcs()
641 static inline int estimate_vlc(unsigned codebook, int val) in estimate_vlc() argument
647 switch_bits = (codebook & 3) + 1; in estimate_vlc()
648 rice_order = codebook >> 5; /* rice code order */ in estimate_vlc()
649 exp_order = (codebook >> 2) & 7; /* exp golomb code order */ in estimate_vlc()
667 int codebook = 3, code, dc, prev_dc, delta, sign, new_sign; in estimate_dcs() local
673 codebook = 3; in estimate_dcs()
684 bits += estimate_vlc(ff_prores_dc_codebook[codebook], code); in estimate_dcs()
685 codebook = (code + (code & 1)) >> 1; in estimate_dcs()
686 codebook = FFMIN(codebook, 3); in estimate_dcs()