1
- // Copyright (c) 2009-2024 Intel Corporation
1
+ // Copyright (c) 2009-2025 Intel Corporation
2
2
//
3
3
// Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
// of this software and associated documentation files (the "Software"), to deal
@@ -54,6 +54,8 @@ mfxExtBuffer* GetExtendedBufferInternal(mfxExtBuffer** extBuf, mfxU32 numExtBuf,
54
54
55
55
mfxStatus CheckFrameInfoCommon (mfxFrameInfo *info, mfxU32 codecId)
56
56
{
57
+ MFX_AUTO_LTRACE (MFX_TRACE_LEVEL_INTERNAL, " CheckFrameInfoCommon" );
58
+
57
59
MFX_CHECK_NULL_PTR1 (info);
58
60
59
61
MFX_CHECK (info->Width && info->Width % 16 == 0 , MFX_ERR_INVALID_VIDEO_PARAM);
@@ -97,11 +99,15 @@ mfxStatus CheckFrameInfoCommon(mfxFrameInfo *info, mfxU32 codecId)
97
99
case MFX_FOURCC_IMC3:
98
100
if (codecId != MFX_CODEC_JPEG)
99
101
{
102
+ MFX_LTRACE_MSG (MFX_TRACE_LEVEL_CRITICAL_INFO, " MFX_ERR_INVALID_VIDEO_PARAM" );
100
103
MFX_RETURN (MFX_ERR_INVALID_VIDEO_PARAM);
101
104
}
102
105
break ;
103
106
default :
107
+ {
108
+ MFX_LTRACE_MSG (MFX_TRACE_LEVEL_CRITICAL_INFO, " MFX_ERR_INVALID_VIDEO_PARAM" );
104
109
MFX_RETURN (MFX_ERR_INVALID_VIDEO_PARAM);
110
+ }
105
111
}
106
112
107
113
MFX_CHECK ((!info->BitDepthLuma || (info->BitDepthLuma >= 8 )) &&
@@ -122,7 +128,10 @@ mfxStatus CheckFrameInfoCommon(mfxFrameInfo *info, mfxU32 codecId)
122
128
break ;
123
129
124
130
default :
131
+ {
132
+ MFX_LTRACE_MSG (MFX_TRACE_LEVEL_CRITICAL_INFO, " MFX_ERR_INVALID_VIDEO_PARAM" );
125
133
MFX_RETURN (MFX_ERR_INVALID_VIDEO_PARAM);
134
+ }
126
135
}
127
136
}
128
137
@@ -225,6 +234,8 @@ mfxStatus CheckFrameInfoDecVideoProcCsc(mfxFrameInfo *info, mfxU32 codecId)
225
234
226
235
mfxStatus CheckFrameInfoCodecs (mfxFrameInfo *info, mfxU32 codecId)
227
236
{
237
+ MFX_AUTO_LTRACE (MFX_TRACE_LEVEL_INTERNAL, " CheckFrameInfoCodecs" );
238
+
228
239
mfxStatus sts = CheckFrameInfoCommon (info, codecId);
229
240
MFX_CHECK_STS (sts);
230
241
@@ -419,6 +430,8 @@ mfxStatus UpdateCscOutputFormat(mfxVideoParam *par, mfxFrameAllocRequest *reques
419
430
420
431
static mfxStatus CheckVideoParamCommon (mfxVideoParam *in, eMFXHWType type)
421
432
{
433
+ MFX_AUTO_LTRACE (MFX_TRACE_LEVEL_INTERNAL, " CheckVideoParamCommon" );
434
+
422
435
MFX_CHECK_NULL_PTR1 (in);
423
436
424
437
mfxStatus sts = CheckFrameInfoCodecs (&in->mfx .FrameInfo , in->mfx .CodecId );
0 commit comments