Skip to content

Commit bc0cd86

Browse files
committed
trace: add Y410 support in dump surface
Signed-off-by: Carl Zhang <[email protected]>
1 parent 0b37540 commit bc0cd86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

va/va_trace.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,9 @@ static void va_TraceSurface(VADisplay dpy, VAContextID context)
10551055
Y_data = (unsigned char*)buffer;
10561056
UV_data = (unsigned char*)buffer + chroma_u_offset;
10571057

1058-
if (fourcc == VA_FOURCC_P010)
1058+
if (fourcc == VA_FOURCC_Y410)
1059+
pixel_byte = 4;
1060+
else if (fourcc == VA_FOURCC_P010)
10591061
pixel_byte = 2;
10601062
else
10611063
pixel_byte = 1;

0 commit comments

Comments
 (0)