From a96acd3dbe1bac0beb6ab141559559c19cdf5c54 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 6 Jun 2012 10:21:55 +0200 Subject: [PATCH] video: add macro for component depth --- gst-libs/gst/video/video-frame.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/video/video-frame.h b/gst-libs/gst/video/video-frame.h index 7bc3920..a27d77a 100644 --- a/gst-libs/gst/video/video-frame.h +++ b/gst-libs/gst/video/video-frame.h @@ -93,6 +93,7 @@ gboolean gst_video_frame_copy_plane (GstVideoFrame *dest, const GstVideoFr /* dealing with components */ #define GST_VIDEO_FRAME_N_COMPONENTS(f) GST_VIDEO_INFO_N_COMPONENTS(&(f)->info) +#define GST_VIDEO_FRAME_COMP_DEPTH(f,c) GST_VIDEO_INFO_COMP_DEPTH(&(f)->info,(c)) #define GST_VIDEO_FRAME_COMP_DATA(f,c) GST_VIDEO_INFO_COMP_DATA(&(f)->info,(f)->data,(c)) #define GST_VIDEO_FRAME_COMP_STRIDE(f,c) GST_VIDEO_INFO_COMP_STRIDE(&(f)->info,(c)) #define GST_VIDEO_FRAME_COMP_OFFSET(f,c) GST_VIDEO_INFO_COMP_OFFSET(&(f)->info,(c)) -- 2.7.4