diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2013-07-22 09:03:30 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2013-07-22 15:45:10 +0200 |
commit | 155af03491557edc8bc3a94b47ea63c36cca47aa (patch) | |
tree | bfbd82e5c727c289487b437e34e72380390b8029 /tests/output.h | |
parent | 0af0849a92cf0a9db2fe92038c8466f5f3e636fe (diff) | |
download | gst-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.h | 9 |
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 */ |