GstCaps * gst_decklink_mode_get_template_caps (void) { int i; GstCaps *caps; GstStructure *s; caps = gst_caps_new_empty (); for (i = 1; i < (int) G_N_ELEMENTS (modes); i++) { s = gst_decklink_mode_get_structure ((GstDecklinkModeEnum) i, bmdFormat8BitYUV); gst_caps_append_structure (caps, s); s = gst_decklink_mode_get_structure ((GstDecklinkModeEnum) i, bmdFormat8BitARGB); gst_caps_append_structure (caps, s); } return caps; }
GstCaps * gst_decklink_mode_get_caps (GstDecklinkModeEnum e) { GstCaps *caps; caps = gst_caps_new_empty (); gst_caps_append_structure (caps, gst_decklink_mode_get_structure (e)); return caps; }
GstCaps * gst_decklink_mode_get_caps (GstDecklinkModeEnum e, BMDPixelFormat f) { GstCaps *caps; caps = gst_caps_new_empty (); gst_caps_append_structure (caps, gst_decklink_mode_get_structure (e, f)); return caps; }