Lines Matching defs:cuinfo

124     CUVIDDECODECREATEINFO cuinfo;
137 memset(&cuinfo, 0, sizeof(cuinfo));
141 avctx->coded_width = cuinfo.ulWidth = format->coded_width;
142 avctx->coded_height = cuinfo.ulHeight = format->coded_height;
145 cuinfo.display_area.left = format->display_area.left + ctx->crop.left;
146 cuinfo.display_area.top = format->display_area.top + ctx->crop.top;
147 cuinfo.display_area.right = format->display_area.right - ctx->crop.right;
148 cuinfo.display_area.bottom = format->display_area.bottom - ctx->crop.bottom;
155 avctx->width = cuinfo.display_area.right - cuinfo.display_area.left;
156 avctx->height = cuinfo.display_area.bottom - cuinfo.display_area.top;
160 cuinfo.ulTargetWidth = avctx->width = (avctx->width + 1) & ~1;
161 cuinfo.ulTargetHeight = avctx->height = (avctx->height + 1) & ~1;
164 cuinfo.target_rect.left = 0;
165 cuinfo.target_rect.top = 0;
166 cuinfo.target_rect.right = cuinfo.ulTargetWidth;
167 cuinfo.target_rect.bottom = cuinfo.ulTargetHeight;
288 cuinfo.CodecType = ctx->codec_type = format->codec;
289 cuinfo.ChromaFormat = format->chroma_format;
293 cuinfo.OutputFormat = cudaVideoSurfaceFormat_NV12;
297 cuinfo.OutputFormat = cudaVideoSurfaceFormat_P016;
300 cuinfo.OutputFormat = cudaVideoSurfaceFormat_YUV444;
303 cuinfo.OutputFormat = cudaVideoSurfaceFormat_YUV444_16Bit;
312 cuinfo.ulNumDecodeSurfaces = ctx->nb_surfaces;
313 cuinfo.ulNumOutputSurfaces = 1;
314 cuinfo.ulCreationFlags = cudaVideoCreate_PreferCUVID;
315 cuinfo.bitDepthMinus8 = format->bit_depth_luma_minus8;
316 cuinfo.DeinterlaceMode = ctx->deint_mode_current;
321 ctx->internal_error = CHECK_CU(ctx->cvdl->cuvidCreateDecoder(&ctx->cudecoder, &cuinfo));