1 /* GStreamer Wayland video sink 2 * 3 * Copyright (C) 2011 Intel Corporation 4 * Copyright (C) 2011 Sreerenj Balachandran <sreerenj.balachandran@intel.com> 5 * Copyright (C) 2012 Wim Taymans <wim.taymans@gmail.com> 6 * Copyright (C) 2014 Collabora Ltd. 7 * 8 * This library is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Library General Public 10 * License as published by the Free Software Foundation; either 11 * version 2 of the License, or (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Library General Public License for more details. 17 * 18 * You should have received a copy of the GNU Library General Public 19 * License along with this library; if not, write to the Free 20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 21 * Boston, MA 02110-1301 USA. 22 */ 23 24 #ifndef __GST_WL_VIDEO_FORMAT_H__ 25 #define __GST_WL_VIDEO_FORMAT_H__ 26 27 #include <wayland-client-protocol.h> 28 #include <gst/video/video.h> 29 #include <drm_fourcc.h> 30 31 G_BEGIN_DECLS 32 33 enum wl_shm_format gst_video_format_to_wl_shm_format (GstVideoFormat format); 34 gint gst_video_format_to_wl_dmabuf_format (GstVideoFormat format); 35 GstVideoFormat gst_wl_shm_format_to_video_format (enum wl_shm_format wl_format); 36 GstVideoFormat gst_wl_dmabuf_format_to_video_format (guint wl_format); 37 const gchar *gst_wl_shm_format_to_string (enum wl_shm_format wl_format); 38 const gchar *gst_wl_dmabuf_format_to_string (guint wl_format); 39 40 G_END_DECLS 41 42 #endif 43