From de4aeab5449f2cc5a72af1d5b195ceac7ee2367d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 30 Aug 2011 14:04:54 +0200 Subject: [PATCH] video: add some more macros --- gst-libs/gst/video/video.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gst-libs/gst/video/video.h b/gst-libs/gst/video/video.h index a537179..2db60c7 100644 --- a/gst-libs/gst/video/video.h +++ b/gst-libs/gst/video/video.h @@ -611,6 +611,14 @@ gboolean gst_video_frame_copy (GstVideoFrame *dest, const GstVideoFr #define GST_VIDEO_SIZE_RANGE "(int) [ 1, max ]" #define GST_VIDEO_FPS_RANGE "(fraction) [ 0, max ]" +#if G_BYTE_ORDER == G_LITTLE_ENDIAN +# define GST_VIDEO_NE(s) G_STRINGIFY(s)"_LE" +# define GST_VIDEO_OE(s) G_STRINGIFY(s)"_BE" +#else +# define GST_VIDEO_NE(s) G_STRINGIFY(s)"_BE" +# define GST_VIDEO_OE(s) G_STRINGIFY(s)"_LE" +#endif + #define GST_VIDEO_FORMATS_ALL "{ I420, YV12, YUY2, UYVY, AYUV, RGBx, " \ "BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, " \ "YVYU, Y444, v210, v216, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, " \ -- 2.7.4