• Home
  • Raw
  • Download

Lines Matching refs:gbp

243 static inline int read_huff_channels(MLPDecodeContext *m, GetBitContext *gbp,  in read_huff_channels()  argument
251 m->bypassed_lsbs[pos + s->blockpos][mat] = get_bits1(gbp); in read_huff_channels()
261 result = get_vlc2(gbp, huff_vlc[codebook-1].table, in read_huff_channels()
268 result = (result << lsb_bits) + get_bits_long(gbp, lsb_bits); in read_huff_channels()
474 static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp, in read_restart_header() argument
482 int start_count = get_bits_count(gbp); in read_restart_header()
488 sync_word = get_bits(gbp, 13); in read_restart_header()
496 noise_type = get_bits1(gbp); in read_restart_header()
503 skip_bits(gbp, 16); /* Output timestamp */ in read_restart_header()
505 min_channel = get_bits(gbp, 4); in read_restart_header()
506 max_channel = get_bits(gbp, 4); in read_restart_header()
507 max_matrix_channel = get_bits(gbp, 4); in read_restart_header()
552 s->noise_shift = get_bits(gbp, 4); in read_restart_header()
553 s->noisegen_seed = get_bits(gbp, 23); in read_restart_header()
555 skip_bits(gbp, 19); in read_restart_header()
557 s->data_check_present = get_bits1(gbp); in read_restart_header()
558 lossless_check = get_bits(gbp, 8); in read_restart_header()
568 skip_bits(gbp, 16); in read_restart_header()
573 int ch_assign = get_bits(gbp, 6); in read_restart_header()
589 checksum = ff_mlp_restart_checksum(buf, get_bits_count(gbp) - start_count); in read_restart_header()
591 if (checksum != get_bits(gbp, 8)) in read_restart_header()
645 static int read_filter_params(MLPDecodeContext *m, GetBitContext *gbp, in read_filter_params() argument
663 order = get_bits(gbp, 4); in read_filter_params()
676 fp->shift = get_bits(gbp, 4); in read_filter_params()
678 coeff_bits = get_bits(gbp, 5); in read_filter_params()
679 coeff_shift = get_bits(gbp, 3); in read_filter_params()
694 fcoeff[i] = get_sbits(gbp, coeff_bits) * (1 << coeff_shift); in read_filter_params()
696 if (get_bits1(gbp)) { in read_filter_params()
705 state_bits = get_bits(gbp, 4); in read_filter_params()
706 state_shift = get_bits(gbp, 4); in read_filter_params()
711 fp->state[i] = state_bits ? get_sbits(gbp, state_bits) * (1 << state_shift) : 0; in read_filter_params()
720 static int read_matrix_params(MLPDecodeContext *m, unsigned int substr, GetBitContext *gbp) in read_matrix_params() argument
733 s->num_primitive_matrices = get_bits(gbp, 4); in read_matrix_params()
744 s->matrix_out_ch[mat] = get_bits(gbp, 4); in read_matrix_params()
745 frac_bits = get_bits(gbp, 4); in read_matrix_params()
746 s->lsb_bypass [mat] = get_bits1(gbp); in read_matrix_params()
766 if (get_bits1(gbp)) in read_matrix_params()
767 coeff_val = get_sbits(gbp, frac_bits + 2); in read_matrix_params()
773 s->matrix_noise_shift[mat] = get_bits(gbp, 4); in read_matrix_params()
789 GetBitContext *gbp, unsigned int ch) in read_channel_params() argument
798 if (get_bits1(gbp)) in read_channel_params()
799 if ((ret = read_filter_params(m, gbp, substr, ch, FIR)) < 0) in read_channel_params()
803 if (get_bits1(gbp)) in read_channel_params()
804 if ((ret = read_filter_params(m, gbp, substr, ch, IIR)) < 0) in read_channel_params()
827 if (get_bits1(gbp)) in read_channel_params()
828 cp->huff_offset = get_sbits(gbp, 15); in read_channel_params()
830 cp->codebook = get_bits(gbp, 2); in read_channel_params()
831 cp->huff_lsbs = get_bits(gbp, 5); in read_channel_params()
845 static int read_decoding_params(MLPDecodeContext *m, GetBitContext *gbp, in read_decoding_params() argument
854 if (get_bits1(gbp)) in read_decoding_params()
855 s->param_presence_flags = get_bits(gbp, 8); in read_decoding_params()
858 if (get_bits1(gbp)) { in read_decoding_params()
859 s->blocksize = get_bits(gbp, 9); in read_decoding_params()
868 if (get_bits1(gbp)) in read_decoding_params()
869 if ((ret = read_matrix_params(m, substr, gbp)) < 0) in read_decoding_params()
873 if (get_bits1(gbp)) { in read_decoding_params()
875 s->output_shift[ch] = get_sbits(gbp, 4); in read_decoding_params()
889 if (get_bits1(gbp)) in read_decoding_params()
891 s->quant_step_size[ch] = get_bits(gbp, 4); in read_decoding_params()
897 if (get_bits1(gbp)) { in read_decoding_params()
899 if ((ret = read_channel_params(m, substr, gbp, ch)) < 0) in read_decoding_params()
955 static int read_block_data(MLPDecodeContext *m, GetBitContext *gbp, in read_block_data() argument
963 expected_stream_pos = get_bits_count(gbp); in read_block_data()
964 expected_stream_pos += get_bits(gbp, 16); in read_block_data()
978 if ((ret = read_huff_channels(m, gbp, substr, i)) < 0) in read_block_data()
987 if (get_bits_count(gbp) != expected_stream_pos) in read_block_data()
989 skip_bits(gbp, 8); in read_block_data()