Lines Matching refs:frames_ctx
621 AVHWFramesContext *frames_ctx; in nvenc_setup_device() local
630 frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in nvenc_setup_device()
631 if (frames_ctx->format == AV_PIX_FMT_CUDA) in nvenc_setup_device()
632 cuda_device_hwctx = frames_ctx->device_ctx->hwctx; in nvenc_setup_device()
634 else if (frames_ctx->format == AV_PIX_FMT_D3D11) in nvenc_setup_device()
635 d3d11_device_hwctx = frames_ctx->device_ctx->hwctx; in nvenc_setup_device()
1639 AVHWFramesContext *frames_ctx; in ff_nvenc_encode_init() local
1645 frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in ff_nvenc_encode_init()
1646 if (frames_ctx->format != avctx->pix_fmt) { in ff_nvenc_encode_init()
1651 ctx->data_pix_fmt = frames_ctx->sw_format; in ff_nvenc_encode_init()
1762 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)frame->hw_frames_ctx->data; in nvenc_register_frame() local
1778 reg.width = frames_ctx->width; in nvenc_register_frame()
1779 reg.height = frames_ctx->height; in nvenc_register_frame()
1791 reg.bufferFormat = nvenc_map_buffer_format(frames_ctx->sw_format); in nvenc_register_frame()
1794 av_get_pix_fmt_name(frames_ctx->sw_format)); in nvenc_register_frame()