Lines Matching defs:params
103 CUVIDDECODECREATEINFO *params, void *logctx)
108 caps.eCodecType = params->CodecType;
109 caps.eChromaFormat = params->ChromaFormat;
110 caps.nBitDepthMinus8 = params->bitDepthMinus8;
141 if (params->ulWidth > caps.nMaxWidth || params->ulWidth < caps.nMinWidth) {
143 (int)params->ulWidth, caps.nMinWidth, caps.nMaxWidth);
147 if (params->ulHeight > caps.nMaxHeight || params->ulHeight < caps.nMinHeight) {
149 (int)params->ulHeight, caps.nMinHeight, caps.nMaxHeight);
153 if ((params->ulWidth * params->ulHeight) / 256 > caps.nMaxMBCount) {
155 (int)(params->ulWidth * params->ulHeight) / 256, caps.nMaxMBCount);
183 CUVIDDECODECREATEINFO *params, void *logctx)
224 ret = nvdec_test_capabilities(decoder, params, logctx);
230 ret = CHECK_CU(decoder->cvdl->cuvidCreateDecoder(&decoder->decoder, params));
341 CUVIDDECODECREATEINFO params = { 0 };
396 params.ulWidth = avctx->coded_width;
397 params.ulHeight = avctx->coded_height;
398 params.ulTargetWidth = avctx->coded_width;
399 params.ulTargetHeight = avctx->coded_height;
400 params.bitDepthMinus8 = sw_desc->comp[0].depth - 8;
401 params.OutputFormat = output_format;
402 params.CodecType = cuvid_codec_type;
403 params.ChromaFormat = cuvid_chroma_format;
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);
409 if (params.ulNumDecodeSurfaces > 32) {
411 (int)params.ulNumDecodeSurfaces);