Lines Matching refs:othercaps
477 GstCaps *othercaps, *src_peer_caps; in gst_interlace_setcaps() local
494 othercaps = gst_caps_copy (caps); in gst_interlace_setcaps()
495 gst_caps_set_simple (othercaps, "interlace-mode", G_TYPE_STRING, in gst_interlace_setcaps()
497 gst_caps_append (othercaps, dup_caps_with_alternate (othercaps)); in gst_interlace_setcaps()
499 for (i = 0; i < gst_caps_get_size (othercaps); ++i) { in gst_interlace_setcaps()
502 s = gst_caps_get_structure (othercaps, i); in gst_interlace_setcaps()
510 othercaps = gst_interlace_caps_double_framerate (othercaps, TRUE, FALSE); in gst_interlace_setcaps()
514 for (i = 0; i < gst_caps_get_size (othercaps); ++i) { in gst_interlace_setcaps()
515 GstStructure *s = gst_caps_get_structure (othercaps, i); in gst_interlace_setcaps()
520 src_peer_caps = gst_pad_peer_query_caps (interlace->srcpad, othercaps); in gst_interlace_setcaps()
521 gst_caps_unref (othercaps); in gst_interlace_setcaps()
522 othercaps = gst_caps_fixate (src_peer_caps); in gst_interlace_setcaps()
523 if (gst_caps_is_empty (othercaps)) { in gst_interlace_setcaps()
524 gst_caps_unref (othercaps); in gst_interlace_setcaps()
527 if (!gst_video_info_from_caps (&out_info, othercaps)) { in gst_interlace_setcaps()
528 gst_caps_unref (othercaps); in gst_interlace_setcaps()
555 if (gst_caps_can_intersect (caps, othercaps) && in gst_interlace_setcaps()
573 GstCaps *clonedcaps = gst_caps_copy (othercaps); in gst_interlace_setcaps()
586 caps, othercaps); in gst_interlace_setcaps()
587 gst_caps_unref (othercaps); in gst_interlace_setcaps()
593 caps, othercaps); in gst_interlace_setcaps()
594 gst_caps_unref (othercaps); in gst_interlace_setcaps()
599 gst_caps_set_simple (othercaps, "framerate", GST_TYPE_FRACTION, src_fps_n, in gst_interlace_setcaps()
602 gst_caps_set_simple (othercaps, "field-order", G_TYPE_STRING, in gst_interlace_setcaps()
606 gst_video_info_from_caps (&out_info, othercaps); in gst_interlace_setcaps()
610 GST_DEBUG_OBJECT (interlace->srcpad, "set caps %" GST_PTR_FORMAT, othercaps); in gst_interlace_setcaps()
612 ret = gst_pad_set_caps (interlace->srcpad, othercaps); in gst_interlace_setcaps()
613 gst_caps_unref (othercaps); in gst_interlace_setcaps()
879 GstCaps *othercaps, *tcaps; in gst_interlace_getcaps() local
937 othercaps = gst_pad_peer_query_caps (otherpad, clean_filter); in gst_interlace_getcaps()
938 othercaps = gst_caps_make_writable (othercaps); in gst_interlace_getcaps()
939 GST_DEBUG_OBJECT (pad, "Other caps %" GST_PTR_FORMAT, othercaps); in gst_interlace_getcaps()
940 if (othercaps) { in gst_interlace_getcaps()
942 for (i = 0; i < gst_caps_get_size (othercaps); ++i) { in gst_interlace_getcaps()
943 GstStructure *s = gst_caps_get_structure (othercaps, i); in gst_interlace_getcaps()
953 icaps = gst_caps_intersect (othercaps, tcaps); in gst_interlace_getcaps()
954 gst_caps_unref (othercaps); in gst_interlace_getcaps()
961 othercaps = gst_caps_intersect (icaps, clean_filter); in gst_interlace_getcaps()
963 icaps = othercaps; in gst_interlace_getcaps()