Home | History | Annotate | Download | only in src

Lines Matching refs:caps

152     GstCaps*      caps;
175 caps = NULL;
264 // bail out in no caps
290 // everything is 8 bit, so we just test the caps for bit depth
433 * Filter the output formats by setting appsink caps properties
438 if(!caps || !( GST_IS_CAPS (caps) ))
443 caps = gst_caps_new_simple("video/x-raw-rgb", prop, type, v1, NULL);
445 caps = gst_caps_new_simple("video/x-raw","format",G_TYPE_STRING,"BGR", prop, type, v1, NULL);
451 caps = gst_caps_new_simple("video/x-raw-rgb", prop, type, v1, v2, NULL);
453 caps = gst_caps_new_simple("video/x-raw","format",G_TYPE_STRING,"BGR", prop, type, v1, v2, NULL);
460 if (! gst_caps_is_writable(caps))
461 caps = gst_caps_make_writable (caps);
464 gst_caps_set_simple(caps, prop, type, v1, NULL);
466 gst_caps_set_simple(caps, prop, type, v1, v2, NULL);
471 caps = gst_caps_fixate(caps);
474 gst_app_sink_set_caps(GST_APP_SINK(sink), caps);
475 //printf("filtering with %s\n", gst_caps_to_string(caps));
482 * remove the specified filter from the appsink template caps
486 if(!caps)
490 if (! gst_caps_is_writable(caps))
491 caps = gst_caps_make_writable (caps);
494 GstStructure *s = gst_caps_get_structure(caps, 0);
497 gst_app_sink_set_caps(GST_APP_SINK(sink), caps);
631 // At this writing, the v4l2 element (and maybe others too) does not support caps renegotiation.
712 //automatically selects the correct colorspace conversion based on caps.
744 caps = gst_caps_new_simple("video/x-raw-rgb",
752 caps = gst_caps_from_string("video/x-raw, format=(string){BGR, GRAY8}; video/x-bayer,format=(string){rggb,bggr,grbg,gbrg}");
754 gst_app_sink_set_caps(GST_APP_SINK(sink), caps);
755 gst_caps_unref(caps);
838 * For frame-based properties, we use the caps of the lasst receivef sample. This means that some properties
1186 * In the latter case, we just push frames on the appsink with appropriate caps.
1213 GstCaps* caps = NULL;
1300 //create encoder caps from fourcc
1307 //create container caps from file extension
1339 caps = gst_video_format_new_caps(GST_VIDEO_FORMAT_BGR,
1345 caps = gst_caps_new_simple("video/x-raw",
1351 caps = gst_caps_fixate(caps);
1363 caps = gst_video_format_new_caps(GST_VIDEO_FORMAT_GRAY8,
1369 caps = gst_caps_new_simple("video/x-raw",
1375 caps = gst_caps_fixate(caps);
1382 gst_app_src_set_caps(GST_APP_SRC(source), caps);