Skip to content

Commit 21cae44

Browse files
committed
Added 3DLUT interpolation method.
Signed-off-by: Zhang <[email protected]>
1 parent 633746e commit 21cae44

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

va/va_vpp.h

+19-2
Original file line numberDiff line numberDiff line change
@@ -1375,6 +1375,16 @@ typedef struct _VAProcFilterParameterBufferHDRToneMapping {
13751375
#define VA_3DLUT_CHANNEL_VUY_RGB 0x00000004
13761376
/**@}*/
13771377

1378+
/** @name 3DLUT Interpolation Method */
1379+
/**@{*/
1380+
/** \brief 3DLUT Interpolation Method is unknown. */
1381+
#define VA_3DLUT_INTERPOLATION_UNKNOWN 0
1382+
/** \brief 3DLUT Interpolation Method is Trilinear. */
1383+
#define VA_3DLUT_INTERPOLATION_TRILINEAR 1
1384+
/** \brief 3DLUT Interpolation Method is Tetrahedral */
1385+
#define VA_3DLUT_INTERPOLATION_TETRAHEDRAL 2
1386+
/**@}*/
1387+
13781388
/**
13791389
* \brief 3DLUT filter parametrization.
13801390
*
@@ -1426,8 +1436,12 @@ typedef struct _VAProcFilterParameterBuffer3DLUT {
14261436
/** \brief channel_mapping defines the mapping of input and output channels, could be one of VA_3DLUT_CHANNEL_XXX*/
14271437
uint32_t channel_mapping;
14281438

1439+
/** \brief interpolation_method defines the 3DLUT interpolation method, could be one of VA_3DLUT_INTERPOLATION_XXX*/
1440+
uint32_t interpolation_method : 4;
1441+
14291442
/** \brief reserved bytes for future use, must be zero */
1430-
uint32_t va_reserved[VA_PADDING_HIGH];
1443+
uint32_t va_reserved1 : 28;
1444+
uint32_t va_reserved[VA_PADDING_HIGH - 1];
14311445
} VAProcFilterParameterBuffer3DLUT;
14321446

14331447
/** \brief Capabilities specification for the 3DLUT filter. */
@@ -1442,9 +1456,12 @@ typedef struct _VAProcFilterCap3DLUT {
14421456
uint16_t num_channel;
14431457
/** \brief channel_mapping defines the mapping of channels, could be some combination of VA_3DLUT_CHANNEL_XXX*/
14441458
uint32_t channel_mapping;
1459+
/** \brief interpolation_method defines the 3DLUT interpolation method, could be one of VA_3DLUT_INTERPOLATION_XXX*/
1460+
uint32_t interpolation_method : 4;
14451461

14461462
/** \brief Reserved bytes for future use, must be zero */
1447-
uint32_t va_reserved[VA_PADDING_HIGH];
1463+
uint32_t va_reserved1 : 28;
1464+
uint32_t va_reserved[VA_PADDING_HIGH - 1];
14481465
} VAProcFilterCap3DLUT;
14491466

14501467
/**

0 commit comments

Comments
 (0)