From 7b68174bf0fbccc8df393fc208c841d796334054 Mon Sep 17 00:00:00 2001 From: "Shih, Jude" Date: Tue, 15 Apr 2025 14:23:02 +0800 Subject: [PATCH] amd/vpelib: Alpha Fill add mode Add destination and source stream mode [WHY] In the new version, we add the two alpha fill mode [HOW] Add the two enum first Reviewed-by: Brendan Steve Leder Reviewed-by: Tomson Chang Acked-by: ChuanYu Tseng Signed-off-by: Jude Shih Part-of: --- src/amd/vpelib/inc/vpe_types.h | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/amd/vpelib/inc/vpe_types.h b/src/amd/vpelib/inc/vpe_types.h index 4892ba1d00c..3fec8f8e7c0 100644 --- a/src/amd/vpelib/inc/vpe_types.h +++ b/src/amd/vpelib/inc/vpe_types.h @@ -578,13 +578,19 @@ enum vpe_transfer_function { * @brief Alpha mode of the stream. */ enum vpe_alpha_mode { - VPE_ALPHA_OPAQUE, /**< Opaque. In this mode, If output has alpha channel, it is set to - * maximum value. For FP16 format it is set to 125.0f, - * and 2^(AlphaChannelBitDepth)-1 for other formats. - */ - VPE_ALPHA_BGCOLOR /**< If the output has alpha channel, sets the output alpha to be the - * alpha value of the user-provided background color. - */ + VPE_ALPHA_OPAQUE, /**< Opaque. In this mode, If output has alpha channel, it is set to + * maximum value. For FP16 format it is set to 125.0f, + * and 2^(AlphaChannelBitDepth)-1 for other formats. + */ + VPE_ALPHA_BGCOLOR, /**< If the output has alpha channel, sets the output alpha to be the + * alpha value of the user-provided background color. + */ + VPE_ALPHA_DESTINATION, /**< If the output has alpha channel, sets the output alpha to be the + * alpha value of the destination pixel. + */ + VPE_ALPHA_SOURCE_STREAM, /**< If the output has alpha channel, sets the output alpha to be the + * alpha value of the source pixel. + */ }; /** @struct vpe_color_space