summaryrefslogtreecommitdiff
path: root/tests/output.h
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-07-22 09:03:30 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-07-22 15:45:10 +0200
commit155af03491557edc8bc3a94b47ea63c36cca47aa (patch)
treebfbd82e5c727c289487b437e34e72380390b8029 /tests/output.h
parent0af0849a92cf0a9db2fe92038c8466f5f3e636fe (diff)
downloadgst-vaapi-155af03491557edc8bc3a94b47ea63c36cca47aa.tar.gz
tests: add support for render-to-pixmap.
Add --pixmap option to test-decode so that to allow copies of VA surface to an intermediate pixmap and rendering from that pixmap. Only X11 backends are supported for now.
Diffstat (limited to 'tests/output.h')
-rw-r--r--tests/output.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/output.h b/tests/output.h
index 33779154..29339c5a 100644
--- a/tests/output.h
+++ b/tests/output.h
@@ -25,16 +25,21 @@
#include <glib.h>
#include <gst/vaapi/gstvaapidisplay.h>
#include <gst/vaapi/gstvaapiwindow.h>
+#include <gst/vaapi/gstvaapipixmap.h>
typedef GstVaapiDisplay *(*CreateDisplayFunc)(const gchar *display_name);
typedef GstVaapiWindow *(*CreateWindowFunc)(GstVaapiDisplay *display,
guint width, guint height);
+typedef GstVaapiPixmap *(*CreatePixmapFunc)(GstVaapiDisplay *display,
+ GstVideoFormat format, guint width, guint height);
+
typedef struct _VideoOutputInfo VideoOutputInfo;
struct _VideoOutputInfo {
const gchar *name;
CreateDisplayFunc create_display;
CreateWindowFunc create_window;
+ CreatePixmapFunc create_pixmap;
};
gboolean
@@ -52,4 +57,8 @@ video_output_create_display(const gchar *display_name);
GstVaapiWindow *
video_output_create_window(GstVaapiDisplay *display, guint width, guint height);
+GstVaapiPixmap *
+video_output_create_pixmap(GstVaapiDisplay *display, GstVideoFormat format,
+ guint width, guint height);
+
#endif /* OUTPUT_H */