/third_party/ffmpeg/libavcodec/ |
D | pcm-dvd.c | 77 avctx->bits_per_coded_sample = 16 + (header[1] >> 6 & 3) * 4; in pcm_dvd_parse_header() 78 if (avctx->bits_per_coded_sample == 28) { in pcm_dvd_parse_header() 81 avctx->bits_per_coded_sample); in pcm_dvd_parse_header() 84 avctx->sample_fmt = avctx->bits_per_coded_sample == 16 ? AV_SAMPLE_FMT_S16 in pcm_dvd_parse_header() 86 avctx->bits_per_raw_sample = avctx->bits_per_coded_sample; in pcm_dvd_parse_header() 96 avctx->bits_per_coded_sample; in pcm_dvd_parse_header() 101 if (avctx->bits_per_coded_sample == 16) { in pcm_dvd_parse_header() 110 s->block_size = 4 * avctx->bits_per_coded_sample / 8; in pcm_dvd_parse_header() 116 s->block_size = 8 * avctx->bits_per_coded_sample / 8; in pcm_dvd_parse_header() 123 avctx->bits_per_coded_sample / 8; in pcm_dvd_parse_header() [all …]
|
D | rawdec.c | 80 avctx->bits_per_coded_sample); in raw_init_decoder() 83 avctx->bits_per_coded_sample); in raw_init_decoder() 86 else if (avctx->pix_fmt == AV_PIX_FMT_NONE && avctx->bits_per_coded_sample) in raw_init_decoder() 88 avctx->bits_per_coded_sample); in raw_init_decoder() 106 if (avctx->bits_per_coded_sample == 1) in raw_init_decoder() 157 w16(dst + i, SCALE16(r16(buf + i), avctx->bits_per_coded_sample)); \ 162 int sample = get_bits(&gb, avctx->bits_per_coded_sample); \ 163 w16(dst + i*2, SCALE16(sample, avctx->bits_per_coded_sample)); \ 210 if ((avctx->bits_per_coded_sample == 8 || avctx->bits_per_coded_sample == 4 || in MKSCALE16() 211 avctx->bits_per_coded_sample == 2 || avctx->bits_per_coded_sample == 1 || in MKSCALE16() [all …]
|
D | pcm-dvdenc.c | 51 avctx->bits_per_coded_sample = 16; in pcm_dvd_encode_init() 55 avctx->bits_per_coded_sample = 24; in pcm_dvd_encode_init() 60 avctx->bits_per_coded_sample = 16 + quant * 4; in pcm_dvd_encode_init() 61 avctx->block_align = avctx->channels * avctx->bits_per_coded_sample / 8; in pcm_dvd_encode_init() 78 s->block_size = 4 * avctx->bits_per_coded_sample / 8; in pcm_dvd_encode_init() 84 s->block_size = 8 * avctx->bits_per_coded_sample / 8; in pcm_dvd_encode_init() 91 avctx->bits_per_coded_sample / 8; in pcm_dvd_encode_init()
|
D | pcm-bluray.c | 73 avctx->bits_per_coded_sample = bits_per_samples[header[3] >> 6]; in pcm_bluray_parse_header() 74 if (!(avctx->bits_per_coded_sample == 16 || avctx->bits_per_coded_sample == 24)) { in pcm_bluray_parse_header() 75 … av_log(avctx, AV_LOG_ERROR, "unsupported sample depth (%d)\n", avctx->bits_per_coded_sample); in pcm_bluray_parse_header() 78 avctx->sample_fmt = avctx->bits_per_coded_sample == 16 ? AV_SAMPLE_FMT_S16 in pcm_bluray_parse_header() 81 avctx->bits_per_raw_sample = avctx->bits_per_coded_sample; in pcm_bluray_parse_header() 116 avctx->bits_per_coded_sample; in pcm_bluray_parse_header() 121 avctx->channels, avctx->bits_per_coded_sample, in pcm_bluray_parse_header()
|
D | msrle.c | 56 switch (avctx->bits_per_coded_sample) { in msrle_decode_init() 90 int istride = FFALIGN(avctx->width*avctx->bits_per_coded_sample, 32) / 8; in msrle_decode_frame() 99 if (avctx->bits_per_coded_sample > 1 && avctx->bits_per_coded_sample <= 8) { in msrle_decode_frame() 124 if (avctx->bits_per_coded_sample == 4) { in msrle_decode_frame() 139 ff_msrle_decode(avctx, s->frame, avctx->bits_per_coded_sample, &s->gb); in msrle_decode_frame()
|
D | bmpenc.c | 37 avctx->bits_per_coded_sample = 32; in bmp_encode_init() 40 avctx->bits_per_coded_sample = 24; in bmp_encode_init() 45 avctx->bits_per_coded_sample = 16; in bmp_encode_init() 53 avctx->bits_per_coded_sample = 8; in bmp_encode_init() 56 avctx->bits_per_coded_sample = 1; in bmp_encode_init() 74 int bit_count = avctx->bits_per_coded_sample; in bmp_encode_frame()
|
D | mscc.c | 55 switch (avctx->bits_per_coded_sample) { in rle_uncompress() 71 switch (avctx->bits_per_coded_sample) { in rle_uncompress() 104 switch (avctx->bits_per_coded_sample) { in rle_uncompress() 208 switch (avctx->bits_per_coded_sample) { in decode_init() 214 av_log(avctx, AV_LOG_ERROR, "Unsupported bitdepth %i\n", avctx->bits_per_coded_sample); in decode_init() 218 s->bpp = avctx->bits_per_coded_sample >> 3; in decode_init() 219 stride = 4 * ((avctx->width * avctx->bits_per_coded_sample + 31) / 32); in decode_init()
|
D | cscd.c | 135 switch (avctx->bits_per_coded_sample) { in decode_init() 142 avctx->bits_per_coded_sample); in decode_init() 145 c->bpp = avctx->bits_per_coded_sample; in decode_init() 146 c->linelen = avctx->width * avctx->bits_per_coded_sample / 8; in decode_init()
|
D | aasc.c | 51 switch (avctx->bits_per_coded_sample) { in aasc_decode_init() 69 av_log(avctx, AV_LOG_ERROR, "Unsupported bit depth: %d\n", avctx->bits_per_coded_sample); in aasc_decode_init() 100 psize = avctx->bits_per_coded_sample / 8; in aasc_decode_frame()
|
D | codec_par.c | 100 par->bits_per_coded_sample = codec->bits_per_coded_sample; in avcodec_parameters_from_context() 155 codec->bits_per_coded_sample = par->bits_per_coded_sample; in avcodec_parameters_to_context()
|
D | 8bps.c | 124 if (avctx->bits_per_coded_sample <= 8) { in decode_frame() 151 switch (avctx->bits_per_coded_sample) { in decode_init() 171 avctx->bits_per_coded_sample); in decode_init()
|
/third_party/ffmpeg/libavformat/ |
D | nistspheredec.c | 61 if (!st->codecpar->bits_per_coded_sample) in nist_read_header() 62 st->codecpar->bits_per_coded_sample = bps << 3; in nist_read_header() 66 … st->codecpar->codec_id = ff_get_pcm_codec_id(st->codecpar->bits_per_coded_sample, in nist_read_header() 83 … st->codecpar->block_align = st->codecpar->bits_per_coded_sample * st->codecpar->channels / 8; in nist_read_header() 119 sscanf(buffer, "%*s %*s %d", &st->codecpar->bits_per_coded_sample); in nist_read_header() 120 … if (st->codecpar->bits_per_coded_sample <= 0 || st->codecpar->bits_per_coded_sample > INT16_MAX) in nist_read_header()
|
D | riffenc.c | 101 if (par->bits_per_coded_sample) in ff_put_wav_header() 102 bps = par->bits_per_coded_sample; in ff_put_wav_header() 107 if (bps != par->bits_per_coded_sample && par->bits_per_coded_sample) { in ff_put_wav_header() 111 par->bits_per_coded_sample, bps); in ff_put_wav_header() 225 if (pix_fmt == AV_PIX_FMT_NONE && par->bits_per_coded_sample == 1) in ff_put_bmp_header() 240 avio_wl16(pb, par->bits_per_coded_sample ? par->bits_per_coded_sample : 24); in ff_put_bmp_header() 243 …avio_wl32(pb, (par->width * par->height * (par->bits_per_coded_sample ? par->bits_per_coded_sample… in ff_put_bmp_header() 249 avio_wl32(pb, pal_avi ? 1 << par->bits_per_coded_sample : 0); in ff_put_bmp_header() 259 for (i = 0; i < 1 << par->bits_per_coded_sample; i++) { in ff_put_bmp_header()
|
D | rpl.c | 156 … vst->codecpar->bits_per_coded_sample = read_line_and_int(pb, &error); // video bits per sample in rpl_read_header() 168 vst->codecpar->bits_per_coded_sample = 16; in rpl_read_header() 202 … ast->codecpar->bits_per_coded_sample = read_int(line, &endptr, &error); // audio bits per sample in rpl_read_header() 206 if (ast->codecpar->bits_per_coded_sample == 0) in rpl_read_header() 207 ast->codecpar->bits_per_coded_sample = 4; in rpl_read_header() 211 if (ast->codecpar->bit_rate > INT64_MAX / ast->codecpar->bits_per_coded_sample) in rpl_read_header() 213 ast->codecpar->bit_rate *= ast->codecpar->bits_per_coded_sample; in rpl_read_header() 218 if (ast->codecpar->bits_per_coded_sample == 16) { in rpl_read_header() 222 } else if (ast->codecpar->bits_per_coded_sample == 8) { in rpl_read_header() 238 if (ast->codecpar->bits_per_coded_sample == 8) { in rpl_read_header() [all …]
|
D | riffdec.c | 68 par->bits_per_coded_sample = bps; in parse_waveformatex() 80 par->bits_per_coded_sample); in parse_waveformatex() 119 par->bits_per_coded_sample = 8; in ff_get_wav_header() 122 par->bits_per_coded_sample = avio_rl16(pb); in ff_get_wav_header() 124 par->bits_per_coded_sample = avio_rb16(pb); in ff_get_wav_header() 132 par->bits_per_coded_sample); in ff_get_wav_header() 187 par->bits_per_coded_sample = par->bit_rate / par->sample_rate; in ff_get_wav_header() 218 st->codecpar->bits_per_coded_sample = avio_rl16(pb); /* depth */ in ff_get_bmp_header()
|
D | apm.c | 127 par->bits_per_coded_sample = avio_rl16(s->pb); in apm_read_header() 136 if (par->bits_per_coded_sample != 4) in apm_read_header() 152 par->bits_per_coded_sample; in apm_read_header() 178 (8 / par->bits_per_coded_sample) / in apm_read_header() 199 pkt->duration = ret * (8 / par->bits_per_coded_sample) / par->channels; in apm_read_packet() 269 avio_wl16(s->pb, par->bits_per_coded_sample); in apm_write_header()
|
D | xwma.c | 137 st->codecpar->extradata[ 0] = st->codecpar->bits_per_coded_sample; in xwma_read_header() 154 if (!st->codecpar->bits_per_coded_sample) { in xwma_read_header() 156 st->codecpar->bits_per_coded_sample); in xwma_read_header() 239 = (st->codecpar->channels * st->codecpar->bits_per_coded_sample) >> 3; in xwma_read_header() 247 st->codecpar->bits_per_coded_sample, st->codecpar->channels); in xwma_read_header()
|
D | kvag.c | 82 par->bits_per_coded_sample = 4; in kvag_read_header() 87 par->bits_per_coded_sample; in kvag_read_header() 92 (8 / par->bits_per_coded_sample) / in kvag_read_header() 108 pkt->duration = ret * (8 / par->bits_per_coded_sample) / par->channels; in kvag_read_packet()
|
D | soxdec.c | 115 st->codecpar->bits_per_coded_sample = 32; in sox_read_header() 117 st->codecpar->bits_per_coded_sample * in sox_read_header() 119 st->codecpar->block_align = st->codecpar->bits_per_coded_sample * in sox_read_header()
|
D | aiffenc.c | 166 if (!par->bits_per_coded_sample) in aiff_write_header() 167 par->bits_per_coded_sample = av_get_bits_per_sample(par->codec_id); in aiff_write_header() 168 if (!par->bits_per_coded_sample) { in aiff_write_header() 173 par->block_align = (par->bits_per_coded_sample * par->channels) >> 3; in aiff_write_header() 175 avio_wb16(pb, par->bits_per_coded_sample); /* Sample size */ in aiff_write_header()
|
D | g722.c | 40 st->codecpar->bits_per_coded_sample = in g722_read_header() 43 av_assert0(st->codecpar->bits_per_coded_sample > 0); in g722_read_header()
|
D | rtpdec_g726.c | 32 par->bits_per_coded_sample = bitrate/8; \ 33 par->bit_rate = par->bits_per_coded_sample * par->sample_rate; \
|
D | voc_packet.c | 76 par->bits_per_coded_sample = av_get_bits_per_sample(par->codec_id); in ff_voc_get_packet() 105 par->bits_per_coded_sample = avio_r8(pb); in ff_voc_get_packet() 143 par->bit_rate = (int64_t)par->sample_rate * par->channels * par->bits_per_coded_sample; in ff_voc_get_packet()
|
D | wvedec.c | 47 st->codecpar->bits_per_coded_sample = av_get_bits_per_sample(st->codecpar->codec_id); in wve_read_header() 48 st->codecpar->block_align = st->codecpar->bits_per_coded_sample * st->codecpar->channels / 8; in wve_read_header()
|
D | mlvdec.c | 137 unsigned bits_per_coded_sample; in scan_file() local 144 bits_per_coded_sample = avio_rl32(pb); in scan_file() 145 if (bits_per_coded_sample > (INT_MAX - 7) / (width * height)) { in scan_file() 148 bits_per_coded_sample, width, height); in scan_file() 153 vst->codecpar->bits_per_coded_sample = bits_per_coded_sample; in scan_file() 438 … pkt, (st->codecpar->width * st->codecpar->height * st->codecpar->bits_per_coded_sample + 7) >> 3); in read_packet()
|