Lines Matching defs:caps
168 gboolean gst_sbc_enc_fill_sbc_params(GstSbcEnc *enc, GstCaps *caps);
233 static gboolean sbc_enc_src_setcaps(GstPad *pad, GstCaps *caps)
237 GST_LOG_OBJECT(enc, "setting srcpad caps");
239 return gst_sbc_enc_fill_sbc_params(enc, caps);
242 static GstCaps *sbc_enc_src_caps_fixate(GstSbcEnc *enc, GstCaps *caps)
247 result = gst_sbc_util_caps_fixate(caps, &error_message);
250 GST_WARNING_OBJECT(enc, "Invalid input caps caused parsing "
261 GstCaps *caps;
265 caps = gst_pad_get_allowed_caps(enc->srcpad);
266 if (caps == NULL)
267 caps = sbc_enc_src_getcaps(enc->srcpad);
269 if (caps == GST_CAPS_NONE || gst_caps_is_empty(caps)) {
274 result_caps = sbc_enc_src_caps_fixate(enc, caps);
277 gst_caps_unref(caps);
285 static gboolean sbc_enc_sink_setcaps(GstPad *pad, GstCaps *caps)
294 structure = gst_caps_get_structure(caps, 0);
313 gboolean gst_sbc_enc_fill_sbc_params(GstSbcEnc *enc, GstCaps *caps)
315 if (!gst_caps_is_fixed(caps)) {
316 GST_DEBUG_OBJECT(enc, "didn't receive fixed caps, "
321 if (!gst_sbc_util_fill_sbc_params(&enc->sbc, caps))
377 GstCaps *caps;
381 caps = GST_PAD_CAPS(enc->srcpad);
384 enc->frame_length, caps,
469 /* changes to those properties will only happen on the next caps