X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=subprojects%2Fgst-plugins-base%2Fgst-libs%2Fgst%2Fvideo%2Fvideo-format.h;h=7a645ccaab763e0d621e8087544b22e5b891e2d8;hb=d98c78251cc91f7cfc08caad2574fdac563e6ce4;hp=11388d00386a7673e77a2e2f5627eef9ec3aee5b;hpb=3345d16aed07b55c1c2c12b0d203f6abe7fe5c99;p=platform%2Fupstream%2Fgstreamer.git diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/video-format.h b/subprojects/gst-plugins-base/gst-libs/gst/video/video-format.h index 11388d0..7a645cc 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/video-format.h +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/video-format.h @@ -639,6 +639,17 @@ struct _GstVideoFormatInfo { GstVideoTileInfo tile_info[GST_VIDEO_MAX_PLANES]; }; +/** + * GST_VIDEO_FORMAT_INFO_IS_VALID_RAW: + * + * Tests that the given #GstVideoFormatInfo represents a valid un-encoded + * format. + * + * Since: 1.22 + */ +#define GST_VIDEO_FORMAT_INFO_IS_VALID_RAW(info) \ + (info != NULL && (info)->format > GST_VIDEO_FORMAT_ENCODED) + #define GST_VIDEO_FORMAT_INFO_FORMAT(info) ((info)->format) #define GST_VIDEO_FORMAT_INFO_NAME(info) ((info)->name) #define GST_VIDEO_FORMAT_INFO_FLAGS(info) ((info)->flags)