video: add macro to get frame size

This commit is contained in:
Wim Taymans 2011-07-04 18:08:25 +02:00
parent 9b259250a1
commit 4340b80f81

View file

@ -340,6 +340,7 @@ gboolean gst_video_frame_copy (GstVideoFrame *dest, const GstVideoFr
#define GST_VIDEO_FRAME_FORMAT(f) (GST_VIDEO_INFO_FORMAT(&(f)->info))
#define GST_VIDEO_FRAME_WIDTH(f) (GST_VIDEO_INFO_WIDTH(&(f)->info))
#define GST_VIDEO_FRAME_HEIGHT(f) (GST_VIDEO_INFO_HEIGHT(&(f)->info))
#define GST_VIDEO_FRAME_SIZE(f) (GST_VIDEO_INFO_SIZE(&(f)->info))
/* dealing with planes */
#define GST_VIDEO_FRAME_N_PLANES(f) (GST_VIDEO_INFO_N_PLANES(&(f)->info))