Commit 1e63a820 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Fix GstTag bindings

parent d5728975
......@@ -515,179 +515,233 @@ Subclasses should set this in their class_init function.</doc>
</record>
<record name="TagDemuxPrivate" c:type="GstTagDemuxPrivate" disguised="1">
</record>
<enumeration name="TagDemuxResult" c:type="GstTagDemuxResult">
<enumeration name="TagDemuxResult"
glib:type-name="GstTagDemuxResult"
glib:get-type="gst_tag_demux_result_get_type"
c:type="GstTagDemuxResult">
<doc xml:space="preserve">Result values from the parse_tag virtual function.</doc>
<member name="broken_tag"
value="0"
c:identifier="GST_TAG_DEMUX_RESULT_BROKEN_TAG">
c:identifier="GST_TAG_DEMUX_RESULT_BROKEN_TAG"
glib:nick="broken-tag">
<doc xml:space="preserve">cannot parse tag, just skip it</doc>
</member>
<member name="again" value="1" c:identifier="GST_TAG_DEMUX_RESULT_AGAIN">
<member name="again"
value="1"
c:identifier="GST_TAG_DEMUX_RESULT_AGAIN"
glib:nick="again">
<doc xml:space="preserve">call again with less or more data</doc>
</member>
<member name="ok" value="2" c:identifier="GST_TAG_DEMUX_RESULT_OK">
<member name="ok"
value="2"
c:identifier="GST_TAG_DEMUX_RESULT_OK"
glib:nick="ok">
<doc xml:space="preserve">parsed tag successfully</doc>
</member>
</enumeration>
<enumeration name="TagImageType" c:type="GstTagImageType">
<enumeration name="TagImageType"
glib:type-name="GstTagImageType"
glib:get-type="gst_tag_image_type_get_type"
c:type="GstTagImageType">
<doc xml:space="preserve">Type of image contained in an image tag (specified as "image-type" field in
the info structure in the image's #GstSample)</doc>
<member name="none" value="-1" c:identifier="GST_TAG_IMAGE_TYPE_NONE">
<member name="none"
value="-1"
c:identifier="GST_TAG_IMAGE_TYPE_NONE"
glib:nick="none">
<doc xml:space="preserve">No image type. Can be used to
tell functions such as gst_tag_image_data_to_image_sample() that no
image type should be set.</doc>
</member>
<member name="undefined"
value="0"
c:identifier="GST_TAG_IMAGE_TYPE_UNDEFINED">
c:identifier="GST_TAG_IMAGE_TYPE_UNDEFINED"
glib:nick="undefined">
<doc xml:space="preserve">Undefined/other image type</doc>
</member>
<member name="front_cover"
value="1"
c:identifier="GST_TAG_IMAGE_TYPE_FRONT_COVER">
c:identifier="GST_TAG_IMAGE_TYPE_FRONT_COVER"
glib:nick="front-cover">
<doc xml:space="preserve">Cover (front)</doc>
</member>
<member name="back_cover"
value="2"
c:identifier="GST_TAG_IMAGE_TYPE_BACK_COVER">
c:identifier="GST_TAG_IMAGE_TYPE_BACK_COVER"
glib:nick="back-cover">
<doc xml:space="preserve">Cover (back)</doc>
</member>
<member name="leaflet_page"
value="3"
c:identifier="GST_TAG_IMAGE_TYPE_LEAFLET_PAGE">
c:identifier="GST_TAG_IMAGE_TYPE_LEAFLET_PAGE"
glib:nick="leaflet-page">
<doc xml:space="preserve">Leaflet page</doc>
</member>
<member name="medium" value="4" c:identifier="GST_TAG_IMAGE_TYPE_MEDIUM">
<member name="medium"
value="4"
c:identifier="GST_TAG_IMAGE_TYPE_MEDIUM"
glib:nick="medium">
<doc xml:space="preserve">Medium (e.g. label side of CD)</doc>
</member>
<member name="lead_artist"
value="5"
c:identifier="GST_TAG_IMAGE_TYPE_LEAD_ARTIST">
c:identifier="GST_TAG_IMAGE_TYPE_LEAD_ARTIST"
glib:nick="lead-artist">
<doc xml:space="preserve">Lead artist/lead performer/soloist</doc>
</member>
<member name="artist" value="6" c:identifier="GST_TAG_IMAGE_TYPE_ARTIST">
<member name="artist"
value="6"
c:identifier="GST_TAG_IMAGE_TYPE_ARTIST"
glib:nick="artist">
<doc xml:space="preserve">Artist/performer</doc>
</member>
<member name="conductor"
value="7"
c:identifier="GST_TAG_IMAGE_TYPE_CONDUCTOR">
c:identifier="GST_TAG_IMAGE_TYPE_CONDUCTOR"
glib:nick="conductor">
<doc xml:space="preserve">Conductor</doc>
</member>
<member name="band_orchestra"
value="8"
c:identifier="GST_TAG_IMAGE_TYPE_BAND_ORCHESTRA">
c:identifier="GST_TAG_IMAGE_TYPE_BAND_ORCHESTRA"
glib:nick="band-orchestra">
<doc xml:space="preserve">Band/orchestra</doc>
</member>
<member name="composer"
value="9"
c:identifier="GST_TAG_IMAGE_TYPE_COMPOSER">
c:identifier="GST_TAG_IMAGE_TYPE_COMPOSER"
glib:nick="composer">
<doc xml:space="preserve">Composer</doc>
</member>
<member name="lyricist"
value="10"
c:identifier="GST_TAG_IMAGE_TYPE_LYRICIST">
c:identifier="GST_TAG_IMAGE_TYPE_LYRICIST"
glib:nick="lyricist">
<doc xml:space="preserve">Lyricist/text writer</doc>
</member>
<member name="recording_location"
value="11"
c:identifier="GST_TAG_IMAGE_TYPE_RECORDING_LOCATION">
c:identifier="GST_TAG_IMAGE_TYPE_RECORDING_LOCATION"
glib:nick="recording-location">
<doc xml:space="preserve">Recording location</doc>
</member>
<member name="during_recording"
value="12"
c:identifier="GST_TAG_IMAGE_TYPE_DURING_RECORDING">
c:identifier="GST_TAG_IMAGE_TYPE_DURING_RECORDING"
glib:nick="during-recording">
<doc xml:space="preserve">During recording</doc>
</member>
<member name="during_performance"
value="13"
c:identifier="GST_TAG_IMAGE_TYPE_DURING_PERFORMANCE">
c:identifier="GST_TAG_IMAGE_TYPE_DURING_PERFORMANCE"
glib:nick="during-performance">
<doc xml:space="preserve">During performance</doc>
</member>
<member name="video_capture"
value="14"
c:identifier="GST_TAG_IMAGE_TYPE_VIDEO_CAPTURE">
c:identifier="GST_TAG_IMAGE_TYPE_VIDEO_CAPTURE"
glib:nick="video-capture">
<doc xml:space="preserve">Movie/video screen capture</doc>
</member>
<member name="fish" value="15" c:identifier="GST_TAG_IMAGE_TYPE_FISH">
<member name="fish"
value="15"
c:identifier="GST_TAG_IMAGE_TYPE_FISH"
glib:nick="fish">
<doc xml:space="preserve">A fish as funny as the ID3v2 spec</doc>
</member>
<member name="illustration"
value="16"
c:identifier="GST_TAG_IMAGE_TYPE_ILLUSTRATION">
c:identifier="GST_TAG_IMAGE_TYPE_ILLUSTRATION"
glib:nick="illustration">
<doc xml:space="preserve">Illustration</doc>
</member>
<member name="band_artist_logo"
<member name="artist_logo"
value="17"
c:identifier="GST_TAG_IMAGE_TYPE_BAND_ARTIST_LOGO">
c:identifier="GST_TAG_IMAGE_TYPE_ARTIST_LOGO"
glib:nick="artist-logo">
<doc xml:space="preserve">Band/artist logotype</doc>
</member>
<member name="publisher_studio_logo"
value="18"
c:identifier="GST_TAG_IMAGE_TYPE_PUBLISHER_STUDIO_LOGO">
c:identifier="GST_TAG_IMAGE_TYPE_PUBLISHER_STUDIO_LOGO"
glib:nick="publisher-studio-logo">
<doc xml:space="preserve">Publisher/studio logotype</doc>
</member>
</enumeration>
<bitfield name="TagLicenseFlags" c:type="GstTagLicenseFlags">
<bitfield name="TagLicenseFlags"
glib:type-name="GstTagLicenseFlags"
glib:get-type="gst_tag_license_flags_get_type"
c:type="GstTagLicenseFlags">
<doc xml:space="preserve">See http://creativecommons.org/ns for more information.</doc>
<member name="permits_reproduction"
value="1"
c:identifier="GST_TAG_LICENSE_PERMITS_REPRODUCTION">
c:identifier="GST_TAG_LICENSE_PERMITS_REPRODUCTION"
glib:nick="permits-reproduction">
<doc xml:space="preserve">making multiple copies
is allowed</doc>
</member>
<member name="permits_distribution"
value="2"
c:identifier="GST_TAG_LICENSE_PERMITS_DISTRIBUTION">
c:identifier="GST_TAG_LICENSE_PERMITS_DISTRIBUTION"
glib:nick="permits-distribution">
<doc xml:space="preserve">distribution, public display
and public performance are allowed</doc>
</member>
<member name="permits_derivative_works"
value="4"
c:identifier="GST_TAG_LICENSE_PERMITS_DERIVATIVE_WORKS">
c:identifier="GST_TAG_LICENSE_PERMITS_DERIVATIVE_WORKS"
glib:nick="permits-derivative-works">
<doc xml:space="preserve">distribution of derivative
works is allowed</doc>
</member>
<member name="permits_sharing"
value="8"
c:identifier="GST_TAG_LICENSE_PERMITS_SHARING">
c:identifier="GST_TAG_LICENSE_PERMITS_SHARING"
glib:nick="permits-sharing">
<doc xml:space="preserve">commercial derivatives are allowed,
but only non-commercial distribution is allowed</doc>
</member>
<member name="requires_notice"
value="256"
c:identifier="GST_TAG_LICENSE_REQUIRES_NOTICE">
c:identifier="GST_TAG_LICENSE_REQUIRES_NOTICE"
glib:nick="requires-notice">
<doc xml:space="preserve">copyright and license notices
must be kept intact</doc>
</member>
<member name="requires_attribution"
<member name="requires_attributions"
value="512"
c:identifier="GST_TAG_LICENSE_REQUIRES_ATTRIBUTION">
c:identifier="GST_TAG_LICENSE_REQUIRES_ATTRIBUTIONS"
glib:nick="requires-attributions">
<doc xml:space="preserve">credit must be given to
copyright holder and/or author</doc>
</member>
<member name="requires_share_alike"
value="1024"
c:identifier="GST_TAG_LICENSE_REQUIRES_SHARE_ALIKE">
c:identifier="GST_TAG_LICENSE_REQUIRES_SHARE_ALIKE"
glib:nick="requires-share-alike">
<doc xml:space="preserve">derivative works must be
licensed under the same terms or compatible terms as the original work</doc>
</member>
<member name="requires_source_code"
value="2048"
c:identifier="GST_TAG_LICENSE_REQUIRES_SOURCE_CODE">
c:identifier="GST_TAG_LICENSE_REQUIRES_SOURCE_CODE"
glib:nick="requires-source-code">
<doc xml:space="preserve">source code (the preferred
form for making modifications) must be provided when exercising some
rights granted by the license</doc>
</member>
<member name="requires_copyleft"
value="4096"
c:identifier="GST_TAG_LICENSE_REQUIRES_COPYLEFT">
c:identifier="GST_TAG_LICENSE_REQUIRES_COPYLEFT"
glib:nick="requires-copyleft">
<doc xml:space="preserve">derivative and combined works
must be licensed under specified terms, similar to those of the original
work</doc>
</member>
<member name="requires_lesser_copyleft"
value="8192"
c:identifier="GST_TAG_LICENSE_REQUIRES_LESSER_COPYLEFT">
c:identifier="GST_TAG_LICENSE_REQUIRES_LESSER_COPYLEFT"
glib:nick="requires-lesser-copyleft">
<doc xml:space="preserve">derivative works must be
licensed under specified terms, with at least the same conditions as
the original work; combinations with the work may be licensed under
......@@ -695,25 +749,29 @@ the info structure in the image's #GstSample)</doc>
</member>
<member name="prohibits_commercial_use"
value="65536"
c:identifier="GST_TAG_LICENSE_PROHIBITS_COMMERCIAL_USE">
c:identifier="GST_TAG_LICENSE_PROHIBITS_COMMERCIAL_USE"
glib:nick="prohibits-commercial-use">
<doc xml:space="preserve">exercising rights for
commercial purposes is prohibited</doc>
</member>
<member name="prohibits_high_income_nation_use"
value="131072"
c:identifier="GST_TAG_LICENSE_PROHIBITS_HIGH_INCOME_NATION_USE">
c:identifier="GST_TAG_LICENSE_PROHIBITS_HIGH_INCOME_NATION_USE"
glib:nick="prohibits-high-income-nation-use">
<doc xml:space="preserve">use in a
non-developing country is prohibited</doc>
</member>
<member name="creative_commons_license"
value="16777216"
c:identifier="GST_TAG_LICENSE_CREATIVE_COMMONS_LICENSE">
c:identifier="GST_TAG_LICENSE_CREATIVE_COMMONS_LICENSE"
glib:nick="creative-commons-license">
<doc xml:space="preserve">this license was created
by the Creative Commons project</doc>
</member>
<member name="free_software_foundation_license"
value="33554432"
c:identifier="GST_TAG_LICENSE_FREE_SOFTWARE_FOUNDATION_LICENSE">
c:identifier="GST_TAG_LICENSE_FREE_SOFTWARE_FOUNDATION_LICENSE"
glib:nick="free-software-foundation-license">
<doc xml:space="preserve">this license was
created by the Free Software Foundation (FSF)</doc>
</member>
......
// This file was generated by gir (bf7bd49) from gir-files (???)
// This file was generated by gir (038b513) from gir-files (???)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)]
......@@ -51,7 +51,7 @@ pub enum GstTagImageType {
VideoCapture = 14,
Fish = 15,
Illustration = 16,
BandArtistLogo = 17,
ArtistLogo = 17,
PublisherStudioLogo = 18,
}
pub const GST_TAG_IMAGE_TYPE_NONE: GstTagImageType = GstTagImageType::None;
......@@ -72,7 +72,7 @@ pub const GST_TAG_IMAGE_TYPE_DURING_PERFORMANCE: GstTagImageType = GstTagImageTy
pub const GST_TAG_IMAGE_TYPE_VIDEO_CAPTURE: GstTagImageType = GstTagImageType::VideoCapture;
pub const GST_TAG_IMAGE_TYPE_FISH: GstTagImageType = GstTagImageType::Fish;
pub const GST_TAG_IMAGE_TYPE_ILLUSTRATION: GstTagImageType = GstTagImageType::Illustration;
pub const GST_TAG_IMAGE_TYPE_BAND_ARTIST_LOGO: GstTagImageType = GstTagImageType::BandArtistLogo;
pub const GST_TAG_IMAGE_TYPE_ARTIST_LOGO: GstTagImageType = GstTagImageType::ArtistLogo;
pub const GST_TAG_IMAGE_TYPE_PUBLISHER_STUDIO_LOGO: GstTagImageType = GstTagImageType::PublisherStudioLogo;
// Constants
......@@ -121,7 +121,7 @@ bitflags! {
const GST_TAG_LICENSE_PERMITS_DERIVATIVE_WORKS = 4,
const GST_TAG_LICENSE_PERMITS_SHARING = 8,
const GST_TAG_LICENSE_REQUIRES_NOTICE = 256,
const GST_TAG_LICENSE_REQUIRES_ATTRIBUTION = 512,
const GST_TAG_LICENSE_REQUIRES_ATTRIBUTIONS = 512,
const GST_TAG_LICENSE_REQUIRES_SHARE_ALIKE = 1024,
const GST_TAG_LICENSE_REQUIRES_SOURCE_CODE = 2048,
const GST_TAG_LICENSE_REQUIRES_COPYLEFT = 4096,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment