Searched refs:encoder_ctx (Results 1 – 1 of 1) sorted by relevance
43 static AVCodecContext *decoder_ctx = NULL, *encoder_ctx = NULL; variable118 if ((ret = avcodec_send_frame(encoder_ctx, frame)) < 0) { in encode_write()123 ret = avcodec_receive_packet(encoder_ctx, enc_pkt); in encode_write()172 encoder_ctx->hw_frames_ctx = av_buffer_ref(decoder_ctx->hw_frames_ctx); in dec_enc()173 if (!encoder_ctx->hw_frames_ctx) { in dec_enc()181 encoder_ctx->time_base = av_inv_q(decoder_ctx->framerate); in dec_enc()182 encoder_ctx->pix_fmt = AV_PIX_FMT_VAAPI; in dec_enc()183 encoder_ctx->width = decoder_ctx->width; in dec_enc()184 encoder_ctx->height = decoder_ctx->height; in dec_enc()186 if ((ret = avcodec_open2(encoder_ctx, enc_codec, NULL)) < 0) { in dec_enc()[all …]