Home
last modified time | relevance | path

Searched refs:bits_per_raw_sample (Results 1 - 25 of 95) sorted by relevance

1234

/third_party/ffmpeg/libavcodec/
H A Ds302menc.c50 avctx->bits_per_raw_sample = 16; in s302m_encode_init()
53 if (avctx->bits_per_raw_sample > 20) { in s302m_encode_init()
54 if (avctx->bits_per_raw_sample > 24) in s302m_encode_init()
56 avctx->bits_per_raw_sample = 24; in s302m_encode_init()
57 } else if (!avctx->bits_per_raw_sample) { in s302m_encode_init()
58 avctx->bits_per_raw_sample = 24; in s302m_encode_init()
59 } else if (avctx->bits_per_raw_sample <= 20) { in s302m_encode_init()
60 avctx->bits_per_raw_sample = 20; in s302m_encode_init()
66 (avctx->bits_per_raw_sample + 4); in s302m_encode_init()
79 (avctx->bits_per_raw_sample in s302m_encode2_frame()
[all...]
H A Dffv1enc.c289 if (s->bits_per_raw_sample <= 8) { in encode_plane()
301 sample[0][x] = ((uint16_t*)(src + stride*y))[x] >> (16 - s->bits_per_raw_sample); in encode_plane()
304 if((ret = encode_line(s, w, sample, plane_index, s->bits_per_raw_sample)) < 0) in encode_plane()
364 put_symbol(c, state, f->bits_per_raw_sample, 0); in write_header()
427 put_symbol(c, state, f->bits_per_raw_sample, 0); in write_extradata()
571 if (!avctx->bits_per_raw_sample) in encode_init()
572 s->bits_per_raw_sample = 9; in encode_init()
581 if (!avctx->bits_per_raw_sample && !s->bits_per_raw_sample) in encode_init()
582 s->bits_per_raw_sample in encode_init()
[all...]
H A Dffv1dec.c142 if (s->avctx->bits_per_raw_sample <= 8) { in decode_plane()
149 int ret = decode_line(s, w, sample, plane_index, s->avctx->bits_per_raw_sample); in decode_plane()
158 ((uint16_t*)(src + stride*y))[x*pixel_stride] = sample[1][x] << (16 - s->avctx->bits_per_raw_sample) | ((uint16_t **)sample)[1][x] >> (2 * s->avctx->bits_per_raw_sample - 16); in decode_plane()
458 f->avctx->bits_per_raw_sample = get_symbol(c, state, 0); in read_extra_header()
535 f->avctx->bits_per_raw_sample, in read_extra_header()
556 int chroma_planes, chroma_h_shift, chroma_v_shift, transparency, colorspace, bits_per_raw_sample; in read_header() local
577 bits_per_raw_sample = f->version > 0 ? get_symbol(c, state, 0) : f->avctx->bits_per_raw_sample; in read_header()
587 bits_per_raw_sample ! in read_header()
[all...]
H A Dproresdsp.c41 static inline void put_pixel(uint16_t *dst, ptrdiff_t linesize, const int16_t *in, int bits_per_raw_sample) { in put_pixel() argument
48 if (bits_per_raw_sample == 10) { in put_pixel()
81 if (avctx->bits_per_raw_sample == 10) { in ff_proresdsp_init()
84 } else if (avctx->bits_per_raw_sample == 12) { in ff_proresdsp_init()
H A Dfdctdsp.c28 av_unused const unsigned high_bit_depth = avctx->bits_per_raw_sample > 8; in ff_fdctdsp_init()
30 if (avctx->bits_per_raw_sample == 10 || avctx->bits_per_raw_sample == 9) { in ff_fdctdsp_init()
H A Dalacenc.c90 s->avctx->bits_per_raw_sample; in init_sample_buffers()
381 int shift = 32 - s->avctx->bits_per_raw_sample; in write_element()
386 put_sbits(pb, s->avctx->bits_per_raw_sample, in write_element()
393 put_sbits(pb, s->avctx->bits_per_raw_sample, in write_element()
397 s->write_sample_size = s->avctx->bits_per_raw_sample - s->extra_bits + in write_element()
515 if (avctx->bits_per_raw_sample != 24) in alac_encode_init()
517 avctx->bits_per_raw_sample = 24; in alac_encode_init()
519 avctx->bits_per_raw_sample = 16; in alac_encode_init()
537 avctx->bits_per_raw_sample); in alac_encode_init()
548 AV_WB8 (alac_extradata+17, avctx->bits_per_raw_sample); in alac_encode_init()
[all...]
H A Dttaenc.c46 avctx->bits_per_raw_sample = 8; in tta_encode_init()
49 avctx->bits_per_raw_sample = 16; in tta_encode_init()
52 if (avctx->bits_per_raw_sample > 24) in tta_encode_init()
54 avctx->bits_per_raw_sample = 24; in tta_encode_init()
57 s->bps = avctx->bits_per_raw_sample >> 3; in tta_encode_init()
H A Ds302m.c71 avctx->bits_per_raw_sample = bits; in s302m_parse_frame_header()
119 block_size = (avctx->bits_per_raw_sample + 4) / 4; in s302m_decode_frame()
125 avctx->bit_rate = 48000 * channels * (avctx->bits_per_raw_sample + 4) + in s302m_decode_frame()
129 if (avctx->bits_per_raw_sample == 24) { in s302m_decode_frame()
151 } else if (avctx->bits_per_raw_sample == 20) { in s302m_decode_frame()
H A Dpixblockdsp.c83 av_unused const unsigned high_bit_depth = avctx->bits_per_raw_sample > 8; in ff_pixblockdsp_init()
88 switch (avctx->bits_per_raw_sample) { in ff_pixblockdsp_init()
97 if (avctx->bits_per_raw_sample<=8 || avctx->codec_type != AVMEDIA_TYPE_VIDEO) { in ff_pixblockdsp_init()
H A Dproresdec2.c147 avctx->bits_per_raw_sample = 10; in decode_init()
164 avctx->bits_per_raw_sample = 12; in decode_init()
168 avctx->bits_per_raw_sample = 12; in decode_init()
175 if (avctx->bits_per_raw_sample == 10) { in decode_init()
184 av_log(avctx, AV_LOG_ERROR, "Fail to init proresdsp for bits per raw sample %d\n", avctx->bits_per_raw_sample); in decode_init()
196 if (avctx->bits_per_raw_sample == 10){ in decode_init()
198 } else if (avctx->bits_per_raw_sample == 12){ in decode_init()
201 av_log(avctx, AV_LOG_ERROR, "Fail to set unpack_alpha for bits per raw sample %d\n", avctx->bits_per_raw_sample); in decode_init()
261 if (avctx->bits_per_raw_sample == 10) { in decode_frame_header()
267 if (avctx->bits_per_raw_sample in decode_frame_header()
[all...]
H A Dcodec_par.c112 par->bits_per_raw_sample = codec->bits_per_raw_sample; in avcodec_parameters_from_context()
193 codec->bits_per_raw_sample = par->bits_per_raw_sample; in avcodec_parameters_to_context()
H A Didctdsp.c242 av_unused const unsigned high_bit_depth = avctx->bits_per_raw_sample > 8; in ff_idctdsp_init()
260 if (avctx->bits_per_raw_sample == 10 || avctx->bits_per_raw_sample == 9) { in ff_idctdsp_init()
273 } else if (avctx->bits_per_raw_sample == 12) { in ff_idctdsp_init()
H A Dffv1enc_template.c131 int lbd = s->bits_per_raw_sample <= 8; in encode_rgb_frame()
133 int bits = s->bits_per_raw_sample > 0 ? s->bits_per_raw_sample : 8; in encode_rgb_frame()
H A Dffv1dec_template.c132 int lbd = s->avctx->bits_per_raw_sample <= 8; in decode_rgb_frame()
133 int bits = s->avctx->bits_per_raw_sample > 0 ? s->avctx->bits_per_raw_sample : 8; in decode_rgb_frame()
H A Dencode.c435 if ( avctx->bits_per_raw_sample < 0 in encode_preinit_video()
436 || (avctx->bits_per_raw_sample > 8 && pixdesc->comp[0].depth <= 8)) { in encode_preinit_video()
438 avctx->bits_per_raw_sample, pixdesc->comp[0].depth); in encode_preinit_video()
439 avctx->bits_per_raw_sample = pixdesc->comp[0].depth; in encode_preinit_video()
557 if (!avctx->bits_per_raw_sample) in encode_preinit_audio()
558 avctx->bits_per_raw_sample = 8 * av_get_bytes_per_sample(avctx->sample_fmt); in encode_preinit_audio()
H A Dmlp_parser.c169 avctx->bits_per_raw_sample = mh.group1_bits; in mlp_parse()
170 if (avctx->bits_per_raw_sample > 16) in mlp_parse()
H A Davcodec.c572 if (enc->bits_per_raw_sample && enc->pix_fmt != AV_PIX_FMT_NONE && in avcodec_string()
573 enc->bits_per_raw_sample < av_pix_fmt_desc_get(enc->pix_fmt)->comp[0].depth) in avcodec_string()
574 av_bprintf(&bprint, "%d bpc, ", enc->bits_per_raw_sample); in avcodec_string()
676 if ( enc->bits_per_raw_sample > 0 in avcodec_string()
677 && enc->bits_per_raw_sample != av_get_bytes_per_sample(enc->sample_fmt) * 8) in avcodec_string()
678 av_bprintf(&bprint, " (%d bit)", enc->bits_per_raw_sample); in avcodec_string()
H A Dtakdec.c147 switch (avctx->bits_per_raw_sample) { in set_bps_params()
159 avctx->bits_per_raw_sample); in set_bps_params()
192 avctx->bits_per_raw_sample = avctx->bits_per_coded_sample; in tak_decode_init()
519 if (s->sample_shift[chan] >= avctx->bits_per_raw_sample) in decode_channel()
522 *decoded++ = get_sbits(gb, avctx->bits_per_raw_sample - s->sample_shift[chan]); in decode_channel()
728 avctx->bits_per_raw_sample = s->ti.bps; in tak_decode_frame()
752 if (avctx->bits_per_raw_sample <= 16) { in tak_decode_frame()
775 decoded[i] = get_sbits(gb, avctx->bits_per_raw_sample); in tak_decode_frame()
H A Dflacenc.c152 put_bits(&pb, 5, s->avctx->bits_per_raw_sample - 1); in write_streaminfo()
254 avctx->bits_per_raw_sample = 16; in flac_encode_init()
258 if (avctx->bits_per_raw_sample != 24) in flac_encode_init()
260 avctx->bits_per_raw_sample = 24; in flac_encode_init()
384 s->avctx->bits_per_raw_sample); in flac_encode_init()
429 avctx->bits_per_raw_sample); in flac_encode_init()
467 sub->obits = s->avctx->bits_per_raw_sample; in init_frame()
487 s->avctx->bits_per_raw_sample; in copy_samples()
1294 ((s->avctx->bits_per_raw_sample + 7) / 8); in update_md5_sum()
1296 if (s->avctx->bits_per_raw_sample > 1 in update_md5_sum()
[all...]
H A Dcodec_par.h100 * For PCM formats this matches bits_per_raw_sample
110 * have bits_per_raw_sample set to 24, and format set to AV_SAMPLE_FMT_S32.
116 int bits_per_raw_sample; member
/third_party/ffmpeg/libavcodec/mips/
H A Didctdsp_init_mips.c34 (avctx->bits_per_raw_sample != 10) && in ff_idctdsp_init_mips()
35 (avctx->bits_per_raw_sample != 12) && in ff_idctdsp_init_mips()
50 (avctx->bits_per_raw_sample != 10) && in ff_idctdsp_init_mips()
51 (avctx->bits_per_raw_sample != 12) && in ff_idctdsp_init_mips()
H A Dpixblockdsp_init_mips.c41 switch (avctx->bits_per_raw_sample) { in ff_pixblockdsp_init_mips()
49 if (avctx->bits_per_raw_sample <= 8 || avctx->codec_type != in ff_pixblockdsp_init_mips()
/third_party/ffmpeg/libavcodec/loongarch/
H A Didctdsp_init_loongarch.c33 (avctx->bits_per_raw_sample != 10) && in ff_idctdsp_init_loongarch()
34 (avctx->bits_per_raw_sample != 12) && in ff_idctdsp_init_loongarch()
/third_party/ffmpeg/libavcodec/x86/
H A Didctdsp_init.c122 if (avctx->bits_per_raw_sample == 10 && in ff_idctdsp_init_x86()
142 if (avctx->bits_per_raw_sample == 12 && in ff_idctdsp_init_x86()
H A Dproresdsp_init.c38 if (avctx->bits_per_raw_sample == 10){ in ff_proresdsp_init_x86()

Completed in 16 milliseconds

1234