mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
frontends/va: Add YUV420 to NV12 postproc conversion
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7853 Reviewed-by: Thong Thai <thong.thai@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24272>
This commit is contained in:
parent
c0545f2a4f
commit
0a5fe1f524
2 changed files with 4 additions and 1 deletions
|
|
@ -73,6 +73,7 @@ vl_video_buffer_plane_order(enum pipe_format format)
|
|||
{
|
||||
switch(format) {
|
||||
case PIPE_FORMAT_YV12:
|
||||
case PIPE_FORMAT_IYUV:
|
||||
return const_resource_plane_order_YVU;
|
||||
|
||||
case PIPE_FORMAT_NV12:
|
||||
|
|
|
|||
|
|
@ -255,7 +255,9 @@ static VAStatus vlVaPostProcBlit(vlVaDriver *drv, vlVaContext *context,
|
|||
}
|
||||
|
||||
if (src->buffer_format == PIPE_FORMAT_YUYV ||
|
||||
src->buffer_format == PIPE_FORMAT_UYVY) {
|
||||
src->buffer_format == PIPE_FORMAT_UYVY ||
|
||||
src->buffer_format == PIPE_FORMAT_YV12 ||
|
||||
src->buffer_format == PIPE_FORMAT_IYUV) {
|
||||
vl_compositor_yuv_deint_full(&drv->cstate, &drv->compositor,
|
||||
src, dst, &src_rect, &dst_rect,
|
||||
VL_COMPOSITOR_NONE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue