/third_party/ffmpeg/libavcodec/ |
D | qdrw.c | 47 static int parse_palette(AVCodecContext *avctx, GetByteContext *gbc, in parse_palette() argument 54 unsigned int idx = bytestream2_get_be16(gbc); /* color index */ in parse_palette() 58 bytestream2_skip(gbc, 6); in parse_palette() 63 r = bytestream2_get_byte(gbc); in parse_palette() 64 bytestream2_skip(gbc, 1); in parse_palette() 65 g = bytestream2_get_byte(gbc); in parse_palette() 66 bytestream2_skip(gbc, 1); in parse_palette() 67 b = bytestream2_get_byte(gbc); in parse_palette() 68 bytestream2_skip(gbc, 1); in parse_palette() 74 static int decode_rle_bpp2(AVCodecContext *avctx, AVFrame *p, GetByteContext *gbc) in decode_rle_bpp2() argument [all …]
|
D | eac3dec.c | 200 GetBitContext *gbc = &s->gbc; in ff_eac3_decode_transform_coeffs_aht_ch() local 203 gaq_mode = get_bits(gbc, 2); in ff_eac3_decode_transform_coeffs_aht_ch() 213 gaq_gain[gs++] = get_bits1(gbc) << (gaq_mode-1); 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() 261 int mant = get_sbits(gbc, gbits); in ff_eac3_decode_transform_coeffs_aht_ch() 266 mant = get_sbits(gbc, mbits); in ff_eac3_decode_transform_coeffs_aht_ch() 295 GetBitContext *gbc = &s->gbc; in ff_eac3_parse_header() local 325 skip_bits(gbc, 5); // skip bitstream id in ff_eac3_parse_header() 329 s->dialog_normalization[i] = -get_bits(gbc, 5); in ff_eac3_parse_header() [all …]
|
D | adts_header.c | 30 int ff_adts_header_parse(GetBitContext *gbc, AACADTSHeaderInfo *hdr) in ff_adts_header_parse() argument 35 if (get_bits(gbc, 12) != 0xfff) in ff_adts_header_parse() 38 skip_bits1(gbc); /* id */ in ff_adts_header_parse() 39 skip_bits(gbc, 2); /* layer */ in ff_adts_header_parse() 40 crc_abs = get_bits1(gbc); /* protection_absent */ 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() 45 skip_bits1(gbc); /* private_bit */ in ff_adts_header_parse() 46 ch = get_bits(gbc, 3); /* channel_configuration */ in ff_adts_header_parse() 48 skip_bits1(gbc); /* original/copy */ in ff_adts_header_parse() [all …]
|
D | fmvc.c | 60 GetByteContext gbc; in decode_type2() local 84 … bytestream2_init(&gbc, pb->buffer_start, pb->buffer_end - pb->buffer_start); in decode_type2() 85 bytestream2_seek(&gbc, bytestream2_tell_p(pb) + pos, SEEK_SET); in decode_type2() 87 bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); in decode_type2() 88 bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); in decode_type2() 89 bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); in decode_type2() 129 bytestream2_init(&gbc, pb->buffer_start, pb->buffer_end - pb->buffer_start); in decode_type2() 130 bytestream2_seek(&gbc, bytestream2_tell_p(pb) + pos, SEEK_SET); in decode_type2() 132 bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); in decode_type2() 133 bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); in decode_type2() [all …]
|
D | ac3_parser.c | 54 int ff_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr) in ff_ac3_parse_header() argument 60 hdr->sync_word = get_bits(gbc, 16); in ff_ac3_parse_header() 65 hdr->bitstream_id = show_bits_long(gbc, 29) & 0x1F; 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() 89 skip_bits(gbc, 5); // skip bsid, already got it 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() [all …]
|
D | tdsc.c | 53 GetByteContext gbc; member 196 ctx->cursor_hot_x = bytestream2_get_le16(&ctx->gbc); in tdsc_load_cursor() 197 ctx->cursor_hot_y = bytestream2_get_le16(&ctx->gbc); in tdsc_load_cursor() 198 ctx->cursor_w = bytestream2_get_le16(&ctx->gbc); in tdsc_load_cursor() 199 ctx->cursor_h = bytestream2_get_le16(&ctx->gbc); in tdsc_load_cursor() 202 cursor_fmt = bytestream2_get_le32(&ctx->gbc); in tdsc_load_cursor() 237 uint32_t bits = bytestream2_get_be32(&ctx->gbc); in tdsc_load_cursor() 250 uint32_t bits = bytestream2_get_be32(&ctx->gbc); in tdsc_load_cursor() 282 bytestream2_skip(&ctx->gbc, in tdsc_load_cursor() 287 int val = bytestream2_get_be32(&ctx->gbc); in tdsc_load_cursor() [all …]
|
D | dds.c | 101 GetByteContext gbc; member 119 GetByteContext *gbc = &ctx->gbc; in parse_pixel_format() local 126 bytestream2_skip(gbc, 4 * 3); in parse_pixel_format() 127 gimp_tag = bytestream2_get_le32(gbc); in parse_pixel_format() 131 bytestream2_skip(gbc, 4 * 7); in parse_pixel_format() 134 size = bytestream2_get_le32(gbc); in parse_pixel_format() 139 flags = bytestream2_get_le32(gbc); in parse_pixel_format() 143 fourcc = bytestream2_get_le32(gbc); in parse_pixel_format() 151 bpp = ctx->bpp = bytestream2_get_le32(gbc); // rgbbitcount in parse_pixel_format() 152 r = bytestream2_get_le32(gbc); // rbitmask in parse_pixel_format() [all …]
|
D | rscc.c | 56 GetByteContext gbc; member 153 GetByteContext *gbc = &ctx->gbc; in rscc_decode_frame() local 161 bytestream2_init(gbc, avpkt->data, avpkt->size); in rscc_decode_frame() 164 if (bytestream2_get_bytes_left(gbc) < 12) { in rscc_decode_frame() 170 tiles_nb = bytestream2_get_le16(gbc); in rscc_decode_frame() 193 packed_tiles_size = bytestream2_get_byte(gbc); in rscc_decode_frame() 195 packed_tiles_size = bytestream2_get_le16(gbc); in rscc_decode_frame() 203 if (bytestream2_get_bytes_left(gbc) < packed_tiles_size) { in rscc_decode_frame() 215 gbc->buffer, packed_tiles_size); in rscc_decode_frame() 224 bytestream2_skip(gbc, packed_tiles_size); in rscc_decode_frame() [all …]
|
D | cbs_h2645.c | 34 static int cbs_read_ue_golomb(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_read_ue_golomb() argument 44 position = get_bits_count(gbc); in cbs_read_ue_golomb() 47 if (get_bits_left(gbc) < i + 1) { in cbs_read_ue_golomb() 52 k = get_bits1(gbc); in cbs_read_ue_golomb() 64 k = get_bits1(gbc); in cbs_read_ue_golomb() 86 static int cbs_read_se_golomb(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_read_se_golomb() argument 97 position = get_bits_count(gbc); in cbs_read_se_golomb() 100 if (get_bits_left(gbc) < i + 1) { in cbs_read_se_golomb() 105 k = get_bits1(gbc); in cbs_read_se_golomb() 117 k = get_bits1(gbc); in cbs_read_se_golomb() [all …]
|
D | ac3dec.c | 242 GetBitContext *gbc = &s->gbc; in ac3_parse_header() local 248 s->dialog_normalization[(!s->channel_mode)-i] = -get_bits(gbc, 5); in ac3_parse_header() 257 if (s->compression_exists[(!s->channel_mode)-i] = get_bits1(gbc)) { in ac3_parse_header() 259 AC3_HEAVY_RANGE(get_bits(gbc, 8)); in ac3_parse_header() 261 if (get_bits1(gbc)) in ac3_parse_header() 262 skip_bits(gbc, 8); //skip language code in ac3_parse_header() 263 if (get_bits1(gbc)) in ac3_parse_header() 264 skip_bits(gbc, 7); //skip audio production information in ac3_parse_header() 267 skip_bits(gbc, 2); //skip copyright bit and original bitstream bit in ac3_parse_header() 271 if (get_bits1(gbc)) in ac3_parse_header() [all …]
|
D | canopus.c | 33 GetByteContext gbc; in ff_canopus_parse_info_tag() local 36 bytestream2_init(&gbc, src, size); in ff_canopus_parse_info_tag() 39 bytestream2_skip(&gbc, 8); // unknown, 16 bits 1 in ff_canopus_parse_info_tag() 40 par_x = bytestream2_get_le32(&gbc); in ff_canopus_parse_info_tag() 41 par_y = bytestream2_get_le32(&gbc); in ff_canopus_parse_info_tag() 51 bytestream2_skip(&gbc, 16); // unknown RDRT tag in ff_canopus_parse_info_tag() 54 bytestream2_skip(&gbc, 8); // 'FIEL' and 4 bytes 0 in ff_canopus_parse_info_tag() 55 field_order = bytestream2_get_le32(&gbc); in ff_canopus_parse_info_tag()
|
D | hapdec.c | 48 GetByteContext *gbc = &ctx->gbc; in hap_parse_decode_instructions() local 55 int stream_remaining = bytestream2_get_bytes_left(gbc); in hap_parse_decode_instructions() 56 ret = ff_hap_parse_section_header(gbc, §ion_size, §ion_type); in hap_parse_decode_instructions() 60 size -= stream_remaining - bytestream2_get_bytes_left(gbc); in hap_parse_decode_instructions() 68 ctx->chunks[i].compressor = bytestream2_get_byte(gbc) << 4; in hap_parse_decode_instructions() 78 ctx->chunks[i].compressed_size = bytestream2_get_le32(gbc); in hap_parse_decode_instructions() 88 ctx->chunks[i].compressed_offset = bytestream2_get_le32(gbc); in hap_parse_decode_instructions() 133 GetByteContext *gbc = &ctx->gbc; in hap_parse_frame_header() local 139 ret = ff_hap_parse_section_header(gbc, &ctx->texture_section_size, §ion_type); in hap_parse_frame_header() 170 ret = ff_hap_parse_section_header(gbc, §ion_size, §ion_type); in hap_parse_frame_header() [all …]
|
D | hap.c | 57 int ff_hap_parse_section_header(GetByteContext *gbc, int *section_size, in ff_hap_parse_section_header() argument 60 if (bytestream2_get_bytes_left(gbc) < 4) in ff_hap_parse_section_header() 63 *section_size = bytestream2_get_le24(gbc); in ff_hap_parse_section_header() 64 *section_type = bytestream2_get_byte(gbc); in ff_hap_parse_section_header() 67 if (bytestream2_get_bytes_left(gbc) < 4) in ff_hap_parse_section_header() 70 *section_size = bytestream2_get_le32(gbc); in ff_hap_parse_section_header() 73 if (*section_size > bytestream2_get_bytes_left(gbc) || *section_size < 0) in ff_hap_parse_section_header()
|
D | cbs_av1.c | 29 static int cbs_av1_read_uvlc(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_av1_read_uvlc() argument 37 position = get_bits_count(gbc); in cbs_av1_read_uvlc() 41 if (get_bits_left(gbc) < 1) { in cbs_av1_read_uvlc() 47 if (get_bits1(gbc)) in cbs_av1_read_uvlc() 55 if (get_bits_left(gbc) < zeroes) { in cbs_av1_read_uvlc() 61 bits_value = get_bits_long(gbc, zeroes); in cbs_av1_read_uvlc() 147 static int cbs_av1_read_leb128(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_av1_read_leb128() argument 154 position = get_bits_count(gbc); in cbs_av1_read_leb128() 160 err = ff_cbs_read_unsigned(ctx, gbc, 8, "leb128_byte[i]", subscript, in cbs_av1_read_leb128() 210 static int cbs_av1_read_ns(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_av1_read_ns() argument [all …]
|
D | hq_hqa.c | 121 const uint8_t *perm, *src = ctx->gbc.buffer; in hq_decode_frame() 146 slice_off[i] = bytestream2_get_be24(&ctx->gbc) - 4; in hq_decode_frame() 249 const uint8_t *src = ctx->gbc.buffer; in hqa_decode_frame() 251 if (bytestream2_get_bytes_left(&ctx->gbc) < 8 + 4*(num_slices + 1)) in hqa_decode_frame() 254 width = bytestream2_get_be16(&ctx->gbc); in hqa_decode_frame() 255 height = bytestream2_get_be16(&ctx->gbc); in hqa_decode_frame() 268 quant = bytestream2_get_byte(&ctx->gbc); in hqa_decode_frame() 269 bytestream2_skip(&ctx->gbc, 3); in hqa_decode_frame() 282 slice_off[i] = bytestream2_get_be32(&ctx->gbc) - 4; in hqa_decode_frame() 313 bytestream2_init(&ctx->gbc, avpkt->data, avpkt->size); in hq_hqa_decode_frame() [all …]
|
D | hapqa_extract_bsf.c | 51 GetByteContext gbc; in hapqa_extract() local 62 bytestream2_init(&gbc, pkt->data, pkt->size); in hapqa_extract() 63 ret = ff_hap_parse_section_header(&gbc, §ion_size, §ion_type); in hapqa_extract() 75 bytestream2_seek(&gbc, start_section_size, SEEK_SET);/* go to start of the first texture */ in hapqa_extract() 77 ret = ff_hap_parse_section_header(&gbc, §ion_size, §ion_type); in hapqa_extract() 85 bytestream2_seek(&gbc, start_section_size, SEEK_SET);/* go to start of the second texture */ in hapqa_extract() 86 ret = ff_hap_parse_section_header(&gbc, §ion_size, §ion_type); in hapqa_extract()
|
D | dxv.c | 37 GetByteContext gbc; member 259 if (bytestream2_get_bytes_left(gbc) < 4) \ 261 value = bytestream2_get_le32(gbc); \ 272 idx = (bytestream2_get_byte(gbc) + 2) * x; \ 279 idx = (bytestream2_get_le16(gbc) + 0x102) * x; \ 291 GetByteContext *gbc = &ctx->gbc; in dxv_decompress_dxt1() local 297 AV_WL32(ctx->tex_data, bytestream2_get_le32(gbc)); in dxv_decompress_dxt1() 298 AV_WL32(ctx->tex_data + 4, bytestream2_get_le32(gbc)); in dxv_decompress_dxt1() 319 prev = bytestream2_get_le32(gbc); in dxv_decompress_dxt1() 328 prev = bytestream2_get_le32(gbc); in dxv_decompress_dxt1() [all …]
|
D | truehd_core_bsf.c | 40 GetBitContext gbc; in truehd_core_filter() local 63 ret = init_get_bits8(&gbc, pkt->data + 4, pkt->size - 4); in truehd_core_filter() 67 if (show_bits_long(&gbc, 32) == 0xf8726fba) { in truehd_core_filter() 68 if ((ret = ff_mlp_read_major_sync(ctx, &s->hdr, &gbc)) < 0) in truehd_core_filter() 80 units[i].bits[j] = get_bits1(&gbc); in truehd_core_filter() 82 units[i].offset = get_bits(&gbc, 12); in truehd_core_filter() 89 units[i].optional = get_bits(&gbc, 16); in truehd_core_filter() 94 end = get_bits_count(&gbc) >> 3; in truehd_core_filter()
|
D | cbs_vp9.c | 27 static int cbs_vp9_read_s(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_vp9_read_s() argument 36 position = get_bits_count(gbc); in cbs_vp9_read_s() 38 if (get_bits_left(gbc) < width + 1) { in cbs_vp9_read_s() 44 magnitude = get_bits(gbc, width); in cbs_vp9_read_s() 45 sign = get_bits1(gbc); in cbs_vp9_read_s() 95 static int cbs_vp9_read_increment(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_vp9_read_increment() argument 105 position = get_bits_count(gbc); in cbs_vp9_read_increment() 108 if (get_bits_left(gbc) < 1) { in cbs_vp9_read_increment() 113 if (get_bits1(gbc)) { in cbs_vp9_read_increment() 172 static int cbs_vp9_read_le(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_vp9_read_le() argument [all …]
|
D | eac3_core_bsf.c | 29 GetBitContext gbc; in eac3_core_filter() local 35 ret = init_get_bits8(&gbc, pkt->data, pkt->size); in eac3_core_filter() 39 ret = ff_ac3_parse_header(&gbc, &hdr); in eac3_core_filter() 51 ret = init_get_bits8(&gbc, pkt->data + hdr.frame_size, pkt->size - hdr.frame_size); in eac3_core_filter() 55 ret = ff_ac3_parse_header(&gbc, &hdr2); in eac3_core_filter()
|
/third_party/icu/tools/unicodetools/com/ibm/rbm/gui/ |
D | RBGroupPanel.java | 156 GridBagConstraints gbc = new GridBagConstraints(); in initComponents() local 161 gbc.weightx = 1.0; in initComponents() 162 gbc.weighty = 0.0; in initComponents() 163 gbc.gridwidth = GridBagConstraints.REMAINDER; in initComponents() 164 gbc.fill = GridBagConstraints.HORIZONTAL; in initComponents() 165 add(jLabelGroupTitle, gbc); in initComponents() 166 gbc.weightx = 0.0; in initComponents() 167 gbc.gridwidth = 1; in initComponents() 168 add(jLabelGroupNameTitle, gbc); in initComponents() 169 gbc.weightx = 1.0; in initComponents() [all …]
|
/third_party/ffmpeg/tools/ |
D | target_bsf_fuzzer.c | 68 GetByteContext gbc; in LLVMFuzzerTestOneInput() local 72 bytestream2_init(&gbc, data + size, 1024); in LLVMFuzzerTestOneInput() 73 bsf->par_in->width = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 74 bsf->par_in->height = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 75 bsf->par_in->bit_rate = bytestream2_get_le64(&gbc); in LLVMFuzzerTestOneInput() 76 bsf->par_in->bits_per_coded_sample = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 81 id = f->codec_ids[bytestream2_get_byte(&gbc) % i]; in LLVMFuzzerTestOneInput() 83 bsf->par_in->codec_tag = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 86 extradata_size = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 88 bsf->par_in->sample_rate = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() [all …]
|
D | target_dec_fuzzer.c | 219 GetByteContext gbc; in LLVMFuzzerTestOneInput() local 223 bytestream2_init(&gbc, data + size, 1024); in LLVMFuzzerTestOneInput() 224 ctx->width = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 225 ctx->height = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 226 ctx->bit_rate = bytestream2_get_le64(&gbc); in LLVMFuzzerTestOneInput() 227 ctx->bits_per_coded_sample = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 229 flags = bytestream2_get_byte(&gbc); in LLVMFuzzerTestOneInput() 245 extradata_size = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 247 ctx->sample_rate = bytestream2_get_le32(&gbc) & 0x7FFFFFFF; in LLVMFuzzerTestOneInput() 248 …ctx->channels = (unsigned)bytestream2_get_le32(&gbc) % FF_SANE_NB_CHANNE… in LLVMFuzzerTestOneInput() [all …]
|
D | target_dem_fuzzer.c | 132 GetByteContext gbc; in LLVMFuzzerTestOneInput() local 134 bytestream2_init(&gbc, data + size - 2048, 1024); in LLVMFuzzerTestOneInput() 137 io_buffer_size = bytestream2_get_le32(&gbc) & 0xFFFFFFF; in LLVMFuzzerTestOneInput() 138 flags = bytestream2_get_byte(&gbc); in LLVMFuzzerTestOneInput() 140 filesize = bytestream2_get_le64(&gbc) & 0x7FFFFFFFFFFFFFFF; in LLVMFuzzerTestOneInput() 150 avif_count = bytestream2_get_le32(&gbc) % avif_count; in LLVMFuzzerTestOneInput()
|
/third_party/ffmpeg/libavformat/ |
D | redspark.c | 62 GetByteContext gbc; in redspark_read_header() local 89 bytestream2_init(&gbc, header, HEADER_SIZE); in redspark_read_header() 90 bytestream2_seek(&gbc, 0x3c, SEEK_SET); in redspark_read_header() 91 par->sample_rate = bytestream2_get_be32u(&gbc); in redspark_read_header() 97 st->duration = bytestream2_get_be32u(&gbc) * 14; in redspark_read_header() 99 bytestream2_skipu(&gbc, 10); in redspark_read_header() 100 par->channels = bytestream2_get_byteu(&gbc); in redspark_read_header() 106 if (bytestream2_get_byteu(&gbc)) // Loop flag in redspark_read_header() 118 bytestream2_seek(&gbc, coef_off, SEEK_SET); in redspark_read_header() 120 if (bytestream2_get_bufferu(&gbc, par->extradata + i * 32, 32) != 32) { in redspark_read_header() [all …]
|