Lines Matching refs:frames_ctx
294 AVHWFramesContext *frames_ctx;
304 frames_ctx = (AVHWFramesContext*)(*out_frames_ref)->data;
308 frames_ctx->initial_pool_size += 3;
310 frames_ctx->free = nvdec_free_dummy;
311 frames_ctx->pool = av_buffer_pool_init(0, nvdec_alloc_dummy);
313 if (!frames_ctx->pool) {
319 frames_ctx->initial_pool_size = 0;
338 AVHWFramesContext *frames_ctx;
394 frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data;
404 params.ulNumDecodeSurfaces = frames_ctx->initial_pool_size;
405 params.ulNumOutputSurfaces = frames_ctx->initial_pool_size;
407 ret = nvdec_decoder_create(&ctx->decoder_ref, frames_ctx->device_ref, ¶ms, avctx);
428 pool->dpb_size = frames_ctx->initial_pool_size;
701 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)hw_frames_ctx->data;
722 frames_ctx->format = AV_PIX_FMT_CUDA;
723 frames_ctx->width = (avctx->coded_width + 1) & ~1;
724 frames_ctx->height = (avctx->coded_height + 1) & ~1;
729 frames_ctx->initial_pool_size = dpb_size + 2;
733 frames_ctx->sw_format = chroma_444 ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_NV12;
736 frames_ctx->sw_format = chroma_444 ? AV_PIX_FMT_YUV444P16 : AV_PIX_FMT_P010;
739 frames_ctx->sw_format = chroma_444 ? AV_PIX_FMT_YUV444P16 : AV_PIX_FMT_P016;