/third_party/ffmpeg/libavcodec/ |
D | qdrw.c | 48 static int parse_palette(AVCodecContext *avctx, GetByteContext *gbc, in parse_palette() argument 55 unsigned int idx = bytestream2_get_be16(gbc); /* color index */ in parse_palette() 59 bytestream2_skip(gbc, 6); in parse_palette() 64 r = bytestream2_get_byte(gbc); in parse_palette() 65 bytestream2_skip(gbc, 1); in parse_palette() 66 g = bytestream2_get_byte(gbc); in parse_palette() 67 bytestream2_skip(gbc, 1); in parse_palette() 68 b = bytestream2_get_byte(gbc); in parse_palette() 69 bytestream2_skip(gbc, 1); in parse_palette() 75 static int decode_rle_bpp2(AVCodecContext *avctx, AVFrame *p, GetByteContext *gbc) in decode_rle_bpp2() argument [all …]
|
D | eac3dec.c | 201 GetBitContext *gbc = &s->gbc; in ff_eac3_decode_transform_coeffs_aht_ch() local 204 gaq_mode = get_bits(gbc, 2); in ff_eac3_decode_transform_coeffs_aht_ch() 214 gaq_gain[gs++] = get_bits1(gbc) << (gaq_mode-1); in ff_eac3_decode_transform_coeffs_aht_ch() 222 int group_code = get_bits(gbc, 5); in ff_eac3_decode_transform_coeffs_aht_ch() 247 int v = get_bits(gbc, bits); in ff_eac3_decode_transform_coeffs_aht_ch() 262 int mant = get_sbits(gbc, gbits); in ff_eac3_decode_transform_coeffs_aht_ch() 267 mant = get_sbits(gbc, mbits); in ff_eac3_decode_transform_coeffs_aht_ch() 296 GetBitContext *gbc = &s->gbc; in ff_eac3_parse_header() local 326 skip_bits(gbc, 5); // skip bitstream id in ff_eac3_parse_header() 330 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 | 61 GetByteContext gbc; in decode_type2() local 85 … bytestream2_init(&gbc, pb->buffer_start, pb->buffer_end - pb->buffer_start); in decode_type2() 86 bytestream2_seek(&gbc, bytestream2_tell_p(pb) + pos, SEEK_SET); 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() 90 bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); in decode_type2() 130 bytestream2_init(&gbc, pb->buffer_start, pb->buffer_end - pb->buffer_start); in decode_type2() 131 bytestream2_seek(&gbc, bytestream2_tell_p(pb) + pos, SEEK_SET); in decode_type2() 133 bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); in decode_type2() 134 bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); in decode_type2() [all …]
|
D | tdsc.c | 54 GetByteContext gbc; member 197 ctx->cursor_hot_x = bytestream2_get_le16(&ctx->gbc); in tdsc_load_cursor() 198 ctx->cursor_hot_y = bytestream2_get_le16(&ctx->gbc); in tdsc_load_cursor() 199 ctx->cursor_w = bytestream2_get_le16(&ctx->gbc); in tdsc_load_cursor() 200 ctx->cursor_h = bytestream2_get_le16(&ctx->gbc); in tdsc_load_cursor() 203 cursor_fmt = bytestream2_get_le32(&ctx->gbc); in tdsc_load_cursor() 238 uint32_t bits = bytestream2_get_be32(&ctx->gbc); in tdsc_load_cursor() 251 uint32_t bits = bytestream2_get_be32(&ctx->gbc); in tdsc_load_cursor() 283 bytestream2_skip(&ctx->gbc, in tdsc_load_cursor() 288 int val = bytestream2_get_be32(&ctx->gbc); in tdsc_load_cursor() [all …]
|
D | dds.c | 102 GetByteContext gbc; member 115 GetByteContext *gbc = &ctx->gbc; in parse_pixel_format() local 122 bytestream2_skip(gbc, 4 * 3); in parse_pixel_format() 123 gimp_tag = bytestream2_get_le32(gbc); in parse_pixel_format() 127 bytestream2_skip(gbc, 4 * 7); in parse_pixel_format() 130 size = bytestream2_get_le32(gbc); in parse_pixel_format() 135 flags = bytestream2_get_le32(gbc); in parse_pixel_format() 139 fourcc = bytestream2_get_le32(gbc); in parse_pixel_format() 147 bpp = ctx->bpp = bytestream2_get_le32(gbc); // rgbbitcount in parse_pixel_format() 148 r = bytestream2_get_le32(gbc); // rbitmask in parse_pixel_format() [all …]
|
D | ac3_parser.c | 57 int ff_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr) in ff_ac3_parse_header() argument 63 hdr->sync_word = get_bits(gbc, 16); in ff_ac3_parse_header() 68 hdr->bitstream_id = show_bits_long(gbc, 29) & 0x1F; in ff_ac3_parse_header() 84 hdr->crc1 = get_bits(gbc, 16); in ff_ac3_parse_header() 85 hdr->sr_code = get_bits(gbc, 2); in ff_ac3_parse_header() 89 frame_size_code = get_bits(gbc, 6); in ff_ac3_parse_header() 95 skip_bits(gbc, 5); // skip bsid, already got it in ff_ac3_parse_header() 97 hdr->bitstream_mode = get_bits(gbc, 3); in ff_ac3_parse_header() 98 hdr->channel_mode = get_bits(gbc, 3); in ff_ac3_parse_header() 101 hdr->dolby_surround_mode = get_bits(gbc, 2); in ff_ac3_parse_header() [all …]
|
D | rscc.c | 58 GetByteContext gbc; member 155 GetByteContext *gbc = &ctx->gbc; in rscc_decode_frame() local 162 bytestream2_init(gbc, avpkt->data, avpkt->size); in rscc_decode_frame() 165 if (bytestream2_get_bytes_left(gbc) < 12) { in rscc_decode_frame() 171 tiles_nb = bytestream2_get_le16(gbc); in rscc_decode_frame() 194 packed_tiles_size = bytestream2_get_byte(gbc); in rscc_decode_frame() 196 packed_tiles_size = bytestream2_get_le16(gbc); in rscc_decode_frame() 204 if (bytestream2_get_bytes_left(gbc) < packed_tiles_size) { in rscc_decode_frame() 216 gbc->buffer, packed_tiles_size); in rscc_decode_frame() 225 bytestream2_skip(gbc, packed_tiles_size); in rscc_decode_frame() [all …]
|
D | cbs_h2645.c | 32 static int cbs_read_ue_golomb(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_read_ue_golomb() argument 42 position = get_bits_count(gbc); in cbs_read_ue_golomb() 45 if (get_bits_left(gbc) < i + 1) { in cbs_read_ue_golomb() 50 k = get_bits1(gbc); in cbs_read_ue_golomb() 62 k = get_bits1(gbc); in cbs_read_ue_golomb() 84 static int cbs_read_se_golomb(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_read_se_golomb() argument 95 position = get_bits_count(gbc); in cbs_read_se_golomb() 98 if (get_bits_left(gbc) < i + 1) { in cbs_read_se_golomb() 103 k = get_bits1(gbc); in cbs_read_se_golomb() 115 k = get_bits1(gbc); in cbs_read_se_golomb() [all …]
|
D | ac3dec.c | 259 GetBitContext *gbc = &s->gbc; in ac3_parse_header() local 265 s->dialog_normalization[(!s->channel_mode)-i] = -get_bits(gbc, 5); in ac3_parse_header() 274 if (s->compression_exists[(!s->channel_mode)-i] = get_bits1(gbc)) { in ac3_parse_header() 276 AC3_HEAVY_RANGE(get_bits(gbc, 8)); in ac3_parse_header() 278 if (get_bits1(gbc)) in ac3_parse_header() 279 skip_bits(gbc, 8); //skip language code in ac3_parse_header() 280 if (get_bits1(gbc)) in ac3_parse_header() 281 skip_bits(gbc, 7); //skip audio production information in ac3_parse_header() 284 skip_bits(gbc, 2); //skip copyright bit and original bitstream bit in ac3_parse_header() 288 if (get_bits1(gbc)) in ac3_parse_header() [all …]
|
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 | 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 | 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 | 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 | hq_hqa.c | 122 const uint8_t *perm, *src = ctx->gbc.buffer; in hq_decode_frame() 147 slice_off[i] = bytestream2_get_be24(&ctx->gbc) - 4; in hq_decode_frame() 250 const uint8_t *src = ctx->gbc.buffer; in hqa_decode_frame() 252 if (bytestream2_get_bytes_left(&ctx->gbc) < 8 + 4*(num_slices + 1)) in hqa_decode_frame() 255 width = bytestream2_get_be16(&ctx->gbc); in hqa_decode_frame() 256 height = bytestream2_get_be16(&ctx->gbc); in hqa_decode_frame() 269 quant = bytestream2_get_byte(&ctx->gbc); in hqa_decode_frame() 270 bytestream2_skip(&ctx->gbc, 3); in hqa_decode_frame() 283 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 | 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 | 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 | cbs_vp9.c | 26 static int cbs_vp9_read_s(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_vp9_read_s() argument 35 position = get_bits_count(gbc); in cbs_vp9_read_s() 37 if (get_bits_left(gbc) < width + 1) { in cbs_vp9_read_s() 43 magnitude = get_bits(gbc, width); in cbs_vp9_read_s() 44 sign = get_bits1(gbc); in cbs_vp9_read_s() 94 static int cbs_vp9_read_increment(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_vp9_read_increment() argument 104 position = get_bits_count(gbc); in cbs_vp9_read_increment() 107 if (get_bits_left(gbc) < 1) { in cbs_vp9_read_increment() 112 if (get_bits1(gbc)) { in cbs_vp9_read_increment() 171 static int cbs_vp9_read_le(CodedBitstreamContext *ctx, GetBitContext *gbc, in cbs_vp9_read_le() argument [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 | 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 | 67 GetByteContext gbc; in LLVMFuzzerTestOneInput() local 71 bytestream2_init(&gbc, data + size, 1024); in LLVMFuzzerTestOneInput() 72 bsf->par_in->width = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 73 bsf->par_in->height = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 74 bsf->par_in->bit_rate = bytestream2_get_le64(&gbc); in LLVMFuzzerTestOneInput() 75 bsf->par_in->bits_per_coded_sample = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 80 id = f->codec_ids[bytestream2_get_byte(&gbc) % i]; in LLVMFuzzerTestOneInput() 82 bsf->par_in->codec_tag = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 85 extradata_size = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 87 bsf->par_in->sample_rate = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() [all …]
|
D | target_dec_fuzzer.c | 318 GetByteContext gbc; in LLVMFuzzerTestOneInput() local 325 bytestream2_init(&gbc, data + size, 1024); in LLVMFuzzerTestOneInput() 326 ctx->width = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 327 ctx->height = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 328 ctx->bit_rate = bytestream2_get_le64(&gbc); in LLVMFuzzerTestOneInput() 329 ctx->bits_per_coded_sample = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 331 flags = bytestream2_get_byte(&gbc); in LLVMFuzzerTestOneInput() 349 extradata_size = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput() 351 ctx->sample_rate = bytestream2_get_le32(&gbc) & 0x7FFFFFFF; in LLVMFuzzerTestOneInput() 352 …ctx->ch_layout.nb_channels = (unsigned)bytestream2_get_le32(&gbc) % FF_SANE_NB_CHANNE… in LLVMFuzzerTestOneInput() [all …]
|
D | target_dem_fuzzer.c | 139 GetByteContext gbc; in LLVMFuzzerTestOneInput() local 141 bytestream2_init(&gbc, data + size - 2048, 1024); in LLVMFuzzerTestOneInput() 144 io_buffer_size = bytestream2_get_le32(&gbc) & 0xFFFFFFF; in LLVMFuzzerTestOneInput() 145 flags = bytestream2_get_byte(&gbc); in LLVMFuzzerTestOneInput() 147 filesize = bytestream2_get_le64(&gbc) & 0x7FFFFFFFFFFFFFFF; in LLVMFuzzerTestOneInput() 157 avif_count = bytestream2_get_le32(&gbc) % avif_count; in LLVMFuzzerTestOneInput() 171 interrupt_counter = bytestream2_get_le32(&gbc); 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->ch_layout.nb_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 …]
|