Searched refs:codec_context_ (Results 1 - 10 of 10) sorted by relevance

/external/chromium_org/media/filters/
H A Daudio_file_reader.cc18 : codec_context_(NULL),
48 codec_context_ = NULL;
52 codec_context_ = c;
59 if (!codec_context_)
80 AVCodec* codec = avcodec_find_decoder(codec_context_->codec_id);
83 if (codec_context_->sample_fmt == AV_SAMPLE_FMT_S16P)
84 codec_context_->request_sample_fmt = AV_SAMPLE_FMT_S16;
86 const int result = avcodec_open2(codec_context_, codec, NULL);
94 if (codec_context_->sample_fmt == AV_SAMPLE_FMT_S16P) {
97 << codec_context_
[all...]
H A Daudio_file_reader.h76 return codec_context_;
85 AVCodecContext* codec_context_; member in class:media::AudioFileReader
H A Dffmpeg_video_decoder.cc83 // Don't use |codec_context_| here! With threaded decoding,
243 avcodec_flush_buffers(codec_context_.get());
272 codec_context_->reordered_opaque = buffer->timestamp().InMicroseconds();
276 int result = avcodec_decode_video2(codec_context_.get(),
322 codec_context_.reset();
331 codec_context_.reset(avcodec_alloc_context3(NULL));
332 VideoDecoderConfigToAVCodecContext(config_, codec_context_.get());
334 codec_context_->thread_count = GetThreadCount(codec_context_->codec_id);
335 codec_context_
[all...]
H A Dffmpeg_audio_decoder.cc196 avcodec_flush_buffers(codec_context_.get());
258 codec_context_.get(), av_frame_.get(), &frame_decoded, &packet);
333 codec_context_.reset();
356 codec_context_.reset(avcodec_alloc_context3(NULL));
357 AudioDecoderConfigToAVCodecContext(config_, codec_context_.get());
359 codec_context_->opaque = this;
360 codec_context_->get_buffer2 = GetAudioBuffer;
361 codec_context_->refcounted_frames = 1;
363 AVCodec* codec = avcodec_find_decoder(codec_context_->codec_id);
364 if (!codec || avcodec_open2(codec_context_
[all...]
H A Dffmpeg_audio_decoder.h88 // Releases resources associated with |codec_context_| and |av_frame_|
100 scoped_ptr<AVCodecContext, ScopedPtrAVFreeContext> codec_context_; member in class:media::FFmpegAudioDecoder
H A Dffmpeg_video_decoder.h71 // Releases resources associated with |codec_context_| and |av_frame_|
82 scoped_ptr<AVCodecContext, ScopedPtrAVFreeContext> codec_context_; member in class:media::FFmpegVideoDecoder
/external/chromium_org/media/cdm/ppapi/external_clear_key/
H A Dffmpeg_cdm_audio_decoder.cc161 codec_context_.reset(avcodec_alloc_context3(NULL));
162 CdmAudioDecoderConfigToAVCodecContext(config, codec_context_.get());
165 if (codec_context_->sample_fmt == AV_SAMPLE_FMT_S16P)
166 codec_context_->request_sample_fmt = AV_SAMPLE_FMT_S16;
168 AVCodec* codec = avcodec_find_decoder(codec_context_->codec_id);
169 if (!codec || avcodec_open2(codec_context_.get(), codec, NULL) < 0) {
171 << codec_context_->codec_id;
176 if (codec_context_->sample_fmt == AV_SAMPLE_FMT_S16P) {
178 << codec_context_->sample_fmt;
185 bytes_per_frame_ = codec_context_
[all...]
H A Dffmpeg_cdm_video_decoder.cc158 codec_context_.reset(avcodec_alloc_context3(NULL));
159 CdmVideoDecoderConfigToAVCodecContext(config, codec_context_.get());
163 codec_context_->error_concealment = FF_EC_GUESS_MVS | FF_EC_DEBLOCK;
164 codec_context_->err_recognition = AV_EF_CAREFUL;
165 codec_context_->thread_count = kDecodeThreads;
166 codec_context_->opaque = this;
167 codec_context_->flags |= CODEC_FLAG_EMU_EDGE;
169 AVCodec* codec = avcodec_find_decoder(codec_context_->codec_id);
176 if ((status = avcodec_open2(codec_context_.get(), codec, NULL)) < 0) {
195 avcodec_flush_buffers(codec_context_
[all...]
H A Dffmpeg_cdm_video_decoder.h48 scoped_ptr<AVCodecContext, ScopedPtrAVFreeContext> codec_context_; member in class:media::FFmpegCdmVideoDecoder
H A Dffmpeg_cdm_audio_decoder.h66 scoped_ptr<AVCodecContext, ScopedPtrAVFreeContext> codec_context_; member in class:media::FFmpegCdmAudioDecoder

Completed in 411 milliseconds