Home | History | Annotate | Download | only in ffmpeg_tests

Lines Matching full:codec_context

156     AVCodecContext* codec_context = format_context->streams[i]->codec;
158 if (codec_context->codec_type == AVMEDIA_TYPE_VIDEO && video_stream < 0) {
164 if (codec_context->codec_type == AVMEDIA_TYPE_AUDIO && audio_stream < 0) {
177 AVCodec* codec = avcodec_find_decoder(codec_context->codec_id);
178 if (!codec || (codec_context->codec_type == AVMEDIA_TYPE_UNKNOWN)) {
203 AVCodecContext* codec_context = format_context->streams[target_stream]->codec;
204 AVCodec* codec = avcodec_find_decoder(codec_context->codec_id);
213 codec_context->error_concealment = FF_EC_GUESS_MVS | FF_EC_DEBLOCK;
217 codec_context->thread_count = video_threads;
221 if (avcodec_open2(codec_context, codec, NULL) < 0) {
223 << codec_context->codec->name << " for "
286 result = avcodec_decode_audio4(codec_context, audio_frame.get(),
292 NULL, codec_context->channels, audio_frame->nb_samples,
293 codec_context->sample_fmt, 1);
329 result = avcodec_decode_video2(codec_context, video_frame.get(),
341 size_t bytes_per_line = codec_context->width;
342 size_t copy_lines = codec_context->height;
344 switch (codec_context->pix_fmt) {
359 << codec_context->pix_fmt;