regen with renamed ToGlib into IntoGlib

This commit is contained in:
Bilal Elmoussaoui 2021-04-27 17:10:39 +02:00
parent da156e8ce7
commit 060a7df448
233 changed files with 1254 additions and 1201 deletions

2
gir

@ -1 +1 @@
Subproject commit 4144cf953ff0424a9c10e505cdfd5f4ee5eee268
Subproject commit 1a0921b553383ab0e5a34bdab15ebc8844ec3b46

View file

@ -85,7 +85,7 @@ impl AppSink {
unsafe {
ffi::gst_app_sink_set_buffer_list_support(
self.to_glib_none().0,
enable_lists.to_glib(),
enable_lists.into_glib(),
);
}
}
@ -105,14 +105,14 @@ impl AppSink {
#[doc(alias = "gst_app_sink_set_drop")]
pub fn set_drop(&self, drop: bool) {
unsafe {
ffi::gst_app_sink_set_drop(self.to_glib_none().0, drop.to_glib());
ffi::gst_app_sink_set_drop(self.to_glib_none().0, drop.into_glib());
}
}
#[doc(alias = "gst_app_sink_set_emit_signals")]
pub fn set_emit_signals(&self, emit: bool) {
unsafe {
ffi::gst_app_sink_set_emit_signals(self.to_glib_none().0, emit.to_glib());
ffi::gst_app_sink_set_emit_signals(self.to_glib_none().0, emit.into_glib());
}
}
@ -126,7 +126,7 @@ impl AppSink {
#[doc(alias = "gst_app_sink_set_wait_on_eos")]
pub fn set_wait_on_eos(&self, wait: bool) {
unsafe {
ffi::gst_app_sink_set_wait_on_eos(self.to_glib_none().0, wait.to_glib());
ffi::gst_app_sink_set_wait_on_eos(self.to_glib_none().0, wait.into_glib());
}
}
@ -137,7 +137,7 @@ impl AppSink {
unsafe {
from_glib_full(ffi::gst_app_sink_try_pull_preroll(
self.to_glib_none().0,
timeout.to_glib(),
timeout.into_glib(),
))
}
}
@ -149,7 +149,7 @@ impl AppSink {
unsafe {
from_glib_full(ffi::gst_app_sink_try_pull_sample(
self.to_glib_none().0,
timeout.to_glib(),
timeout.into_glib(),
))
}
}

View file

@ -76,14 +76,14 @@ impl AppSrc {
#[doc(alias = "gst_app_src_set_duration")]
pub fn set_duration(&self, duration: gst::ClockTime) {
unsafe {
ffi::gst_app_src_set_duration(self.to_glib_none().0, duration.to_glib());
ffi::gst_app_src_set_duration(self.to_glib_none().0, duration.into_glib());
}
}
#[doc(alias = "gst_app_src_set_emit_signals")]
pub fn set_emit_signals(&self, emit: bool) {
unsafe {
ffi::gst_app_src_set_emit_signals(self.to_glib_none().0, emit.to_glib());
ffi::gst_app_src_set_emit_signals(self.to_glib_none().0, emit.into_glib());
}
}
@ -104,7 +104,7 @@ impl AppSrc {
#[doc(alias = "gst_app_src_set_stream_type")]
pub fn set_stream_type(&self, type_: AppStreamType) {
unsafe {
ffi::gst_app_src_set_stream_type(self.to_glib_none().0, type_.to_glib());
ffi::gst_app_src_set_stream_type(self.to_glib_none().0, type_.into_glib());
}
}
@ -355,7 +355,7 @@ impl AppSrc {
f: glib::ffi::gpointer,
) -> glib::ffi::gboolean {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this), offset).to_glib()
f(&from_glib_borrow(this), offset).into_glib()
}
unsafe {
let f: Box_<F> = Box_::new(f);

View file

@ -24,11 +24,11 @@ pub enum AppStreamType {
}
#[doc(hidden)]
impl ToGlib for AppStreamType {
impl IntoGlib for AppStreamType {
type GlibType = ffi::GstAppStreamType;
fn to_glib(&self) -> ffi::GstAppStreamType {
match *self {
fn into_glib(self) -> ffi::GstAppStreamType {
match self {
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,
@ -73,7 +73,7 @@ impl ToValue for AppStreamType {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AppStreamType>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -172,7 +172,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
unsafe {
ffi::gst_audio_base_sink_set_alignment_threshold(
self.as_ref().to_glib_none().0,
alignment_threshold.to_glib(),
alignment_threshold.into_glib(),
);
}
}
@ -185,7 +185,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
unsafe {
ffi::gst_audio_base_sink_set_discont_wait(
self.as_ref().to_glib_none().0,
discont_wait.to_glib(),
discont_wait.into_glib(),
);
}
}
@ -203,7 +203,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
unsafe {
ffi::gst_audio_base_sink_set_provide_clock(
self.as_ref().to_glib_none().0,
provide.to_glib(),
provide.into_glib(),
);
}
}

View file

@ -112,7 +112,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
unsafe {
ffi::gst_audio_base_src_set_provide_clock(
self.as_ref().to_glib_none().0,
provide.to_glib(),
provide.into_glib(),
);
}
}

View file

@ -240,7 +240,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
ffi::gst_audio_decoder_merge_tags(
self.as_ref().to_glib_none().0,
tags.to_glib_none().0,
mode.to_glib(),
mode.into_glib(),
);
}
}
@ -268,7 +268,10 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
fn set_drainable(&self, enabled: bool) {
unsafe {
ffi::gst_audio_decoder_set_drainable(self.as_ref().to_glib_none().0, enabled.to_glib());
ffi::gst_audio_decoder_set_drainable(
self.as_ref().to_glib_none().0,
enabled.into_glib(),
);
}
}
@ -276,7 +279,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
unsafe {
ffi::gst_audio_decoder_set_estimate_rate(
self.as_ref().to_glib_none().0,
enabled.to_glib(),
enabled.into_glib(),
);
}
}
@ -285,8 +288,8 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
unsafe {
ffi::gst_audio_decoder_set_latency(
self.as_ref().to_glib_none().0,
min.to_glib(),
max.to_glib(),
min.into_glib(),
max.into_glib(),
);
}
}
@ -299,7 +302,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
fn set_min_latency(&self, num: gst::ClockTime) {
unsafe {
ffi::gst_audio_decoder_set_min_latency(self.as_ref().to_glib_none().0, num.to_glib());
ffi::gst_audio_decoder_set_min_latency(self.as_ref().to_glib_none().0, num.into_glib());
}
}
@ -307,20 +310,20 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
unsafe {
ffi::gst_audio_decoder_set_needs_format(
self.as_ref().to_glib_none().0,
enabled.to_glib(),
enabled.into_glib(),
);
}
}
fn set_plc(&self, enabled: bool) {
unsafe {
ffi::gst_audio_decoder_set_plc(self.as_ref().to_glib_none().0, enabled.to_glib());
ffi::gst_audio_decoder_set_plc(self.as_ref().to_glib_none().0, enabled.into_glib());
}
}
fn set_plc_aware(&self, plc: bool) {
unsafe {
ffi::gst_audio_decoder_set_plc_aware(self.as_ref().to_glib_none().0, plc.to_glib());
ffi::gst_audio_decoder_set_plc_aware(self.as_ref().to_glib_none().0, plc.into_glib());
}
}
@ -328,7 +331,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
unsafe {
ffi::gst_audio_decoder_set_tolerance(
self.as_ref().to_glib_none().0,
tolerance.to_glib(),
tolerance.into_glib(),
);
}
}
@ -337,7 +340,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
unsafe {
ffi::gst_audio_decoder_set_use_default_pad_acceptcaps(
self.as_ref().to_glib_none().0,
use_.to_glib(),
use_.into_glib(),
);
}
}

View file

@ -218,7 +218,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
ffi::gst_audio_encoder_merge_tags(
self.as_ref().to_glib_none().0,
tags.to_glib_none().0,
mode.to_glib(),
mode.into_glib(),
);
}
}
@ -246,7 +246,10 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
fn set_drainable(&self, enabled: bool) {
unsafe {
ffi::gst_audio_encoder_set_drainable(self.as_ref().to_glib_none().0, enabled.to_glib());
ffi::gst_audio_encoder_set_drainable(
self.as_ref().to_glib_none().0,
enabled.into_glib(),
);
}
}
@ -270,7 +273,10 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
fn set_hard_min(&self, enabled: bool) {
unsafe {
ffi::gst_audio_encoder_set_hard_min(self.as_ref().to_glib_none().0, enabled.to_glib());
ffi::gst_audio_encoder_set_hard_min(
self.as_ref().to_glib_none().0,
enabled.into_glib(),
);
}
}
@ -278,7 +284,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
unsafe {
ffi::gst_audio_encoder_set_hard_resync(
self.as_ref().to_glib_none().0,
enabled.to_glib(),
enabled.into_glib(),
);
}
}
@ -296,8 +302,8 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
unsafe {
ffi::gst_audio_encoder_set_latency(
self.as_ref().to_glib_none().0,
min.to_glib(),
max.to_glib(),
min.into_glib(),
max.into_glib(),
);
}
}
@ -312,7 +318,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
unsafe {
ffi::gst_audio_encoder_set_mark_granule(
self.as_ref().to_glib_none().0,
enabled.to_glib(),
enabled.into_glib(),
);
}
}
@ -321,7 +327,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
unsafe {
ffi::gst_audio_encoder_set_perfect_timestamp(
self.as_ref().to_glib_none().0,
enabled.to_glib(),
enabled.into_glib(),
);
}
}
@ -330,7 +336,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
unsafe {
ffi::gst_audio_encoder_set_tolerance(
self.as_ref().to_glib_none().0,
tolerance.to_glib(),
tolerance.into_glib(),
);
}
}

View file

@ -27,8 +27,8 @@ impl AudioStreamAlign {
unsafe {
from_glib_full(ffi::gst_audio_stream_align_new(
rate,
alignment_threshold.to_glib(),
discont_wait.to_glib(),
alignment_threshold.into_glib(),
discont_wait.into_glib(),
))
}
}
@ -86,7 +86,7 @@ impl AudioStreamAlign {
unsafe {
ffi::gst_audio_stream_align_set_alignment_threshold(
self.to_glib_none_mut().0,
alignment_threshold.to_glib(),
alignment_threshold.into_glib(),
);
}
}
@ -96,7 +96,7 @@ impl AudioStreamAlign {
unsafe {
ffi::gst_audio_stream_align_set_discont_wait(
self.to_glib_none_mut().0,
discont_wait.to_glib(),
discont_wait.into_glib(),
);
}
}

View file

@ -81,11 +81,11 @@ pub enum AudioChannelPosition {
}
#[doc(hidden)]
impl ToGlib for AudioChannelPosition {
impl IntoGlib for AudioChannelPosition {
type GlibType = ffi::GstAudioChannelPosition;
fn to_glib(&self) -> ffi::GstAudioChannelPosition {
match *self {
fn into_glib(self) -> ffi::GstAudioChannelPosition {
match self {
AudioChannelPosition::None => ffi::GST_AUDIO_CHANNEL_POSITION_NONE,
AudioChannelPosition::Mono => ffi::GST_AUDIO_CHANNEL_POSITION_MONO,
AudioChannelPosition::Invalid => ffi::GST_AUDIO_CHANNEL_POSITION_INVALID,
@ -198,7 +198,7 @@ impl ToValue for AudioChannelPosition {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioChannelPosition>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -225,11 +225,11 @@ pub enum AudioDitherMethod {
}
#[doc(hidden)]
impl ToGlib for AudioDitherMethod {
impl IntoGlib for AudioDitherMethod {
type GlibType = ffi::GstAudioDitherMethod;
fn to_glib(&self) -> ffi::GstAudioDitherMethod {
match *self {
fn into_glib(self) -> ffi::GstAudioDitherMethod {
match self {
AudioDitherMethod::None => ffi::GST_AUDIO_DITHER_NONE,
AudioDitherMethod::Rpdf => ffi::GST_AUDIO_DITHER_RPDF,
AudioDitherMethod::Tpdf => ffi::GST_AUDIO_DITHER_TPDF,
@ -276,7 +276,7 @@ impl ToValue for AudioDitherMethod {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioDitherMethod>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -374,11 +374,11 @@ impl fmt::Display for AudioFormat {
}
#[doc(hidden)]
impl ToGlib for AudioFormat {
impl IntoGlib for AudioFormat {
type GlibType = ffi::GstAudioFormat;
fn to_glib(&self) -> ffi::GstAudioFormat {
match *self {
fn into_glib(self) -> ffi::GstAudioFormat {
match self {
AudioFormat::Unknown => ffi::GST_AUDIO_FORMAT_UNKNOWN,
AudioFormat::Encoded => ffi::GST_AUDIO_FORMAT_ENCODED,
AudioFormat::S8 => ffi::GST_AUDIO_FORMAT_S8,
@ -481,7 +481,7 @@ impl ToValue for AudioFormat {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioFormat>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -504,11 +504,11 @@ pub enum AudioLayout {
}
#[doc(hidden)]
impl ToGlib for AudioLayout {
impl IntoGlib for AudioLayout {
type GlibType = ffi::GstAudioLayout;
fn to_glib(&self) -> ffi::GstAudioLayout {
match *self {
fn into_glib(self) -> ffi::GstAudioLayout {
match self {
AudioLayout::Interleaved => ffi::GST_AUDIO_LAYOUT_INTERLEAVED,
AudioLayout::NonInterleaved => ffi::GST_AUDIO_LAYOUT_NON_INTERLEAVED,
AudioLayout::__Unknown(value) => value,
@ -551,7 +551,7 @@ impl ToValue for AudioLayout {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioLayout>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -580,11 +580,11 @@ pub enum AudioNoiseShapingMethod {
}
#[doc(hidden)]
impl ToGlib for AudioNoiseShapingMethod {
impl IntoGlib for AudioNoiseShapingMethod {
type GlibType = ffi::GstAudioNoiseShapingMethod;
fn to_glib(&self) -> ffi::GstAudioNoiseShapingMethod {
match *self {
fn into_glib(self) -> ffi::GstAudioNoiseShapingMethod {
match self {
AudioNoiseShapingMethod::None => ffi::GST_AUDIO_NOISE_SHAPING_NONE,
AudioNoiseShapingMethod::ErrorFeedback => ffi::GST_AUDIO_NOISE_SHAPING_ERROR_FEEDBACK,
AudioNoiseShapingMethod::Simple => ffi::GST_AUDIO_NOISE_SHAPING_SIMPLE,
@ -633,7 +633,7 @@ impl ToValue for AudioNoiseShapingMethod {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioNoiseShapingMethod>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -666,11 +666,11 @@ pub enum AudioResamplerMethod {
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
#[doc(hidden)]
impl ToGlib for AudioResamplerMethod {
impl IntoGlib for AudioResamplerMethod {
type GlibType = ffi::GstAudioResamplerMethod;
fn to_glib(&self) -> ffi::GstAudioResamplerMethod {
match *self {
fn into_glib(self) -> ffi::GstAudioResamplerMethod {
match self {
AudioResamplerMethod::Nearest => ffi::GST_AUDIO_RESAMPLER_METHOD_NEAREST,
AudioResamplerMethod::Linear => ffi::GST_AUDIO_RESAMPLER_METHOD_LINEAR,
AudioResamplerMethod::Cubic => ffi::GST_AUDIO_RESAMPLER_METHOD_CUBIC,
@ -731,7 +731,7 @@ impl ToValue for AudioResamplerMethod {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioResamplerMethod>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -786,11 +786,11 @@ pub enum AudioRingBufferFormatType {
}
#[doc(hidden)]
impl ToGlib for AudioRingBufferFormatType {
impl IntoGlib for AudioRingBufferFormatType {
type GlibType = ffi::GstAudioRingBufferFormatType;
fn to_glib(&self) -> ffi::GstAudioRingBufferFormatType {
match *self {
fn into_glib(self) -> ffi::GstAudioRingBufferFormatType {
match self {
AudioRingBufferFormatType::Raw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW,
AudioRingBufferFormatType::MuLaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW,
AudioRingBufferFormatType::ALaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW,
@ -869,7 +869,7 @@ impl ToValue for AudioRingBufferFormatType {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioRingBufferFormatType>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -894,11 +894,11 @@ pub enum StreamVolumeFormat {
}
#[doc(hidden)]
impl ToGlib for StreamVolumeFormat {
impl IntoGlib for StreamVolumeFormat {
type GlibType = ffi::GstStreamVolumeFormat;
fn to_glib(&self) -> ffi::GstStreamVolumeFormat {
match *self {
fn into_glib(self) -> ffi::GstStreamVolumeFormat {
match self {
StreamVolumeFormat::Linear => ffi::GST_STREAM_VOLUME_FORMAT_LINEAR,
StreamVolumeFormat::Cubic => ffi::GST_STREAM_VOLUME_FORMAT_CUBIC,
StreamVolumeFormat::Db => ffi::GST_STREAM_VOLUME_FORMAT_DB,

View file

@ -17,10 +17,10 @@ bitflags! {
}
#[doc(hidden)]
impl ToGlib for AudioFlags {
impl IntoGlib for AudioFlags {
type GlibType = ffi::GstAudioFlags;
fn to_glib(&self) -> ffi::GstAudioFlags {
fn into_glib(self) -> ffi::GstAudioFlags {
self.bits()
}
}
@ -56,7 +56,7 @@ impl ToValue for AudioFlags {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioFlags>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -77,10 +77,10 @@ bitflags! {
}
#[doc(hidden)]
impl ToGlib for AudioFormatFlags {
impl IntoGlib for AudioFormatFlags {
type GlibType = ffi::GstAudioFormatFlags;
fn to_glib(&self) -> ffi::GstAudioFormatFlags {
fn into_glib(self) -> ffi::GstAudioFormatFlags {
self.bits()
}
}
@ -116,7 +116,7 @@ impl ToValue for AudioFormatFlags {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioFormatFlags>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -133,10 +133,10 @@ bitflags! {
}
#[doc(hidden)]
impl ToGlib for AudioPackFlags {
impl IntoGlib for AudioPackFlags {
type GlibType = ffi::GstAudioPackFlags;
fn to_glib(&self) -> ffi::GstAudioPackFlags {
fn into_glib(self) -> ffi::GstAudioPackFlags {
self.bits()
}
}
@ -172,7 +172,7 @@ impl ToValue for AudioPackFlags {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioPackFlags>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}
value
}

View file

@ -24,7 +24,7 @@ impl StreamVolume {
#[doc(alias = "gst_stream_volume_convert_volume")]
pub fn convert_volume(from: StreamVolumeFormat, to: StreamVolumeFormat, val: f64) -> f64 {
assert_initialized_main_thread!();
unsafe { ffi::gst_stream_volume_convert_volume(from.to_glib(), to.to_glib(), val) }
unsafe { ffi::gst_stream_volume_convert_volume(from.into_glib(), to.into_glib(), val) }
}
}
@ -68,13 +68,13 @@ impl<O: IsA<StreamVolume>> StreamVolumeExt for O {
fn volume(&self, format: StreamVolumeFormat) -> f64 {
unsafe {
ffi::gst_stream_volume_get_volume(self.as_ref().to_glib_none().0, format.to_glib())
ffi::gst_stream_volume_get_volume(self.as_ref().to_glib_none().0, format.into_glib())
}
}
fn set_mute(&self, mute: bool) {
unsafe {
ffi::gst_stream_volume_set_mute(self.as_ref().to_glib_none().0, mute.to_glib());
ffi::gst_stream_volume_set_mute(self.as_ref().to_glib_none().0, mute.into_glib());
}
}
@ -82,7 +82,7 @@ impl<O: IsA<StreamVolume>> StreamVolumeExt for O {
unsafe {
ffi::gst_stream_volume_set_volume(
self.as_ref().to_glib_none().0,
format.to_glib(),
format.into_glib(),
val,
);
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -171,8 +171,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
unsafe {
ffi::gst_aggregator_set_latency(
self.as_ref().to_glib_none().0,
min_latency.to_glib(),
max_latency.to_glib(),
min_latency.into_glib(),
max_latency.into_glib(),
);
}
}

View file

@ -83,9 +83,9 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
from_glib(ffi::gst_base_parse_add_index_entry(
self.as_ref().to_glib_none().0,
offset,
ts.to_glib(),
key.to_glib(),
force.to_glib(),
ts.into_glib(),
key.into_glib(),
force.into_glib(),
))
}
}
@ -103,7 +103,7 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
ffi::gst_base_parse_merge_tags(
self.as_ref().to_glib_none().0,
tags.to_glib_none().0,
mode.to_glib(),
mode.into_glib(),
);
}
}
@ -118,14 +118,14 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
unsafe {
ffi::gst_base_parse_set_has_timing_info(
self.as_ref().to_glib_none().0,
has_timing.to_glib(),
has_timing.into_glib(),
);
}
}
fn set_infer_ts(&self, infer_ts: bool) {
unsafe {
ffi::gst_base_parse_set_infer_ts(self.as_ref().to_glib_none().0, infer_ts.to_glib());
ffi::gst_base_parse_set_infer_ts(self.as_ref().to_glib_none().0, infer_ts.into_glib());
}
}
@ -133,8 +133,8 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
unsafe {
ffi::gst_base_parse_set_latency(
self.as_ref().to_glib_none().0,
min_latency.to_glib(),
max_latency.to_glib(),
min_latency.into_glib(),
max_latency.into_glib(),
);
}
}
@ -149,7 +149,7 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
unsafe {
ffi::gst_base_parse_set_passthrough(
self.as_ref().to_glib_none().0,
passthrough.to_glib(),
passthrough.into_glib(),
);
}
}
@ -158,14 +158,14 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
unsafe {
ffi::gst_base_parse_set_pts_interpolation(
self.as_ref().to_glib_none().0,
pts_interpolate.to_glib(),
pts_interpolate.into_glib(),
);
}
}
fn set_syncable(&self, syncable: bool) {
unsafe {
ffi::gst_base_parse_set_syncable(self.as_ref().to_glib_none().0, syncable.to_glib());
ffi::gst_base_parse_set_syncable(self.as_ref().to_glib_none().0, syncable.into_glib());
}
}

View file

@ -314,7 +314,10 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
fn set_async_enabled(&self, enabled: bool) {
unsafe {
ffi::gst_base_sink_set_async_enabled(self.as_ref().to_glib_none().0, enabled.to_glib());
ffi::gst_base_sink_set_async_enabled(
self.as_ref().to_glib_none().0,
enabled.into_glib(),
);
}
}
@ -330,7 +333,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
unsafe {
ffi::gst_base_sink_set_drop_out_of_segment(
self.as_ref().to_glib_none().0,
drop_out_of_segment.to_glib(),
drop_out_of_segment.into_glib(),
);
}
}
@ -339,7 +342,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
unsafe {
ffi::gst_base_sink_set_last_sample_enabled(
self.as_ref().to_glib_none().0,
enabled.to_glib(),
enabled.into_glib(),
);
}
}
@ -362,26 +365,26 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
unsafe {
ffi::gst_base_sink_set_processing_deadline(
self.as_ref().to_glib_none().0,
processing_deadline.to_glib(),
processing_deadline.into_glib(),
);
}
}
fn set_qos_enabled(&self, enabled: bool) {
unsafe {
ffi::gst_base_sink_set_qos_enabled(self.as_ref().to_glib_none().0, enabled.to_glib());
ffi::gst_base_sink_set_qos_enabled(self.as_ref().to_glib_none().0, enabled.into_glib());
}
}
fn set_render_delay(&self, delay: gst::ClockTime) {
unsafe {
ffi::gst_base_sink_set_render_delay(self.as_ref().to_glib_none().0, delay.to_glib());
ffi::gst_base_sink_set_render_delay(self.as_ref().to_glib_none().0, delay.into_glib());
}
}
fn set_sync(&self, sync: bool) {
unsafe {
ffi::gst_base_sink_set_sync(self.as_ref().to_glib_none().0, sync.to_glib());
ffi::gst_base_sink_set_sync(self.as_ref().to_glib_none().0, sync.into_glib());
}
}

View file

@ -163,7 +163,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
fn set_async(&self, async_: bool) {
unsafe {
ffi::gst_base_src_set_async(self.as_ref().to_glib_none().0, async_.to_glib());
ffi::gst_base_src_set_async(self.as_ref().to_glib_none().0, async_.into_glib());
}
}
@ -171,7 +171,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
unsafe {
ffi::gst_base_src_set_automatic_eos(
self.as_ref().to_glib_none().0,
automatic_eos.to_glib(),
automatic_eos.into_glib(),
);
}
}
@ -193,25 +193,28 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
fn set_do_timestamp(&self, timestamp: bool) {
unsafe {
ffi::gst_base_src_set_do_timestamp(self.as_ref().to_glib_none().0, timestamp.to_glib());
ffi::gst_base_src_set_do_timestamp(
self.as_ref().to_glib_none().0,
timestamp.into_glib(),
);
}
}
fn set_dynamic_size(&self, dynamic: bool) {
unsafe {
ffi::gst_base_src_set_dynamic_size(self.as_ref().to_glib_none().0, dynamic.to_glib());
ffi::gst_base_src_set_dynamic_size(self.as_ref().to_glib_none().0, dynamic.into_glib());
}
}
fn set_format(&self, format: gst::Format) {
unsafe {
ffi::gst_base_src_set_format(self.as_ref().to_glib_none().0, format.to_glib());
ffi::gst_base_src_set_format(self.as_ref().to_glib_none().0, format.into_glib());
}
}
fn set_live(&self, live: bool) {
unsafe {
ffi::gst_base_src_set_live(self.as_ref().to_glib_none().0, live.to_glib());
ffi::gst_base_src_set_live(self.as_ref().to_glib_none().0, live.into_glib());
}
}

View file

@ -149,7 +149,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
unsafe {
ffi::gst_base_transform_set_gap_aware(
self.as_ref().to_glib_none().0,
gap_aware.to_glib(),
gap_aware.into_glib(),
);
}
}
@ -158,7 +158,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
unsafe {
ffi::gst_base_transform_set_in_place(
self.as_ref().to_glib_none().0,
in_place.to_glib(),
in_place.into_glib(),
);
}
}
@ -167,7 +167,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
unsafe {
ffi::gst_base_transform_set_passthrough(
self.as_ref().to_glib_none().0,
passthrough.to_glib(),
passthrough.into_glib(),
);
}
}
@ -176,7 +176,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
unsafe {
ffi::gst_base_transform_set_prefer_passthrough(
self.as_ref().to_glib_none().0,
prefer_passthrough.to_glib(),
prefer_passthrough.into_glib(),
);
}
}
@ -185,7 +185,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
unsafe {
ffi::gst_base_transform_set_qos_enabled(
self.as_ref().to_glib_none().0,
enabled.to_glib(),
enabled.into_glib(),
);
}
}
@ -196,7 +196,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
self.as_ref().to_glib_none().0,
proportion,
diff,
timestamp.to_glib(),
timestamp.into_glib(),
);
}
}

View file

@ -38,11 +38,11 @@ pub enum AggregatorStartTimeSelection {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(hidden)]
impl ToGlib for AggregatorStartTimeSelection {
impl IntoGlib for AggregatorStartTimeSelection {
type GlibType = ffi::GstAggregatorStartTimeSelection;
fn to_glib(&self) -> ffi::GstAggregatorStartTimeSelection {
match *self {
fn into_glib(self) -> ffi::GstAggregatorStartTimeSelection {
match self {
AggregatorStartTimeSelection::Zero => ffi::GST_AGGREGATOR_START_TIME_SELECTION_ZERO,
AggregatorStartTimeSelection::First => ffi::GST_AGGREGATOR_START_TIME_SELECTION_FIRST,
AggregatorStartTimeSelection::Set => ffi::GST_AGGREGATOR_START_TIME_SELECTION_SET,
@ -97,7 +97,7 @@ impl ToValue for AggregatorStartTimeSelection {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AggregatorStartTimeSelection>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}

View file

@ -17,10 +17,10 @@ bitflags! {
}
#[doc(hidden)]
impl ToGlib for BaseParseFrameFlags {
impl IntoGlib for BaseParseFrameFlags {
type GlibType = ffi::GstBaseParseFrameFlags;
fn to_glib(&self) -> ffi::GstBaseParseFrameFlags {
fn into_glib(self) -> ffi::GstBaseParseFrameFlags {
self.bits()
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -33,7 +33,7 @@ impl TestClock {
assert_initialized_main_thread!();
unsafe {
gst::Clock::from_glib_full(ffi::gst_test_clock_new_with_start_time(
start_time.to_glib(),
start_time.into_glib(),
))
.unsafe_cast()
}
@ -95,7 +95,7 @@ impl TestClock {
#[doc(alias = "gst_test_clock_set_time")]
pub fn set_time(&self, new_time: gst::ClockTime) {
unsafe {
ffi::gst_test_clock_set_time(self.to_glib_none().0, new_time.to_glib());
ffi::gst_test_clock_set_time(self.to_glib_none().0, new_time.into_glib());
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -26,11 +26,11 @@ pub enum InterpolationMode {
}
#[doc(hidden)]
impl ToGlib for InterpolationMode {
impl IntoGlib for InterpolationMode {
type GlibType = ffi::GstInterpolationMode;
fn to_glib(&self) -> ffi::GstInterpolationMode {
match *self {
fn into_glib(self) -> ffi::GstInterpolationMode {
match self {
InterpolationMode::None => ffi::GST_INTERPOLATION_MODE_NONE,
InterpolationMode::Linear => ffi::GST_INTERPOLATION_MODE_LINEAR,
InterpolationMode::Cubic => ffi::GST_INTERPOLATION_MODE_CUBIC,
@ -77,7 +77,7 @@ impl ToValue for InterpolationMode {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<InterpolationMode>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -106,11 +106,11 @@ pub enum LFOWaveform {
}
#[doc(hidden)]
impl ToGlib for LFOWaveform {
impl IntoGlib for LFOWaveform {
type GlibType = ffi::GstLFOWaveform;
fn to_glib(&self) -> ffi::GstLFOWaveform {
match *self {
fn into_glib(self) -> ffi::GstLFOWaveform {
match self {
LFOWaveform::Sine => ffi::GST_LFO_WAVEFORM_SINE,
LFOWaveform::Square => ffi::GST_LFO_WAVEFORM_SQUARE,
LFOWaveform::Saw => ffi::GST_LFO_WAVEFORM_SAW,
@ -159,7 +159,7 @@ impl ToValue for LFOWaveform {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<LFOWaveform>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}

View file

@ -80,7 +80,7 @@ impl<O: IsA<TimedValueControlSource>> TimedValueControlSourceExt for O {
unsafe {
from_glib(ffi::gst_timed_value_control_source_set(
self.as_ref().to_glib_none().0,
timestamp.to_glib(),
timestamp.into_glib(),
value,
))
}
@ -94,7 +94,7 @@ impl<O: IsA<TimedValueControlSource>> TimedValueControlSourceExt for O {
unsafe {
from_glib(ffi::gst_timed_value_control_source_unset(
self.as_ref().to_glib_none().0,
timestamp.to_glib(),
timestamp.into_glib(),
))
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -28,7 +28,7 @@ impl Asset {
assert_initialized_main_thread!();
unsafe {
from_glib(ffi::ges_asset_needs_reload(
extractable_type.to_glib(),
extractable_type.into_glib(),
id.to_glib_none().0,
))
}
@ -42,8 +42,11 @@ impl Asset {
assert_initialized_main_thread!();
unsafe {
let mut error = ptr::null_mut();
let ret =
ffi::ges_asset_request(extractable_type.to_glib(), id.to_glib_none().0, &mut error);
let ret = ffi::ges_asset_request(
extractable_type.into_glib(),
id.to_glib_none().0,
&mut error,
);
if error.is_null() {
Ok(from_glib_full(ret))
} else {
@ -84,7 +87,7 @@ impl Asset {
let callback = request_async_trampoline::<Q>;
unsafe {
ffi::ges_asset_request_async(
extractable_type.to_glib(),
extractable_type.into_glib(),
id.to_glib_none().0,
cancellable.map(|p| p.as_ref()).to_glib_none().0,
Some(callback),

View file

@ -244,7 +244,7 @@ impl<O: IsA<Clip>> ClipExt for O {
from_glib_full(ffi::ges_clip_find_track_element(
self.as_ref().to_glib_none().0,
track.map(|p| p.as_ref()).to_glib_none().0,
type_.to_glib(),
type_.into_glib(),
))
}
}
@ -259,8 +259,8 @@ impl<O: IsA<Clip>> ClipExt for O {
FromGlibPtrContainer::from_glib_full(ffi::ges_clip_find_track_elements(
self.as_ref().to_glib_none().0,
track.map(|p| p.as_ref()).to_glib_none().0,
track_type.to_glib(),
type_.to_glib(),
track_type.into_glib(),
type_.into_glib(),
))
}
}
@ -287,7 +287,7 @@ impl<O: IsA<Clip>> ClipExt for O {
let ret = ffi::ges_clip_get_internal_time_from_timeline_time(
self.as_ref().to_glib_none().0,
child.as_ref().to_glib_none().0,
timeline_time.to_glib(),
timeline_time.into_glib(),
&mut error,
);
if error.is_null() {
@ -322,7 +322,7 @@ impl<O: IsA<Clip>> ClipExt for O {
let ret = ffi::ges_clip_get_timeline_time_from_internal_time(
self.as_ref().to_glib_none().0,
child.as_ref().to_glib_none().0,
internal_time.to_glib(),
internal_time.into_glib(),
&mut error,
);
if error.is_null() {
@ -432,7 +432,7 @@ impl<O: IsA<Clip>> ClipExt for O {
unsafe {
ffi::ges_clip_set_supported_formats(
self.as_ref().to_glib_none().0,
supportedformats.to_glib(),
supportedformats.into_glib(),
);
}
}

View file

@ -102,8 +102,8 @@ impl<O: IsA<Container>> GESContainerExt for O {
self.as_ref().to_glib_none().0,
layers.to_glib_none().0,
new_layer_priority,
mode.to_glib(),
edge.to_glib(),
mode.into_glib(),
edge.into_glib(),
position
),
"Failed to edit container"
@ -115,7 +115,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::ges_container_get_children(
self.as_ref().to_glib_none().0,
recursive.to_glib(),
recursive.into_glib(),
))
}
}
@ -136,7 +136,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::ges_container_ungroup(
self.as_ref().to_glib_full(),
recursive.to_glib(),
recursive.into_glib(),
))
}
}

View file

@ -35,7 +35,7 @@ impl Edge {
pub fn name<'a>(self) -> &'a str {
unsafe {
CStr::from_ptr(
ffi::ges_edge_name(self.to_glib())
ffi::ges_edge_name(self.into_glib())
.as_ref()
.expect("ges_edge_name returned NULL"),
)
@ -55,11 +55,11 @@ impl fmt::Display for Edge {
}
#[doc(hidden)]
impl ToGlib for Edge {
impl IntoGlib for Edge {
type GlibType = ffi::GESEdge;
fn to_glib(&self) -> ffi::GESEdge {
match *self {
fn into_glib(self) -> ffi::GESEdge {
match self {
Edge::Start => ffi::GES_EDGE_START,
Edge::End => ffi::GES_EDGE_END,
Edge::None => ffi::GES_EDGE_NONE,
@ -104,7 +104,7 @@ impl ToValue for Edge {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Edge>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -138,7 +138,7 @@ impl EditMode {
pub fn name<'a>(self) -> &'a str {
unsafe {
CStr::from_ptr(
ffi::ges_edit_mode_name(self.to_glib())
ffi::ges_edit_mode_name(self.into_glib())
.as_ref()
.expect("ges_edit_mode_name returned NULL"),
)
@ -158,11 +158,11 @@ impl fmt::Display for EditMode {
}
#[doc(hidden)]
impl ToGlib for EditMode {
impl IntoGlib for EditMode {
type GlibType = ffi::GESEditMode;
fn to_glib(&self) -> ffi::GESEditMode {
match *self {
fn into_glib(self) -> ffi::GESEditMode {
match self {
EditMode::Normal => ffi::GES_EDIT_MODE_NORMAL,
EditMode::Ripple => ffi::GES_EDIT_MODE_RIPPLE,
EditMode::Roll => ffi::GES_EDIT_MODE_ROLL,
@ -211,7 +211,7 @@ impl ToValue for EditMode {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<EditMode>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -374,11 +374,11 @@ pub enum VideoStandardTransitionType {
}
#[doc(hidden)]
impl ToGlib for VideoStandardTransitionType {
impl IntoGlib for VideoStandardTransitionType {
type GlibType = ffi::GESVideoStandardTransitionType;
fn to_glib(&self) -> ffi::GESVideoStandardTransitionType {
match *self {
fn into_glib(self) -> ffi::GESVideoStandardTransitionType {
match self {
VideoStandardTransitionType::None => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_NONE,
VideoStandardTransitionType::BarWipeLr => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BAR_WIPE_LR
@ -683,7 +683,7 @@ impl ToValue for VideoStandardTransitionType {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<VideoStandardTransitionType>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}

View file

@ -23,10 +23,10 @@ bitflags! {
}
#[doc(hidden)]
impl ToGlib for PipelineFlags {
impl IntoGlib for PipelineFlags {
type GlibType = ffi::GESPipelineFlags;
fn to_glib(&self) -> ffi::GESPipelineFlags {
fn into_glib(self) -> ffi::GESPipelineFlags {
self.bits()
}
}
@ -62,7 +62,7 @@ impl ToValue for PipelineFlags {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<PipelineFlags>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -86,7 +86,7 @@ impl TrackType {
pub fn name<'a>(self) -> &'a str {
unsafe {
CStr::from_ptr(
ffi::ges_track_type_name(self.to_glib())
ffi::ges_track_type_name(self.into_glib())
.as_ref()
.expect("ges_track_type_name returned NULL"),
)
@ -104,10 +104,10 @@ impl fmt::Display for TrackType {
}
#[doc(hidden)]
impl ToGlib for TrackType {
impl IntoGlib for TrackType {
type GlibType = ffi::GESTrackType;
fn to_glib(&self) -> ffi::GESTrackType {
fn into_glib(self) -> ffi::GESTrackType {
self.bits()
}
}
@ -143,7 +143,7 @@ impl ToValue for TrackType {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<TrackType>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}
value
}

View file

@ -151,10 +151,10 @@ impl<O: IsA<Layer>> LayerExt for O {
Option::<_>::from_glib_none(ffi::ges_layer_add_asset(
self.as_ref().to_glib_none().0,
asset.as_ref().to_glib_none().0,
start.to_glib(),
inpoint.to_glib(),
duration.to_glib(),
track_types.to_glib(),
start.into_glib(),
inpoint.into_glib(),
duration.into_glib(),
track_types.into_glib(),
))
.ok_or_else(|| glib::bool_error!("Failed to add asset"))
}
@ -175,10 +175,10 @@ impl<O: IsA<Layer>> LayerExt for O {
let ret = ffi::ges_layer_add_asset_full(
self.as_ref().to_glib_none().0,
asset.as_ref().to_glib_none().0,
start.to_glib(),
inpoint.to_glib(),
duration.to_glib(),
track_types.to_glib(),
start.into_glib(),
inpoint.into_glib(),
duration.into_glib(),
track_types.into_glib(),
&mut error,
);
if error.is_null() {
@ -250,8 +250,8 @@ impl<O: IsA<Layer>> LayerExt for O {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::ges_layer_get_clips_in_interval(
self.as_ref().to_glib_none().0,
start.to_glib(),
end.to_glib(),
start.into_glib(),
end.into_glib(),
))
}
}
@ -290,7 +290,7 @@ impl<O: IsA<Layer>> LayerExt for O {
unsafe {
from_glib(ffi::ges_layer_set_active_for_tracks(
self.as_ref().to_glib_none().0,
active.to_glib(),
active.into_glib(),
tracks.to_glib_none().0,
))
}
@ -300,7 +300,7 @@ impl<O: IsA<Layer>> LayerExt for O {
unsafe {
ffi::ges_layer_set_auto_transition(
self.as_ref().to_glib_none().0,
auto_transition.to_glib(),
auto_transition.into_glib(),
);
}
}

View file

@ -212,7 +212,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
fn set_mode(&self, mode: PipelineFlags) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(
ffi::ges_pipeline_set_mode(self.as_ref().to_glib_none().0, mode.to_glib()),
ffi::ges_pipeline_set_mode(self.as_ref().to_glib_none().0, mode.into_glib()),
"Failed to set mode"
)
}

View file

@ -153,7 +153,7 @@ impl<O: IsA<Project>> ProjectExt for O {
from_glib(ffi::ges_project_create_asset(
self.as_ref().to_glib_none().0,
id.to_glib_none().0,
extractable_type.to_glib(),
extractable_type.into_glib(),
))
}
}
@ -168,7 +168,7 @@ impl<O: IsA<Project>> ProjectExt for O {
let ret = ffi::ges_project_create_asset_sync(
self.as_ref().to_glib_none().0,
id.to_glib_none().0,
extractable_type.to_glib(),
extractable_type.into_glib(),
&mut error,
);
if error.is_null() {
@ -184,7 +184,7 @@ impl<O: IsA<Project>> ProjectExt for O {
from_glib_full(ffi::ges_project_get_asset(
self.as_ref().to_glib_none().0,
id.to_glib_none().0,
extractable_type.to_glib(),
extractable_type.into_glib(),
))
}
}
@ -205,7 +205,7 @@ impl<O: IsA<Project>> ProjectExt for O {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::ges_project_list_assets(
self.as_ref().to_glib_none().0,
filter.to_glib(),
filter.into_glib(),
))
}
}
@ -260,7 +260,7 @@ impl<O: IsA<Project>> ProjectExt for O {
timeline.as_ref().to_glib_none().0,
uri.to_glib_none().0,
formatter_asset.map(|p| p.as_ref()).to_glib_full(),
overwrite.to_glib(),
overwrite.into_glib(),
&mut error,
);
if error.is_null() {

View file

@ -289,7 +289,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber {
unsafe {
ffi::ges_timeline_get_frame_at(self.as_ref().to_glib_none().0, timestamp.to_glib())
ffi::ges_timeline_get_frame_at(self.as_ref().to_glib_none().0, timestamp.into_glib())
}
}
@ -412,7 +412,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
from_glib_full(ffi::ges_timeline_paste_element(
self.as_ref().to_glib_none().0,
element.as_ref().to_glib_none().0,
position.to_glib(),
position.into_glib(),
layer_priority,
))
}
@ -454,7 +454,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
self.as_ref().to_glib_none().0,
uri.to_glib_none().0,
formatter_asset.map(|p| p.as_ref()).to_glib_none().0,
overwrite.to_glib(),
overwrite.into_glib(),
&mut error,
);
if error.is_null() {
@ -469,7 +469,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
unsafe {
ffi::ges_timeline_set_auto_transition(
self.as_ref().to_glib_none().0,
auto_transition.to_glib(),
auto_transition.into_glib(),
);
}
}
@ -478,7 +478,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
unsafe {
ffi::ges_timeline_set_snapping_distance(
self.as_ref().to_glib_none().0,
snapping_distance.to_glib(),
snapping_distance.into_glib(),
);
}
}

View file

@ -245,7 +245,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
unsafe {
Option::<_>::from_glib_none(ffi::ges_timeline_element_copy(
self.as_ref().to_glib_none().0,
deep.to_glib(),
deep.into_glib(),
))
.ok_or_else(|| glib::bool_error!("Failed to copy timeline element"))
}
@ -266,8 +266,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
self.as_ref().to_glib_none().0,
layers.to_glib_none().0,
new_layer_priority,
mode.to_glib(),
edge.to_glib(),
mode.into_glib(),
edge.into_glib(),
position,
))
}
@ -287,8 +287,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
let _ = ffi::ges_timeline_element_edit_full(
self.as_ref().to_glib_none().0,
new_layer_priority,
mode.to_glib(),
edge.to_glib(),
mode.into_glib(),
edge.into_glib(),
position,
&mut error,
);
@ -431,7 +431,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
unsafe {
Option::<_>::from_glib_full(ffi::ges_timeline_element_paste(
self.as_ref().to_glib_none().0,
paste_position.to_glib(),
paste_position.into_glib(),
))
.ok_or_else(|| glib::bool_error!("Failed to paste timeline element"))
}
@ -444,7 +444,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
fn ripple(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(
ffi::ges_timeline_element_ripple(self.as_ref().to_glib_none().0, start.to_glib()),
ffi::ges_timeline_element_ripple(self.as_ref().to_glib_none().0, start.into_glib()),
"Failed to ripple"
)
}
@ -453,7 +453,10 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
fn ripple_end(&self, end: gst::ClockTime) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(
ffi::ges_timeline_element_ripple_end(self.as_ref().to_glib_none().0, end.to_glib()),
ffi::ges_timeline_element_ripple_end(
self.as_ref().to_glib_none().0,
end.into_glib()
),
"Failed to ripple"
)
}
@ -462,7 +465,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
fn roll_end(&self, end: gst::ClockTime) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(
ffi::ges_timeline_element_roll_end(self.as_ref().to_glib_none().0, end.to_glib()),
ffi::ges_timeline_element_roll_end(self.as_ref().to_glib_none().0, end.into_glib()),
"Failed to roll"
)
}
@ -473,7 +476,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
glib::result_from_gboolean!(
ffi::ges_timeline_element_roll_start(
self.as_ref().to_glib_none().0,
start.to_glib()
start.into_glib()
),
"Failed to roll"
)
@ -506,7 +509,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
unsafe {
from_glib(ffi::ges_timeline_element_set_duration(
self.as_ref().to_glib_none().0,
duration.to_glib(),
duration.into_glib(),
))
}
}
@ -515,7 +518,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
unsafe {
from_glib(ffi::ges_timeline_element_set_inpoint(
self.as_ref().to_glib_none().0,
inpoint.to_glib(),
inpoint.into_glib(),
))
}
}
@ -524,7 +527,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
unsafe {
from_glib(ffi::ges_timeline_element_set_max_duration(
self.as_ref().to_glib_none().0,
maxduration.to_glib(),
maxduration.into_glib(),
))
}
}
@ -569,7 +572,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
unsafe {
from_glib(ffi::ges_timeline_element_set_start(
self.as_ref().to_glib_none().0,
start.to_glib(),
start.into_glib(),
))
}
}
@ -589,7 +592,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
fn trim(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(
ffi::ges_timeline_element_trim(self.as_ref().to_glib_none().0, start.to_glib()),
ffi::ges_timeline_element_trim(self.as_ref().to_glib_none().0, start.into_glib()),
"Failed to trim"
)
}

View file

@ -33,7 +33,7 @@ impl Track {
#[doc(alias = "ges_track_new")]
pub fn new(type_: TrackType, caps: &gst::Caps) -> Track {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::ges_track_new(type_.to_glib(), caps.to_glib_full())) }
unsafe { from_glib_none(ffi::ges_track_new(type_.into_glib(), caps.to_glib_full())) }
}
}
@ -242,7 +242,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
fn set_mixing(&self, mixing: bool) {
unsafe {
ffi::ges_track_set_mixing(self.as_ref().to_glib_none().0, mixing.to_glib());
ffi::ges_track_set_mixing(self.as_ref().to_glib_none().0, mixing.into_glib());
}
}

View file

@ -184,8 +184,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
ffi::ges_track_element_edit(
self.as_ref().to_glib_none().0,
layers.to_glib_none().0,
mode.to_glib(),
edge.to_glib(),
mode.into_glib(),
edge.into_glib(),
position
),
"Failed to edit"
@ -299,7 +299,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
unsafe {
from_glib(ffi::ges_track_element_set_active(
self.as_ref().to_glib_none().0,
active.to_glib(),
active.into_glib(),
))
}
}
@ -310,7 +310,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
unsafe {
ffi::ges_track_element_set_auto_clamp_control_sources(
self.as_ref().to_glib_none().0,
auto_clamp.to_glib(),
auto_clamp.into_glib(),
);
}
}
@ -325,14 +325,17 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
unsafe {
from_glib(ffi::ges_track_element_set_has_internal_source(
self.as_ref().to_glib_none().0,
has_internal_source.to_glib(),
has_internal_source.into_glib(),
))
}
}
fn set_track_type(&self, type_: TrackType) {
unsafe {
ffi::ges_track_element_set_track_type(self.as_ref().to_glib_none().0, type_.to_glib());
ffi::ges_track_element_set_track_type(
self.as_ref().to_glib_none().0,
type_.into_glib(),
);
}
}

View file

@ -32,7 +32,7 @@ impl TransitionClip {
#[doc(alias = "ges_transition_clip_new")]
pub fn new(vtype: VideoStandardTransitionType) -> Option<TransitionClip> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::ges_transition_clip_new(vtype.to_glib())) }
unsafe { from_glib_none(ffi::ges_transition_clip_new(vtype.into_glib())) }
}
#[doc(alias = "ges_transition_clip_new_for_nick")]

View file

@ -77,13 +77,13 @@ impl<O: IsA<UriClip>> UriClipExt for O {
fn set_is_image(&self, is_image: bool) {
unsafe {
ffi::ges_uri_clip_set_is_image(self.as_ref().to_glib_none().0, is_image.to_glib());
ffi::ges_uri_clip_set_is_image(self.as_ref().to_glib_none().0, is_image.into_glib());
}
}
fn set_mute(&self, mute: bool) {
unsafe {
ffi::ges_uri_clip_set_mute(self.as_ref().to_glib_none().0, mute.to_glib());
ffi::ges_uri_clip_set_mute(self.as_ref().to_glib_none().0, mute.into_glib());
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -36,11 +36,11 @@ pub enum GLContextError {
}
#[doc(hidden)]
impl ToGlib for GLContextError {
impl IntoGlib for GLContextError {
type GlibType = ffi::GstGLContextError;
fn to_glib(&self) -> ffi::GstGLContextError {
match *self {
fn into_glib(self) -> ffi::GstGLContextError {
match self {
GLContextError::Failed => ffi::GST_GL_CONTEXT_ERROR_FAILED,
GLContextError::WrongConfig => ffi::GST_GL_CONTEXT_ERROR_WRONG_CONFIG,
GLContextError::WrongApi => ffi::GST_GL_CONTEXT_ERROR_WRONG_API,
@ -76,7 +76,7 @@ impl ErrorDomain for GLContextError {
}
fn code(self) -> i32 {
self.to_glib()
self.into_glib()
}
fn from(code: i32) -> Option<Self> {
@ -116,7 +116,7 @@ impl ToValue for GLContextError {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLContextError>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -197,7 +197,7 @@ impl GLFormat {
unsafe {
from_glib(ffi::gst_gl_format_is_supported(
context.as_ref().to_glib_none().0,
format.to_glib(),
format.into_glib(),
))
}
}
@ -211,7 +211,7 @@ impl GLFormat {
let mut unsized_format = mem::MaybeUninit::uninit();
let mut gl_type = mem::MaybeUninit::uninit();
ffi::gst_gl_format_type_from_sized_gl_format(
self.to_glib(),
self.into_glib(),
unsized_format.as_mut_ptr(),
gl_type.as_mut_ptr(),
);
@ -229,11 +229,11 @@ impl GLFormat {
}
#[doc(hidden)]
impl ToGlib for GLFormat {
impl IntoGlib for GLFormat {
type GlibType = ffi::GstGLFormat;
fn to_glib(&self) -> ffi::GstGLFormat {
match *self {
fn into_glib(self) -> ffi::GstGLFormat {
match self {
GLFormat::Luminance => ffi::GST_GL_LUMINANCE,
GLFormat::Alpha => ffi::GST_GL_ALPHA,
GLFormat::LuminanceAlpha => ffi::GST_GL_LUMINANCE_ALPHA,
@ -310,7 +310,7 @@ impl ToValue for GLFormat {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLFormat>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -335,11 +335,11 @@ pub enum GLQueryType {
}
#[doc(hidden)]
impl ToGlib for GLQueryType {
impl IntoGlib for GLQueryType {
type GlibType = ffi::GstGLQueryType;
fn to_glib(&self) -> ffi::GstGLQueryType {
match *self {
fn into_glib(self) -> ffi::GstGLQueryType {
match self {
GLQueryType::None => ffi::GST_GL_QUERY_NONE,
GLQueryType::TimeElapsed => ffi::GST_GL_QUERY_TIME_ELAPSED,
GLQueryType::Timestamp => ffi::GST_GL_QUERY_TIMESTAMP,
@ -384,7 +384,7 @@ impl ToValue for GLQueryType {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLQueryType>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -409,11 +409,11 @@ pub enum GLSLError {
}
#[doc(hidden)]
impl ToGlib for GLSLError {
impl IntoGlib for GLSLError {
type GlibType = ffi::GstGLSLError;
fn to_glib(&self) -> ffi::GstGLSLError {
match *self {
fn into_glib(self) -> ffi::GstGLSLError {
match self {
GLSLError::Compile => ffi::GST_GLSL_ERROR_COMPILE,
GLSLError::Link => ffi::GST_GLSL_ERROR_LINK,
GLSLError::Program => ffi::GST_GLSL_ERROR_PROGRAM,
@ -443,7 +443,7 @@ impl ErrorDomain for GLSLError {
}
fn code(self) -> i32 {
self.to_glib()
self.into_glib()
}
fn from(code: i32) -> Option<Self> {
@ -480,7 +480,7 @@ impl ToValue for GLSLError {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLSLError>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -565,8 +565,8 @@ impl GLSLVersion {
assert_initialized_main_thread!();
unsafe {
from_glib_full(ffi::gst_glsl_version_profile_to_string(
self.to_glib(),
profile.to_glib(),
self.into_glib(),
profile.into_glib(),
))
}
}
@ -574,16 +574,16 @@ impl GLSLVersion {
#[doc(alias = "gst_glsl_version_to_string")]
pub fn to_str(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_glsl_version_to_string(self.to_glib())) }
unsafe { from_glib_none(ffi::gst_glsl_version_to_string(self.into_glib())) }
}
}
#[doc(hidden)]
impl ToGlib for GLSLVersion {
impl IntoGlib for GLSLVersion {
type GlibType = ffi::GstGLSLVersion;
fn to_glib(&self) -> ffi::GstGLSLVersion {
match *self {
fn into_glib(self) -> ffi::GstGLSLVersion {
match self {
GLSLVersion::None => ffi::GST_GLSL_VERSION_NONE,
GLSLVersion::_100 => ffi::GST_GLSL_VERSION_100,
GLSLVersion::_110 => ffi::GST_GLSL_VERSION_110,
@ -656,7 +656,7 @@ impl ToValue for GLSLVersion {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLSLVersion>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -681,11 +681,11 @@ pub enum GLStereoDownmix {
}
#[doc(hidden)]
impl ToGlib for GLStereoDownmix {
impl IntoGlib for GLStereoDownmix {
type GlibType = ffi::GstGLStereoDownmix;
fn to_glib(&self) -> ffi::GstGLStereoDownmix {
match *self {
fn into_glib(self) -> ffi::GstGLStereoDownmix {
match self {
GLStereoDownmix::GreenMagentaDubois => {
ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_GREEN_MAGENTA_DUBOIS
}
@ -734,7 +734,7 @@ impl ToValue for GLStereoDownmix {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLStereoDownmix>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -778,7 +778,7 @@ impl GLTextureTarget {
assert_initialized_main_thread!();
unsafe {
from_glib_none(ffi::gst_gl_texture_target_to_buffer_pool_option(
self.to_glib(),
self.into_glib(),
))
}
}
@ -786,22 +786,22 @@ impl GLTextureTarget {
#[doc(alias = "gst_gl_texture_target_to_gl")]
pub fn to_gl(self) -> u32 {
assert_initialized_main_thread!();
unsafe { ffi::gst_gl_texture_target_to_gl(self.to_glib()) }
unsafe { ffi::gst_gl_texture_target_to_gl(self.into_glib()) }
}
#[doc(alias = "gst_gl_texture_target_to_string")]
pub fn to_str(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_gl_texture_target_to_string(self.to_glib())) }
unsafe { from_glib_none(ffi::gst_gl_texture_target_to_string(self.into_glib())) }
}
}
#[doc(hidden)]
impl ToGlib for GLTextureTarget {
impl IntoGlib for GLTextureTarget {
type GlibType = ffi::GstGLTextureTarget;
fn to_glib(&self) -> ffi::GstGLTextureTarget {
match *self {
fn into_glib(self) -> ffi::GstGLTextureTarget {
match self {
GLTextureTarget::None => ffi::GST_GL_TEXTURE_TARGET_NONE,
GLTextureTarget::_2d => ffi::GST_GL_TEXTURE_TARGET_2D,
GLTextureTarget::Rectangle => ffi::GST_GL_TEXTURE_TARGET_RECTANGLE,
@ -848,7 +848,7 @@ impl ToValue for GLTextureTarget {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLTextureTarget>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -877,11 +877,11 @@ pub enum GLUploadReturn {
}
#[doc(hidden)]
impl ToGlib for GLUploadReturn {
impl IntoGlib for GLUploadReturn {
type GlibType = ffi::GstGLUploadReturn;
fn to_glib(&self) -> ffi::GstGLUploadReturn {
match *self {
fn into_glib(self) -> ffi::GstGLUploadReturn {
match self {
GLUploadReturn::Done => ffi::GST_GL_UPLOAD_DONE,
GLUploadReturn::Error => ffi::GST_GL_UPLOAD_ERROR,
GLUploadReturn::Unsupported => ffi::GST_GL_UPLOAD_UNSUPPORTED,
@ -930,7 +930,7 @@ impl ToValue for GLUploadReturn {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLUploadReturn>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -955,11 +955,11 @@ pub enum GLWindowError {
}
#[doc(hidden)]
impl ToGlib for GLWindowError {
impl IntoGlib for GLWindowError {
type GlibType = ffi::GstGLWindowError;
fn to_glib(&self) -> ffi::GstGLWindowError {
match *self {
fn into_glib(self) -> ffi::GstGLWindowError {
match self {
GLWindowError::Failed => ffi::GST_GL_WINDOW_ERROR_FAILED,
GLWindowError::OldLibs => ffi::GST_GL_WINDOW_ERROR_OLD_LIBS,
GLWindowError::ResourceUnavailable => ffi::GST_GL_WINDOW_ERROR_RESOURCE_UNAVAILABLE,
@ -989,7 +989,7 @@ impl ErrorDomain for GLWindowError {
}
fn code(self) -> i32 {
self.to_glib()
self.into_glib()
}
fn from(code: i32) -> Option<Self> {
@ -1026,7 +1026,7 @@ impl ToValue for GLWindowError {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLWindowError>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}

View file

@ -30,7 +30,7 @@ impl GLAPI {
#[doc(alias = "gst_gl_api_to_string")]
pub fn to_str(self) -> glib::GString {
assert_initialized_main_thread!();
unsafe { from_glib_full(ffi::gst_gl_api_to_string(self.to_glib())) }
unsafe { from_glib_full(ffi::gst_gl_api_to_string(self.into_glib())) }
}
}
@ -42,10 +42,10 @@ impl fmt::Display for GLAPI {
}
#[doc(hidden)]
impl ToGlib for GLAPI {
impl IntoGlib for GLAPI {
type GlibType = ffi::GstGLAPI;
fn to_glib(&self) -> ffi::GstGLAPI {
fn into_glib(self) -> ffi::GstGLAPI {
self.bits()
}
}
@ -81,7 +81,7 @@ impl ToValue for GLAPI {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLAPI>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -108,10 +108,10 @@ bitflags! {
}
#[doc(hidden)]
impl ToGlib for GLDisplayType {
impl IntoGlib for GLDisplayType {
type GlibType = ffi::GstGLDisplayType;
fn to_glib(&self) -> ffi::GstGLDisplayType {
fn into_glib(self) -> ffi::GstGLDisplayType {
self.bits()
}
}
@ -147,7 +147,7 @@ impl ToValue for GLDisplayType {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLDisplayType>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -181,7 +181,7 @@ impl GLPlatform {
#[doc(alias = "gst_gl_platform_to_string")]
pub fn to_str(self) -> glib::GString {
assert_initialized_main_thread!();
unsafe { from_glib_full(ffi::gst_gl_platform_to_string(self.to_glib())) }
unsafe { from_glib_full(ffi::gst_gl_platform_to_string(self.into_glib())) }
}
}
@ -193,10 +193,10 @@ impl fmt::Display for GLPlatform {
}
#[doc(hidden)]
impl ToGlib for GLPlatform {
impl IntoGlib for GLPlatform {
type GlibType = ffi::GstGLPlatform;
fn to_glib(&self) -> ffi::GstGLPlatform {
fn into_glib(self) -> ffi::GstGLPlatform {
self.bits()
}
}
@ -232,7 +232,7 @@ impl ToValue for GLPlatform {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLPlatform>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}
value
}
@ -260,15 +260,15 @@ impl GLSLProfile {
#[doc(alias = "gst_glsl_profile_to_string")]
pub fn to_str(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_glsl_profile_to_string(self.to_glib())) }
unsafe { from_glib_none(ffi::gst_glsl_profile_to_string(self.into_glib())) }
}
}
#[doc(hidden)]
impl ToGlib for GLSLProfile {
impl IntoGlib for GLSLProfile {
type GlibType = ffi::GstGLSLProfile;
fn to_glib(&self) -> ffi::GstGLSLProfile {
fn into_glib(self) -> ffi::GstGLSLProfile {
self.bits()
}
}
@ -304,7 +304,7 @@ impl ToValue for GLSLProfile {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLSLProfile>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.to_glib());
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}
value
}

View file

@ -55,7 +55,7 @@ impl GLColorConvert {
unsafe {
from_glib_full(ffi::gst_gl_color_convert_transform_caps(
context.as_ref().to_glib_none().0,
direction.to_glib(),
direction.into_glib(),
caps.to_glib_none().0,
filter.to_glib_none().0,
))

View file

@ -42,7 +42,7 @@ impl GLContext {
let mut major = mem::MaybeUninit::uninit();
let mut minor = mem::MaybeUninit::uninit();
let ret = from_glib(ffi::gst_gl_context_get_current_gl_api(
platform.to_glib(),
platform.into_glib(),
major.as_mut_ptr(),
minor.as_mut_ptr(),
));
@ -137,7 +137,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
fn activate(&self, activate: bool) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(
ffi::gst_gl_context_activate(self.as_ref().to_glib_none().0, activate.to_glib()),
ffi::gst_gl_context_activate(self.as_ref().to_glib_none().0, activate.into_glib()),
"Failed to activate OpenGL context"
)
}
@ -174,7 +174,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
unsafe {
from_glib(ffi::gst_gl_context_check_gl_version(
self.as_ref().to_glib_none().0,
api.to_glib(),
api.into_glib(),
maj,
min,
))
@ -322,8 +322,8 @@ impl<O: IsA<GLContext>> GLContextExt for O {
unsafe {
from_glib(ffi::gst_gl_context_supports_glsl_profile_version(
self.as_ref().to_glib_none().0,
version.to_glib(),
profile.to_glib(),
version.into_glib(),
profile.into_glib(),
))
}
}
@ -334,8 +334,8 @@ impl<O: IsA<GLContext>> GLContextExt for O {
unsafe {
from_glib(ffi::gst_gl_context_supports_precision(
self.as_ref().to_glib_none().0,
version.to_glib(),
profile.to_glib(),
version.into_glib(),
profile.into_glib(),
))
}
}
@ -346,8 +346,8 @@ impl<O: IsA<GLContext>> GLContextExt for O {
unsafe {
from_glib(ffi::gst_gl_context_supports_precision_highp(
self.as_ref().to_glib_none().0,
version.to_glib(),
profile.to_glib(),
version.into_glib(),
profile.into_glib(),
))
}
}

View file

@ -132,7 +132,7 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
fn filter_gl_api(&self, gl_api: GLAPI) {
unsafe {
ffi::gst_gl_display_filter_gl_api(self.as_ref().to_glib_none().0, gl_api.to_glib());
ffi::gst_gl_display_filter_gl_api(self.as_ref().to_glib_none().0, gl_api.into_glib());
}
}

View file

@ -85,7 +85,7 @@ impl<O: IsA<GLFilter>> GLFilterExt for O {
let in_tex = from_glib_borrow(in_tex);
let callback: *mut P = user_data as *const _ as usize as *mut P;
let res = (*callback)(&filter, &in_tex);
res.to_glib()
res.into_glib()
}
let func = Some(func_func::<P> as _);
let super_callback0: &P = &func_data;

View file

@ -381,8 +381,8 @@ impl GLShader {
unsafe {
from_glib_full(ffi::gst_gl_shader_string_fragment_external_oes_get_default(
context.as_ref().to_glib_none().0,
version.to_glib(),
profile.to_glib(),
version.into_glib(),
profile.into_glib(),
))
}
}
@ -399,8 +399,8 @@ impl GLShader {
unsafe {
from_glib_full(ffi::gst_gl_shader_string_fragment_get_default(
context.as_ref().to_glib_none().0,
version.to_glib(),
profile.to_glib(),
version.into_glib(),
profile.into_glib(),
))
}
}
@ -417,8 +417,8 @@ impl GLShader {
unsafe {
from_glib_none(ffi::gst_gl_shader_string_get_highest_precision(
context.as_ref().to_glib_none().0,
version.to_glib(),
profile.to_glib(),
version.into_glib(),
profile.into_glib(),
))
}
}

View file

@ -73,7 +73,7 @@ impl GLUpload {
from_glib_full(ffi::gst_gl_upload_transform_caps(
self.to_glib_none().0,
context.as_ref().to_glib_none().0,
direction.to_glib(),
direction.into_glib(),
caps.to_glib_none().0,
filter.to_glib_none().0,
))

View file

@ -39,8 +39,8 @@ impl GLVideoAllocationParams {
mut_override(v_info.to_glib_none().0),
plane,
mut_override(valign.to_glib_none().0),
target.to_glib(),
tex_format.to_glib(),
target.into_glib(),
tex_format.into_glib(),
))
}
}

View file

@ -85,7 +85,7 @@ impl GLViewConvert {
unsafe {
from_glib_full(ffi::gst_gl_view_convert_transform_caps(
self.to_glib_none().0,
direction.to_glib(),
direction.into_glib(),
caps.to_glib_none().0,
filter.to_glib_none().0,
))

View file

@ -158,7 +158,7 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
unsafe {
ffi::gst_gl_window_handle_events(
self.as_ref().to_glib_none().0,
handle_events.to_glib(),
handle_events.into_glib(),
);
}
}

View file

@ -63,8 +63,8 @@ impl GLSLStage {
from_glib_none(ffi::gst_glsl_stage_new_with_string(
context.as_ref().to_glib_none().0,
type_,
version.to_glib(),
profile.to_glib(),
version.into_glib(),
profile.into_glib(),
str.to_glib_none().0,
))
}
@ -84,8 +84,8 @@ impl GLSLStage {
from_glib_none(ffi::gst_glsl_stage_new_with_strings(
context.as_ref().to_glib_none().0,
type_,
version.to_glib(),
profile.to_glib(),
version.into_glib(),
profile.into_glib(),
n_strings,
str.to_glib_none().0,
))
@ -137,8 +137,8 @@ impl GLSLStage {
glib::result_from_gboolean!(
ffi::gst_glsl_stage_set_strings(
self.to_glib_none().0,
version.to_glib(),
profile.to_glib(),
version.into_glib(),
profile.into_glib(),
n_strings,
str.to_glib_none().0
),

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 3698e6a)
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT

Some files were not shown because too many files have changed in this diff Show more