2 * output.h - Video output helpers
4 * Copyright (C) 2012 Intel Corporation
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.
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.
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
26 #include <gst/vaapi/gstvaapidisplay.h>
27 #include <gst/vaapi/gstvaapiwindow.h>
29 typedef GstVaapiDisplay *(*CreateDisplayFunc)(const gchar *display_name);
30 typedef GstVaapiWindow *(*CreateWindowFunc)(GstVaapiDisplay *display,
31 guint width, guint height);
33 typedef struct _VideoOutputInfo VideoOutputInfo;
34 struct _VideoOutputInfo {
36 CreateDisplayFunc create_display;
37 CreateWindowFunc create_window;
41 video_output_init(int *argc, char *argv[], GOptionEntry *options);
44 video_output_exit(void);
46 const VideoOutputInfo *
47 video_output_lookup(const gchar *output_name);
50 video_output_create_display(const gchar *display_name);
53 video_output_create_window(GstVaapiDisplay *display, guint width, guint height);