gsttag.global
Global functions for gsttag1 library
fn tagCheckLanguageCode tagFreeformStringToUtf8 tagFromId3Tag tagFromId3UserTag tagFromVorbisTag tagGetId3v2TagSize tagGetLanguageCodeIso6391 tagGetLanguageCodeIso6392B tagGetLanguageCodeIso6392T tagGetLanguageCodes tagGetLanguageName tagGetLicenseDescription tagGetLicenseFlags tagGetLicenseJurisdiction tagGetLicenseNick tagGetLicenses tagGetLicenseTitle tagGetLicenseVersion tagId3GenreCount tagId3GenreGet tagImageDataToImageSample tagListAddId3Image tagListFromExifBuffer tagListFromExifBufferWithTiffHeader tagListFromId3v2Tag tagListFromVorbiscomment tagListFromVorbiscommentBuffer tagListFromXmpBuffer tagListNewFromId3v1 tagListToExifBuffer tagListToExifBufferWithTiffHeader tagListToVorbiscommentBuffer tagListToXmpBuffer tagParseExtendedComment tagRegisterMusicbrainzTags tagToId3Tag tagToVorbisComments tagToVorbisTag tagXmpListSchemas vorbisTagAdd
Functions 40
fn
bool tagCheckLanguageCode(string langCode)Check if a given string contains a known ISO 639 language code.fn
string tagFreeformStringToUtf8(string data, string[] envVars)Convenience function to read a string with unknown character encoding. If the string is already in UTF-8 encoding, it will be returned right away. If not it tries to detect byte-order-mark for UTF-...fn
string tagFromId3UserTag(string type, string id3UserTag)Looks up the GStreamer tag for an ID3v2 user tag (e.g. description in TXXX frame or owner in UFID frame).fn
uint tagGetId3v2TagSize(gst.buffer.Buffer buffer)Determines size of an ID3v2 tag on buffer containing at least ID3v2 header, i.e. at least #GSTTAGID3V2HEADERSIZE (10) bytes;fn
string tagGetLanguageCodeIso6391(string langCode)Returns two-letter ISO-639-1 language code given a three-letter ISO-639-2 language code or two-letter ISO-639-1 language code (both are accepted for convenience).fn
string tagGetLanguageCodeIso6392B(string langCode)Returns three-letter ISO-639-2 "bibliographic" language code given a two-letter ISO-639-1 language code or a three-letter ISO-639-2 language code (both are accepted for convenience).fn
string tagGetLanguageCodeIso6392T(string langCode)Returns three-letter ISO-639-2 "terminological" language code given a two-letter ISO-639-1 language code or a three-letter ISO-639-2 language code (both are accepted for convenience).fn
string[] tagGetLanguageCodes()Returns a list of known language codes (in form of two-letter ISO-639-1 codes). This is useful for UIs to build a list of available languages for tagging purposes (e.g. to tag an audio track approp...fn
string tagGetLanguageName(string languageCode)Returns the name of the language given an ISO-639 language code as found in a GSTTAGLANGUAGE_CODE tag. The name will be translated according to the current locale (if the library was built against ...fn
string tagGetLicenseDescription(string licenseRef)Get the description of a license, which is a translated description of the license's main features.fn
gsttag.types.TagLicenseFlags tagGetLicenseFlags(string licenseRef)Get the flags of a license, which describe most of the features of a license in their most general form.fn
string tagGetLicenseJurisdiction(string licenseRef)Get the jurisdiction code of a license. This is usually a two-letter ISO 3166-1 alpha-2 code, but there is also the special case of Scotland, for which no code exists and which is thus represented ...fn
string tagGetLicenseNick(string licenseRef)Get the nick name of a license, which is a short (untranslated) string such as e.g. "CC BY-NC-ND 2.0 UK".fn
string tagGetLicenseTitle(string licenseRef)Get the title of a license, which is a short translated description of the license's features (generally not very pretty though).fn
string[] tagGetLicenses()Returns a list of known license references (in form of URIs). This is useful for UIs to build a list of available licenses for tagging purposes (e.g. to tag an audio track appropriately in a video ...fn
uint tagId3GenreCount()Gets the number of ID3v1 genres that can be identified. Winamp genres are included. Returns: the number of ID3v1 genres that can be identifiedfn
gst.sample.Sample tagImageDataToImageSample(ubyte[] imageData, gsttag.types.TagImageType imageType)Helper function for tag-reading plugins to create a #GstSample suitable to add to a #GstTagList as an image tag (such as #GSTTAGIMAGE or #GSTTAGPREVIEW_IMAGE) from the encoded image data and an (op...fn
bool tagListAddId3Image(gst.tag_list.TagList tagList, ubyte[] imageData, uint id3PictureType)Adds an image from an ID3 APIC frame (or similar, such as used in FLAC) to the given tag list. Also see [gsttag.global.tagImageDataToImageSample] for more information on image tags in GStreamer.fn
gst.tag_list.TagList tagListFromExifBuffer(gst.buffer.Buffer buffer, int byteOrder, uint baseOffset)Parses the IFD and IFD tags data contained in the buffer and puts it on a taglist. The base_offset is used to subtract from the offset in the tag entries and be able to get the offset relative to t...fn
gst.tag_list.TagList tagListFromExifBufferWithTiffHeader(gst.buffer.Buffer buffer)Parses the exif tags starting with a tiff header structure.fn
gst.tag_list.TagList tagListFromId3v2Tag(gst.buffer.Buffer buffer)Creates a new tag list that contains the information parsed out of a ID3 tag.fn
gst.tag_list.TagList tagListFromVorbiscomment(ubyte[] data, ubyte[] idData, out string vendorString)Creates a new tag list that contains the information parsed out of a vorbiscomment packet.fn
gst.tag_list.TagList tagListFromVorbiscommentBuffer(gst.buffer.Buffer buffer, ubyte[] idData, out string vendorString)Creates a new tag list that contains the information parsed out of a vorbiscomment packet.fn
gst.tag_list.TagList tagListFromXmpBuffer(gst.buffer.Buffer buffer)Parse a xmp packet into a taglist.fn
gst.tag_list.TagList tagListNewFromId3v1(ubyte[] data)Parses the data containing an ID3v1 tag and returns a #GstTagList from the parsed data.fn
gst.buffer.Buffer tagListToExifBuffer(gst.tag_list.TagList taglist, int byteOrder, uint baseOffset)Formats the tags in taglist on exif format. The resulting buffer contains the tags IFD and is followed by the data pointed by the tag entries.fn
gst.buffer.Buffer tagListToExifBufferWithTiffHeader(gst.tag_list.TagList taglist)Formats the tags in taglist into exif structure, a tiff header is put in the beginning of the buffer.fn
gst.buffer.Buffer tagListToVorbiscommentBuffer(gst.tag_list.TagList list, ubyte[] idData, string vendorString = null)Creates a new vorbiscomment buffer from a tag list.fn
gst.buffer.Buffer tagListToXmpBuffer(gst.tag_list.TagList list, bool readOnly, string[] schemas)Formats a taglist as a xmp packet using only the selected schemas. An empty list (null) means that all schemas should be usedfn
bool tagParseExtendedComment(string extComment, out string key, out string lang, out string value, bool failIfNoKey)Convenience function to parse a GSTTAGEXTENDED_COMMENT string and separate it into its components.fn
void tagRegisterMusicbrainzTags()Registers additional musicbrainz-specific tags with the GStreamer tag system. Plugins and applications that use these tags should call this function before using them. Can be called multiple times.fn
string[] tagToVorbisComments(gst.tag_list.TagList list, string tag)Creates a new tag list that contains the information parsed out of a vorbiscomment packet.fn
string[] tagXmpListSchemas()Gets the list of supported schemas in the xmp lib Returns: a null terminated array of strings with the schema namesfn
void vorbisTagAdd(gst.tag_list.TagList list, string tag, string value)Convenience function using [gsttag.global.tagFromVorbisTag], parsing a vorbis comment string into the right type and adding it to the given taglist list.