Commit 01d79cc5 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Update to bitflags 0.9

parent 706bf668
......@@ -2,7 +2,7 @@
pkg-config = "0.3.7"
[dependencies]
bitflags = "0.8"
bitflags = "0.9"
libc = "0.2"
glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
......
......@@ -34,7 +34,7 @@ fn find() -> Result<(), Error> {
return Ok(())
}
let target = env::var("TARGET").unwrap();
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new();
......@@ -49,7 +49,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}", path.to_str().unwrap());
println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
}
}
Ok(())
......
// This file was generated by gir (f493ea3) from gir-files (???)
// This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)]
......
......@@ -2,7 +2,7 @@
pkg-config = "0.3.7"
[dependencies]
bitflags = "0.8"
bitflags = "0.9"
libc = "0.2"
glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
......
......@@ -36,7 +36,7 @@ fn find() -> Result<(), Error> {
return Ok(())
}
let target = env::var("TARGET").unwrap();
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new();
......@@ -51,7 +51,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}", path.to_str().unwrap());
println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
}
}
Ok(())
......
// This file was generated by gir (f493ea3) from gir-files (???)
// This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)]
......@@ -392,66 +392,66 @@ pub const GST_META_TAG_AUDIO_STR: *const c_char = b"audio\0" as *const u8 as *co
// Flags
bitflags! {
#[repr(C)]
pub flags GstAudioChannelMixerFlags: c_uint {
const GST_AUDIO_CHANNEL_MIXER_FLAGS_NONE = 0,
const GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_IN = 1,
const GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_OUT = 2,
const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_IN = 4,
const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_OUT = 8,
pub struct GstAudioChannelMixerFlags: c_uint {
const GST_AUDIO_CHANNEL_MIXER_FLAGS_NONE = 0;
const GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_IN = 1;
const GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_OUT = 2;
const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_IN = 4;
const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_OUT = 8;
}
}
bitflags! {
#[repr(C)]
pub flags GstAudioConverterFlags: c_uint {
const GST_AUDIO_CONVERTER_FLAG_NONE = 0,
const GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE = 1,
const GST_AUDIO_CONVERTER_FLAG_VARIABLE_RATE = 2,
pub struct GstAudioConverterFlags: c_uint {
const GST_AUDIO_CONVERTER_FLAG_NONE = 0;
const GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE = 1;
const GST_AUDIO_CONVERTER_FLAG_VARIABLE_RATE = 2;
}
}
bitflags! {
#[repr(C)]
pub flags GstAudioFlags: c_uint {
const GST_AUDIO_FLAG_NONE = 0,
const GST_AUDIO_FLAG_UNPOSITIONED = 1,
pub struct GstAudioFlags: c_uint {
const GST_AUDIO_FLAG_NONE = 0;
const GST_AUDIO_FLAG_UNPOSITIONED = 1;
}
}
bitflags! {
#[repr(C)]
pub flags GstAudioFormatFlags: c_uint {
const GST_AUDIO_FORMAT_FLAG_INTEGER = 1,
const GST_AUDIO_FORMAT_FLAG_FLOAT = 2,
const GST_AUDIO_FORMAT_FLAG_SIGNED = 4,
const GST_AUDIO_FORMAT_FLAG_COMPLEX = 16,
const GST_AUDIO_FORMAT_FLAG_UNPACK = 32,
pub struct GstAudioFormatFlags: c_uint {
const GST_AUDIO_FORMAT_FLAG_INTEGER = 1;
const GST_AUDIO_FORMAT_FLAG_FLOAT = 2;
const GST_AUDIO_FORMAT_FLAG_SIGNED = 4;
const GST_AUDIO_FORMAT_FLAG_COMPLEX = 16;
const GST_AUDIO_FORMAT_FLAG_UNPACK = 32;
}
}
bitflags! {
#[repr(C)]
pub flags GstAudioPackFlags: c_uint {
const GST_AUDIO_PACK_FLAG_NONE = 0,
const GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE = 1,
pub struct GstAudioPackFlags: c_uint {
const GST_AUDIO_PACK_FLAG_NONE = 0;
const GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE = 1;
}
}
bitflags! {
#[repr(C)]
pub flags GstAudioQuantizeFlags: c_uint {
const GST_AUDIO_QUANTIZE_FLAG_NONE = 0,
const GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED = 1,
pub struct GstAudioQuantizeFlags: c_uint {
const GST_AUDIO_QUANTIZE_FLAG_NONE = 0;
const GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED = 1;
}
}
bitflags! {
#[repr(C)]
pub flags GstAudioResamplerFlags: c_uint {
const GST_AUDIO_RESAMPLER_FLAG_NONE = 0,
const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_IN = 1,
const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_OUT = 2,
const GST_AUDIO_RESAMPLER_FLAG_VARIABLE_RATE = 4,
pub struct GstAudioResamplerFlags: c_uint {
const GST_AUDIO_RESAMPLER_FLAG_NONE = 0;
const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_IN = 1;
const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_OUT = 2;
const GST_AUDIO_RESAMPLER_FLAG_VARIABLE_RATE = 4;
}
}
......
......@@ -2,7 +2,7 @@
pkg-config = "0.3.7"
[dependencies]
bitflags = "0.8"
bitflags = "0.9"
libc = "0.2"
glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
......
......@@ -38,7 +38,7 @@ fn find() -> Result<(), Error> {
return Ok(())
}
let target = env::var("TARGET").unwrap();
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new();
......@@ -53,7 +53,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}", path.to_str().unwrap());
println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
}
}
Ok(())
......
// This file was generated by gir (f493ea3) from gir-files (???)
// This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)]
......@@ -26,33 +26,33 @@ pub const GST_BASE_TRANSFORM_SRC_NAME: *const c_char = b"src\0" as *const u8 as
// Flags
bitflags! {
#[repr(C)]
pub flags GstBaseParseFrameFlags: c_uint {
const GST_BASE_PARSE_FRAME_FLAG_NONE = 0,
const GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME = 1,
const GST_BASE_PARSE_FRAME_FLAG_NO_FRAME = 2,
const GST_BASE_PARSE_FRAME_FLAG_CLIP = 4,
const GST_BASE_PARSE_FRAME_FLAG_DROP = 8,
const GST_BASE_PARSE_FRAME_FLAG_QUEUE = 16,
pub struct GstBaseParseFrameFlags: c_uint {
const GST_BASE_PARSE_FRAME_FLAG_NONE = 0;
const GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME = 1;
const GST_BASE_PARSE_FRAME_FLAG_NO_FRAME = 2;
const GST_BASE_PARSE_FRAME_FLAG_CLIP = 4;
const GST_BASE_PARSE_FRAME_FLAG_DROP = 8;
const GST_BASE_PARSE_FRAME_FLAG_QUEUE = 16;
}
}
bitflags! {
#[repr(C)]
pub flags GstBaseSrcFlags: c_uint {
const GST_BASE_SRC_FLAG_STARTING = 16384,
const GST_BASE_SRC_FLAG_STARTED = 32768,
const GST_BASE_SRC_FLAG_LAST = 1048576,
pub struct GstBaseSrcFlags: c_uint {
const GST_BASE_SRC_FLAG_STARTING = 16384;
const GST_BASE_SRC_FLAG_STARTED = 32768;
const GST_BASE_SRC_FLAG_LAST = 1048576;
}
}
bitflags! {
#[repr(C)]
pub flags GstCollectPadsStateFlags: c_uint {
const GST_COLLECT_PADS_STATE_EOS = 1,
const GST_COLLECT_PADS_STATE_FLUSHING = 2,
const GST_COLLECT_PADS_STATE_NEW_SEGMENT = 4,
const GST_COLLECT_PADS_STATE_WAITING = 8,
const GST_COLLECT_PADS_STATE_LOCKED = 16,
pub struct GstCollectPadsStateFlags: c_uint {
const GST_COLLECT_PADS_STATE_EOS = 1;
const GST_COLLECT_PADS_STATE_FLUSHING = 2;
const GST_COLLECT_PADS_STATE_NEW_SEGMENT = 4;
const GST_COLLECT_PADS_STATE_WAITING = 8;
const GST_COLLECT_PADS_STATE_LOCKED = 16;
}
}
......
......@@ -2,7 +2,7 @@
pkg-config = "0.3.7"
[dependencies]
bitflags = "0.8"
bitflags = "0.9"
libc = "0.2"
glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
......
......@@ -32,7 +32,7 @@ fn find() -> Result<(), Error> {
return Ok(())
}
let target = env::var("TARGET").unwrap();
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new();
......@@ -47,7 +47,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}", path.to_str().unwrap());
println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
}
}
Ok(())
......
// This file was generated by gir (f493ea3) from gir-files (???)
// This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)]
......@@ -113,12 +113,12 @@ pub const GST_PLUGINS_BASE_VERSION_NANO: c_int = 0;
// Flags
bitflags! {
#[repr(C)]
pub flags GstDiscovererSerializeFlags: c_uint {
const GST_DISCOVERER_SERIALIZE_BASIC = 0,
const GST_DISCOVERER_SERIALIZE_CAPS = 1,
const GST_DISCOVERER_SERIALIZE_TAGS = 2,
const GST_DISCOVERER_SERIALIZE_MISC = 4,
const GST_DISCOVERER_SERIALIZE_ALL = 7,
pub struct GstDiscovererSerializeFlags: c_uint {
const GST_DISCOVERER_SERIALIZE_BASIC = 0;
const GST_DISCOVERER_SERIALIZE_CAPS = 1;
const GST_DISCOVERER_SERIALIZE_TAGS = 2;
const GST_DISCOVERER_SERIALIZE_MISC = 4;
const GST_DISCOVERER_SERIALIZE_ALL = 7;
}
}
......
......@@ -2,7 +2,7 @@
pkg-config = "0.3.7"
[dependencies]
bitflags = "0.8"
bitflags = "0.9"
libc = "0.2"
glib-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
gobject-sys = { version = "0.3.4", git = "https://github.com/gtk-rs/sys" }
......
......@@ -42,7 +42,7 @@ fn find() -> Result<(), Error> {
return Ok(())
}
let target = env::var("TARGET").unwrap();
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new();
......@@ -57,7 +57,8 @@ fn find() -> Result<(), Error> {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}", path.to_str().unwrap());
println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
}
}
Ok(())
......
// This file was generated by gir (f493ea3) from gir-files (???)
// This file was generated by gir (d121f7e+) from gir-files (???)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)]
......@@ -1045,424 +1045,424 @@ pub const GST_VERSION_NANO: c_int = 0;
// Flags
bitflags! {
#[repr(C)]
pub flags GstAllocatorFlags: c_uint {
const GST_ALLOCATOR_FLAG_CUSTOM_ALLOC = 16,
const GST_ALLOCATOR_FLAG_LAST = 1048576,
pub struct GstAllocatorFlags: c_uint {
const GST_ALLOCATOR_FLAG_CUSTOM_ALLOC = 16;
const GST_ALLOCATOR_FLAG_LAST = 1048576;
}
}
bitflags! {
#[repr(C)]
pub flags GstBinFlags: c_uint {
const GST_BIN_FLAG_NO_RESYNC = 16384,
const GST_BIN_FLAG_STREAMS_AWARE = 32768,
const GST_BIN_FLAG_LAST = 524288,
pub struct GstBinFlags: c_uint {
const GST_BIN_FLAG_NO_RESYNC = 16384;
const GST_BIN_FLAG_STREAMS_AWARE = 32768;
const GST_BIN_FLAG_LAST = 524288;
}
}
bitflags! {
#[repr(C)]
pub flags GstBufferCopyFlags: c_uint {
const GST_BUFFER_COPY_NONE = 0,
const GST_BUFFER_COPY_FLAGS = 1,
const GST_BUFFER_COPY_TIMESTAMPS = 2,
const GST_BUFFER_COPY_META = 4,
const GST_BUFFER_COPY_MEMORY = 8,
const GST_BUFFER_COPY_MERGE = 16,
const GST_BUFFER_COPY_DEEP = 32,
pub struct GstBufferCopyFlags: c_uint {
const GST_BUFFER_COPY_NONE = 0;
const GST_BUFFER_COPY_FLAGS = 1;
const GST_BUFFER_COPY_TIMESTAMPS = 2;
const GST_BUFFER_COPY_META = 4;
const GST_BUFFER_COPY_MEMORY = 8;
const GST_BUFFER_COPY_MERGE = 16;
const GST_BUFFER_COPY_DEEP = 32;
}
}
bitflags! {
#[repr(C)]
pub flags GstBufferFlags: c_uint {
const GST_BUFFER_FLAG_LIVE = 16,
const GST_BUFFER_FLAG_DECODE_ONLY = 32,
const GST_BUFFER_FLAG_DISCONT = 64,
const GST_BUFFER_FLAG_RESYNC = 128,
const GST_BUFFER_FLAG_CORRUPTED = 256,
const GST_BUFFER_FLAG_MARKER = 512,
const GST_BUFFER_FLAG_HEADER = 1024,
const GST_BUFFER_FLAG_GAP = 2048,
const GST_BUFFER_FLAG_DROPPABLE = 4096,
const GST_BUFFER_FLAG_DELTA_UNIT = 8192,
const GST_BUFFER_FLAG_TAG_MEMORY = 16384,
const GST_BUFFER_FLAG_SYNC_AFTER = 32768,
const GST_BUFFER_FLAG_LAST = 1048576,
pub struct GstBufferFlags: c_uint {
const GST_BUFFER_FLAG_LIVE = 16;
const GST_BUFFER_FLAG_DECODE_ONLY = 32;
const GST_BUFFER_FLAG_DISCONT = 64;
const GST_BUFFER_FLAG_RESYNC = 128;
const GST_BUFFER_FLAG_CORRUPTED = 256;
const GST_BUFFER_FLAG_MARKER = 512;
const GST_BUFFER_FLAG_HEADER = 1024;
const GST_BUFFER_FLAG_GAP = 2048;
const GST_BUFFER_FLAG_DROPPABLE = 4096;
const GST_BUFFER_FLAG_DELTA_UNIT = 8192;
const GST_BUFFER_FLAG_TAG_MEMORY = 16384;
const GST_BUFFER_FLAG_SYNC_AFTER = 32768;
const GST_BUFFER_FLAG_LAST = 1048576;
}
}
bitflags! {
#[repr(C)]
pub flags GstBufferPoolAcquireFlags: c_uint {
const GST_BUFFER_POOL_ACQUIRE_FLAG_NONE = 0,
const GST_BUFFER_POOL_ACQUIRE_FLAG_KEY_UNIT = 1,
const GST_BUFFER_POOL_ACQUIRE_FLAG_DONTWAIT = 2,
const GST_BUFFER_POOL_ACQUIRE_FLAG_DISCONT = 4,
const GST_BUFFER_POOL_ACQUIRE_FLAG_LAST = 65536,
pub struct GstBufferPoolAcquireFlags: c_uint {
const GST_BUFFER_POOL_ACQUIRE_FLAG_NONE = 0;
const GST_BUFFER_POOL_ACQUIRE_FLAG_KEY_UNIT = 1;
const GST_BUFFER_POOL_ACQUIRE_FLAG_DONTWAIT = 2;
const GST_BUFFER_POOL_ACQUIRE_FLAG_DISCONT = 4;
const GST_BUFFER_POOL_ACQUIRE_FLAG_LAST = 65536;
}
}
bitflags! {
#[repr(C)]
pub flags GstBusFlags: c_uint {
const GST_BUS_FLUSHING = 16,
const GST_BUS_FLAG_LAST = 32,
pub struct GstBusFlags: c_uint {
const GST_BUS_FLUSHING = 16;
const GST_BUS_FLAG_LAST = 32;
}
}
bitflags! {
#[repr(C)]
pub flags GstCapsFlags: c_uint {
const GST_CAPS_FLAG_ANY = 16,
pub struct GstCapsFlags: c_uint {
const GST_CAPS_FLAG_ANY = 16;
}
}
bitflags! {
#[repr(C)]
pub flags GstClockFlags: c_uint {
const GST_CLOCK_FLAG_CAN_DO_SINGLE_SYNC = 16,
const GST_CLOCK_FLAG_CAN_DO_SINGLE_ASYNC = 32,
const GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC = 64,
const GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC = 128,
const GST_CLOCK_FLAG_CAN_SET_RESOLUTION = 256,
const GST_CLOCK_FLAG_CAN_SET_MASTER = 512,
const GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC = 1024,
const GST_CLOCK_FLAG_LAST = 4096,
pub struct GstClockFlags: c_uint {
const GST_CLOCK_FLAG_CAN_DO_SINGLE_SYNC = 16;
const GST_CLOCK_FLAG_CAN_DO_SINGLE_ASYNC = 32;
const GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC = 64;
const GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC = 128;
const GST_CLOCK_FLAG_CAN_SET_RESOLUTION = 256;
const GST_CLOCK_FLAG_CAN_SET_MASTER = 512;
const GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC = 1024;
const GST_CLOCK_FLAG_LAST = 4096;
}
}
bitflags! {
#[repr(C)]
pub flags GstDebugGraphDetails: c_uint {
const GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE = 1,
const GST_DEBUG_GRAPH_SHOW_CAPS_DETAILS = 2,
const GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS = 4,
const GST_DEBUG_GRAPH_SHOW_STATES = 8,
const GST_DEBUG_GRAPH_SHOW_FULL_PARAMS = 16,
const GST_DEBUG_GRAPH_SHOW_ALL = 15,
const GST_DEBUG_GRAPH_SHOW_VERBOSE = 4294967295,
pub struct GstDebugGraphDetails: c_uint {
const GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE = 1;
const GST_DEBUG_GRAPH_SHOW_CAPS_DETAILS = 2;
const GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS = 4;
const GST_DEBUG_GRAPH_SHOW_STATES = 8;
const GST_DEBUG_GRAPH_SHOW_FULL_PARAMS = 16;
const GST_DEBUG_GRAPH_SHOW_ALL = 15;
const GST_DEBUG_GRAPH_SHOW_VERBOSE = 4294967295;
}
}
bitflags! {
#[repr(C)]
pub flags GstElementFlags: c_uint {
const GST_ELEMENT_FLAG_LOCKED_STATE = 16,
const GST_ELEMENT_FLAG_SINK = 32,
const GST_ELEMENT_FLAG_SOURCE = 64,
const GST_ELEMENT_FLAG_PROVIDE_CLOCK = 128,
const GST_ELEMENT_FLAG_REQUIRE_CLOCK = 256,
const GST_ELEMENT_FLAG_INDEXABLE = 512,
const GST_ELEMENT_FLAG_LAST = 16384,
pub struct GstElementFlags: c_uint {
const GST_ELEMENT_FLAG_LOCKED_STATE = 16;
const GST_ELEMENT_FLAG_SINK = 32;
const GST_ELEMENT_FLAG_SOURCE = 64;
const GST_ELEMENT_FLAG_PROVIDE_CLOCK = 128;
const GST_ELEMENT_FLAG_REQUIRE_CLOCK = 256;
const GST_ELEMENT_FLAG_INDEXABLE = 512;
const GST_ELEMENT_FLAG_LAST = 16384;
}
}
bitflags! {
#[repr(C)]
pub flags GstEventTypeFlags: c_uint {
const GST_EVENT_TYPE_UPSTREAM = 1,
const GST_EVENT_TYPE_DOWNSTREAM = 2,
const GST_EVENT_TYPE_SERIALIZED = 4,
const GST_EVENT_TYPE_STICKY = 8,
const GST_EVENT_TYPE_STICKY_MULTI = 16,
pub struct GstEventTypeFlags: c_uint {
const GST_EVENT_TYPE_UPSTREAM = 1;
const GST_EVENT_TYPE_DOWNSTREAM = 2;
const GST_EVENT_TYPE_SERIALIZED = 4;
const GST_EVENT_TYPE_STICKY = 8;
const GST_EVENT_TYPE_STICKY_MULTI = 16;
}
}
bitflags! {
#[repr(C)]
pub flags GstLockFlags: c_uint {
const GST_LOCK_FLAG_READ = 1,
const GST_LOCK_FLAG_WRITE = 2,
const GST_LOCK_FLAG_EXCLUSIVE = 4,
const GST_LOCK_FLAG_LAST = 256,
pub struct GstLockFlags: c_uint {
const GST_LOCK_FLAG_READ = 1;
const GST_LOCK_FLAG_WRITE = 2;
const GST_LOCK_FLAG_EXCLUSIVE = 4;
const GST_LOCK_FLAG_LAST = 256;
}
}
bitflags! {
#[repr(C)]
pub flags GstMapFlags: c_uint {
const GST_MAP_READ = 1,
const GST_MAP_WRITE = 2,
const GST_MAP_FLAG_LAST = 65536,
pub struct GstMapFlags: c_uint {
const GST_MAP_READ = 1;
const GST_MAP_WRITE = 2;
const GST_MAP_FLAG_LAST = 65536;
}
}
bitflags! {
#[repr(C)]
pub flags GstMemoryFlags: c_uint {
const GST_MEMORY_FLAG_READONLY = 2,
const GST_MEMORY_FLAG_NO_SHARE = 16,
const GST_MEMORY_FLAG_ZERO_PREFIXED = 32,
const GST_MEMORY_FLAG_ZERO_PADDED = 64,
const GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS = 128,
const GST_MEMORY_FLAG_NOT_MAPPABLE = 256,
const GST_MEMORY_FLAG_LAST = 1048576,
pub struct GstMemoryFlags: c_uint {
const GST_MEMORY_FLAG_READONLY = 2;
const GST_MEMORY_FLAG_NO_SHARE = 16;
const GST_MEMORY_FLAG_ZERO_PREFIXED = 32;
const GST_MEMORY_FLAG_ZERO_PADDED = 64;
const GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS = 128;
const GST_MEMORY_FLAG_NOT_MAPPABLE = 256;
const GST_MEMORY_FLAG_LAST = 1048576;
}
}
bitflags! {
#[repr(C)]
pub flags GstMessageType: c_uint {
const GST_MESSAGE_UNKNOWN = 0,
const GST_MESSAGE_EOS = 1,
const GST_MESSAGE_ERROR = 2,
const GST_MESSAGE_WARNING = 4,
const GST_MESSAGE_INFO = 8,
const GST_MESSAGE_TAG = 16,
const GST_MESSAGE_BUFFERING = 32,
const GST_MESSAGE_STATE_CHANGED = 64,
const GST_MESSAGE_STATE_DIRTY = 128,
const GST_MESSAGE_STEP_DONE = 256,
const GST_MESSAGE_CLOCK_PROVIDE = 512,
const GST_MESSAGE_CLOCK_LOST = 1024,
const GST_MESSAGE_NEW_CLOCK = 2048,
const GST_MESSAGE_STRUCTURE_CHANGE = 4096,
const GST_MESSAGE_STREAM_STATUS = 8192,
const GST_MESSAGE_APPLICATION = 16384,
const GST_MESSAGE_ELEMENT = 32768,
const GST_MESSAGE_SEGMENT_START = 65536,
const GST_MESSAGE_SEGMENT_DONE = 131072,
const GST_MESSAGE_DURATION_CHANGED = 262144,
const GST_MESSAGE_LATENCY = 524288,
const GST_MESSAGE_ASYNC_START = 1048576,
const GST_MESSAGE_ASYNC_DONE = 2097152,
const GST_MESSAGE_REQUEST_STATE = 4194304,
const GST_MESSAGE_STEP_START = 8388608,
const GST_MESSAGE_QOS = 16777216,
const GST_MESSAGE_PROGRESS = 33554432,
const GST_MESSAGE_TOC = 67108864,
const GST_MESSAGE_RESET_TIME = 134217728,
const GST_MESSAGE_STREAM_START = 268435456,
const GST_MESSAGE_NEED_CONTEXT = 536870912,
const GST_MESSAGE_HAVE_CONTEXT = 1073741824,
const GST_MESSAGE_EXTENDED = 2147483648,
const GST_MESSAGE_DEVICE_ADDED = 2147483649,
const GST_MESSAGE_DEVICE_REMOVED = 2147483650,
const GST_MESSAGE_PROPERTY_NOTIFY = 2147483651,
const GST_MESSAGE_STREAM_COLLECTION = 2147483652,