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

View file

@ -18,10 +18,8 @@ external_libraries = [
]
generate = [
"GstAudio.AudioFlags",
"GstAudio.AudioFormatFlags",
"GstAudio.AudioLayout",
"GstAudio.AudioPackFlags",
"GstAudio.AudioChannelPosition",
"GstAudio.StreamVolume",
"GstAudio.StreamVolumeFormat",
@ -241,3 +239,17 @@ status = "generate"
[[object.member]]
name = "flac"
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 = [
"GstBase.PushSrc",
"GstBase.BaseParseFrameFlags",
]
manual = [
@ -308,3 +307,10 @@ manual_traits = ["BaseParseExtManual"]
[[object.function]]
name = "push_frame"
ignore = true
[[object]]
name = "GstBase.BaseParseFrameFlags"
status = "generate"
[[object.member]]
name = "none"
ignore = true

View file

@ -19,10 +19,6 @@ external_libraries = [
]
generate = [
# BitFlags
"GstGL.GLAPI",
"GstGL.GLPlatform",
"GstGL.GLSLProfile",
# Enums
"GstGL.GLFormat",
"GstGL.GLQueryType",
@ -429,8 +425,42 @@ final_type = true
[[object]]
name = "GstGL.GLDisplayType"
status = "generate"
[[object.member]]
name = "none"
ignore = true
[[object.member]]
name = "any"
ignore = true
[[object.member]]
name = "egl_device"
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 = [
"GstPbutils.DiscovererResult",
"GstPbutils.DiscovererSerializeFlags",
]
manual = [
@ -336,3 +335,13 @@ status = "generate"
[[object.function]]
name = "plugins_base_version"
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.RTPPayload",
"GstRtp.RTPProfile",
"GstRtp.RTPBufferFlags",
"GstRtp.RTPBufferMapFlags",
]
[[object]]
@ -50,3 +48,17 @@ status = "generate"
[[object.function]]
name = "rtp_source_meta_api_get_type"
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.RTSPFamily",
"GstRtsp.RTSPHeaderField",
"GstRtsp.RTSPLowerTrans",
"GstRtsp.RTSPMethod",
"GstRtsp.RTSPMsgType",
"GstRtsp.RTSPProfile",
"GstRtsp.RTSPRangeUnit",
"GstRtsp.RTSPResult",
"GstRtsp.RTSPState",
"GstRtsp.RTSPStatusCode",
"GstRtsp.RTSPTimeType",
"GstRtsp.RTSPTransMode"
]
manual = [
@ -68,3 +64,31 @@ ref_mode = "ref"
name = "Gst.Structure"
status = "manual"
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 = [
"GstRtspServer.RTSPAddressFlags",
"GstRtspServer.RTSPAddressPoolResult",
"GstRtspServer.RTSPMediaFactoryURI",
"GstRtspServer.RTSPMediaStatus",
@ -361,3 +360,9 @@ status="generate"
[object.function.return]
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.VideoFormatFlags",
"GstVideo.VideoTileMode",
"GstVideo.VideoFlags",
"GstVideo.VideoChromaSite",
"GstVideo.VideoColorMatrix",
"GstVideo.VideoTransferFunction",
"GstVideo.VideoColorPrimaries",
"GstVideo.VideoMultiviewMode",
"GstVideo.VideoMultiviewFlags",
"GstVideo.VideoFieldOrder",
"GstVideo.VideoMultiviewFramePacking",
"GstVideo.VideoFilter",
"GstVideo.VideoCaptionType",
"GstVideo.VideoBufferPool",
"GstVideo.VideoPackFlags",
"GstVideo.VideoAlphaMode",
"GstVideo.VideoChromaMode",
"GstVideo.VideoMatrixMode",
@ -404,6 +400,9 @@ status = "generate"
[[object.function]]
name = "get_type"
version = "1.16"
[[object.member]]
name = "none"
ignore = true
[[object]]
name = "GstVideo.VideoTimeCodeFlags"
@ -411,6 +410,9 @@ status = "generate"
[[object.function]]
name = "get_type"
version = "1.18"
[[object.member]]
name = "none"
ignore = true
[[object]]
name = "GstVideo.VideoFrameFlags"
@ -434,6 +436,9 @@ status = "generate"
[[object.member]]
name = "marker"
version = "1.18"
[[object.member]]
name = "last"
ignore = true
[[object]]
name = "GstVideo.VideoInterlaceMode"
@ -441,3 +446,38 @@ status = "generate"
[[object.member]]
name = "alternate"
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 {
glutin::Api::OpenGl => gst_gl::GLAPI::OPENGL3,
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.
let mut context = gst::ParseContext::new();
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,
Err(err) => {
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(
buffer.get_mut().unwrap(),
gst_video::VideoFrameFlags::NONE,
gst_video::VideoFrameFlags::empty(),
gst_video::VideoFormat::Bgra,
frame_width as u32,
frame_height as u32,

View file

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

View file

@ -1,2 +1,2 @@
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 output = [0; 8];
info.unpack(::AudioPackFlags::NONE, &mut unpacked, &input);
info.pack(::AudioPackFlags::NONE, &mut output, &unpacked);
info.unpack(::AudioPackFlags::empty(), &mut unpacked, &input);
info.pack(::AudioPackFlags::empty(), &mut output, &unpacked);
assert_eq!(input, output);
}

View file

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

View file

@ -1,2 +1,2 @@
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! {
pub struct BaseParseFrameFlags: u32 {
const NONE = 0;
const NEW_FRAME = 1;
const NO_FRAME = 2;
const CLIP = 4;

View file

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

View file

@ -1,2 +1,2 @@
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)
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! {
pub struct DiscovererSerializeFlags: u32 {
const BASIC = 0;
const CAPS = 1;
const TAGS = 2;
const MISC = 4;
const ALL = 7;
}
}

View file

@ -1,2 +1,2 @@
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)
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 {
const RETRANSMISSION = 1048576;
const REDUNDANT = 2097152;
const LAST = 268435456;
}
}
@ -71,7 +70,6 @@ impl SetValue for RTPBufferFlags {
bitflags! {
pub struct RTPBufferMapFlags: u32 {
const SKIP_PADDING = 65536;
const LAST = 16777216;
}
}

View file

@ -1,2 +1,2 @@
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! {
pub struct RTSPAddressFlags: u32 {
const NONE = 0;
const IPV4 = 1;
const IPV6 = 2;
const EVEN_PORT = 4;

View file

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

View file

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

View file

@ -1,2 +1,2 @@
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(
buffer.get_mut().unwrap(),
::VideoFrameFlags::NONE,
::VideoFrameFlags::empty(),
::VideoFormat::Argb,
320,
240,
)
.unwrap();
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_width(), 320);
assert_eq!(meta.get_height(), 240);
@ -709,7 +709,7 @@ mod tests {
{
let meta = buffer.get_meta::<VideoMeta>().unwrap();
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_width(), 320);
assert_eq!(meta.get_height(), 240);
@ -727,7 +727,7 @@ mod tests {
{
let meta = VideoMeta::add_full(
buffer.get_mut().unwrap(),
::VideoFrameFlags::NONE,
::VideoFrameFlags::empty(),
::VideoFormat::Argb,
320,
240,
@ -736,7 +736,7 @@ mod tests {
)
.unwrap();
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_width(), 320);
assert_eq!(meta.get_height(), 240);
@ -748,7 +748,7 @@ mod tests {
{
let meta = buffer.get_meta::<VideoMeta>().unwrap();
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_width(), 320);
assert_eq!(meta.get_height(), 240);

View file

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

View file

@ -1,2 +1,2 @@
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)