summaryrefslogtreecommitdiff
path: root/tests/image.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-07-09 15:28:31 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-07-09 17:16:35 +0200
commitcb92e7ca797839858f65f5780f6fceced7426b79 (patch)
tree230e11412844074789d5ab8f2e3dfef24d96f4f4 /tests/image.c
parent09397fa0d85ffdc5aff819a72a700c7e2b4031a5 (diff)
tests: port to new video format API.
Diffstat (limited to 'tests/image.c')
-rw-r--r--tests/image.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/image.c b/tests/image.c
index 5c45391f..d412a17c 100644
--- a/tests/image.c
+++ b/tests/image.c
@@ -24,7 +24,7 @@
GstVaapiImage *
image_generate(
GstVaapiDisplay *display,
- GstVaapiImageFormat format,
+ GstVideoFormat format,
guint width,
guint height
)
@@ -257,7 +257,7 @@ image_draw_rectangle(
guint32 color
)
{
- const GstVaapiImageFormat image_format = gst_vaapi_image_get_format(image);
+ const GstVideoFormat image_format = gst_vaapi_image_get_format(image);
const guint image_width = gst_vaapi_image_get_width(image);
const guint image_height = gst_vaapi_image_get_height(image);
GstVaapiDisplay *display;
@@ -267,11 +267,11 @@ image_draw_rectangle(
guint i;
static const struct {
- GstVaapiImageFormat format;
+ GstVideoFormat format;
DrawRectFunc draw_rect;
}
map[] = {
-#define _(FORMAT) { GST_VAAPI_IMAGE_##FORMAT, draw_rect_##FORMAT }
+#define _(FORMAT) { GST_VIDEO_FORMAT_##FORMAT, draw_rect_##FORMAT }
_(ARGB),
_(BGRA),
_(RGBA),
@@ -302,7 +302,7 @@ image_draw_rectangle(
stride[i] = gst_vaapi_image_get_pitch(image, i);
}
- if (gst_vaapi_image_format_is_yuv(image_format))
+ if (gst_video_format_is_yuv(image_format))
color = argb2yuv(color);
if (x < 0)
@@ -324,7 +324,7 @@ gboolean
image_upload(GstVaapiImage *image, GstVaapiSurface *surface)
{
GstVaapiDisplay *display;
- GstVaapiImageFormat format;
+ GstVideoFormat format;
GstVaapiSubpicture *subpicture;
display = gst_vaapi_object_get_display(GST_VAAPI_OBJECT(surface));