summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-07-15 14:42:33 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-07-15 14:42:33 +0200
commit7fa4973f8ac26eade0ea02fcd9a8971b8b902593 (patch)
treea2c32c42c3cf50885af1fc924f2310d290d986b2 /tests
parentabd432d7b1b49001ba35e4f082df924fe74b528d (diff)
downloadgst-vaapi-7fa4973f8ac26eade0ea02fcd9a8971b8b902593.tar.gz
Fix new video format API.
Fix new internal video format API, based on GstVideoFormat, to not clobber with system symbols. So replace the gst_video_format_* prefix with gst_vaapi_video_format_ prefix, even if the format type remains GstVideoFormat.
Diffstat (limited to 'tests')
-rw-r--r--tests/image.c2
-rw-r--r--tests/test-display.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/image.c b/tests/image.c
index d412a17c..305322b0 100644
--- a/tests/image.c
+++ b/tests/image.c
@@ -302,7 +302,7 @@ image_draw_rectangle(
stride[i] = gst_vaapi_image_get_pitch(image, i);
}
- if (gst_video_format_is_yuv(image_format))
+ if (gst_vaapi_video_format_is_yuv(image_format))
color = argb2yuv(color);
if (x < 0)
diff --git a/tests/test-display.c b/tests/test-display.c
index 263fa35c..07842a25 100644
--- a/tests/test-display.c
+++ b/tests/test-display.c
@@ -133,15 +133,15 @@ print_format_caps(GstCaps *caps, const gchar *name)
g_print(" %s:", gst_structure_get_name(structure));
- format = gst_video_format_from_structure(structure);
+ format = gst_vaapi_video_format_from_structure(structure);
if (format == GST_VIDEO_FORMAT_UNKNOWN)
g_error("could not determine format");
- va_format = gst_video_format_to_va_format(format);
+ va_format = gst_vaapi_video_format_to_va_format(format);
if (!va_format)
g_error("could not determine VA format");
- if (gst_video_format_is_yuv(format))
+ if (gst_vaapi_video_format_is_yuv(format))
print_format_caps_yuv(va_format);
else
print_format_caps_rgb(va_format);