gst_encoding_profile_set_restriction
gst_encoding_profile_set_presence
gst_encoding_profile_is_equal
-gst_encoding_profile_get_output_caps
+gst_encoding_profile_get_input_caps
gst_encoding_profile_get_type_nick
<SUBSECTION container>
GstEncodingContainerProfile
/**
- * gst_encoding_profile_get_output_caps:
+ * gst_encoding_profile_get_input_caps:
* @profile: a #GstEncodingProfile
*
* Computes the full output caps that this @profile will be able to consume.
* when you are done with the caps.
*/
GstCaps *
-gst_encoding_profile_get_output_caps (GstEncodingProfile * profile)
+gst_encoding_profile_get_input_caps (GstEncodingProfile * profile)
{
GstCaps *out, *tmp;
GList *ltmp;
for (ltmp = GST_ENCODING_CONTAINER_PROFILE (profile)->encodingprofiles;
ltmp; ltmp = ltmp->next) {
GstEncodingProfile *sprof = (GstEncodingProfile *) ltmp->data;
- gst_caps_merge (res, gst_encoding_profile_get_output_caps (sprof));
+ gst_caps_merge (res, gst_encoding_profile_get_input_caps (sprof));
}
return res;
}
gboolean gst_encoding_profile_is_equal (GstEncodingProfile *a,
GstEncodingProfile *b);
-GstCaps * gst_encoding_profile_get_output_caps (GstEncodingProfile *profile);
+GstCaps * gst_encoding_profile_get_input_caps (GstEncodingProfile *profile);
const gchar *gst_encoding_profile_get_type_nick (GstEncodingProfile *profile);
GstCaps *outcaps;
gboolean res;
- outcaps = gst_encoding_profile_get_output_caps (sprof);
+ outcaps = gst_encoding_profile_get_input_caps (sprof);
GST_DEBUG ("Unknown stream, seeing if it's compatible with %"
GST_PTR_FORMAT, outcaps);
res = gst_caps_can_intersect (outcaps, caps);
/* Test caps */
test1 = gst_caps_from_string ("video/x-theora; audio/x-vorbis");
- test2 = gst_encoding_profile_get_output_caps (encprof);
+ test2 = gst_encoding_profile_get_input_caps (encprof);
fail_unless (gst_caps_is_equal (test1, test2));
gst_caps_unref (test1);
gst_caps_unref (test2);
GST_END_TEST;
-GST_START_TEST (test_profile_output_caps)
+GST_START_TEST (test_profile_input_caps)
{
GstEncodingProfile *sprof;
GstCaps *vorbis;
gst_encoding_audio_profile_new (vorbis, NULL, NULL, 0);
fail_if (sprof == NULL);
- out = gst_encoding_profile_get_output_caps (sprof);
+ out = gst_encoding_profile_get_input_caps (sprof);
fail_if (out == NULL);
fail_unless (gst_caps_is_equal (out, vorbis));
gst_caps_unref (out);
gst_encoding_audio_profile_new (vorbis, NULL, restriction, 0);
fail_if (sprof == NULL);
- out = gst_encoding_profile_get_output_caps (sprof);
+ out = gst_encoding_profile_get_input_caps (sprof);
fail_if (out == NULL);
GST_DEBUG ("got caps %" GST_PTR_FORMAT, out);
fail_unless (gst_caps_is_equal (out, test1));
suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, test_profile_creation);
- tcase_add_test (tc_chain, test_profile_output_caps);
+ tcase_add_test (tc_chain, test_profile_input_caps);
tcase_add_test (tc_chain, test_target_naming);
tcase_add_test (tc_chain, test_target_profile);
if (can_write) {
/* Figure out the streams that can be passed as-is to encodebin */
g_object_get (src, "caps", &rescaps, NULL);
rescaps = gst_caps_copy (rescaps);
- profilecaps = gst_encoding_profile_get_output_caps (prof);
+ profilecaps = gst_encoding_profile_get_input_caps (prof);
gst_caps_append (rescaps, profilecaps);
/* Set properties */