Home | History | Annotate | Download | only in filters

Lines Matching refs:codec_context_

18     : codec_context_(NULL),
41 codec_context_ = NULL;
45 codec_context_ = c;
52 if (!codec_context_)
62 AVCodec* codec = avcodec_find_decoder(codec_context_->codec_id);
65 if (codec_context_->sample_fmt == AV_SAMPLE_FMT_S16P)
66 codec_context_->request_sample_fmt = AV_SAMPLE_FMT_S16;
68 if ((result = avcodec_open2(codec_context_, codec, NULL)) < 0) {
75 if (codec_context_->sample_fmt == AV_SAMPLE_FMT_S16P) {
78 << codec_context_->sample_fmt;
90 codec_context_->channel_layout, codec_context_->channels) ==
96 channels_ = codec_context_->channels;
97 sample_rate_ = codec_context_->sample_rate;
98 av_sample_format_ = codec_context_->sample_fmt;
104 // |codec_context_| is a stream inside glue_->format_context(), so it is
107 codec_context_ = NULL;
111 DCHECK(glue_.get() && codec_context_) <<
118 size_t bytes_per_sample = av_get_bytes_per_sample(codec_context_->sample_fmt);
139 codec_context_, av_frame.get(), &frame_decoded, &packet_temp);
194 if (codec_context_->sample_fmt == AV_SAMPLE_FMT_FLT) {
204 } else if (codec_context_->sample_fmt == AV_SAMPLE_FMT_FLTP) {