frontends/va/postproc: yuv422 to nv12
Signed-off-by: Thong Thai <thong.thai@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Tested-by: Suresh Guttula <suresh.guttula@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19915>
This commit is contained in:
@@ -251,6 +251,15 @@ static VAStatus vlVaPostProcBlit(vlVaDriver *drv, vlVaContext *context,
|
||||
return VA_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if (src->buffer_format == PIPE_FORMAT_YUYV ||
|
||||
src->buffer_format == PIPE_FORMAT_UYVY) {
|
||||
vl_compositor_yuv_deint_full(&drv->cstate, &drv->compositor,
|
||||
src, dst, &src_rect, &dst_rect,
|
||||
VL_COMPOSITOR_NONE);
|
||||
|
||||
return VA_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if (src->interlaced != dst->interlaced) {
|
||||
deinterlace = deinterlace ? deinterlace : VL_COMPOSITOR_WEAVE;
|
||||
vl_compositor_yuv_deint_full(&drv->cstate, &drv->compositor,
|
||||
|
Reference in New Issue
Block a user