Searched refs:decoder_ctx (Results 1 – 3 of 3) sorted by relevance
/third_party/ffmpeg/doc/examples/ |
D | qsvdec.c | 90 static int decode_packet(DecodeContext *decode, AVCodecContext *decoder_ctx, in decode_packet() argument 96 ret = avcodec_send_packet(decoder_ctx, pkt); in decode_packet() 105 ret = avcodec_receive_frame(decoder_ctx, frame); in decode_packet() 141 AVCodecContext *decoder_ctx = NULL; in main() local 194 decoder_ctx = avcodec_alloc_context3(decoder); in main() 195 if (!decoder_ctx) { in main() 199 decoder_ctx->codec_id = AV_CODEC_ID_H264; in main() 201 decoder_ctx->extradata = av_mallocz(video_st->codecpar->extradata_size + in main() 203 if (!decoder_ctx->extradata) { in main() 207 memcpy(decoder_ctx->extradata, video_st->codecpar->extradata, in main() [all …]
|
D | vaapi_transcode.c | 43 static AVCodecContext *decoder_ctx = NULL, *encoder_ctx = NULL; variable 88 if (!(decoder_ctx = avcodec_alloc_context3(decoder))) in open_input_file() 92 if ((ret = avcodec_parameters_to_context(decoder_ctx, video->codecpar)) < 0) { in open_input_file() 98 decoder_ctx->hw_device_ctx = av_buffer_ref(hw_device_ctx); in open_input_file() 99 if (!decoder_ctx->hw_device_ctx) { in open_input_file() 103 decoder_ctx->get_format = get_vaapi_format; in open_input_file() 105 if ((ret = avcodec_open2(decoder_ctx, decoder, NULL)) < 0) in open_input_file() 153 ret = avcodec_send_packet(decoder_ctx, pkt); in dec_enc() 163 ret = avcodec_receive_frame(decoder_ctx, frame); in dec_enc() 175 encoder_ctx->hw_frames_ctx = av_buffer_ref(decoder_ctx->hw_frames_ctx); in dec_enc() [all …]
|
D | hw_decode.c | 154 AVCodecContext *decoder_ctx = NULL; in main() local 208 if (!(decoder_ctx = avcodec_alloc_context3(decoder))) in main() 212 if (avcodec_parameters_to_context(decoder_ctx, video->codecpar) < 0) in main() 215 decoder_ctx->get_format = get_hw_format; in main() 217 if (hw_decoder_init(decoder_ctx, type) < 0) in main() 220 if ((ret = avcodec_open2(decoder_ctx, decoder, NULL)) < 0) { in main() 234 ret = decode_write(decoder_ctx, &packet); in main() 242 ret = decode_write(decoder_ctx, &packet); in main() 247 avcodec_free_context(&decoder_ctx); in main()
|