Discussion:
[Libva] [Libva-intel-driver][PATCH] Add support for IYUV in vaCreateSurfaces()
Xiang, Haihao
2016-10-12 01:50:16 UTC
Permalink
Actually IYUV is indentical to I420. This fixes the failue reported by
CreateSurfacesTest.SupportedPixelFormats in gtest

before:

[ FAILED ] CreateSurfacesTest.SupportedPixelFormats (0 ms)
[----------] 1 test from CreateSurfacesTest (0 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (2 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] CreateSurfacesTest.SupportedPixelFormats

after:

[----------] 1 test from CreateSurfacesTest
[ RUN ] CreateSurfacesTest.SupportedPixelFormats
[ OK ] CreateSurfacesTest.SupportedPixelFormats (1 ms)
[----------] 1 test from CreateSurfacesTest (1 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (4 ms total)
[ PASSED ] 1 test.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98033
Signed-off-by: Xiang, Haihao <***@intel.com>
---
src/i965_drv_video.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index c9357f5..33ef6e8 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -4146,6 +4146,7 @@ i965_check_alloc_surface_bo(VADriverContextP ctx,

case VA_FOURCC_YV12:
case VA_FOURCC_I420:
+ case VA_FOURCC_IYUV:
if (fourcc == VA_FOURCC_YV12) {
obj_surface->y_cr_offset = obj_surface->height;
obj_surface->y_cb_offset = obj_surface->height + obj_surface->height / 4;
--
1.9.1
Eoff, Ullysses A
2016-10-12 02:53:54 UTC
Permalink
-----Original Message-----
Sent: Tuesday, October 11, 2016 6:50 PM
Subject: [Libva] [Libva-intel-driver][PATCH] Add support for IYUV in vaCreateSurfaces()
Actually IYUV is indentical to I420. This fixes the failue reported by
CreateSurfacesTest.SupportedPixelFormats in gtest
LGTM and Verified.

U. Artie Eoff
[ FAILED ] CreateSurfacesTest.SupportedPixelFormats (0 ms)
[----------] 1 test from CreateSurfacesTest (0 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (2 ms total)
[ PASSED ] 0 tests.
[ FAILED ] CreateSurfacesTest.SupportedPixelFormats
[----------] 1 test from CreateSurfacesTest
[ RUN ] CreateSurfacesTest.SupportedPixelFormats
[ OK ] CreateSurfacesTest.SupportedPixelFormats (1 ms)
[----------] 1 test from CreateSurfacesTest (1 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (4 ms total)
[ PASSED ] 1 test.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98033
---
src/i965_drv_video.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index c9357f5..33ef6e8 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -4146,6 +4146,7 @@ i965_check_alloc_surface_bo(VADriverContextP ctx,
if (fourcc == VA_FOURCC_YV12) {
obj_surface->y_cr_offset = obj_surface->height;
obj_surface->y_cb_offset = obj_surface->height + obj_surface->height / 4;
--
1.9.1
_______________________________________________
Libva mailing list
https://lists.freedesktop.org/mailman/listinfo/libva
Loading...