/external/chromium_org/media/filters/ |
audio_file_reader.cc | 18 : 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_->sample_fmt [all...] |
audio_file_reader.h | 76 return codec_context_; 85 AVCodecContext* codec_context_; member in class:media::AudioFileReader
|
ffmpeg_video_decoder.cc | 83 // 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_->thread_type = low_delay ? FF_THREAD_SLICE : FF_THREAD_FRAME [all...] |
ffmpeg_audio_decoder.cc | 196 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_.get(), codec, NULL) < 0) [all...] |
ffmpeg_audio_decoder.h | 88 // Releases resources associated with |codec_context_| and |av_frame_| 100 scoped_ptr<AVCodecContext, ScopedPtrAVFreeContext> codec_context_; member in class:media::FFmpegAudioDecoder
|
ffmpeg_video_decoder.h | 71 // 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/ |
ffmpeg_cdm_audio_decoder.cc | 161 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_->channels * config.bits_per_channel / 8 [all...] |
ffmpeg_cdm_video_decoder.cc | 158 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_.get()) [all...] |
ffmpeg_cdm_audio_decoder.h | 66 scoped_ptr<AVCodecContext, ScopedPtrAVFreeContext> codec_context_; member in class:media::FFmpegCdmAudioDecoder
|
ffmpeg_cdm_video_decoder.h | 48 scoped_ptr<AVCodecContext, ScopedPtrAVFreeContext> codec_context_; member in class:media::FFmpegCdmVideoDecoder
|