2017-11-27 17:16:34 +00:00
|
|
|
// This file was generated by gir (d50d839) from gir-files (???)
|
2017-05-12 12:24:03 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use ffi;
|
2017-07-19 18:41:25 +00:00
|
|
|
use glib::Type;
|
|
|
|
use glib::StaticType;
|
|
|
|
use glib::value::{Value, SetValue, FromValue, FromValueOptional};
|
|
|
|
use gobject_ffi;
|
2017-05-12 12:24:03 +00:00
|
|
|
use glib::translate::*;
|
|
|
|
|
2017-07-25 12:01:24 +00:00
|
|
|
bitflags! {
|
|
|
|
pub struct BufferFlags: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const LIVE = 16;
|
|
|
|
const DECODE_ONLY = 32;
|
|
|
|
const DISCONT = 64;
|
|
|
|
const RESYNC = 128;
|
|
|
|
const CORRUPTED = 256;
|
|
|
|
const MARKER = 512;
|
|
|
|
const HEADER = 1024;
|
|
|
|
const GAP = 2048;
|
|
|
|
const DROPPABLE = 4096;
|
|
|
|
const DELTA_UNIT = 8192;
|
|
|
|
const TAG_MEMORY = 16384;
|
|
|
|
const SYNC_AFTER = 32768;
|
|
|
|
const LAST = 1048576;
|
2017-07-25 12:01:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for BufferFlags {
|
|
|
|
type GlibType = ffi::GstBufferFlags;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstBufferFlags {
|
|
|
|
ffi::GstBufferFlags::from_bits_truncate(self.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstBufferFlags> for BufferFlags {
|
|
|
|
fn from_glib(value: ffi::GstBufferFlags) -> BufferFlags {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
BufferFlags::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for BufferFlags {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_buffer_flags_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for BufferFlags {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for BufferFlags {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstBufferFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for BufferFlags {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-09 11:12:49 +00:00
|
|
|
bitflags! {
|
|
|
|
pub struct DebugColorFlags: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const FG_BLACK = 0;
|
|
|
|
const FG_RED = 1;
|
|
|
|
const FG_GREEN = 2;
|
|
|
|
const FG_YELLOW = 3;
|
|
|
|
const FG_BLUE = 4;
|
|
|
|
const FG_MAGENTA = 5;
|
|
|
|
const FG_CYAN = 6;
|
|
|
|
const FG_WHITE = 7;
|
|
|
|
const BG_BLACK = 0;
|
|
|
|
const BG_RED = 16;
|
|
|
|
const BG_GREEN = 32;
|
|
|
|
const BG_YELLOW = 48;
|
|
|
|
const BG_BLUE = 64;
|
|
|
|
const BG_MAGENTA = 80;
|
|
|
|
const BG_CYAN = 96;
|
|
|
|
const BG_WHITE = 112;
|
|
|
|
const BOLD = 256;
|
|
|
|
const UNDERLINE = 512;
|
2017-09-09 11:12:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for DebugColorFlags {
|
|
|
|
type GlibType = ffi::GstDebugColorFlags;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstDebugColorFlags {
|
|
|
|
ffi::GstDebugColorFlags::from_bits_truncate(self.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstDebugColorFlags> for DebugColorFlags {
|
|
|
|
fn from_glib(value: ffi::GstDebugColorFlags) -> DebugColorFlags {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
DebugColorFlags::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for DebugColorFlags {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_debug_color_flags_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for DebugColorFlags {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for DebugColorFlags {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstDebugColorFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for DebugColorFlags {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-17 12:31:00 +00:00
|
|
|
bitflags! {
|
|
|
|
pub struct DebugGraphDetails: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const MEDIA_TYPE = 1;
|
|
|
|
const CAPS_DETAILS = 2;
|
|
|
|
const NON_DEFAULT_PARAMS = 4;
|
|
|
|
const STATES = 8;
|
|
|
|
const FULL_PARAMS = 16;
|
|
|
|
const ALL = 15;
|
|
|
|
const VERBOSE = 4294967295;
|
2017-08-17 12:31:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for DebugGraphDetails {
|
|
|
|
type GlibType = ffi::GstDebugGraphDetails;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstDebugGraphDetails {
|
|
|
|
ffi::GstDebugGraphDetails::from_bits_truncate(self.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstDebugGraphDetails> for DebugGraphDetails {
|
|
|
|
fn from_glib(value: ffi::GstDebugGraphDetails) -> DebugGraphDetails {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
DebugGraphDetails::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for DebugGraphDetails {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_debug_graph_details_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for DebugGraphDetails {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for DebugGraphDetails {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstDebugGraphDetails::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for DebugGraphDetails {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-14 19:15:37 +00:00
|
|
|
bitflags! {
|
|
|
|
pub struct ElementFlags: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const LOCKED_STATE = 16;
|
|
|
|
const SINK = 32;
|
|
|
|
const SOURCE = 64;
|
|
|
|
const PROVIDE_CLOCK = 128;
|
|
|
|
const REQUIRE_CLOCK = 256;
|
|
|
|
const INDEXABLE = 512;
|
|
|
|
const LAST = 16384;
|
2017-08-14 19:15:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for ElementFlags {
|
|
|
|
type GlibType = ffi::GstElementFlags;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstElementFlags {
|
|
|
|
ffi::GstElementFlags::from_bits_truncate(self.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstElementFlags> for ElementFlags {
|
|
|
|
fn from_glib(value: ffi::GstElementFlags) -> ElementFlags {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
ElementFlags::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for ElementFlags {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_element_flags_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for ElementFlags {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for ElementFlags {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstElementFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for ElementFlags {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-14 19:19:47 +00:00
|
|
|
bitflags! {
|
|
|
|
pub struct PadLinkCheck: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const NOTHING = 0;
|
|
|
|
const HIERARCHY = 1;
|
|
|
|
const TEMPLATE_CAPS = 2;
|
|
|
|
const CAPS = 4;
|
|
|
|
const NO_RECONFIGURE = 8;
|
|
|
|
const DEFAULT = 5;
|
2017-08-14 19:19:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for PadLinkCheck {
|
|
|
|
type GlibType = ffi::GstPadLinkCheck;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstPadLinkCheck {
|
|
|
|
ffi::GstPadLinkCheck::from_bits_truncate(self.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstPadLinkCheck> for PadLinkCheck {
|
|
|
|
fn from_glib(value: ffi::GstPadLinkCheck) -> PadLinkCheck {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
PadLinkCheck::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for PadLinkCheck {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_pad_link_check_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for PadLinkCheck {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for PadLinkCheck {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstPadLinkCheck::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for PadLinkCheck {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-24 08:51:14 +00:00
|
|
|
bitflags! {
|
|
|
|
pub struct PadProbeType: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const INVALID = 0;
|
|
|
|
const IDLE = 1;
|
|
|
|
const BLOCK = 2;
|
|
|
|
const BUFFER = 16;
|
|
|
|
const BUFFER_LIST = 32;
|
|
|
|
const EVENT_DOWNSTREAM = 64;
|
|
|
|
const EVENT_UPSTREAM = 128;
|
|
|
|
const EVENT_FLUSH = 256;
|
|
|
|
const QUERY_DOWNSTREAM = 512;
|
|
|
|
const QUERY_UPSTREAM = 1024;
|
|
|
|
const PUSH = 4096;
|
|
|
|
const PULL = 8192;
|
|
|
|
const BLOCKING = 3;
|
|
|
|
const DATA_DOWNSTREAM = 112;
|
|
|
|
const DATA_UPSTREAM = 128;
|
|
|
|
const DATA_BOTH = 240;
|
|
|
|
const BLOCK_DOWNSTREAM = 114;
|
|
|
|
const BLOCK_UPSTREAM = 130;
|
|
|
|
const EVENT_BOTH = 192;
|
|
|
|
const QUERY_BOTH = 1536;
|
|
|
|
const ALL_BOTH = 1776;
|
|
|
|
const SCHEDULING = 12288;
|
2017-07-24 08:51:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for PadProbeType {
|
|
|
|
type GlibType = ffi::GstPadProbeType;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstPadProbeType {
|
|
|
|
ffi::GstPadProbeType::from_bits_truncate(self.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstPadProbeType> for PadProbeType {
|
|
|
|
fn from_glib(value: ffi::GstPadProbeType) -> PadProbeType {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
PadProbeType::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for PadProbeType {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_pad_probe_type_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for PadProbeType {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for PadProbeType {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstPadProbeType::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for PadProbeType {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-17 13:17:02 +00:00
|
|
|
bitflags! {
|
|
|
|
pub struct ParseFlags: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const NONE = 0;
|
|
|
|
const FATAL_ERRORS = 1;
|
|
|
|
const NO_SINGLE_ELEMENT_BINS = 2;
|
|
|
|
const PLACE_IN_BIN = 4;
|
2017-08-17 13:17:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for ParseFlags {
|
|
|
|
type GlibType = ffi::GstParseFlags;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstParseFlags {
|
|
|
|
ffi::GstParseFlags::from_bits_truncate(self.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstParseFlags> for ParseFlags {
|
|
|
|
fn from_glib(value: ffi::GstParseFlags) -> ParseFlags {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
ParseFlags::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for ParseFlags {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_parse_flags_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for ParseFlags {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for ParseFlags {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstParseFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for ParseFlags {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-29 11:58:54 +00:00
|
|
|
bitflags! {
|
|
|
|
pub struct SchedulingFlags: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const SEEKABLE = 1;
|
|
|
|
const SEQUENTIAL = 2;
|
|
|
|
const BANDWIDTH_LIMITED = 4;
|
2017-07-29 11:58:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for SchedulingFlags {
|
|
|
|
type GlibType = ffi::GstSchedulingFlags;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstSchedulingFlags {
|
|
|
|
ffi::GstSchedulingFlags::from_bits_truncate(self.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstSchedulingFlags> for SchedulingFlags {
|
|
|
|
fn from_glib(value: ffi::GstSchedulingFlags) -> SchedulingFlags {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
SchedulingFlags::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for SchedulingFlags {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_scheduling_flags_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for SchedulingFlags {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for SchedulingFlags {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstSchedulingFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for SchedulingFlags {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-05-12 12:24:03 +00:00
|
|
|
bitflags! {
|
2017-06-24 08:55:28 +00:00
|
|
|
pub struct SeekFlags: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const NONE = 0;
|
|
|
|
const FLUSH = 1;
|
|
|
|
const ACCURATE = 2;
|
|
|
|
const KEY_UNIT = 4;
|
|
|
|
const SEGMENT = 8;
|
|
|
|
const TRICKMODE = 16;
|
|
|
|
const SKIP = 16;
|
|
|
|
const SNAP_BEFORE = 32;
|
|
|
|
const SNAP_AFTER = 64;
|
|
|
|
const SNAP_NEAREST = 96;
|
|
|
|
const TRICKMODE_KEY_UNITS = 128;
|
|
|
|
const TRICKMODE_NO_AUDIO = 256;
|
2017-05-12 12:24:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[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 {
|
2017-07-10 09:36:15 +00:00
|
|
|
skip_assert_initialized!();
|
2017-05-12 12:24:03 +00:00
|
|
|
SeekFlags::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-19 18:41:25 +00:00
|
|
|
impl StaticType for SeekFlags {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_seek_flags_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for SeekFlags {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for SeekFlags {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstSeekFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for SeekFlags {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-28 16:47:23 +00:00
|
|
|
bitflags! {
|
|
|
|
pub struct SegmentFlags: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const NONE = 0;
|
|
|
|
const RESET = 1;
|
|
|
|
const TRICKMODE = 16;
|
|
|
|
const SKIP = 16;
|
|
|
|
const SEGMENT = 8;
|
|
|
|
const TRICKMODE_KEY_UNITS = 128;
|
|
|
|
const TRICKMODE_NO_AUDIO = 256;
|
2017-07-28 16:47:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for SegmentFlags {
|
|
|
|
type GlibType = ffi::GstSegmentFlags;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstSegmentFlags {
|
|
|
|
ffi::GstSegmentFlags::from_bits_truncate(self.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstSegmentFlags> for SegmentFlags {
|
|
|
|
fn from_glib(value: ffi::GstSegmentFlags) -> SegmentFlags {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
SegmentFlags::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for SegmentFlags {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_segment_flags_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for SegmentFlags {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for SegmentFlags {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstSegmentFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for SegmentFlags {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-01 13:52:15 +00:00
|
|
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
2017-08-17 12:31:00 +00:00
|
|
|
bitflags! {
|
|
|
|
pub struct StackTraceFlags: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const FULL = 1;
|
2017-08-17 12:31:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-01 13:52:15 +00:00
|
|
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
2017-08-17 12:31:00 +00:00
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for StackTraceFlags {
|
|
|
|
type GlibType = ffi::GstStackTraceFlags;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstStackTraceFlags {
|
|
|
|
ffi::GstStackTraceFlags::from_bits_truncate(self.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-01 13:52:15 +00:00
|
|
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
2017-08-17 12:31:00 +00:00
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstStackTraceFlags> for StackTraceFlags {
|
|
|
|
fn from_glib(value: ffi::GstStackTraceFlags) -> StackTraceFlags {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
StackTraceFlags::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-01 13:52:15 +00:00
|
|
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
2017-08-17 12:31:00 +00:00
|
|
|
impl StaticType for StackTraceFlags {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_stack_trace_flags_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-01 13:52:15 +00:00
|
|
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
2017-08-17 12:31:00 +00:00
|
|
|
impl<'a> FromValueOptional<'a> for StackTraceFlags {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-01 13:52:15 +00:00
|
|
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
2017-08-17 12:31:00 +00:00
|
|
|
impl<'a> FromValue<'a> for StackTraceFlags {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstStackTraceFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-01 13:52:15 +00:00
|
|
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
2017-08-17 12:31:00 +00:00
|
|
|
impl SetValue for StackTraceFlags {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-04 22:47:33 +00:00
|
|
|
bitflags! {
|
|
|
|
pub struct StreamFlags: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const NONE = 0;
|
|
|
|
const SPARSE = 1;
|
|
|
|
const SELECT = 2;
|
|
|
|
const UNSELECT = 4;
|
2017-07-04 22:47:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[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 {
|
2017-07-10 09:36:15 +00:00
|
|
|
skip_assert_initialized!();
|
2017-07-04 22:47:33 +00:00
|
|
|
StreamFlags::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-19 18:41:25 +00:00
|
|
|
impl StaticType for StreamFlags {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_stream_flags_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for StreamFlags {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for StreamFlags {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstStreamFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for StreamFlags {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-04 22:47:33 +00:00
|
|
|
bitflags! {
|
|
|
|
pub struct StreamType: u32 {
|
2017-10-01 13:52:15 +00:00
|
|
|
const UNKNOWN = 1;
|
|
|
|
const AUDIO = 2;
|
|
|
|
const VIDEO = 4;
|
|
|
|
const CONTAINER = 8;
|
|
|
|
const TEXT = 16;
|
2017-07-04 22:47:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[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 {
|
2017-07-10 09:36:15 +00:00
|
|
|
skip_assert_initialized!();
|
2017-07-04 22:47:33 +00:00
|
|
|
StreamType::from_bits_truncate(value.bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-19 18:41:25 +00:00
|
|
|
impl StaticType for StreamType {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_stream_type_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for StreamType {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for StreamType {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
|
|
|
from_glib(ffi::GstStreamType::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for StreamType {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|