mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-15 16:00:20 +01:00
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 <BrendanSteve.Leder@amd.com> Reviewed-by: Tomson Chang <Tomson.Chang@amd.com> Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com> Signed-off-by: Jude Shih <shenshih@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012>
This commit is contained in:
parent
cb0b8d58a0
commit
7b68174bf0
1 changed files with 13 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue