Skip to content

Commit

Permalink
Add interpolation method for scaling.
Browse files Browse the repository at this point in the history
Signed-off-by: FurongZhang <furong.zhang@intel.com>
  • Loading branch information
FurongZhang authored and XinfengZhang committed Jul 22, 2020
1 parent 7c6de6d commit 4359c18
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions va/va.h
Expand Up @@ -258,6 +258,13 @@ typedef int VAStatus; /** Return status type from functions */
#define VA_FILTER_SCALING_NL_ANAMORPHIC 0x00000300
#define VA_FILTER_SCALING_MASK 0x00000f00

/** Interpolation method for scaling */
#define VA_FILTER_INTERPOLATION_DEFAULT 0x00000000
#define VA_FILTER_INTERPOLATION_NEAREST_NEIGHBOR 0x00001000
#define VA_FILTER_INTERPOLATION_BILINEAR 0x00002000
#define VA_FILTER_INTERPOLATION_ADVANCED 0x00003000
#define VA_FILTER_INTERPOLATION_MASK 0x0000f000

/** Padding size in 4-bytes */
#define VA_PADDING_LOW 4
#define VA_PADDING_MEDIUM 8
Expand Down
3 changes: 3 additions & 0 deletions va/va_vpp.h
Expand Up @@ -969,6 +969,9 @@ typedef struct _VAProcPipelineParameterBuffer {
* \c VA_SRC_SMPTE_240.
* - Scaling: \c VA_FILTER_SCALING_DEFAULT, \c VA_FILTER_SCALING_FAST,
* \c VA_FILTER_SCALING_HQ, \c VA_FILTER_SCALING_NL_ANAMORPHIC.
* - Interpolation Method: \c VA_FILTER_INTERPOLATION_DEFAULT,
* \c VA_FILTER_INTERPOLATION_NEAREST_NEIGHBOR,
* \c VA_FILTER_INTERPOLATION_BILINEAR, \c VA_FILTER_INTERPOLATION_ADVANCED.
*/
uint32_t filter_flags;
/**
Expand Down

0 comments on commit 4359c18

Please sign in to comment.