summaryrefslogtreecommitdiff
path: root/test/decode
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2011-12-18 23:51:46 +0100
committerXiang, Haihao <haihao.xiang@intel.com>2013-06-05 09:40:49 +0800
commit824a70ae1ef79458e65079374209a0cb16b65c31 (patch)
tree967730403cd346e93036a69b57560aeb8b39dd35 /test/decode
parent285b384c60a326936f40f52a69b6b2e3f3189929 (diff)
downloadlibva-824a70ae1ef79458e65079374209a0cb16b65c31.tar.gz
tests: cope with new vaCreateSurfaces() API.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com> Signed-off-by: Haitao Huang <haitao.huang@intel.com> Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Diffstat (limited to 'test/decode')
-rw-r--r--test/decode/mpeg2vldemo.cpp8
-rw-r--r--test/decode/tinyjpeg.c5
2 files changed, 8 insertions, 5 deletions
diff --git a/test/decode/mpeg2vldemo.cpp b/test/decode/mpeg2vldemo.cpp
index db090f8..715ea49 100644
--- a/test/decode/mpeg2vldemo.cpp
+++ b/test/decode/mpeg2vldemo.cpp
@@ -185,8 +185,12 @@ int main(int argc,char **argv)
&attrib, 1,&config_id);
CHECK_VASTATUS(va_status, "vaQueryConfigEntrypoints");
- va_status = vaCreateSurfaces(va_dpy,CLIP_WIDTH,CLIP_HEIGHT,
- VA_RT_FORMAT_YUV420, 1, &surface_id);
+ va_status = vaCreateSurfaces(
+ va_dpy,
+ VA_RT_FORMAT_YUV420, CLIP_WIDTH, CLIP_HEIGHT,
+ &surface_id, 1,
+ NULL, 0
+ );
CHECK_VASTATUS(va_status, "vaCreateSurfaces");
/* Create a context for this decode pipe */
diff --git a/test/decode/tinyjpeg.c b/test/decode/tinyjpeg.c
index 111971c..045e79a 100644
--- a/test/decode/tinyjpeg.c
+++ b/test/decode/tinyjpeg.c
@@ -578,10 +578,9 @@ int tinyjpeg_decode(struct jdec_private *priv)
&attrib, 1,&config_id);
CHECK_VASTATUS(va_status, "vaQueryConfigEntrypoints");
- va_status = vaCreateSurfaces(va_dpy,
+ va_status = vaCreateSurfaces(va_dpy,VA_RT_FORMAT_YUV420,
priv->width,priv->height, //alignment?
- VA_RT_FORMAT_YUV420,
- 1, &surface_id);
+ &surface_id, 1, NULL, 0);
CHECK_VASTATUS(va_status, "vaCreateSurfaces");
/* Create a context for this decode pipe */