forked from mirrors/gstreamer-rs
Regenerate everything with latest GIR
And fix-up manual code
This commit is contained in:
parent
99a60e921d
commit
3179806f01
68 changed files with 295 additions and 301 deletions
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use AppStreamType;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
@ -7,7 +7,6 @@ use glib::StaticType;
|
|||
use glib::value::{Value, SetValue, FromValue, FromValueOptional};
|
||||
use gobject_ffi;
|
||||
use glib::translate::*;
|
||||
use std;
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||
pub enum AppStreamType {
|
||||
|
@ -27,7 +26,7 @@ impl ToGlib for AppStreamType {
|
|||
AppStreamType::Stream => ffi::GST_APP_STREAM_TYPE_STREAM,
|
||||
AppStreamType::Seekable => ffi::GST_APP_STREAM_TYPE_SEEKABLE,
|
||||
AppStreamType::RandomAccess => ffi::GST_APP_STREAM_TYPE_RANDOM_ACCESS,
|
||||
AppStreamType::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
AppStreamType::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +35,7 @@ impl ToGlib for AppStreamType {
|
|||
impl FromGlib<ffi::GstAppStreamType> for AppStreamType {
|
||||
fn from_glib(value: ffi::GstAppStreamType) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => AppStreamType::Stream,
|
||||
1 => AppStreamType::Seekable,
|
||||
2 => AppStreamType::RandomAccess,
|
||||
|
@ -59,13 +58,13 @@ impl<'a> FromValueOptional<'a> for AppStreamType {
|
|||
|
||||
impl<'a> FromValue<'a> for AppStreamType {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstAppStreamType>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for AppStreamType {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
mod app_sink;
|
||||
|
|
|
@ -36,7 +36,7 @@ impl AudioChannelPosition {
|
|||
|
||||
let positions_raw: [ffi::GstAudioChannelPosition; 64] =
|
||||
array_init::array_init_copy(|i| if i >= len as usize {
|
||||
ffi::GstAudioChannelPosition::Invalid
|
||||
ffi::GST_AUDIO_CHANNEL_POSITION_INVALID
|
||||
} else {
|
||||
positions[i].to_glib()
|
||||
});
|
||||
|
@ -69,7 +69,7 @@ impl AudioChannelPosition {
|
|||
|
||||
let len = positions.len();
|
||||
let mut positions_raw: [ffi::GstAudioChannelPosition; 64] =
|
||||
[ffi::GstAudioChannelPosition::Invalid; 64];
|
||||
[ffi::GST_AUDIO_CHANNEL_POSITION_INVALID; 64];
|
||||
let valid: bool = unsafe {
|
||||
from_glib(ffi::gst_audio_channel_positions_from_mask(
|
||||
len as i32,
|
||||
|
@ -102,7 +102,7 @@ impl AudioChannelPosition {
|
|||
let len = positions.len();
|
||||
let mut positions_raw: [ffi::GstAudioChannelPosition; 64] =
|
||||
array_init::array_init_copy(|i| if i >= len as usize {
|
||||
ffi::GstAudioChannelPosition::Invalid
|
||||
ffi::GST_AUDIO_CHANNEL_POSITION_INVALID
|
||||
} else {
|
||||
positions[i].to_glib()
|
||||
});
|
||||
|
@ -145,7 +145,7 @@ impl AudioChannelPosition {
|
|||
let len = positions.len();
|
||||
let positions_raw: [ffi::GstAudioChannelPosition; 64] =
|
||||
array_init::array_init_copy(|i| if i >= len as usize {
|
||||
ffi::GstAudioChannelPosition::Invalid
|
||||
ffi::GST_AUDIO_CHANNEL_POSITION_INVALID
|
||||
} else {
|
||||
positions[i].to_glib()
|
||||
});
|
||||
|
@ -178,14 +178,14 @@ pub fn buffer_reorder_channels(
|
|||
|
||||
let from_raw: [ffi::GstAudioChannelPosition; 64] =
|
||||
array_init::array_init_copy(|i| if i >= from_len as usize {
|
||||
ffi::GstAudioChannelPosition::Invalid
|
||||
ffi::GST_AUDIO_CHANNEL_POSITION_INVALID
|
||||
} else {
|
||||
from[i].to_glib()
|
||||
});
|
||||
|
||||
let to_raw: [ffi::GstAudioChannelPosition; 64] =
|
||||
array_init::array_init_copy(|i| if i >= to_len as usize {
|
||||
ffi::GstAudioChannelPosition::Invalid
|
||||
ffi::GST_AUDIO_CHANNEL_POSITION_INVALID
|
||||
} else {
|
||||
to[i].to_glib()
|
||||
});
|
||||
|
@ -225,14 +225,14 @@ pub fn reorder_channels(
|
|||
|
||||
let from_raw: [ffi::GstAudioChannelPosition; 64] =
|
||||
array_init::array_init_copy(|i| if i >= from_len as usize {
|
||||
ffi::GstAudioChannelPosition::Invalid
|
||||
ffi::GST_AUDIO_CHANNEL_POSITION_INVALID
|
||||
} else {
|
||||
from[i].to_glib()
|
||||
});
|
||||
|
||||
let to_raw: [ffi::GstAudioChannelPosition; 64] =
|
||||
array_init::array_init_copy(|i| if i >= to_len as usize {
|
||||
ffi::GstAudioChannelPosition::Invalid
|
||||
ffi::GST_AUDIO_CHANNEL_POSITION_INVALID
|
||||
} else {
|
||||
to[i].to_glib()
|
||||
});
|
||||
|
@ -271,14 +271,14 @@ pub fn get_channel_reorder_map(
|
|||
|
||||
let from_raw: [ffi::GstAudioChannelPosition; 64] =
|
||||
array_init::array_init_copy(|i| if i >= from_len as usize {
|
||||
ffi::GstAudioChannelPosition::Invalid
|
||||
ffi::GST_AUDIO_CHANNEL_POSITION_INVALID
|
||||
} else {
|
||||
from[i].to_glib()
|
||||
});
|
||||
|
||||
let to_raw: [ffi::GstAudioChannelPosition; 64] =
|
||||
array_init::array_init_copy(|i| if i >= to_len as usize {
|
||||
ffi::GstAudioChannelPosition::Invalid
|
||||
ffi::GST_AUDIO_CHANNEL_POSITION_INVALID
|
||||
} else {
|
||||
to[i].to_glib()
|
||||
});
|
||||
|
|
|
@ -44,7 +44,7 @@ impl<'a> AudioInfoBuilder<'a> {
|
|||
|
||||
let positions: [ffi::GstAudioChannelPosition; 64] =
|
||||
array_init::array_init_copy(|i| if i >= self.channels as usize {
|
||||
ffi::GstAudioChannelPosition::Invalid
|
||||
ffi::GST_AUDIO_CHANNEL_POSITION_INVALID
|
||||
} else {
|
||||
p[i].to_glib()
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
@ -7,7 +7,6 @@ use glib::StaticType;
|
|||
use glib::value::{Value, SetValue, FromValue, FromValueOptional};
|
||||
use gobject_ffi;
|
||||
use glib::translate::*;
|
||||
use std;
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||
pub enum AudioChannelPosition {
|
||||
|
@ -83,7 +82,7 @@ impl ToGlib for AudioChannelPosition {
|
|||
AudioChannelPosition::WideRight => ffi::GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT,
|
||||
AudioChannelPosition::SurroundLeft => ffi::GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT,
|
||||
AudioChannelPosition::SurroundRight => ffi::GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT,
|
||||
AudioChannelPosition::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
AudioChannelPosition::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -92,7 +91,7 @@ impl ToGlib for AudioChannelPosition {
|
|||
impl FromGlib<ffi::GstAudioChannelPosition> for AudioChannelPosition {
|
||||
fn from_glib(value: ffi::GstAudioChannelPosition) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
-3 => AudioChannelPosition::None,
|
||||
-2 => AudioChannelPosition::Mono,
|
||||
-1 => AudioChannelPosition::Invalid,
|
||||
|
@ -143,13 +142,13 @@ impl<'a> FromValueOptional<'a> for AudioChannelPosition {
|
|||
|
||||
impl<'a> FromValue<'a> for AudioChannelPosition {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstAudioChannelPosition>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for AudioChannelPosition {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -229,7 +228,7 @@ impl ToGlib for AudioFormat {
|
|||
AudioFormat::F32be => ffi::GST_AUDIO_FORMAT_F32BE,
|
||||
AudioFormat::F64le => ffi::GST_AUDIO_FORMAT_F64LE,
|
||||
AudioFormat::F64be => ffi::GST_AUDIO_FORMAT_F64BE,
|
||||
AudioFormat::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
AudioFormat::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -238,7 +237,7 @@ impl ToGlib for AudioFormat {
|
|||
impl FromGlib<ffi::GstAudioFormat> for AudioFormat {
|
||||
fn from_glib(value: ffi::GstAudioFormat) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => AudioFormat::Unknown,
|
||||
1 => AudioFormat::Encoded,
|
||||
2 => AudioFormat::S8,
|
||||
|
@ -290,13 +289,13 @@ impl<'a> FromValueOptional<'a> for AudioFormat {
|
|||
|
||||
impl<'a> FromValue<'a> for AudioFormat {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstAudioFormat>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for AudioFormat {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -316,7 +315,7 @@ impl ToGlib for AudioLayout {
|
|||
match *self {
|
||||
AudioLayout::Interleaved => ffi::GST_AUDIO_LAYOUT_INTERLEAVED,
|
||||
AudioLayout::NonInterleaved => ffi::GST_AUDIO_LAYOUT_NON_INTERLEAVED,
|
||||
AudioLayout::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
AudioLayout::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -325,7 +324,7 @@ impl ToGlib for AudioLayout {
|
|||
impl FromGlib<ffi::GstAudioLayout> for AudioLayout {
|
||||
fn from_glib(value: ffi::GstAudioLayout) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => AudioLayout::Interleaved,
|
||||
1 => AudioLayout::NonInterleaved,
|
||||
value => AudioLayout::__Unknown(value),
|
||||
|
@ -347,13 +346,13 @@ impl<'a> FromValueOptional<'a> for AudioLayout {
|
|||
|
||||
impl<'a> FromValue<'a> for AudioLayout {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstAudioLayout>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for AudioLayout {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -375,7 +374,7 @@ impl ToGlib for StreamVolumeFormat {
|
|||
StreamVolumeFormat::Linear => ffi::GST_STREAM_VOLUME_FORMAT_LINEAR,
|
||||
StreamVolumeFormat::Cubic => ffi::GST_STREAM_VOLUME_FORMAT_CUBIC,
|
||||
StreamVolumeFormat::Db => ffi::GST_STREAM_VOLUME_FORMAT_DB,
|
||||
StreamVolumeFormat::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
StreamVolumeFormat::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -384,7 +383,7 @@ impl ToGlib for StreamVolumeFormat {
|
|||
impl FromGlib<ffi::GstStreamVolumeFormat> for StreamVolumeFormat {
|
||||
fn from_glib(value: ffi::GstStreamVolumeFormat) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => StreamVolumeFormat::Linear,
|
||||
1 => StreamVolumeFormat::Cubic,
|
||||
2 => StreamVolumeFormat::Db,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
mod stream_volume;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use StreamVolumeFormat;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
use glib::translate::*;
|
||||
use std;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
mod adapter;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use BaseSrc;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
@ -9,7 +9,6 @@ use glib::StaticType;
|
|||
use glib::value::{Value, SetValue, FromValue, FromValueOptional};
|
||||
use gobject_ffi;
|
||||
use glib::translate::*;
|
||||
use std;
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||
pub enum PlayerColorBalanceType {
|
||||
|
@ -31,7 +30,7 @@ impl ToGlib for PlayerColorBalanceType {
|
|||
PlayerColorBalanceType::Brightness => ffi::GST_PLAYER_COLOR_BALANCE_BRIGHTNESS,
|
||||
PlayerColorBalanceType::Saturation => ffi::GST_PLAYER_COLOR_BALANCE_SATURATION,
|
||||
PlayerColorBalanceType::Contrast => ffi::GST_PLAYER_COLOR_BALANCE_CONTRAST,
|
||||
PlayerColorBalanceType::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
PlayerColorBalanceType::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +39,7 @@ impl ToGlib for PlayerColorBalanceType {
|
|||
impl FromGlib<ffi::GstPlayerColorBalanceType> for PlayerColorBalanceType {
|
||||
fn from_glib(value: ffi::GstPlayerColorBalanceType) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
3 => PlayerColorBalanceType::Hue,
|
||||
0 => PlayerColorBalanceType::Brightness,
|
||||
2 => PlayerColorBalanceType::Saturation,
|
||||
|
@ -64,13 +63,13 @@ impl<'a> FromValueOptional<'a> for PlayerColorBalanceType {
|
|||
|
||||
impl<'a> FromValue<'a> for PlayerColorBalanceType {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstPlayerColorBalanceType>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for PlayerColorBalanceType {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -88,7 +87,7 @@ impl ToGlib for PlayerError {
|
|||
fn to_glib(&self) -> ffi::GstPlayerError {
|
||||
match *self {
|
||||
PlayerError::Failed => ffi::GST_PLAYER_ERROR_FAILED,
|
||||
PlayerError::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
PlayerError::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -97,7 +96,7 @@ impl ToGlib for PlayerError {
|
|||
impl FromGlib<ffi::GstPlayerError> for PlayerError {
|
||||
fn from_glib(value: ffi::GstPlayerError) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => PlayerError::Failed,
|
||||
value => PlayerError::__Unknown(value),
|
||||
}
|
||||
|
@ -111,7 +110,7 @@ impl ErrorDomain for PlayerError {
|
|||
}
|
||||
|
||||
fn code(self) -> i32 {
|
||||
self.to_glib() as i32
|
||||
self.to_glib()
|
||||
}
|
||||
|
||||
fn from(code: i32) -> Option<Self> {
|
||||
|
@ -137,13 +136,13 @@ impl<'a> FromValueOptional<'a> for PlayerError {
|
|||
|
||||
impl<'a> FromValue<'a> for PlayerError {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstPlayerError>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for PlayerError {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -169,7 +168,7 @@ impl ToGlib for PlayerSnapshotFormat {
|
|||
PlayerSnapshotFormat::RawBgrx => ffi::GST_PLAYER_THUMBNAIL_RAW_BGRx,
|
||||
PlayerSnapshotFormat::Jpg => ffi::GST_PLAYER_THUMBNAIL_JPG,
|
||||
PlayerSnapshotFormat::Png => ffi::GST_PLAYER_THUMBNAIL_PNG,
|
||||
PlayerSnapshotFormat::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
PlayerSnapshotFormat::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -178,7 +177,7 @@ impl ToGlib for PlayerSnapshotFormat {
|
|||
impl FromGlib<ffi::GstPlayerSnapshotFormat> for PlayerSnapshotFormat {
|
||||
fn from_glib(value: ffi::GstPlayerSnapshotFormat) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => PlayerSnapshotFormat::RawNative,
|
||||
1 => PlayerSnapshotFormat::RawXrgb,
|
||||
2 => PlayerSnapshotFormat::RawBgrx,
|
||||
|
@ -209,7 +208,7 @@ impl ToGlib for PlayerState {
|
|||
PlayerState::Buffering => ffi::GST_PLAYER_STATE_BUFFERING,
|
||||
PlayerState::Paused => ffi::GST_PLAYER_STATE_PAUSED,
|
||||
PlayerState::Playing => ffi::GST_PLAYER_STATE_PLAYING,
|
||||
PlayerState::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
PlayerState::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -218,7 +217,7 @@ impl ToGlib for PlayerState {
|
|||
impl FromGlib<ffi::GstPlayerState> for PlayerState {
|
||||
fn from_glib(value: ffi::GstPlayerState) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => PlayerState::Stopped,
|
||||
1 => PlayerState::Buffering,
|
||||
2 => PlayerState::Paused,
|
||||
|
@ -242,13 +241,13 @@ impl<'a> FromValueOptional<'a> for PlayerState {
|
|||
|
||||
impl<'a> FromValue<'a> for PlayerState {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstPlayerState>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for PlayerState {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
mod player;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Error;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use PlayerStreamInfo;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use PlayerSignalDispatcher;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use PlayerAudioInfo;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use PlayerStreamInfo;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use PlayerStreamInfo;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use PlayerVideoRenderer;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
@ -7,7 +7,6 @@ use glib::StaticType;
|
|||
use glib::value::{Value, SetValue, FromValue, FromValueOptional};
|
||||
use gobject_ffi;
|
||||
use glib::translate::*;
|
||||
use std;
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||
pub enum VideoColorMatrix {
|
||||
|
@ -35,7 +34,7 @@ impl ToGlib for VideoColorMatrix {
|
|||
VideoColorMatrix::Bt601 => ffi::GST_VIDEO_COLOR_MATRIX_BT601,
|
||||
VideoColorMatrix::Smpte240m => ffi::GST_VIDEO_COLOR_MATRIX_SMPTE240M,
|
||||
VideoColorMatrix::Bt2020 => ffi::GST_VIDEO_COLOR_MATRIX_BT2020,
|
||||
VideoColorMatrix::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
VideoColorMatrix::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,7 +43,7 @@ impl ToGlib for VideoColorMatrix {
|
|||
impl FromGlib<ffi::GstVideoColorMatrix> for VideoColorMatrix {
|
||||
fn from_glib(value: ffi::GstVideoColorMatrix) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => VideoColorMatrix::Unknown,
|
||||
1 => VideoColorMatrix::Rgb,
|
||||
2 => VideoColorMatrix::Fcc,
|
||||
|
@ -71,13 +70,13 @@ impl<'a> FromValueOptional<'a> for VideoColorMatrix {
|
|||
|
||||
impl<'a> FromValue<'a> for VideoColorMatrix {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstVideoColorMatrix>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for VideoColorMatrix {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -111,7 +110,7 @@ impl ToGlib for VideoColorPrimaries {
|
|||
VideoColorPrimaries::Film => ffi::GST_VIDEO_COLOR_PRIMARIES_FILM,
|
||||
VideoColorPrimaries::Bt2020 => ffi::GST_VIDEO_COLOR_PRIMARIES_BT2020,
|
||||
VideoColorPrimaries::Adobergb => ffi::GST_VIDEO_COLOR_PRIMARIES_ADOBERGB,
|
||||
VideoColorPrimaries::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
VideoColorPrimaries::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +119,7 @@ impl ToGlib for VideoColorPrimaries {
|
|||
impl FromGlib<ffi::GstVideoColorPrimaries> for VideoColorPrimaries {
|
||||
fn from_glib(value: ffi::GstVideoColorPrimaries) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => VideoColorPrimaries::Unknown,
|
||||
1 => VideoColorPrimaries::Bt709,
|
||||
2 => VideoColorPrimaries::Bt470m,
|
||||
|
@ -149,13 +148,13 @@ impl<'a> FromValueOptional<'a> for VideoColorPrimaries {
|
|||
|
||||
impl<'a> FromValue<'a> for VideoColorPrimaries {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstVideoColorPrimaries>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for VideoColorPrimaries {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -179,7 +178,7 @@ impl ToGlib for VideoFieldOrder {
|
|||
VideoFieldOrder::Unknown => ffi::GST_VIDEO_FIELD_ORDER_UNKNOWN,
|
||||
VideoFieldOrder::TopFieldFirst => ffi::GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST,
|
||||
VideoFieldOrder::BottomFieldFirst => ffi::GST_VIDEO_FIELD_ORDER_BOTTOM_FIELD_FIRST,
|
||||
VideoFieldOrder::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
VideoFieldOrder::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -189,7 +188,7 @@ impl ToGlib for VideoFieldOrder {
|
|||
impl FromGlib<ffi::GstVideoFieldOrder> for VideoFieldOrder {
|
||||
fn from_glib(value: ffi::GstVideoFieldOrder) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => VideoFieldOrder::Unknown,
|
||||
1 => VideoFieldOrder::TopFieldFirst,
|
||||
2 => VideoFieldOrder::BottomFieldFirst,
|
||||
|
@ -215,14 +214,14 @@ impl<'a> FromValueOptional<'a> for VideoFieldOrder {
|
|||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
impl<'a> FromValue<'a> for VideoFieldOrder {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstVideoFieldOrder>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
impl SetValue for VideoFieldOrder {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -394,7 +393,7 @@ impl ToGlib for VideoFormat {
|
|||
VideoFormat::I42212le => ffi::GST_VIDEO_FORMAT_I422_12LE,
|
||||
VideoFormat::Y44412be => ffi::GST_VIDEO_FORMAT_Y444_12BE,
|
||||
VideoFormat::Y44412le => ffi::GST_VIDEO_FORMAT_Y444_12LE,
|
||||
VideoFormat::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
VideoFormat::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -403,7 +402,7 @@ impl ToGlib for VideoFormat {
|
|||
impl FromGlib<ffi::GstVideoFormat> for VideoFormat {
|
||||
fn from_glib(value: ffi::GstVideoFormat) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => VideoFormat::Unknown,
|
||||
1 => VideoFormat::Encoded,
|
||||
2 => VideoFormat::I420,
|
||||
|
@ -501,13 +500,13 @@ impl<'a> FromValueOptional<'a> for VideoFormat {
|
|||
|
||||
impl<'a> FromValue<'a> for VideoFormat {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstVideoFormat>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for VideoFormat {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -531,7 +530,7 @@ impl ToGlib for VideoInterlaceMode {
|
|||
VideoInterlaceMode::Interleaved => ffi::GST_VIDEO_INTERLACE_MODE_INTERLEAVED,
|
||||
VideoInterlaceMode::Mixed => ffi::GST_VIDEO_INTERLACE_MODE_MIXED,
|
||||
VideoInterlaceMode::Fields => ffi::GST_VIDEO_INTERLACE_MODE_FIELDS,
|
||||
VideoInterlaceMode::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
VideoInterlaceMode::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -540,7 +539,7 @@ impl ToGlib for VideoInterlaceMode {
|
|||
impl FromGlib<ffi::GstVideoInterlaceMode> for VideoInterlaceMode {
|
||||
fn from_glib(value: ffi::GstVideoInterlaceMode) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => VideoInterlaceMode::Progressive,
|
||||
1 => VideoInterlaceMode::Interleaved,
|
||||
2 => VideoInterlaceMode::Mixed,
|
||||
|
@ -564,13 +563,13 @@ impl<'a> FromValueOptional<'a> for VideoInterlaceMode {
|
|||
|
||||
impl<'a> FromValue<'a> for VideoInterlaceMode {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstVideoInterlaceMode>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for VideoInterlaceMode {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -612,7 +611,7 @@ impl ToGlib for VideoMultiviewMode {
|
|||
VideoMultiviewMode::FrameByFrame => ffi::GST_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME,
|
||||
VideoMultiviewMode::MultiviewFrameByFrame => ffi::GST_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME,
|
||||
VideoMultiviewMode::Separated => ffi::GST_VIDEO_MULTIVIEW_MODE_SEPARATED,
|
||||
VideoMultiviewMode::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
VideoMultiviewMode::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -621,7 +620,7 @@ impl ToGlib for VideoMultiviewMode {
|
|||
impl FromGlib<ffi::GstVideoMultiviewMode> for VideoMultiviewMode {
|
||||
fn from_glib(value: ffi::GstVideoMultiviewMode) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
-1 => VideoMultiviewMode::None,
|
||||
0 => VideoMultiviewMode::Mono,
|
||||
1 => VideoMultiviewMode::Left,
|
||||
|
@ -654,13 +653,13 @@ impl<'a> FromValueOptional<'a> for VideoMultiviewMode {
|
|||
|
||||
impl<'a> FromValue<'a> for VideoMultiviewMode {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstVideoMultiviewMode>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for VideoMultiviewMode {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -680,7 +679,7 @@ impl ToGlib for VideoTileMode {
|
|||
match *self {
|
||||
VideoTileMode::Unknown => ffi::GST_VIDEO_TILE_MODE_UNKNOWN,
|
||||
VideoTileMode::Zflipz2x2 => ffi::GST_VIDEO_TILE_MODE_ZFLIPZ_2X2,
|
||||
VideoTileMode::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
VideoTileMode::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -689,7 +688,7 @@ impl ToGlib for VideoTileMode {
|
|||
impl FromGlib<ffi::GstVideoTileMode> for VideoTileMode {
|
||||
fn from_glib(value: ffi::GstVideoTileMode) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => VideoTileMode::Unknown,
|
||||
65536 => VideoTileMode::Zflipz2x2,
|
||||
value => VideoTileMode::__Unknown(value),
|
||||
|
@ -711,13 +710,13 @@ impl<'a> FromValueOptional<'a> for VideoTileMode {
|
|||
|
||||
impl<'a> FromValue<'a> for VideoTileMode {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstVideoTileMode>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for VideoTileMode {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -759,7 +758,7 @@ impl ToGlib for VideoTransferFunction {
|
|||
VideoTransferFunction::Log316 => ffi::GST_VIDEO_TRANSFER_LOG316,
|
||||
VideoTransferFunction::Bt202012 => ffi::GST_VIDEO_TRANSFER_BT2020_12,
|
||||
VideoTransferFunction::Adobergb => ffi::GST_VIDEO_TRANSFER_ADOBERGB,
|
||||
VideoTransferFunction::__Unknown(value) => unsafe{std::mem::transmute(value)}
|
||||
VideoTransferFunction::__Unknown(value) => value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -768,7 +767,7 @@ impl ToGlib for VideoTransferFunction {
|
|||
impl FromGlib<ffi::GstVideoTransferFunction> for VideoTransferFunction {
|
||||
fn from_glib(value: ffi::GstVideoTransferFunction) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value as i32 {
|
||||
match value {
|
||||
0 => VideoTransferFunction::Unknown,
|
||||
1 => VideoTransferFunction::Gamma10,
|
||||
2 => VideoTransferFunction::Gamma18,
|
||||
|
@ -801,13 +800,13 @@ impl<'a> FromValueOptional<'a> for VideoTransferFunction {
|
|||
|
||||
impl<'a> FromValue<'a> for VideoTransferFunction {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(std::mem::transmute::<i32, ffi::GstVideoTransferFunction>(gobject_ffi::g_value_get_enum(value.to_glib_none().0)))
|
||||
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for VideoTransferFunction {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32)
|
||||
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
mod video_overlay;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (0fe730d) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[allow(unused_imports)]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ChildProxy;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ClockTime;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ClockTime;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Caps;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Bus;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Bus;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use DeviceProvider;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Bus;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Caps;
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Bin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Object;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
mod bin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ClockTime;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Caps;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Caps;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Bin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Error;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use ffi;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Object;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Caps;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Object;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Clock;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Element;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Element;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (12a28ac+) from gir-files (???)
|
||||
// This file was generated by gir (94e079d) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
use Error;
|
||||
|
|
|
@ -115,7 +115,7 @@ where
|
|||
match res {
|
||||
ffi::GST_ITERATOR_OK | ffi::GST_ITERATOR_DONE => Ok(()),
|
||||
ffi::GST_ITERATOR_RESYNC => Err(IteratorError::Resync),
|
||||
ffi::GST_ITERATOR_ERROR => Err(IteratorError::Error),
|
||||
ffi::GST_ITERATOR_ERROR | _ => Err(IteratorError::Error),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ where
|
|||
match res {
|
||||
ffi::GST_ITERATOR_OK | ffi::GST_ITERATOR_DONE => Ok(accum.unwrap()),
|
||||
ffi::GST_ITERATOR_RESYNC => Err(IteratorError::Resync),
|
||||
ffi::GST_ITERATOR_ERROR => Err(IteratorError::Error),
|
||||
ffi::GST_ITERATOR_ERROR | _ => Err(IteratorError::Error),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -211,7 +211,7 @@ where
|
|||
},
|
||||
ffi::GST_ITERATOR_DONE => None,
|
||||
ffi::GST_ITERATOR_RESYNC => Some(Err(IteratorError::Resync)),
|
||||
ffi::GST_ITERATOR_ERROR => Some(Err(IteratorError::Error)),
|
||||
ffi::GST_ITERATOR_ERROR | _ => Some(Err(IteratorError::Error)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue