2 * output.h - Video output helpers
4 * Copyright (C) 2012-2013 Intel Corporation
5 * Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
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.
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.
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
27 #include <gst/vaapi/gstvaapidisplay.h>
28 #include <gst/vaapi/gstvaapiwindow.h>
29 #include <gst/vaapi/gstvaapipixmap.h>
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);
38 typedef struct _VideoOutputInfo VideoOutputInfo;
39 struct _VideoOutputInfo {
41 CreateDisplayFunc create_display;
42 CreateWindowFunc create_window;
43 CreatePixmapFunc create_pixmap;
47 video_output_init(int *argc, char *argv[], GOptionEntry *options);
50 video_output_exit(void);
52 const VideoOutputInfo *
53 video_output_lookup(const gchar *output_name);
56 video_output_create_display(const gchar *display_name);
59 video_output_create_window(GstVaapiDisplay *display, guint width, guint height);
62 video_output_create_pixmap(GstVaapiDisplay *display, GstVideoFormat format,
63 guint width, guint height);