diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2013-06-13 10:23:47 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2015-06-10 14:08:39 +0800 |
commit | f742b1aa2851d9eb38161e21315bed8f70c63c48 (patch) | |
tree | 950fab050e1825f02ae53983dbf7e3ef9867b09c | |
parent | cac25def707efd6c92a10cfb7d7d697e40c2b3a4 (diff) |
test/decode/tinyjpeg: create VA surface with right render target format
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Beauchesne, Gwenole <gwenole.beauchesne@intel.com>
(cherry picked from commit 54f686f4a371bf34007ce1ff70e7b74cd9986ad7)
-rw-r--r-- | test/decode/tinyjpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/decode/tinyjpeg.c b/test/decode/tinyjpeg.c index e6e0659..0a544fe 100644 --- a/test/decode/tinyjpeg.c +++ b/test/decode/tinyjpeg.c @@ -698,7 +698,7 @@ int tinyjpeg_decode(struct jdec_private *priv) type = "Format_400P"; } - va_status = vaCreateSurfaces(va_dpy,VA_RT_FORMAT_YUV420, + va_status = vaCreateSurfaces(va_dpy,surface_type, priv->width[scan_num],priv->height[scan_num], //alignment? &surface_id, 1, &forcc, 1); CHECK_VASTATUS(va_status, "vaCreateSurfaces"); |