[Libva] [PATCH] Fix the GetConfigAttributes() for JPEGBaseline profile

sreerenj.balachandran at intel.com sreerenj.balachandran at intel.com
Wed Jan 21 06:04:57 PST 2015


From: Sreerenj Balachandran <sreerenj.balachandran at intel.com>

Advertise the PACKED_RAW_DATA header support for JPEGEncoding.
---
 src/i965_drv_video.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 7039dd3..5c48460 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -749,6 +749,10 @@ i965_GetConfigAttributes(VADriverContextP ctx,
                 }
                 break;
             }
+            else if (entrypoint == VAEntrypointEncPicture) {
+                if (profile == VAProfileJPEGBaseline)
+                    attrib_list[i].value = VA_ENC_PACKED_HEADER_RAW_DATA;
+            }
             break;
 
         case VAConfigAttribEncMaxRefFrames:
-- 
1.9.1



More information about the Libva mailing list