Don't generate LAST/NONE variants of flags types

Those are automatically provided already.
This commit is contained in:
Sebastian Dröge 2020-06-30 10:22:52 +03:00
parent 45402b5e95
commit 911bb34dc2
40 changed files with 291 additions and 110 deletions

View file

@ -36,35 +36,23 @@ generate = [
"Gst.StructureChangeType", "Gst.StructureChangeType",
"Gst.StreamStatusType", "Gst.StreamStatusType",
"Gst.StreamType", "Gst.StreamType",
"Gst.StreamFlags",
"Gst.ProgressType", "Gst.ProgressType",
"Gst.BusSyncReply", "Gst.BusSyncReply",
"Gst.TagFlag", "Gst.TagFlag",
"Gst.TagMergeMode", "Gst.TagMergeMode",
"Gst.PadProbeType",
"Gst.PadProbeReturn", "Gst.PadProbeReturn",
"Gst.CapsIntersectMode", "Gst.CapsIntersectMode",
"Gst.BufferCopyFlags",
"Gst.PadMode", "Gst.PadMode",
"Gst.SchedulingFlags", "Gst.SchedulingFlags",
"Gst.QOSType", "Gst.QOSType",
"Gst.TocSetter", "Gst.TocSetter",
"Gst.ElementFlags",
"Gst.PadFlags",
"Gst.PipelineFlags",
"Gst.PluginFlags", "Gst.PluginFlags",
"Gst.MemoryFlags",
"Gst.PadLinkCheck",
"Gst.DebugLevel", "Gst.DebugLevel",
"Gst.DebugColorFlags", "Gst.DebugColorFlags",
"Gst.StackTraceFlags",
"Gst.DebugGraphDetails", "Gst.DebugGraphDetails",
"Gst.TaskState", "Gst.TaskState",
"Gst.PluginDependencyFlags",
"Gst.BufferPoolAcquireFlags",
"Gst.PromiseResult", "Gst.PromiseResult",
"Gst.ClockEntryType", "Gst.ClockEntryType",
"Gst.ClockFlags",
] ]
manual = [ manual = [
@ -114,7 +102,9 @@ trait_name = "GstBinExt"
[[object]] [[object]]
name = "Gst.BinFlags" name = "Gst.BinFlags"
status = "generate" status = "generate"
[[object.member]]
name = "last"
ignore = true
[[object.member]] [[object.member]]
name = "streams_aware" name = "streams_aware"
version = "1.10" version = "1.10"
@ -185,6 +175,26 @@ status = "generate"
[[object.member]] [[object.member]]
name = "non_droppable" name = "non_droppable"
version = "1.14" version = "1.14"
[[object.member]]
name = "last"
ignore = true
[[object]]
name = "Gst.BufferCopyFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object]]
name = "Gst.BufferPoolAcquireFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object.member]]
name = "last"
ignore = true
[[object]] [[object]]
name = "Gst.ChildProxy" name = "Gst.ChildProxy"
@ -196,6 +206,13 @@ name = "Gst.ClockTime"
status = "manual" status = "manual"
conversion_type = "scalar" conversion_type = "scalar"
[[object]]
name = "Gst.ClockFlags"
status = "generate"
[[object.member]]
name = "last"
ignore = true
[[object]] [[object]]
name = "Gst.Format" name = "Gst.Format"
status = "generate" status = "generate"
@ -214,6 +231,9 @@ status = "generate"
[[object.member]] [[object.member]]
name = "instant_rate_change" name = "instant_rate_change"
version = "1.18" version = "1.18"
[[object.member]]
name = "none"
ignore = true
[[object]] [[object]]
name = "Gst.SegmentFlags" name = "Gst.SegmentFlags"
@ -224,6 +244,23 @@ status = "generate"
[[object.member]] [[object.member]]
name = "trickmode_forward_predicted" name = "trickmode_forward_predicted"
version = "1.18" version = "1.18"
[[object.member]]
name = "none"
ignore = true
[[object]]
name = "Gst.StackTraceFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object]]
name = "Gst.StreamFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object]] [[object]]
name = "Gst.TagSetter" name = "Gst.TagSetter"
@ -306,6 +343,23 @@ status = "generate"
[[object.member]] [[object.member]]
name = "place_in_bin" name = "place_in_bin"
version = "1.10" version = "1.10"
[[object.member]]
name = "none"
ignore = true
[[object]]
name = "Gst.PipelineFlags"
status = "generate"
[[object.member]]
name = "last"
ignore = true
[[object]]
name = "Gst.PluginDependencyFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object]] [[object]]
name = "Gst.Caps" name = "Gst.Caps"
@ -419,6 +473,20 @@ status = "generate"
[object.function.return] [object.function.return]
nullable = false nullable = false
[[object]]
name = "Gst.ElementFlags"
status = "generate"
[[object.member]]
name = "last"
ignore = true
[[object]]
name = "Gst.MemoryFlags"
status = "generate"
[[object.member]]
name = "last"
ignore = true
[[object]] [[object]]
name = "Gst.Element" name = "Gst.Element"
status = "generate" status = "generate"
@ -748,6 +816,30 @@ status = "generate"
[[object.member]] [[object.member]]
name = "may_be_leaked" name = "may_be_leaked"
version = "1.10" version = "1.10"
[[object.member]]
name = "last"
ignore = true
[[object]]
name = "Gst.PadFlags"
status = "generate"
[[object.member]]
name = "last"
ignore = true
[[object]]
name = "Gst.PadLinkCheck"
status = "generate"
[[object.member]]
name = "nothing"
ignore = true
[[object]]
name = "Gst.PadProbeType"
status = "generate"
[[object.member]]
name = "invalid"
ignore = true
[[object]] [[object]]
name = "Gst.Pad" name = "Gst.Pad"

View file

@ -18,10 +18,8 @@ external_libraries = [
] ]
generate = [ generate = [
"GstAudio.AudioFlags",
"GstAudio.AudioFormatFlags", "GstAudio.AudioFormatFlags",
"GstAudio.AudioLayout", "GstAudio.AudioLayout",
"GstAudio.AudioPackFlags",
"GstAudio.AudioChannelPosition", "GstAudio.AudioChannelPosition",
"GstAudio.StreamVolume", "GstAudio.StreamVolume",
"GstAudio.StreamVolumeFormat", "GstAudio.StreamVolumeFormat",
@ -241,3 +239,17 @@ status = "generate"
[[object.member]] [[object.member]]
name = "flac" name = "flac"
version = "1.12" version = "1.12"
[[object]]
name = "GstAudio.AudioFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object]]
name = "GstAudio.AudioPackFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true

View file

@ -18,7 +18,6 @@ external_libraries = [
generate = [ generate = [
"GstBase.PushSrc", "GstBase.PushSrc",
"GstBase.BaseParseFrameFlags",
] ]
manual = [ manual = [
@ -308,3 +307,10 @@ manual_traits = ["BaseParseExtManual"]
[[object.function]] [[object.function]]
name = "push_frame" name = "push_frame"
ignore = true ignore = true
[[object]]
name = "GstBase.BaseParseFrameFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true

View file

@ -19,10 +19,6 @@ external_libraries = [
] ]
generate = [ generate = [
# BitFlags
"GstGL.GLAPI",
"GstGL.GLPlatform",
"GstGL.GLSLProfile",
# Enums # Enums
"GstGL.GLFormat", "GstGL.GLFormat",
"GstGL.GLQueryType", "GstGL.GLQueryType",
@ -429,8 +425,42 @@ final_type = true
[[object]] [[object]]
name = "GstGL.GLDisplayType" name = "GstGL.GLDisplayType"
status = "generate" status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object.member]]
name = "any"
ignore = true
[[object.member]] [[object.member]]
name = "egl_device" name = "egl_device"
version = "1.18" version = "1.18"
[[object]]
name = "GstGL.GLAPI"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object.member]]
name = "any"
ignore = true
[[object]]
name = "GstGL.GLPlatform"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object.member]]
name = "any"
ignore = true
[[object]]
name = "GstGL.GLSLProfile"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object.member]]
name = "any"
ignore = true

View file

@ -18,7 +18,6 @@ external_libraries = [
generate = [ generate = [
"GstPbutils.DiscovererResult", "GstPbutils.DiscovererResult",
"GstPbutils.DiscovererSerializeFlags",
] ]
manual = [ manual = [
@ -336,3 +335,13 @@ status = "generate"
[[object.function]] [[object.function]]
name = "plugins_base_version" name = "plugins_base_version"
assertion = "skip" assertion = "skip"
[[object]]
name = "GstPbutils.DiscovererSerializeFlags"
status = "generate"
[[object.member]]
name = "basic"
ignore = true
[[object.member]]
name = "all"
ignore = true

View file

@ -24,8 +24,6 @@ generate = [
"GstRtp.RTCPXRType", "GstRtp.RTCPXRType",
"GstRtp.RTPPayload", "GstRtp.RTPPayload",
"GstRtp.RTPProfile", "GstRtp.RTPProfile",
"GstRtp.RTPBufferFlags",
"GstRtp.RTPBufferMapFlags",
] ]
[[object]] [[object]]
@ -50,3 +48,17 @@ status = "generate"
[[object.function]] [[object.function]]
name = "rtp_source_meta_api_get_type" name = "rtp_source_meta_api_get_type"
ignore = true ignore = true
[[object]]
name = "GstRtp.RTPBufferFlags"
status = "generate"
[[object.member]]
name = "last"
ignore = true
[[object]]
name = "GstRtp.RTPBufferMapFlags"
status = "generate"
[[object.member]]
name = "last"
ignore = true

View file

@ -23,16 +23,12 @@ generate = [
"GstRtsp.RTSPEvent", "GstRtsp.RTSPEvent",
"GstRtsp.RTSPFamily", "GstRtsp.RTSPFamily",
"GstRtsp.RTSPHeaderField", "GstRtsp.RTSPHeaderField",
"GstRtsp.RTSPLowerTrans",
"GstRtsp.RTSPMethod",
"GstRtsp.RTSPMsgType", "GstRtsp.RTSPMsgType",
"GstRtsp.RTSPProfile",
"GstRtsp.RTSPRangeUnit", "GstRtsp.RTSPRangeUnit",
"GstRtsp.RTSPResult", "GstRtsp.RTSPResult",
"GstRtsp.RTSPState", "GstRtsp.RTSPState",
"GstRtsp.RTSPStatusCode", "GstRtsp.RTSPStatusCode",
"GstRtsp.RTSPTimeType", "GstRtsp.RTSPTimeType",
"GstRtsp.RTSPTransMode"
] ]
manual = [ manual = [
@ -68,3 +64,31 @@ ref_mode = "ref"
name = "Gst.Structure" name = "Gst.Structure"
status = "manual" status = "manual"
ref_mode = "ref-mut" ref_mode = "ref-mut"
[[object]]
name = "GstRtsp.RTSPLowerTrans"
status = "generate"
[[object.member]]
name = "unknown"
ignore = true
[[object]]
name = "GstRtsp.RTSPMethod"
status = "generate"
[[object.member]]
name = "invalid"
ignore = true
[[object]]
name = "GstRtsp.RTSPProfile"
status = "generate"
[[object.member]]
name = "unknown"
ignore = true
[[object]]
name = "GstRtsp.RTSPTransMode"
status = "generate"
[[object.member]]
name = "unknown"
ignore = true

View file

@ -22,7 +22,6 @@ external_libraries = [
] ]
generate = [ generate = [
"GstRtspServer.RTSPAddressFlags",
"GstRtspServer.RTSPAddressPoolResult", "GstRtspServer.RTSPAddressPoolResult",
"GstRtspServer.RTSPMediaFactoryURI", "GstRtspServer.RTSPMediaFactoryURI",
"GstRtspServer.RTSPMediaStatus", "GstRtspServer.RTSPMediaStatus",
@ -361,3 +360,9 @@ status="generate"
[object.function.return] [object.function.return]
nullable_return_is_error = "Failed to manage media" nullable_return_is_error = "Failed to manage media"
[[object]]
name = "GstRtspServer.RTSPAddressFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true

View file

@ -21,19 +21,15 @@ generate = [
"GstVideo.VideoCodecFrameFlags", "GstVideo.VideoCodecFrameFlags",
"GstVideo.VideoFormatFlags", "GstVideo.VideoFormatFlags",
"GstVideo.VideoTileMode", "GstVideo.VideoTileMode",
"GstVideo.VideoFlags",
"GstVideo.VideoChromaSite",
"GstVideo.VideoColorMatrix", "GstVideo.VideoColorMatrix",
"GstVideo.VideoTransferFunction", "GstVideo.VideoTransferFunction",
"GstVideo.VideoColorPrimaries", "GstVideo.VideoColorPrimaries",
"GstVideo.VideoMultiviewMode", "GstVideo.VideoMultiviewMode",
"GstVideo.VideoMultiviewFlags",
"GstVideo.VideoFieldOrder", "GstVideo.VideoFieldOrder",
"GstVideo.VideoMultiviewFramePacking", "GstVideo.VideoMultiviewFramePacking",
"GstVideo.VideoFilter", "GstVideo.VideoFilter",
"GstVideo.VideoCaptionType", "GstVideo.VideoCaptionType",
"GstVideo.VideoBufferPool", "GstVideo.VideoBufferPool",
"GstVideo.VideoPackFlags",
"GstVideo.VideoAlphaMode", "GstVideo.VideoAlphaMode",
"GstVideo.VideoChromaMode", "GstVideo.VideoChromaMode",
"GstVideo.VideoMatrixMode", "GstVideo.VideoMatrixMode",
@ -404,6 +400,9 @@ status = "generate"
[[object.function]] [[object.function]]
name = "get_type" name = "get_type"
version = "1.16" version = "1.16"
[[object.member]]
name = "none"
ignore = true
[[object]] [[object]]
name = "GstVideo.VideoTimeCodeFlags" name = "GstVideo.VideoTimeCodeFlags"
@ -411,6 +410,9 @@ status = "generate"
[[object.function]] [[object.function]]
name = "get_type" name = "get_type"
version = "1.18" version = "1.18"
[[object.member]]
name = "none"
ignore = true
[[object]] [[object]]
name = "GstVideo.VideoFrameFlags" name = "GstVideo.VideoFrameFlags"
@ -434,6 +436,9 @@ status = "generate"
[[object.member]] [[object.member]]
name = "marker" name = "marker"
version = "1.18" version = "1.18"
[[object.member]]
name = "last"
ignore = true
[[object]] [[object]]
name = "GstVideo.VideoInterlaceMode" name = "GstVideo.VideoInterlaceMode"
@ -441,3 +446,38 @@ status = "generate"
[[object.member]] [[object.member]]
name = "alternate" name = "alternate"
version = "1.16" version = "1.16"
[[object]]
name = "GstVideo.VideoChromaSite"
status = "generate"
[[object.member]]
name = "unknown"
ignore = true
[[object]]
name = "GstVideo.VideoFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object]]
name = "GstVideo.VideoFrameFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object]]
name = "GstVideo.VideoMultiviewFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object]]
name = "GstVideo.VideoPackFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true

View file

@ -519,7 +519,7 @@ impl App {
match api { match api {
glutin::Api::OpenGl => gst_gl::GLAPI::OPENGL3, glutin::Api::OpenGl => gst_gl::GLAPI::OPENGL3,
glutin::Api::OpenGlEs => gst_gl::GLAPI::GLES2, glutin::Api::OpenGlEs => gst_gl::GLAPI::GLES2,
_ => gst_gl::GLAPI::NONE, _ => gst_gl::GLAPI::empty(),
} }
} }

View file

@ -29,7 +29,7 @@ fn example_main() {
// install the corresponding gstreamer plugins. // install the corresponding gstreamer plugins.
let mut context = gst::ParseContext::new(); let mut context = gst::ParseContext::new();
let pipeline = let pipeline =
match gst::parse_launch_full(&pipeline_str, Some(&mut context), gst::ParseFlags::NONE) { match gst::parse_launch_full(&pipeline_str, Some(&mut context), gst::ParseFlags::empty()) {
Ok(pipeline) => pipeline, Ok(pipeline) => pipeline,
Err(err) => { Err(err) => {
if let Some(gst::ParseError::NoSuchElement) = err.kind::<gst::ParseError>() { if let Some(gst::ParseError::NoSuchElement) = err.kind::<gst::ParseError>() {

View file

@ -165,7 +165,7 @@ fn create_pipeline() -> Result<gst::Pipeline, Error> {
gst_video::VideoMeta::add( gst_video::VideoMeta::add(
buffer.get_mut().unwrap(), buffer.get_mut().unwrap(),
gst_video::VideoFrameFlags::NONE, gst_video::VideoFrameFlags::empty(),
gst_video::VideoFormat::Bgra, gst_video::VideoFormat::Bgra,
frame_width as u32, frame_width as u32,
frame_height as u32, frame_height as u32,

View file

@ -49,7 +49,7 @@ fn example_main() -> Result<(), Error> {
let pipeline = match gst::parse_launch_full( let pipeline = match gst::parse_launch_full(
"audiotestsrc wave=white-noise num-buffers=100 ! flacenc ! filesink location=test.flac", "audiotestsrc wave=white-noise num-buffers=100 ! flacenc ! filesink location=test.flac",
Some(&mut context), Some(&mut context),
gst::ParseFlags::NONE, gst::ParseFlags::empty(),
) { ) {
Ok(pipeline) => pipeline, Ok(pipeline) => pipeline,
Err(err) => { Err(err) => {

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -416,8 +416,8 @@ mod tests {
let mut unpacked = [0; 16]; let mut unpacked = [0; 16];
let mut output = [0; 8]; let mut output = [0; 8];
info.unpack(::AudioPackFlags::NONE, &mut unpacked, &input); info.unpack(::AudioPackFlags::empty(), &mut unpacked, &input);
info.pack(::AudioPackFlags::NONE, &mut output, &unpacked); info.pack(::AudioPackFlags::empty(), &mut output, &unpacked);
assert_eq!(input, output); assert_eq!(input, output);
} }

View file

@ -14,7 +14,6 @@ use gst_audio_sys;
bitflags! { bitflags! {
pub struct AudioFlags: u32 { pub struct AudioFlags: u32 {
const NONE = 0;
const UNPOSITIONED = 1; const UNPOSITIONED = 1;
} }
} }
@ -113,7 +112,6 @@ impl SetValue for AudioFormatFlags {
bitflags! { bitflags! {
pub struct AudioPackFlags: u32 { pub struct AudioPackFlags: u32 {
const NONE = 0;
const TRUNCATE_RANGE = 1; const TRUNCATE_RANGE = 1;
} }
} }

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -7,7 +7,6 @@ use gst_base_sys;
bitflags! { bitflags! {
pub struct BaseParseFrameFlags: u32 { pub struct BaseParseFrameFlags: u32 {
const NONE = 0;
const NEW_FRAME = 1; const NEW_FRAME = 1;
const NO_FRAME = 2; const NO_FRAME = 2;
const CLIP = 4; const CLIP = 4;

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -14,12 +14,10 @@ use gst_gl_sys;
bitflags! { bitflags! {
pub struct GLAPI: u32 { pub struct GLAPI: u32 {
const NONE = 0;
const OPENGL = 1; const OPENGL = 1;
const OPENGL3 = 2; const OPENGL3 = 2;
const GLES1 = 32768; const GLES1 = 32768;
const GLES2 = 65536; const GLES2 = 65536;
const ANY = 4294967295;
} }
} }
@ -66,7 +64,6 @@ impl SetValue for GLAPI {
bitflags! { bitflags! {
pub struct GLDisplayType: u32 { pub struct GLDisplayType: u32 {
const NONE = 0;
const X11 = 1; const X11 = 1;
const WAYLAND = 2; const WAYLAND = 2;
const COCOA = 4; const COCOA = 4;
@ -77,7 +74,6 @@ bitflags! {
const GBM = 128; const GBM = 128;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
const EGL_DEVICE = 256; const EGL_DEVICE = 256;
const ANY = 4294967295;
} }
} }
@ -124,13 +120,11 @@ impl SetValue for GLDisplayType {
bitflags! { bitflags! {
pub struct GLPlatform: u32 { pub struct GLPlatform: u32 {
const NONE = 0;
const EGL = 1; const EGL = 1;
const GLX = 2; const GLX = 2;
const WGL = 4; const WGL = 4;
const CGL = 8; const CGL = 8;
const EAGL = 16; const EAGL = 16;
const ANY = 4294967295;
} }
} }
@ -177,11 +171,9 @@ impl SetValue for GLPlatform {
bitflags! { bitflags! {
pub struct GLSLProfile: u32 { pub struct GLSLProfile: u32 {
const NONE = 0;
const ES = 1; const ES = 1;
const CORE = 2; const CORE = 2;
const COMPATIBILITY = 4; const COMPATIBILITY = 4;
const ANY = 4294967295;
} }
} }

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -14,11 +14,9 @@ use gst_pbutils_sys;
bitflags! { bitflags! {
pub struct DiscovererSerializeFlags: u32 { pub struct DiscovererSerializeFlags: u32 {
const BASIC = 0;
const CAPS = 1; const CAPS = 1;
const TAGS = 2; const TAGS = 2;
const MISC = 4; const MISC = 4;
const ALL = 7;
} }
} }

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -17,7 +17,6 @@ bitflags! {
pub struct RTPBufferFlags: u32 { pub struct RTPBufferFlags: u32 {
const RETRANSMISSION = 1048576; const RETRANSMISSION = 1048576;
const REDUNDANT = 2097152; const REDUNDANT = 2097152;
const LAST = 268435456;
} }
} }
@ -71,7 +70,6 @@ impl SetValue for RTPBufferFlags {
bitflags! { bitflags! {
pub struct RTPBufferMapFlags: u32 { pub struct RTPBufferMapFlags: u32 {
const SKIP_PADDING = 65536; const SKIP_PADDING = 65536;
const LAST = 16777216;
} }
} }

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -14,7 +14,6 @@ use gst_rtsp_server_sys;
bitflags! { bitflags! {
pub struct RTSPAddressFlags: u32 { pub struct RTSPAddressFlags: u32 {
const NONE = 0;
const IPV4 = 1; const IPV4 = 1;
const IPV6 = 2; const IPV6 = 2;
const EVEN_PORT = 4; const EVEN_PORT = 4;

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -62,7 +62,6 @@ impl SetValue for RTSPEvent {
bitflags! { bitflags! {
pub struct RTSPLowerTrans: u32 { pub struct RTSPLowerTrans: u32 {
const UNKNOWN = 0;
const UDP = 1; const UDP = 1;
const UDP_MCAST = 2; const UDP_MCAST = 2;
const TCP = 4; const TCP = 4;
@ -114,7 +113,6 @@ impl SetValue for RTSPLowerTrans {
bitflags! { bitflags! {
pub struct RTSPMethod: u32 { pub struct RTSPMethod: u32 {
const INVALID = 0;
const DESCRIBE = 1; const DESCRIBE = 1;
const ANNOUNCE = 2; const ANNOUNCE = 2;
const GET_PARAMETER = 4; const GET_PARAMETER = 4;
@ -174,7 +172,6 @@ impl SetValue for RTSPMethod {
bitflags! { bitflags! {
pub struct RTSPProfile: u32 { pub struct RTSPProfile: u32 {
const UNKNOWN = 0;
const AVP = 1; const AVP = 1;
const SAVP = 2; const SAVP = 2;
const AVPF = 4; const AVPF = 4;
@ -225,7 +222,6 @@ impl SetValue for RTSPProfile {
bitflags! { bitflags! {
pub struct RTSPTransMode: u32 { pub struct RTSPTransMode: u32 {
const UNKNOWN = 0;
const RTP = 1; const RTP = 1;
const RDT = 2; const RDT = 2;
} }

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -26,7 +26,6 @@ bitflags! {
const BOTTOM_FIELD = 8388608; const BOTTOM_FIELD = 8388608;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
const MARKER = 512; const MARKER = 512;
const LAST = 268435456;
} }
} }
@ -73,7 +72,6 @@ impl SetValue for VideoBufferFlags {
bitflags! { bitflags! {
pub struct VideoChromaSite: u32 { pub struct VideoChromaSite: u32 {
const UNKNOWN = 0;
const NONE = 1; const NONE = 1;
const H_COSITED = 2; const H_COSITED = 2;
const V_COSITED = 4; const V_COSITED = 4;
@ -154,7 +152,6 @@ impl FromGlib<gst_video_sys::GstVideoCodecFrameFlags> for VideoCodecFrameFlags {
bitflags! { bitflags! {
pub struct VideoFlags: u32 { pub struct VideoFlags: u32 {
const NONE = 0;
const VARIABLE_FPS = 1; const VARIABLE_FPS = 1;
const PREMULTIPLIED_ALPHA = 2; const PREMULTIPLIED_ALPHA = 2;
} }
@ -258,16 +255,13 @@ impl SetValue for VideoFormatFlags {
bitflags! { bitflags! {
pub struct VideoFrameFlags: u32 { pub struct VideoFrameFlags: u32 {
const NONE = 0;
const INTERLACED = 1; const INTERLACED = 1;
const TFF = 2; const TFF = 2;
const RFF = 4; const RFF = 4;
const ONEFIELD = 8; const ONEFIELD = 8;
const MULTIPLE_VIEW = 16; const MULTIPLE_VIEW = 16;
const FIRST_IN_BUNDLE = 32; const FIRST_IN_BUNDLE = 32;
#[cfg(any(feature = "v1_16", feature = "dox"))]
const TOP_FIELD = 10; const TOP_FIELD = 10;
#[cfg(any(feature = "v1_16", feature = "dox"))]
const BOTTOM_FIELD = 8; const BOTTOM_FIELD = 8;
} }
} }
@ -315,7 +309,6 @@ impl SetValue for VideoFrameFlags {
bitflags! { bitflags! {
pub struct VideoMultiviewFlags: u32 { pub struct VideoMultiviewFlags: u32 {
const NONE = 0;
const RIGHT_VIEW_FIRST = 1; const RIGHT_VIEW_FIRST = 1;
const LEFT_FLIPPED = 2; const LEFT_FLIPPED = 2;
const LEFT_FLOPPED = 4; const LEFT_FLOPPED = 4;
@ -369,7 +362,6 @@ impl SetValue for VideoMultiviewFlags {
bitflags! { bitflags! {
pub struct VideoOverlayFormatFlags: u32 { pub struct VideoOverlayFormatFlags: u32 {
const NONE = 0;
const PREMULTIPLIED_ALPHA = 1; const PREMULTIPLIED_ALPHA = 1;
const GLOBAL_ALPHA = 2; const GLOBAL_ALPHA = 2;
} }
@ -422,7 +414,6 @@ impl SetValue for VideoOverlayFormatFlags {
bitflags! { bitflags! {
pub struct VideoPackFlags: u32 { pub struct VideoPackFlags: u32 {
const NONE = 0;
const TRUNCATE_RANGE = 1; const TRUNCATE_RANGE = 1;
const INTERLACED = 2; const INTERLACED = 2;
} }
@ -472,7 +463,6 @@ impl SetValue for VideoPackFlags {
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", feature = "dox"))]
bitflags! { bitflags! {
pub struct VideoTimeCodeFlags: u32 { pub struct VideoTimeCodeFlags: u32 {
const NONE = 0;
const DROP_FRAME = 1; const DROP_FRAME = 1;
const INTERLACED = 2; const INTERLACED = 2;
} }

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -690,14 +690,14 @@ mod tests {
{ {
let meta = VideoMeta::add( let meta = VideoMeta::add(
buffer.get_mut().unwrap(), buffer.get_mut().unwrap(),
::VideoFrameFlags::NONE, ::VideoFrameFlags::empty(),
::VideoFormat::Argb, ::VideoFormat::Argb,
320, 320,
240, 240,
) )
.unwrap(); .unwrap();
assert_eq!(meta.get_id(), 0); assert_eq!(meta.get_id(), 0);
assert_eq!(meta.get_flags(), ::VideoFrameFlags::NONE); assert_eq!(meta.get_flags(), ::VideoFrameFlags::empty());
assert_eq!(meta.get_format(), ::VideoFormat::Argb); assert_eq!(meta.get_format(), ::VideoFormat::Argb);
assert_eq!(meta.get_width(), 320); assert_eq!(meta.get_width(), 320);
assert_eq!(meta.get_height(), 240); assert_eq!(meta.get_height(), 240);
@ -709,7 +709,7 @@ mod tests {
{ {
let meta = buffer.get_meta::<VideoMeta>().unwrap(); let meta = buffer.get_meta::<VideoMeta>().unwrap();
assert_eq!(meta.get_id(), 0); assert_eq!(meta.get_id(), 0);
assert_eq!(meta.get_flags(), ::VideoFrameFlags::NONE); assert_eq!(meta.get_flags(), ::VideoFrameFlags::empty());
assert_eq!(meta.get_format(), ::VideoFormat::Argb); assert_eq!(meta.get_format(), ::VideoFormat::Argb);
assert_eq!(meta.get_width(), 320); assert_eq!(meta.get_width(), 320);
assert_eq!(meta.get_height(), 240); assert_eq!(meta.get_height(), 240);
@ -727,7 +727,7 @@ mod tests {
{ {
let meta = VideoMeta::add_full( let meta = VideoMeta::add_full(
buffer.get_mut().unwrap(), buffer.get_mut().unwrap(),
::VideoFrameFlags::NONE, ::VideoFrameFlags::empty(),
::VideoFormat::Argb, ::VideoFormat::Argb,
320, 320,
240, 240,
@ -736,7 +736,7 @@ mod tests {
) )
.unwrap(); .unwrap();
assert_eq!(meta.get_id(), 0); assert_eq!(meta.get_id(), 0);
assert_eq!(meta.get_flags(), ::VideoFrameFlags::NONE); assert_eq!(meta.get_flags(), ::VideoFrameFlags::empty());
assert_eq!(meta.get_format(), ::VideoFormat::Argb); assert_eq!(meta.get_format(), ::VideoFormat::Argb);
assert_eq!(meta.get_width(), 320); assert_eq!(meta.get_width(), 320);
assert_eq!(meta.get_height(), 240); assert_eq!(meta.get_height(), 240);
@ -748,7 +748,7 @@ mod tests {
{ {
let meta = buffer.get_meta::<VideoMeta>().unwrap(); let meta = buffer.get_meta::<VideoMeta>().unwrap();
assert_eq!(meta.get_id(), 0); assert_eq!(meta.get_id(), 0);
assert_eq!(meta.get_flags(), ::VideoFrameFlags::NONE); assert_eq!(meta.get_flags(), ::VideoFrameFlags::empty());
assert_eq!(meta.get_format(), ::VideoFormat::Argb); assert_eq!(meta.get_format(), ::VideoFormat::Argb);
assert_eq!(meta.get_width(), 320); assert_eq!(meta.get_width(), 320);
assert_eq!(meta.get_height(), 240); assert_eq!(meta.get_height(), 240);

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)

View file

@ -17,7 +17,6 @@ bitflags! {
const NO_RESYNC = 16384; const NO_RESYNC = 16384;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", feature = "dox"))]
const STREAMS_AWARE = 32768; const STREAMS_AWARE = 32768;
const LAST = 524288;
} }
} }
@ -64,7 +63,6 @@ impl SetValue for BinFlags {
bitflags! { bitflags! {
pub struct BufferCopyFlags: u32 { pub struct BufferCopyFlags: u32 {
const NONE = 0;
const FLAGS = 1; const FLAGS = 1;
const TIMESTAMPS = 2; const TIMESTAMPS = 2;
const META = 4; const META = 4;
@ -132,7 +130,6 @@ bitflags! {
const SYNC_AFTER = 32768; const SYNC_AFTER = 32768;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", feature = "dox"))]
const NON_DROPPABLE = 65536; const NON_DROPPABLE = 65536;
const LAST = 1048576;
} }
} }
@ -179,11 +176,9 @@ impl SetValue for BufferFlags {
bitflags! { bitflags! {
pub struct BufferPoolAcquireFlags: u32 { pub struct BufferPoolAcquireFlags: u32 {
const NONE = 0;
const KEY_UNIT = 1; const KEY_UNIT = 1;
const DONTWAIT = 2; const DONTWAIT = 2;
const DISCONT = 4; const DISCONT = 4;
const LAST = 65536;
} }
} }
@ -237,7 +232,6 @@ bitflags! {
const CAN_SET_RESOLUTION = 256; const CAN_SET_RESOLUTION = 256;
const CAN_SET_MASTER = 512; const CAN_SET_MASTER = 512;
const NEEDS_STARTUP_SYNC = 1024; const NEEDS_STARTUP_SYNC = 1024;
const LAST = 4096;
} }
} }
@ -407,7 +401,6 @@ bitflags! {
const PROVIDE_CLOCK = 128; const PROVIDE_CLOCK = 128;
const REQUIRE_CLOCK = 256; const REQUIRE_CLOCK = 256;
const INDEXABLE = 512; const INDEXABLE = 512;
const LAST = 16384;
} }
} }
@ -460,7 +453,6 @@ bitflags! {
const ZERO_PADDED = 64; const ZERO_PADDED = 64;
const PHYSICALLY_CONTIGUOUS = 128; const PHYSICALLY_CONTIGUOUS = 128;
const NOT_MAPPABLE = 256; const NOT_MAPPABLE = 256;
const LAST = 1048576;
} }
} }
@ -509,7 +501,6 @@ bitflags! {
pub struct ObjectFlags: u32 { pub struct ObjectFlags: u32 {
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", feature = "dox"))]
const MAY_BE_LEAKED = 1; const MAY_BE_LEAKED = 1;
const LAST = 16;
} }
} }
@ -569,7 +560,6 @@ bitflags! {
const PROXY_SCHEDULING = 16384; const PROXY_SCHEDULING = 16384;
const ACCEPT_INTERSECT = 32768; const ACCEPT_INTERSECT = 32768;
const ACCEPT_TEMPLATE = 65536; const ACCEPT_TEMPLATE = 65536;
const LAST = 1048576;
} }
} }
@ -616,7 +606,6 @@ impl SetValue for PadFlags {
bitflags! { bitflags! {
pub struct PadLinkCheck: u32 { pub struct PadLinkCheck: u32 {
const NOTHING = 0;
const HIERARCHY = 1; const HIERARCHY = 1;
const TEMPLATE_CAPS = 2; const TEMPLATE_CAPS = 2;
const CAPS = 4; const CAPS = 4;
@ -668,7 +657,6 @@ impl SetValue for PadLinkCheck {
bitflags! { bitflags! {
pub struct PadProbeType: u32 { pub struct PadProbeType: u32 {
const INVALID = 0;
const IDLE = 1; const IDLE = 1;
const BLOCK = 2; const BLOCK = 2;
const BUFFER = 16; const BUFFER = 16;
@ -736,7 +724,6 @@ impl SetValue for PadProbeType {
bitflags! { bitflags! {
pub struct ParseFlags: u32 { pub struct ParseFlags: u32 {
const NONE = 0;
const FATAL_ERRORS = 1; const FATAL_ERRORS = 1;
const NO_SINGLE_ELEMENT_BINS = 2; const NO_SINGLE_ELEMENT_BINS = 2;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", feature = "dox"))]
@ -788,7 +775,6 @@ impl SetValue for ParseFlags {
bitflags! { bitflags! {
pub struct PipelineFlags: u32 { pub struct PipelineFlags: u32 {
const FIXED_CLOCK = 524288; const FIXED_CLOCK = 524288;
const LAST = 8388608;
} }
} }
@ -835,7 +821,6 @@ impl SetValue for PipelineFlags {
bitflags! { bitflags! {
pub struct PluginDependencyFlags: u32 { pub struct PluginDependencyFlags: u32 {
const NONE = 0;
const RECURSE = 1; const RECURSE = 1;
const PATHS_ARE_DEFAULT_ONLY = 2; const PATHS_ARE_DEFAULT_ONLY = 2;
const FILE_NAME_IS_SUFFIX = 4; const FILE_NAME_IS_SUFFIX = 4;
@ -984,7 +969,6 @@ impl SetValue for SchedulingFlags {
bitflags! { bitflags! {
pub struct SeekFlags: u32 { pub struct SeekFlags: u32 {
const NONE = 0;
const FLUSH = 1; const FLUSH = 1;
const ACCURATE = 2; const ACCURATE = 2;
const KEY_UNIT = 4; const KEY_UNIT = 4;
@ -1047,7 +1031,6 @@ impl SetValue for SeekFlags {
bitflags! { bitflags! {
#[cfg_attr(feature = "ser_de", derive(Serialize, Deserialize))] #[cfg_attr(feature = "ser_de", derive(Serialize, Deserialize))]
pub struct SegmentFlags: u32 { pub struct SegmentFlags: u32 {
const NONE = 0;
const RESET = 1; const RESET = 1;
const TRICKMODE = 16; const TRICKMODE = 16;
const SKIP = 16; const SKIP = 16;
@ -1103,7 +1086,6 @@ impl SetValue for SegmentFlags {
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", feature = "dox"))]
bitflags! { bitflags! {
pub struct StackTraceFlags: u32 { pub struct StackTraceFlags: u32 {
const NONE = 0;
const FULL = 1; const FULL = 1;
} }
} }
@ -1157,7 +1139,6 @@ impl SetValue for StackTraceFlags {
bitflags! { bitflags! {
pub struct StreamFlags: u32 { pub struct StreamFlags: u32 {
const NONE = 0;
const SPARSE = 1; const SPARSE = 1;
const SELECT = 2; const SELECT = 2;
const UNSELECT = 4; const UNSELECT = 4;

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5) Generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
from gir-files (https://github.com/gtk-rs/gir-files @ 947ac8db) from gir-files (https://github.com/gtk-rs/gir-files @ 4ac5b6f0)