/third_party/ffmpeg/libavcodec/ |
D | h264_sei.c | 72 h->pic_struct = get_bits(&gb, 4); in ff_h264_sei_process_picture_timing() 81 if (get_bits(&gb, 1)) { /* clock_timestamp_flag */ in ff_h264_sei_process_picture_timing() 85 h->ct_type |= 1 << get_bits(&gb, 2); in ff_h264_sei_process_picture_timing() 87 counting_type = get_bits(&gb, 5); /* counting_type */ in ff_h264_sei_process_picture_timing() 88 full_timestamp_flag = get_bits(&gb, 1); in ff_h264_sei_process_picture_timing() 90 cnt_dropped_flag = get_bits(&gb, 1); /* cnt_dropped_flag */ in ff_h264_sei_process_picture_timing() 93 tc->frame = get_bits(&gb, 8); /* n_frames */ in ff_h264_sei_process_picture_timing() 96 tc->seconds = get_bits(&gb, 6); /* seconds_value 0..59 */ in ff_h264_sei_process_picture_timing() 97 tc->minutes = get_bits(&gb, 6); /* minutes_value 0..59 */ in ff_h264_sei_process_picture_timing() 98 tc->hours = get_bits(&gb, 5); /* hours_value 0..23 */ in ff_h264_sei_process_picture_timing() [all …]
|
D | hevc_sei.c | 35 hash_type = get_bits(gb, 8); in decode_nal_sei_decoded_picture_hash() 41 s->md5[cIdx][i] = get_bits(gb, 8); in decode_nal_sei_decoded_picture_hash() 58 s->display_primaries[i][0] = get_bits(gb, 16); in decode_nal_sei_mastering_display_info() 59 s->display_primaries[i][1] = get_bits(gb, 16); in decode_nal_sei_mastering_display_info() 62 s->white_point[0] = get_bits(gb, 16); in decode_nal_sei_mastering_display_info() 63 s->white_point[1] = get_bits(gb, 16); in decode_nal_sei_mastering_display_info() 79 s->max_content_light_level = get_bits(gb, 16); in decode_nal_sei_content_light_info() 80 s->max_pic_average_light_level = get_bits(gb, 16); in decode_nal_sei_content_light_info() 94 s->arrangement_type = get_bits(gb, 7); in decode_nal_sei_frame_packing_arrangement() 96 s->content_interpretation_type = get_bits(gb, 6); in decode_nal_sei_frame_packing_arrangement() [all …]
|
D | mlp_parse.c | 105 if (get_bits(gb, 24) != 0xf8726f) /* Sync words */ in ff_mlp_read_major_sync() 108 mh->stream_type = get_bits(gb, 8); in ff_mlp_read_major_sync() 112 mh->group1_bits = mlp_quants[get_bits(gb, 4)]; in ff_mlp_read_major_sync() 113 mh->group2_bits = mlp_quants[get_bits(gb, 4)]; in ff_mlp_read_major_sync() 115 ratebits = get_bits(gb, 4); in ff_mlp_read_major_sync() 117 mh->group2_samplerate = mlp_samplerate(get_bits(gb, 4)); in ff_mlp_read_major_sync() 122 channel_arrangement = get_bits(gb, 5); in ff_mlp_read_major_sync() 129 ratebits = get_bits(gb, 4); in ff_mlp_read_major_sync() 135 mh->channel_modifier_thd_stream0 = get_bits(gb, 2); in ff_mlp_read_major_sync() 136 mh->channel_modifier_thd_stream1 = get_bits(gb, 2); in ff_mlp_read_major_sync() [all …]
|
D | dca_exss.c | 26 asset->xll_size = get_bits(&s->gb, s->exss_size_nbits) + 1; in parse_xll_parameters() 36 xll_delay_nbits = get_bits(&s->gb, 5) + 1; in parse_xll_parameters() 42 asset->xll_sync_offset = get_bits(&s->gb, s->exss_size_nbits); in parse_xll_parameters() 52 asset->lbr_size = get_bits(&s->gb, 14) + 1; in parse_lbr_parameters() 65 descr_size = get_bits(&s->gb, 9) + 1; in parse_descriptor() 68 asset->asset_index = get_bits(&s->gb, 3); in parse_descriptor() 88 int text_size = get_bits(&s->gb, 10) + 1; in parse_descriptor() 99 asset->pcm_bit_res = get_bits(&s->gb, 5) + 1; in parse_descriptor() 102 asset->max_sample_rate = ff_dca_sampling_freqs[get_bits(&s->gb, 4)]; in parse_descriptor() 105 asset->nchannels_total = get_bits(&s->gb, 8) + 1; in parse_descriptor() [all …]
|
D | flac.c | 46 GET_UTF8(val, get_bits(gb, 8), return -1;) in get_utf8() 56 if ((get_bits(gb, 15) & 0x7FFF) != 0x7FFC) { in ff_flac_decode_frame_header() 65 bs_code = get_bits(gb, 4); in ff_flac_decode_frame_header() 66 sr_code = get_bits(gb, 4); in ff_flac_decode_frame_header() 69 fi->ch_mode = get_bits(gb, 4); in ff_flac_decode_frame_header() 83 bps_code = get_bits(gb, 3); in ff_flac_decode_frame_header() 113 fi->blocksize = get_bits(gb, 8) + 1; in ff_flac_decode_frame_header() 115 fi->blocksize = get_bits(gb, 16) + 1; in ff_flac_decode_frame_header() 124 fi->samplerate = get_bits(gb, 8) * 1000; in ff_flac_decode_frame_header() 126 fi->samplerate = get_bits(gb, 16); in ff_flac_decode_frame_header() [all …]
|
D | dca.c | 97 h->deficit_samples = get_bits(gb, 5) + 1; in ff_dca_parse_core_frame_header() 102 h->npcmblocks = get_bits(gb, 7) + 1; in ff_dca_parse_core_frame_header() 106 h->frame_size = get_bits(gb, 14) + 1; in ff_dca_parse_core_frame_header() 110 h->audio_mode = get_bits(gb, 6); in ff_dca_parse_core_frame_header() 114 h->sr_code = get_bits(gb, 4); in ff_dca_parse_core_frame_header() 118 h->br_code = get_bits(gb, 5); in ff_dca_parse_core_frame_header() 126 h->ext_audio_type = get_bits(gb, 3); in ff_dca_parse_core_frame_header() 129 h->lfe_present = get_bits(gb, 2); in ff_dca_parse_core_frame_header() 137 h->encoder_rev = get_bits(gb, 4); in ff_dca_parse_core_frame_header() 138 h->copy_hist = get_bits(gb, 2); in ff_dca_parse_core_frame_header() [all …]
|
D | tak.c | 98 s->codec = get_bits(gb, TAK_ENCODER_CODEC_BITS); in ff_tak_parse_streaminfo() 101 frame_type = get_bits(gb, TAK_SIZE_FRAME_DURATION_BITS); in ff_tak_parse_streaminfo() 104 s->data_type = get_bits(gb, TAK_FORMAT_DATA_TYPE_BITS); in ff_tak_parse_streaminfo() 105 s->sample_rate = get_bits(gb, TAK_FORMAT_SAMPLE_RATE_BITS) + in ff_tak_parse_streaminfo() 107 s->bps = get_bits(gb, TAK_FORMAT_BPS_BITS) + in ff_tak_parse_streaminfo() 109 s->channels = get_bits(gb, TAK_FORMAT_CHANNEL_BITS) + in ff_tak_parse_streaminfo() 116 int value = get_bits(gb, TAK_FORMAT_CH_LAYOUT_BITS); in ff_tak_parse_streaminfo() 144 if (get_bits(gb, TAK_FRAME_HEADER_SYNC_ID_BITS) != TAK_FRAME_HEADER_SYNC_ID) { in ff_tak_decode_frame_header() 149 ti->flags = get_bits(gb, TAK_FRAME_HEADER_FLAGS_BITS); in ff_tak_decode_frame_header() 150 ti->frame_num = get_bits(gb, TAK_FRAME_HEADER_NO_BITS); in ff_tak_decode_frame_header() [all …]
|
D | flvdec.c | 33 if (get_bits(&s->gb, 17) != 1) { in ff_flv_decode_picture_header() 37 format = get_bits(&s->gb, 5); in ff_flv_decode_picture_header() 43 s->picture_number = get_bits(&s->gb, 8); /* picture timestamp */ in ff_flv_decode_picture_header() 44 format = get_bits(&s->gb, 3); in ff_flv_decode_picture_header() 47 width = get_bits(&s->gb, 8); in ff_flv_decode_picture_header() 48 height = get_bits(&s->gb, 8); in ff_flv_decode_picture_header() 51 width = get_bits(&s->gb, 16); in ff_flv_decode_picture_header() 52 height = get_bits(&s->gb, 16); in ff_flv_decode_picture_header() 83 s->pict_type = AV_PICTURE_TYPE_I + get_bits(&s->gb, 2); in ff_flv_decode_picture_header() 89 s->chroma_qscale = s->qscale = get_bits(&s->gb, 5); in ff_flv_decode_picture_header()
|
D | sheervideo.c | 54 dst_a[x] = get_bits(gb, 10); in decode_ca4i() 55 dst_y[x] = get_bits(gb, 10); in decode_ca4i() 56 dst_u[x] = get_bits(gb, 10); in decode_ca4i() 57 dst_v[x] = get_bits(gb, 10); in decode_ca4i() 97 dst_a[x] = get_bits(gb, 10); in decode_ca4p() 98 dst_y[x] = get_bits(gb, 10); in decode_ca4p() 99 dst_u[x] = get_bits(gb, 10); in decode_ca4p() 100 dst_v[x] = get_bits(gb, 10); in decode_ca4p() 128 dst_a[x] = get_bits(gb, 10); in decode_ca4p() 129 dst_y[x] = get_bits(gb, 10); in decode_ca4p() [all …]
|
D | ac3_parser.c | 60 hdr->sync_word = get_bits(gbc, 16); in ff_ac3_parse_header() 80 hdr->crc1 = get_bits(gbc, 16); in ff_ac3_parse_header() 81 hdr->sr_code = get_bits(gbc, 2); in ff_ac3_parse_header() 85 frame_size_code = get_bits(gbc, 6); in ff_ac3_parse_header() 91 hdr->bitstream_mode = get_bits(gbc, 3); in ff_ac3_parse_header() 92 hdr->channel_mode = get_bits(gbc, 3); in ff_ac3_parse_header() 95 hdr->dolby_surround_mode = get_bits(gbc, 2); in ff_ac3_parse_header() 98 hdr-> center_mix_level = center_levels[get_bits(gbc, 2)]; in ff_ac3_parse_header() 100 hdr->surround_mix_level = surround_levels[get_bits(gbc, 2)]; in ff_ac3_parse_header() 114 hdr->frame_type = get_bits(gbc, 2); in ff_ac3_parse_header() [all …]
|
D | gsmdec_template.c | 34 int maxidx = get_bits(gb, 6); in apcm_dequant_add() 37 val = get_bits(gb, frame_bits[i]); in apcm_dequant_add() 129 lar[0] = decode_log_area(get_bits(gb, 6), 13107, 1 << 15); in gsm_decode_block() 130 lar[1] = decode_log_area(get_bits(gb, 6), 13107, 1 << 15); in gsm_decode_block() 131 lar[2] = decode_log_area(get_bits(gb, 5), 13107, (1 << 14) + 2048*2); in gsm_decode_block() 132 lar[3] = decode_log_area(get_bits(gb, 5), 13107, (1 << 14) - 2560*2); in gsm_decode_block() 133 lar[4] = decode_log_area(get_bits(gb, 4), 19223, (1 << 13) + 94*2); in gsm_decode_block() 134 lar[5] = decode_log_area(get_bits(gb, 4), 17476, (1 << 13) - 1792*2); in gsm_decode_block() 135 lar[6] = decode_log_area(get_bits(gb, 3), 31454, (1 << 12) - 341*2); in gsm_decode_block() 136 lar[7] = decode_log_area(get_bits(gb, 3), 29708, (1 << 12) - 1144*2); in gsm_decode_block() [all …]
|
D | truespeech.c | 85 dec->vector[7] = ts_codebook[7][get_bits(&gb, 3)]; in truespeech_read_frame() 86 dec->vector[6] = ts_codebook[6][get_bits(&gb, 3)]; in truespeech_read_frame() 87 dec->vector[5] = ts_codebook[5][get_bits(&gb, 3)]; in truespeech_read_frame() 88 dec->vector[4] = ts_codebook[4][get_bits(&gb, 4)]; in truespeech_read_frame() 89 dec->vector[3] = ts_codebook[3][get_bits(&gb, 4)]; in truespeech_read_frame() 90 dec->vector[2] = ts_codebook[2][get_bits(&gb, 4)]; in truespeech_read_frame() 91 dec->vector[1] = ts_codebook[1][get_bits(&gb, 5)]; in truespeech_read_frame() 92 dec->vector[0] = ts_codebook[0][get_bits(&gb, 5)]; in truespeech_read_frame() 95 dec->offset1[0] = get_bits(&gb, 4) << 4; in truespeech_read_frame() 96 dec->offset2[3] = get_bits(&gb, 7); in truespeech_read_frame() [all …]
|
D | ilbcdec.c | 134 frame->lsf[0] = get_bits(gb, 6); in unpack_frame() 135 frame->lsf[1] = get_bits(gb, 7); in unpack_frame() 136 frame->lsf[2] = get_bits(gb, 7); in unpack_frame() 139 frame->start = get_bits(gb, 2); in unpack_frame() 141 frame->ifm = get_bits(gb, 6); in unpack_frame() 142 frame->cb_index[0] = get_bits(gb, 6) << 1; in unpack_frame() 143 frame->gain_index[0] = get_bits(gb, 2) << 3; in unpack_frame() 145 frame->cb_index[3] = get_bits(gb, 7) << 1; in unpack_frame() 150 frame->lsf[3] = get_bits(gb, 6); in unpack_frame() 151 frame->lsf[4] = get_bits(gb, 7); in unpack_frame() [all …]
|
D | intelh263dec.c | 36 if (get_bits(&s->gb, 22) != 0x20) { in ff_intel_h263_decode_picture_header() 40 s->picture_number = get_bits(&s->gb, 8); /* picture timestamp */ in ff_intel_h263_decode_picture_header() 53 format = get_bits(&s->gb, 3); in ff_intel_h263_decode_picture_header() 78 format = get_bits(&s->gb, 3); in ff_intel_h263_decode_picture_header() 83 if(get_bits(&s->gb, 2)) in ff_intel_h263_decode_picture_header() 90 if(get_bits(&s->gb, 5)) in ff_intel_h263_decode_picture_header() 92 if(get_bits(&s->gb, 5) != 1) in ff_intel_h263_decode_picture_header() 96 int ar = get_bits(&s->gb, 4); in ff_intel_h263_decode_picture_header() 101 s->avctx->sample_aspect_ratio.num = get_bits(&s->gb, 8); // aspect ratio - width in ff_intel_h263_decode_picture_header() 102 s->avctx->sample_aspect_ratio.den = get_bits(&s->gb, 8); // aspect ratio - height in ff_intel_h263_decode_picture_header() [all …]
|
D | hcadec.c | 123 version = get_bits(gb, 16); in decode_init() 139 c->track_count = get_bits(gb, 8); in decode_init() 140 c->channel_config = get_bits(gb, 8); in decode_init() 141 c->total_band_count = get_bits(gb, 8); in decode_init() 142 c->base_band_count = get_bits(gb, 8); in decode_init() 143 c->stereo_band_count = get_bits(gb, 8); in decode_init() 144 c->bands_per_hfr_group = get_bits(gb, 8); in decode_init() 149 c->total_band_count = get_bits(gb, 8) + 1; in decode_init() 150 c->base_band_count = get_bits(gb, 8) + 1; in decode_init() 151 c->track_count = get_bits(gb, 4); in decode_init() [all …]
|
D | vc1.c | 241 v->dqprofile = get_bits(gb, 2); in vop_dquant_decoding() 245 v->dqsbedge = get_bits(gb, 2); in vop_dquant_decoding() 258 pqdiff = get_bits(gb, 3); in vop_dquant_decoding() 260 v->altpq = get_bits(gb, 5); in vop_dquant_decoding() 279 v->profile = get_bits(gb, 2); in ff_vc1_decode_sequence_header() 302 v->frmrtq_postproc = get_bits(gb, 3); //common in ff_vc1_decode_sequence_header() 304 v->bitrtq_postproc = get_bits(gb, 5); //common in ff_vc1_decode_sequence_header() 339 v->dquant = get_bits(gb, 2); //common in ff_vc1_decode_sequence_header() 358 v->s.max_b_frames = avctx->max_b_frames = get_bits(gb, 3); //common in ff_vc1_decode_sequence_header() 359 v->quantizer_mode = get_bits(gb, 2); //common in ff_vc1_decode_sequence_header() [all …]
|
D | jvdec.c | 69 switch (get_bits(gb, 2)) { in decode2x2() 71 v[0] = get_bits(gb, 8); in decode2x2() 76 v[0] = get_bits(gb, 8); in decode2x2() 77 v[1] = get_bits(gb, 8); in decode2x2() 85 dst[j * linesize + i] = get_bits(gb, 8); in decode2x2() 96 switch (get_bits(gb, 2)) { in decode4x4() 98 v[0] = get_bits(gb, 8); in decode4x4() 103 v[0] = get_bits(gb, 8); in decode4x4() 104 v[1] = get_bits(gb, 8); in decode4x4() 127 switch (get_bits(gb, 2)) { in decode8x8() [all …]
|
D | adts_header.c | 35 if (get_bits(gbc, 12) != 0xfff) in ff_adts_header_parse() 41 aot = get_bits(gbc, 2); /* profile_objecttype */ in ff_adts_header_parse() 42 sr = get_bits(gbc, 4); /* sample_frequency_index */ in ff_adts_header_parse() 46 ch = get_bits(gbc, 3); /* channel_configuration */ in ff_adts_header_parse() 54 size = get_bits(gbc, 13); /* aac_frame_length */ in ff_adts_header_parse() 59 rdb = get_bits(gbc, 2); /* number_of_raw_data_blocks_in_frame */ in ff_adts_header_parse()
|
D | eac3dec.c | 203 gaq_mode = get_bits(gbc, 2); in ff_eac3_decode_transform_coeffs_aht_ch() 221 int group_code = get_bits(gbc, 5); in ff_eac3_decode_transform_coeffs_aht_ch() 246 int v = get_bits(gbc, bits); in ff_eac3_decode_transform_coeffs_aht_ch() 329 s->dialog_normalization[i] = -get_bits(gbc, 5); in ff_eac3_parse_header() 339 s->heavy_dynamic_range[i] = AC3_HEAVY_RANGE(get_bits(gbc, 8)); in ff_eac3_parse_header() 347 int channel_map = get_bits(gbc, 16); in ff_eac3_parse_header() 365 s->preferred_downmix = get_bits(gbc, 2); in ff_eac3_parse_header() 368 s->center_mix_level_ltrt = get_bits(gbc, 3); in ff_eac3_parse_header() 369 s->center_mix_level = get_bits(gbc, 3); in ff_eac3_parse_header() 373 s->surround_mix_level_ltrt = av_clip(get_bits(gbc, 3), 3, 7); in ff_eac3_parse_header() [all …]
|
D | indeo4.c | 81 switch (get_bits(gb, 2)) { in decode_plane_subdivision() 86 if (get_bits(gb, 2) != 3) in decode_plane_subdivision() 111 if (get_bits(&ctx->gb, 18) != 0x3FFF8) { in decode_pic_hdr() 117 ctx->frame_type = get_bits(&ctx->gb, 3); in decode_pic_hdr() 134 ctx->data_size = get_bits1(&ctx->gb) ? get_bits(&ctx->gb, 24) : 0; in decode_pic_hdr() 150 pic_size_indx = get_bits(&ctx->gb, 3); in decode_pic_hdr() 152 pic_conf.pic_height = get_bits(&ctx->gb, 16); in decode_pic_hdr() 153 pic_conf.pic_width = get_bits(&ctx->gb, 16); in decode_pic_hdr() 162 pic_conf.tile_height = scale_tile_size(pic_conf.pic_height, get_bits(&ctx->gb, 4)); in decode_pic_hdr() 163 pic_conf.tile_width = scale_tile_size(pic_conf.pic_width, get_bits(&ctx->gb, 4)); in decode_pic_hdr() [all …]
|
D | evrcdec.c | 116 frame->lsp[0] = get_bits(gb, 6); in unpack_frame() 117 frame->lsp[1] = get_bits(gb, 6); in unpack_frame() 118 frame->lsp[2] = get_bits(gb, 9); in unpack_frame() 119 frame->lsp[3] = get_bits(gb, 7); in unpack_frame() 120 frame->pitch_delay = get_bits(gb, 7); in unpack_frame() 121 frame->delay_diff = get_bits(gb, 5); in unpack_frame() 122 frame->acb_gain[0] = get_bits(gb, 3); in unpack_frame() 123 frame->fcb_shape[0][0] = get_bits(gb, 8); in unpack_frame() 124 frame->fcb_shape[0][1] = get_bits(gb, 8); in unpack_frame() 125 frame->fcb_shape[0][2] = get_bits(gb, 8); in unpack_frame() [all …]
|
D | atrac3plus.c | 224 chan->fill_mode = get_bits(gb, 2); in num_coded_units() 228 chan->num_coded_vals = get_bits(gb, 5); in num_coded_units() 236 chan->split_point = get_bits(gb, 2) + (chan->ch_num << 1) + 1; in num_coded_units() 322 start_val = get_bits((gb), 6); \ 323 unpack_vq_shape(start_val, &atrac3p_sf_shapes[get_bits((gb), 6)][0], \ 346 switch (get_bits(gb, 2)) { /* switch according to coding mode */ in decode_channel_wordlen() 349 chan->qu_wordlen[i] = get_bits(gb, 3); in decode_channel_wordlen() 357 vlc_tab = &wl_vlc_tabs[get_bits(gb, 2)]; in decode_channel_wordlen() 365 weight_idx = get_bits(gb, 2); in decode_channel_wordlen() 370 pos = get_bits(gb, 5); in decode_channel_wordlen() [all …]
|
D | mpeg4audio.c | 55 c->channels = get_bits(gb, 16) + 1; in parse_config_ALS() 73 int object_type = get_bits(gb, 5); in get_object_type() 75 object_type = 32 + get_bits(gb, 6); in get_object_type() 81 *index = get_bits(gb, 4); in get_sample_rate() 82 return *index == 0x0f ? get_bits(gb, 24) : in get_sample_rate() 93 c->chan_config = get_bits(gb, 4); in ff_mpeg4audio_get_config_gb() 112 c->ext_chan_config = get_bits(gb, 4); in ff_mpeg4audio_get_config_gb() 134 get_bits(gb, 11); in ff_mpeg4audio_get_config_gb() 141 if (get_bits_left(gb) > 11 && get_bits(gb, 11) == 0x548) in ff_mpeg4audio_get_config_gb()
|
D | cljrdec.c | 64 luma[3] = (get_bits(&gb, 5)*33) >> 2; in decode_frame() 65 luma[2] = (get_bits(&gb, 5)*33) >> 2; in decode_frame() 66 luma[1] = (get_bits(&gb, 5)*33) >> 2; in decode_frame() 67 luma[0] = (get_bits(&gb, 5)*33) >> 2; in decode_frame() 69 *(cb++) = get_bits(&gb, 6) << 2; in decode_frame() 70 *(cr++) = get_bits(&gb, 6) << 2; in decode_frame()
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/x11/ |
D | edid-parse.c | 43 get_bits (int in, int begin, int end) in get_bits() function 64 info->manufacturer_code[0] = get_bits (edid[0x08], 2, 6); in decode_vendor_and_product_identification() 65 info->manufacturer_code[1] = get_bits (edid[0x08], 0, 1) << 3; in decode_vendor_and_product_identification() 66 info->manufacturer_code[1] |= get_bits (edid[0x09], 5, 7); in decode_vendor_and_product_identification() 67 info->manufacturer_code[2] = get_bits (edid[0x09], 0, 4); in decode_vendor_and_product_identification() 142 bits = get_bits (edid[0x14], 4, 6); in decode_display_parameters() 145 bits = get_bits (edid[0x14], 0, 3); in decode_display_parameters() 154 int bits = get_bits (edid[0x14], 5, 6); in decode_display_parameters() 224 int bits = get_bits (edid[0x18], 3, 4); in decode_display_parameters() 260 info->red_x = decode_fraction (edid[0x1b], get_bits (edid[0x19], 6, 7)); in decode_color_characteristics() [all …]
|