diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2016-07-19 15:33:46 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2016-07-22 14:12:05 +0800 |
commit | 62c3a0d75434e76c228247786817336430862b29 (patch) | |
tree | 0354cb7e99f8726bf2614905e60f0d860e83813b | |
parent | 09d29db2a1dd6880297c49a73fc8be4b872f1eb9 (diff) |
Export the P010 surface attribute for HEVC/VP9 10-bits decoding
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
-rw-r--r-- | src/i965_drv_video.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index ec67848..657edf3 100644 --- a/src/i965_drv_video.c +++ b/src/i965_drv_video.c @@ -5798,6 +5798,15 @@ i965_QuerySurfaceAttributes(VADriverContextP ctx, attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE; attribs[i].value.value.i = VA_FOURCC_NV12; i++; + + if ((obj_config->profile == VAProfileHEVCMain10) || + (obj_config->profile == VAProfileVP9Profile2)) { + attribs[i].type = VASurfaceAttribPixelFormat; + attribs[i].value.type = VAGenericValueTypeInteger; + attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE; + attribs[i].value.value.i = VA_FOURCC_P010; + i++; + } } } else if (obj_config->entrypoint == VAEntrypointEncSlice || /* encode */ obj_config->entrypoint == VAEntrypointVideoProc || |