gstpbutils.encoding_target
Module for [EncodingTarget] class
Types 3
Collection of #GstEncodingProfile for a specific target or use-case.
When being stored/loaded, targets come from a specific category, like #GST_ENCODING_CATEGORY_DEVICE.
Methods
EncodingTargetGidBuilder builder() static nothrowGet builder for [gstpbutils.encoding_target.EncodingTarget] Returns: New builder objectgstpbutils.encoding_target.EncodingTarget load(string name, string category = null) staticSearches for the #GstEncodingTarget with the given name, loads it and returns it.gstpbutils.encoding_target.EncodingTarget loadFromFile(string filepath) staticOpens the provided file and returns the contained #GstEncodingTarget.bool addProfile(gstpbutils.encoding_profile.EncodingProfile profile) nothrowAdds the given profile to the target. Each added profile must have a unique name within the profile.string getCategory() nothrowstring getDescription() nothrowstring getName() nothrowstring getPath() nothrowgstpbutils.encoding_profile.EncodingProfile getProfile(string name) nothrowbool save()Saves the target to a default user-local directory. Returns: true if the target was correctly saved, else false. Throws: [ErrorWrap]bool saveToFile(string filepath)Saves the target to the provided file location.Constructors
this(string name, string category, string description, gstpbutils.encoding_profile.EncodingProfile[] profiles)Creates a new #GstEncodingTarget.Fluent builder implementation template for gstpbutils.encoding_target.EncodingTarget
Fluent builder for gstpbutils.encoding_target.EncodingTarget
Methods