-static GstStaticPadTemplate sink_factory =
- GST_STATIC_PAD_TEMPLATE ("sink",
- GST_PAD_SINK, GST_PAD_ALWAYS,
- GST_STATIC_CAPS (
- "video/x-raw-yuv, "
- "format = (fourcc){YV12}, "
- "framerate = (fraction) [ 0, MAX ], "
- "width = (int) [ 1, MAX ], "
- "height = (int) [ 1, MAX ]; "
- "video/x-raw-yuv, "
- "format = (fourcc){I420}, "
- "framerate = (fraction) [ 0, MAX ], "
- "width = (int) [ 1, MAX ], "
- "height = (int) [ 1, MAX ]; "
- "video/x-raw-rgb, "
- "bpp = (int)32, "
- "depth = (int)24 ")
- );
+static GstStaticPadTemplate sink_factory =
+ GST_STATIC_PAD_TEMPLATE ("sink",
+ GST_PAD_SINK, GST_PAD_ALWAYS,
+ GST_STATIC_CAPS (
+#ifndef DISABLE_YUV_FORMAT_ON_SINK_CAPS
+ "video/x-raw-yuv, "
+ "format = (fourcc){YV12}, "
+ "framerate = (fraction) [ 0, MAX ], "
+ "width = (int) [ 1, MAX ], "
+ "height = (int) [ 1, MAX ]; "
+ "video/x-raw-yuv, "
+ "format = (fourcc){I420}, "
+ "framerate = (fraction) [ 0, MAX ], "
+ "width = (int) [ 1, MAX ], "
+ "height = (int) [ 1, MAX ]; "
+ "video/x-raw-rgb, "
+ "bpp = (int)32, "
+ "depth = (int)24; "
+#else /* BGRA */
+ "video/x-raw-rgb, "
+ "bpp = (int)32, "
+ "depth = (int)32, "
+ "endianness = (int)4321, "
+ "red_mask = (int)65280, "
+ "green_mask = (int)16711680, "
+ "blue_mask = (int)-16777216, "
+ "alpha_mask = (int)255, "
+ "width = (int) [ 1, MAX ], "
+ "height = (int) [ 1, MAX ], "
+ "framerate = (fraction) [ 0, MAX ]; "
+#endif
+ )
+ );