build: fix for GStreamer 0.10.
[platform/upstream/gstreamer-vaapi.git] / tests / output.h
1 /*
2  *  output.h - Video output helpers
3  *
4  *  Copyright (C) 2012-2013 Intel Corporation
5  *    Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
6  *
7  *  This library is free software; you can redistribute it and/or
8  *  modify it under the terms of the GNU Lesser General Public License
9  *  as published by the Free Software Foundation; either version 2.1
10  *  of the License, or (at your option) any later version.
11  *
12  *  This library is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  *  Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public
18  *  License along with this library; if not, write to the Free
19  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  *  Boston, MA 02110-1301 USA
21  */
22
23 #ifndef OUTPUT_H
24 #define OUTPUT_H
25
26 #include <glib.h>
27 #include <gst/vaapi/gstvaapidisplay.h>
28 #include <gst/vaapi/gstvaapiwindow.h>
29 #include <gst/vaapi/gstvaapipixmap.h>
30
31 typedef GstVaapiDisplay *(*CreateDisplayFunc)(const gchar *display_name);
32 typedef GstVaapiWindow *(*CreateWindowFunc)(GstVaapiDisplay *display,
33                                             guint width, guint height);
34 typedef GstVaapiPixmap *(*CreatePixmapFunc)(GstVaapiDisplay *display,
35     GstVideoFormat format, guint width, guint height);
36
37
38 typedef struct _VideoOutputInfo VideoOutputInfo;
39 struct _VideoOutputInfo {
40     const gchar        *name;
41     CreateDisplayFunc   create_display;
42     CreateWindowFunc    create_window;
43     CreatePixmapFunc    create_pixmap;
44 };
45
46 gboolean
47 video_output_init(int *argc, char *argv[], GOptionEntry *options);
48
49 void
50 video_output_exit(void);
51
52 const VideoOutputInfo *
53 video_output_lookup(const gchar *output_name);
54
55 GstVaapiDisplay *
56 video_output_create_display(const gchar *display_name);
57
58 GstVaapiWindow *
59 video_output_create_window(GstVaapiDisplay *display, guint width, guint height);
60
61 GstVaapiPixmap *
62 video_output_create_pixmap(GstVaapiDisplay *display, GstVideoFormat format,
63     guint width, guint height);
64
65 #endif /* OUTPUT_H */