On 12/06/2016 01:49 AM, Mark Thompson wrote:
Signed-off-by: Mark Thompson<[email protected]> --- It's already returned as a usable surface format for the video processor, but is missing from the list returned by vaQueryImageFormats().src/i965_drv_video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index 79a2aec..d83427c 100644 --- a/src/i965_drv_video.c +++ b/src/i965_drv_video.c @@ -268,6 +268,8 @@ i965_image_formats_map[I965_MAX_IMAGE_FORMATS + 1] = { { VA_FOURCC_BGRX, VA_LSB_FIRST, 32, 24, 0x00ff0000, 0x0000ff00, 0x000000ff } }, { I965_SURFACETYPE_YUV, { VA_FOURCC_P010, VA_LSB_FIRST, 24, } }, + { I965_SURFACETYPE_YUV, + { VA_FOURCC_I010, VA_LSB_FIRST, 24, } }, };
The format returned by vaQueryImageFormats is mainly used for calling vaCreateImage. That is to say: if we want to add the I010 to the image_format list, we should firstly add the support in i965_CreateImage.
For the 10-bit surfaces(P010, I010), it will be preferred that it is created by using vaCreateSurfaces. If the image is needed, the vaDeriveImage can be used instead.
Is it OK to you? Thanks Yakui
/* List of supported subpicture formats */
_______________________________________________ Libva mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libva
