Debian Codegraph @

gst-libs/gst/wayland/gstwlvideoformat.h

raw symbols SCIP
1 /* GStreamer Wayland Library
2 *
3 * Copyright (C) 2011 Intel Corporation
4 * Copyright (C) 2011 Sreerenj Balachandran <[email protected]>
5 * Copyright (C) 2012 Wim Taymans <[email protected]>
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 #pragma once
25
26 #include <gst/wayland/wayland.h>
27
28 #include <gst/video/video.h>
29
30 G_BEGIN_DECLS
31
32 /**
33 * GST_WL_VIDEO_FORMATS:
34 *
35 * A list of supported video formats for use in cap templates.
36 *
37 * Since: 1.24
38 */
39 #if G_BYTE_ORDER == G_BIG_ENDIAN
40 #define GST_WL_VIDEO_FORMATS "{ BGR10A2_LE, RGB10A2_LE, AYUV, RGBA, ARGB, " \
41 "BGRA, ABGR, BGR10x2_LE, RGB10x2_LE, P010_10LE, NV12_10LE40, Y444, v308, " \
42 "RGBx, xRGB, BGRx, xBGR, RGB, BGR, Y42B, NV16, NV61, YUY2, YVYU, UYVY, " \
43 "I420, YV12, NV12, NV21, Y41B, YUV9, YVU9, BGR16, RGB16 }"
44 #elif G_BYTE_ORDER == G_LITTLE_ENDIAN
45 #define GST_WL_VIDEO_FORMATS "{ BGR10A2_LE, RGB10A2_LE, AYUV, RGBA, ARGB, " \
46 "BGRA, ABGR, BGR10x2_LE, RGB10x2_LE, P010_10LE, NV12_10LE40, Y444, v308, " \
47 "RGBx, xRGB, BGRx, xBGR, RGB, BGR, Y42B, NV16, NV61, YUY2, YVYU, UYVY, " \
48 "I420, YV12, NV12, NV21, Y41B, YUV9, YVU9, BGR16, RGB16 }"
49 #endif
50
51 GST_WL_API
52 void gst_wl_videoformat_init_once (void);
53
54 GST_WL_API
55 enum wl_shm_format gst_video_format_to_wl_shm_format (GstVideoFormat format);
56
57 GST_WL_API
58 guint32 gst_video_format_to_wl_dmabuf_format (GstVideoFormat format);
59
60 GST_WL_API
61 GstVideoFormat gst_wl_shm_format_to_video_format (enum wl_shm_format wl_format);
62
63 GST_WL_API
64 GstVideoFormat gst_wl_dmabuf_format_to_video_format (guint wl_format);
65
66 GST_WL_API
67 const gchar *gst_wl_shm_format_to_string (enum wl_shm_format wl_format);
68
69 G_END_DECLS