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