Searched refs:codec_context (Results 1 – 7 of 7) sorted by relevance
/external/chromium_org/media/ffmpeg/ |
D | ffmpeg_common.cc | 274 const AVCodecContext* codec_context, in AVCodecContextToAudioDecoderConfig() argument 278 DCHECK_EQ(codec_context->codec_type, AVMEDIA_TYPE_AUDIO); in AVCodecContextToAudioDecoderConfig() 280 AudioCodec codec = CodecIDToAudioCodec(codec_context->codec_id); in AVCodecContextToAudioDecoderConfig() 283 AVSampleFormatToSampleFormat(codec_context->sample_fmt); in AVCodecContextToAudioDecoderConfig() 286 codec_context->channel_layout, codec_context->channels); in AVCodecContextToAudioDecoderConfig() 288 int sample_rate = codec_context->sample_rate; in AVCodecContextToAudioDecoderConfig() 304 if (codec_context->seek_preroll > 0) { in AVCodecContextToAudioDecoderConfig() 306 codec_context->seek_preroll * 1000000.0 / codec_context->sample_rate); in AVCodecContextToAudioDecoderConfig() 313 codec_context->extradata, in AVCodecContextToAudioDecoderConfig() 314 codec_context->extradata_size, in AVCodecContextToAudioDecoderConfig() [all …]
|
D | ffmpeg_common.h | 64 AVCodecContext* codec_context = static_cast<AVCodecContext*>(x); in operator() local 65 avcodec_free_context(&codec_context); in operator() 93 AVCodecContext* codec_context); 101 AVCodecContext* codec_context); 104 const AVCodecContext* codec_context,
|
/external/chromium_org/media/cdm/ppapi/external_clear_key/ |
D | ffmpeg_cdm_audio_decoder.cc | 46 AVCodecContext* codec_context) { in CdmAudioDecoderConfigToAVCodecContext() argument 47 codec_context->codec_type = AVMEDIA_TYPE_AUDIO; in CdmAudioDecoderConfigToAVCodecContext() 48 codec_context->codec_id = CdmAudioCodecToCodecID(config.codec); in CdmAudioDecoderConfigToAVCodecContext() 52 codec_context->sample_fmt = AV_SAMPLE_FMT_U8; in CdmAudioDecoderConfigToAVCodecContext() 55 codec_context->sample_fmt = AV_SAMPLE_FMT_S16; in CdmAudioDecoderConfigToAVCodecContext() 58 codec_context->sample_fmt = AV_SAMPLE_FMT_S32; in CdmAudioDecoderConfigToAVCodecContext() 63 codec_context->sample_fmt = AV_SAMPLE_FMT_NONE; in CdmAudioDecoderConfigToAVCodecContext() 66 codec_context->channels = config.channel_count; in CdmAudioDecoderConfigToAVCodecContext() 67 codec_context->sample_rate = config.samples_per_second; in CdmAudioDecoderConfigToAVCodecContext() 70 codec_context->extradata_size = config.extra_data_size; in CdmAudioDecoderConfigToAVCodecContext() [all …]
|
D | ffmpeg_cdm_video_decoder.cc | 93 AVCodecContext* codec_context) { in CdmVideoDecoderConfigToAVCodecContext() argument 94 codec_context->codec_type = AVMEDIA_TYPE_VIDEO; in CdmVideoDecoderConfigToAVCodecContext() 95 codec_context->codec_id = CdmVideoCodecToCodecID(config.codec); in CdmVideoDecoderConfigToAVCodecContext() 96 codec_context->profile = CdmVideoCodecProfileToProfileID(config.profile); in CdmVideoDecoderConfigToAVCodecContext() 97 codec_context->coded_width = config.coded_size.width; in CdmVideoDecoderConfigToAVCodecContext() 98 codec_context->coded_height = config.coded_size.height; in CdmVideoDecoderConfigToAVCodecContext() 99 codec_context->pix_fmt = CdmVideoFormatToPixelFormat(config.format); in CdmVideoDecoderConfigToAVCodecContext() 102 codec_context->extradata_size = config.extra_data_size; in CdmVideoDecoderConfigToAVCodecContext() 103 codec_context->extradata = reinterpret_cast<uint8_t*>( in CdmVideoDecoderConfigToAVCodecContext() 105 memcpy(codec_context->extradata, config.extra_data, in CdmVideoDecoderConfigToAVCodecContext() [all …]
|
/external/chromium_org/media/filters/ |
D | ffmpeg_video_decoder.cc | 80 int FFmpegVideoDecoder::GetVideoBuffer(struct AVCodecContext* codec_context, in GetVideoBuffer() argument 88 VideoFrame::Format format = PixelFormatToVideoFormat(codec_context->pix_fmt); in GetVideoBuffer() 94 gfx::Size size(codec_context->width, codec_context->height); in GetVideoBuffer() 100 if (codec_context->sample_aspect_ratio.num > 0) { in GetVideoBuffer() 102 codec_context->sample_aspect_ratio.num, in GetVideoBuffer() 103 codec_context->sample_aspect_ratio.den); in GetVideoBuffer() 117 DCHECK_EQ(codec_context->lowres, 0); in GetVideoBuffer() 119 RoundUp(std::max(size.width(), codec_context->coded_width), 2), in GetVideoBuffer() 120 RoundUp(std::max(size.height(), codec_context->coded_height), 2)); in GetVideoBuffer() 136 frame->format = codec_context->pix_fmt; in GetVideoBuffer() [all …]
|
D | ffmpeg_demuxer.cc | 732 AVCodecContext* codec_context = format_context->streams[i]->codec; in CalculateBitrate() local 733 bitrate += codec_context->bit_rate; in CalculateBitrate() 838 const AVCodecContext* codec_context = stream->codec; in OnFindStreamInfoDone() local 839 const AVMediaType codec_type = codec_context->codec_type; in OnFindStreamInfoDone() 847 codec_context->codec_id); in OnFindStreamInfoDone() 860 codec_context->codec_id); in OnFindStreamInfoDone() 869 if (codec_context->codec_id != AV_CODEC_ID_WEBVTT || !text_enabled_) { in OnFindStreamInfoDone() 1167 const AVCodecContext* codec_context = in OnReadFrameDone() local 1169 if (codec_context->codec_id == AV_CODEC_ID_OPUS && in OnReadFrameDone() 1170 codec_context->delay > 0) { in OnReadFrameDone() [all …]
|
D | ffmpeg_video_decoder.h | 51 int GetVideoBuffer(struct AVCodecContext* codec_context,
|