gst_encoding_profile_get_description
gst_encoding_profile_get_format
gst_encoding_profile_get_preset
+gst_encoding_profile_get_preset_name
gst_encoding_profile_get_presence
gst_encoding_profile_get_restriction
gst_encoding_profile_set_name
gst_encoding_profile_set_description
gst_encoding_profile_set_format
gst_encoding_profile_set_preset
+gst_encoding_profile_set_preset_name
gst_encoding_profile_set_restriction
gst_encoding_profile_set_presence
gst_encoding_profile_is_equal
* gchar *category = (gchar *) tmpc->data;
*
* ... and we can list all targets within that category ...
- *
+ *
* targets = gst_encoding_target_list_all (category);
*
* ... and show a list to our users ...
gchar *description;
GstCaps *format;
gchar *preset;
+ gchar *preset_name;
guint presence;
GstCaps *restriction;
};
* gst_encoding_profile_get_preset:
* @profile: a #GstEncodingProfile
*
- * Returns: the name of the #GstPreset to be used in the profile.
+ * Returns: the name of the #GstElement that implements #GstPreset to
+ * be used in the profile.
*/
const gchar *
gst_encoding_profile_get_preset (GstEncodingProfile * profile)
}
/**
+ * gst_encoding_profile_get_preset_name:
+ * @profile: a #GstEncodingProfile
+ *
+ * Returns: the name of the #GstPreset to be used in the profile.
+ * This is the name that has been set when saving the preset.
+ */
+const gchar *
+gst_encoding_profile_get_preset_name (GstEncodingProfile * profile)
+{
+ return profile->preset_name;
+}
+
+/**
* gst_encoding_profile_get_presence:
* @profile: a #GstEncodingProfile
*
* @profile: a #GstEncodingProfile
* @preset: the element preset to use
*
- * Sets the preset to use for the profile.
+ * Sets the name of the #GstElement that implements the #GstPreset interface
+ * to use for the profile.
*/
void
gst_encoding_profile_set_preset (GstEncodingProfile * profile,
}
/**
+ * gst_encoding_profile_get_preset_name:
+ * @profile: a #GstEncodingProfile
+ * @preset_name: The name of the preset to use in this @profile.
+ *
+ * Sets the name of the #GstPreset to be used in the profile.
+ * This is the name that has been set when saving the preset.
+ */
+void
+gst_encoding_profile_set_preset_name (GstEncodingProfile * profile,
+ const gchar * preset_name)
+{
+ if (profile->preset_name)
+ g_free (profile->preset_name);
+ profile->preset_name = g_strdup (preset_name);
+}
+
+/**
* gst_encoding_profile_set_presence:
* @profile: a #GstEncodingProfile
* @presence: the number of time the profile can be used
* @profile: (transfer full): the #GstEncodingProfile to add.
*
* Add a #GstEncodingProfile to the list of profiles handled by @container.
- *
+ *
* No copy of @profile will be made, if you wish to use it elsewhere after this
* method you should increment its reference count.
*
if (restriction)
prof->restriction = gst_caps_ref (restriction);
prof->presence = presence;
+ prof->preset_name = NULL;
return prof;
}
void gst_encoding_profile_set_format (GstEncodingProfile *profile,
GstCaps *format);
const gchar * gst_encoding_profile_get_preset (GstEncodingProfile *profile);
+const gchar * gst_encoding_profile_get_preset_name (GstEncodingProfile *profile);
void gst_encoding_profile_set_preset (GstEncodingProfile *profile,
const gchar *preset);
guint gst_encoding_profile_get_presence (GstEncodingProfile *profile);
void gst_encoding_profile_set_presence (GstEncodingProfile *profile,
guint presence);
+void gst_encoding_profile_set_preset_name (GstEncodingProfile * profile,
+ const gchar * preset_name);
GstCaps * gst_encoding_profile_get_restriction (GstEncodingProfile *profile);
void gst_encoding_profile_set_restriction (GstEncodingProfile *profile,
GstCaps *restriction);