gstreamer-rs/gstreamer/src/auto/flags.rs

91 lines
2.2 KiB
Rust
Raw Normal View History

2017-06-29 06:02:08 +00:00
// This file was generated by gir (33e9567) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib::translate::*;
bitflags! {
pub struct SeekFlags: u32 {
const SEEK_FLAG_NONE = 0;
const SEEK_FLAG_FLUSH = 1;
const SEEK_FLAG_ACCURATE = 2;
const SEEK_FLAG_KEY_UNIT = 4;
const SEEK_FLAG_SEGMENT = 8;
const SEEK_FLAG_TRICKMODE = 16;
const SEEK_FLAG_SKIP = 16;
const SEEK_FLAG_SNAP_BEFORE = 32;
const SEEK_FLAG_SNAP_AFTER = 64;
const SEEK_FLAG_SNAP_NEAREST = 96;
const SEEK_FLAG_TRICKMODE_KEY_UNITS = 128;
const SEEK_FLAG_TRICKMODE_NO_AUDIO = 256;
}
}
#[doc(hidden)]
impl ToGlib for SeekFlags {
type GlibType = ffi::GstSeekFlags;
fn to_glib(&self) -> ffi::GstSeekFlags {
ffi::GstSeekFlags::from_bits_truncate(self.bits())
}
}
#[doc(hidden)]
impl FromGlib<ffi::GstSeekFlags> for SeekFlags {
fn from_glib(value: ffi::GstSeekFlags) -> SeekFlags {
SeekFlags::from_bits_truncate(value.bits())
}
}
2017-07-04 22:47:33 +00:00
bitflags! {
pub struct StreamFlags: u32 {
const STREAM_FLAG_NONE = 0;
const STREAM_FLAG_SPARSE = 1;
const STREAM_FLAG_SELECT = 2;
const STREAM_FLAG_UNSELECT = 4;
}
}
#[doc(hidden)]
impl ToGlib for StreamFlags {
type GlibType = ffi::GstStreamFlags;
fn to_glib(&self) -> ffi::GstStreamFlags {
ffi::GstStreamFlags::from_bits_truncate(self.bits())
}
}
#[doc(hidden)]
impl FromGlib<ffi::GstStreamFlags> for StreamFlags {
fn from_glib(value: ffi::GstStreamFlags) -> StreamFlags {
StreamFlags::from_bits_truncate(value.bits())
}
}
bitflags! {
pub struct StreamType: u32 {
const STREAM_TYPE_UNKNOWN = 1;
const STREAM_TYPE_AUDIO = 2;
const STREAM_TYPE_VIDEO = 4;
const STREAM_TYPE_CONTAINER = 8;
const STREAM_TYPE_TEXT = 16;
}
}
#[doc(hidden)]
impl ToGlib for StreamType {
type GlibType = ffi::GstStreamType;
fn to_glib(&self) -> ffi::GstStreamType {
ffi::GstStreamType::from_bits_truncate(self.bits())
}
}
#[doc(hidden)]
impl FromGlib<ffi::GstStreamType> for StreamType {
fn from_glib(value: ffi::GstStreamType) -> StreamType {
StreamType::from_bits_truncate(value.bits())
}
}