amd/vpelib: Added JFIF format to RGB output side
Added JFIF format to RGB output side, due to geometric scaling will change cs parameter to JFIF. --------- Reviewed-by: Tomson Chang <tomson.chang@amd.com> Acked-by: Jack Chih <chiachih@amd.com> Signed-off-by: rickylin <ricky.lin@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30531>
This commit is contained in:
@@ -920,6 +920,13 @@ void vpe_color_get_color_space_and_tf(
|
||||
*cs = colorRange == VPE_COLOR_RANGE_FULL ? COLOR_SPACE_2020_RGB_FULLRANGE
|
||||
: COLOR_SPACE_2020_RGB_LIMITEDRANGE;
|
||||
break;
|
||||
/* VPE doesn't support JFIF format of RGB output, but geometric down scaling will change cs
|
||||
* parameters to JFIF. Therefore, we need to add JFIF format in RGB output to avoid output
|
||||
* color check fail.
|
||||
*/
|
||||
case VPE_PRIMARIES_JFIF:
|
||||
*cs = colorRange == VPE_COLOR_RANGE_FULL ? COLOR_SPACE_JFIF : COLOR_SPACE_UNKNOWN;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,10 @@
|
||||
#include <string.h>
|
||||
#include "vpelib.h"
|
||||
#include "vpe_priv.h"
|
||||
#include "vpe_types.h"
|
||||
#include "common.h"
|
||||
|
||||
|
||||
// In order to support geometric down scaling, we will skip gamut and gamma conversion in this
|
||||
// function.
|
||||
void geometric_scaling_feature_skip(struct vpe_priv *vpe_priv, const struct vpe_build_param *param);
|
||||
|
||||
@@ -615,6 +615,7 @@ enum vpe_status vpe_build_commands(
|
||||
*/
|
||||
bufs->cmd_buf.size = vpe_priv->bufs_required.cmd_buf_size;
|
||||
bufs->emb_buf.size = vpe_priv->bufs_required.emb_buf_size;
|
||||
|
||||
return VPE_STATUS_OK;
|
||||
} else if ((bufs->cmd_buf.size < vpe_priv->bufs_required.cmd_buf_size) ||
|
||||
(bufs->emb_buf.size < vpe_priv->bufs_required.emb_buf_size)) {
|
||||
|
||||
Reference in New Issue
Block a user