- public bool check_language_code (string lang_code)
Check if a given string contains a known ISO 639 language code.
- public string? freeform_string_to_utf8 (char[] data, string[] env_vars)
Convenience function to read a string with unknown character encoding.
- public unowned string? from_id3_tag (string id3_tag)
Looks up the GStreamer tag for a ID3v2 tag.
- public unowned string? from_id3_user_tag (string type, string id3_user_tag)
Looks up the GStreamer tag for an ID3v2 user tag (e.g. description in TXXX
frame or owner in UFID frame).
- public unowned string? from_vorbis_tag (string vorbis_tag)
Looks up the GStreamer tag for a vorbiscomment tag.
- public uint get_id3v2_tag_size (Buffer buffer)
Determines size of an ID3v2 tag on buffer containing at least ID3v2 header,
i.e. at least ID3V2_HEADER_SIZE (10) bytes;
- public unowned string? get_language_code_iso_639_1 (string lang_code)
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).
- public unowned string? get_language_code_iso_639_2B (string lang_code)
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).
- public unowned string? get_language_code_iso_639_2T (string lang_code)
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).
- public string[] get_language_codes ()
Returns a list of known language codes (in form of two-letter ISO-639-1
codes).
- public unowned string? get_language_name (string language_code)
Returns the name of the language given an ISO-639 language code as found in
a GST_TAG_LANGUAGE_CODE tag.
- public unowned string? get_license_description (string license_ref)
Get the description of a license, which is a translated description of the
license's main features.
- public LicenseFlags get_license_flags (string license_ref)
Get the flags of a license, which describe most of the features of a license
in their most general form.
- public unowned string? get_license_jurisdiction (string license_ref)
Get the jurisdiction code of a license.
- public unowned string? get_license_nick (string license_ref)
Get the nick name of a license, which is a short (untranslated) string such
as e.g. "CC BY-NC-ND 2.0 UK".
- public unowned string? get_license_title (string license_ref)
Get the title of a license, which is a short translated description of the
license's features (generally not very pretty though).
- public unowned string? get_license_version (string license_ref)
Get the version of a license.
- public string[] get_licenses ()
Returns a list of known license references (in form of URIs).
- public uint id3_genre_count ()
Gets the number of ID3v1 genres that can be identified.
- public unowned string? id3_genre_get (uint id)
Gets the ID3v1 genre name for a given ID.
- public Sample? image_data_to_image_sample (uint8[] image_data, ImageType image_type)
Helper function for tag-reading plugins to create a
Sample suitable to add to a
TagList as an image tag (such as
IMAGE or
PREVIEW_IMAGE) from the encoded image data and an (optional) image
type.
- public bool parse_extended_comment (string ext_comment, out string? key, out string? lang, out string value, bool fail_if_no_key)
Convenience function to parse a GST_TAG_EXTENDED_COMMENT string and separate
it into its components.
- public void register_musicbrainz_tags ()
Registers additional musicbrainz-specific tags with the GStreamer tag
system.
- public unowned string? to_id3_tag (string gst_tag)
Looks up the ID3v2 tag for a GStreamer tag.
- public List<string> to_vorbis_comments (TagList list, string tag)
Creates a new tag list that contains the information parsed out of a
vorbiscomment packet.
- public unowned string? to_vorbis_tag (string gst_tag)
Looks up the vorbiscomment tag for a GStreamer tag.
- public void vorbis_tag_add (TagList list, string tag, string value)
Convenience function using
from_vorbis_tag, parsing a vorbis comment string into the right
type and adding it to the given taglist list
.
- public unowned string[] xmp_list_schemas ()
Gets the list of supported schemas in the xmp lib