Lines Matching refs:hBs
119 static int get_vlclbf(HANDLE_FDK_BITSTREAM hBs) { in get_vlclbf() argument
122 while (FDKreadBits(hBs, 1) && result <= NQ_MAX) { in get_vlclbf()
134 static int get_vlclbf_n(HANDLE_FDK_BITSTREAM hBs, int n) { in get_vlclbf_n() argument
137 while (FDKreadBits(hBs, 1)) { in get_vlclbf_n()
582 static void decode_qn(HANDLE_FDK_BITSTREAM hBs, int nk_mode, int nqn, in decode_qn() argument
590 qn[n] = get_vlclbf(hBs); in decode_qn()
598 qn[n] = 2 + FDKreadBits(hBs, 2); in decode_qn()
605 qn[n] = get_vlclbf(hBs); in decode_qn()
614 qn[n] = get_vlclbf(hBs); in decode_qn()
672 HANDLE_FDK_BITSTREAM hBs, /* input: codebook index */ in vlpc_1st_dec() argument
678 index = FDKreadBits(hBs, 8); in vlpc_1st_dec()
695 HANDLE_FDK_BITSTREAM hBs, in vlpc_2st_dec() argument
703 { err = CLpc_DecodeAVQ(hBs, xq, nk_mode, 2, 8); } in vlpc_2st_dec()
722 int CLpc_DecodeAVQ(HANDLE_FDK_BITSTREAM hBs, FIXP_DBL *pOutput, int nk_mode, in CLpc_DecodeAVQ() argument
730 decode_qn(hBs, nk_mode, no_qn, qn); in CLpc_DecodeAVQ()
746 I = FDKreadBits(hBs, 4 * n); in CLpc_DecodeAVQ()
752 kv[j] = FDKreadBits(hBs, nk); in CLpc_DecodeAVQ()
764 int CLpc_Read(HANDLE_FDK_BITSTREAM hBs, FIXP_LPC lsp[][M_LP_FILTER_ORDER], in CLpc_Read() argument
782 vlpc_1st_dec(hBs, lsp[4 >> s]); in CLpc_Read()
783 err = vlpc_2st_dec(hBs, lsp[4 >> s], 0); /* nk_mode = 0 */ in CLpc_Read()
810 mode_lpc_bin = FDKreadBit(hBs); in CLpc_Read()
814 vlpc_1st_dec(hBs, lsp[k >> s]); in CLpc_Read()
823 err = vlpc_2st_dec(hBs, lsp[k >> s], nk_mode); in CLpc_Read()
832 mode_lpc_bin = get_vlclbf_n(hBs, 2); in CLpc_Read()
837 vlpc_1st_dec(hBs, lsp[1]); in CLpc_Read()
838 err = vlpc_2st_dec(hBs, lsp[1], 0); in CLpc_Read()
860 err = vlpc_2st_dec(hBs, lsp[1], 2 << s); in CLpc_Read()
873 mode_lpc_bin = get_vlclbf_n(hBs, 3); in CLpc_Read()
878 vlpc_1st_dec(hBs, lsp[3]); in CLpc_Read()
902 err = vlpc_2st_dec(hBs, lsp[3], nk_mode); in CLpc_Read()