Lines Matching refs:allowed_caps
332 GstCaps *allowed_caps; in gst_nv_h264_enc_set_profile_and_level() local
369 allowed_caps = gst_pad_get_allowed_caps (GST_VIDEO_ENCODER_SRC_PAD (nvenc)); in gst_nv_h264_enc_set_profile_and_level()
371 if (allowed_caps == NULL) in gst_nv_h264_enc_set_profile_and_level()
374 if (!gst_caps_can_intersect (allowed_caps, caps)) { in gst_nv_h264_enc_set_profile_and_level()
375 allowed_caps = gst_caps_make_writable (allowed_caps); in gst_nv_h264_enc_set_profile_and_level()
376 allowed_caps = gst_caps_truncate (allowed_caps); in gst_nv_h264_enc_set_profile_and_level()
377 s2 = gst_caps_get_structure (allowed_caps, 0); in gst_nv_h264_enc_set_profile_and_level()
401 gst_caps_unref (allowed_caps); in gst_nv_h264_enc_set_profile_and_level()
447 GstCaps *allowed_caps, *template_caps; in gst_nv_h264_enc_set_encoder_config() local
456 allowed_caps = gst_pad_get_allowed_caps (GST_VIDEO_ENCODER_SRC_PAD (h264enc)); in gst_nv_h264_enc_set_encoder_config()
458 if (template_caps == allowed_caps) { in gst_nv_h264_enc_set_encoder_config()
460 } else if (allowed_caps) { in gst_nv_h264_enc_set_encoder_config()
465 if (gst_caps_is_empty (allowed_caps)) { in gst_nv_h264_enc_set_encoder_config()
466 gst_caps_unref (allowed_caps); in gst_nv_h264_enc_set_encoder_config()
471 allowed_caps = gst_caps_make_writable (allowed_caps); in gst_nv_h264_enc_set_encoder_config()
472 allowed_caps = gst_caps_fixate (allowed_caps); in gst_nv_h264_enc_set_encoder_config()
473 s = gst_caps_get_structure (allowed_caps, 0); in gst_nv_h264_enc_set_encoder_config()
500 gst_caps_unref (allowed_caps); in gst_nv_h264_enc_set_encoder_config()