| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 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 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 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 |