Searched refs:codec_ctx (Results 1 - 3 of 3) sorted by relevance
| /third_party/ffmpeg/libavfilter/ |
| H A D | lavfutils.c | 41 AVCodecContext *codec_ctx = NULL; in ff_load_image() local 68 codec_ctx = avcodec_alloc_context3(codec); in ff_load_image() 69 if (!codec_ctx) { in ff_load_image() 75 ret = avcodec_parameters_to_context(codec_ctx, par); in ff_load_image() 82 if ((ret = avcodec_open2(codec_ctx, codec, &opt)) < 0) { in ff_load_image() 99 ret = avcodec_send_packet(codec_ctx, &pkt); in ff_load_image() 106 ret = avcodec_receive_frame(codec_ctx, frame); in ff_load_image() 123 avcodec_free_context(&codec_ctx); in ff_load_image()
|
| H A D | src_movie.c | 55 AVCodecContext *codec_ctx; member 170 st->codec_ctx = avcodec_alloc_context3(codec); in open_stream() 171 if (!st->codec_ctx) in open_stream() 174 ret = avcodec_parameters_to_context(st->codec_ctx, st->st->codecpar); in open_stream() 180 st->codec_ctx->thread_count = dec_threads; in open_stream() 182 if ((ret = avcodec_open2(st->codec_ctx, codec, NULL)) < 0) { in open_stream() 345 avcodec_free_context(&movie->st[i].codec_ctx); in movie_uninit() 454 avcodec_flush_buffers(movie->st[i].codec_ctx); in rewind_file() 470 ret = avcodec_send_packet(movie->st[i].codec_ctx, NULL); in movie_decode_packet() 483 ret = avcodec_send_packet(movie->st[pkt_out_id].codec_ctx, in movie_decode_packet() [all...] |
| /third_party/ffmpeg/doc/examples/ |
| H A D | transcoding.c | 82 AVCodecContext *codec_ctx; in open_input_file() local 87 codec_ctx = avcodec_alloc_context3(dec); in open_input_file() 88 if (!codec_ctx) { in open_input_file() 92 ret = avcodec_parameters_to_context(codec_ctx, stream->codecpar); in open_input_file() 99 if (codec_ctx->codec_type == AVMEDIA_TYPE_VIDEO in open_input_file() 100 || codec_ctx->codec_type == AVMEDIA_TYPE_AUDIO) { in open_input_file() 101 if (codec_ctx->codec_type == AVMEDIA_TYPE_VIDEO) in open_input_file() 102 codec_ctx->framerate = av_guess_frame_rate(ifmt_ctx, stream, NULL); in open_input_file() 104 ret = avcodec_open2(codec_ctx, dec, NULL); in open_input_file() 110 stream_ctx[i].dec_ctx = codec_ctx; in open_input_file() [all...] |
Completed in 3 milliseconds