Home
last modified time | relevance | path

Searched refs:codec_ctx (Results 1 – 3 of 3) sorted by relevance

/third_party/ffmpeg/libavfilter/
Dlavfutils.c32 AVCodecContext *codec_ctx = NULL; in ff_load_image() local
59 codec_ctx = avcodec_alloc_context3(codec); in ff_load_image()
60 if (!codec_ctx) { in ff_load_image()
66 ret = avcodec_parameters_to_context(codec_ctx, par); in ff_load_image()
73 if ((ret = avcodec_open2(codec_ctx, codec, &opt)) < 0) { in ff_load_image()
90 ret = avcodec_send_packet(codec_ctx, &pkt); in ff_load_image()
97 ret = avcodec_receive_frame(codec_ctx, frame); in ff_load_image()
114 avcodec_free_context(&codec_ctx); in ff_load_image()
Dsrc_movie.c53 AVCodecContext *codec_ctx; member
164 st->codec_ctx = avcodec_alloc_context3(codec); in open_stream()
165 if (!st->codec_ctx) in open_stream()
168 ret = avcodec_parameters_to_context(st->codec_ctx, st->st->codecpar); in open_stream()
172 st->codec_ctx->thread_count = ff_filter_get_nb_threads(ctx); in open_stream()
174 if ((ret = avcodec_open2(st->codec_ctx, codec, NULL)) < 0) { in open_stream()
339 avcodec_free_context(&movie->st[i].codec_ctx); in movie_uninit()
448 avcodec_flush_buffers(movie->st[i].codec_ctx); in rewind_file()
464 ret = avcodec_send_packet(movie->st[i].codec_ctx, NULL); in movie_decode_packet()
477 ret = avcodec_send_packet(movie->st[pkt_out_id].codec_ctx, &pkt); in movie_decode_packet()
[all …]
/third_party/ffmpeg/doc/examples/
Dtranscoding.c81 AVCodecContext *codec_ctx; in open_input_file() local
86 codec_ctx = avcodec_alloc_context3(dec); in open_input_file()
87 if (!codec_ctx) { in open_input_file()
91 ret = avcodec_parameters_to_context(codec_ctx, stream->codecpar); in open_input_file()
98 if (codec_ctx->codec_type == AVMEDIA_TYPE_VIDEO in open_input_file()
99 || codec_ctx->codec_type == AVMEDIA_TYPE_AUDIO) { in open_input_file()
100 if (codec_ctx->codec_type == AVMEDIA_TYPE_VIDEO) in open_input_file()
101 codec_ctx->framerate = av_guess_frame_rate(ifmt_ctx, stream, NULL); in open_input_file()
103 ret = avcodec_open2(codec_ctx, dec, NULL); in open_input_file()
109 stream_ctx[i].dec_ctx = codec_ctx; in open_input_file()