summaryrefslogtreecommitdiff
path: root/tests/image.h
diff options
context:
space:
mode:
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>2010-03-26 15:16:01 +0000
committergb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>2010-03-26 15:16:01 +0000
commit9248f187350db7833a1feb1e901044e995061f0b (patch)
treef4cea837c4a288246b93f01530040430d7176366 /tests/image.h
parent22fe28b8236b963108118f7888ccc21e9e696c43 (diff)
Factor out image utilities.
Diffstat (limited to 'tests/image.h')
-rw-r--r--tests/image.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/image.h b/tests/image.h
new file mode 100644
index 00000000..eb914de8
--- /dev/null
+++ b/tests/image.h
@@ -0,0 +1,44 @@
+/*
+ * image.h - Image utilities for the tests
+ *
+ * gstreamer-vaapi (C) 2010 Splitted-Desktop Systems
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef IMAGE_H
+#define IMAGE_H
+
+#include <gst/vaapi/gstvaapiimage.h>
+
+GstVaapiImage *
+image_generate(
+ GstVaapiDisplay *display,
+ GstVaapiImageFormat format,
+ guint width,
+ guint height
+);
+
+gboolean
+image_draw_rectangle(
+ GstVaapiImage *image,
+ gint x,
+ gint y,
+ guint width,
+ guint height,
+ guint32 color
+);
+
+#endif /* IMAGE_H */