/third_party/ffmpeg/libavformat/ |
D | riffenc.c | 68 if (par->codec_id == AV_CODEC_ID_ADPCM_SWF && par->block_align == 0) { in ff_put_wav_header() 70 avcodec_get_name(par->codec_id)); in ff_put_wav_header() 83 par->codec_id == AV_CODEC_ID_EAC3 || in ff_put_wav_header() 84 av_get_bits_per_sample(par->codec_id) > 16; in ff_put_wav_header() 93 if (par->codec_id == AV_CODEC_ID_ATRAC3 || in ff_put_wav_header() 94 par->codec_id == AV_CODEC_ID_G723_1 || in ff_put_wav_header() 95 par->codec_id == AV_CODEC_ID_MP2 || in ff_put_wav_header() 96 par->codec_id == AV_CODEC_ID_MP3 || in ff_put_wav_header() 97 par->codec_id == AV_CODEC_ID_GSM_MS) { in ff_put_wav_header() 100 if (!(bps = av_get_bits_per_sample(par->codec_id))) { in ff_put_wav_header() [all …]
|
D | cafenc.c | 37 static uint32_t codec_flags(enum AVCodecID codec_id) { in codec_flags() argument 38 switch (codec_id) { in codec_flags() 54 static uint32_t samples_per_packet(enum AVCodecID codec_id, int channels, int block_align) { in samples_per_packet() argument 55 switch (codec_id) { in samples_per_packet() 111 unsigned int codec_tag = ff_codec_get_tag(ff_codec_caf_tags, par->codec_id); in caf_write_header() 120 switch (par->codec_id) { in caf_write_header() 126 if (par->codec_id == AV_CODEC_ID_OPUS && par->channels > 2) { in caf_write_header() 141 if (par->codec_id != AV_CODEC_ID_MP3 || frame_size != 576) in caf_write_header() 142 frame_size = samples_per_packet(par->codec_id, par->channels, par->block_align); in caf_write_header() 152 avio_wb32(pb, codec_flags(par->codec_id)); //< mFormatFlags in caf_write_header() [all …]
|
D | genh.c | 75 case 0: st->codecpar->codec_id = AV_CODEC_ID_ADPCM_PSX; break; in genh_read_header() 79 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_IMA_WAV; break; in genh_read_header() 80 case 2: st->codecpar->codec_id = AV_CODEC_ID_ADPCM_DTK; break; in genh_read_header() 81 case 3: st->codecpar->codec_id = st->codecpar->block_align > 0 ? in genh_read_header() 84 case 4: st->codecpar->codec_id = st->codecpar->block_align > 0 ? in genh_read_header() 87 case 5: st->codecpar->codec_id = st->codecpar->block_align > 0 ? in genh_read_header() 92 st->codecpar->codec_id = AV_CODEC_ID_SDX2_DPCM; break; in genh_read_header() 97 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_IMA_WS; break; in genh_read_header() 98 case 10: st->codecpar->codec_id = AV_CODEC_ID_ADPCM_AICA; break; in genh_read_header() 99 case 12: st->codecpar->codec_id = AV_CODEC_ID_ADPCM_THP; break; in genh_read_header() [all …]
|
D | flvenc.c | 132 if (par->codec_id == AV_CODEC_ID_AAC) // specs force these parameters in get_audio_flags() 135 else if (par->codec_id == AV_CODEC_ID_SPEEX) { in get_audio_flags() 150 if (par->codec_id == AV_CODEC_ID_MP3) { in get_audio_flags() 168 if (par->codec_id != AV_CODEC_ID_MP3) { in get_audio_flags() 184 switch (par->codec_id) { in get_audio_flags() 219 avcodec_get_name(par->codec_id)); in get_audio_flags() 342 put_amf_double(pb, flv->audio_par->codec_id == AV_CODEC_ID_PCM_U8 ? 8 : 16); in write_metadata() 478 const char* type, int codec_id) in unsupported_codec() argument 480 const AVCodecDescriptor *desc = avcodec_descriptor_get(codec_id); in unsupported_codec() 493 if (par->codec_id == AV_CODEC_ID_AAC || par->codec_id == AV_CODEC_ID_H264 in flv_write_codec_header() [all …]
|
D | flvdec.c | 196 int codec_id; in flv_same_audio_codec() local 198 if (!apar->codec_id && !apar->codec_tag) in flv_same_audio_codec() 207 codec_id = bits_per_coded_sample == 8 in flv_same_audio_codec() 214 return codec_id == apar->codec_id; in flv_same_audio_codec() 216 codec_id = bits_per_coded_sample == 8 in flv_same_audio_codec() 219 return codec_id == apar->codec_id; in flv_same_audio_codec() 221 return apar->codec_id == AV_CODEC_ID_AAC; in flv_same_audio_codec() 223 return apar->codec_id == AV_CODEC_ID_ADPCM_SWF; in flv_same_audio_codec() 225 return apar->codec_id == AV_CODEC_ID_SPEEX; in flv_same_audio_codec() 227 return apar->codec_id == AV_CODEC_ID_MP3; in flv_same_audio_codec() [all …]
|
D | rtp.c | 38 enum AVCodecID codec_id; member 77 if (rtp_payload_types[i].codec_id != AV_CODEC_ID_NONE) { in ff_rtp_get_codec_info() 79 par->codec_id = rtp_payload_types[i].codec_id; in ff_rtp_get_codec_info() 106 if (rtp_payload_types[i].codec_id == par->codec_id) { in ff_rtp_get_payload_type() 107 if (par->codec_id == AV_CODEC_ID_H263 && (!fmt || !fmt->oformat || in ff_rtp_get_payload_type() 113 if (par->codec_id == AV_CODEC_ID_ADPCM_G722 && in ff_rtp_get_payload_type() 149 return rtp_payload_types[i].codec_id; in ff_rtp_codec_id()
|
D | moflex.c | 172 unsigned type, ssize, codec_id = 0; in moflex_read_sync() local 188 codec_id = avio_r8(pb); in moflex_read_sync() 189 switch (codec_id) { in moflex_read_sync() 190 case 0: codec_id = AV_CODEC_ID_FASTAUDIO; break; in moflex_read_sync() 191 case 1: codec_id = AV_CODEC_ID_ADPCM_IMA_MOFLEX; break; in moflex_read_sync() 192 case 2: codec_id = AV_CODEC_ID_PCM_S16LE; break; in moflex_read_sync() 194 av_log(s, AV_LOG_ERROR, "Unsupported audio codec: %d\n", codec_id); in moflex_read_sync() 204 codec_id = avio_r8(pb); in moflex_read_sync() 205 switch (codec_id) { in moflex_read_sync() 206 case 0: codec_id = AV_CODEC_ID_MOBICLIP; break; in moflex_read_sync() [all …]
|
D | rsd.c | 71 par->codec_id = ff_codec_get_id(rsd_tags, par->codec_tag); in rsd_read_header() 72 if (!par->codec_id) { in rsd_read_header() 97 switch (par->codec_id) { in rsd_read_header() 154 switch (par->codec_id) { in rsd_read_header() 171 if (par->codec_id == AV_CODEC_ID_XMA2) { in rsd_read_header() 191 if (par->codec_id == AV_CODEC_ID_ADPCM_IMA_RAD || in rsd_read_packet() 192 par->codec_id == AV_CODEC_ID_ADPCM_PSX || in rsd_read_packet() 193 par->codec_id == AV_CODEC_ID_ADPCM_IMA_WAV || in rsd_read_packet() 194 par->codec_id == AV_CODEC_ID_XMA2) { in rsd_read_packet() 214 if (par->codec_id == AV_CODEC_ID_XMA2 && pkt->size >= 1) in rsd_read_packet()
|
D | segafilmenc.c | 52 enum AVCodecID codec_id; in film_write_packet() local 54 codec_id = format_context->streams[pkt->stream_index]->codecpar->codec_id; in film_write_packet() 58 if (codec_id == AV_CODEC_ID_CINEPAK) { in film_write_packet() 102 static int get_audio_codec_id(enum AVCodecID codec_id) in get_audio_codec_id() argument 105 switch (codec_id) { in get_audio_codec_id() 131 if (get_audio_codec_id(st->codecpar->codec_id) < 0) { in film_init() 144 if (st->codecpar->codec_id != AV_CODEC_ID_CINEPAK && in film_init() 145 st->codecpar->codec_id != AV_CODEC_ID_RAWVIDEO) { in film_init() 263 switch (video->codecpar->codec_id) { in film_write_header() 278 int audio_codec = get_audio_codec_id(audio->codecpar->codec_id); in film_write_header()
|
D | musx.c | 70 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_PSX; in musx_read_header() 93 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_IMA_DAT4; in musx_read_header() 105 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_IMA_DAT4; in musx_read_header() 114 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_IMA_DAT4; in musx_read_header() 120 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_PSX; in musx_read_header() 126 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_PSX; in musx_read_header() 142 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_IMA_DAT4; in musx_read_header() 148 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_PSX; in musx_read_header() 154 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_IMA_DAT4; in musx_read_header()
|
D | fsb.c | 76 par->codec_id = AV_CODEC_ID_PCM_S16LE; in fsb_read_header() 80 par->codec_id = AV_CODEC_ID_ADPCM_IMA_WAV; in fsb_read_header() 83 par->codec_id = AV_CODEC_ID_ADPCM_PSX; in fsb_read_header() 86 par->codec_id = AV_CODEC_ID_ADPCM_THP; in fsb_read_header() 113 par->codec_id = AV_CODEC_ID_XMA2; in fsb_read_header() 116 par->codec_id = AV_CODEC_ID_ADPCM_THP; in fsb_read_header() 132 switch (par->codec_id) { in fsb_read_header() 176 if (par->codec_id == AV_CODEC_ID_ADPCM_THP && in fsb_read_packet() 194 if (par->codec_id == AV_CODEC_ID_XMA2 && pkt->size >= 1) in fsb_read_packet()
|
D | ivfenc.c | 39 !(par->codec_id == AV_CODEC_ID_AV1 || in ivf_init() 40 par->codec_id == AV_CODEC_ID_VP8 || in ivf_init() 41 par->codec_id == AV_CODEC_ID_VP9)) { in ivf_init() 46 if (par->codec_id == AV_CODEC_ID_VP9) { in ivf_init() 50 } else if (par->codec_id == AV_CODEC_ID_AV1) { in ivf_init() 68 par->codec_id == AV_CODEC_ID_VP9 ? AV_RL32("VP90") : in ivf_write_header() 69 par->codec_id == AV_CODEC_ID_VP8 ? AV_RL32("VP80") : AV_RL32("AV01")); in ivf_write_header()
|
D | aiffdec.c | 133 par->codec_id = ff_codec_get_id(ff_codec_aiff_tags, par->codec_tag); in get_aiff_header() 134 if (par->codec_id == AV_CODEC_ID_NONE) in get_aiff_header() 140 if (version != AIFF_C_VERSION1 || par->codec_id == AV_CODEC_ID_PCM_S16BE) { in get_aiff_header() 141 par->codec_id = aiff_codec_get_id(par->bits_per_coded_sample); in get_aiff_header() 142 par->bits_per_coded_sample = av_get_bits_per_sample(par->codec_id); in get_aiff_header() 145 switch (par->codec_id) { in get_aiff_header() 182 par->block_align = (av_get_bits_per_sample(par->codec_id) * par->channels) >> 3; in get_aiff_header() 311 … if ( (st->codecpar->codec_id == AV_CODEC_ID_QDMC || st->codecpar->codec_id == AV_CODEC_ID_QDM2) in aiff_read_header() 315 } else if (st->codecpar->codec_id == AV_CODEC_ID_QCELP) { in aiff_read_header() 337 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_XA; in aiff_read_header() [all …]
|
/third_party/gstreamer/gst_libav/ext/libav/ |
D | gstavcodecmap.c | 248 enum AVCodecID codec_id, gboolean encode, const char *mimetype, in gst_ff_vid_caps_new() argument 255 GST_LOG ("context:%p, codec_id:%d, mimetype:%s", context, codec_id, mimetype); in gst_ff_vid_caps_new() 282 switch (codec_id) { in gst_ff_vid_caps_new() 543 enum AVCodecID codec_id, gboolean encode, const char *mimetype, in gst_ff_aud_caps_new() argument 572 switch (codec_id) { in gst_ff_aud_caps_new() 648 switch (codec_id) { in gst_ff_aud_caps_new() 750 gst_ffmpeg_codecid_is_image (enum AVCodecID codec_id) in gst_ffmpeg_codecid_is_image() argument 752 switch (codec_id) { in gst_ffmpeg_codecid_is_image() 788 gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id, in gst_ffmpeg_codecid_to_caps() argument 794 GST_LOG ("codec_id:%d, context:%p, encode:%d", codec_id, context, encode); in gst_ffmpeg_codecid_to_caps() [all …]
|
D | gstavcodecmap.h | 33 gst_ffmpeg_codecid_is_image (enum AVCodecID codec_id); 41 gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id, 52 enum AVCodecID codec_id, 57 enum AVCodecID codec_id, 77 gst_ffmpeg_caps_with_codecid (enum AVCodecID codec_id,
|
/third_party/ffmpeg/libavcodec/mips/ |
D | h264pred_init_mips.c | 27 av_cold void ff_h264_pred_init_mips(H264PredContext *h, int codec_id, in ff_h264_pred_init_mips() argument 50 switch (codec_id) { in ff_h264_pred_init_mips() 66 if (codec_id == AV_CODEC_ID_SVQ3 || codec_id == AV_CODEC_ID_H264) { in ff_h264_pred_init_mips() 82 if (codec_id != AV_CODEC_ID_VP7 && codec_id != AV_CODEC_ID_VP8) { in ff_h264_pred_init_mips() 87 if (codec_id != AV_CODEC_ID_RV40 && codec_id != AV_CODEC_ID_VP7 in ff_h264_pred_init_mips() 88 && codec_id != AV_CODEC_ID_VP8) { in ff_h264_pred_init_mips() 105 if (codec_id == AV_CODEC_ID_VP7 || codec_id == AV_CODEC_ID_VP8) { in ff_h264_pred_init_mips() 119 switch (codec_id) { in ff_h264_pred_init_mips()
|
/third_party/ffmpeg/libavcodec/arm/ |
D | h264pred_init_arm.c | 48 static av_cold void h264_pred_init_neon(H264PredContext *h, int codec_id, in h264_pred_init_neon() argument 61 if (codec_id != AV_CODEC_ID_VP7 && codec_id != AV_CODEC_ID_VP8) in h264_pred_init_neon() 64 if (codec_id != AV_CODEC_ID_RV40 && codec_id != AV_CODEC_ID_VP7 && in h264_pred_init_neon() 65 codec_id != AV_CODEC_ID_VP8) { in h264_pred_init_neon() 82 if (codec_id != AV_CODEC_ID_SVQ3 && codec_id != AV_CODEC_ID_RV40 && in h264_pred_init_neon() 83 codec_id != AV_CODEC_ID_VP7 && codec_id != AV_CODEC_ID_VP8) in h264_pred_init_neon() 88 av_cold void ff_h264_pred_init_arm(H264PredContext *h, int codec_id, in ff_h264_pred_init_arm() argument 94 h264_pred_init_neon(h, codec_id, bit_depth, chroma_format_idc); in ff_h264_pred_init_arm()
|
/third_party/ffmpeg/libavcodec/aarch64/ |
D | h264pred_init.c | 48 static av_cold void h264_pred_init_neon(H264PredContext *h, int codec_id, in h264_pred_init_neon() argument 60 if (codec_id != AV_CODEC_ID_VP7 && codec_id != AV_CODEC_ID_VP8) in h264_pred_init_neon() 63 if (codec_id != AV_CODEC_ID_RV40 && codec_id != AV_CODEC_ID_VP7 && in h264_pred_init_neon() 64 codec_id != AV_CODEC_ID_VP8) { in h264_pred_init_neon() 81 if (codec_id != AV_CODEC_ID_SVQ3 && codec_id != AV_CODEC_ID_RV40 && in h264_pred_init_neon() 82 codec_id != AV_CODEC_ID_VP7 && codec_id != AV_CODEC_ID_VP8) in h264_pred_init_neon() 86 av_cold void ff_h264_pred_init_aarch64(H264PredContext *h, int codec_id, in ff_h264_pred_init_aarch64() argument 92 h264_pred_init_neon(h, codec_id, bit_depth, chroma_format_idc); in ff_h264_pred_init_aarch64()
|
/third_party/ffmpeg/libavdevice/ |
D | v4l2-common.c | 73 uint32_t ff_fmt_ff2v4l(enum AVPixelFormat pix_fmt, enum AVCodecID codec_id) in ff_fmt_ff2v4l() argument 77 for (i = 0; ff_fmt_conversion_table[i].codec_id != AV_CODEC_ID_NONE; i++) { in ff_fmt_ff2v4l() 78 if ((codec_id == AV_CODEC_ID_NONE || in ff_fmt_ff2v4l() 79 ff_fmt_conversion_table[i].codec_id == codec_id) && in ff_fmt_ff2v4l() 89 enum AVPixelFormat ff_fmt_v4l2ff(uint32_t v4l2_fmt, enum AVCodecID codec_id) in ff_fmt_v4l2ff() argument 93 for (i = 0; ff_fmt_conversion_table[i].codec_id != AV_CODEC_ID_NONE; i++) { in ff_fmt_v4l2ff() 95 ff_fmt_conversion_table[i].codec_id == codec_id) { in ff_fmt_v4l2ff() 107 for (i = 0; ff_fmt_conversion_table[i].codec_id != AV_CODEC_ID_NONE; i++) { in ff_fmt_v4l2codec() 109 return ff_fmt_conversion_table[i].codec_id; in ff_fmt_v4l2codec()
|
/third_party/ffmpeg/libavcodec/ |
D | mpegaudio_parser.c | 69 enum AVCodecID codec_id = avctx->codec_id; in mpegaudio_parse() local 73 … ret = ff_mpa_decode_header(state, &sr, &channels, &frame_size, &bit_rate, &codec_id); in mpegaudio_parse() 78 … int header_threshold = avctx->codec_id != AV_CODEC_ID_NONE && avctx->codec_id != codec_id; in mpegaudio_parse() 89 avctx->codec_id = codec_id; in mpegaudio_parse() 99 } else if (codec_id == AV_CODEC_ID_MP3ADU) { in mpegaudio_parse()
|
D | utils.c | 247 if (s->codec_id == AV_CODEC_ID_SVQ1) { in avcodec_align_dimensions2() 253 if (s->codec_id == AV_CODEC_ID_RPZA) { in avcodec_align_dimensions2() 257 if (s->codec_id == AV_CODEC_ID_INTERPLAY_VIDEO) { in avcodec_align_dimensions2() 265 if (s->codec_id == AV_CODEC_ID_SMC || in avcodec_align_dimensions2() 266 s->codec_id == AV_CODEC_ID_CINEPAK) { in avcodec_align_dimensions2() 270 if (s->codec_id == AV_CODEC_ID_JV || in avcodec_align_dimensions2() 271 s->codec_id == AV_CODEC_ID_ARGO || in avcodec_align_dimensions2() 272 s->codec_id == AV_CODEC_ID_INTERPLAY_VIDEO) { in avcodec_align_dimensions2() 276 if (s->codec_id == AV_CODEC_ID_MJPEG || in avcodec_align_dimensions2() 277 s->codec_id == AV_CODEC_ID_MJPEGB || in avcodec_align_dimensions2() [all …]
|
D | parser.c | 34 AVCodecParserContext *av_parser_init(int codec_id) in av_parser_init() argument 41 if (codec_id == AV_CODEC_ID_NONE) in av_parser_init() 45 if (parser->codec_ids[0] == codec_id || in av_parser_init() 46 parser->codec_ids[1] == codec_id || in av_parser_init() 47 parser->codec_ids[2] == codec_id || in av_parser_init() 48 parser->codec_ids[3] == codec_id || in av_parser_init() 49 parser->codec_ids[4] == codec_id) in av_parser_init() 128 av_assert1(avctx->codec_id != AV_CODEC_ID_NONE); in av_parser_parse2() 131 av_assert1(avctx->codec_id == s->parser->codec_ids[0] || in av_parser_parse2() 132 avctx->codec_id == s->parser->codec_ids[1] || in av_parser_parse2() [all …]
|
D | aac_ac3_parser.c | 81 if(s->codec_id) in ff_aac_ac3_parse() 82 avctx->codec_id = s->codec_id; in ff_aac_ac3_parse() 90 if (avctx->codec_id != AV_CODEC_ID_AAC) { in ff_aac_ac3_parse() 92 if (!CONFIG_EAC3_DECODER || avctx->codec_id != AV_CODEC_ID_EAC3) { in ff_aac_ac3_parse() 102 if (!CONFIG_EAC3_DECODER || avctx->codec_id != AV_CODEC_ID_EAC3) { in ff_aac_ac3_parse()
|
/third_party/ffmpeg/libavcodec/x86/ |
D | h264_intrapred_init.c | 185 av_cold void ff_h264_pred_init_x86(H264PredContext *h, int codec_id, in ff_h264_pred_init_x86() argument 199 if (codec_id == AV_CODEC_ID_VP7 || codec_id == AV_CODEC_ID_VP8) { in ff_h264_pred_init_x86() 206 if (codec_id == AV_CODEC_ID_SVQ3) { in ff_h264_pred_init_x86() 209 } else if (codec_id == AV_CODEC_ID_RV40) { in ff_h264_pred_init_x86() 235 if (codec_id == AV_CODEC_ID_VP7 || codec_id == AV_CODEC_ID_VP8 || in ff_h264_pred_init_x86() 236 codec_id == AV_CODEC_ID_H264) { in ff_h264_pred_init_x86() 239 if (codec_id == AV_CODEC_ID_SVQ3 || codec_id == AV_CODEC_ID_H264) { in ff_h264_pred_init_x86() 242 if (codec_id != AV_CODEC_ID_RV40) { in ff_h264_pred_init_x86() 245 if (codec_id == AV_CODEC_ID_SVQ3 || codec_id == AV_CODEC_ID_H264) { in ff_h264_pred_init_x86() 251 if (codec_id == AV_CODEC_ID_VP7 || codec_id == AV_CODEC_ID_VP8) { in ff_h264_pred_init_x86() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/ |
D | gstnvenc.c | 318 gst_nvenc_get_supported_input_formats (gpointer encoder, GUID codec_id, in gst_nvenc_get_supported_input_formats() argument 358 codec_id, ¶m, &support_yuv444) != NV_ENC_SUCCESS) { in gst_nvenc_get_supported_input_formats() 364 codec_id, ¶m, &support_10bit) != NV_ENC_SUCCESS) { in gst_nvenc_get_supported_input_formats() 369 codec_id, format_list, G_N_ELEMENTS (format_list), in gst_nvenc_get_supported_input_formats() 447 gst_nvenc_get_interlace_modes (gpointer enc, GUID codec_id) in gst_nvenc_get_interlace_modes() argument 457 if (NvEncGetEncodeCaps (enc, codec_id, &caps_param, in gst_nvenc_get_interlace_modes() 488 const GUID codec_id; member 496 gst_nvenc_get_supported_codec_profiles (gpointer enc, GUID codec_id) in gst_nvenc_get_supported_codec_profiles() argument 536 codec_id, ¶m, &support_yuv444) != NV_ENC_SUCCESS) { in gst_nvenc_get_supported_codec_profiles() 542 codec_id, ¶m, &support_10bit) != NV_ENC_SUCCESS) { in gst_nvenc_get_supported_codec_profiles() [all …]
|