From 8e91ceb6e1b4572631f9b32aa588a1474bba0954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 5 Nov 2017 18:58:43 +0200 Subject: [PATCH] Regenerate everything with latest GIR --- gstreamer-app-sys/src/lib.rs | 16 +- gstreamer-audio-sys/src/lib.rs | 460 +++------ gstreamer-base-sys/src/lib.rs | 2 +- gstreamer-mpegts-sys/src/lib.rs | 1630 ++++++++++-------------------- gstreamer-pbutils-sys/src/lib.rs | 98 +- gstreamer-player-sys/src/lib.rs | 56 +- gstreamer-sys/src/lib.rs | 1084 ++++++-------------- gstreamer-tag-sys/src/lib.rs | 81 +- gstreamer-video-sys/src/lib.rs | 815 +++++---------- 9 files changed, 1327 insertions(+), 2915 deletions(-) diff --git a/gstreamer-app-sys/src/lib.rs b/gstreamer-app-sys/src/lib.rs index 2c7c1bf56..1916b7521 100644 --- a/gstreamer-app-sys/src/lib.rs +++ b/gstreamer-app-sys/src/lib.rs @@ -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 #![allow(non_camel_case_types, non_upper_case_globals)] @@ -17,16 +17,10 @@ use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double, use glib::{gboolean, gconstpointer, gpointer, GType, Volatile}; // Enums -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAppStreamType { - Stream = 0, - Seekable = 1, - RandomAccess = 2, -} -pub const GST_APP_STREAM_TYPE_STREAM: GstAppStreamType = GstAppStreamType::Stream; -pub const GST_APP_STREAM_TYPE_SEEKABLE: GstAppStreamType = GstAppStreamType::Seekable; -pub const GST_APP_STREAM_TYPE_RANDOM_ACCESS: GstAppStreamType = GstAppStreamType::RandomAccess; +pub type GstAppStreamType = c_int; +pub const GST_APP_STREAM_TYPE_STREAM: GstAppStreamType = 0; +pub const GST_APP_STREAM_TYPE_SEEKABLE: GstAppStreamType = 1; +pub const GST_APP_STREAM_TYPE_RANDOM_ACCESS: GstAppStreamType = 2; // Records #[repr(C)] diff --git a/gstreamer-audio-sys/src/lib.rs b/gstreamer-audio-sys/src/lib.rs index 5b189f089..646f2fe24 100644 --- a/gstreamer-audio-sys/src/lib.rs +++ b/gstreamer-audio-sys/src/lib.rs @@ -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 #![allow(non_camel_case_types, non_upper_case_globals)] @@ -19,340 +19,158 @@ use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double, use glib::{gboolean, gconstpointer, gpointer, GType, Volatile}; // Enums -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioBaseSinkDiscontReason { - NoDiscont = 0, - NewCaps = 1, - Flush = 2, - SyncLatency = 3, - Alignment = 4, - DeviceFailure = 5, -} -pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_NO_DISCONT: GstAudioBaseSinkDiscontReason = GstAudioBaseSinkDiscontReason::NoDiscont; -pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_NEW_CAPS: GstAudioBaseSinkDiscontReason = GstAudioBaseSinkDiscontReason::NewCaps; -pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_FLUSH: GstAudioBaseSinkDiscontReason = GstAudioBaseSinkDiscontReason::Flush; -pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_SYNC_LATENCY: GstAudioBaseSinkDiscontReason = GstAudioBaseSinkDiscontReason::SyncLatency; -pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_ALIGNMENT: GstAudioBaseSinkDiscontReason = GstAudioBaseSinkDiscontReason::Alignment; -pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_DEVICE_FAILURE: GstAudioBaseSinkDiscontReason = GstAudioBaseSinkDiscontReason::DeviceFailure; +pub type GstAudioBaseSinkDiscontReason = c_int; +pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_NO_DISCONT: GstAudioBaseSinkDiscontReason = 0; +pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_NEW_CAPS: GstAudioBaseSinkDiscontReason = 1; +pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_FLUSH: GstAudioBaseSinkDiscontReason = 2; +pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_SYNC_LATENCY: GstAudioBaseSinkDiscontReason = 3; +pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_ALIGNMENT: GstAudioBaseSinkDiscontReason = 4; +pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_DEVICE_FAILURE: GstAudioBaseSinkDiscontReason = 5; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioBaseSinkSlaveMethod { - Resample = 0, - Skew = 1, - None = 2, - Custom = 3, -} -pub const GST_AUDIO_BASE_SINK_SLAVE_RESAMPLE: GstAudioBaseSinkSlaveMethod = GstAudioBaseSinkSlaveMethod::Resample; -pub const GST_AUDIO_BASE_SINK_SLAVE_SKEW: GstAudioBaseSinkSlaveMethod = GstAudioBaseSinkSlaveMethod::Skew; -pub const GST_AUDIO_BASE_SINK_SLAVE_NONE: GstAudioBaseSinkSlaveMethod = GstAudioBaseSinkSlaveMethod::None; -pub const GST_AUDIO_BASE_SINK_SLAVE_CUSTOM: GstAudioBaseSinkSlaveMethod = GstAudioBaseSinkSlaveMethod::Custom; +pub type GstAudioBaseSinkSlaveMethod = c_int; +pub const GST_AUDIO_BASE_SINK_SLAVE_RESAMPLE: GstAudioBaseSinkSlaveMethod = 0; +pub const GST_AUDIO_BASE_SINK_SLAVE_SKEW: GstAudioBaseSinkSlaveMethod = 1; +pub const GST_AUDIO_BASE_SINK_SLAVE_NONE: GstAudioBaseSinkSlaveMethod = 2; +pub const GST_AUDIO_BASE_SINK_SLAVE_CUSTOM: GstAudioBaseSinkSlaveMethod = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioBaseSrcSlaveMethod { - Resample = 0, - ReTimestamp = 1, - Skew = 2, - None = 3, -} -pub const GST_AUDIO_BASE_SRC_SLAVE_RESAMPLE: GstAudioBaseSrcSlaveMethod = GstAudioBaseSrcSlaveMethod::Resample; -pub const GST_AUDIO_BASE_SRC_SLAVE_RE_TIMESTAMP: GstAudioBaseSrcSlaveMethod = GstAudioBaseSrcSlaveMethod::ReTimestamp; -pub const GST_AUDIO_BASE_SRC_SLAVE_SKEW: GstAudioBaseSrcSlaveMethod = GstAudioBaseSrcSlaveMethod::Skew; -pub const GST_AUDIO_BASE_SRC_SLAVE_NONE: GstAudioBaseSrcSlaveMethod = GstAudioBaseSrcSlaveMethod::None; +pub type GstAudioBaseSrcSlaveMethod = c_int; +pub const GST_AUDIO_BASE_SRC_SLAVE_RESAMPLE: GstAudioBaseSrcSlaveMethod = 0; +pub const GST_AUDIO_BASE_SRC_SLAVE_RE_TIMESTAMP: GstAudioBaseSrcSlaveMethod = 1; +pub const GST_AUDIO_BASE_SRC_SLAVE_SKEW: GstAudioBaseSrcSlaveMethod = 2; +pub const GST_AUDIO_BASE_SRC_SLAVE_NONE: GstAudioBaseSrcSlaveMethod = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioCdSrcMode { - Normal = 0, - Continuous = 1, -} -pub const GST_AUDIO_CD_SRC_MODE_NORMAL: GstAudioCdSrcMode = GstAudioCdSrcMode::Normal; -pub const GST_AUDIO_CD_SRC_MODE_CONTINUOUS: GstAudioCdSrcMode = GstAudioCdSrcMode::Continuous; +pub type GstAudioCdSrcMode = c_int; +pub const GST_AUDIO_CD_SRC_MODE_NORMAL: GstAudioCdSrcMode = 0; +pub const GST_AUDIO_CD_SRC_MODE_CONTINUOUS: GstAudioCdSrcMode = 1; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioChannelPosition { - None = -3, - Mono = -2, - Invalid = -1, - FrontLeft = 0, - FrontRight = 1, - FrontCenter = 2, - Lfe1 = 3, - RearLeft = 4, - RearRight = 5, - FrontLeftOfCenter = 6, - FrontRightOfCenter = 7, - RearCenter = 8, - Lfe2 = 9, - SideLeft = 10, - SideRight = 11, - TopFrontLeft = 12, - TopFrontRight = 13, - TopFrontCenter = 14, - TopCenter = 15, - TopRearLeft = 16, - TopRearRight = 17, - TopSideLeft = 18, - TopSideRight = 19, - TopRearCenter = 20, - BottomFrontCenter = 21, - BottomFrontLeft = 22, - BottomFrontRight = 23, - WideLeft = 24, - WideRight = 25, - SurroundLeft = 26, - SurroundRight = 27, -} -pub const GST_AUDIO_CHANNEL_POSITION_NONE: GstAudioChannelPosition = GstAudioChannelPosition::None; -pub const GST_AUDIO_CHANNEL_POSITION_MONO: GstAudioChannelPosition = GstAudioChannelPosition::Mono; -pub const GST_AUDIO_CHANNEL_POSITION_INVALID: GstAudioChannelPosition = GstAudioChannelPosition::Invalid; -pub const GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT: GstAudioChannelPosition = GstAudioChannelPosition::FrontLeft; -pub const GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT: GstAudioChannelPosition = GstAudioChannelPosition::FrontRight; -pub const GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER: GstAudioChannelPosition = GstAudioChannelPosition::FrontCenter; -pub const GST_AUDIO_CHANNEL_POSITION_LFE1: GstAudioChannelPosition = GstAudioChannelPosition::Lfe1; -pub const GST_AUDIO_CHANNEL_POSITION_REAR_LEFT: GstAudioChannelPosition = GstAudioChannelPosition::RearLeft; -pub const GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT: GstAudioChannelPosition = GstAudioChannelPosition::RearRight; -pub const GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER: GstAudioChannelPosition = GstAudioChannelPosition::FrontLeftOfCenter; -pub const GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER: GstAudioChannelPosition = GstAudioChannelPosition::FrontRightOfCenter; -pub const GST_AUDIO_CHANNEL_POSITION_REAR_CENTER: GstAudioChannelPosition = GstAudioChannelPosition::RearCenter; -pub const GST_AUDIO_CHANNEL_POSITION_LFE2: GstAudioChannelPosition = GstAudioChannelPosition::Lfe2; -pub const GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT: GstAudioChannelPosition = GstAudioChannelPosition::SideLeft; -pub const GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT: GstAudioChannelPosition = GstAudioChannelPosition::SideRight; -pub const GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_LEFT: GstAudioChannelPosition = GstAudioChannelPosition::TopFrontLeft; -pub const GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_RIGHT: GstAudioChannelPosition = GstAudioChannelPosition::TopFrontRight; -pub const GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER: GstAudioChannelPosition = GstAudioChannelPosition::TopFrontCenter; -pub const GST_AUDIO_CHANNEL_POSITION_TOP_CENTER: GstAudioChannelPosition = GstAudioChannelPosition::TopCenter; -pub const GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT: GstAudioChannelPosition = GstAudioChannelPosition::TopRearLeft; -pub const GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT: GstAudioChannelPosition = GstAudioChannelPosition::TopRearRight; -pub const GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT: GstAudioChannelPosition = GstAudioChannelPosition::TopSideLeft; -pub const GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT: GstAudioChannelPosition = GstAudioChannelPosition::TopSideRight; -pub const GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER: GstAudioChannelPosition = GstAudioChannelPosition::TopRearCenter; -pub const GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER: GstAudioChannelPosition = GstAudioChannelPosition::BottomFrontCenter; -pub const GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_LEFT: GstAudioChannelPosition = GstAudioChannelPosition::BottomFrontLeft; -pub const GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_RIGHT: GstAudioChannelPosition = GstAudioChannelPosition::BottomFrontRight; -pub const GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT: GstAudioChannelPosition = GstAudioChannelPosition::WideLeft; -pub const GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT: GstAudioChannelPosition = GstAudioChannelPosition::WideRight; -pub const GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT: GstAudioChannelPosition = GstAudioChannelPosition::SurroundLeft; -pub const GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT: GstAudioChannelPosition = GstAudioChannelPosition::SurroundRight; +pub type GstAudioChannelPosition = c_int; +pub const GST_AUDIO_CHANNEL_POSITION_NONE: GstAudioChannelPosition = -3; +pub const GST_AUDIO_CHANNEL_POSITION_MONO: GstAudioChannelPosition = -2; +pub const GST_AUDIO_CHANNEL_POSITION_INVALID: GstAudioChannelPosition = -1; +pub const GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT: GstAudioChannelPosition = 0; +pub const GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT: GstAudioChannelPosition = 1; +pub const GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER: GstAudioChannelPosition = 2; +pub const GST_AUDIO_CHANNEL_POSITION_LFE1: GstAudioChannelPosition = 3; +pub const GST_AUDIO_CHANNEL_POSITION_REAR_LEFT: GstAudioChannelPosition = 4; +pub const GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT: GstAudioChannelPosition = 5; +pub const GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER: GstAudioChannelPosition = 6; +pub const GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER: GstAudioChannelPosition = 7; +pub const GST_AUDIO_CHANNEL_POSITION_REAR_CENTER: GstAudioChannelPosition = 8; +pub const GST_AUDIO_CHANNEL_POSITION_LFE2: GstAudioChannelPosition = 9; +pub const GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT: GstAudioChannelPosition = 10; +pub const GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT: GstAudioChannelPosition = 11; +pub const GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_LEFT: GstAudioChannelPosition = 12; +pub const GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_RIGHT: GstAudioChannelPosition = 13; +pub const GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER: GstAudioChannelPosition = 14; +pub const GST_AUDIO_CHANNEL_POSITION_TOP_CENTER: GstAudioChannelPosition = 15; +pub const GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT: GstAudioChannelPosition = 16; +pub const GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT: GstAudioChannelPosition = 17; +pub const GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT: GstAudioChannelPosition = 18; +pub const GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT: GstAudioChannelPosition = 19; +pub const GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER: GstAudioChannelPosition = 20; +pub const GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER: GstAudioChannelPosition = 21; +pub const GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_LEFT: GstAudioChannelPosition = 22; +pub const GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_RIGHT: GstAudioChannelPosition = 23; +pub const GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT: GstAudioChannelPosition = 24; +pub const GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT: GstAudioChannelPosition = 25; +pub const GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT: GstAudioChannelPosition = 26; +pub const GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT: GstAudioChannelPosition = 27; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioDitherMethod { - None = 0, - Rpdf = 1, - Tpdf = 2, - TpdfHf = 3, -} -pub const GST_AUDIO_DITHER_NONE: GstAudioDitherMethod = GstAudioDitherMethod::None; -pub const GST_AUDIO_DITHER_RPDF: GstAudioDitherMethod = GstAudioDitherMethod::Rpdf; -pub const GST_AUDIO_DITHER_TPDF: GstAudioDitherMethod = GstAudioDitherMethod::Tpdf; -pub const GST_AUDIO_DITHER_TPDF_HF: GstAudioDitherMethod = GstAudioDitherMethod::TpdfHf; +pub type GstAudioDitherMethod = c_int; +pub const GST_AUDIO_DITHER_NONE: GstAudioDitherMethod = 0; +pub const GST_AUDIO_DITHER_RPDF: GstAudioDitherMethod = 1; +pub const GST_AUDIO_DITHER_TPDF: GstAudioDitherMethod = 2; +pub const GST_AUDIO_DITHER_TPDF_HF: GstAudioDitherMethod = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioFormat { - Unknown = 0, - Encoded = 1, - S8 = 2, - U8 = 3, - S16le = 4, - S16be = 5, - U16le = 6, - U16be = 7, - S2432le = 8, - S2432be = 9, - U2432le = 10, - U2432be = 11, - S32le = 12, - S32be = 13, - U32le = 14, - U32be = 15, - S24le = 16, - S24be = 17, - U24le = 18, - U24be = 19, - S20le = 20, - S20be = 21, - U20le = 22, - U20be = 23, - S18le = 24, - S18be = 25, - U18le = 26, - U18be = 27, - F32le = 28, - F32be = 29, - F64le = 30, - F64be = 31, -} -pub const GST_AUDIO_FORMAT_UNKNOWN: GstAudioFormat = GstAudioFormat::Unknown; -pub const GST_AUDIO_FORMAT_ENCODED: GstAudioFormat = GstAudioFormat::Encoded; -pub const GST_AUDIO_FORMAT_S8: GstAudioFormat = GstAudioFormat::S8; -pub const GST_AUDIO_FORMAT_U8: GstAudioFormat = GstAudioFormat::U8; -pub const GST_AUDIO_FORMAT_S16LE: GstAudioFormat = GstAudioFormat::S16le; -pub const GST_AUDIO_FORMAT_S16BE: GstAudioFormat = GstAudioFormat::S16be; -pub const GST_AUDIO_FORMAT_U16LE: GstAudioFormat = GstAudioFormat::U16le; -pub const GST_AUDIO_FORMAT_U16BE: GstAudioFormat = GstAudioFormat::U16be; -pub const GST_AUDIO_FORMAT_S24_32LE: GstAudioFormat = GstAudioFormat::S2432le; -pub const GST_AUDIO_FORMAT_S24_32BE: GstAudioFormat = GstAudioFormat::S2432be; -pub const GST_AUDIO_FORMAT_U24_32LE: GstAudioFormat = GstAudioFormat::U2432le; -pub const GST_AUDIO_FORMAT_U24_32BE: GstAudioFormat = GstAudioFormat::U2432be; -pub const GST_AUDIO_FORMAT_S32LE: GstAudioFormat = GstAudioFormat::S32le; -pub const GST_AUDIO_FORMAT_S32BE: GstAudioFormat = GstAudioFormat::S32be; -pub const GST_AUDIO_FORMAT_U32LE: GstAudioFormat = GstAudioFormat::U32le; -pub const GST_AUDIO_FORMAT_U32BE: GstAudioFormat = GstAudioFormat::U32be; -pub const GST_AUDIO_FORMAT_S24LE: GstAudioFormat = GstAudioFormat::S24le; -pub const GST_AUDIO_FORMAT_S24BE: GstAudioFormat = GstAudioFormat::S24be; -pub const GST_AUDIO_FORMAT_U24LE: GstAudioFormat = GstAudioFormat::U24le; -pub const GST_AUDIO_FORMAT_U24BE: GstAudioFormat = GstAudioFormat::U24be; -pub const GST_AUDIO_FORMAT_S20LE: GstAudioFormat = GstAudioFormat::S20le; -pub const GST_AUDIO_FORMAT_S20BE: GstAudioFormat = GstAudioFormat::S20be; -pub const GST_AUDIO_FORMAT_U20LE: GstAudioFormat = GstAudioFormat::U20le; -pub const GST_AUDIO_FORMAT_U20BE: GstAudioFormat = GstAudioFormat::U20be; -pub const GST_AUDIO_FORMAT_S18LE: GstAudioFormat = GstAudioFormat::S18le; -pub const GST_AUDIO_FORMAT_S18BE: GstAudioFormat = GstAudioFormat::S18be; -pub const GST_AUDIO_FORMAT_U18LE: GstAudioFormat = GstAudioFormat::U18le; -pub const GST_AUDIO_FORMAT_U18BE: GstAudioFormat = GstAudioFormat::U18be; -pub const GST_AUDIO_FORMAT_F32LE: GstAudioFormat = GstAudioFormat::F32le; -pub const GST_AUDIO_FORMAT_F32BE: GstAudioFormat = GstAudioFormat::F32be; -pub const GST_AUDIO_FORMAT_F64LE: GstAudioFormat = GstAudioFormat::F64le; -pub const GST_AUDIO_FORMAT_F64BE: GstAudioFormat = GstAudioFormat::F64be; -pub const GST_AUDIO_FORMAT_S16: GstAudioFormat = GstAudioFormat::S16le; -pub const GST_AUDIO_FORMAT_U16: GstAudioFormat = GstAudioFormat::U16le; -pub const GST_AUDIO_FORMAT_S24_32: GstAudioFormat = GstAudioFormat::S2432le; -pub const GST_AUDIO_FORMAT_U24_32: GstAudioFormat = GstAudioFormat::U2432le; -pub const GST_AUDIO_FORMAT_S32: GstAudioFormat = GstAudioFormat::S32le; -pub const GST_AUDIO_FORMAT_U32: GstAudioFormat = GstAudioFormat::U32le; -pub const GST_AUDIO_FORMAT_S24: GstAudioFormat = GstAudioFormat::S24le; -pub const GST_AUDIO_FORMAT_U24: GstAudioFormat = GstAudioFormat::U24le; -pub const GST_AUDIO_FORMAT_S20: GstAudioFormat = GstAudioFormat::S20le; -pub const GST_AUDIO_FORMAT_U20: GstAudioFormat = GstAudioFormat::U20le; -pub const GST_AUDIO_FORMAT_S18: GstAudioFormat = GstAudioFormat::S18le; -pub const GST_AUDIO_FORMAT_U18: GstAudioFormat = GstAudioFormat::U18le; -pub const GST_AUDIO_FORMAT_F32: GstAudioFormat = GstAudioFormat::F32le; -pub const GST_AUDIO_FORMAT_F64: GstAudioFormat = GstAudioFormat::F64le; +pub type GstAudioFormat = c_int; +pub const GST_AUDIO_FORMAT_UNKNOWN: GstAudioFormat = 0; +pub const GST_AUDIO_FORMAT_ENCODED: GstAudioFormat = 1; +pub const GST_AUDIO_FORMAT_S8: GstAudioFormat = 2; +pub const GST_AUDIO_FORMAT_U8: GstAudioFormat = 3; +pub const GST_AUDIO_FORMAT_S16LE: GstAudioFormat = 4; +pub const GST_AUDIO_FORMAT_S16BE: GstAudioFormat = 5; +pub const GST_AUDIO_FORMAT_U16LE: GstAudioFormat = 6; +pub const GST_AUDIO_FORMAT_U16BE: GstAudioFormat = 7; +pub const GST_AUDIO_FORMAT_S24_32LE: GstAudioFormat = 8; +pub const GST_AUDIO_FORMAT_S24_32BE: GstAudioFormat = 9; +pub const GST_AUDIO_FORMAT_U24_32LE: GstAudioFormat = 10; +pub const GST_AUDIO_FORMAT_U24_32BE: GstAudioFormat = 11; +pub const GST_AUDIO_FORMAT_S32LE: GstAudioFormat = 12; +pub const GST_AUDIO_FORMAT_S32BE: GstAudioFormat = 13; +pub const GST_AUDIO_FORMAT_U32LE: GstAudioFormat = 14; +pub const GST_AUDIO_FORMAT_U32BE: GstAudioFormat = 15; +pub const GST_AUDIO_FORMAT_S24LE: GstAudioFormat = 16; +pub const GST_AUDIO_FORMAT_S24BE: GstAudioFormat = 17; +pub const GST_AUDIO_FORMAT_U24LE: GstAudioFormat = 18; +pub const GST_AUDIO_FORMAT_U24BE: GstAudioFormat = 19; +pub const GST_AUDIO_FORMAT_S20LE: GstAudioFormat = 20; +pub const GST_AUDIO_FORMAT_S20BE: GstAudioFormat = 21; +pub const GST_AUDIO_FORMAT_U20LE: GstAudioFormat = 22; +pub const GST_AUDIO_FORMAT_U20BE: GstAudioFormat = 23; +pub const GST_AUDIO_FORMAT_S18LE: GstAudioFormat = 24; +pub const GST_AUDIO_FORMAT_S18BE: GstAudioFormat = 25; +pub const GST_AUDIO_FORMAT_U18LE: GstAudioFormat = 26; +pub const GST_AUDIO_FORMAT_U18BE: GstAudioFormat = 27; +pub const GST_AUDIO_FORMAT_F32LE: GstAudioFormat = 28; +pub const GST_AUDIO_FORMAT_F32BE: GstAudioFormat = 29; +pub const GST_AUDIO_FORMAT_F64LE: GstAudioFormat = 30; +pub const GST_AUDIO_FORMAT_F64BE: GstAudioFormat = 31; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioLayout { - Interleaved = 0, - NonInterleaved = 1, -} -pub const GST_AUDIO_LAYOUT_INTERLEAVED: GstAudioLayout = GstAudioLayout::Interleaved; -pub const GST_AUDIO_LAYOUT_NON_INTERLEAVED: GstAudioLayout = GstAudioLayout::NonInterleaved; +pub type GstAudioLayout = c_int; +pub const GST_AUDIO_LAYOUT_INTERLEAVED: GstAudioLayout = 0; +pub const GST_AUDIO_LAYOUT_NON_INTERLEAVED: GstAudioLayout = 1; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioNoiseShapingMethod { - None = 0, - ErrorFeedback = 1, - Simple = 2, - Medium = 3, - High = 4, -} -pub const GST_AUDIO_NOISE_SHAPING_NONE: GstAudioNoiseShapingMethod = GstAudioNoiseShapingMethod::None; -pub const GST_AUDIO_NOISE_SHAPING_ERROR_FEEDBACK: GstAudioNoiseShapingMethod = GstAudioNoiseShapingMethod::ErrorFeedback; -pub const GST_AUDIO_NOISE_SHAPING_SIMPLE: GstAudioNoiseShapingMethod = GstAudioNoiseShapingMethod::Simple; -pub const GST_AUDIO_NOISE_SHAPING_MEDIUM: GstAudioNoiseShapingMethod = GstAudioNoiseShapingMethod::Medium; -pub const GST_AUDIO_NOISE_SHAPING_HIGH: GstAudioNoiseShapingMethod = GstAudioNoiseShapingMethod::High; +pub type GstAudioNoiseShapingMethod = c_int; +pub const GST_AUDIO_NOISE_SHAPING_NONE: GstAudioNoiseShapingMethod = 0; +pub const GST_AUDIO_NOISE_SHAPING_ERROR_FEEDBACK: GstAudioNoiseShapingMethod = 1; +pub const GST_AUDIO_NOISE_SHAPING_SIMPLE: GstAudioNoiseShapingMethod = 2; +pub const GST_AUDIO_NOISE_SHAPING_MEDIUM: GstAudioNoiseShapingMethod = 3; +pub const GST_AUDIO_NOISE_SHAPING_HIGH: GstAudioNoiseShapingMethod = 4; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioResamplerFilterInterpolation { - None = 0, - Linear = 1, - Cubic = 2, -} -pub const GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_NONE: GstAudioResamplerFilterInterpolation = GstAudioResamplerFilterInterpolation::None; -pub const GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_LINEAR: GstAudioResamplerFilterInterpolation = GstAudioResamplerFilterInterpolation::Linear; -pub const GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_CUBIC: GstAudioResamplerFilterInterpolation = GstAudioResamplerFilterInterpolation::Cubic; +pub type GstAudioResamplerFilterInterpolation = c_int; +pub const GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_NONE: GstAudioResamplerFilterInterpolation = 0; +pub const GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_LINEAR: GstAudioResamplerFilterInterpolation = 1; +pub const GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_CUBIC: GstAudioResamplerFilterInterpolation = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioResamplerFilterMode { - Interpolated = 0, - Full = 1, - Auto = 2, -} -pub const GST_AUDIO_RESAMPLER_FILTER_MODE_INTERPOLATED: GstAudioResamplerFilterMode = GstAudioResamplerFilterMode::Interpolated; -pub const GST_AUDIO_RESAMPLER_FILTER_MODE_FULL: GstAudioResamplerFilterMode = GstAudioResamplerFilterMode::Full; -pub const GST_AUDIO_RESAMPLER_FILTER_MODE_AUTO: GstAudioResamplerFilterMode = GstAudioResamplerFilterMode::Auto; +pub type GstAudioResamplerFilterMode = c_int; +pub const GST_AUDIO_RESAMPLER_FILTER_MODE_INTERPOLATED: GstAudioResamplerFilterMode = 0; +pub const GST_AUDIO_RESAMPLER_FILTER_MODE_FULL: GstAudioResamplerFilterMode = 1; +pub const GST_AUDIO_RESAMPLER_FILTER_MODE_AUTO: GstAudioResamplerFilterMode = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioResamplerMethod { - Nearest = 0, - Linear = 1, - Cubic = 2, - BlackmanNuttall = 3, - Kaiser = 4, -} -pub const GST_AUDIO_RESAMPLER_METHOD_NEAREST: GstAudioResamplerMethod = GstAudioResamplerMethod::Nearest; -pub const GST_AUDIO_RESAMPLER_METHOD_LINEAR: GstAudioResamplerMethod = GstAudioResamplerMethod::Linear; -pub const GST_AUDIO_RESAMPLER_METHOD_CUBIC: GstAudioResamplerMethod = GstAudioResamplerMethod::Cubic; -pub const GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL: GstAudioResamplerMethod = GstAudioResamplerMethod::BlackmanNuttall; -pub const GST_AUDIO_RESAMPLER_METHOD_KAISER: GstAudioResamplerMethod = GstAudioResamplerMethod::Kaiser; +pub type GstAudioResamplerMethod = c_int; +pub const GST_AUDIO_RESAMPLER_METHOD_NEAREST: GstAudioResamplerMethod = 0; +pub const GST_AUDIO_RESAMPLER_METHOD_LINEAR: GstAudioResamplerMethod = 1; +pub const GST_AUDIO_RESAMPLER_METHOD_CUBIC: GstAudioResamplerMethod = 2; +pub const GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL: GstAudioResamplerMethod = 3; +pub const GST_AUDIO_RESAMPLER_METHOD_KAISER: GstAudioResamplerMethod = 4; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioRingBufferFormatType { - Raw = 0, - MuLaw = 1, - ALaw = 2, - ImaAdpcm = 3, - Mpeg = 4, - Gsm = 5, - Iec958 = 6, - Ac3 = 7, - Eac3 = 8, - Dts = 9, - Mpeg2Aac = 10, - Mpeg4Aac = 11, - Mpeg2AacRaw = 12, - Mpeg4AacRaw = 13, - Flac = 14, -} -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Raw; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::MuLaw; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::ALaw; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IMA_ADPCM: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::ImaAdpcm; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Mpeg; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_GSM: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Gsm; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IEC958: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Iec958; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_AC3: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Ac3; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_EAC3: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Eac3; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Dts; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Mpeg2Aac; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Mpeg4Aac; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Mpeg2AacRaw; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Mpeg4AacRaw; -pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Flac; +pub type GstAudioRingBufferFormatType = c_int; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW: GstAudioRingBufferFormatType = 0; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW: GstAudioRingBufferFormatType = 1; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW: GstAudioRingBufferFormatType = 2; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IMA_ADPCM: GstAudioRingBufferFormatType = 3; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG: GstAudioRingBufferFormatType = 4; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_GSM: GstAudioRingBufferFormatType = 5; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IEC958: GstAudioRingBufferFormatType = 6; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_AC3: GstAudioRingBufferFormatType = 7; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_EAC3: GstAudioRingBufferFormatType = 8; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS: GstAudioRingBufferFormatType = 9; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC: GstAudioRingBufferFormatType = 10; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC: GstAudioRingBufferFormatType = 11; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW: GstAudioRingBufferFormatType = 12; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW: GstAudioRingBufferFormatType = 13; +pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC: GstAudioRingBufferFormatType = 14; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioRingBufferState { - Stopped = 0, - Paused = 1, - Started = 2, - Error = 3, -} -pub const GST_AUDIO_RING_BUFFER_STATE_STOPPED: GstAudioRingBufferState = GstAudioRingBufferState::Stopped; -pub const GST_AUDIO_RING_BUFFER_STATE_PAUSED: GstAudioRingBufferState = GstAudioRingBufferState::Paused; -pub const GST_AUDIO_RING_BUFFER_STATE_STARTED: GstAudioRingBufferState = GstAudioRingBufferState::Started; -pub const GST_AUDIO_RING_BUFFER_STATE_ERROR: GstAudioRingBufferState = GstAudioRingBufferState::Error; +pub type GstAudioRingBufferState = c_int; +pub const GST_AUDIO_RING_BUFFER_STATE_STOPPED: GstAudioRingBufferState = 0; +pub const GST_AUDIO_RING_BUFFER_STATE_PAUSED: GstAudioRingBufferState = 1; +pub const GST_AUDIO_RING_BUFFER_STATE_STARTED: GstAudioRingBufferState = 2; +pub const GST_AUDIO_RING_BUFFER_STATE_ERROR: GstAudioRingBufferState = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstStreamVolumeFormat { - Linear = 0, - Cubic = 1, - Db = 2, -} -pub const GST_STREAM_VOLUME_FORMAT_LINEAR: GstStreamVolumeFormat = GstStreamVolumeFormat::Linear; -pub const GST_STREAM_VOLUME_FORMAT_CUBIC: GstStreamVolumeFormat = GstStreamVolumeFormat::Cubic; -pub const GST_STREAM_VOLUME_FORMAT_DB: GstStreamVolumeFormat = GstStreamVolumeFormat::Db; +pub type GstStreamVolumeFormat = c_int; +pub const GST_STREAM_VOLUME_FORMAT_LINEAR: GstStreamVolumeFormat = 0; +pub const GST_STREAM_VOLUME_FORMAT_CUBIC: GstStreamVolumeFormat = 1; +pub const GST_STREAM_VOLUME_FORMAT_DB: GstStreamVolumeFormat = 2; // Constants pub const GST_AUDIO_CHANNELS_RANGE: *const c_char = b"(int) [ 1, max ]\0" as *const u8 as *const c_char; diff --git a/gstreamer-base-sys/src/lib.rs b/gstreamer-base-sys/src/lib.rs index c049f3ca9..c00d6d129 100644 --- a/gstreamer-base-sys/src/lib.rs +++ b/gstreamer-base-sys/src/lib.rs @@ -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 #![allow(non_camel_case_types, non_upper_case_globals)] diff --git a/gstreamer-mpegts-sys/src/lib.rs b/gstreamer-mpegts-sys/src/lib.rs index e362bb3b5..2447823e1 100644 --- a/gstreamer-mpegts-sys/src/lib.rs +++ b/gstreamer-mpegts-sys/src/lib.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (b7c4c83) from gir-files (???) +// This file was generated by gir (94e079d) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -17,1142 +17,558 @@ use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double, use glib::{gboolean, gconstpointer, gpointer, GType, Volatile}; // Enums -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsATSCDescriptorType { - Stuffing = 128, - Ac3 = 131, - CaptionService = 134, - ContentAdvisory = 135, - ExtendedChannelName = 160, - ServiceLocation = 161, - TimeShiftedService = 162, - ComponentName = 163, - DccDepartingRequest = 168, - DccArrivingRequest = 169, - RedistributionControl = 170, - Genre = 171, - PrivateInformation = 173, - Eac3 = 204, - EnhancedSignaling = 178, - DataService = 164, - PidCount = 165, - DownloadDescriptor = 166, - MultiprotocolEncapsulation = 167, - ModuleLink = 180, - Crc32 = 181, - GroupLink = 184, -} -pub const GST_MTS_DESC_ATSC_STUFFING: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::Stuffing; -pub const GST_MTS_DESC_ATSC_AC3: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::Ac3; -pub const GST_MTS_DESC_ATSC_CAPTION_SERVICE: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::CaptionService; -pub const GST_MTS_DESC_ATSC_CONTENT_ADVISORY: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::ContentAdvisory; -pub const GST_MTS_DESC_ATSC_EXTENDED_CHANNEL_NAME: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::ExtendedChannelName; -pub const GST_MTS_DESC_ATSC_SERVICE_LOCATION: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::ServiceLocation; -pub const GST_MTS_DESC_ATSC_TIME_SHIFTED_SERVICE: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::TimeShiftedService; -pub const GST_MTS_DESC_ATSC_COMPONENT_NAME: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::ComponentName; -pub const GST_MTS_DESC_ATSC_DCC_DEPARTING_REQUEST: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::DccDepartingRequest; -pub const GST_MTS_DESC_ATSC_DCC_ARRIVING_REQUEST: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::DccArrivingRequest; -pub const GST_MTS_DESC_ATSC_REDISTRIBUTION_CONTROL: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::RedistributionControl; -pub const GST_MTS_DESC_ATSC_GENRE: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::Genre; -pub const GST_MTS_DESC_ATSC_PRIVATE_INFORMATION: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::PrivateInformation; -pub const GST_MTS_DESC_ATSC_EAC3: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::Eac3; -pub const GST_MTS_DESC_ATSC_ENHANCED_SIGNALING: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::EnhancedSignaling; -pub const GST_MTS_DESC_ATSC_DATA_SERVICE: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::DataService; -pub const GST_MTS_DESC_ATSC_PID_COUNT: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::PidCount; -pub const GST_MTS_DESC_ATSC_DOWNLOAD_DESCRIPTOR: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::DownloadDescriptor; -pub const GST_MTS_DESC_ATSC_MULTIPROTOCOL_ENCAPSULATION: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::MultiprotocolEncapsulation; -pub const GST_MTS_DESC_ATSC_MODULE_LINK: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::ModuleLink; -pub const GST_MTS_DESC_ATSC_CRC32: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::Crc32; -pub const GST_MTS_DESC_ATSC_GROUP_LINK: GstMpegtsATSCDescriptorType = GstMpegtsATSCDescriptorType::GroupLink; +pub type GstMpegtsATSCDescriptorType = c_int; +pub const GST_MTS_DESC_ATSC_STUFFING: GstMpegtsATSCDescriptorType = 128; +pub const GST_MTS_DESC_ATSC_AC3: GstMpegtsATSCDescriptorType = 131; +pub const GST_MTS_DESC_ATSC_CAPTION_SERVICE: GstMpegtsATSCDescriptorType = 134; +pub const GST_MTS_DESC_ATSC_CONTENT_ADVISORY: GstMpegtsATSCDescriptorType = 135; +pub const GST_MTS_DESC_ATSC_EXTENDED_CHANNEL_NAME: GstMpegtsATSCDescriptorType = 160; +pub const GST_MTS_DESC_ATSC_SERVICE_LOCATION: GstMpegtsATSCDescriptorType = 161; +pub const GST_MTS_DESC_ATSC_TIME_SHIFTED_SERVICE: GstMpegtsATSCDescriptorType = 162; +pub const GST_MTS_DESC_ATSC_COMPONENT_NAME: GstMpegtsATSCDescriptorType = 163; +pub const GST_MTS_DESC_ATSC_DCC_DEPARTING_REQUEST: GstMpegtsATSCDescriptorType = 168; +pub const GST_MTS_DESC_ATSC_DCC_ARRIVING_REQUEST: GstMpegtsATSCDescriptorType = 169; +pub const GST_MTS_DESC_ATSC_REDISTRIBUTION_CONTROL: GstMpegtsATSCDescriptorType = 170; +pub const GST_MTS_DESC_ATSC_GENRE: GstMpegtsATSCDescriptorType = 171; +pub const GST_MTS_DESC_ATSC_PRIVATE_INFORMATION: GstMpegtsATSCDescriptorType = 173; +pub const GST_MTS_DESC_ATSC_EAC3: GstMpegtsATSCDescriptorType = 204; +pub const GST_MTS_DESC_ATSC_ENHANCED_SIGNALING: GstMpegtsATSCDescriptorType = 178; +pub const GST_MTS_DESC_ATSC_DATA_SERVICE: GstMpegtsATSCDescriptorType = 164; +pub const GST_MTS_DESC_ATSC_PID_COUNT: GstMpegtsATSCDescriptorType = 165; +pub const GST_MTS_DESC_ATSC_DOWNLOAD_DESCRIPTOR: GstMpegtsATSCDescriptorType = 166; +pub const GST_MTS_DESC_ATSC_MULTIPROTOCOL_ENCAPSULATION: GstMpegtsATSCDescriptorType = 167; +pub const GST_MTS_DESC_ATSC_MODULE_LINK: GstMpegtsATSCDescriptorType = 180; +pub const GST_MTS_DESC_ATSC_CRC32: GstMpegtsATSCDescriptorType = 181; +pub const GST_MTS_DESC_ATSC_GROUP_LINK: GstMpegtsATSCDescriptorType = 184; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsAtscMGTTableType { - Eit0 = 256, - Eit127 = 383, - Ett0 = 512, - Ett127 = 639, -} -pub const GST_MPEGTS_ATSC_MGT_TABLE_TYPE_EIT0: GstMpegtsAtscMGTTableType = GstMpegtsAtscMGTTableType::Eit0; -pub const GST_MPEGTS_ATSC_MGT_TABLE_TYPE_EIT127: GstMpegtsAtscMGTTableType = GstMpegtsAtscMGTTableType::Eit127; -pub const GST_MPEGTS_ATSC_MGT_TABLE_TYPE_ETT0: GstMpegtsAtscMGTTableType = GstMpegtsAtscMGTTableType::Ett0; -pub const GST_MPEGTS_ATSC_MGT_TABLE_TYPE_ETT127: GstMpegtsAtscMGTTableType = GstMpegtsAtscMGTTableType::Ett127; +pub type GstMpegtsAtscMGTTableType = c_int; +pub const GST_MPEGTS_ATSC_MGT_TABLE_TYPE_EIT0: GstMpegtsAtscMGTTableType = 256; +pub const GST_MPEGTS_ATSC_MGT_TABLE_TYPE_EIT127: GstMpegtsAtscMGTTableType = 383; +pub const GST_MPEGTS_ATSC_MGT_TABLE_TYPE_ETT0: GstMpegtsAtscMGTTableType = 512; +pub const GST_MPEGTS_ATSC_MGT_TABLE_TYPE_ETT127: GstMpegtsAtscMGTTableType = 639; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsCableOuterFECScheme { - Undefined = 0, - None = 1, - Rs204188 = 2, -} -pub const GST_MPEGTS_CABLE_OUTER_FEC_UNDEFINED: GstMpegtsCableOuterFECScheme = GstMpegtsCableOuterFECScheme::Undefined; -pub const GST_MPEGTS_CABLE_OUTER_FEC_NONE: GstMpegtsCableOuterFECScheme = GstMpegtsCableOuterFECScheme::None; -pub const GST_MPEGTS_CABLE_OUTER_FEC_RS_204_188: GstMpegtsCableOuterFECScheme = GstMpegtsCableOuterFECScheme::Rs204188; +pub type GstMpegtsCableOuterFECScheme = c_int; +pub const GST_MPEGTS_CABLE_OUTER_FEC_UNDEFINED: GstMpegtsCableOuterFECScheme = 0; +pub const GST_MPEGTS_CABLE_OUTER_FEC_NONE: GstMpegtsCableOuterFECScheme = 1; +pub const GST_MPEGTS_CABLE_OUTER_FEC_RS_204_188: GstMpegtsCableOuterFECScheme = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsComponentStreamContent { - Mpeg2Video = 1, - Mpeg1Layer2Audio = 2, - TeletextOrSubtitle = 3, - Ac3 = 4, - Avc = 5, - Aac = 6, - Dts = 7, - SrmCpcm = 8, -} -pub const GST_MPEGTS_STREAM_CONTENT_MPEG2_VIDEO: GstMpegtsComponentStreamContent = GstMpegtsComponentStreamContent::Mpeg2Video; -pub const GST_MPEGTS_STREAM_CONTENT_MPEG1_LAYER2_AUDIO: GstMpegtsComponentStreamContent = GstMpegtsComponentStreamContent::Mpeg1Layer2Audio; -pub const GST_MPEGTS_STREAM_CONTENT_TELETEXT_OR_SUBTITLE: GstMpegtsComponentStreamContent = GstMpegtsComponentStreamContent::TeletextOrSubtitle; -pub const GST_MPEGTS_STREAM_CONTENT_AC_3: GstMpegtsComponentStreamContent = GstMpegtsComponentStreamContent::Ac3; -pub const GST_MPEGTS_STREAM_CONTENT_AVC: GstMpegtsComponentStreamContent = GstMpegtsComponentStreamContent::Avc; -pub const GST_MPEGTS_STREAM_CONTENT_AAC: GstMpegtsComponentStreamContent = GstMpegtsComponentStreamContent::Aac; -pub const GST_MPEGTS_STREAM_CONTENT_DTS: GstMpegtsComponentStreamContent = GstMpegtsComponentStreamContent::Dts; -pub const GST_MPEGTS_STREAM_CONTENT_SRM_CPCM: GstMpegtsComponentStreamContent = GstMpegtsComponentStreamContent::SrmCpcm; +pub type GstMpegtsComponentStreamContent = c_int; +pub const GST_MPEGTS_STREAM_CONTENT_MPEG2_VIDEO: GstMpegtsComponentStreamContent = 1; +pub const GST_MPEGTS_STREAM_CONTENT_MPEG1_LAYER2_AUDIO: GstMpegtsComponentStreamContent = 2; +pub const GST_MPEGTS_STREAM_CONTENT_TELETEXT_OR_SUBTITLE: GstMpegtsComponentStreamContent = 3; +pub const GST_MPEGTS_STREAM_CONTENT_AC_3: GstMpegtsComponentStreamContent = 4; +pub const GST_MPEGTS_STREAM_CONTENT_AVC: GstMpegtsComponentStreamContent = 5; +pub const GST_MPEGTS_STREAM_CONTENT_AAC: GstMpegtsComponentStreamContent = 6; +pub const GST_MPEGTS_STREAM_CONTENT_DTS: GstMpegtsComponentStreamContent = 7; +pub const GST_MPEGTS_STREAM_CONTENT_SRM_CPCM: GstMpegtsComponentStreamContent = 8; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsContentNibbleHi { - MovieDrama = 1, - NewsCurrentAffairs = 2, - ShowGameShow = 3, - Sports = 4, - ChildrenYouthProgram = 5, - MusicBalletDance = 6, - ArtsCulture = 7, - SocialPoliticalEconomics = 8, - EducationScienceFactual = 9, - LeisureHobbies = 10, - SpecialCharacteristics = 11, -} -pub const GST_MPEGTS_CONTENT_MOVIE_DRAMA: GstMpegtsContentNibbleHi = GstMpegtsContentNibbleHi::MovieDrama; -pub const GST_MPEGTS_CONTENT_NEWS_CURRENT_AFFAIRS: GstMpegtsContentNibbleHi = GstMpegtsContentNibbleHi::NewsCurrentAffairs; -pub const GST_MPEGTS_CONTENT_SHOW_GAME_SHOW: GstMpegtsContentNibbleHi = GstMpegtsContentNibbleHi::ShowGameShow; -pub const GST_MPEGTS_CONTENT_SPORTS: GstMpegtsContentNibbleHi = GstMpegtsContentNibbleHi::Sports; -pub const GST_MPEGTS_CONTENT_CHILDREN_YOUTH_PROGRAM: GstMpegtsContentNibbleHi = GstMpegtsContentNibbleHi::ChildrenYouthProgram; -pub const GST_MPEGTS_CONTENT_MUSIC_BALLET_DANCE: GstMpegtsContentNibbleHi = GstMpegtsContentNibbleHi::MusicBalletDance; -pub const GST_MPEGTS_CONTENT_ARTS_CULTURE: GstMpegtsContentNibbleHi = GstMpegtsContentNibbleHi::ArtsCulture; -pub const GST_MPEGTS_CONTENT_SOCIAL_POLITICAL_ECONOMICS: GstMpegtsContentNibbleHi = GstMpegtsContentNibbleHi::SocialPoliticalEconomics; -pub const GST_MPEGTS_CONTENT_EDUCATION_SCIENCE_FACTUAL: GstMpegtsContentNibbleHi = GstMpegtsContentNibbleHi::EducationScienceFactual; -pub const GST_MPEGTS_CONTENT_LEISURE_HOBBIES: GstMpegtsContentNibbleHi = GstMpegtsContentNibbleHi::LeisureHobbies; -pub const GST_MPEGTS_CONTENT_SPECIAL_CHARACTERISTICS: GstMpegtsContentNibbleHi = GstMpegtsContentNibbleHi::SpecialCharacteristics; +pub type GstMpegtsContentNibbleHi = c_int; +pub const GST_MPEGTS_CONTENT_MOVIE_DRAMA: GstMpegtsContentNibbleHi = 1; +pub const GST_MPEGTS_CONTENT_NEWS_CURRENT_AFFAIRS: GstMpegtsContentNibbleHi = 2; +pub const GST_MPEGTS_CONTENT_SHOW_GAME_SHOW: GstMpegtsContentNibbleHi = 3; +pub const GST_MPEGTS_CONTENT_SPORTS: GstMpegtsContentNibbleHi = 4; +pub const GST_MPEGTS_CONTENT_CHILDREN_YOUTH_PROGRAM: GstMpegtsContentNibbleHi = 5; +pub const GST_MPEGTS_CONTENT_MUSIC_BALLET_DANCE: GstMpegtsContentNibbleHi = 6; +pub const GST_MPEGTS_CONTENT_ARTS_CULTURE: GstMpegtsContentNibbleHi = 7; +pub const GST_MPEGTS_CONTENT_SOCIAL_POLITICAL_ECONOMICS: GstMpegtsContentNibbleHi = 8; +pub const GST_MPEGTS_CONTENT_EDUCATION_SCIENCE_FACTUAL: GstMpegtsContentNibbleHi = 9; +pub const GST_MPEGTS_CONTENT_LEISURE_HOBBIES: GstMpegtsContentNibbleHi = 10; +pub const GST_MPEGTS_CONTENT_SPECIAL_CHARACTERISTICS: GstMpegtsContentNibbleHi = 11; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsDVBCodeRate { - None = 0, - _12 = 1, - _23 = 2, - _34 = 3, - _45 = 4, - _56 = 5, - _67 = 6, - _78 = 7, - _89 = 8, - Auto = 9, - _35 = 10, - _910 = 11, - _25 = 12, -} -pub const GST_MPEGTS_FEC_NONE: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::None; -pub const GST_MPEGTS_FEC_1_2: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::_12; -pub const GST_MPEGTS_FEC_2_3: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::_23; -pub const GST_MPEGTS_FEC_3_4: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::_34; -pub const GST_MPEGTS_FEC_4_5: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::_45; -pub const GST_MPEGTS_FEC_5_6: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::_56; -pub const GST_MPEGTS_FEC_6_7: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::_67; -pub const GST_MPEGTS_FEC_7_8: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::_78; -pub const GST_MPEGTS_FEC_8_9: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::_89; -pub const GST_MPEGTS_FEC_AUTO: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::Auto; -pub const GST_MPEGTS_FEC_3_5: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::_35; -pub const GST_MPEGTS_FEC_9_10: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::_910; -pub const GST_MPEGTS_FEC_2_5: GstMpegtsDVBCodeRate = GstMpegtsDVBCodeRate::_25; +pub type GstMpegtsDVBCodeRate = c_int; +pub const GST_MPEGTS_FEC_NONE: GstMpegtsDVBCodeRate = 0; +pub const GST_MPEGTS_FEC_1_2: GstMpegtsDVBCodeRate = 1; +pub const GST_MPEGTS_FEC_2_3: GstMpegtsDVBCodeRate = 2; +pub const GST_MPEGTS_FEC_3_4: GstMpegtsDVBCodeRate = 3; +pub const GST_MPEGTS_FEC_4_5: GstMpegtsDVBCodeRate = 4; +pub const GST_MPEGTS_FEC_5_6: GstMpegtsDVBCodeRate = 5; +pub const GST_MPEGTS_FEC_6_7: GstMpegtsDVBCodeRate = 6; +pub const GST_MPEGTS_FEC_7_8: GstMpegtsDVBCodeRate = 7; +pub const GST_MPEGTS_FEC_8_9: GstMpegtsDVBCodeRate = 8; +pub const GST_MPEGTS_FEC_AUTO: GstMpegtsDVBCodeRate = 9; +pub const GST_MPEGTS_FEC_3_5: GstMpegtsDVBCodeRate = 10; +pub const GST_MPEGTS_FEC_9_10: GstMpegtsDVBCodeRate = 11; +pub const GST_MPEGTS_FEC_2_5: GstMpegtsDVBCodeRate = 12; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsDVBDescriptorType { - NetworkName = 64, - ServiceList = 65, - Stuffing = 66, - SatelliteDeliverySystem = 67, - CableDeliverySystem = 68, - VbiData = 69, - VbiTeletext = 70, - BouquetName = 71, - Service = 72, - CountryAvailability = 73, - Linkage = 74, - NvodReference = 75, - TimeShiftedService = 76, - ShortEvent = 77, - ExtendedEvent = 78, - TimeShiftedEvent = 79, - Component = 80, - Mosaic = 81, - StreamIdentifier = 82, - CaIdentifier = 83, - Content = 84, - ParentalRating = 85, - Teletext = 86, - Telephone = 87, - LocalTimeOffset = 88, - Subtitling = 89, - TerrestrialDeliverySystem = 90, - MultilingualNetworkName = 91, - MultilingualBouquetName = 92, - MultilingualServiceName = 93, - MultilingualComponent = 94, - PrivateDataSpecifier = 95, - ServiceMove = 96, - ShortSmoothingBuffer = 97, - FrequencyList = 98, - PartialTransportStream = 99, - DataBroadcast = 100, - Scrambling = 101, - DataBroadcastId = 102, - TransportStream = 103, - Dsng = 104, - Pdc = 105, - Ac3 = 106, - AncillaryData = 107, - CellList = 108, - CellFrequencyLink = 109, - AnnouncementSupport = 110, - ApplicationSignalling = 111, - AdaptationFieldData = 112, - ServiceIdentifier = 113, - ServiceAvailability = 114, - DefaultAuthority = 115, - RelatedContent = 116, - TvaId = 117, - ContentIdentifier = 118, - TimesliceFecIdentifier = 119, - EcmRepetitionRate = 120, - S2SatelliteDeliverySystem = 121, - EnhancedAc3 = 122, - Dts = 123, - Aac = 124, - XaitLocation = 125, - FtaContentManagement = 126, - Extension = 127, -} -pub const GST_MTS_DESC_DVB_NETWORK_NAME: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::NetworkName; -pub const GST_MTS_DESC_DVB_SERVICE_LIST: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::ServiceList; -pub const GST_MTS_DESC_DVB_STUFFING: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Stuffing; -pub const GST_MTS_DESC_DVB_SATELLITE_DELIVERY_SYSTEM: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::SatelliteDeliverySystem; -pub const GST_MTS_DESC_DVB_CABLE_DELIVERY_SYSTEM: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::CableDeliverySystem; -pub const GST_MTS_DESC_DVB_VBI_DATA: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::VbiData; -pub const GST_MTS_DESC_DVB_VBI_TELETEXT: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::VbiTeletext; -pub const GST_MTS_DESC_DVB_BOUQUET_NAME: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::BouquetName; -pub const GST_MTS_DESC_DVB_SERVICE: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Service; -pub const GST_MTS_DESC_DVB_COUNTRY_AVAILABILITY: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::CountryAvailability; -pub const GST_MTS_DESC_DVB_LINKAGE: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Linkage; -pub const GST_MTS_DESC_DVB_NVOD_REFERENCE: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::NvodReference; -pub const GST_MTS_DESC_DVB_TIME_SHIFTED_SERVICE: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::TimeShiftedService; -pub const GST_MTS_DESC_DVB_SHORT_EVENT: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::ShortEvent; -pub const GST_MTS_DESC_DVB_EXTENDED_EVENT: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::ExtendedEvent; -pub const GST_MTS_DESC_DVB_TIME_SHIFTED_EVENT: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::TimeShiftedEvent; -pub const GST_MTS_DESC_DVB_COMPONENT: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Component; -pub const GST_MTS_DESC_DVB_MOSAIC: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Mosaic; -pub const GST_MTS_DESC_DVB_STREAM_IDENTIFIER: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::StreamIdentifier; -pub const GST_MTS_DESC_DVB_CA_IDENTIFIER: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::CaIdentifier; -pub const GST_MTS_DESC_DVB_CONTENT: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Content; -pub const GST_MTS_DESC_DVB_PARENTAL_RATING: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::ParentalRating; -pub const GST_MTS_DESC_DVB_TELETEXT: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Teletext; -pub const GST_MTS_DESC_DVB_TELEPHONE: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Telephone; -pub const GST_MTS_DESC_DVB_LOCAL_TIME_OFFSET: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::LocalTimeOffset; -pub const GST_MTS_DESC_DVB_SUBTITLING: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Subtitling; -pub const GST_MTS_DESC_DVB_TERRESTRIAL_DELIVERY_SYSTEM: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::TerrestrialDeliverySystem; -pub const GST_MTS_DESC_DVB_MULTILINGUAL_NETWORK_NAME: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::MultilingualNetworkName; -pub const GST_MTS_DESC_DVB_MULTILINGUAL_BOUQUET_NAME: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::MultilingualBouquetName; -pub const GST_MTS_DESC_DVB_MULTILINGUAL_SERVICE_NAME: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::MultilingualServiceName; -pub const GST_MTS_DESC_DVB_MULTILINGUAL_COMPONENT: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::MultilingualComponent; -pub const GST_MTS_DESC_DVB_PRIVATE_DATA_SPECIFIER: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::PrivateDataSpecifier; -pub const GST_MTS_DESC_DVB_SERVICE_MOVE: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::ServiceMove; -pub const GST_MTS_DESC_DVB_SHORT_SMOOTHING_BUFFER: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::ShortSmoothingBuffer; -pub const GST_MTS_DESC_DVB_FREQUENCY_LIST: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::FrequencyList; -pub const GST_MTS_DESC_DVB_PARTIAL_TRANSPORT_STREAM: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::PartialTransportStream; -pub const GST_MTS_DESC_DVB_DATA_BROADCAST: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::DataBroadcast; -pub const GST_MTS_DESC_DVB_SCRAMBLING: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Scrambling; -pub const GST_MTS_DESC_DVB_DATA_BROADCAST_ID: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::DataBroadcastId; -pub const GST_MTS_DESC_DVB_TRANSPORT_STREAM: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::TransportStream; -pub const GST_MTS_DESC_DVB_DSNG: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Dsng; -pub const GST_MTS_DESC_DVB_PDC: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Pdc; -pub const GST_MTS_DESC_DVB_AC3: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Ac3; -pub const GST_MTS_DESC_DVB_ANCILLARY_DATA: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::AncillaryData; -pub const GST_MTS_DESC_DVB_CELL_LIST: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::CellList; -pub const GST_MTS_DESC_DVB_CELL_FREQUENCY_LINK: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::CellFrequencyLink; -pub const GST_MTS_DESC_DVB_ANNOUNCEMENT_SUPPORT: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::AnnouncementSupport; -pub const GST_MTS_DESC_DVB_APPLICATION_SIGNALLING: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::ApplicationSignalling; -pub const GST_MTS_DESC_DVB_ADAPTATION_FIELD_DATA: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::AdaptationFieldData; -pub const GST_MTS_DESC_DVB_SERVICE_IDENTIFIER: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::ServiceIdentifier; -pub const GST_MTS_DESC_DVB_SERVICE_AVAILABILITY: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::ServiceAvailability; -pub const GST_MTS_DESC_DVB_DEFAULT_AUTHORITY: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::DefaultAuthority; -pub const GST_MTS_DESC_DVB_RELATED_CONTENT: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::RelatedContent; -pub const GST_MTS_DESC_DVB_TVA_ID: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::TvaId; -pub const GST_MTS_DESC_DVB_CONTENT_IDENTIFIER: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::ContentIdentifier; -pub const GST_MTS_DESC_DVB_TIMESLICE_FEC_IDENTIFIER: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::TimesliceFecIdentifier; -pub const GST_MTS_DESC_DVB_ECM_REPETITION_RATE: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::EcmRepetitionRate; -pub const GST_MTS_DESC_DVB_S2_SATELLITE_DELIVERY_SYSTEM: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::S2SatelliteDeliverySystem; -pub const GST_MTS_DESC_DVB_ENHANCED_AC3: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::EnhancedAc3; -pub const GST_MTS_DESC_DVB_DTS: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Dts; -pub const GST_MTS_DESC_DVB_AAC: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Aac; -pub const GST_MTS_DESC_DVB_XAIT_LOCATION: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::XaitLocation; -pub const GST_MTS_DESC_DVB_FTA_CONTENT_MANAGEMENT: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::FtaContentManagement; -pub const GST_MTS_DESC_DVB_EXTENSION: GstMpegtsDVBDescriptorType = GstMpegtsDVBDescriptorType::Extension; +pub type GstMpegtsDVBDescriptorType = c_int; +pub const GST_MTS_DESC_DVB_NETWORK_NAME: GstMpegtsDVBDescriptorType = 64; +pub const GST_MTS_DESC_DVB_SERVICE_LIST: GstMpegtsDVBDescriptorType = 65; +pub const GST_MTS_DESC_DVB_STUFFING: GstMpegtsDVBDescriptorType = 66; +pub const GST_MTS_DESC_DVB_SATELLITE_DELIVERY_SYSTEM: GstMpegtsDVBDescriptorType = 67; +pub const GST_MTS_DESC_DVB_CABLE_DELIVERY_SYSTEM: GstMpegtsDVBDescriptorType = 68; +pub const GST_MTS_DESC_DVB_VBI_DATA: GstMpegtsDVBDescriptorType = 69; +pub const GST_MTS_DESC_DVB_VBI_TELETEXT: GstMpegtsDVBDescriptorType = 70; +pub const GST_MTS_DESC_DVB_BOUQUET_NAME: GstMpegtsDVBDescriptorType = 71; +pub const GST_MTS_DESC_DVB_SERVICE: GstMpegtsDVBDescriptorType = 72; +pub const GST_MTS_DESC_DVB_COUNTRY_AVAILABILITY: GstMpegtsDVBDescriptorType = 73; +pub const GST_MTS_DESC_DVB_LINKAGE: GstMpegtsDVBDescriptorType = 74; +pub const GST_MTS_DESC_DVB_NVOD_REFERENCE: GstMpegtsDVBDescriptorType = 75; +pub const GST_MTS_DESC_DVB_TIME_SHIFTED_SERVICE: GstMpegtsDVBDescriptorType = 76; +pub const GST_MTS_DESC_DVB_SHORT_EVENT: GstMpegtsDVBDescriptorType = 77; +pub const GST_MTS_DESC_DVB_EXTENDED_EVENT: GstMpegtsDVBDescriptorType = 78; +pub const GST_MTS_DESC_DVB_TIME_SHIFTED_EVENT: GstMpegtsDVBDescriptorType = 79; +pub const GST_MTS_DESC_DVB_COMPONENT: GstMpegtsDVBDescriptorType = 80; +pub const GST_MTS_DESC_DVB_MOSAIC: GstMpegtsDVBDescriptorType = 81; +pub const GST_MTS_DESC_DVB_STREAM_IDENTIFIER: GstMpegtsDVBDescriptorType = 82; +pub const GST_MTS_DESC_DVB_CA_IDENTIFIER: GstMpegtsDVBDescriptorType = 83; +pub const GST_MTS_DESC_DVB_CONTENT: GstMpegtsDVBDescriptorType = 84; +pub const GST_MTS_DESC_DVB_PARENTAL_RATING: GstMpegtsDVBDescriptorType = 85; +pub const GST_MTS_DESC_DVB_TELETEXT: GstMpegtsDVBDescriptorType = 86; +pub const GST_MTS_DESC_DVB_TELEPHONE: GstMpegtsDVBDescriptorType = 87; +pub const GST_MTS_DESC_DVB_LOCAL_TIME_OFFSET: GstMpegtsDVBDescriptorType = 88; +pub const GST_MTS_DESC_DVB_SUBTITLING: GstMpegtsDVBDescriptorType = 89; +pub const GST_MTS_DESC_DVB_TERRESTRIAL_DELIVERY_SYSTEM: GstMpegtsDVBDescriptorType = 90; +pub const GST_MTS_DESC_DVB_MULTILINGUAL_NETWORK_NAME: GstMpegtsDVBDescriptorType = 91; +pub const GST_MTS_DESC_DVB_MULTILINGUAL_BOUQUET_NAME: GstMpegtsDVBDescriptorType = 92; +pub const GST_MTS_DESC_DVB_MULTILINGUAL_SERVICE_NAME: GstMpegtsDVBDescriptorType = 93; +pub const GST_MTS_DESC_DVB_MULTILINGUAL_COMPONENT: GstMpegtsDVBDescriptorType = 94; +pub const GST_MTS_DESC_DVB_PRIVATE_DATA_SPECIFIER: GstMpegtsDVBDescriptorType = 95; +pub const GST_MTS_DESC_DVB_SERVICE_MOVE: GstMpegtsDVBDescriptorType = 96; +pub const GST_MTS_DESC_DVB_SHORT_SMOOTHING_BUFFER: GstMpegtsDVBDescriptorType = 97; +pub const GST_MTS_DESC_DVB_FREQUENCY_LIST: GstMpegtsDVBDescriptorType = 98; +pub const GST_MTS_DESC_DVB_PARTIAL_TRANSPORT_STREAM: GstMpegtsDVBDescriptorType = 99; +pub const GST_MTS_DESC_DVB_DATA_BROADCAST: GstMpegtsDVBDescriptorType = 100; +pub const GST_MTS_DESC_DVB_SCRAMBLING: GstMpegtsDVBDescriptorType = 101; +pub const GST_MTS_DESC_DVB_DATA_BROADCAST_ID: GstMpegtsDVBDescriptorType = 102; +pub const GST_MTS_DESC_DVB_TRANSPORT_STREAM: GstMpegtsDVBDescriptorType = 103; +pub const GST_MTS_DESC_DVB_DSNG: GstMpegtsDVBDescriptorType = 104; +pub const GST_MTS_DESC_DVB_PDC: GstMpegtsDVBDescriptorType = 105; +pub const GST_MTS_DESC_DVB_AC3: GstMpegtsDVBDescriptorType = 106; +pub const GST_MTS_DESC_DVB_ANCILLARY_DATA: GstMpegtsDVBDescriptorType = 107; +pub const GST_MTS_DESC_DVB_CELL_LIST: GstMpegtsDVBDescriptorType = 108; +pub const GST_MTS_DESC_DVB_CELL_FREQUENCY_LINK: GstMpegtsDVBDescriptorType = 109; +pub const GST_MTS_DESC_DVB_ANNOUNCEMENT_SUPPORT: GstMpegtsDVBDescriptorType = 110; +pub const GST_MTS_DESC_DVB_APPLICATION_SIGNALLING: GstMpegtsDVBDescriptorType = 111; +pub const GST_MTS_DESC_DVB_ADAPTATION_FIELD_DATA: GstMpegtsDVBDescriptorType = 112; +pub const GST_MTS_DESC_DVB_SERVICE_IDENTIFIER: GstMpegtsDVBDescriptorType = 113; +pub const GST_MTS_DESC_DVB_SERVICE_AVAILABILITY: GstMpegtsDVBDescriptorType = 114; +pub const GST_MTS_DESC_DVB_DEFAULT_AUTHORITY: GstMpegtsDVBDescriptorType = 115; +pub const GST_MTS_DESC_DVB_RELATED_CONTENT: GstMpegtsDVBDescriptorType = 116; +pub const GST_MTS_DESC_DVB_TVA_ID: GstMpegtsDVBDescriptorType = 117; +pub const GST_MTS_DESC_DVB_CONTENT_IDENTIFIER: GstMpegtsDVBDescriptorType = 118; +pub const GST_MTS_DESC_DVB_TIMESLICE_FEC_IDENTIFIER: GstMpegtsDVBDescriptorType = 119; +pub const GST_MTS_DESC_DVB_ECM_REPETITION_RATE: GstMpegtsDVBDescriptorType = 120; +pub const GST_MTS_DESC_DVB_S2_SATELLITE_DELIVERY_SYSTEM: GstMpegtsDVBDescriptorType = 121; +pub const GST_MTS_DESC_DVB_ENHANCED_AC3: GstMpegtsDVBDescriptorType = 122; +pub const GST_MTS_DESC_DVB_DTS: GstMpegtsDVBDescriptorType = 123; +pub const GST_MTS_DESC_DVB_AAC: GstMpegtsDVBDescriptorType = 124; +pub const GST_MTS_DESC_DVB_XAIT_LOCATION: GstMpegtsDVBDescriptorType = 125; +pub const GST_MTS_DESC_DVB_FTA_CONTENT_MANAGEMENT: GstMpegtsDVBDescriptorType = 126; +pub const GST_MTS_DESC_DVB_EXTENSION: GstMpegtsDVBDescriptorType = 127; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsDVBExtendedDescriptorType { - ImageIcon = 0, - CpcmDeliverySignalling = 1, - Cp = 2, - CpIdentifier = 3, - T2DeliverySystem = 4, - ShDeliverySystem = 5, - SupplementaryAudio = 6, - NetworkChangeNotify = 7, - Message = 8, - TargetRegion = 9, - TargetRegionName = 10, - ServiceRelocated = 11, - XaitPid = 12, - C2DeliverySystem = 13, - DtsHdAudioStream = 14, - DtsNeutral = 15, - VideoDepthRange = 16, - T2mi = 17, - UriLinkage = 19, -} -pub const GST_MTS_DESC_EXT_DVB_IMAGE_ICON: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::ImageIcon; -pub const GST_MTS_DESC_EXT_DVB_CPCM_DELIVERY_SIGNALLING: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::CpcmDeliverySignalling; -pub const GST_MTS_DESC_EXT_DVB_CP: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::Cp; -pub const GST_MTS_DESC_EXT_DVB_CP_IDENTIFIER: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::CpIdentifier; -pub const GST_MTS_DESC_EXT_DVB_T2_DELIVERY_SYSTEM: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::T2DeliverySystem; -pub const GST_MTS_DESC_EXT_DVB_SH_DELIVERY_SYSTEM: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::ShDeliverySystem; -pub const GST_MTS_DESC_EXT_DVB_SUPPLEMENTARY_AUDIO: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::SupplementaryAudio; -pub const GST_MTS_DESC_EXT_DVB_NETWORK_CHANGE_NOTIFY: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::NetworkChangeNotify; -pub const GST_MTS_DESC_EXT_DVB_MESSAGE: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::Message; -pub const GST_MTS_DESC_EXT_DVB_TARGET_REGION: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::TargetRegion; -pub const GST_MTS_DESC_EXT_DVB_TARGET_REGION_NAME: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::TargetRegionName; -pub const GST_MTS_DESC_EXT_DVB_SERVICE_RELOCATED: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::ServiceRelocated; -pub const GST_MTS_DESC_EXT_DVB_XAIT_PID: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::XaitPid; -pub const GST_MTS_DESC_EXT_DVB_C2_DELIVERY_SYSTEM: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::C2DeliverySystem; -pub const GST_MTS_DESC_EXT_DVB_DTS_HD_AUDIO_STREAM: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::DtsHdAudioStream; -pub const GST_MTS_DESC_EXT_DVB_DTS_NEUTRAL: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::DtsNeutral; -pub const GST_MTS_DESC_EXT_DVB_VIDEO_DEPTH_RANGE: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::VideoDepthRange; -pub const GST_MTS_DESC_EXT_DVB_T2MI: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::T2mi; -pub const GST_MTS_DESC_EXT_DVB_URI_LINKAGE: GstMpegtsDVBExtendedDescriptorType = GstMpegtsDVBExtendedDescriptorType::UriLinkage; +pub type GstMpegtsDVBExtendedDescriptorType = c_int; +pub const GST_MTS_DESC_EXT_DVB_IMAGE_ICON: GstMpegtsDVBExtendedDescriptorType = 0; +pub const GST_MTS_DESC_EXT_DVB_CPCM_DELIVERY_SIGNALLING: GstMpegtsDVBExtendedDescriptorType = 1; +pub const GST_MTS_DESC_EXT_DVB_CP: GstMpegtsDVBExtendedDescriptorType = 2; +pub const GST_MTS_DESC_EXT_DVB_CP_IDENTIFIER: GstMpegtsDVBExtendedDescriptorType = 3; +pub const GST_MTS_DESC_EXT_DVB_T2_DELIVERY_SYSTEM: GstMpegtsDVBExtendedDescriptorType = 4; +pub const GST_MTS_DESC_EXT_DVB_SH_DELIVERY_SYSTEM: GstMpegtsDVBExtendedDescriptorType = 5; +pub const GST_MTS_DESC_EXT_DVB_SUPPLEMENTARY_AUDIO: GstMpegtsDVBExtendedDescriptorType = 6; +pub const GST_MTS_DESC_EXT_DVB_NETWORK_CHANGE_NOTIFY: GstMpegtsDVBExtendedDescriptorType = 7; +pub const GST_MTS_DESC_EXT_DVB_MESSAGE: GstMpegtsDVBExtendedDescriptorType = 8; +pub const GST_MTS_DESC_EXT_DVB_TARGET_REGION: GstMpegtsDVBExtendedDescriptorType = 9; +pub const GST_MTS_DESC_EXT_DVB_TARGET_REGION_NAME: GstMpegtsDVBExtendedDescriptorType = 10; +pub const GST_MTS_DESC_EXT_DVB_SERVICE_RELOCATED: GstMpegtsDVBExtendedDescriptorType = 11; +pub const GST_MTS_DESC_EXT_DVB_XAIT_PID: GstMpegtsDVBExtendedDescriptorType = 12; +pub const GST_MTS_DESC_EXT_DVB_C2_DELIVERY_SYSTEM: GstMpegtsDVBExtendedDescriptorType = 13; +pub const GST_MTS_DESC_EXT_DVB_DTS_HD_AUDIO_STREAM: GstMpegtsDVBExtendedDescriptorType = 14; +pub const GST_MTS_DESC_EXT_DVB_DTS_NEUTRAL: GstMpegtsDVBExtendedDescriptorType = 15; +pub const GST_MTS_DESC_EXT_DVB_VIDEO_DEPTH_RANGE: GstMpegtsDVBExtendedDescriptorType = 16; +pub const GST_MTS_DESC_EXT_DVB_T2MI: GstMpegtsDVBExtendedDescriptorType = 17; +pub const GST_MTS_DESC_EXT_DVB_URI_LINKAGE: GstMpegtsDVBExtendedDescriptorType = 19; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsDVBLinkageHandOverType { - Reserved = 0, - Identical = 1, - LocalVariation = 2, - Associated = 3, -} -pub const GST_MPEGTS_DVB_LINKAGE_HAND_OVER_RESERVED: GstMpegtsDVBLinkageHandOverType = GstMpegtsDVBLinkageHandOverType::Reserved; -pub const GST_MPEGTS_DVB_LINKAGE_HAND_OVER_IDENTICAL: GstMpegtsDVBLinkageHandOverType = GstMpegtsDVBLinkageHandOverType::Identical; -pub const GST_MPEGTS_DVB_LINKAGE_HAND_OVER_LOCAL_VARIATION: GstMpegtsDVBLinkageHandOverType = GstMpegtsDVBLinkageHandOverType::LocalVariation; -pub const GST_MPEGTS_DVB_LINKAGE_HAND_OVER_ASSOCIATED: GstMpegtsDVBLinkageHandOverType = GstMpegtsDVBLinkageHandOverType::Associated; +pub type GstMpegtsDVBLinkageHandOverType = c_int; +pub const GST_MPEGTS_DVB_LINKAGE_HAND_OVER_RESERVED: GstMpegtsDVBLinkageHandOverType = 0; +pub const GST_MPEGTS_DVB_LINKAGE_HAND_OVER_IDENTICAL: GstMpegtsDVBLinkageHandOverType = 1; +pub const GST_MPEGTS_DVB_LINKAGE_HAND_OVER_LOCAL_VARIATION: GstMpegtsDVBLinkageHandOverType = 2; +pub const GST_MPEGTS_DVB_LINKAGE_HAND_OVER_ASSOCIATED: GstMpegtsDVBLinkageHandOverType = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsDVBLinkageType { - Reserved00 = 0, - Information = 1, - Epg = 2, - CaReplacement = 3, - TsContainingCompleteSi = 4, - ServiceReplacement = 5, - DataBroadcast = 6, - RcsMap = 7, - MobileHandOver = 8, - SystemSoftwareUpdate = 9, - TsContainingSsu = 10, - IpMacNotification = 11, - TsContainingInt = 12, - Event = 13, - ExtendedEvent = 14, -} -pub const GST_MPEGTS_DVB_LINKAGE_RESERVED_00: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::Reserved00; -pub const GST_MPEGTS_DVB_LINKAGE_INFORMATION: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::Information; -pub const GST_MPEGTS_DVB_LINKAGE_EPG: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::Epg; -pub const GST_MPEGTS_DVB_LINKAGE_CA_REPLACEMENT: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::CaReplacement; -pub const GST_MPEGTS_DVB_LINKAGE_TS_CONTAINING_COMPLETE_SI: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::TsContainingCompleteSi; -pub const GST_MPEGTS_DVB_LINKAGE_SERVICE_REPLACEMENT: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::ServiceReplacement; -pub const GST_MPEGTS_DVB_LINKAGE_DATA_BROADCAST: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::DataBroadcast; -pub const GST_MPEGTS_DVB_LINKAGE_RCS_MAP: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::RcsMap; -pub const GST_MPEGTS_DVB_LINKAGE_MOBILE_HAND_OVER: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::MobileHandOver; -pub const GST_MPEGTS_DVB_LINKAGE_SYSTEM_SOFTWARE_UPDATE: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::SystemSoftwareUpdate; -pub const GST_MPEGTS_DVB_LINKAGE_TS_CONTAINING_SSU: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::TsContainingSsu; -pub const GST_MPEGTS_DVB_LINKAGE_IP_MAC_NOTIFICATION: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::IpMacNotification; -pub const GST_MPEGTS_DVB_LINKAGE_TS_CONTAINING_INT: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::TsContainingInt; -pub const GST_MPEGTS_DVB_LINKAGE_EVENT: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::Event; -pub const GST_MPEGTS_DVB_LINKAGE_EXTENDED_EVENT: GstMpegtsDVBLinkageType = GstMpegtsDVBLinkageType::ExtendedEvent; +pub type GstMpegtsDVBLinkageType = c_int; +pub const GST_MPEGTS_DVB_LINKAGE_RESERVED_00: GstMpegtsDVBLinkageType = 0; +pub const GST_MPEGTS_DVB_LINKAGE_INFORMATION: GstMpegtsDVBLinkageType = 1; +pub const GST_MPEGTS_DVB_LINKAGE_EPG: GstMpegtsDVBLinkageType = 2; +pub const GST_MPEGTS_DVB_LINKAGE_CA_REPLACEMENT: GstMpegtsDVBLinkageType = 3; +pub const GST_MPEGTS_DVB_LINKAGE_TS_CONTAINING_COMPLETE_SI: GstMpegtsDVBLinkageType = 4; +pub const GST_MPEGTS_DVB_LINKAGE_SERVICE_REPLACEMENT: GstMpegtsDVBLinkageType = 5; +pub const GST_MPEGTS_DVB_LINKAGE_DATA_BROADCAST: GstMpegtsDVBLinkageType = 6; +pub const GST_MPEGTS_DVB_LINKAGE_RCS_MAP: GstMpegtsDVBLinkageType = 7; +pub const GST_MPEGTS_DVB_LINKAGE_MOBILE_HAND_OVER: GstMpegtsDVBLinkageType = 8; +pub const GST_MPEGTS_DVB_LINKAGE_SYSTEM_SOFTWARE_UPDATE: GstMpegtsDVBLinkageType = 9; +pub const GST_MPEGTS_DVB_LINKAGE_TS_CONTAINING_SSU: GstMpegtsDVBLinkageType = 10; +pub const GST_MPEGTS_DVB_LINKAGE_IP_MAC_NOTIFICATION: GstMpegtsDVBLinkageType = 11; +pub const GST_MPEGTS_DVB_LINKAGE_TS_CONTAINING_INT: GstMpegtsDVBLinkageType = 12; +pub const GST_MPEGTS_DVB_LINKAGE_EVENT: GstMpegtsDVBLinkageType = 13; +pub const GST_MPEGTS_DVB_LINKAGE_EXTENDED_EVENT: GstMpegtsDVBLinkageType = 14; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsDVBScramblingModeType { - Reserved = 0, - Csa1 = 1, - Csa2 = 2, - Csa3Standard = 3, - Csa3MinimalEnhanced = 4, - Csa3FullEnhanced = 5, - Cissa = 16, - Atis0 = 112, - AtisF = 127, -} -pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_RESERVED: GstMpegtsDVBScramblingModeType = GstMpegtsDVBScramblingModeType::Reserved; -pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_CSA1: GstMpegtsDVBScramblingModeType = GstMpegtsDVBScramblingModeType::Csa1; -pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_CSA2: GstMpegtsDVBScramblingModeType = GstMpegtsDVBScramblingModeType::Csa2; -pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_CSA3_STANDARD: GstMpegtsDVBScramblingModeType = GstMpegtsDVBScramblingModeType::Csa3Standard; -pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_CSA3_MINIMAL_ENHANCED: GstMpegtsDVBScramblingModeType = GstMpegtsDVBScramblingModeType::Csa3MinimalEnhanced; -pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_CSA3_FULL_ENHANCED: GstMpegtsDVBScramblingModeType = GstMpegtsDVBScramblingModeType::Csa3FullEnhanced; -pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_CISSA: GstMpegtsDVBScramblingModeType = GstMpegtsDVBScramblingModeType::Cissa; -pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_ATIS_0: GstMpegtsDVBScramblingModeType = GstMpegtsDVBScramblingModeType::Atis0; -pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_ATIS_F: GstMpegtsDVBScramblingModeType = GstMpegtsDVBScramblingModeType::AtisF; +pub type GstMpegtsDVBScramblingModeType = c_int; +pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_RESERVED: GstMpegtsDVBScramblingModeType = 0; +pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_CSA1: GstMpegtsDVBScramblingModeType = 1; +pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_CSA2: GstMpegtsDVBScramblingModeType = 2; +pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_CSA3_STANDARD: GstMpegtsDVBScramblingModeType = 3; +pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_CSA3_MINIMAL_ENHANCED: GstMpegtsDVBScramblingModeType = 4; +pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_CSA3_FULL_ENHANCED: GstMpegtsDVBScramblingModeType = 5; +pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_CISSA: GstMpegtsDVBScramblingModeType = 16; +pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_ATIS_0: GstMpegtsDVBScramblingModeType = 112; +pub const GST_MPEGTS_DVB_SCRAMBLING_MODE_ATIS_F: GstMpegtsDVBScramblingModeType = 127; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsDVBServiceType { - Reserved00 = 0, - DigitalTelevision = 1, - DigitalRadioSound = 2, - Teletext = 3, - NvodReference = 4, - NvodTimeShifted = 5, - Mosaic = 6, - FmRadio = 7, - DvbSrm = 8, - Reserved09 = 9, - AdvancedCodecDigitalRadioSound = 10, - AdvancedCodecMosaic = 11, - DataBroadcast = 12, - Reserved0dCommonInterface = 13, - RcsMap = 14, - RcsFls = 15, - DvbMhp = 16, - Mpeg2HdDigitalTelevision = 17, - AdvancedCodecSdDigitalTelevision = 22, - AdvancedCodecSdNvodTimeShifted = 23, - AdvancedCodecSdNvodReference = 24, - AdvancedCodecHdDigitalTelevision = 25, - AdvancedCodecHdNvodTimeShifted = 26, - AdvancedCodecHdNvodReference = 27, - AdvancedCodecStereoHdDigitalTelevision = 28, - AdvancedCodecStereoHdNvodTimeShifted = 29, - AdvancedCodecStereoHdNvodReference = 30, - ReservedFf = 31, -} -pub const GST_DVB_SERVICE_RESERVED_00: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::Reserved00; -pub const GST_DVB_SERVICE_DIGITAL_TELEVISION: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::DigitalTelevision; -pub const GST_DVB_SERVICE_DIGITAL_RADIO_SOUND: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::DigitalRadioSound; -pub const GST_DVB_SERVICE_TELETEXT: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::Teletext; -pub const GST_DVB_SERVICE_NVOD_REFERENCE: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::NvodReference; -pub const GST_DVB_SERVICE_NVOD_TIME_SHIFTED: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::NvodTimeShifted; -pub const GST_DVB_SERVICE_MOSAIC: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::Mosaic; -pub const GST_DVB_SERVICE_FM_RADIO: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::FmRadio; -pub const GST_DVB_SERVICE_DVB_SRM: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::DvbSrm; -pub const GST_DVB_SERVICE_RESERVED_09: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::Reserved09; -pub const GST_DVB_SERVICE_ADVANCED_CODEC_DIGITAL_RADIO_SOUND: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::AdvancedCodecDigitalRadioSound; -pub const GST_DVB_SERVICE_ADVANCED_CODEC_MOSAIC: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::AdvancedCodecMosaic; -pub const GST_DVB_SERVICE_DATA_BROADCAST: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::DataBroadcast; -pub const GST_DVB_SERVICE_RESERVED_0D_COMMON_INTERFACE: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::Reserved0dCommonInterface; -pub const GST_DVB_SERVICE_RCS_MAP: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::RcsMap; -pub const GST_DVB_SERVICE_RCS_FLS: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::RcsFls; -pub const GST_DVB_SERVICE_DVB_MHP: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::DvbMhp; -pub const GST_DVB_SERVICE_MPEG2_HD_DIGITAL_TELEVISION: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::Mpeg2HdDigitalTelevision; -pub const GST_DVB_SERVICE_ADVANCED_CODEC_SD_DIGITAL_TELEVISION: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::AdvancedCodecSdDigitalTelevision; -pub const GST_DVB_SERVICE_ADVANCED_CODEC_SD_NVOD_TIME_SHIFTED: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::AdvancedCodecSdNvodTimeShifted; -pub const GST_DVB_SERVICE_ADVANCED_CODEC_SD_NVOD_REFERENCE: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::AdvancedCodecSdNvodReference; -pub const GST_DVB_SERVICE_ADVANCED_CODEC_HD_DIGITAL_TELEVISION: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::AdvancedCodecHdDigitalTelevision; -pub const GST_DVB_SERVICE_ADVANCED_CODEC_HD_NVOD_TIME_SHIFTED: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::AdvancedCodecHdNvodTimeShifted; -pub const GST_DVB_SERVICE_ADVANCED_CODEC_HD_NVOD_REFERENCE: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::AdvancedCodecHdNvodReference; -pub const GST_DVB_SERVICE_ADVANCED_CODEC_STEREO_HD_DIGITAL_TELEVISION: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::AdvancedCodecStereoHdDigitalTelevision; -pub const GST_DVB_SERVICE_ADVANCED_CODEC_STEREO_HD_NVOD_TIME_SHIFTED: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::AdvancedCodecStereoHdNvodTimeShifted; -pub const GST_DVB_SERVICE_ADVANCED_CODEC_STEREO_HD_NVOD_REFERENCE: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::AdvancedCodecStereoHdNvodReference; -pub const GST_DVB_SERVICE_RESERVED_FF: GstMpegtsDVBServiceType = GstMpegtsDVBServiceType::ReservedFf; +pub type GstMpegtsDVBServiceType = c_int; +pub const GST_DVB_SERVICE_RESERVED_00: GstMpegtsDVBServiceType = 0; +pub const GST_DVB_SERVICE_DIGITAL_TELEVISION: GstMpegtsDVBServiceType = 1; +pub const GST_DVB_SERVICE_DIGITAL_RADIO_SOUND: GstMpegtsDVBServiceType = 2; +pub const GST_DVB_SERVICE_TELETEXT: GstMpegtsDVBServiceType = 3; +pub const GST_DVB_SERVICE_NVOD_REFERENCE: GstMpegtsDVBServiceType = 4; +pub const GST_DVB_SERVICE_NVOD_TIME_SHIFTED: GstMpegtsDVBServiceType = 5; +pub const GST_DVB_SERVICE_MOSAIC: GstMpegtsDVBServiceType = 6; +pub const GST_DVB_SERVICE_FM_RADIO: GstMpegtsDVBServiceType = 7; +pub const GST_DVB_SERVICE_DVB_SRM: GstMpegtsDVBServiceType = 8; +pub const GST_DVB_SERVICE_RESERVED_09: GstMpegtsDVBServiceType = 9; +pub const GST_DVB_SERVICE_ADVANCED_CODEC_DIGITAL_RADIO_SOUND: GstMpegtsDVBServiceType = 10; +pub const GST_DVB_SERVICE_ADVANCED_CODEC_MOSAIC: GstMpegtsDVBServiceType = 11; +pub const GST_DVB_SERVICE_DATA_BROADCAST: GstMpegtsDVBServiceType = 12; +pub const GST_DVB_SERVICE_RESERVED_0D_COMMON_INTERFACE: GstMpegtsDVBServiceType = 13; +pub const GST_DVB_SERVICE_RCS_MAP: GstMpegtsDVBServiceType = 14; +pub const GST_DVB_SERVICE_RCS_FLS: GstMpegtsDVBServiceType = 15; +pub const GST_DVB_SERVICE_DVB_MHP: GstMpegtsDVBServiceType = 16; +pub const GST_DVB_SERVICE_MPEG2_HD_DIGITAL_TELEVISION: GstMpegtsDVBServiceType = 17; +pub const GST_DVB_SERVICE_ADVANCED_CODEC_SD_DIGITAL_TELEVISION: GstMpegtsDVBServiceType = 22; +pub const GST_DVB_SERVICE_ADVANCED_CODEC_SD_NVOD_TIME_SHIFTED: GstMpegtsDVBServiceType = 23; +pub const GST_DVB_SERVICE_ADVANCED_CODEC_SD_NVOD_REFERENCE: GstMpegtsDVBServiceType = 24; +pub const GST_DVB_SERVICE_ADVANCED_CODEC_HD_DIGITAL_TELEVISION: GstMpegtsDVBServiceType = 25; +pub const GST_DVB_SERVICE_ADVANCED_CODEC_HD_NVOD_TIME_SHIFTED: GstMpegtsDVBServiceType = 26; +pub const GST_DVB_SERVICE_ADVANCED_CODEC_HD_NVOD_REFERENCE: GstMpegtsDVBServiceType = 27; +pub const GST_DVB_SERVICE_ADVANCED_CODEC_STEREO_HD_DIGITAL_TELEVISION: GstMpegtsDVBServiceType = 28; +pub const GST_DVB_SERVICE_ADVANCED_CODEC_STEREO_HD_NVOD_TIME_SHIFTED: GstMpegtsDVBServiceType = 29; +pub const GST_DVB_SERVICE_ADVANCED_CODEC_STEREO_HD_NVOD_REFERENCE: GstMpegtsDVBServiceType = 30; +pub const GST_DVB_SERVICE_RESERVED_FF: GstMpegtsDVBServiceType = 31; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsDVBTeletextType { - NitialPage = 1, - UbtitlePage = 2, - DditionalInfoPage = 3, - RogrammeSchedulePage = 4, - EaringImpairedPage = 5, -} -pub const INITIAL_PAGE: GstMpegtsDVBTeletextType = GstMpegtsDVBTeletextType::NitialPage; -pub const SUBTITLE_PAGE: GstMpegtsDVBTeletextType = GstMpegtsDVBTeletextType::UbtitlePage; -pub const ADDITIONAL_INFO_PAGE: GstMpegtsDVBTeletextType = GstMpegtsDVBTeletextType::DditionalInfoPage; -pub const PROGRAMME_SCHEDULE_PAGE: GstMpegtsDVBTeletextType = GstMpegtsDVBTeletextType::RogrammeSchedulePage; -pub const HEARING_IMPAIRED_PAGE: GstMpegtsDVBTeletextType = GstMpegtsDVBTeletextType::EaringImpairedPage; +pub type GstMpegtsDVBTeletextType = c_int; +pub const INITIAL_PAGE: GstMpegtsDVBTeletextType = 1; +pub const SUBTITLE_PAGE: GstMpegtsDVBTeletextType = 2; +pub const ADDITIONAL_INFO_PAGE: GstMpegtsDVBTeletextType = 3; +pub const PROGRAMME_SCHEDULE_PAGE: GstMpegtsDVBTeletextType = 4; +pub const HEARING_IMPAIRED_PAGE: GstMpegtsDVBTeletextType = 5; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsDescriptorType { - Reserved00 = 0, - Reserved01 = 1, - VideoStream = 2, - AudioStream = 3, - Hierarchy = 4, - Registration = 5, - DataStreamAlignment = 6, - TargetBackgroundGrid = 7, - VideoWindow = 8, - Ca = 9, - Iso639Language = 10, - SystemClock = 11, - MultiplexBufferUtilisation = 12, - Copyright = 13, - MaximumBitrate = 14, - PrivateDataIndicator = 15, - SmoothingBuffer = 16, - Std = 17, - Ibp = 18, - DsmccCarouselIdentifier = 19, - DsmccAssociationTag = 20, - DsmccDeferredAssociationTag = 21, - DsmccNptReference = 23, - DsmccNptEndpoint = 24, - DsmccStreamMode = 25, - DsmccStreamEvent = 26, - Mpeg4Video = 27, - Mpeg4Audio = 28, - Iod = 29, - Sl = 30, - Fmc = 31, - ExternalEsId = 32, - MuxCode = 33, - FmxBufferSize = 34, - MultiplexBuffer = 35, - ContentLabeling = 36, - MetadataPointer = 37, - Metadata = 38, - MetadataStd = 39, - AvcVideo = 40, - Ipmp = 41, - AvcTimingAndHrd = 42, - Mpeg2AacAudio = 43, - FlexMuxTiming = 44, - Mpeg4Text = 45, - Mpeg4AudioExtension = 46, - AuxiliaryVideoStream = 47, - SvcExtension = 48, - MvcExtension = 49, - J2kVideo = 50, - MvcOperationPoint = 51, - Mpeg2StereoscopicVideoFormat = 52, - StereoscopicProgramInfo = 53, - StereoscopicVideoInfo = 54, -} -pub const GST_MTS_DESC_RESERVED_00: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Reserved00; -pub const GST_MTS_DESC_RESERVED_01: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Reserved01; -pub const GST_MTS_DESC_VIDEO_STREAM: GstMpegtsDescriptorType = GstMpegtsDescriptorType::VideoStream; -pub const GST_MTS_DESC_AUDIO_STREAM: GstMpegtsDescriptorType = GstMpegtsDescriptorType::AudioStream; -pub const GST_MTS_DESC_HIERARCHY: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Hierarchy; -pub const GST_MTS_DESC_REGISTRATION: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Registration; -pub const GST_MTS_DESC_DATA_STREAM_ALIGNMENT: GstMpegtsDescriptorType = GstMpegtsDescriptorType::DataStreamAlignment; -pub const GST_MTS_DESC_TARGET_BACKGROUND_GRID: GstMpegtsDescriptorType = GstMpegtsDescriptorType::TargetBackgroundGrid; -pub const GST_MTS_DESC_VIDEO_WINDOW: GstMpegtsDescriptorType = GstMpegtsDescriptorType::VideoWindow; -pub const GST_MTS_DESC_CA: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Ca; -pub const GST_MTS_DESC_ISO_639_LANGUAGE: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Iso639Language; -pub const GST_MTS_DESC_SYSTEM_CLOCK: GstMpegtsDescriptorType = GstMpegtsDescriptorType::SystemClock; -pub const GST_MTS_DESC_MULTIPLEX_BUFFER_UTILISATION: GstMpegtsDescriptorType = GstMpegtsDescriptorType::MultiplexBufferUtilisation; -pub const GST_MTS_DESC_COPYRIGHT: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Copyright; -pub const GST_MTS_DESC_MAXIMUM_BITRATE: GstMpegtsDescriptorType = GstMpegtsDescriptorType::MaximumBitrate; -pub const GST_MTS_DESC_PRIVATE_DATA_INDICATOR: GstMpegtsDescriptorType = GstMpegtsDescriptorType::PrivateDataIndicator; -pub const GST_MTS_DESC_SMOOTHING_BUFFER: GstMpegtsDescriptorType = GstMpegtsDescriptorType::SmoothingBuffer; -pub const GST_MTS_DESC_STD: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Std; -pub const GST_MTS_DESC_IBP: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Ibp; -pub const GST_MTS_DESC_DSMCC_CAROUSEL_IDENTIFIER: GstMpegtsDescriptorType = GstMpegtsDescriptorType::DsmccCarouselIdentifier; -pub const GST_MTS_DESC_DSMCC_ASSOCIATION_TAG: GstMpegtsDescriptorType = GstMpegtsDescriptorType::DsmccAssociationTag; -pub const GST_MTS_DESC_DSMCC_DEFERRED_ASSOCIATION_TAG: GstMpegtsDescriptorType = GstMpegtsDescriptorType::DsmccDeferredAssociationTag; -pub const GST_MTS_DESC_DSMCC_NPT_REFERENCE: GstMpegtsDescriptorType = GstMpegtsDescriptorType::DsmccNptReference; -pub const GST_MTS_DESC_DSMCC_NPT_ENDPOINT: GstMpegtsDescriptorType = GstMpegtsDescriptorType::DsmccNptEndpoint; -pub const GST_MTS_DESC_DSMCC_STREAM_MODE: GstMpegtsDescriptorType = GstMpegtsDescriptorType::DsmccStreamMode; -pub const GST_MTS_DESC_DSMCC_STREAM_EVENT: GstMpegtsDescriptorType = GstMpegtsDescriptorType::DsmccStreamEvent; -pub const GST_MTS_DESC_MPEG4_VIDEO: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Mpeg4Video; -pub const GST_MTS_DESC_MPEG4_AUDIO: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Mpeg4Audio; -pub const GST_MTS_DESC_IOD: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Iod; -pub const GST_MTS_DESC_SL: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Sl; -pub const GST_MTS_DESC_FMC: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Fmc; -pub const GST_MTS_DESC_EXTERNAL_ES_ID: GstMpegtsDescriptorType = GstMpegtsDescriptorType::ExternalEsId; -pub const GST_MTS_DESC_MUX_CODE: GstMpegtsDescriptorType = GstMpegtsDescriptorType::MuxCode; -pub const GST_MTS_DESC_FMX_BUFFER_SIZE: GstMpegtsDescriptorType = GstMpegtsDescriptorType::FmxBufferSize; -pub const GST_MTS_DESC_MULTIPLEX_BUFFER: GstMpegtsDescriptorType = GstMpegtsDescriptorType::MultiplexBuffer; -pub const GST_MTS_DESC_CONTENT_LABELING: GstMpegtsDescriptorType = GstMpegtsDescriptorType::ContentLabeling; -pub const GST_MTS_DESC_METADATA_POINTER: GstMpegtsDescriptorType = GstMpegtsDescriptorType::MetadataPointer; -pub const GST_MTS_DESC_METADATA: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Metadata; -pub const GST_MTS_DESC_METADATA_STD: GstMpegtsDescriptorType = GstMpegtsDescriptorType::MetadataStd; -pub const GST_MTS_DESC_AVC_VIDEO: GstMpegtsDescriptorType = GstMpegtsDescriptorType::AvcVideo; -pub const GST_MTS_DESC_IPMP: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Ipmp; -pub const GST_MTS_DESC_AVC_TIMING_AND_HRD: GstMpegtsDescriptorType = GstMpegtsDescriptorType::AvcTimingAndHrd; -pub const GST_MTS_DESC_MPEG2_AAC_AUDIO: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Mpeg2AacAudio; -pub const GST_MTS_DESC_FLEX_MUX_TIMING: GstMpegtsDescriptorType = GstMpegtsDescriptorType::FlexMuxTiming; -pub const GST_MTS_DESC_MPEG4_TEXT: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Mpeg4Text; -pub const GST_MTS_DESC_MPEG4_AUDIO_EXTENSION: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Mpeg4AudioExtension; -pub const GST_MTS_DESC_AUXILIARY_VIDEO_STREAM: GstMpegtsDescriptorType = GstMpegtsDescriptorType::AuxiliaryVideoStream; -pub const GST_MTS_DESC_SVC_EXTENSION: GstMpegtsDescriptorType = GstMpegtsDescriptorType::SvcExtension; -pub const GST_MTS_DESC_MVC_EXTENSION: GstMpegtsDescriptorType = GstMpegtsDescriptorType::MvcExtension; -pub const GST_MTS_DESC_J2K_VIDEO: GstMpegtsDescriptorType = GstMpegtsDescriptorType::J2kVideo; -pub const GST_MTS_DESC_MVC_OPERATION_POINT: GstMpegtsDescriptorType = GstMpegtsDescriptorType::MvcOperationPoint; -pub const GST_MTS_DESC_MPEG2_STEREOSCOPIC_VIDEO_FORMAT: GstMpegtsDescriptorType = GstMpegtsDescriptorType::Mpeg2StereoscopicVideoFormat; -pub const GST_MTS_DESC_STEREOSCOPIC_PROGRAM_INFO: GstMpegtsDescriptorType = GstMpegtsDescriptorType::StereoscopicProgramInfo; -pub const GST_MTS_DESC_STEREOSCOPIC_VIDEO_INFO: GstMpegtsDescriptorType = GstMpegtsDescriptorType::StereoscopicVideoInfo; +pub type GstMpegtsDescriptorType = c_int; +pub const GST_MTS_DESC_RESERVED_00: GstMpegtsDescriptorType = 0; +pub const GST_MTS_DESC_RESERVED_01: GstMpegtsDescriptorType = 1; +pub const GST_MTS_DESC_VIDEO_STREAM: GstMpegtsDescriptorType = 2; +pub const GST_MTS_DESC_AUDIO_STREAM: GstMpegtsDescriptorType = 3; +pub const GST_MTS_DESC_HIERARCHY: GstMpegtsDescriptorType = 4; +pub const GST_MTS_DESC_REGISTRATION: GstMpegtsDescriptorType = 5; +pub const GST_MTS_DESC_DATA_STREAM_ALIGNMENT: GstMpegtsDescriptorType = 6; +pub const GST_MTS_DESC_TARGET_BACKGROUND_GRID: GstMpegtsDescriptorType = 7; +pub const GST_MTS_DESC_VIDEO_WINDOW: GstMpegtsDescriptorType = 8; +pub const GST_MTS_DESC_CA: GstMpegtsDescriptorType = 9; +pub const GST_MTS_DESC_ISO_639_LANGUAGE: GstMpegtsDescriptorType = 10; +pub const GST_MTS_DESC_SYSTEM_CLOCK: GstMpegtsDescriptorType = 11; +pub const GST_MTS_DESC_MULTIPLEX_BUFFER_UTILISATION: GstMpegtsDescriptorType = 12; +pub const GST_MTS_DESC_COPYRIGHT: GstMpegtsDescriptorType = 13; +pub const GST_MTS_DESC_MAXIMUM_BITRATE: GstMpegtsDescriptorType = 14; +pub const GST_MTS_DESC_PRIVATE_DATA_INDICATOR: GstMpegtsDescriptorType = 15; +pub const GST_MTS_DESC_SMOOTHING_BUFFER: GstMpegtsDescriptorType = 16; +pub const GST_MTS_DESC_STD: GstMpegtsDescriptorType = 17; +pub const GST_MTS_DESC_IBP: GstMpegtsDescriptorType = 18; +pub const GST_MTS_DESC_DSMCC_CAROUSEL_IDENTIFIER: GstMpegtsDescriptorType = 19; +pub const GST_MTS_DESC_DSMCC_ASSOCIATION_TAG: GstMpegtsDescriptorType = 20; +pub const GST_MTS_DESC_DSMCC_DEFERRED_ASSOCIATION_TAG: GstMpegtsDescriptorType = 21; +pub const GST_MTS_DESC_DSMCC_NPT_REFERENCE: GstMpegtsDescriptorType = 23; +pub const GST_MTS_DESC_DSMCC_NPT_ENDPOINT: GstMpegtsDescriptorType = 24; +pub const GST_MTS_DESC_DSMCC_STREAM_MODE: GstMpegtsDescriptorType = 25; +pub const GST_MTS_DESC_DSMCC_STREAM_EVENT: GstMpegtsDescriptorType = 26; +pub const GST_MTS_DESC_MPEG4_VIDEO: GstMpegtsDescriptorType = 27; +pub const GST_MTS_DESC_MPEG4_AUDIO: GstMpegtsDescriptorType = 28; +pub const GST_MTS_DESC_IOD: GstMpegtsDescriptorType = 29; +pub const GST_MTS_DESC_SL: GstMpegtsDescriptorType = 30; +pub const GST_MTS_DESC_FMC: GstMpegtsDescriptorType = 31; +pub const GST_MTS_DESC_EXTERNAL_ES_ID: GstMpegtsDescriptorType = 32; +pub const GST_MTS_DESC_MUX_CODE: GstMpegtsDescriptorType = 33; +pub const GST_MTS_DESC_FMX_BUFFER_SIZE: GstMpegtsDescriptorType = 34; +pub const GST_MTS_DESC_MULTIPLEX_BUFFER: GstMpegtsDescriptorType = 35; +pub const GST_MTS_DESC_CONTENT_LABELING: GstMpegtsDescriptorType = 36; +pub const GST_MTS_DESC_METADATA_POINTER: GstMpegtsDescriptorType = 37; +pub const GST_MTS_DESC_METADATA: GstMpegtsDescriptorType = 38; +pub const GST_MTS_DESC_METADATA_STD: GstMpegtsDescriptorType = 39; +pub const GST_MTS_DESC_AVC_VIDEO: GstMpegtsDescriptorType = 40; +pub const GST_MTS_DESC_IPMP: GstMpegtsDescriptorType = 41; +pub const GST_MTS_DESC_AVC_TIMING_AND_HRD: GstMpegtsDescriptorType = 42; +pub const GST_MTS_DESC_MPEG2_AAC_AUDIO: GstMpegtsDescriptorType = 43; +pub const GST_MTS_DESC_FLEX_MUX_TIMING: GstMpegtsDescriptorType = 44; +pub const GST_MTS_DESC_MPEG4_TEXT: GstMpegtsDescriptorType = 45; +pub const GST_MTS_DESC_MPEG4_AUDIO_EXTENSION: GstMpegtsDescriptorType = 46; +pub const GST_MTS_DESC_AUXILIARY_VIDEO_STREAM: GstMpegtsDescriptorType = 47; +pub const GST_MTS_DESC_SVC_EXTENSION: GstMpegtsDescriptorType = 48; +pub const GST_MTS_DESC_MVC_EXTENSION: GstMpegtsDescriptorType = 49; +pub const GST_MTS_DESC_J2K_VIDEO: GstMpegtsDescriptorType = 50; +pub const GST_MTS_DESC_MVC_OPERATION_POINT: GstMpegtsDescriptorType = 51; +pub const GST_MTS_DESC_MPEG2_STEREOSCOPIC_VIDEO_FORMAT: GstMpegtsDescriptorType = 52; +pub const GST_MTS_DESC_STEREOSCOPIC_PROGRAM_INFO: GstMpegtsDescriptorType = 53; +pub const GST_MTS_DESC_STEREOSCOPIC_VIDEO_INFO: GstMpegtsDescriptorType = 54; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsISDBDescriptorType { - HierarchicalTransmission = 192, - DigitalCopyControl = 193, - NetworkIdentification = 194, - PartialTsTime = 195, - AudioComponent = 196, - Hyperlink = 197, - TargetRegion = 198, - DataContent = 199, - VideoDecodeControl = 200, - DownloadContent = 201, - CaEmmTs = 202, - CaContractInformation = 203, - CaService = 204, - TsInformation = 205, - ExtendedBroadcaster = 206, - LogoTransmission = 207, - BasicLocalEvent = 208, - Reference = 209, - NodeRelation = 210, - ShortNodeInformation = 211, - StcReference = 212, - Series = 213, - EventGroup = 214, - SiParameter = 215, - BroadcasterName = 216, - ComponentGroup = 217, - SiPrimeTs = 218, - BoardInformation = 219, - LdtLinkage = 220, - ConnectedTransmission = 221, - ContentAvailability = 222, - ServiceGroup = 224, -} -pub const GST_MTS_DESC_ISDB_HIERARCHICAL_TRANSMISSION: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::HierarchicalTransmission; -pub const GST_MTS_DESC_ISDB_DIGITAL_COPY_CONTROL: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::DigitalCopyControl; -pub const GST_MTS_DESC_ISDB_NETWORK_IDENTIFICATION: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::NetworkIdentification; -pub const GST_MTS_DESC_ISDB_PARTIAL_TS_TIME: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::PartialTsTime; -pub const GST_MTS_DESC_ISDB_AUDIO_COMPONENT: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::AudioComponent; -pub const GST_MTS_DESC_ISDB_HYPERLINK: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::Hyperlink; -pub const GST_MTS_DESC_ISDB_TARGET_REGION: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::TargetRegion; -pub const GST_MTS_DESC_ISDB_DATA_CONTENT: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::DataContent; -pub const GST_MTS_DESC_ISDB_VIDEO_DECODE_CONTROL: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::VideoDecodeControl; -pub const GST_MTS_DESC_ISDB_DOWNLOAD_CONTENT: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::DownloadContent; -pub const GST_MTS_DESC_ISDB_CA_EMM_TS: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::CaEmmTs; -pub const GST_MTS_DESC_ISDB_CA_CONTRACT_INFORMATION: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::CaContractInformation; -pub const GST_MTS_DESC_ISDB_CA_SERVICE: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::CaService; -pub const GST_MTS_DESC_ISDB_TS_INFORMATION: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::TsInformation; -pub const GST_MTS_DESC_ISDB_EXTENDED_BROADCASTER: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::ExtendedBroadcaster; -pub const GST_MTS_DESC_ISDB_LOGO_TRANSMISSION: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::LogoTransmission; -pub const GST_MTS_DESC_ISDB_BASIC_LOCAL_EVENT: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::BasicLocalEvent; -pub const GST_MTS_DESC_ISDB_REFERENCE: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::Reference; -pub const GST_MTS_DESC_ISDB_NODE_RELATION: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::NodeRelation; -pub const GST_MTS_DESC_ISDB_SHORT_NODE_INFORMATION: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::ShortNodeInformation; -pub const GST_MTS_DESC_ISDB_STC_REFERENCE: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::StcReference; -pub const GST_MTS_DESC_ISDB_SERIES: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::Series; -pub const GST_MTS_DESC_ISDB_EVENT_GROUP: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::EventGroup; -pub const GST_MTS_DESC_ISDB_SI_PARAMETER: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::SiParameter; -pub const GST_MTS_DESC_ISDB_BROADCASTER_NAME: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::BroadcasterName; -pub const GST_MTS_DESC_ISDB_COMPONENT_GROUP: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::ComponentGroup; -pub const GST_MTS_DESC_ISDB_SI_PRIME_TS: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::SiPrimeTs; -pub const GST_MTS_DESC_ISDB_BOARD_INFORMATION: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::BoardInformation; -pub const GST_MTS_DESC_ISDB_LDT_LINKAGE: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::LdtLinkage; -pub const GST_MTS_DESC_ISDB_CONNECTED_TRANSMISSION: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::ConnectedTransmission; -pub const GST_MTS_DESC_ISDB_CONTENT_AVAILABILITY: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::ContentAvailability; -pub const GST_MTS_DESC_ISDB_SERVICE_GROUP: GstMpegtsISDBDescriptorType = GstMpegtsISDBDescriptorType::ServiceGroup; +pub type GstMpegtsISDBDescriptorType = c_int; +pub const GST_MTS_DESC_ISDB_HIERARCHICAL_TRANSMISSION: GstMpegtsISDBDescriptorType = 192; +pub const GST_MTS_DESC_ISDB_DIGITAL_COPY_CONTROL: GstMpegtsISDBDescriptorType = 193; +pub const GST_MTS_DESC_ISDB_NETWORK_IDENTIFICATION: GstMpegtsISDBDescriptorType = 194; +pub const GST_MTS_DESC_ISDB_PARTIAL_TS_TIME: GstMpegtsISDBDescriptorType = 195; +pub const GST_MTS_DESC_ISDB_AUDIO_COMPONENT: GstMpegtsISDBDescriptorType = 196; +pub const GST_MTS_DESC_ISDB_HYPERLINK: GstMpegtsISDBDescriptorType = 197; +pub const GST_MTS_DESC_ISDB_TARGET_REGION: GstMpegtsISDBDescriptorType = 198; +pub const GST_MTS_DESC_ISDB_DATA_CONTENT: GstMpegtsISDBDescriptorType = 199; +pub const GST_MTS_DESC_ISDB_VIDEO_DECODE_CONTROL: GstMpegtsISDBDescriptorType = 200; +pub const GST_MTS_DESC_ISDB_DOWNLOAD_CONTENT: GstMpegtsISDBDescriptorType = 201; +pub const GST_MTS_DESC_ISDB_CA_EMM_TS: GstMpegtsISDBDescriptorType = 202; +pub const GST_MTS_DESC_ISDB_CA_CONTRACT_INFORMATION: GstMpegtsISDBDescriptorType = 203; +pub const GST_MTS_DESC_ISDB_CA_SERVICE: GstMpegtsISDBDescriptorType = 204; +pub const GST_MTS_DESC_ISDB_TS_INFORMATION: GstMpegtsISDBDescriptorType = 205; +pub const GST_MTS_DESC_ISDB_EXTENDED_BROADCASTER: GstMpegtsISDBDescriptorType = 206; +pub const GST_MTS_DESC_ISDB_LOGO_TRANSMISSION: GstMpegtsISDBDescriptorType = 207; +pub const GST_MTS_DESC_ISDB_BASIC_LOCAL_EVENT: GstMpegtsISDBDescriptorType = 208; +pub const GST_MTS_DESC_ISDB_REFERENCE: GstMpegtsISDBDescriptorType = 209; +pub const GST_MTS_DESC_ISDB_NODE_RELATION: GstMpegtsISDBDescriptorType = 210; +pub const GST_MTS_DESC_ISDB_SHORT_NODE_INFORMATION: GstMpegtsISDBDescriptorType = 211; +pub const GST_MTS_DESC_ISDB_STC_REFERENCE: GstMpegtsISDBDescriptorType = 212; +pub const GST_MTS_DESC_ISDB_SERIES: GstMpegtsISDBDescriptorType = 213; +pub const GST_MTS_DESC_ISDB_EVENT_GROUP: GstMpegtsISDBDescriptorType = 214; +pub const GST_MTS_DESC_ISDB_SI_PARAMETER: GstMpegtsISDBDescriptorType = 215; +pub const GST_MTS_DESC_ISDB_BROADCASTER_NAME: GstMpegtsISDBDescriptorType = 216; +pub const GST_MTS_DESC_ISDB_COMPONENT_GROUP: GstMpegtsISDBDescriptorType = 217; +pub const GST_MTS_DESC_ISDB_SI_PRIME_TS: GstMpegtsISDBDescriptorType = 218; +pub const GST_MTS_DESC_ISDB_BOARD_INFORMATION: GstMpegtsISDBDescriptorType = 219; +pub const GST_MTS_DESC_ISDB_LDT_LINKAGE: GstMpegtsISDBDescriptorType = 220; +pub const GST_MTS_DESC_ISDB_CONNECTED_TRANSMISSION: GstMpegtsISDBDescriptorType = 221; +pub const GST_MTS_DESC_ISDB_CONTENT_AVAILABILITY: GstMpegtsISDBDescriptorType = 222; +pub const GST_MTS_DESC_ISDB_SERVICE_GROUP: GstMpegtsISDBDescriptorType = 224; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsIso639AudioType { - Undefined = 0, - CleanEffects = 1, - HearingImpaired = 2, - VisualImpairedCommentary = 3, -} -pub const GST_MPEGTS_AUDIO_TYPE_UNDEFINED: GstMpegtsIso639AudioType = GstMpegtsIso639AudioType::Undefined; -pub const GST_MPEGTS_AUDIO_TYPE_CLEAN_EFFECTS: GstMpegtsIso639AudioType = GstMpegtsIso639AudioType::CleanEffects; -pub const GST_MPEGTS_AUDIO_TYPE_HEARING_IMPAIRED: GstMpegtsIso639AudioType = GstMpegtsIso639AudioType::HearingImpaired; -pub const GST_MPEGTS_AUDIO_TYPE_VISUAL_IMPAIRED_COMMENTARY: GstMpegtsIso639AudioType = GstMpegtsIso639AudioType::VisualImpairedCommentary; +pub type GstMpegtsIso639AudioType = c_int; +pub const GST_MPEGTS_AUDIO_TYPE_UNDEFINED: GstMpegtsIso639AudioType = 0; +pub const GST_MPEGTS_AUDIO_TYPE_CLEAN_EFFECTS: GstMpegtsIso639AudioType = 1; +pub const GST_MPEGTS_AUDIO_TYPE_HEARING_IMPAIRED: GstMpegtsIso639AudioType = 2; +pub const GST_MPEGTS_AUDIO_TYPE_VISUAL_IMPAIRED_COMMENTARY: GstMpegtsIso639AudioType = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsMiscDescriptorType { - Ac3AudioStream = 129, - DtgLogicalChannel = 131, -} -pub const GST_MTS_DESC_AC3_AUDIO_STREAM: GstMpegtsMiscDescriptorType = GstMpegtsMiscDescriptorType::Ac3AudioStream; -pub const GST_MTS_DESC_DTG_LOGICAL_CHANNEL: GstMpegtsMiscDescriptorType = GstMpegtsMiscDescriptorType::DtgLogicalChannel; +pub type GstMpegtsMiscDescriptorType = c_int; +pub const GST_MTS_DESC_AC3_AUDIO_STREAM: GstMpegtsMiscDescriptorType = 129; +pub const GST_MTS_DESC_DTG_LOGICAL_CHANNEL: GstMpegtsMiscDescriptorType = 131; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsModulationType { - Qpsk = 0, - Qam16 = 1, - Qam32 = 2, - Qam64 = 3, - Qam128 = 4, - Qam256 = 5, - QamAuto = 6, - Vsb8 = 7, - Vsb16 = 8, - Psk8 = 9, - Apsk16 = 10, - Apsk32 = 11, - Dqpsk = 12, - Qam4Nr = 13, - None = 14, -} -pub const GST_MPEGTS_MODULATION_QPSK: GstMpegtsModulationType = GstMpegtsModulationType::Qpsk; -pub const GST_MPEGTS_MODULATION_QAM_16: GstMpegtsModulationType = GstMpegtsModulationType::Qam16; -pub const GST_MPEGTS_MODULATION_QAM_32: GstMpegtsModulationType = GstMpegtsModulationType::Qam32; -pub const GST_MPEGTS_MODULATION_QAM_64: GstMpegtsModulationType = GstMpegtsModulationType::Qam64; -pub const GST_MPEGTS_MODULATION_QAM_128: GstMpegtsModulationType = GstMpegtsModulationType::Qam128; -pub const GST_MPEGTS_MODULATION_QAM_256: GstMpegtsModulationType = GstMpegtsModulationType::Qam256; -pub const GST_MPEGTS_MODULATION_QAM_AUTO: GstMpegtsModulationType = GstMpegtsModulationType::QamAuto; -pub const GST_MPEGTS_MODULATION_VSB_8: GstMpegtsModulationType = GstMpegtsModulationType::Vsb8; -pub const GST_MPEGTS_MODULATION_VSB_16: GstMpegtsModulationType = GstMpegtsModulationType::Vsb16; -pub const GST_MPEGTS_MODULATION_PSK_8: GstMpegtsModulationType = GstMpegtsModulationType::Psk8; -pub const GST_MPEGTS_MODULATION_APSK_16: GstMpegtsModulationType = GstMpegtsModulationType::Apsk16; -pub const GST_MPEGTS_MODULATION_APSK_32: GstMpegtsModulationType = GstMpegtsModulationType::Apsk32; -pub const GST_MPEGTS_MODULATION_DQPSK: GstMpegtsModulationType = GstMpegtsModulationType::Dqpsk; -pub const GST_MPEGTS_MODULATION_QAM_4_NR_: GstMpegtsModulationType = GstMpegtsModulationType::Qam4Nr; -pub const GST_MPEGTS_MODULATION_NONE: GstMpegtsModulationType = GstMpegtsModulationType::None; +pub type GstMpegtsModulationType = c_int; +pub const GST_MPEGTS_MODULATION_QPSK: GstMpegtsModulationType = 0; +pub const GST_MPEGTS_MODULATION_QAM_16: GstMpegtsModulationType = 1; +pub const GST_MPEGTS_MODULATION_QAM_32: GstMpegtsModulationType = 2; +pub const GST_MPEGTS_MODULATION_QAM_64: GstMpegtsModulationType = 3; +pub const GST_MPEGTS_MODULATION_QAM_128: GstMpegtsModulationType = 4; +pub const GST_MPEGTS_MODULATION_QAM_256: GstMpegtsModulationType = 5; +pub const GST_MPEGTS_MODULATION_QAM_AUTO: GstMpegtsModulationType = 6; +pub const GST_MPEGTS_MODULATION_VSB_8: GstMpegtsModulationType = 7; +pub const GST_MPEGTS_MODULATION_VSB_16: GstMpegtsModulationType = 8; +pub const GST_MPEGTS_MODULATION_PSK_8: GstMpegtsModulationType = 9; +pub const GST_MPEGTS_MODULATION_APSK_16: GstMpegtsModulationType = 10; +pub const GST_MPEGTS_MODULATION_APSK_32: GstMpegtsModulationType = 11; +pub const GST_MPEGTS_MODULATION_DQPSK: GstMpegtsModulationType = 12; +pub const GST_MPEGTS_MODULATION_QAM_4_NR_: GstMpegtsModulationType = 13; +pub const GST_MPEGTS_MODULATION_NONE: GstMpegtsModulationType = 14; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsRunningStatus { - Undefined = 0, - NotRunning = 1, - StartsInFewSeconds = 2, - Pausing = 3, - Running = 4, - OffAir = 5, -} -pub const GST_MPEGTS_RUNNING_STATUS_UNDEFINED: GstMpegtsRunningStatus = GstMpegtsRunningStatus::Undefined; -pub const GST_MPEGTS_RUNNING_STATUS_NOT_RUNNING: GstMpegtsRunningStatus = GstMpegtsRunningStatus::NotRunning; -pub const GST_MPEGTS_RUNNING_STATUS_STARTS_IN_FEW_SECONDS: GstMpegtsRunningStatus = GstMpegtsRunningStatus::StartsInFewSeconds; -pub const GST_MPEGTS_RUNNING_STATUS_PAUSING: GstMpegtsRunningStatus = GstMpegtsRunningStatus::Pausing; -pub const GST_MPEGTS_RUNNING_STATUS_RUNNING: GstMpegtsRunningStatus = GstMpegtsRunningStatus::Running; -pub const GST_MPEGTS_RUNNING_STATUS_OFF_AIR: GstMpegtsRunningStatus = GstMpegtsRunningStatus::OffAir; +pub type GstMpegtsRunningStatus = c_int; +pub const GST_MPEGTS_RUNNING_STATUS_UNDEFINED: GstMpegtsRunningStatus = 0; +pub const GST_MPEGTS_RUNNING_STATUS_NOT_RUNNING: GstMpegtsRunningStatus = 1; +pub const GST_MPEGTS_RUNNING_STATUS_STARTS_IN_FEW_SECONDS: GstMpegtsRunningStatus = 2; +pub const GST_MPEGTS_RUNNING_STATUS_PAUSING: GstMpegtsRunningStatus = 3; +pub const GST_MPEGTS_RUNNING_STATUS_RUNNING: GstMpegtsRunningStatus = 4; +pub const GST_MPEGTS_RUNNING_STATUS_OFF_AIR: GstMpegtsRunningStatus = 5; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsSatellitePolarizationType { - LinearHorizontal = 0, - LinearVertical = 1, - CircularLeft = 2, - CircularRight = 3, -} -pub const GST_MPEGTS_POLARIZATION_LINEAR_HORIZONTAL: GstMpegtsSatellitePolarizationType = GstMpegtsSatellitePolarizationType::LinearHorizontal; -pub const GST_MPEGTS_POLARIZATION_LINEAR_VERTICAL: GstMpegtsSatellitePolarizationType = GstMpegtsSatellitePolarizationType::LinearVertical; -pub const GST_MPEGTS_POLARIZATION_CIRCULAR_LEFT: GstMpegtsSatellitePolarizationType = GstMpegtsSatellitePolarizationType::CircularLeft; -pub const GST_MPEGTS_POLARIZATION_CIRCULAR_RIGHT: GstMpegtsSatellitePolarizationType = GstMpegtsSatellitePolarizationType::CircularRight; +pub type GstMpegtsSatellitePolarizationType = c_int; +pub const GST_MPEGTS_POLARIZATION_LINEAR_HORIZONTAL: GstMpegtsSatellitePolarizationType = 0; +pub const GST_MPEGTS_POLARIZATION_LINEAR_VERTICAL: GstMpegtsSatellitePolarizationType = 1; +pub const GST_MPEGTS_POLARIZATION_CIRCULAR_LEFT: GstMpegtsSatellitePolarizationType = 2; +pub const GST_MPEGTS_POLARIZATION_CIRCULAR_RIGHT: GstMpegtsSatellitePolarizationType = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsSatelliteRolloff { - _35 = 0, - _20 = 1, - _25 = 2, - Reserved = 3, - Auto = 4, -} -pub const GST_MPEGTS_ROLLOFF_35: GstMpegtsSatelliteRolloff = GstMpegtsSatelliteRolloff::_35; -pub const GST_MPEGTS_ROLLOFF_20: GstMpegtsSatelliteRolloff = GstMpegtsSatelliteRolloff::_20; -pub const GST_MPEGTS_ROLLOFF_25: GstMpegtsSatelliteRolloff = GstMpegtsSatelliteRolloff::_25; -pub const GST_MPEGTS_ROLLOFF_RESERVED: GstMpegtsSatelliteRolloff = GstMpegtsSatelliteRolloff::Reserved; -pub const GST_MPEGTS_ROLLOFF_AUTO: GstMpegtsSatelliteRolloff = GstMpegtsSatelliteRolloff::Auto; +pub type GstMpegtsSatelliteRolloff = c_int; +pub const GST_MPEGTS_ROLLOFF_35: GstMpegtsSatelliteRolloff = 0; +pub const GST_MPEGTS_ROLLOFF_20: GstMpegtsSatelliteRolloff = 1; +pub const GST_MPEGTS_ROLLOFF_25: GstMpegtsSatelliteRolloff = 2; +pub const GST_MPEGTS_ROLLOFF_RESERVED: GstMpegtsSatelliteRolloff = 3; +pub const GST_MPEGTS_ROLLOFF_AUTO: GstMpegtsSatelliteRolloff = 4; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsScteStreamType { - Subtitling = 130, - IsochData = 131, - DstNrt = 149, - DsmccDcb = 176, - Signaling = 192, - SyncData = 194, - AsyncData = 195, -} -pub const GST_MPEGTS_STREAM_TYPE_SCTE_SUBTITLING: GstMpegtsScteStreamType = GstMpegtsScteStreamType::Subtitling; -pub const GST_MPEGTS_STREAM_TYPE_SCTE_ISOCH_DATA: GstMpegtsScteStreamType = GstMpegtsScteStreamType::IsochData; -pub const GST_MPEGTS_STREAM_TYPE_SCTE_DST_NRT: GstMpegtsScteStreamType = GstMpegtsScteStreamType::DstNrt; -pub const GST_MPEGTS_STREAM_TYPE_SCTE_DSMCC_DCB: GstMpegtsScteStreamType = GstMpegtsScteStreamType::DsmccDcb; -pub const GST_MPEGTS_STREAM_TYPE_SCTE_SIGNALING: GstMpegtsScteStreamType = GstMpegtsScteStreamType::Signaling; -pub const GST_MPEGTS_STREAM_TYPE_SCTE_SYNC_DATA: GstMpegtsScteStreamType = GstMpegtsScteStreamType::SyncData; -pub const GST_MPEGTS_STREAM_TYPE_SCTE_ASYNC_DATA: GstMpegtsScteStreamType = GstMpegtsScteStreamType::AsyncData; +pub type GstMpegtsScteStreamType = c_int; +pub const GST_MPEGTS_STREAM_TYPE_SCTE_SUBTITLING: GstMpegtsScteStreamType = 130; +pub const GST_MPEGTS_STREAM_TYPE_SCTE_ISOCH_DATA: GstMpegtsScteStreamType = 131; +pub const GST_MPEGTS_STREAM_TYPE_SCTE_DST_NRT: GstMpegtsScteStreamType = 149; +pub const GST_MPEGTS_STREAM_TYPE_SCTE_DSMCC_DCB: GstMpegtsScteStreamType = 176; +pub const GST_MPEGTS_STREAM_TYPE_SCTE_SIGNALING: GstMpegtsScteStreamType = 192; +pub const GST_MPEGTS_STREAM_TYPE_SCTE_SYNC_DATA: GstMpegtsScteStreamType = 194; +pub const GST_MPEGTS_STREAM_TYPE_SCTE_ASYNC_DATA: GstMpegtsScteStreamType = 195; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsSectionATSCTableID { - MasterGuide = 199, - TerrestrialVirtualChannel = 200, - CableVirtualChannel = 201, - RatingRegion = 202, - EventInformation = 203, - ChannelOrEventExtendedText = 204, - SystemTime = 205, - DataEvent = 206, - DataService = 207, - NetworkResource = 209, - LongTermService = 210, - DirectedChannelChange = 211, - DirectedChannelChangeSectionCode = 212, - AggregateEventInformation = 214, - AggregateExtendedText = 215, - AggregateDataEvent = 217, - SatelliteVirtualChannel = 218, -} -pub const GST_MTS_TABLE_ID_ATSC_MASTER_GUIDE: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::MasterGuide; -pub const GST_MTS_TABLE_ID_ATSC_TERRESTRIAL_VIRTUAL_CHANNEL: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::TerrestrialVirtualChannel; -pub const GST_MTS_TABLE_ID_ATSC_CABLE_VIRTUAL_CHANNEL: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::CableVirtualChannel; -pub const GST_MTS_TABLE_ID_ATSC_RATING_REGION: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::RatingRegion; -pub const GST_MTS_TABLE_ID_ATSC_EVENT_INFORMATION: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::EventInformation; -pub const GST_MTS_TABLE_ID_ATSC_CHANNEL_OR_EVENT_EXTENDED_TEXT: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::ChannelOrEventExtendedText; -pub const GST_MTS_TABLE_ID_ATSC_SYSTEM_TIME: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::SystemTime; -pub const GST_MTS_TABLE_ID_ATSC_DATA_EVENT: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::DataEvent; -pub const GST_MTS_TABLE_ID_ATSC_DATA_SERVICE: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::DataService; -pub const GST_MTS_TABLE_ID_ATSC_NETWORK_RESOURCE: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::NetworkResource; -pub const GST_MTS_TABLE_ID_ATSC_LONG_TERM_SERVICE: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::LongTermService; -pub const GST_MTS_TABLE_ID_ATSC_DIRECTED_CHANNEL_CHANGE: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::DirectedChannelChange; -pub const GST_MTS_TABLE_ID_ATSC_DIRECTED_CHANNEL_CHANGE_SECTION_CODE: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::DirectedChannelChangeSectionCode; -pub const GST_MTS_TABLE_ID_ATSC_AGGREGATE_EVENT_INFORMATION: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::AggregateEventInformation; -pub const GST_MTS_TABLE_ID_ATSC_AGGREGATE_EXTENDED_TEXT: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::AggregateExtendedText; -pub const GST_MTS_TABLE_ID_ATSC_AGGREGATE_DATA_EVENT: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::AggregateDataEvent; -pub const GST_MTS_TABLE_ID_ATSC_SATELLITE_VIRTUAL_CHANNEL: GstMpegtsSectionATSCTableID = GstMpegtsSectionATSCTableID::SatelliteVirtualChannel; +pub type GstMpegtsSectionATSCTableID = c_int; +pub const GST_MTS_TABLE_ID_ATSC_MASTER_GUIDE: GstMpegtsSectionATSCTableID = 199; +pub const GST_MTS_TABLE_ID_ATSC_TERRESTRIAL_VIRTUAL_CHANNEL: GstMpegtsSectionATSCTableID = 200; +pub const GST_MTS_TABLE_ID_ATSC_CABLE_VIRTUAL_CHANNEL: GstMpegtsSectionATSCTableID = 201; +pub const GST_MTS_TABLE_ID_ATSC_RATING_REGION: GstMpegtsSectionATSCTableID = 202; +pub const GST_MTS_TABLE_ID_ATSC_EVENT_INFORMATION: GstMpegtsSectionATSCTableID = 203; +pub const GST_MTS_TABLE_ID_ATSC_CHANNEL_OR_EVENT_EXTENDED_TEXT: GstMpegtsSectionATSCTableID = 204; +pub const GST_MTS_TABLE_ID_ATSC_SYSTEM_TIME: GstMpegtsSectionATSCTableID = 205; +pub const GST_MTS_TABLE_ID_ATSC_DATA_EVENT: GstMpegtsSectionATSCTableID = 206; +pub const GST_MTS_TABLE_ID_ATSC_DATA_SERVICE: GstMpegtsSectionATSCTableID = 207; +pub const GST_MTS_TABLE_ID_ATSC_NETWORK_RESOURCE: GstMpegtsSectionATSCTableID = 209; +pub const GST_MTS_TABLE_ID_ATSC_LONG_TERM_SERVICE: GstMpegtsSectionATSCTableID = 210; +pub const GST_MTS_TABLE_ID_ATSC_DIRECTED_CHANNEL_CHANGE: GstMpegtsSectionATSCTableID = 211; +pub const GST_MTS_TABLE_ID_ATSC_DIRECTED_CHANNEL_CHANGE_SECTION_CODE: GstMpegtsSectionATSCTableID = 212; +pub const GST_MTS_TABLE_ID_ATSC_AGGREGATE_EVENT_INFORMATION: GstMpegtsSectionATSCTableID = 214; +pub const GST_MTS_TABLE_ID_ATSC_AGGREGATE_EXTENDED_TEXT: GstMpegtsSectionATSCTableID = 215; +pub const GST_MTS_TABLE_ID_ATSC_AGGREGATE_DATA_EVENT: GstMpegtsSectionATSCTableID = 217; +pub const GST_MTS_TABLE_ID_ATSC_SATELLITE_VIRTUAL_CHANNEL: GstMpegtsSectionATSCTableID = 218; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsSectionDVBTableID { - NetworkInformationActualNetwork = 64, - NetworkInformationOtherNetwork = 65, - ServiceDescriptionActualTs = 66, - ServiceDescriptionOtherTs = 70, - BouquetAssociation = 74, - EventInformationActualTsPresent = 78, - EventInformationOtherTsPresent = 79, - EventInformationActualTsSchedule1 = 80, - EventInformationActualTsScheduleN = 95, - EventInformationOtherTsSchedule1 = 96, - EventInformationOtherTsScheduleN = 111, - TimeDate = 112, - RunningStatus = 113, - Stuffing = 114, - TimeOffset = 115, - ApplicationInformationTable = 116, - Container = 117, - RelatedContent = 118, - ContentIdentifier = 119, - MpeFec = 120, - ResolutionNotification = 121, - MpeIfec = 122, - DiscontinuityInformation = 126, - SelectionInformation = 127, - CaMessageEcm0 = 128, - CaMessageEcm1 = 129, - CaMessageSystemPrivate1 = 130, - CaMessageSystemPrivateN = 143, - Sct = 160, - Fct = 161, - Tct = 162, - Spt = 163, - Cmt = 164, - Tbtp = 165, - PcrPacketPayload = 166, - TransmissionModeSupportPayload = 170, - Tim = 176, - LlFecParityDataTable = 177, -} -pub const GST_MTS_TABLE_ID_NETWORK_INFORMATION_ACTUAL_NETWORK: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::NetworkInformationActualNetwork; -pub const GST_MTS_TABLE_ID_NETWORK_INFORMATION_OTHER_NETWORK: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::NetworkInformationOtherNetwork; -pub const GST_MTS_TABLE_ID_SERVICE_DESCRIPTION_ACTUAL_TS: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::ServiceDescriptionActualTs; -pub const GST_MTS_TABLE_ID_SERVICE_DESCRIPTION_OTHER_TS: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::ServiceDescriptionOtherTs; -pub const GST_MTS_TABLE_ID_BOUQUET_ASSOCIATION: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::BouquetAssociation; -pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_PRESENT: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::EventInformationActualTsPresent; -pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_PRESENT: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::EventInformationOtherTsPresent; -pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_SCHEDULE_1: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::EventInformationActualTsSchedule1; -pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_SCHEDULE_N: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::EventInformationActualTsScheduleN; -pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_SCHEDULE_1: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::EventInformationOtherTsSchedule1; -pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_SCHEDULE_N: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::EventInformationOtherTsScheduleN; -pub const GST_MTS_TABLE_ID_TIME_DATE: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::TimeDate; -pub const GST_MTS_TABLE_ID_RUNNING_STATUS: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::RunningStatus; -pub const GST_MTS_TABLE_ID_STUFFING: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::Stuffing; -pub const GST_MTS_TABLE_ID_TIME_OFFSET: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::TimeOffset; -pub const GST_MTS_TABLE_ID_APPLICATION_INFORMATION_TABLE: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::ApplicationInformationTable; -pub const GST_MTS_TABLE_ID_CONTAINER: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::Container; -pub const GST_MTS_TABLE_ID_RELATED_CONTENT: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::RelatedContent; -pub const GST_MTS_TABLE_ID_CONTENT_IDENTIFIER: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::ContentIdentifier; -pub const GST_MTS_TABLE_ID_MPE_FEC: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::MpeFec; -pub const GST_MTS_TABLE_ID_RESOLUTION_NOTIFICATION: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::ResolutionNotification; -pub const GST_MTS_TABLE_ID_MPE_IFEC: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::MpeIfec; -pub const GST_MTS_TABLE_ID_DISCONTINUITY_INFORMATION: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::DiscontinuityInformation; -pub const GST_MTS_TABLE_ID_SELECTION_INFORMATION: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::SelectionInformation; -pub const GST_MTS_TABLE_ID_CA_MESSAGE_ECM_0: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::CaMessageEcm0; -pub const GST_MTS_TABLE_ID_CA_MESSAGE_ECM_1: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::CaMessageEcm1; -pub const GST_MTS_TABLE_ID_CA_MESSAGE_SYSTEM_PRIVATE_1: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::CaMessageSystemPrivate1; -pub const GST_MTS_TABLE_ID_CA_MESSAGE_SYSTEM_PRIVATE_N: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::CaMessageSystemPrivateN; -pub const GST_MTS_TABLE_ID_SCT: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::Sct; -pub const GST_MTS_TABLE_ID_FCT: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::Fct; -pub const GST_MTS_TABLE_ID_TCT: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::Tct; -pub const GST_MTS_TABLE_ID_SPT: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::Spt; -pub const GST_MTS_TABLE_ID_CMT: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::Cmt; -pub const GST_MTS_TABLE_ID_TBTP: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::Tbtp; -pub const GST_MTS_TABLE_ID_PCR_PACKET_PAYLOAD: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::PcrPacketPayload; -pub const GST_MTS_TABLE_ID_TRANSMISSION_MODE_SUPPORT_PAYLOAD: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::TransmissionModeSupportPayload; -pub const GST_MTS_TABLE_ID_TIM: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::Tim; -pub const GST_MTS_TABLE_ID_LL_FEC_PARITY_DATA_TABLE: GstMpegtsSectionDVBTableID = GstMpegtsSectionDVBTableID::LlFecParityDataTable; +pub type GstMpegtsSectionDVBTableID = c_int; +pub const GST_MTS_TABLE_ID_NETWORK_INFORMATION_ACTUAL_NETWORK: GstMpegtsSectionDVBTableID = 64; +pub const GST_MTS_TABLE_ID_NETWORK_INFORMATION_OTHER_NETWORK: GstMpegtsSectionDVBTableID = 65; +pub const GST_MTS_TABLE_ID_SERVICE_DESCRIPTION_ACTUAL_TS: GstMpegtsSectionDVBTableID = 66; +pub const GST_MTS_TABLE_ID_SERVICE_DESCRIPTION_OTHER_TS: GstMpegtsSectionDVBTableID = 70; +pub const GST_MTS_TABLE_ID_BOUQUET_ASSOCIATION: GstMpegtsSectionDVBTableID = 74; +pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_PRESENT: GstMpegtsSectionDVBTableID = 78; +pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_PRESENT: GstMpegtsSectionDVBTableID = 79; +pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_SCHEDULE_1: GstMpegtsSectionDVBTableID = 80; +pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_SCHEDULE_N: GstMpegtsSectionDVBTableID = 95; +pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_SCHEDULE_1: GstMpegtsSectionDVBTableID = 96; +pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_SCHEDULE_N: GstMpegtsSectionDVBTableID = 111; +pub const GST_MTS_TABLE_ID_TIME_DATE: GstMpegtsSectionDVBTableID = 112; +pub const GST_MTS_TABLE_ID_RUNNING_STATUS: GstMpegtsSectionDVBTableID = 113; +pub const GST_MTS_TABLE_ID_STUFFING: GstMpegtsSectionDVBTableID = 114; +pub const GST_MTS_TABLE_ID_TIME_OFFSET: GstMpegtsSectionDVBTableID = 115; +pub const GST_MTS_TABLE_ID_APPLICATION_INFORMATION_TABLE: GstMpegtsSectionDVBTableID = 116; +pub const GST_MTS_TABLE_ID_CONTAINER: GstMpegtsSectionDVBTableID = 117; +pub const GST_MTS_TABLE_ID_RELATED_CONTENT: GstMpegtsSectionDVBTableID = 118; +pub const GST_MTS_TABLE_ID_CONTENT_IDENTIFIER: GstMpegtsSectionDVBTableID = 119; +pub const GST_MTS_TABLE_ID_MPE_FEC: GstMpegtsSectionDVBTableID = 120; +pub const GST_MTS_TABLE_ID_RESOLUTION_NOTIFICATION: GstMpegtsSectionDVBTableID = 121; +pub const GST_MTS_TABLE_ID_MPE_IFEC: GstMpegtsSectionDVBTableID = 122; +pub const GST_MTS_TABLE_ID_DISCONTINUITY_INFORMATION: GstMpegtsSectionDVBTableID = 126; +pub const GST_MTS_TABLE_ID_SELECTION_INFORMATION: GstMpegtsSectionDVBTableID = 127; +pub const GST_MTS_TABLE_ID_CA_MESSAGE_ECM_0: GstMpegtsSectionDVBTableID = 128; +pub const GST_MTS_TABLE_ID_CA_MESSAGE_ECM_1: GstMpegtsSectionDVBTableID = 129; +pub const GST_MTS_TABLE_ID_CA_MESSAGE_SYSTEM_PRIVATE_1: GstMpegtsSectionDVBTableID = 130; +pub const GST_MTS_TABLE_ID_CA_MESSAGE_SYSTEM_PRIVATE_N: GstMpegtsSectionDVBTableID = 143; +pub const GST_MTS_TABLE_ID_SCT: GstMpegtsSectionDVBTableID = 160; +pub const GST_MTS_TABLE_ID_FCT: GstMpegtsSectionDVBTableID = 161; +pub const GST_MTS_TABLE_ID_TCT: GstMpegtsSectionDVBTableID = 162; +pub const GST_MTS_TABLE_ID_SPT: GstMpegtsSectionDVBTableID = 163; +pub const GST_MTS_TABLE_ID_CMT: GstMpegtsSectionDVBTableID = 164; +pub const GST_MTS_TABLE_ID_TBTP: GstMpegtsSectionDVBTableID = 165; +pub const GST_MTS_TABLE_ID_PCR_PACKET_PAYLOAD: GstMpegtsSectionDVBTableID = 166; +pub const GST_MTS_TABLE_ID_TRANSMISSION_MODE_SUPPORT_PAYLOAD: GstMpegtsSectionDVBTableID = 170; +pub const GST_MTS_TABLE_ID_TIM: GstMpegtsSectionDVBTableID = 176; +pub const GST_MTS_TABLE_ID_LL_FEC_PARITY_DATA_TABLE: GstMpegtsSectionDVBTableID = 177; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsSectionSCTETableID { - Eas = 216, - Ebif = 224, - Reserved = 225, - Eiss = 226, - Dii = 227, - Ddb = 228, - Splice = 252, -} -pub const GST_MTS_TABLE_ID_SCTE_EAS: GstMpegtsSectionSCTETableID = GstMpegtsSectionSCTETableID::Eas; -pub const GST_MTS_TABLE_ID_SCTE_EBIF: GstMpegtsSectionSCTETableID = GstMpegtsSectionSCTETableID::Ebif; -pub const GST_MTS_TABLE_ID_SCTE_RESERVED: GstMpegtsSectionSCTETableID = GstMpegtsSectionSCTETableID::Reserved; -pub const GST_MTS_TABLE_ID_SCTE_EISS: GstMpegtsSectionSCTETableID = GstMpegtsSectionSCTETableID::Eiss; -pub const GST_MTS_TABLE_ID_SCTE_DII: GstMpegtsSectionSCTETableID = GstMpegtsSectionSCTETableID::Dii; -pub const GST_MTS_TABLE_ID_SCTE_DDB: GstMpegtsSectionSCTETableID = GstMpegtsSectionSCTETableID::Ddb; -pub const GST_MTS_TABLE_ID_SCTE_SPLICE: GstMpegtsSectionSCTETableID = GstMpegtsSectionSCTETableID::Splice; +pub type GstMpegtsSectionSCTETableID = c_int; +pub const GST_MTS_TABLE_ID_SCTE_EAS: GstMpegtsSectionSCTETableID = 216; +pub const GST_MTS_TABLE_ID_SCTE_EBIF: GstMpegtsSectionSCTETableID = 224; +pub const GST_MTS_TABLE_ID_SCTE_RESERVED: GstMpegtsSectionSCTETableID = 225; +pub const GST_MTS_TABLE_ID_SCTE_EISS: GstMpegtsSectionSCTETableID = 226; +pub const GST_MTS_TABLE_ID_SCTE_DII: GstMpegtsSectionSCTETableID = 227; +pub const GST_MTS_TABLE_ID_SCTE_DDB: GstMpegtsSectionSCTETableID = 228; +pub const GST_MTS_TABLE_ID_SCTE_SPLICE: GstMpegtsSectionSCTETableID = 252; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsSectionTableID { - ProgramAssociation = 0, - ConditionalAccess = 1, - TsProgramMap = 2, - TsDescription = 3, - _14496SceneDescription = 4, - _14496ObjetDescriptor = 5, - Metadata = 6, - IpmpControlInformation = 7, - DsmCcMultiprotoEncapsulatedData = 58, - DsmCcUNMessages = 59, - DsmCcDownloadDataMessages = 60, - DsmCcStreamDescriptors = 61, - DsmCcPrivateData = 62, - DsmCcAddressableSections = 63, - Unset = 255, -} -pub const GST_MTS_TABLE_ID_PROGRAM_ASSOCIATION: GstMpegtsSectionTableID = GstMpegtsSectionTableID::ProgramAssociation; -pub const GST_MTS_TABLE_ID_CONDITIONAL_ACCESS: GstMpegtsSectionTableID = GstMpegtsSectionTableID::ConditionalAccess; -pub const GST_MTS_TABLE_ID_TS_PROGRAM_MAP: GstMpegtsSectionTableID = GstMpegtsSectionTableID::TsProgramMap; -pub const GST_MTS_TABLE_ID_TS_DESCRIPTION: GstMpegtsSectionTableID = GstMpegtsSectionTableID::TsDescription; -pub const GST_MTS_TABLE_ID_14496_SCENE_DESCRIPTION: GstMpegtsSectionTableID = GstMpegtsSectionTableID::_14496SceneDescription; -pub const GST_MTS_TABLE_ID_14496_OBJET_DESCRIPTOR: GstMpegtsSectionTableID = GstMpegtsSectionTableID::_14496ObjetDescriptor; -pub const GST_MTS_TABLE_ID_METADATA: GstMpegtsSectionTableID = GstMpegtsSectionTableID::Metadata; -pub const GST_MTS_TABLE_ID_IPMP_CONTROL_INFORMATION: GstMpegtsSectionTableID = GstMpegtsSectionTableID::IpmpControlInformation; -pub const GST_MTS_TABLE_ID_DSM_CC_MULTIPROTO_ENCAPSULATED_DATA: GstMpegtsSectionTableID = GstMpegtsSectionTableID::DsmCcMultiprotoEncapsulatedData; -pub const GST_MTS_TABLE_ID_DSM_CC_U_N_MESSAGES: GstMpegtsSectionTableID = GstMpegtsSectionTableID::DsmCcUNMessages; -pub const GST_MTS_TABLE_ID_DSM_CC_DOWNLOAD_DATA_MESSAGES: GstMpegtsSectionTableID = GstMpegtsSectionTableID::DsmCcDownloadDataMessages; -pub const GST_MTS_TABLE_ID_DSM_CC_STREAM_DESCRIPTORS: GstMpegtsSectionTableID = GstMpegtsSectionTableID::DsmCcStreamDescriptors; -pub const GST_MTS_TABLE_ID_DSM_CC_PRIVATE_DATA: GstMpegtsSectionTableID = GstMpegtsSectionTableID::DsmCcPrivateData; -pub const GST_MTS_TABLE_ID_DSM_CC_ADDRESSABLE_SECTIONS: GstMpegtsSectionTableID = GstMpegtsSectionTableID::DsmCcAddressableSections; -pub const GST_MTS_TABLE_ID_UNSET: GstMpegtsSectionTableID = GstMpegtsSectionTableID::Unset; +pub type GstMpegtsSectionTableID = c_int; +pub const GST_MTS_TABLE_ID_PROGRAM_ASSOCIATION: GstMpegtsSectionTableID = 0; +pub const GST_MTS_TABLE_ID_CONDITIONAL_ACCESS: GstMpegtsSectionTableID = 1; +pub const GST_MTS_TABLE_ID_TS_PROGRAM_MAP: GstMpegtsSectionTableID = 2; +pub const GST_MTS_TABLE_ID_TS_DESCRIPTION: GstMpegtsSectionTableID = 3; +pub const GST_MTS_TABLE_ID_14496_SCENE_DESCRIPTION: GstMpegtsSectionTableID = 4; +pub const GST_MTS_TABLE_ID_14496_OBJET_DESCRIPTOR: GstMpegtsSectionTableID = 5; +pub const GST_MTS_TABLE_ID_METADATA: GstMpegtsSectionTableID = 6; +pub const GST_MTS_TABLE_ID_IPMP_CONTROL_INFORMATION: GstMpegtsSectionTableID = 7; +pub const GST_MTS_TABLE_ID_DSM_CC_MULTIPROTO_ENCAPSULATED_DATA: GstMpegtsSectionTableID = 58; +pub const GST_MTS_TABLE_ID_DSM_CC_U_N_MESSAGES: GstMpegtsSectionTableID = 59; +pub const GST_MTS_TABLE_ID_DSM_CC_DOWNLOAD_DATA_MESSAGES: GstMpegtsSectionTableID = 60; +pub const GST_MTS_TABLE_ID_DSM_CC_STREAM_DESCRIPTORS: GstMpegtsSectionTableID = 61; +pub const GST_MTS_TABLE_ID_DSM_CC_PRIVATE_DATA: GstMpegtsSectionTableID = 62; +pub const GST_MTS_TABLE_ID_DSM_CC_ADDRESSABLE_SECTIONS: GstMpegtsSectionTableID = 63; +pub const GST_MTS_TABLE_ID_UNSET: GstMpegtsSectionTableID = 255; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsSectionType { - Unknown = 0, - Pat = 1, - Pmt = 2, - Cat = 3, - Tsdt = 4, - Eit = 5, - Nit = 6, - Bat = 7, - Sdt = 8, - Tdt = 9, - Tot = 10, - AtscTvct = 11, - AtscCvct = 12, - AtscMgt = 13, - AtscEtt = 14, - AtscEit = 15, - AtscStt = 16, -} -pub const GST_MPEGTS_SECTION_UNKNOWN: GstMpegtsSectionType = GstMpegtsSectionType::Unknown; -pub const GST_MPEGTS_SECTION_PAT: GstMpegtsSectionType = GstMpegtsSectionType::Pat; -pub const GST_MPEGTS_SECTION_PMT: GstMpegtsSectionType = GstMpegtsSectionType::Pmt; -pub const GST_MPEGTS_SECTION_CAT: GstMpegtsSectionType = GstMpegtsSectionType::Cat; -pub const GST_MPEGTS_SECTION_TSDT: GstMpegtsSectionType = GstMpegtsSectionType::Tsdt; -pub const GST_MPEGTS_SECTION_EIT: GstMpegtsSectionType = GstMpegtsSectionType::Eit; -pub const GST_MPEGTS_SECTION_NIT: GstMpegtsSectionType = GstMpegtsSectionType::Nit; -pub const GST_MPEGTS_SECTION_BAT: GstMpegtsSectionType = GstMpegtsSectionType::Bat; -pub const GST_MPEGTS_SECTION_SDT: GstMpegtsSectionType = GstMpegtsSectionType::Sdt; -pub const GST_MPEGTS_SECTION_TDT: GstMpegtsSectionType = GstMpegtsSectionType::Tdt; -pub const GST_MPEGTS_SECTION_TOT: GstMpegtsSectionType = GstMpegtsSectionType::Tot; -pub const GST_MPEGTS_SECTION_ATSC_TVCT: GstMpegtsSectionType = GstMpegtsSectionType::AtscTvct; -pub const GST_MPEGTS_SECTION_ATSC_CVCT: GstMpegtsSectionType = GstMpegtsSectionType::AtscCvct; -pub const GST_MPEGTS_SECTION_ATSC_MGT: GstMpegtsSectionType = GstMpegtsSectionType::AtscMgt; -pub const GST_MPEGTS_SECTION_ATSC_ETT: GstMpegtsSectionType = GstMpegtsSectionType::AtscEtt; -pub const GST_MPEGTS_SECTION_ATSC_EIT: GstMpegtsSectionType = GstMpegtsSectionType::AtscEit; -pub const GST_MPEGTS_SECTION_ATSC_STT: GstMpegtsSectionType = GstMpegtsSectionType::AtscStt; +pub type GstMpegtsSectionType = c_int; +pub const GST_MPEGTS_SECTION_UNKNOWN: GstMpegtsSectionType = 0; +pub const GST_MPEGTS_SECTION_PAT: GstMpegtsSectionType = 1; +pub const GST_MPEGTS_SECTION_PMT: GstMpegtsSectionType = 2; +pub const GST_MPEGTS_SECTION_CAT: GstMpegtsSectionType = 3; +pub const GST_MPEGTS_SECTION_TSDT: GstMpegtsSectionType = 4; +pub const GST_MPEGTS_SECTION_EIT: GstMpegtsSectionType = 5; +pub const GST_MPEGTS_SECTION_NIT: GstMpegtsSectionType = 6; +pub const GST_MPEGTS_SECTION_BAT: GstMpegtsSectionType = 7; +pub const GST_MPEGTS_SECTION_SDT: GstMpegtsSectionType = 8; +pub const GST_MPEGTS_SECTION_TDT: GstMpegtsSectionType = 9; +pub const GST_MPEGTS_SECTION_TOT: GstMpegtsSectionType = 10; +pub const GST_MPEGTS_SECTION_ATSC_TVCT: GstMpegtsSectionType = 11; +pub const GST_MPEGTS_SECTION_ATSC_CVCT: GstMpegtsSectionType = 12; +pub const GST_MPEGTS_SECTION_ATSC_MGT: GstMpegtsSectionType = 13; +pub const GST_MPEGTS_SECTION_ATSC_ETT: GstMpegtsSectionType = 14; +pub const GST_MPEGTS_SECTION_ATSC_EIT: GstMpegtsSectionType = 15; +pub const GST_MPEGTS_SECTION_ATSC_STT: GstMpegtsSectionType = 16; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsStreamType { - Reserved00 = 0, - VideoMpeg1 = 1, - VideoMpeg2 = 2, - AudioMpeg1 = 3, - AudioMpeg2 = 4, - PrivateSections = 5, - PrivatePesPackets = 6, - Mheg = 7, - DsmCc = 8, - H2221 = 9, - DsmccA = 10, - DsmccB = 11, - DsmccC = 12, - DsmccD = 13, - Auxiliary = 14, - AudioAacAdts = 15, - VideoMpeg4 = 16, - AudioAacLatm = 17, - SlFlexmuxPesPackets = 18, - SlFlexmuxSections = 19, - SynchronizedDownload = 20, - MetadataPesPackets = 21, - MetadataSections = 22, - MetadataDataCarousel = 23, - MetadataObjectCarousel = 24, - MetadataSynchronizedDownload = 25, - Mpeg2Ipmp = 26, - VideoH264 = 27, - AudioAacClean = 28, - Mpeg4TimedText = 29, - VideoRvc = 30, - VideoH264SvcSubBitstream = 31, - VideoH264MvcSubBitstream = 32, - VideoJp2k = 33, - VideoMpeg2StereoAdditionalView = 34, - VideoH264StereoAdditionalView = 35, - VideoHevc = 36, - IpmpStream = 127, -} -pub const GST_MPEGTS_STREAM_TYPE_RESERVED_00: GstMpegtsStreamType = GstMpegtsStreamType::Reserved00; -pub const GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG1: GstMpegtsStreamType = GstMpegtsStreamType::VideoMpeg1; -pub const GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2: GstMpegtsStreamType = GstMpegtsStreamType::VideoMpeg2; -pub const GST_MPEGTS_STREAM_TYPE_AUDIO_MPEG1: GstMpegtsStreamType = GstMpegtsStreamType::AudioMpeg1; -pub const GST_MPEGTS_STREAM_TYPE_AUDIO_MPEG2: GstMpegtsStreamType = GstMpegtsStreamType::AudioMpeg2; -pub const GST_MPEGTS_STREAM_TYPE_PRIVATE_SECTIONS: GstMpegtsStreamType = GstMpegtsStreamType::PrivateSections; -pub const GST_MPEGTS_STREAM_TYPE_PRIVATE_PES_PACKETS: GstMpegtsStreamType = GstMpegtsStreamType::PrivatePesPackets; -pub const GST_MPEGTS_STREAM_TYPE_MHEG: GstMpegtsStreamType = GstMpegtsStreamType::Mheg; -pub const GST_MPEGTS_STREAM_TYPE_DSM_CC: GstMpegtsStreamType = GstMpegtsStreamType::DsmCc; -pub const GST_MPEGTS_STREAM_TYPE_H_222_1: GstMpegtsStreamType = GstMpegtsStreamType::H2221; -pub const GST_MPEGTS_STREAM_TYPE_DSMCC_A: GstMpegtsStreamType = GstMpegtsStreamType::DsmccA; -pub const GST_MPEGTS_STREAM_TYPE_DSMCC_B: GstMpegtsStreamType = GstMpegtsStreamType::DsmccB; -pub const GST_MPEGTS_STREAM_TYPE_DSMCC_C: GstMpegtsStreamType = GstMpegtsStreamType::DsmccC; -pub const GST_MPEGTS_STREAM_TYPE_DSMCC_D: GstMpegtsStreamType = GstMpegtsStreamType::DsmccD; -pub const GST_MPEGTS_STREAM_TYPE_AUXILIARY: GstMpegtsStreamType = GstMpegtsStreamType::Auxiliary; -pub const GST_MPEGTS_STREAM_TYPE_AUDIO_AAC_ADTS: GstMpegtsStreamType = GstMpegtsStreamType::AudioAacAdts; -pub const GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG4: GstMpegtsStreamType = GstMpegtsStreamType::VideoMpeg4; -pub const GST_MPEGTS_STREAM_TYPE_AUDIO_AAC_LATM: GstMpegtsStreamType = GstMpegtsStreamType::AudioAacLatm; -pub const GST_MPEGTS_STREAM_TYPE_SL_FLEXMUX_PES_PACKETS: GstMpegtsStreamType = GstMpegtsStreamType::SlFlexmuxPesPackets; -pub const GST_MPEGTS_STREAM_TYPE_SL_FLEXMUX_SECTIONS: GstMpegtsStreamType = GstMpegtsStreamType::SlFlexmuxSections; -pub const GST_MPEGTS_STREAM_TYPE_SYNCHRONIZED_DOWNLOAD: GstMpegtsStreamType = GstMpegtsStreamType::SynchronizedDownload; -pub const GST_MPEGTS_STREAM_TYPE_METADATA_PES_PACKETS: GstMpegtsStreamType = GstMpegtsStreamType::MetadataPesPackets; -pub const GST_MPEGTS_STREAM_TYPE_METADATA_SECTIONS: GstMpegtsStreamType = GstMpegtsStreamType::MetadataSections; -pub const GST_MPEGTS_STREAM_TYPE_METADATA_DATA_CAROUSEL: GstMpegtsStreamType = GstMpegtsStreamType::MetadataDataCarousel; -pub const GST_MPEGTS_STREAM_TYPE_METADATA_OBJECT_CAROUSEL: GstMpegtsStreamType = GstMpegtsStreamType::MetadataObjectCarousel; -pub const GST_MPEGTS_STREAM_TYPE_METADATA_SYNCHRONIZED_DOWNLOAD: GstMpegtsStreamType = GstMpegtsStreamType::MetadataSynchronizedDownload; -pub const GST_MPEGTS_STREAM_TYPE_MPEG2_IPMP: GstMpegtsStreamType = GstMpegtsStreamType::Mpeg2Ipmp; -pub const GST_MPEGTS_STREAM_TYPE_VIDEO_H264: GstMpegtsStreamType = GstMpegtsStreamType::VideoH264; -pub const GST_MPEGTS_STREAM_TYPE_AUDIO_AAC_CLEAN: GstMpegtsStreamType = GstMpegtsStreamType::AudioAacClean; -pub const GST_MPEGTS_STREAM_TYPE_MPEG4_TIMED_TEXT: GstMpegtsStreamType = GstMpegtsStreamType::Mpeg4TimedText; -pub const GST_MPEGTS_STREAM_TYPE_VIDEO_RVC: GstMpegtsStreamType = GstMpegtsStreamType::VideoRvc; -pub const GST_MPEGTS_STREAM_TYPE_VIDEO_H264_SVC_SUB_BITSTREAM: GstMpegtsStreamType = GstMpegtsStreamType::VideoH264SvcSubBitstream; -pub const GST_MPEGTS_STREAM_TYPE_VIDEO_H264_MVC_SUB_BITSTREAM: GstMpegtsStreamType = GstMpegtsStreamType::VideoH264MvcSubBitstream; -pub const GST_MPEGTS_STREAM_TYPE_VIDEO_JP2K: GstMpegtsStreamType = GstMpegtsStreamType::VideoJp2k; -pub const GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2_STEREO_ADDITIONAL_VIEW: GstMpegtsStreamType = GstMpegtsStreamType::VideoMpeg2StereoAdditionalView; -pub const GST_MPEGTS_STREAM_TYPE_VIDEO_H264_STEREO_ADDITIONAL_VIEW: GstMpegtsStreamType = GstMpegtsStreamType::VideoH264StereoAdditionalView; -pub const GST_MPEGTS_STREAM_TYPE_VIDEO_HEVC: GstMpegtsStreamType = GstMpegtsStreamType::VideoHevc; -pub const GST_MPEGTS_STREAM_TYPE_IPMP_STREAM: GstMpegtsStreamType = GstMpegtsStreamType::IpmpStream; +pub type GstMpegtsStreamType = c_int; +pub const GST_MPEGTS_STREAM_TYPE_RESERVED_00: GstMpegtsStreamType = 0; +pub const GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG1: GstMpegtsStreamType = 1; +pub const GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2: GstMpegtsStreamType = 2; +pub const GST_MPEGTS_STREAM_TYPE_AUDIO_MPEG1: GstMpegtsStreamType = 3; +pub const GST_MPEGTS_STREAM_TYPE_AUDIO_MPEG2: GstMpegtsStreamType = 4; +pub const GST_MPEGTS_STREAM_TYPE_PRIVATE_SECTIONS: GstMpegtsStreamType = 5; +pub const GST_MPEGTS_STREAM_TYPE_PRIVATE_PES_PACKETS: GstMpegtsStreamType = 6; +pub const GST_MPEGTS_STREAM_TYPE_MHEG: GstMpegtsStreamType = 7; +pub const GST_MPEGTS_STREAM_TYPE_DSM_CC: GstMpegtsStreamType = 8; +pub const GST_MPEGTS_STREAM_TYPE_H_222_1: GstMpegtsStreamType = 9; +pub const GST_MPEGTS_STREAM_TYPE_DSMCC_A: GstMpegtsStreamType = 10; +pub const GST_MPEGTS_STREAM_TYPE_DSMCC_B: GstMpegtsStreamType = 11; +pub const GST_MPEGTS_STREAM_TYPE_DSMCC_C: GstMpegtsStreamType = 12; +pub const GST_MPEGTS_STREAM_TYPE_DSMCC_D: GstMpegtsStreamType = 13; +pub const GST_MPEGTS_STREAM_TYPE_AUXILIARY: GstMpegtsStreamType = 14; +pub const GST_MPEGTS_STREAM_TYPE_AUDIO_AAC_ADTS: GstMpegtsStreamType = 15; +pub const GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG4: GstMpegtsStreamType = 16; +pub const GST_MPEGTS_STREAM_TYPE_AUDIO_AAC_LATM: GstMpegtsStreamType = 17; +pub const GST_MPEGTS_STREAM_TYPE_SL_FLEXMUX_PES_PACKETS: GstMpegtsStreamType = 18; +pub const GST_MPEGTS_STREAM_TYPE_SL_FLEXMUX_SECTIONS: GstMpegtsStreamType = 19; +pub const GST_MPEGTS_STREAM_TYPE_SYNCHRONIZED_DOWNLOAD: GstMpegtsStreamType = 20; +pub const GST_MPEGTS_STREAM_TYPE_METADATA_PES_PACKETS: GstMpegtsStreamType = 21; +pub const GST_MPEGTS_STREAM_TYPE_METADATA_SECTIONS: GstMpegtsStreamType = 22; +pub const GST_MPEGTS_STREAM_TYPE_METADATA_DATA_CAROUSEL: GstMpegtsStreamType = 23; +pub const GST_MPEGTS_STREAM_TYPE_METADATA_OBJECT_CAROUSEL: GstMpegtsStreamType = 24; +pub const GST_MPEGTS_STREAM_TYPE_METADATA_SYNCHRONIZED_DOWNLOAD: GstMpegtsStreamType = 25; +pub const GST_MPEGTS_STREAM_TYPE_MPEG2_IPMP: GstMpegtsStreamType = 26; +pub const GST_MPEGTS_STREAM_TYPE_VIDEO_H264: GstMpegtsStreamType = 27; +pub const GST_MPEGTS_STREAM_TYPE_AUDIO_AAC_CLEAN: GstMpegtsStreamType = 28; +pub const GST_MPEGTS_STREAM_TYPE_MPEG4_TIMED_TEXT: GstMpegtsStreamType = 29; +pub const GST_MPEGTS_STREAM_TYPE_VIDEO_RVC: GstMpegtsStreamType = 30; +pub const GST_MPEGTS_STREAM_TYPE_VIDEO_H264_SVC_SUB_BITSTREAM: GstMpegtsStreamType = 31; +pub const GST_MPEGTS_STREAM_TYPE_VIDEO_H264_MVC_SUB_BITSTREAM: GstMpegtsStreamType = 32; +pub const GST_MPEGTS_STREAM_TYPE_VIDEO_JP2K: GstMpegtsStreamType = 33; +pub const GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2_STEREO_ADDITIONAL_VIEW: GstMpegtsStreamType = 34; +pub const GST_MPEGTS_STREAM_TYPE_VIDEO_H264_STEREO_ADDITIONAL_VIEW: GstMpegtsStreamType = 35; +pub const GST_MPEGTS_STREAM_TYPE_VIDEO_HEVC: GstMpegtsStreamType = 36; +pub const GST_MPEGTS_STREAM_TYPE_IPMP_STREAM: GstMpegtsStreamType = 127; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsTerrestrialGuardInterval { - _132 = 0, - _116 = 1, - _18 = 2, - _14 = 3, - Auto = 4, - _1128 = 5, - _19128 = 6, - _19256 = 7, - Pn420 = 8, - Pn595 = 9, - Pn945 = 10, -} -pub const GST_MPEGTS_GUARD_INTERVAL_1_32: GstMpegtsTerrestrialGuardInterval = GstMpegtsTerrestrialGuardInterval::_132; -pub const GST_MPEGTS_GUARD_INTERVAL_1_16: GstMpegtsTerrestrialGuardInterval = GstMpegtsTerrestrialGuardInterval::_116; -pub const GST_MPEGTS_GUARD_INTERVAL_1_8: GstMpegtsTerrestrialGuardInterval = GstMpegtsTerrestrialGuardInterval::_18; -pub const GST_MPEGTS_GUARD_INTERVAL_1_4: GstMpegtsTerrestrialGuardInterval = GstMpegtsTerrestrialGuardInterval::_14; -pub const GST_MPEGTS_GUARD_INTERVAL_AUTO: GstMpegtsTerrestrialGuardInterval = GstMpegtsTerrestrialGuardInterval::Auto; -pub const GST_MPEGTS_GUARD_INTERVAL_1_128: GstMpegtsTerrestrialGuardInterval = GstMpegtsTerrestrialGuardInterval::_1128; -pub const GST_MPEGTS_GUARD_INTERVAL_19_128: GstMpegtsTerrestrialGuardInterval = GstMpegtsTerrestrialGuardInterval::_19128; -pub const GST_MPEGTS_GUARD_INTERVAL_19_256: GstMpegtsTerrestrialGuardInterval = GstMpegtsTerrestrialGuardInterval::_19256; -pub const GST_MPEGTS_GUARD_INTERVAL_PN420: GstMpegtsTerrestrialGuardInterval = GstMpegtsTerrestrialGuardInterval::Pn420; -pub const GST_MPEGTS_GUARD_INTERVAL_PN595: GstMpegtsTerrestrialGuardInterval = GstMpegtsTerrestrialGuardInterval::Pn595; -pub const GST_MPEGTS_GUARD_INTERVAL_PN945: GstMpegtsTerrestrialGuardInterval = GstMpegtsTerrestrialGuardInterval::Pn945; +pub type GstMpegtsTerrestrialGuardInterval = c_int; +pub const GST_MPEGTS_GUARD_INTERVAL_1_32: GstMpegtsTerrestrialGuardInterval = 0; +pub const GST_MPEGTS_GUARD_INTERVAL_1_16: GstMpegtsTerrestrialGuardInterval = 1; +pub const GST_MPEGTS_GUARD_INTERVAL_1_8: GstMpegtsTerrestrialGuardInterval = 2; +pub const GST_MPEGTS_GUARD_INTERVAL_1_4: GstMpegtsTerrestrialGuardInterval = 3; +pub const GST_MPEGTS_GUARD_INTERVAL_AUTO: GstMpegtsTerrestrialGuardInterval = 4; +pub const GST_MPEGTS_GUARD_INTERVAL_1_128: GstMpegtsTerrestrialGuardInterval = 5; +pub const GST_MPEGTS_GUARD_INTERVAL_19_128: GstMpegtsTerrestrialGuardInterval = 6; +pub const GST_MPEGTS_GUARD_INTERVAL_19_256: GstMpegtsTerrestrialGuardInterval = 7; +pub const GST_MPEGTS_GUARD_INTERVAL_PN420: GstMpegtsTerrestrialGuardInterval = 8; +pub const GST_MPEGTS_GUARD_INTERVAL_PN595: GstMpegtsTerrestrialGuardInterval = 9; +pub const GST_MPEGTS_GUARD_INTERVAL_PN945: GstMpegtsTerrestrialGuardInterval = 10; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsTerrestrialHierarchy { - None = 0, - _1 = 1, - _2 = 2, - _4 = 3, - Auto = 4, -} -pub const GST_MPEGTS_HIERARCHY_NONE: GstMpegtsTerrestrialHierarchy = GstMpegtsTerrestrialHierarchy::None; -pub const GST_MPEGTS_HIERARCHY_1: GstMpegtsTerrestrialHierarchy = GstMpegtsTerrestrialHierarchy::_1; -pub const GST_MPEGTS_HIERARCHY_2: GstMpegtsTerrestrialHierarchy = GstMpegtsTerrestrialHierarchy::_2; -pub const GST_MPEGTS_HIERARCHY_4: GstMpegtsTerrestrialHierarchy = GstMpegtsTerrestrialHierarchy::_4; -pub const GST_MPEGTS_HIERARCHY_AUTO: GstMpegtsTerrestrialHierarchy = GstMpegtsTerrestrialHierarchy::Auto; +pub type GstMpegtsTerrestrialHierarchy = c_int; +pub const GST_MPEGTS_HIERARCHY_NONE: GstMpegtsTerrestrialHierarchy = 0; +pub const GST_MPEGTS_HIERARCHY_1: GstMpegtsTerrestrialHierarchy = 1; +pub const GST_MPEGTS_HIERARCHY_2: GstMpegtsTerrestrialHierarchy = 2; +pub const GST_MPEGTS_HIERARCHY_4: GstMpegtsTerrestrialHierarchy = 3; +pub const GST_MPEGTS_HIERARCHY_AUTO: GstMpegtsTerrestrialHierarchy = 4; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstMpegtsTerrestrialTransmissionMode { - _2k = 0, - _8k = 1, - Auto = 2, - _4k = 3, - _1k = 4, - _16k = 5, - _32k = 6, - C1 = 7, - C3780 = 8, -} -pub const GST_MPEGTS_TRANSMISSION_MODE_2K: GstMpegtsTerrestrialTransmissionMode = GstMpegtsTerrestrialTransmissionMode::_2k; -pub const GST_MPEGTS_TRANSMISSION_MODE_8K: GstMpegtsTerrestrialTransmissionMode = GstMpegtsTerrestrialTransmissionMode::_8k; -pub const GST_MPEGTS_TRANSMISSION_MODE_AUTO: GstMpegtsTerrestrialTransmissionMode = GstMpegtsTerrestrialTransmissionMode::Auto; -pub const GST_MPEGTS_TRANSMISSION_MODE_4K: GstMpegtsTerrestrialTransmissionMode = GstMpegtsTerrestrialTransmissionMode::_4k; -pub const GST_MPEGTS_TRANSMISSION_MODE_1K: GstMpegtsTerrestrialTransmissionMode = GstMpegtsTerrestrialTransmissionMode::_1k; -pub const GST_MPEGTS_TRANSMISSION_MODE_16K: GstMpegtsTerrestrialTransmissionMode = GstMpegtsTerrestrialTransmissionMode::_16k; -pub const GST_MPEGTS_TRANSMISSION_MODE_32K: GstMpegtsTerrestrialTransmissionMode = GstMpegtsTerrestrialTransmissionMode::_32k; -pub const GST_MPEGTS_TRANSMISSION_MODE_C1: GstMpegtsTerrestrialTransmissionMode = GstMpegtsTerrestrialTransmissionMode::C1; -pub const GST_MPEGTS_TRANSMISSION_MODE_C3780: GstMpegtsTerrestrialTransmissionMode = GstMpegtsTerrestrialTransmissionMode::C3780; +pub type GstMpegtsTerrestrialTransmissionMode = c_int; +pub const GST_MPEGTS_TRANSMISSION_MODE_2K: GstMpegtsTerrestrialTransmissionMode = 0; +pub const GST_MPEGTS_TRANSMISSION_MODE_8K: GstMpegtsTerrestrialTransmissionMode = 1; +pub const GST_MPEGTS_TRANSMISSION_MODE_AUTO: GstMpegtsTerrestrialTransmissionMode = 2; +pub const GST_MPEGTS_TRANSMISSION_MODE_4K: GstMpegtsTerrestrialTransmissionMode = 3; +pub const GST_MPEGTS_TRANSMISSION_MODE_1K: GstMpegtsTerrestrialTransmissionMode = 4; +pub const GST_MPEGTS_TRANSMISSION_MODE_16K: GstMpegtsTerrestrialTransmissionMode = 5; +pub const GST_MPEGTS_TRANSMISSION_MODE_32K: GstMpegtsTerrestrialTransmissionMode = 6; +pub const GST_MPEGTS_TRANSMISSION_MODE_C1: GstMpegtsTerrestrialTransmissionMode = 7; +pub const GST_MPEGTS_TRANSMISSION_MODE_C3780: GstMpegtsTerrestrialTransmissionMode = 8; // Callbacks pub type GstMpegtsPacketizeFunc = Option gboolean>; diff --git a/gstreamer-pbutils-sys/src/lib.rs b/gstreamer-pbutils-sys/src/lib.rs index 5d6f471bc..54f566a86 100644 --- a/gstreamer-pbutils-sys/src/lib.rs +++ b/gstreamer-pbutils-sys/src/lib.rs @@ -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 #![allow(non_camel_case_types, non_upper_case_globals)] @@ -29,74 +29,38 @@ pub type GstDiscovererVideoInfoClass = gobject::GObjectClass; pub type GstEncodingTargetClass = gobject::GObjectClass; // Enums -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstAudioVisualizerShader { - None = 0, - Fade = 1, - FadeAndMoveUp = 2, - FadeAndMoveDown = 3, - FadeAndMoveLeft = 4, - FadeAndMoveRight = 5, - FadeAndMoveHorizOut = 6, - FadeAndMoveHorizIn = 7, - FadeAndMoveVertOut = 8, - FadeAndMoveVertIn = 9, -} -pub const GST_AUDIO_VISUALIZER_SHADER_NONE: GstAudioVisualizerShader = GstAudioVisualizerShader::None; -pub const GST_AUDIO_VISUALIZER_SHADER_FADE: GstAudioVisualizerShader = GstAudioVisualizerShader::Fade; -pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_UP: GstAudioVisualizerShader = GstAudioVisualizerShader::FadeAndMoveUp; -pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_DOWN: GstAudioVisualizerShader = GstAudioVisualizerShader::FadeAndMoveDown; -pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_LEFT: GstAudioVisualizerShader = GstAudioVisualizerShader::FadeAndMoveLeft; -pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_RIGHT: GstAudioVisualizerShader = GstAudioVisualizerShader::FadeAndMoveRight; -pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_OUT: GstAudioVisualizerShader = GstAudioVisualizerShader::FadeAndMoveHorizOut; -pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_IN: GstAudioVisualizerShader = GstAudioVisualizerShader::FadeAndMoveHorizIn; -pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_OUT: GstAudioVisualizerShader = GstAudioVisualizerShader::FadeAndMoveVertOut; -pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_IN: GstAudioVisualizerShader = GstAudioVisualizerShader::FadeAndMoveVertIn; +pub type GstAudioVisualizerShader = c_int; +pub const GST_AUDIO_VISUALIZER_SHADER_NONE: GstAudioVisualizerShader = 0; +pub const GST_AUDIO_VISUALIZER_SHADER_FADE: GstAudioVisualizerShader = 1; +pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_UP: GstAudioVisualizerShader = 2; +pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_DOWN: GstAudioVisualizerShader = 3; +pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_LEFT: GstAudioVisualizerShader = 4; +pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_RIGHT: GstAudioVisualizerShader = 5; +pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_OUT: GstAudioVisualizerShader = 6; +pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_IN: GstAudioVisualizerShader = 7; +pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_OUT: GstAudioVisualizerShader = 8; +pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_IN: GstAudioVisualizerShader = 9; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstDiscovererResult { - Ok = 0, - UriInvalid = 1, - Error = 2, - Timeout = 3, - Busy = 4, - MissingPlugins = 5, -} -pub const GST_DISCOVERER_OK: GstDiscovererResult = GstDiscovererResult::Ok; -pub const GST_DISCOVERER_URI_INVALID: GstDiscovererResult = GstDiscovererResult::UriInvalid; -pub const GST_DISCOVERER_ERROR: GstDiscovererResult = GstDiscovererResult::Error; -pub const GST_DISCOVERER_TIMEOUT: GstDiscovererResult = GstDiscovererResult::Timeout; -pub const GST_DISCOVERER_BUSY: GstDiscovererResult = GstDiscovererResult::Busy; -pub const GST_DISCOVERER_MISSING_PLUGINS: GstDiscovererResult = GstDiscovererResult::MissingPlugins; +pub type GstDiscovererResult = c_int; +pub const GST_DISCOVERER_OK: GstDiscovererResult = 0; +pub const GST_DISCOVERER_URI_INVALID: GstDiscovererResult = 1; +pub const GST_DISCOVERER_ERROR: GstDiscovererResult = 2; +pub const GST_DISCOVERER_TIMEOUT: GstDiscovererResult = 3; +pub const GST_DISCOVERER_BUSY: GstDiscovererResult = 4; +pub const GST_DISCOVERER_MISSING_PLUGINS: GstDiscovererResult = 5; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstInstallPluginsReturn { - Success = 0, - NotFound = 1, - Error = 2, - PartialSuccess = 3, - UserAbort = 4, - Crashed = 100, - Invalid = 101, - StartedOk = 200, - InternalFailure = 201, - HelperMissing = 202, - InstallInProgress = 203, -} -pub const GST_INSTALL_PLUGINS_SUCCESS: GstInstallPluginsReturn = GstInstallPluginsReturn::Success; -pub const GST_INSTALL_PLUGINS_NOT_FOUND: GstInstallPluginsReturn = GstInstallPluginsReturn::NotFound; -pub const GST_INSTALL_PLUGINS_ERROR: GstInstallPluginsReturn = GstInstallPluginsReturn::Error; -pub const GST_INSTALL_PLUGINS_PARTIAL_SUCCESS: GstInstallPluginsReturn = GstInstallPluginsReturn::PartialSuccess; -pub const GST_INSTALL_PLUGINS_USER_ABORT: GstInstallPluginsReturn = GstInstallPluginsReturn::UserAbort; -pub const GST_INSTALL_PLUGINS_CRASHED: GstInstallPluginsReturn = GstInstallPluginsReturn::Crashed; -pub const GST_INSTALL_PLUGINS_INVALID: GstInstallPluginsReturn = GstInstallPluginsReturn::Invalid; -pub const GST_INSTALL_PLUGINS_STARTED_OK: GstInstallPluginsReturn = GstInstallPluginsReturn::StartedOk; -pub const GST_INSTALL_PLUGINS_INTERNAL_FAILURE: GstInstallPluginsReturn = GstInstallPluginsReturn::InternalFailure; -pub const GST_INSTALL_PLUGINS_HELPER_MISSING: GstInstallPluginsReturn = GstInstallPluginsReturn::HelperMissing; -pub const GST_INSTALL_PLUGINS_INSTALL_IN_PROGRESS: GstInstallPluginsReturn = GstInstallPluginsReturn::InstallInProgress; +pub type GstInstallPluginsReturn = c_int; +pub const GST_INSTALL_PLUGINS_SUCCESS: GstInstallPluginsReturn = 0; +pub const GST_INSTALL_PLUGINS_NOT_FOUND: GstInstallPluginsReturn = 1; +pub const GST_INSTALL_PLUGINS_ERROR: GstInstallPluginsReturn = 2; +pub const GST_INSTALL_PLUGINS_PARTIAL_SUCCESS: GstInstallPluginsReturn = 3; +pub const GST_INSTALL_PLUGINS_USER_ABORT: GstInstallPluginsReturn = 4; +pub const GST_INSTALL_PLUGINS_CRASHED: GstInstallPluginsReturn = 100; +pub const GST_INSTALL_PLUGINS_INVALID: GstInstallPluginsReturn = 101; +pub const GST_INSTALL_PLUGINS_STARTED_OK: GstInstallPluginsReturn = 200; +pub const GST_INSTALL_PLUGINS_INTERNAL_FAILURE: GstInstallPluginsReturn = 201; +pub const GST_INSTALL_PLUGINS_HELPER_MISSING: GstInstallPluginsReturn = 202; +pub const GST_INSTALL_PLUGINS_INSTALL_IN_PROGRESS: GstInstallPluginsReturn = 203; // Constants pub const GST_ENCODING_CATEGORY_CAPTURE: *const c_char = b"capture\0" as *const u8 as *const c_char; diff --git a/gstreamer-player-sys/src/lib.rs b/gstreamer-player-sys/src/lib.rs index ae245d31a..710428b69 100644 --- a/gstreamer-player-sys/src/lib.rs +++ b/gstreamer-player-sys/src/lib.rs @@ -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 #![allow(non_camel_case_types, non_upper_case_globals)] @@ -18,50 +18,28 @@ use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double, use glib::{gboolean, gconstpointer, gpointer, GType, Volatile}; // Enums -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstPlayerColorBalanceType { - Hue = 3, - Brightness = 0, - Saturation = 2, - Contrast = 1, -} -pub const GST_PLAYER_COLOR_BALANCE_HUE: GstPlayerColorBalanceType = GstPlayerColorBalanceType::Hue; -pub const GST_PLAYER_COLOR_BALANCE_BRIGHTNESS: GstPlayerColorBalanceType = GstPlayerColorBalanceType::Brightness; -pub const GST_PLAYER_COLOR_BALANCE_SATURATION: GstPlayerColorBalanceType = GstPlayerColorBalanceType::Saturation; -pub const GST_PLAYER_COLOR_BALANCE_CONTRAST: GstPlayerColorBalanceType = GstPlayerColorBalanceType::Contrast; +pub type GstPlayerColorBalanceType = c_int; +pub const GST_PLAYER_COLOR_BALANCE_HUE: GstPlayerColorBalanceType = 3; +pub const GST_PLAYER_COLOR_BALANCE_BRIGHTNESS: GstPlayerColorBalanceType = 0; +pub const GST_PLAYER_COLOR_BALANCE_SATURATION: GstPlayerColorBalanceType = 2; +pub const GST_PLAYER_COLOR_BALANCE_CONTRAST: GstPlayerColorBalanceType = 1; pub type PlayerError = c_int; pub const GST_PLAYER_ERROR_FAILED: PlayerError = 0; pub type GstPlayerError = PlayerError; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstPlayerSnapshotFormat { - RawNative = 0, - RawXrgb = 1, - RawBgrx = 2, - Jpg = 3, - Png = 4, -} -pub const GST_PLAYER_THUMBNAIL_RAW_NATIVE: GstPlayerSnapshotFormat = GstPlayerSnapshotFormat::RawNative; -pub const GST_PLAYER_THUMBNAIL_RAW_xRGB: GstPlayerSnapshotFormat = GstPlayerSnapshotFormat::RawXrgb; -pub const GST_PLAYER_THUMBNAIL_RAW_BGRx: GstPlayerSnapshotFormat = GstPlayerSnapshotFormat::RawBgrx; -pub const GST_PLAYER_THUMBNAIL_JPG: GstPlayerSnapshotFormat = GstPlayerSnapshotFormat::Jpg; -pub const GST_PLAYER_THUMBNAIL_PNG: GstPlayerSnapshotFormat = GstPlayerSnapshotFormat::Png; +pub type GstPlayerSnapshotFormat = c_int; +pub const GST_PLAYER_THUMBNAIL_RAW_NATIVE: GstPlayerSnapshotFormat = 0; +pub const GST_PLAYER_THUMBNAIL_RAW_xRGB: GstPlayerSnapshotFormat = 1; +pub const GST_PLAYER_THUMBNAIL_RAW_BGRx: GstPlayerSnapshotFormat = 2; +pub const GST_PLAYER_THUMBNAIL_JPG: GstPlayerSnapshotFormat = 3; +pub const GST_PLAYER_THUMBNAIL_PNG: GstPlayerSnapshotFormat = 4; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstPlayerState { - Stopped = 0, - Buffering = 1, - Paused = 2, - Playing = 3, -} -pub const GST_PLAYER_STATE_STOPPED: GstPlayerState = GstPlayerState::Stopped; -pub const GST_PLAYER_STATE_BUFFERING: GstPlayerState = GstPlayerState::Buffering; -pub const GST_PLAYER_STATE_PAUSED: GstPlayerState = GstPlayerState::Paused; -pub const GST_PLAYER_STATE_PLAYING: GstPlayerState = GstPlayerState::Playing; +pub type GstPlayerState = c_int; +pub const GST_PLAYER_STATE_STOPPED: GstPlayerState = 0; +pub const GST_PLAYER_STATE_BUFFERING: GstPlayerState = 1; +pub const GST_PLAYER_STATE_PAUSED: GstPlayerState = 2; +pub const GST_PLAYER_STATE_PLAYING: GstPlayerState = 3; // Callbacks pub type GstPlayerSignalDispatcherFunc = Option; diff --git a/gstreamer-sys/src/lib.rs b/gstreamer-sys/src/lib.rs index 74e4e02c2..343de6faf 100644 --- a/gstreamer-sys/src/lib.rs +++ b/gstreamer-sys/src/lib.rs @@ -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 #![allow(non_camel_case_types, non_upper_case_globals)] @@ -23,803 +23,381 @@ pub type GstClockTimeDiff = i64; pub type GstElementFactoryListType = u64; // Enums -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstBufferingMode { - Stream = 0, - Download = 1, - Timeshift = 2, - Live = 3, -} -pub const GST_BUFFERING_STREAM: GstBufferingMode = GstBufferingMode::Stream; -pub const GST_BUFFERING_DOWNLOAD: GstBufferingMode = GstBufferingMode::Download; -pub const GST_BUFFERING_TIMESHIFT: GstBufferingMode = GstBufferingMode::Timeshift; -pub const GST_BUFFERING_LIVE: GstBufferingMode = GstBufferingMode::Live; +pub type GstBufferingMode = c_int; +pub const GST_BUFFERING_STREAM: GstBufferingMode = 0; +pub const GST_BUFFERING_DOWNLOAD: GstBufferingMode = 1; +pub const GST_BUFFERING_TIMESHIFT: GstBufferingMode = 2; +pub const GST_BUFFERING_LIVE: GstBufferingMode = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstBusSyncReply { - Drop = 0, - Pass = 1, - Async = 2, -} -pub const GST_BUS_DROP: GstBusSyncReply = GstBusSyncReply::Drop; -pub const GST_BUS_PASS: GstBusSyncReply = GstBusSyncReply::Pass; -pub const GST_BUS_ASYNC: GstBusSyncReply = GstBusSyncReply::Async; +pub type GstBusSyncReply = c_int; +pub const GST_BUS_DROP: GstBusSyncReply = 0; +pub const GST_BUS_PASS: GstBusSyncReply = 1; +pub const GST_BUS_ASYNC: GstBusSyncReply = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstCapsIntersectMode { - ZigZag = 0, - First = 1, -} -pub const GST_CAPS_INTERSECT_ZIG_ZAG: GstCapsIntersectMode = GstCapsIntersectMode::ZigZag; -pub const GST_CAPS_INTERSECT_FIRST: GstCapsIntersectMode = GstCapsIntersectMode::First; +pub type GstCapsIntersectMode = c_int; +pub const GST_CAPS_INTERSECT_ZIG_ZAG: GstCapsIntersectMode = 0; +pub const GST_CAPS_INTERSECT_FIRST: GstCapsIntersectMode = 1; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstClockEntryType { - Single = 0, - Periodic = 1, -} -pub const GST_CLOCK_ENTRY_SINGLE: GstClockEntryType = GstClockEntryType::Single; -pub const GST_CLOCK_ENTRY_PERIODIC: GstClockEntryType = GstClockEntryType::Periodic; +pub type GstClockEntryType = c_int; +pub const GST_CLOCK_ENTRY_SINGLE: GstClockEntryType = 0; +pub const GST_CLOCK_ENTRY_PERIODIC: GstClockEntryType = 1; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstClockReturn { - Ok = 0, - Early = 1, - Unscheduled = 2, - Busy = 3, - Badtime = 4, - Error = 5, - Unsupported = 6, - Done = 7, -} -pub const GST_CLOCK_OK: GstClockReturn = GstClockReturn::Ok; -pub const GST_CLOCK_EARLY: GstClockReturn = GstClockReturn::Early; -pub const GST_CLOCK_UNSCHEDULED: GstClockReturn = GstClockReturn::Unscheduled; -pub const GST_CLOCK_BUSY: GstClockReturn = GstClockReturn::Busy; -pub const GST_CLOCK_BADTIME: GstClockReturn = GstClockReturn::Badtime; -pub const GST_CLOCK_ERROR: GstClockReturn = GstClockReturn::Error; -pub const GST_CLOCK_UNSUPPORTED: GstClockReturn = GstClockReturn::Unsupported; -pub const GST_CLOCK_DONE: GstClockReturn = GstClockReturn::Done; +pub type GstClockReturn = c_int; +pub const GST_CLOCK_OK: GstClockReturn = 0; +pub const GST_CLOCK_EARLY: GstClockReturn = 1; +pub const GST_CLOCK_UNSCHEDULED: GstClockReturn = 2; +pub const GST_CLOCK_BUSY: GstClockReturn = 3; +pub const GST_CLOCK_BADTIME: GstClockReturn = 4; +pub const GST_CLOCK_ERROR: GstClockReturn = 5; +pub const GST_CLOCK_UNSUPPORTED: GstClockReturn = 6; +pub const GST_CLOCK_DONE: GstClockReturn = 7; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstClockType { - Realtime = 0, - Monotonic = 1, - Other = 2, -} -pub const GST_CLOCK_TYPE_REALTIME: GstClockType = GstClockType::Realtime; -pub const GST_CLOCK_TYPE_MONOTONIC: GstClockType = GstClockType::Monotonic; -pub const GST_CLOCK_TYPE_OTHER: GstClockType = GstClockType::Other; +pub type GstClockType = c_int; +pub const GST_CLOCK_TYPE_REALTIME: GstClockType = 0; +pub const GST_CLOCK_TYPE_MONOTONIC: GstClockType = 1; +pub const GST_CLOCK_TYPE_OTHER: GstClockType = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstCoreError { - Failed = 1, - TooLazy = 2, - NotImplemented = 3, - StateChange = 4, - Pad = 5, - Thread = 6, - Negotiation = 7, - Event = 8, - Seek = 9, - Caps = 10, - Tag = 11, - MissingPlugin = 12, - Clock = 13, - Disabled = 14, - NumErrors = 15, -} -pub const GST_CORE_ERROR_FAILED: GstCoreError = GstCoreError::Failed; -pub const GST_CORE_ERROR_TOO_LAZY: GstCoreError = GstCoreError::TooLazy; -pub const GST_CORE_ERROR_NOT_IMPLEMENTED: GstCoreError = GstCoreError::NotImplemented; -pub const GST_CORE_ERROR_STATE_CHANGE: GstCoreError = GstCoreError::StateChange; -pub const GST_CORE_ERROR_PAD: GstCoreError = GstCoreError::Pad; -pub const GST_CORE_ERROR_THREAD: GstCoreError = GstCoreError::Thread; -pub const GST_CORE_ERROR_NEGOTIATION: GstCoreError = GstCoreError::Negotiation; -pub const GST_CORE_ERROR_EVENT: GstCoreError = GstCoreError::Event; -pub const GST_CORE_ERROR_SEEK: GstCoreError = GstCoreError::Seek; -pub const GST_CORE_ERROR_CAPS: GstCoreError = GstCoreError::Caps; -pub const GST_CORE_ERROR_TAG: GstCoreError = GstCoreError::Tag; -pub const GST_CORE_ERROR_MISSING_PLUGIN: GstCoreError = GstCoreError::MissingPlugin; -pub const GST_CORE_ERROR_CLOCK: GstCoreError = GstCoreError::Clock; -pub const GST_CORE_ERROR_DISABLED: GstCoreError = GstCoreError::Disabled; -pub const GST_CORE_ERROR_NUM_ERRORS: GstCoreError = GstCoreError::NumErrors; +pub type GstCoreError = c_int; +pub const GST_CORE_ERROR_FAILED: GstCoreError = 1; +pub const GST_CORE_ERROR_TOO_LAZY: GstCoreError = 2; +pub const GST_CORE_ERROR_NOT_IMPLEMENTED: GstCoreError = 3; +pub const GST_CORE_ERROR_STATE_CHANGE: GstCoreError = 4; +pub const GST_CORE_ERROR_PAD: GstCoreError = 5; +pub const GST_CORE_ERROR_THREAD: GstCoreError = 6; +pub const GST_CORE_ERROR_NEGOTIATION: GstCoreError = 7; +pub const GST_CORE_ERROR_EVENT: GstCoreError = 8; +pub const GST_CORE_ERROR_SEEK: GstCoreError = 9; +pub const GST_CORE_ERROR_CAPS: GstCoreError = 10; +pub const GST_CORE_ERROR_TAG: GstCoreError = 11; +pub const GST_CORE_ERROR_MISSING_PLUGIN: GstCoreError = 12; +pub const GST_CORE_ERROR_CLOCK: GstCoreError = 13; +pub const GST_CORE_ERROR_DISABLED: GstCoreError = 14; +pub const GST_CORE_ERROR_NUM_ERRORS: GstCoreError = 15; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstDebugColorMode { - Off = 0, - On = 1, - Unix = 2, -} -pub const GST_DEBUG_COLOR_MODE_OFF: GstDebugColorMode = GstDebugColorMode::Off; -pub const GST_DEBUG_COLOR_MODE_ON: GstDebugColorMode = GstDebugColorMode::On; -pub const GST_DEBUG_COLOR_MODE_UNIX: GstDebugColorMode = GstDebugColorMode::Unix; +pub type GstDebugColorMode = c_int; +pub const GST_DEBUG_COLOR_MODE_OFF: GstDebugColorMode = 0; +pub const GST_DEBUG_COLOR_MODE_ON: GstDebugColorMode = 1; +pub const GST_DEBUG_COLOR_MODE_UNIX: GstDebugColorMode = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstDebugLevel { - None = 0, - Error = 1, - Warning = 2, - Fixme = 3, - Info = 4, - Debug = 5, - Log = 6, - Trace = 7, - Memdump = 9, - Count = 10, -} -pub const GST_LEVEL_NONE: GstDebugLevel = GstDebugLevel::None; -pub const GST_LEVEL_ERROR: GstDebugLevel = GstDebugLevel::Error; -pub const GST_LEVEL_WARNING: GstDebugLevel = GstDebugLevel::Warning; -pub const GST_LEVEL_FIXME: GstDebugLevel = GstDebugLevel::Fixme; -pub const GST_LEVEL_INFO: GstDebugLevel = GstDebugLevel::Info; -pub const GST_LEVEL_DEBUG: GstDebugLevel = GstDebugLevel::Debug; -pub const GST_LEVEL_LOG: GstDebugLevel = GstDebugLevel::Log; -pub const GST_LEVEL_TRACE: GstDebugLevel = GstDebugLevel::Trace; -pub const GST_LEVEL_MEMDUMP: GstDebugLevel = GstDebugLevel::Memdump; -pub const GST_LEVEL_COUNT: GstDebugLevel = GstDebugLevel::Count; +pub type GstDebugLevel = c_int; +pub const GST_LEVEL_NONE: GstDebugLevel = 0; +pub const GST_LEVEL_ERROR: GstDebugLevel = 1; +pub const GST_LEVEL_WARNING: GstDebugLevel = 2; +pub const GST_LEVEL_FIXME: GstDebugLevel = 3; +pub const GST_LEVEL_INFO: GstDebugLevel = 4; +pub const GST_LEVEL_DEBUG: GstDebugLevel = 5; +pub const GST_LEVEL_LOG: GstDebugLevel = 6; +pub const GST_LEVEL_TRACE: GstDebugLevel = 7; +pub const GST_LEVEL_MEMDUMP: GstDebugLevel = 9; +pub const GST_LEVEL_COUNT: GstDebugLevel = 10; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstEventType { - Unknown = 0, - FlushStart = 2563, - FlushStop = 5127, - StreamStart = 10254, - Caps = 12814, - Segment = 17934, - StreamCollection = 19230, - Tag = 20510, - Buffersize = 23054, - SinkMessage = 25630, - StreamGroupDone = 26894, - Eos = 28174, - Toc = 30750, - Protection = 33310, - SegmentDone = 38406, - Gap = 40966, - Qos = 48641, - Seek = 51201, - Navigation = 53761, - Latency = 56321, - Step = 58881, - Reconfigure = 61441, - TocSelect = 64001, - SelectStreams = 66561, - CustomUpstream = 69121, - CustomDownstream = 71686, - CustomDownstreamOob = 74242, - CustomDownstreamSticky = 76830, - CustomBoth = 79367, - CustomBothOob = 81923, -} -pub const GST_EVENT_UNKNOWN: GstEventType = GstEventType::Unknown; -pub const GST_EVENT_FLUSH_START: GstEventType = GstEventType::FlushStart; -pub const GST_EVENT_FLUSH_STOP: GstEventType = GstEventType::FlushStop; -pub const GST_EVENT_STREAM_START: GstEventType = GstEventType::StreamStart; -pub const GST_EVENT_CAPS: GstEventType = GstEventType::Caps; -pub const GST_EVENT_SEGMENT: GstEventType = GstEventType::Segment; -pub const GST_EVENT_STREAM_COLLECTION: GstEventType = GstEventType::StreamCollection; -pub const GST_EVENT_TAG: GstEventType = GstEventType::Tag; -pub const GST_EVENT_BUFFERSIZE: GstEventType = GstEventType::Buffersize; -pub const GST_EVENT_SINK_MESSAGE: GstEventType = GstEventType::SinkMessage; -pub const GST_EVENT_STREAM_GROUP_DONE: GstEventType = GstEventType::StreamGroupDone; -pub const GST_EVENT_EOS: GstEventType = GstEventType::Eos; -pub const GST_EVENT_TOC: GstEventType = GstEventType::Toc; -pub const GST_EVENT_PROTECTION: GstEventType = GstEventType::Protection; -pub const GST_EVENT_SEGMENT_DONE: GstEventType = GstEventType::SegmentDone; -pub const GST_EVENT_GAP: GstEventType = GstEventType::Gap; -pub const GST_EVENT_QOS: GstEventType = GstEventType::Qos; -pub const GST_EVENT_SEEK: GstEventType = GstEventType::Seek; -pub const GST_EVENT_NAVIGATION: GstEventType = GstEventType::Navigation; -pub const GST_EVENT_LATENCY: GstEventType = GstEventType::Latency; -pub const GST_EVENT_STEP: GstEventType = GstEventType::Step; -pub const GST_EVENT_RECONFIGURE: GstEventType = GstEventType::Reconfigure; -pub const GST_EVENT_TOC_SELECT: GstEventType = GstEventType::TocSelect; -pub const GST_EVENT_SELECT_STREAMS: GstEventType = GstEventType::SelectStreams; -pub const GST_EVENT_CUSTOM_UPSTREAM: GstEventType = GstEventType::CustomUpstream; -pub const GST_EVENT_CUSTOM_DOWNSTREAM: GstEventType = GstEventType::CustomDownstream; -pub const GST_EVENT_CUSTOM_DOWNSTREAM_OOB: GstEventType = GstEventType::CustomDownstreamOob; -pub const GST_EVENT_CUSTOM_DOWNSTREAM_STICKY: GstEventType = GstEventType::CustomDownstreamSticky; -pub const GST_EVENT_CUSTOM_BOTH: GstEventType = GstEventType::CustomBoth; -pub const GST_EVENT_CUSTOM_BOTH_OOB: GstEventType = GstEventType::CustomBothOob; +pub type GstEventType = c_int; +pub const GST_EVENT_UNKNOWN: GstEventType = 0; +pub const GST_EVENT_FLUSH_START: GstEventType = 2563; +pub const GST_EVENT_FLUSH_STOP: GstEventType = 5127; +pub const GST_EVENT_STREAM_START: GstEventType = 10254; +pub const GST_EVENT_CAPS: GstEventType = 12814; +pub const GST_EVENT_SEGMENT: GstEventType = 17934; +pub const GST_EVENT_STREAM_COLLECTION: GstEventType = 19230; +pub const GST_EVENT_TAG: GstEventType = 20510; +pub const GST_EVENT_BUFFERSIZE: GstEventType = 23054; +pub const GST_EVENT_SINK_MESSAGE: GstEventType = 25630; +pub const GST_EVENT_STREAM_GROUP_DONE: GstEventType = 26894; +pub const GST_EVENT_EOS: GstEventType = 28174; +pub const GST_EVENT_TOC: GstEventType = 30750; +pub const GST_EVENT_PROTECTION: GstEventType = 33310; +pub const GST_EVENT_SEGMENT_DONE: GstEventType = 38406; +pub const GST_EVENT_GAP: GstEventType = 40966; +pub const GST_EVENT_QOS: GstEventType = 48641; +pub const GST_EVENT_SEEK: GstEventType = 51201; +pub const GST_EVENT_NAVIGATION: GstEventType = 53761; +pub const GST_EVENT_LATENCY: GstEventType = 56321; +pub const GST_EVENT_STEP: GstEventType = 58881; +pub const GST_EVENT_RECONFIGURE: GstEventType = 61441; +pub const GST_EVENT_TOC_SELECT: GstEventType = 64001; +pub const GST_EVENT_SELECT_STREAMS: GstEventType = 66561; +pub const GST_EVENT_CUSTOM_UPSTREAM: GstEventType = 69121; +pub const GST_EVENT_CUSTOM_DOWNSTREAM: GstEventType = 71686; +pub const GST_EVENT_CUSTOM_DOWNSTREAM_OOB: GstEventType = 74242; +pub const GST_EVENT_CUSTOM_DOWNSTREAM_STICKY: GstEventType = 76830; +pub const GST_EVENT_CUSTOM_BOTH: GstEventType = 79367; +pub const GST_EVENT_CUSTOM_BOTH_OOB: GstEventType = 81923; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstFlowReturn { - CustomSuccess2 = 102, - CustomSuccess1 = 101, - CustomSuccess = 100, - Ok = 0, - NotLinked = -1, - Flushing = -2, - Eos = -3, - NotNegotiated = -4, - Error = -5, - NotSupported = -6, - CustomError = -100, - CustomError1 = -101, - CustomError2 = -102, -} -pub const GST_FLOW_CUSTOM_SUCCESS_2: GstFlowReturn = GstFlowReturn::CustomSuccess2; -pub const GST_FLOW_CUSTOM_SUCCESS_1: GstFlowReturn = GstFlowReturn::CustomSuccess1; -pub const GST_FLOW_CUSTOM_SUCCESS: GstFlowReturn = GstFlowReturn::CustomSuccess; -pub const GST_FLOW_OK: GstFlowReturn = GstFlowReturn::Ok; -pub const GST_FLOW_NOT_LINKED: GstFlowReturn = GstFlowReturn::NotLinked; -pub const GST_FLOW_FLUSHING: GstFlowReturn = GstFlowReturn::Flushing; -pub const GST_FLOW_EOS: GstFlowReturn = GstFlowReturn::Eos; -pub const GST_FLOW_NOT_NEGOTIATED: GstFlowReturn = GstFlowReturn::NotNegotiated; -pub const GST_FLOW_ERROR: GstFlowReturn = GstFlowReturn::Error; -pub const GST_FLOW_NOT_SUPPORTED: GstFlowReturn = GstFlowReturn::NotSupported; -pub const GST_FLOW_CUSTOM_ERROR: GstFlowReturn = GstFlowReturn::CustomError; -pub const GST_FLOW_CUSTOM_ERROR_1: GstFlowReturn = GstFlowReturn::CustomError1; -pub const GST_FLOW_CUSTOM_ERROR_2: GstFlowReturn = GstFlowReturn::CustomError2; +pub type GstFlowReturn = c_int; +pub const GST_FLOW_CUSTOM_SUCCESS_2: GstFlowReturn = 102; +pub const GST_FLOW_CUSTOM_SUCCESS_1: GstFlowReturn = 101; +pub const GST_FLOW_CUSTOM_SUCCESS: GstFlowReturn = 100; +pub const GST_FLOW_OK: GstFlowReturn = 0; +pub const GST_FLOW_NOT_LINKED: GstFlowReturn = -1; +pub const GST_FLOW_FLUSHING: GstFlowReturn = -2; +pub const GST_FLOW_EOS: GstFlowReturn = -3; +pub const GST_FLOW_NOT_NEGOTIATED: GstFlowReturn = -4; +pub const GST_FLOW_ERROR: GstFlowReturn = -5; +pub const GST_FLOW_NOT_SUPPORTED: GstFlowReturn = -6; +pub const GST_FLOW_CUSTOM_ERROR: GstFlowReturn = -100; +pub const GST_FLOW_CUSTOM_ERROR_1: GstFlowReturn = -101; +pub const GST_FLOW_CUSTOM_ERROR_2: GstFlowReturn = -102; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstFormat { - Undefined = 0, - Default = 1, - Bytes = 2, - Time = 3, - Buffers = 4, - Percent = 5, -} -pub const GST_FORMAT_UNDEFINED: GstFormat = GstFormat::Undefined; -pub const GST_FORMAT_DEFAULT: GstFormat = GstFormat::Default; -pub const GST_FORMAT_BYTES: GstFormat = GstFormat::Bytes; -pub const GST_FORMAT_TIME: GstFormat = GstFormat::Time; -pub const GST_FORMAT_BUFFERS: GstFormat = GstFormat::Buffers; -pub const GST_FORMAT_PERCENT: GstFormat = GstFormat::Percent; +pub type GstFormat = c_int; +pub const GST_FORMAT_UNDEFINED: GstFormat = 0; +pub const GST_FORMAT_DEFAULT: GstFormat = 1; +pub const GST_FORMAT_BYTES: GstFormat = 2; +pub const GST_FORMAT_TIME: GstFormat = 3; +pub const GST_FORMAT_BUFFERS: GstFormat = 4; +pub const GST_FORMAT_PERCENT: GstFormat = 5; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstIteratorItem { - Skip = 0, - Pass = 1, - End = 2, -} -pub const GST_ITERATOR_ITEM_SKIP: GstIteratorItem = GstIteratorItem::Skip; -pub const GST_ITERATOR_ITEM_PASS: GstIteratorItem = GstIteratorItem::Pass; -pub const GST_ITERATOR_ITEM_END: GstIteratorItem = GstIteratorItem::End; +pub type GstIteratorItem = c_int; +pub const GST_ITERATOR_ITEM_SKIP: GstIteratorItem = 0; +pub const GST_ITERATOR_ITEM_PASS: GstIteratorItem = 1; +pub const GST_ITERATOR_ITEM_END: GstIteratorItem = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstIteratorResult { - Done = 0, - Ok = 1, - Resync = 2, - Error = 3, -} -pub const GST_ITERATOR_DONE: GstIteratorResult = GstIteratorResult::Done; -pub const GST_ITERATOR_OK: GstIteratorResult = GstIteratorResult::Ok; -pub const GST_ITERATOR_RESYNC: GstIteratorResult = GstIteratorResult::Resync; -pub const GST_ITERATOR_ERROR: GstIteratorResult = GstIteratorResult::Error; +pub type GstIteratorResult = c_int; +pub const GST_ITERATOR_DONE: GstIteratorResult = 0; +pub const GST_ITERATOR_OK: GstIteratorResult = 1; +pub const GST_ITERATOR_RESYNC: GstIteratorResult = 2; +pub const GST_ITERATOR_ERROR: GstIteratorResult = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstLibraryError { - Failed = 1, - TooLazy = 2, - Init = 3, - Shutdown = 4, - Settings = 5, - Encode = 6, - NumErrors = 7, -} -pub const GST_LIBRARY_ERROR_FAILED: GstLibraryError = GstLibraryError::Failed; -pub const GST_LIBRARY_ERROR_TOO_LAZY: GstLibraryError = GstLibraryError::TooLazy; -pub const GST_LIBRARY_ERROR_INIT: GstLibraryError = GstLibraryError::Init; -pub const GST_LIBRARY_ERROR_SHUTDOWN: GstLibraryError = GstLibraryError::Shutdown; -pub const GST_LIBRARY_ERROR_SETTINGS: GstLibraryError = GstLibraryError::Settings; -pub const GST_LIBRARY_ERROR_ENCODE: GstLibraryError = GstLibraryError::Encode; -pub const GST_LIBRARY_ERROR_NUM_ERRORS: GstLibraryError = GstLibraryError::NumErrors; +pub type GstLibraryError = c_int; +pub const GST_LIBRARY_ERROR_FAILED: GstLibraryError = 1; +pub const GST_LIBRARY_ERROR_TOO_LAZY: GstLibraryError = 2; +pub const GST_LIBRARY_ERROR_INIT: GstLibraryError = 3; +pub const GST_LIBRARY_ERROR_SHUTDOWN: GstLibraryError = 4; +pub const GST_LIBRARY_ERROR_SETTINGS: GstLibraryError = 5; +pub const GST_LIBRARY_ERROR_ENCODE: GstLibraryError = 6; +pub const GST_LIBRARY_ERROR_NUM_ERRORS: GstLibraryError = 7; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstPadDirection { - Unknown = 0, - Src = 1, - Sink = 2, -} -pub const GST_PAD_UNKNOWN: GstPadDirection = GstPadDirection::Unknown; -pub const GST_PAD_SRC: GstPadDirection = GstPadDirection::Src; -pub const GST_PAD_SINK: GstPadDirection = GstPadDirection::Sink; +pub type GstPadDirection = c_int; +pub const GST_PAD_UNKNOWN: GstPadDirection = 0; +pub const GST_PAD_SRC: GstPadDirection = 1; +pub const GST_PAD_SINK: GstPadDirection = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstPadLinkReturn { - Ok = 0, - WrongHierarchy = -1, - WasLinked = -2, - WrongDirection = -3, - Noformat = -4, - Nosched = -5, - Refused = -6, -} -pub const GST_PAD_LINK_OK: GstPadLinkReturn = GstPadLinkReturn::Ok; -pub const GST_PAD_LINK_WRONG_HIERARCHY: GstPadLinkReturn = GstPadLinkReturn::WrongHierarchy; -pub const GST_PAD_LINK_WAS_LINKED: GstPadLinkReturn = GstPadLinkReturn::WasLinked; -pub const GST_PAD_LINK_WRONG_DIRECTION: GstPadLinkReturn = GstPadLinkReturn::WrongDirection; -pub const GST_PAD_LINK_NOFORMAT: GstPadLinkReturn = GstPadLinkReturn::Noformat; -pub const GST_PAD_LINK_NOSCHED: GstPadLinkReturn = GstPadLinkReturn::Nosched; -pub const GST_PAD_LINK_REFUSED: GstPadLinkReturn = GstPadLinkReturn::Refused; +pub type GstPadLinkReturn = c_int; +pub const GST_PAD_LINK_OK: GstPadLinkReturn = 0; +pub const GST_PAD_LINK_WRONG_HIERARCHY: GstPadLinkReturn = -1; +pub const GST_PAD_LINK_WAS_LINKED: GstPadLinkReturn = -2; +pub const GST_PAD_LINK_WRONG_DIRECTION: GstPadLinkReturn = -3; +pub const GST_PAD_LINK_NOFORMAT: GstPadLinkReturn = -4; +pub const GST_PAD_LINK_NOSCHED: GstPadLinkReturn = -5; +pub const GST_PAD_LINK_REFUSED: GstPadLinkReturn = -6; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstPadMode { - None = 0, - Push = 1, - Pull = 2, -} -pub const GST_PAD_MODE_NONE: GstPadMode = GstPadMode::None; -pub const GST_PAD_MODE_PUSH: GstPadMode = GstPadMode::Push; -pub const GST_PAD_MODE_PULL: GstPadMode = GstPadMode::Pull; +pub type GstPadMode = c_int; +pub const GST_PAD_MODE_NONE: GstPadMode = 0; +pub const GST_PAD_MODE_PUSH: GstPadMode = 1; +pub const GST_PAD_MODE_PULL: GstPadMode = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstPadPresence { - Always = 0, - Sometimes = 1, - Request = 2, -} -pub const GST_PAD_ALWAYS: GstPadPresence = GstPadPresence::Always; -pub const GST_PAD_SOMETIMES: GstPadPresence = GstPadPresence::Sometimes; -pub const GST_PAD_REQUEST: GstPadPresence = GstPadPresence::Request; +pub type GstPadPresence = c_int; +pub const GST_PAD_ALWAYS: GstPadPresence = 0; +pub const GST_PAD_SOMETIMES: GstPadPresence = 1; +pub const GST_PAD_REQUEST: GstPadPresence = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstPadProbeReturn { - Drop = 0, - Ok = 1, - Remove = 2, - Pass = 3, - Handled = 4, -} -pub const GST_PAD_PROBE_DROP: GstPadProbeReturn = GstPadProbeReturn::Drop; -pub const GST_PAD_PROBE_OK: GstPadProbeReturn = GstPadProbeReturn::Ok; -pub const GST_PAD_PROBE_REMOVE: GstPadProbeReturn = GstPadProbeReturn::Remove; -pub const GST_PAD_PROBE_PASS: GstPadProbeReturn = GstPadProbeReturn::Pass; -pub const GST_PAD_PROBE_HANDLED: GstPadProbeReturn = GstPadProbeReturn::Handled; +pub type GstPadProbeReturn = c_int; +pub const GST_PAD_PROBE_DROP: GstPadProbeReturn = 0; +pub const GST_PAD_PROBE_OK: GstPadProbeReturn = 1; +pub const GST_PAD_PROBE_REMOVE: GstPadProbeReturn = 2; +pub const GST_PAD_PROBE_PASS: GstPadProbeReturn = 3; +pub const GST_PAD_PROBE_HANDLED: GstPadProbeReturn = 4; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstParseError { - Syntax = 0, - NoSuchElement = 1, - NoSuchProperty = 2, - Link = 3, - CouldNotSetProperty = 4, - EmptyBin = 5, - Empty = 6, - DelayedLink = 7, -} -pub const GST_PARSE_ERROR_SYNTAX: GstParseError = GstParseError::Syntax; -pub const GST_PARSE_ERROR_NO_SUCH_ELEMENT: GstParseError = GstParseError::NoSuchElement; -pub const GST_PARSE_ERROR_NO_SUCH_PROPERTY: GstParseError = GstParseError::NoSuchProperty; -pub const GST_PARSE_ERROR_LINK: GstParseError = GstParseError::Link; -pub const GST_PARSE_ERROR_COULD_NOT_SET_PROPERTY: GstParseError = GstParseError::CouldNotSetProperty; -pub const GST_PARSE_ERROR_EMPTY_BIN: GstParseError = GstParseError::EmptyBin; -pub const GST_PARSE_ERROR_EMPTY: GstParseError = GstParseError::Empty; -pub const GST_PARSE_ERROR_DELAYED_LINK: GstParseError = GstParseError::DelayedLink; +pub type GstParseError = c_int; +pub const GST_PARSE_ERROR_SYNTAX: GstParseError = 0; +pub const GST_PARSE_ERROR_NO_SUCH_ELEMENT: GstParseError = 1; +pub const GST_PARSE_ERROR_NO_SUCH_PROPERTY: GstParseError = 2; +pub const GST_PARSE_ERROR_LINK: GstParseError = 3; +pub const GST_PARSE_ERROR_COULD_NOT_SET_PROPERTY: GstParseError = 4; +pub const GST_PARSE_ERROR_EMPTY_BIN: GstParseError = 5; +pub const GST_PARSE_ERROR_EMPTY: GstParseError = 6; +pub const GST_PARSE_ERROR_DELAYED_LINK: GstParseError = 7; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstPluginError { - Module = 0, - Dependencies = 1, - NameMismatch = 2, -} -pub const GST_PLUGIN_ERROR_MODULE: GstPluginError = GstPluginError::Module; -pub const GST_PLUGIN_ERROR_DEPENDENCIES: GstPluginError = GstPluginError::Dependencies; -pub const GST_PLUGIN_ERROR_NAME_MISMATCH: GstPluginError = GstPluginError::NameMismatch; +pub type GstPluginError = c_int; +pub const GST_PLUGIN_ERROR_MODULE: GstPluginError = 0; +pub const GST_PLUGIN_ERROR_DEPENDENCIES: GstPluginError = 1; +pub const GST_PLUGIN_ERROR_NAME_MISMATCH: GstPluginError = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstProgressType { - Start = 0, - Continue = 1, - Complete = 2, - Canceled = 3, - Error = 4, -} -pub const GST_PROGRESS_TYPE_START: GstProgressType = GstProgressType::Start; -pub const GST_PROGRESS_TYPE_CONTINUE: GstProgressType = GstProgressType::Continue; -pub const GST_PROGRESS_TYPE_COMPLETE: GstProgressType = GstProgressType::Complete; -pub const GST_PROGRESS_TYPE_CANCELED: GstProgressType = GstProgressType::Canceled; -pub const GST_PROGRESS_TYPE_ERROR: GstProgressType = GstProgressType::Error; +pub type GstProgressType = c_int; +pub const GST_PROGRESS_TYPE_START: GstProgressType = 0; +pub const GST_PROGRESS_TYPE_CONTINUE: GstProgressType = 1; +pub const GST_PROGRESS_TYPE_COMPLETE: GstProgressType = 2; +pub const GST_PROGRESS_TYPE_CANCELED: GstProgressType = 3; +pub const GST_PROGRESS_TYPE_ERROR: GstProgressType = 4; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstQOSType { - Overflow = 0, - Underflow = 1, - Throttle = 2, -} -pub const GST_QOS_TYPE_OVERFLOW: GstQOSType = GstQOSType::Overflow; -pub const GST_QOS_TYPE_UNDERFLOW: GstQOSType = GstQOSType::Underflow; -pub const GST_QOS_TYPE_THROTTLE: GstQOSType = GstQOSType::Throttle; +pub type GstQOSType = c_int; +pub const GST_QOS_TYPE_OVERFLOW: GstQOSType = 0; +pub const GST_QOS_TYPE_UNDERFLOW: GstQOSType = 1; +pub const GST_QOS_TYPE_THROTTLE: GstQOSType = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstQueryType { - Unknown = 0, - Position = 2563, - Duration = 5123, - Latency = 7683, - Jitter = 10243, - Rate = 12803, - Seeking = 15363, - Segment = 17923, - Convert = 20483, - Formats = 23043, - Buffering = 28163, - Custom = 30723, - Uri = 33283, - Allocation = 35846, - Scheduling = 38401, - AcceptCaps = 40963, - Caps = 43523, - Drain = 46086, - Context = 48643, -} -pub const GST_QUERY_UNKNOWN: GstQueryType = GstQueryType::Unknown; -pub const GST_QUERY_POSITION: GstQueryType = GstQueryType::Position; -pub const GST_QUERY_DURATION: GstQueryType = GstQueryType::Duration; -pub const GST_QUERY_LATENCY: GstQueryType = GstQueryType::Latency; -pub const GST_QUERY_JITTER: GstQueryType = GstQueryType::Jitter; -pub const GST_QUERY_RATE: GstQueryType = GstQueryType::Rate; -pub const GST_QUERY_SEEKING: GstQueryType = GstQueryType::Seeking; -pub const GST_QUERY_SEGMENT: GstQueryType = GstQueryType::Segment; -pub const GST_QUERY_CONVERT: GstQueryType = GstQueryType::Convert; -pub const GST_QUERY_FORMATS: GstQueryType = GstQueryType::Formats; -pub const GST_QUERY_BUFFERING: GstQueryType = GstQueryType::Buffering; -pub const GST_QUERY_CUSTOM: GstQueryType = GstQueryType::Custom; -pub const GST_QUERY_URI: GstQueryType = GstQueryType::Uri; -pub const GST_QUERY_ALLOCATION: GstQueryType = GstQueryType::Allocation; -pub const GST_QUERY_SCHEDULING: GstQueryType = GstQueryType::Scheduling; -pub const GST_QUERY_ACCEPT_CAPS: GstQueryType = GstQueryType::AcceptCaps; -pub const GST_QUERY_CAPS: GstQueryType = GstQueryType::Caps; -pub const GST_QUERY_DRAIN: GstQueryType = GstQueryType::Drain; -pub const GST_QUERY_CONTEXT: GstQueryType = GstQueryType::Context; +pub type GstQueryType = c_int; +pub const GST_QUERY_UNKNOWN: GstQueryType = 0; +pub const GST_QUERY_POSITION: GstQueryType = 2563; +pub const GST_QUERY_DURATION: GstQueryType = 5123; +pub const GST_QUERY_LATENCY: GstQueryType = 7683; +pub const GST_QUERY_JITTER: GstQueryType = 10243; +pub const GST_QUERY_RATE: GstQueryType = 12803; +pub const GST_QUERY_SEEKING: GstQueryType = 15363; +pub const GST_QUERY_SEGMENT: GstQueryType = 17923; +pub const GST_QUERY_CONVERT: GstQueryType = 20483; +pub const GST_QUERY_FORMATS: GstQueryType = 23043; +pub const GST_QUERY_BUFFERING: GstQueryType = 28163; +pub const GST_QUERY_CUSTOM: GstQueryType = 30723; +pub const GST_QUERY_URI: GstQueryType = 33283; +pub const GST_QUERY_ALLOCATION: GstQueryType = 35846; +pub const GST_QUERY_SCHEDULING: GstQueryType = 38401; +pub const GST_QUERY_ACCEPT_CAPS: GstQueryType = 40963; +pub const GST_QUERY_CAPS: GstQueryType = 43523; +pub const GST_QUERY_DRAIN: GstQueryType = 46086; +pub const GST_QUERY_CONTEXT: GstQueryType = 48643; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstRank { - None = 0, - Marginal = 64, - Secondary = 128, - Primary = 256, -} -pub const GST_RANK_NONE: GstRank = GstRank::None; -pub const GST_RANK_MARGINAL: GstRank = GstRank::Marginal; -pub const GST_RANK_SECONDARY: GstRank = GstRank::Secondary; -pub const GST_RANK_PRIMARY: GstRank = GstRank::Primary; +pub type GstRank = c_int; +pub const GST_RANK_NONE: GstRank = 0; +pub const GST_RANK_MARGINAL: GstRank = 64; +pub const GST_RANK_SECONDARY: GstRank = 128; +pub const GST_RANK_PRIMARY: GstRank = 256; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstResourceError { - Failed = 1, - TooLazy = 2, - NotFound = 3, - Busy = 4, - OpenRead = 5, - OpenWrite = 6, - OpenReadWrite = 7, - Close = 8, - Read = 9, - Write = 10, - Seek = 11, - Sync = 12, - Settings = 13, - NoSpaceLeft = 14, - NotAuthorized = 15, - NumErrors = 16, -} -pub const GST_RESOURCE_ERROR_FAILED: GstResourceError = GstResourceError::Failed; -pub const GST_RESOURCE_ERROR_TOO_LAZY: GstResourceError = GstResourceError::TooLazy; -pub const GST_RESOURCE_ERROR_NOT_FOUND: GstResourceError = GstResourceError::NotFound; -pub const GST_RESOURCE_ERROR_BUSY: GstResourceError = GstResourceError::Busy; -pub const GST_RESOURCE_ERROR_OPEN_READ: GstResourceError = GstResourceError::OpenRead; -pub const GST_RESOURCE_ERROR_OPEN_WRITE: GstResourceError = GstResourceError::OpenWrite; -pub const GST_RESOURCE_ERROR_OPEN_READ_WRITE: GstResourceError = GstResourceError::OpenReadWrite; -pub const GST_RESOURCE_ERROR_CLOSE: GstResourceError = GstResourceError::Close; -pub const GST_RESOURCE_ERROR_READ: GstResourceError = GstResourceError::Read; -pub const GST_RESOURCE_ERROR_WRITE: GstResourceError = GstResourceError::Write; -pub const GST_RESOURCE_ERROR_SEEK: GstResourceError = GstResourceError::Seek; -pub const GST_RESOURCE_ERROR_SYNC: GstResourceError = GstResourceError::Sync; -pub const GST_RESOURCE_ERROR_SETTINGS: GstResourceError = GstResourceError::Settings; -pub const GST_RESOURCE_ERROR_NO_SPACE_LEFT: GstResourceError = GstResourceError::NoSpaceLeft; -pub const GST_RESOURCE_ERROR_NOT_AUTHORIZED: GstResourceError = GstResourceError::NotAuthorized; -pub const GST_RESOURCE_ERROR_NUM_ERRORS: GstResourceError = GstResourceError::NumErrors; +pub type GstResourceError = c_int; +pub const GST_RESOURCE_ERROR_FAILED: GstResourceError = 1; +pub const GST_RESOURCE_ERROR_TOO_LAZY: GstResourceError = 2; +pub const GST_RESOURCE_ERROR_NOT_FOUND: GstResourceError = 3; +pub const GST_RESOURCE_ERROR_BUSY: GstResourceError = 4; +pub const GST_RESOURCE_ERROR_OPEN_READ: GstResourceError = 5; +pub const GST_RESOURCE_ERROR_OPEN_WRITE: GstResourceError = 6; +pub const GST_RESOURCE_ERROR_OPEN_READ_WRITE: GstResourceError = 7; +pub const GST_RESOURCE_ERROR_CLOSE: GstResourceError = 8; +pub const GST_RESOURCE_ERROR_READ: GstResourceError = 9; +pub const GST_RESOURCE_ERROR_WRITE: GstResourceError = 10; +pub const GST_RESOURCE_ERROR_SEEK: GstResourceError = 11; +pub const GST_RESOURCE_ERROR_SYNC: GstResourceError = 12; +pub const GST_RESOURCE_ERROR_SETTINGS: GstResourceError = 13; +pub const GST_RESOURCE_ERROR_NO_SPACE_LEFT: GstResourceError = 14; +pub const GST_RESOURCE_ERROR_NOT_AUTHORIZED: GstResourceError = 15; +pub const GST_RESOURCE_ERROR_NUM_ERRORS: GstResourceError = 16; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstSearchMode { - Exact = 0, - Before = 1, - After = 2, -} -pub const GST_SEARCH_MODE_EXACT: GstSearchMode = GstSearchMode::Exact; -pub const GST_SEARCH_MODE_BEFORE: GstSearchMode = GstSearchMode::Before; -pub const GST_SEARCH_MODE_AFTER: GstSearchMode = GstSearchMode::After; +pub type GstSearchMode = c_int; +pub const GST_SEARCH_MODE_EXACT: GstSearchMode = 0; +pub const GST_SEARCH_MODE_BEFORE: GstSearchMode = 1; +pub const GST_SEARCH_MODE_AFTER: GstSearchMode = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstSeekType { - None = 0, - Set = 1, - End = 2, -} -pub const GST_SEEK_TYPE_NONE: GstSeekType = GstSeekType::None; -pub const GST_SEEK_TYPE_SET: GstSeekType = GstSeekType::Set; -pub const GST_SEEK_TYPE_END: GstSeekType = GstSeekType::End; +pub type GstSeekType = c_int; +pub const GST_SEEK_TYPE_NONE: GstSeekType = 0; +pub const GST_SEEK_TYPE_SET: GstSeekType = 1; +pub const GST_SEEK_TYPE_END: GstSeekType = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstState { - VoidPending = 0, - Null = 1, - Ready = 2, - Paused = 3, - Playing = 4, -} -pub const GST_STATE_VOID_PENDING: GstState = GstState::VoidPending; -pub const GST_STATE_NULL: GstState = GstState::Null; -pub const GST_STATE_READY: GstState = GstState::Ready; -pub const GST_STATE_PAUSED: GstState = GstState::Paused; -pub const GST_STATE_PLAYING: GstState = GstState::Playing; +pub type GstState = c_int; +pub const GST_STATE_VOID_PENDING: GstState = 0; +pub const GST_STATE_NULL: GstState = 1; +pub const GST_STATE_READY: GstState = 2; +pub const GST_STATE_PAUSED: GstState = 3; +pub const GST_STATE_PLAYING: GstState = 4; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstStateChange { - NullToReady = 10, - ReadyToPaused = 19, - PausedToPlaying = 28, - PlayingToPaused = 35, - PausedToReady = 26, - ReadyToNull = 17, -} -pub const GST_STATE_CHANGE_NULL_TO_READY: GstStateChange = GstStateChange::NullToReady; -pub const GST_STATE_CHANGE_READY_TO_PAUSED: GstStateChange = GstStateChange::ReadyToPaused; -pub const GST_STATE_CHANGE_PAUSED_TO_PLAYING: GstStateChange = GstStateChange::PausedToPlaying; -pub const GST_STATE_CHANGE_PLAYING_TO_PAUSED: GstStateChange = GstStateChange::PlayingToPaused; -pub const GST_STATE_CHANGE_PAUSED_TO_READY: GstStateChange = GstStateChange::PausedToReady; -pub const GST_STATE_CHANGE_READY_TO_NULL: GstStateChange = GstStateChange::ReadyToNull; +pub type GstStateChange = c_int; +pub const GST_STATE_CHANGE_NULL_TO_READY: GstStateChange = 10; +pub const GST_STATE_CHANGE_READY_TO_PAUSED: GstStateChange = 19; +pub const GST_STATE_CHANGE_PAUSED_TO_PLAYING: GstStateChange = 28; +pub const GST_STATE_CHANGE_PLAYING_TO_PAUSED: GstStateChange = 35; +pub const GST_STATE_CHANGE_PAUSED_TO_READY: GstStateChange = 26; +pub const GST_STATE_CHANGE_READY_TO_NULL: GstStateChange = 17; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstStateChangeReturn { - Failure = 0, - Success = 1, - Async = 2, - NoPreroll = 3, -} -pub const GST_STATE_CHANGE_FAILURE: GstStateChangeReturn = GstStateChangeReturn::Failure; -pub const GST_STATE_CHANGE_SUCCESS: GstStateChangeReturn = GstStateChangeReturn::Success; -pub const GST_STATE_CHANGE_ASYNC: GstStateChangeReturn = GstStateChangeReturn::Async; -pub const GST_STATE_CHANGE_NO_PREROLL: GstStateChangeReturn = GstStateChangeReturn::NoPreroll; +pub type GstStateChangeReturn = c_int; +pub const GST_STATE_CHANGE_FAILURE: GstStateChangeReturn = 0; +pub const GST_STATE_CHANGE_SUCCESS: GstStateChangeReturn = 1; +pub const GST_STATE_CHANGE_ASYNC: GstStateChangeReturn = 2; +pub const GST_STATE_CHANGE_NO_PREROLL: GstStateChangeReturn = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstStreamError { - Failed = 1, - TooLazy = 2, - NotImplemented = 3, - TypeNotFound = 4, - WrongType = 5, - CodecNotFound = 6, - Decode = 7, - Encode = 8, - Demux = 9, - Mux = 10, - Format = 11, - Decrypt = 12, - DecryptNokey = 13, - NumErrors = 14, -} -pub const GST_STREAM_ERROR_FAILED: GstStreamError = GstStreamError::Failed; -pub const GST_STREAM_ERROR_TOO_LAZY: GstStreamError = GstStreamError::TooLazy; -pub const GST_STREAM_ERROR_NOT_IMPLEMENTED: GstStreamError = GstStreamError::NotImplemented; -pub const GST_STREAM_ERROR_TYPE_NOT_FOUND: GstStreamError = GstStreamError::TypeNotFound; -pub const GST_STREAM_ERROR_WRONG_TYPE: GstStreamError = GstStreamError::WrongType; -pub const GST_STREAM_ERROR_CODEC_NOT_FOUND: GstStreamError = GstStreamError::CodecNotFound; -pub const GST_STREAM_ERROR_DECODE: GstStreamError = GstStreamError::Decode; -pub const GST_STREAM_ERROR_ENCODE: GstStreamError = GstStreamError::Encode; -pub const GST_STREAM_ERROR_DEMUX: GstStreamError = GstStreamError::Demux; -pub const GST_STREAM_ERROR_MUX: GstStreamError = GstStreamError::Mux; -pub const GST_STREAM_ERROR_FORMAT: GstStreamError = GstStreamError::Format; -pub const GST_STREAM_ERROR_DECRYPT: GstStreamError = GstStreamError::Decrypt; -pub const GST_STREAM_ERROR_DECRYPT_NOKEY: GstStreamError = GstStreamError::DecryptNokey; -pub const GST_STREAM_ERROR_NUM_ERRORS: GstStreamError = GstStreamError::NumErrors; +pub type GstStreamError = c_int; +pub const GST_STREAM_ERROR_FAILED: GstStreamError = 1; +pub const GST_STREAM_ERROR_TOO_LAZY: GstStreamError = 2; +pub const GST_STREAM_ERROR_NOT_IMPLEMENTED: GstStreamError = 3; +pub const GST_STREAM_ERROR_TYPE_NOT_FOUND: GstStreamError = 4; +pub const GST_STREAM_ERROR_WRONG_TYPE: GstStreamError = 5; +pub const GST_STREAM_ERROR_CODEC_NOT_FOUND: GstStreamError = 6; +pub const GST_STREAM_ERROR_DECODE: GstStreamError = 7; +pub const GST_STREAM_ERROR_ENCODE: GstStreamError = 8; +pub const GST_STREAM_ERROR_DEMUX: GstStreamError = 9; +pub const GST_STREAM_ERROR_MUX: GstStreamError = 10; +pub const GST_STREAM_ERROR_FORMAT: GstStreamError = 11; +pub const GST_STREAM_ERROR_DECRYPT: GstStreamError = 12; +pub const GST_STREAM_ERROR_DECRYPT_NOKEY: GstStreamError = 13; +pub const GST_STREAM_ERROR_NUM_ERRORS: GstStreamError = 14; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstStreamStatusType { - Create = 0, - Enter = 1, - Leave = 2, - Destroy = 3, - Start = 8, - Pause = 9, - Stop = 10, -} -pub const GST_STREAM_STATUS_TYPE_CREATE: GstStreamStatusType = GstStreamStatusType::Create; -pub const GST_STREAM_STATUS_TYPE_ENTER: GstStreamStatusType = GstStreamStatusType::Enter; -pub const GST_STREAM_STATUS_TYPE_LEAVE: GstStreamStatusType = GstStreamStatusType::Leave; -pub const GST_STREAM_STATUS_TYPE_DESTROY: GstStreamStatusType = GstStreamStatusType::Destroy; -pub const GST_STREAM_STATUS_TYPE_START: GstStreamStatusType = GstStreamStatusType::Start; -pub const GST_STREAM_STATUS_TYPE_PAUSE: GstStreamStatusType = GstStreamStatusType::Pause; -pub const GST_STREAM_STATUS_TYPE_STOP: GstStreamStatusType = GstStreamStatusType::Stop; +pub type GstStreamStatusType = c_int; +pub const GST_STREAM_STATUS_TYPE_CREATE: GstStreamStatusType = 0; +pub const GST_STREAM_STATUS_TYPE_ENTER: GstStreamStatusType = 1; +pub const GST_STREAM_STATUS_TYPE_LEAVE: GstStreamStatusType = 2; +pub const GST_STREAM_STATUS_TYPE_DESTROY: GstStreamStatusType = 3; +pub const GST_STREAM_STATUS_TYPE_START: GstStreamStatusType = 8; +pub const GST_STREAM_STATUS_TYPE_PAUSE: GstStreamStatusType = 9; +pub const GST_STREAM_STATUS_TYPE_STOP: GstStreamStatusType = 10; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstStructureChangeType { - Link = 0, - Unlink = 1, -} -pub const GST_STRUCTURE_CHANGE_TYPE_PAD_LINK: GstStructureChangeType = GstStructureChangeType::Link; -pub const GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK: GstStructureChangeType = GstStructureChangeType::Unlink; +pub type GstStructureChangeType = c_int; +pub const GST_STRUCTURE_CHANGE_TYPE_PAD_LINK: GstStructureChangeType = 0; +pub const GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK: GstStructureChangeType = 1; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstTagFlag { - Undefined = 0, - Meta = 1, - Encoded = 2, - Decoded = 3, - Count = 4, -} -pub const GST_TAG_FLAG_UNDEFINED: GstTagFlag = GstTagFlag::Undefined; -pub const GST_TAG_FLAG_META: GstTagFlag = GstTagFlag::Meta; -pub const GST_TAG_FLAG_ENCODED: GstTagFlag = GstTagFlag::Encoded; -pub const GST_TAG_FLAG_DECODED: GstTagFlag = GstTagFlag::Decoded; -pub const GST_TAG_FLAG_COUNT: GstTagFlag = GstTagFlag::Count; +pub type GstTagFlag = c_int; +pub const GST_TAG_FLAG_UNDEFINED: GstTagFlag = 0; +pub const GST_TAG_FLAG_META: GstTagFlag = 1; +pub const GST_TAG_FLAG_ENCODED: GstTagFlag = 2; +pub const GST_TAG_FLAG_DECODED: GstTagFlag = 3; +pub const GST_TAG_FLAG_COUNT: GstTagFlag = 4; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstTagMergeMode { - Undefined = 0, - ReplaceAll = 1, - Replace = 2, - Append = 3, - Prepend = 4, - Keep = 5, - KeepAll = 6, - Count = 7, -} -pub const GST_TAG_MERGE_UNDEFINED: GstTagMergeMode = GstTagMergeMode::Undefined; -pub const GST_TAG_MERGE_REPLACE_ALL: GstTagMergeMode = GstTagMergeMode::ReplaceAll; -pub const GST_TAG_MERGE_REPLACE: GstTagMergeMode = GstTagMergeMode::Replace; -pub const GST_TAG_MERGE_APPEND: GstTagMergeMode = GstTagMergeMode::Append; -pub const GST_TAG_MERGE_PREPEND: GstTagMergeMode = GstTagMergeMode::Prepend; -pub const GST_TAG_MERGE_KEEP: GstTagMergeMode = GstTagMergeMode::Keep; -pub const GST_TAG_MERGE_KEEP_ALL: GstTagMergeMode = GstTagMergeMode::KeepAll; -pub const GST_TAG_MERGE_COUNT: GstTagMergeMode = GstTagMergeMode::Count; +pub type GstTagMergeMode = c_int; +pub const GST_TAG_MERGE_UNDEFINED: GstTagMergeMode = 0; +pub const GST_TAG_MERGE_REPLACE_ALL: GstTagMergeMode = 1; +pub const GST_TAG_MERGE_REPLACE: GstTagMergeMode = 2; +pub const GST_TAG_MERGE_APPEND: GstTagMergeMode = 3; +pub const GST_TAG_MERGE_PREPEND: GstTagMergeMode = 4; +pub const GST_TAG_MERGE_KEEP: GstTagMergeMode = 5; +pub const GST_TAG_MERGE_KEEP_ALL: GstTagMergeMode = 6; +pub const GST_TAG_MERGE_COUNT: GstTagMergeMode = 7; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstTagScope { - Stream = 0, - Global = 1, -} -pub const GST_TAG_SCOPE_STREAM: GstTagScope = GstTagScope::Stream; -pub const GST_TAG_SCOPE_GLOBAL: GstTagScope = GstTagScope::Global; +pub type GstTagScope = c_int; +pub const GST_TAG_SCOPE_STREAM: GstTagScope = 0; +pub const GST_TAG_SCOPE_GLOBAL: GstTagScope = 1; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstTaskState { - Started = 0, - Stopped = 1, - Paused = 2, -} -pub const GST_TASK_STARTED: GstTaskState = GstTaskState::Started; -pub const GST_TASK_STOPPED: GstTaskState = GstTaskState::Stopped; -pub const GST_TASK_PAUSED: GstTaskState = GstTaskState::Paused; +pub type GstTaskState = c_int; +pub const GST_TASK_STARTED: GstTaskState = 0; +pub const GST_TASK_STOPPED: GstTaskState = 1; +pub const GST_TASK_PAUSED: GstTaskState = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstTocEntryType { - Angle = -3, - Version = -2, - Edition = -1, - Invalid = 0, - Title = 1, - Track = 2, - Chapter = 3, -} -pub const GST_TOC_ENTRY_TYPE_ANGLE: GstTocEntryType = GstTocEntryType::Angle; -pub const GST_TOC_ENTRY_TYPE_VERSION: GstTocEntryType = GstTocEntryType::Version; -pub const GST_TOC_ENTRY_TYPE_EDITION: GstTocEntryType = GstTocEntryType::Edition; -pub const GST_TOC_ENTRY_TYPE_INVALID: GstTocEntryType = GstTocEntryType::Invalid; -pub const GST_TOC_ENTRY_TYPE_TITLE: GstTocEntryType = GstTocEntryType::Title; -pub const GST_TOC_ENTRY_TYPE_TRACK: GstTocEntryType = GstTocEntryType::Track; -pub const GST_TOC_ENTRY_TYPE_CHAPTER: GstTocEntryType = GstTocEntryType::Chapter; +pub type GstTocEntryType = c_int; +pub const GST_TOC_ENTRY_TYPE_ANGLE: GstTocEntryType = -3; +pub const GST_TOC_ENTRY_TYPE_VERSION: GstTocEntryType = -2; +pub const GST_TOC_ENTRY_TYPE_EDITION: GstTocEntryType = -1; +pub const GST_TOC_ENTRY_TYPE_INVALID: GstTocEntryType = 0; +pub const GST_TOC_ENTRY_TYPE_TITLE: GstTocEntryType = 1; +pub const GST_TOC_ENTRY_TYPE_TRACK: GstTocEntryType = 2; +pub const GST_TOC_ENTRY_TYPE_CHAPTER: GstTocEntryType = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstTocLoopType { - None = 0, - Forward = 1, - Reverse = 2, - PingPong = 3, -} -pub const GST_TOC_LOOP_NONE: GstTocLoopType = GstTocLoopType::None; -pub const GST_TOC_LOOP_FORWARD: GstTocLoopType = GstTocLoopType::Forward; -pub const GST_TOC_LOOP_REVERSE: GstTocLoopType = GstTocLoopType::Reverse; -pub const GST_TOC_LOOP_PING_PONG: GstTocLoopType = GstTocLoopType::PingPong; +pub type GstTocLoopType = c_int; +pub const GST_TOC_LOOP_NONE: GstTocLoopType = 0; +pub const GST_TOC_LOOP_FORWARD: GstTocLoopType = 1; +pub const GST_TOC_LOOP_REVERSE: GstTocLoopType = 2; +pub const GST_TOC_LOOP_PING_PONG: GstTocLoopType = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstTocScope { - Global = 1, - Current = 2, -} -pub const GST_TOC_SCOPE_GLOBAL: GstTocScope = GstTocScope::Global; -pub const GST_TOC_SCOPE_CURRENT: GstTocScope = GstTocScope::Current; +pub type GstTocScope = c_int; +pub const GST_TOC_SCOPE_GLOBAL: GstTocScope = 1; +pub const GST_TOC_SCOPE_CURRENT: GstTocScope = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstTracerValueScope { - Process = 0, - Thread = 1, - Element = 2, - Pad = 3, -} -pub const GST_TRACER_VALUE_SCOPE_PROCESS: GstTracerValueScope = GstTracerValueScope::Process; -pub const GST_TRACER_VALUE_SCOPE_THREAD: GstTracerValueScope = GstTracerValueScope::Thread; -pub const GST_TRACER_VALUE_SCOPE_ELEMENT: GstTracerValueScope = GstTracerValueScope::Element; -pub const GST_TRACER_VALUE_SCOPE_PAD: GstTracerValueScope = GstTracerValueScope::Pad; +pub type GstTracerValueScope = c_int; +pub const GST_TRACER_VALUE_SCOPE_PROCESS: GstTracerValueScope = 0; +pub const GST_TRACER_VALUE_SCOPE_THREAD: GstTracerValueScope = 1; +pub const GST_TRACER_VALUE_SCOPE_ELEMENT: GstTracerValueScope = 2; +pub const GST_TRACER_VALUE_SCOPE_PAD: GstTracerValueScope = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstTypeFindProbability { - None = 0, - Minimum = 1, - Possible = 50, - Likely = 80, - NearlyCertain = 99, - Maximum = 100, -} -pub const GST_TYPE_FIND_NONE: GstTypeFindProbability = GstTypeFindProbability::None; -pub const GST_TYPE_FIND_MINIMUM: GstTypeFindProbability = GstTypeFindProbability::Minimum; -pub const GST_TYPE_FIND_POSSIBLE: GstTypeFindProbability = GstTypeFindProbability::Possible; -pub const GST_TYPE_FIND_LIKELY: GstTypeFindProbability = GstTypeFindProbability::Likely; -pub const GST_TYPE_FIND_NEARLY_CERTAIN: GstTypeFindProbability = GstTypeFindProbability::NearlyCertain; -pub const GST_TYPE_FIND_MAXIMUM: GstTypeFindProbability = GstTypeFindProbability::Maximum; +pub type GstTypeFindProbability = c_int; +pub const GST_TYPE_FIND_NONE: GstTypeFindProbability = 0; +pub const GST_TYPE_FIND_MINIMUM: GstTypeFindProbability = 1; +pub const GST_TYPE_FIND_POSSIBLE: GstTypeFindProbability = 50; +pub const GST_TYPE_FIND_LIKELY: GstTypeFindProbability = 80; +pub const GST_TYPE_FIND_NEARLY_CERTAIN: GstTypeFindProbability = 99; +pub const GST_TYPE_FIND_MAXIMUM: GstTypeFindProbability = 100; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstURIError { - UnsupportedProtocol = 0, - BadUri = 1, - BadState = 2, - BadReference = 3, -} -pub const GST_URI_ERROR_UNSUPPORTED_PROTOCOL: GstURIError = GstURIError::UnsupportedProtocol; -pub const GST_URI_ERROR_BAD_URI: GstURIError = GstURIError::BadUri; -pub const GST_URI_ERROR_BAD_STATE: GstURIError = GstURIError::BadState; -pub const GST_URI_ERROR_BAD_REFERENCE: GstURIError = GstURIError::BadReference; +pub type GstURIError = c_int; +pub const GST_URI_ERROR_UNSUPPORTED_PROTOCOL: GstURIError = 0; +pub const GST_URI_ERROR_BAD_URI: GstURIError = 1; +pub const GST_URI_ERROR_BAD_STATE: GstURIError = 2; +pub const GST_URI_ERROR_BAD_REFERENCE: GstURIError = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstURIType { - Unknown = 0, - Sink = 1, - Src = 2, -} -pub const GST_URI_UNKNOWN: GstURIType = GstURIType::Unknown; -pub const GST_URI_SINK: GstURIType = GstURIType::Sink; -pub const GST_URI_SRC: GstURIType = GstURIType::Src; +pub type GstURIType = c_int; +pub const GST_URI_UNKNOWN: GstURIType = 0; +pub const GST_URI_SINK: GstURIType = 1; +pub const GST_URI_SRC: GstURIType = 2; // Constants pub const GST_ALLOCATOR_SYSMEM: *const c_char = b"SystemMemory\0" as *const u8 as *const c_char; diff --git a/gstreamer-tag-sys/src/lib.rs b/gstreamer-tag-sys/src/lib.rs index f8181eb1c..0e4c8723d 100644 --- a/gstreamer-tag-sys/src/lib.rs +++ b/gstreamer-tag-sys/src/lib.rs @@ -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 #![allow(non_camel_case_types, non_upper_case_globals)] @@ -18,61 +18,32 @@ use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double, use glib::{gboolean, gconstpointer, gpointer, GType, Volatile}; // Enums -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstTagDemuxResult { - BrokenTag = 0, - Again = 1, - Ok = 2, -} -pub const GST_TAG_DEMUX_RESULT_BROKEN_TAG: GstTagDemuxResult = GstTagDemuxResult::BrokenTag; -pub const GST_TAG_DEMUX_RESULT_AGAIN: GstTagDemuxResult = GstTagDemuxResult::Again; -pub const GST_TAG_DEMUX_RESULT_OK: GstTagDemuxResult = GstTagDemuxResult::Ok; +pub type GstTagDemuxResult = c_int; +pub const GST_TAG_DEMUX_RESULT_BROKEN_TAG: GstTagDemuxResult = 0; +pub const GST_TAG_DEMUX_RESULT_AGAIN: GstTagDemuxResult = 1; +pub const GST_TAG_DEMUX_RESULT_OK: GstTagDemuxResult = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstTagImageType { - None = -1, - Undefined = 0, - FrontCover = 1, - BackCover = 2, - LeafletPage = 3, - Medium = 4, - LeadArtist = 5, - Artist = 6, - Conductor = 7, - BandOrchestra = 8, - Composer = 9, - Lyricist = 10, - RecordingLocation = 11, - DuringRecording = 12, - DuringPerformance = 13, - VideoCapture = 14, - Fish = 15, - Illustration = 16, - BandArtistLogo = 17, - PublisherStudioLogo = 18, -} -pub const GST_TAG_IMAGE_TYPE_NONE: GstTagImageType = GstTagImageType::None; -pub const GST_TAG_IMAGE_TYPE_UNDEFINED: GstTagImageType = GstTagImageType::Undefined; -pub const GST_TAG_IMAGE_TYPE_FRONT_COVER: GstTagImageType = GstTagImageType::FrontCover; -pub const GST_TAG_IMAGE_TYPE_BACK_COVER: GstTagImageType = GstTagImageType::BackCover; -pub const GST_TAG_IMAGE_TYPE_LEAFLET_PAGE: GstTagImageType = GstTagImageType::LeafletPage; -pub const GST_TAG_IMAGE_TYPE_MEDIUM: GstTagImageType = GstTagImageType::Medium; -pub const GST_TAG_IMAGE_TYPE_LEAD_ARTIST: GstTagImageType = GstTagImageType::LeadArtist; -pub const GST_TAG_IMAGE_TYPE_ARTIST: GstTagImageType = GstTagImageType::Artist; -pub const GST_TAG_IMAGE_TYPE_CONDUCTOR: GstTagImageType = GstTagImageType::Conductor; -pub const GST_TAG_IMAGE_TYPE_BAND_ORCHESTRA: GstTagImageType = GstTagImageType::BandOrchestra; -pub const GST_TAG_IMAGE_TYPE_COMPOSER: GstTagImageType = GstTagImageType::Composer; -pub const GST_TAG_IMAGE_TYPE_LYRICIST: GstTagImageType = GstTagImageType::Lyricist; -pub const GST_TAG_IMAGE_TYPE_RECORDING_LOCATION: GstTagImageType = GstTagImageType::RecordingLocation; -pub const GST_TAG_IMAGE_TYPE_DURING_RECORDING: GstTagImageType = GstTagImageType::DuringRecording; -pub const GST_TAG_IMAGE_TYPE_DURING_PERFORMANCE: GstTagImageType = GstTagImageType::DuringPerformance; -pub const GST_TAG_IMAGE_TYPE_VIDEO_CAPTURE: GstTagImageType = GstTagImageType::VideoCapture; -pub const GST_TAG_IMAGE_TYPE_FISH: GstTagImageType = GstTagImageType::Fish; -pub const GST_TAG_IMAGE_TYPE_ILLUSTRATION: GstTagImageType = GstTagImageType::Illustration; -pub const GST_TAG_IMAGE_TYPE_BAND_ARTIST_LOGO: GstTagImageType = GstTagImageType::BandArtistLogo; -pub const GST_TAG_IMAGE_TYPE_PUBLISHER_STUDIO_LOGO: GstTagImageType = GstTagImageType::PublisherStudioLogo; +pub type GstTagImageType = c_int; +pub const GST_TAG_IMAGE_TYPE_NONE: GstTagImageType = -1; +pub const GST_TAG_IMAGE_TYPE_UNDEFINED: GstTagImageType = 0; +pub const GST_TAG_IMAGE_TYPE_FRONT_COVER: GstTagImageType = 1; +pub const GST_TAG_IMAGE_TYPE_BACK_COVER: GstTagImageType = 2; +pub const GST_TAG_IMAGE_TYPE_LEAFLET_PAGE: GstTagImageType = 3; +pub const GST_TAG_IMAGE_TYPE_MEDIUM: GstTagImageType = 4; +pub const GST_TAG_IMAGE_TYPE_LEAD_ARTIST: GstTagImageType = 5; +pub const GST_TAG_IMAGE_TYPE_ARTIST: GstTagImageType = 6; +pub const GST_TAG_IMAGE_TYPE_CONDUCTOR: GstTagImageType = 7; +pub const GST_TAG_IMAGE_TYPE_BAND_ORCHESTRA: GstTagImageType = 8; +pub const GST_TAG_IMAGE_TYPE_COMPOSER: GstTagImageType = 9; +pub const GST_TAG_IMAGE_TYPE_LYRICIST: GstTagImageType = 10; +pub const GST_TAG_IMAGE_TYPE_RECORDING_LOCATION: GstTagImageType = 11; +pub const GST_TAG_IMAGE_TYPE_DURING_RECORDING: GstTagImageType = 12; +pub const GST_TAG_IMAGE_TYPE_DURING_PERFORMANCE: GstTagImageType = 13; +pub const GST_TAG_IMAGE_TYPE_VIDEO_CAPTURE: GstTagImageType = 14; +pub const GST_TAG_IMAGE_TYPE_FISH: GstTagImageType = 15; +pub const GST_TAG_IMAGE_TYPE_ILLUSTRATION: GstTagImageType = 16; +pub const GST_TAG_IMAGE_TYPE_BAND_ARTIST_LOGO: GstTagImageType = 17; +pub const GST_TAG_IMAGE_TYPE_PUBLISHER_STUDIO_LOGO: GstTagImageType = 18; // Constants pub const GST_TAG_CAPTURING_CONTRAST: *const c_char = b"capturing-contrast\0" as *const u8 as *const c_char; diff --git a/gstreamer-video-sys/src/lib.rs b/gstreamer-video-sys/src/lib.rs index 5d24b26a6..63f28644c 100644 --- a/gstreamer-video-sys/src/lib.rs +++ b/gstreamer-video-sys/src/lib.rs @@ -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 #![allow(non_camel_case_types, non_upper_case_globals)] @@ -19,596 +19,289 @@ use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double, use glib::{gboolean, gconstpointer, gpointer, GType, Volatile}; // Enums -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstColorBalanceType { - Hardware = 0, - Software = 1, -} -pub const GST_COLOR_BALANCE_HARDWARE: GstColorBalanceType = GstColorBalanceType::Hardware; -pub const GST_COLOR_BALANCE_SOFTWARE: GstColorBalanceType = GstColorBalanceType::Software; +pub type GstColorBalanceType = c_int; +pub const GST_COLOR_BALANCE_HARDWARE: GstColorBalanceType = 0; +pub const GST_COLOR_BALANCE_SOFTWARE: GstColorBalanceType = 1; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstNavigationCommand { - Invalid = 0, - Menu1 = 1, - Menu2 = 2, - Menu3 = 3, - Menu4 = 4, - Menu5 = 5, - Menu6 = 6, - Menu7 = 7, - Left = 20, - Right = 21, - Up = 22, - Down = 23, - Activate = 24, - PrevAngle = 30, - NextAngle = 31, -} -pub const GST_NAVIGATION_COMMAND_INVALID: GstNavigationCommand = GstNavigationCommand::Invalid; -pub const GST_NAVIGATION_COMMAND_MENU1: GstNavigationCommand = GstNavigationCommand::Menu1; -pub const GST_NAVIGATION_COMMAND_MENU2: GstNavigationCommand = GstNavigationCommand::Menu2; -pub const GST_NAVIGATION_COMMAND_MENU3: GstNavigationCommand = GstNavigationCommand::Menu3; -pub const GST_NAVIGATION_COMMAND_MENU4: GstNavigationCommand = GstNavigationCommand::Menu4; -pub const GST_NAVIGATION_COMMAND_MENU5: GstNavigationCommand = GstNavigationCommand::Menu5; -pub const GST_NAVIGATION_COMMAND_MENU6: GstNavigationCommand = GstNavigationCommand::Menu6; -pub const GST_NAVIGATION_COMMAND_MENU7: GstNavigationCommand = GstNavigationCommand::Menu7; -pub const GST_NAVIGATION_COMMAND_LEFT: GstNavigationCommand = GstNavigationCommand::Left; -pub const GST_NAVIGATION_COMMAND_RIGHT: GstNavigationCommand = GstNavigationCommand::Right; -pub const GST_NAVIGATION_COMMAND_UP: GstNavigationCommand = GstNavigationCommand::Up; -pub const GST_NAVIGATION_COMMAND_DOWN: GstNavigationCommand = GstNavigationCommand::Down; -pub const GST_NAVIGATION_COMMAND_ACTIVATE: GstNavigationCommand = GstNavigationCommand::Activate; -pub const GST_NAVIGATION_COMMAND_PREV_ANGLE: GstNavigationCommand = GstNavigationCommand::PrevAngle; -pub const GST_NAVIGATION_COMMAND_NEXT_ANGLE: GstNavigationCommand = GstNavigationCommand::NextAngle; +pub type GstNavigationCommand = c_int; +pub const GST_NAVIGATION_COMMAND_INVALID: GstNavigationCommand = 0; +pub const GST_NAVIGATION_COMMAND_MENU1: GstNavigationCommand = 1; +pub const GST_NAVIGATION_COMMAND_MENU2: GstNavigationCommand = 2; +pub const GST_NAVIGATION_COMMAND_MENU3: GstNavigationCommand = 3; +pub const GST_NAVIGATION_COMMAND_MENU4: GstNavigationCommand = 4; +pub const GST_NAVIGATION_COMMAND_MENU5: GstNavigationCommand = 5; +pub const GST_NAVIGATION_COMMAND_MENU6: GstNavigationCommand = 6; +pub const GST_NAVIGATION_COMMAND_MENU7: GstNavigationCommand = 7; +pub const GST_NAVIGATION_COMMAND_LEFT: GstNavigationCommand = 20; +pub const GST_NAVIGATION_COMMAND_RIGHT: GstNavigationCommand = 21; +pub const GST_NAVIGATION_COMMAND_UP: GstNavigationCommand = 22; +pub const GST_NAVIGATION_COMMAND_DOWN: GstNavigationCommand = 23; +pub const GST_NAVIGATION_COMMAND_ACTIVATE: GstNavigationCommand = 24; +pub const GST_NAVIGATION_COMMAND_PREV_ANGLE: GstNavigationCommand = 30; +pub const GST_NAVIGATION_COMMAND_NEXT_ANGLE: GstNavigationCommand = 31; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstNavigationEventType { - Invalid = 0, - KeyPress = 1, - KeyRelease = 2, - MouseButtonPress = 3, - MouseButtonRelease = 4, - MouseMove = 5, - Command = 6, -} -pub const GST_NAVIGATION_EVENT_INVALID: GstNavigationEventType = GstNavigationEventType::Invalid; -pub const GST_NAVIGATION_EVENT_KEY_PRESS: GstNavigationEventType = GstNavigationEventType::KeyPress; -pub const GST_NAVIGATION_EVENT_KEY_RELEASE: GstNavigationEventType = GstNavigationEventType::KeyRelease; -pub const GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS: GstNavigationEventType = GstNavigationEventType::MouseButtonPress; -pub const GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE: GstNavigationEventType = GstNavigationEventType::MouseButtonRelease; -pub const GST_NAVIGATION_EVENT_MOUSE_MOVE: GstNavigationEventType = GstNavigationEventType::MouseMove; -pub const GST_NAVIGATION_EVENT_COMMAND: GstNavigationEventType = GstNavigationEventType::Command; +pub type GstNavigationEventType = c_int; +pub const GST_NAVIGATION_EVENT_INVALID: GstNavigationEventType = 0; +pub const GST_NAVIGATION_EVENT_KEY_PRESS: GstNavigationEventType = 1; +pub const GST_NAVIGATION_EVENT_KEY_RELEASE: GstNavigationEventType = 2; +pub const GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS: GstNavigationEventType = 3; +pub const GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE: GstNavigationEventType = 4; +pub const GST_NAVIGATION_EVENT_MOUSE_MOVE: GstNavigationEventType = 5; +pub const GST_NAVIGATION_EVENT_COMMAND: GstNavigationEventType = 6; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstNavigationMessageType { - Invalid = 0, - MouseOver = 1, - CommandsChanged = 2, - AnglesChanged = 3, - Event = 4, -} -pub const GST_NAVIGATION_MESSAGE_INVALID: GstNavigationMessageType = GstNavigationMessageType::Invalid; -pub const GST_NAVIGATION_MESSAGE_MOUSE_OVER: GstNavigationMessageType = GstNavigationMessageType::MouseOver; -pub const GST_NAVIGATION_MESSAGE_COMMANDS_CHANGED: GstNavigationMessageType = GstNavigationMessageType::CommandsChanged; -pub const GST_NAVIGATION_MESSAGE_ANGLES_CHANGED: GstNavigationMessageType = GstNavigationMessageType::AnglesChanged; -pub const GST_NAVIGATION_MESSAGE_EVENT: GstNavigationMessageType = GstNavigationMessageType::Event; +pub type GstNavigationMessageType = c_int; +pub const GST_NAVIGATION_MESSAGE_INVALID: GstNavigationMessageType = 0; +pub const GST_NAVIGATION_MESSAGE_MOUSE_OVER: GstNavigationMessageType = 1; +pub const GST_NAVIGATION_MESSAGE_COMMANDS_CHANGED: GstNavigationMessageType = 2; +pub const GST_NAVIGATION_MESSAGE_ANGLES_CHANGED: GstNavigationMessageType = 3; +pub const GST_NAVIGATION_MESSAGE_EVENT: GstNavigationMessageType = 4; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstNavigationQueryType { - Invalid = 0, - Commands = 1, - Angles = 2, -} -pub const GST_NAVIGATION_QUERY_INVALID: GstNavigationQueryType = GstNavigationQueryType::Invalid; -pub const GST_NAVIGATION_QUERY_COMMANDS: GstNavigationQueryType = GstNavigationQueryType::Commands; -pub const GST_NAVIGATION_QUERY_ANGLES: GstNavigationQueryType = GstNavigationQueryType::Angles; +pub type GstNavigationQueryType = c_int; +pub const GST_NAVIGATION_QUERY_INVALID: GstNavigationQueryType = 0; +pub const GST_NAVIGATION_QUERY_COMMANDS: GstNavigationQueryType = 1; +pub const GST_NAVIGATION_QUERY_ANGLES: GstNavigationQueryType = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoAlphaMode { - Copy = 0, - Set = 1, - Mult = 2, -} -pub const GST_VIDEO_ALPHA_MODE_COPY: GstVideoAlphaMode = GstVideoAlphaMode::Copy; -pub const GST_VIDEO_ALPHA_MODE_SET: GstVideoAlphaMode = GstVideoAlphaMode::Set; -pub const GST_VIDEO_ALPHA_MODE_MULT: GstVideoAlphaMode = GstVideoAlphaMode::Mult; +pub type GstVideoAlphaMode = c_int; +pub const GST_VIDEO_ALPHA_MODE_COPY: GstVideoAlphaMode = 0; +pub const GST_VIDEO_ALPHA_MODE_SET: GstVideoAlphaMode = 1; +pub const GST_VIDEO_ALPHA_MODE_MULT: GstVideoAlphaMode = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoChromaMethod { - Nearest = 0, - Linear = 1, -} -pub const GST_VIDEO_CHROMA_METHOD_NEAREST: GstVideoChromaMethod = GstVideoChromaMethod::Nearest; -pub const GST_VIDEO_CHROMA_METHOD_LINEAR: GstVideoChromaMethod = GstVideoChromaMethod::Linear; +pub type GstVideoChromaMethod = c_int; +pub const GST_VIDEO_CHROMA_METHOD_NEAREST: GstVideoChromaMethod = 0; +pub const GST_VIDEO_CHROMA_METHOD_LINEAR: GstVideoChromaMethod = 1; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoChromaMode { - Full = 0, - UpsampleOnly = 1, - DownsampleOnly = 2, - None = 3, -} -pub const GST_VIDEO_CHROMA_MODE_FULL: GstVideoChromaMode = GstVideoChromaMode::Full; -pub const GST_VIDEO_CHROMA_MODE_UPSAMPLE_ONLY: GstVideoChromaMode = GstVideoChromaMode::UpsampleOnly; -pub const GST_VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY: GstVideoChromaMode = GstVideoChromaMode::DownsampleOnly; -pub const GST_VIDEO_CHROMA_MODE_NONE: GstVideoChromaMode = GstVideoChromaMode::None; +pub type GstVideoChromaMode = c_int; +pub const GST_VIDEO_CHROMA_MODE_FULL: GstVideoChromaMode = 0; +pub const GST_VIDEO_CHROMA_MODE_UPSAMPLE_ONLY: GstVideoChromaMode = 1; +pub const GST_VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY: GstVideoChromaMode = 2; +pub const GST_VIDEO_CHROMA_MODE_NONE: GstVideoChromaMode = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoColorMatrix { - Unknown = 0, - Rgb = 1, - Fcc = 2, - Bt709 = 3, - Bt601 = 4, - Smpte240m = 5, - Bt2020 = 6, -} -pub const GST_VIDEO_COLOR_MATRIX_UNKNOWN: GstVideoColorMatrix = GstVideoColorMatrix::Unknown; -pub const GST_VIDEO_COLOR_MATRIX_RGB: GstVideoColorMatrix = GstVideoColorMatrix::Rgb; -pub const GST_VIDEO_COLOR_MATRIX_FCC: GstVideoColorMatrix = GstVideoColorMatrix::Fcc; -pub const GST_VIDEO_COLOR_MATRIX_BT709: GstVideoColorMatrix = GstVideoColorMatrix::Bt709; -pub const GST_VIDEO_COLOR_MATRIX_BT601: GstVideoColorMatrix = GstVideoColorMatrix::Bt601; -pub const GST_VIDEO_COLOR_MATRIX_SMPTE240M: GstVideoColorMatrix = GstVideoColorMatrix::Smpte240m; -pub const GST_VIDEO_COLOR_MATRIX_BT2020: GstVideoColorMatrix = GstVideoColorMatrix::Bt2020; +pub type GstVideoColorMatrix = c_int; +pub const GST_VIDEO_COLOR_MATRIX_UNKNOWN: GstVideoColorMatrix = 0; +pub const GST_VIDEO_COLOR_MATRIX_RGB: GstVideoColorMatrix = 1; +pub const GST_VIDEO_COLOR_MATRIX_FCC: GstVideoColorMatrix = 2; +pub const GST_VIDEO_COLOR_MATRIX_BT709: GstVideoColorMatrix = 3; +pub const GST_VIDEO_COLOR_MATRIX_BT601: GstVideoColorMatrix = 4; +pub const GST_VIDEO_COLOR_MATRIX_SMPTE240M: GstVideoColorMatrix = 5; +pub const GST_VIDEO_COLOR_MATRIX_BT2020: GstVideoColorMatrix = 6; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoColorPrimaries { - Unknown = 0, - Bt709 = 1, - Bt470m = 2, - Bt470bg = 3, - Smpte170m = 4, - Smpte240m = 5, - Film = 6, - Bt2020 = 7, - Adobergb = 8, -} -pub const GST_VIDEO_COLOR_PRIMARIES_UNKNOWN: GstVideoColorPrimaries = GstVideoColorPrimaries::Unknown; -pub const GST_VIDEO_COLOR_PRIMARIES_BT709: GstVideoColorPrimaries = GstVideoColorPrimaries::Bt709; -pub const GST_VIDEO_COLOR_PRIMARIES_BT470M: GstVideoColorPrimaries = GstVideoColorPrimaries::Bt470m; -pub const GST_VIDEO_COLOR_PRIMARIES_BT470BG: GstVideoColorPrimaries = GstVideoColorPrimaries::Bt470bg; -pub const GST_VIDEO_COLOR_PRIMARIES_SMPTE170M: GstVideoColorPrimaries = GstVideoColorPrimaries::Smpte170m; -pub const GST_VIDEO_COLOR_PRIMARIES_SMPTE240M: GstVideoColorPrimaries = GstVideoColorPrimaries::Smpte240m; -pub const GST_VIDEO_COLOR_PRIMARIES_FILM: GstVideoColorPrimaries = GstVideoColorPrimaries::Film; -pub const GST_VIDEO_COLOR_PRIMARIES_BT2020: GstVideoColorPrimaries = GstVideoColorPrimaries::Bt2020; -pub const GST_VIDEO_COLOR_PRIMARIES_ADOBERGB: GstVideoColorPrimaries = GstVideoColorPrimaries::Adobergb; +pub type GstVideoColorPrimaries = c_int; +pub const GST_VIDEO_COLOR_PRIMARIES_UNKNOWN: GstVideoColorPrimaries = 0; +pub const GST_VIDEO_COLOR_PRIMARIES_BT709: GstVideoColorPrimaries = 1; +pub const GST_VIDEO_COLOR_PRIMARIES_BT470M: GstVideoColorPrimaries = 2; +pub const GST_VIDEO_COLOR_PRIMARIES_BT470BG: GstVideoColorPrimaries = 3; +pub const GST_VIDEO_COLOR_PRIMARIES_SMPTE170M: GstVideoColorPrimaries = 4; +pub const GST_VIDEO_COLOR_PRIMARIES_SMPTE240M: GstVideoColorPrimaries = 5; +pub const GST_VIDEO_COLOR_PRIMARIES_FILM: GstVideoColorPrimaries = 6; +pub const GST_VIDEO_COLOR_PRIMARIES_BT2020: GstVideoColorPrimaries = 7; +pub const GST_VIDEO_COLOR_PRIMARIES_ADOBERGB: GstVideoColorPrimaries = 8; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoColorRange { - Unknown = 0, - _0255 = 1, - _16235 = 2, -} -pub const GST_VIDEO_COLOR_RANGE_UNKNOWN: GstVideoColorRange = GstVideoColorRange::Unknown; -pub const GST_VIDEO_COLOR_RANGE_0_255: GstVideoColorRange = GstVideoColorRange::_0255; -pub const GST_VIDEO_COLOR_RANGE_16_235: GstVideoColorRange = GstVideoColorRange::_16235; +pub type GstVideoColorRange = c_int; +pub const GST_VIDEO_COLOR_RANGE_UNKNOWN: GstVideoColorRange = 0; +pub const GST_VIDEO_COLOR_RANGE_0_255: GstVideoColorRange = 1; +pub const GST_VIDEO_COLOR_RANGE_16_235: GstVideoColorRange = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoDitherMethod { - None = 0, - Verterr = 1, - FloydSteinberg = 2, - SierraLite = 3, - Bayer = 4, -} -pub const GST_VIDEO_DITHER_NONE: GstVideoDitherMethod = GstVideoDitherMethod::None; -pub const GST_VIDEO_DITHER_VERTERR: GstVideoDitherMethod = GstVideoDitherMethod::Verterr; -pub const GST_VIDEO_DITHER_FLOYD_STEINBERG: GstVideoDitherMethod = GstVideoDitherMethod::FloydSteinberg; -pub const GST_VIDEO_DITHER_SIERRA_LITE: GstVideoDitherMethod = GstVideoDitherMethod::SierraLite; -pub const GST_VIDEO_DITHER_BAYER: GstVideoDitherMethod = GstVideoDitherMethod::Bayer; +pub type GstVideoDitherMethod = c_int; +pub const GST_VIDEO_DITHER_NONE: GstVideoDitherMethod = 0; +pub const GST_VIDEO_DITHER_VERTERR: GstVideoDitherMethod = 1; +pub const GST_VIDEO_DITHER_FLOYD_STEINBERG: GstVideoDitherMethod = 2; +pub const GST_VIDEO_DITHER_SIERRA_LITE: GstVideoDitherMethod = 3; +pub const GST_VIDEO_DITHER_BAYER: GstVideoDitherMethod = 4; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoFieldOrder { - Unknown = 0, - TopFieldFirst = 1, - BottomFieldFirst = 2, -} -pub const GST_VIDEO_FIELD_ORDER_UNKNOWN: GstVideoFieldOrder = GstVideoFieldOrder::Unknown; -pub const GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST: GstVideoFieldOrder = GstVideoFieldOrder::TopFieldFirst; -pub const GST_VIDEO_FIELD_ORDER_BOTTOM_FIELD_FIRST: GstVideoFieldOrder = GstVideoFieldOrder::BottomFieldFirst; +pub type GstVideoFieldOrder = c_int; +pub const GST_VIDEO_FIELD_ORDER_UNKNOWN: GstVideoFieldOrder = 0; +pub const GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST: GstVideoFieldOrder = 1; +pub const GST_VIDEO_FIELD_ORDER_BOTTOM_FIELD_FIRST: GstVideoFieldOrder = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoFormat { - Unknown = 0, - Encoded = 1, - I420 = 2, - Yv12 = 3, - Yuy2 = 4, - Uyvy = 5, - Ayuv = 6, - Rgbx = 7, - Bgrx = 8, - Xrgb = 9, - Xbgr = 10, - Rgba = 11, - Bgra = 12, - Argb = 13, - Abgr = 14, - Rgb = 15, - Bgr = 16, - Y41b = 17, - Y42b = 18, - Yvyu = 19, - Y444 = 20, - V210 = 21, - V216 = 22, - Nv12 = 23, - Nv21 = 24, - Gray8 = 25, - Gray16Be = 26, - Gray16Le = 27, - V308 = 28, - Rgb16 = 29, - Bgr16 = 30, - Rgb15 = 31, - Bgr15 = 32, - Uyvp = 33, - A420 = 34, - Rgb8p = 35, - Yuv9 = 36, - Yvu9 = 37, - Iyu1 = 38, - Argb64 = 39, - Ayuv64 = 40, - R210 = 41, - I42010be = 42, - I42010le = 43, - I42210be = 44, - I42210le = 45, - Y44410be = 46, - Y44410le = 47, - Gbr = 48, - Gbr10be = 49, - Gbr10le = 50, - Nv16 = 51, - Nv24 = 52, - Nv1264z32 = 53, - A42010be = 54, - A42010le = 55, - A42210be = 56, - A42210le = 57, - A44410be = 58, - A44410le = 59, - Nv61 = 60, - P01010be = 61, - P01010le = 62, - Iyu2 = 63, - Vyuy = 64, - Gbra = 65, - Gbra10be = 66, - Gbra10le = 67, - Gbr12be = 68, - Gbr12le = 69, - Gbra12be = 70, - Gbra12le = 71, - I42012be = 72, - I42012le = 73, - I42212be = 74, - I42212le = 75, - Y44412be = 76, - Y44412le = 77, -} -pub const GST_VIDEO_FORMAT_UNKNOWN: GstVideoFormat = GstVideoFormat::Unknown; -pub const GST_VIDEO_FORMAT_ENCODED: GstVideoFormat = GstVideoFormat::Encoded; -pub const GST_VIDEO_FORMAT_I420: GstVideoFormat = GstVideoFormat::I420; -pub const GST_VIDEO_FORMAT_YV12: GstVideoFormat = GstVideoFormat::Yv12; -pub const GST_VIDEO_FORMAT_YUY2: GstVideoFormat = GstVideoFormat::Yuy2; -pub const GST_VIDEO_FORMAT_UYVY: GstVideoFormat = GstVideoFormat::Uyvy; -pub const GST_VIDEO_FORMAT_AYUV: GstVideoFormat = GstVideoFormat::Ayuv; -pub const GST_VIDEO_FORMAT_RGBx: GstVideoFormat = GstVideoFormat::Rgbx; -pub const GST_VIDEO_FORMAT_BGRx: GstVideoFormat = GstVideoFormat::Bgrx; -pub const GST_VIDEO_FORMAT_xRGB: GstVideoFormat = GstVideoFormat::Xrgb; -pub const GST_VIDEO_FORMAT_xBGR: GstVideoFormat = GstVideoFormat::Xbgr; -pub const GST_VIDEO_FORMAT_RGBA: GstVideoFormat = GstVideoFormat::Rgba; -pub const GST_VIDEO_FORMAT_BGRA: GstVideoFormat = GstVideoFormat::Bgra; -pub const GST_VIDEO_FORMAT_ARGB: GstVideoFormat = GstVideoFormat::Argb; -pub const GST_VIDEO_FORMAT_ABGR: GstVideoFormat = GstVideoFormat::Abgr; -pub const GST_VIDEO_FORMAT_RGB: GstVideoFormat = GstVideoFormat::Rgb; -pub const GST_VIDEO_FORMAT_BGR: GstVideoFormat = GstVideoFormat::Bgr; -pub const GST_VIDEO_FORMAT_Y41B: GstVideoFormat = GstVideoFormat::Y41b; -pub const GST_VIDEO_FORMAT_Y42B: GstVideoFormat = GstVideoFormat::Y42b; -pub const GST_VIDEO_FORMAT_YVYU: GstVideoFormat = GstVideoFormat::Yvyu; -pub const GST_VIDEO_FORMAT_Y444: GstVideoFormat = GstVideoFormat::Y444; -pub const GST_VIDEO_FORMAT_v210: GstVideoFormat = GstVideoFormat::V210; -pub const GST_VIDEO_FORMAT_v216: GstVideoFormat = GstVideoFormat::V216; -pub const GST_VIDEO_FORMAT_NV12: GstVideoFormat = GstVideoFormat::Nv12; -pub const GST_VIDEO_FORMAT_NV21: GstVideoFormat = GstVideoFormat::Nv21; -pub const GST_VIDEO_FORMAT_GRAY8: GstVideoFormat = GstVideoFormat::Gray8; -pub const GST_VIDEO_FORMAT_GRAY16_BE: GstVideoFormat = GstVideoFormat::Gray16Be; -pub const GST_VIDEO_FORMAT_GRAY16_LE: GstVideoFormat = GstVideoFormat::Gray16Le; -pub const GST_VIDEO_FORMAT_v308: GstVideoFormat = GstVideoFormat::V308; -pub const GST_VIDEO_FORMAT_RGB16: GstVideoFormat = GstVideoFormat::Rgb16; -pub const GST_VIDEO_FORMAT_BGR16: GstVideoFormat = GstVideoFormat::Bgr16; -pub const GST_VIDEO_FORMAT_RGB15: GstVideoFormat = GstVideoFormat::Rgb15; -pub const GST_VIDEO_FORMAT_BGR15: GstVideoFormat = GstVideoFormat::Bgr15; -pub const GST_VIDEO_FORMAT_UYVP: GstVideoFormat = GstVideoFormat::Uyvp; -pub const GST_VIDEO_FORMAT_A420: GstVideoFormat = GstVideoFormat::A420; -pub const GST_VIDEO_FORMAT_RGB8P: GstVideoFormat = GstVideoFormat::Rgb8p; -pub const GST_VIDEO_FORMAT_YUV9: GstVideoFormat = GstVideoFormat::Yuv9; -pub const GST_VIDEO_FORMAT_YVU9: GstVideoFormat = GstVideoFormat::Yvu9; -pub const GST_VIDEO_FORMAT_IYU1: GstVideoFormat = GstVideoFormat::Iyu1; -pub const GST_VIDEO_FORMAT_ARGB64: GstVideoFormat = GstVideoFormat::Argb64; -pub const GST_VIDEO_FORMAT_AYUV64: GstVideoFormat = GstVideoFormat::Ayuv64; -pub const GST_VIDEO_FORMAT_r210: GstVideoFormat = GstVideoFormat::R210; -pub const GST_VIDEO_FORMAT_I420_10BE: GstVideoFormat = GstVideoFormat::I42010be; -pub const GST_VIDEO_FORMAT_I420_10LE: GstVideoFormat = GstVideoFormat::I42010le; -pub const GST_VIDEO_FORMAT_I422_10BE: GstVideoFormat = GstVideoFormat::I42210be; -pub const GST_VIDEO_FORMAT_I422_10LE: GstVideoFormat = GstVideoFormat::I42210le; -pub const GST_VIDEO_FORMAT_Y444_10BE: GstVideoFormat = GstVideoFormat::Y44410be; -pub const GST_VIDEO_FORMAT_Y444_10LE: GstVideoFormat = GstVideoFormat::Y44410le; -pub const GST_VIDEO_FORMAT_GBR: GstVideoFormat = GstVideoFormat::Gbr; -pub const GST_VIDEO_FORMAT_GBR_10BE: GstVideoFormat = GstVideoFormat::Gbr10be; -pub const GST_VIDEO_FORMAT_GBR_10LE: GstVideoFormat = GstVideoFormat::Gbr10le; -pub const GST_VIDEO_FORMAT_NV16: GstVideoFormat = GstVideoFormat::Nv16; -pub const GST_VIDEO_FORMAT_NV24: GstVideoFormat = GstVideoFormat::Nv24; -pub const GST_VIDEO_FORMAT_NV12_64Z32: GstVideoFormat = GstVideoFormat::Nv1264z32; -pub const GST_VIDEO_FORMAT_A420_10BE: GstVideoFormat = GstVideoFormat::A42010be; -pub const GST_VIDEO_FORMAT_A420_10LE: GstVideoFormat = GstVideoFormat::A42010le; -pub const GST_VIDEO_FORMAT_A422_10BE: GstVideoFormat = GstVideoFormat::A42210be; -pub const GST_VIDEO_FORMAT_A422_10LE: GstVideoFormat = GstVideoFormat::A42210le; -pub const GST_VIDEO_FORMAT_A444_10BE: GstVideoFormat = GstVideoFormat::A44410be; -pub const GST_VIDEO_FORMAT_A444_10LE: GstVideoFormat = GstVideoFormat::A44410le; -pub const GST_VIDEO_FORMAT_NV61: GstVideoFormat = GstVideoFormat::Nv61; -pub const GST_VIDEO_FORMAT_P010_10BE: GstVideoFormat = GstVideoFormat::P01010be; -pub const GST_VIDEO_FORMAT_P010_10LE: GstVideoFormat = GstVideoFormat::P01010le; -pub const GST_VIDEO_FORMAT_IYU2: GstVideoFormat = GstVideoFormat::Iyu2; -pub const GST_VIDEO_FORMAT_VYUY: GstVideoFormat = GstVideoFormat::Vyuy; -pub const GST_VIDEO_FORMAT_GBRA: GstVideoFormat = GstVideoFormat::Gbra; -pub const GST_VIDEO_FORMAT_GBRA_10BE: GstVideoFormat = GstVideoFormat::Gbra10be; -pub const GST_VIDEO_FORMAT_GBRA_10LE: GstVideoFormat = GstVideoFormat::Gbra10le; -pub const GST_VIDEO_FORMAT_GBR_12BE: GstVideoFormat = GstVideoFormat::Gbr12be; -pub const GST_VIDEO_FORMAT_GBR_12LE: GstVideoFormat = GstVideoFormat::Gbr12le; -pub const GST_VIDEO_FORMAT_GBRA_12BE: GstVideoFormat = GstVideoFormat::Gbra12be; -pub const GST_VIDEO_FORMAT_GBRA_12LE: GstVideoFormat = GstVideoFormat::Gbra12le; -pub const GST_VIDEO_FORMAT_I420_12BE: GstVideoFormat = GstVideoFormat::I42012be; -pub const GST_VIDEO_FORMAT_I420_12LE: GstVideoFormat = GstVideoFormat::I42012le; -pub const GST_VIDEO_FORMAT_I422_12BE: GstVideoFormat = GstVideoFormat::I42212be; -pub const GST_VIDEO_FORMAT_I422_12LE: GstVideoFormat = GstVideoFormat::I42212le; -pub const GST_VIDEO_FORMAT_Y444_12BE: GstVideoFormat = GstVideoFormat::Y44412be; -pub const GST_VIDEO_FORMAT_Y444_12LE: GstVideoFormat = GstVideoFormat::Y44412le; +pub type GstVideoFormat = c_int; +pub const GST_VIDEO_FORMAT_UNKNOWN: GstVideoFormat = 0; +pub const GST_VIDEO_FORMAT_ENCODED: GstVideoFormat = 1; +pub const GST_VIDEO_FORMAT_I420: GstVideoFormat = 2; +pub const GST_VIDEO_FORMAT_YV12: GstVideoFormat = 3; +pub const GST_VIDEO_FORMAT_YUY2: GstVideoFormat = 4; +pub const GST_VIDEO_FORMAT_UYVY: GstVideoFormat = 5; +pub const GST_VIDEO_FORMAT_AYUV: GstVideoFormat = 6; +pub const GST_VIDEO_FORMAT_RGBx: GstVideoFormat = 7; +pub const GST_VIDEO_FORMAT_BGRx: GstVideoFormat = 8; +pub const GST_VIDEO_FORMAT_xRGB: GstVideoFormat = 9; +pub const GST_VIDEO_FORMAT_xBGR: GstVideoFormat = 10; +pub const GST_VIDEO_FORMAT_RGBA: GstVideoFormat = 11; +pub const GST_VIDEO_FORMAT_BGRA: GstVideoFormat = 12; +pub const GST_VIDEO_FORMAT_ARGB: GstVideoFormat = 13; +pub const GST_VIDEO_FORMAT_ABGR: GstVideoFormat = 14; +pub const GST_VIDEO_FORMAT_RGB: GstVideoFormat = 15; +pub const GST_VIDEO_FORMAT_BGR: GstVideoFormat = 16; +pub const GST_VIDEO_FORMAT_Y41B: GstVideoFormat = 17; +pub const GST_VIDEO_FORMAT_Y42B: GstVideoFormat = 18; +pub const GST_VIDEO_FORMAT_YVYU: GstVideoFormat = 19; +pub const GST_VIDEO_FORMAT_Y444: GstVideoFormat = 20; +pub const GST_VIDEO_FORMAT_v210: GstVideoFormat = 21; +pub const GST_VIDEO_FORMAT_v216: GstVideoFormat = 22; +pub const GST_VIDEO_FORMAT_NV12: GstVideoFormat = 23; +pub const GST_VIDEO_FORMAT_NV21: GstVideoFormat = 24; +pub const GST_VIDEO_FORMAT_GRAY8: GstVideoFormat = 25; +pub const GST_VIDEO_FORMAT_GRAY16_BE: GstVideoFormat = 26; +pub const GST_VIDEO_FORMAT_GRAY16_LE: GstVideoFormat = 27; +pub const GST_VIDEO_FORMAT_v308: GstVideoFormat = 28; +pub const GST_VIDEO_FORMAT_RGB16: GstVideoFormat = 29; +pub const GST_VIDEO_FORMAT_BGR16: GstVideoFormat = 30; +pub const GST_VIDEO_FORMAT_RGB15: GstVideoFormat = 31; +pub const GST_VIDEO_FORMAT_BGR15: GstVideoFormat = 32; +pub const GST_VIDEO_FORMAT_UYVP: GstVideoFormat = 33; +pub const GST_VIDEO_FORMAT_A420: GstVideoFormat = 34; +pub const GST_VIDEO_FORMAT_RGB8P: GstVideoFormat = 35; +pub const GST_VIDEO_FORMAT_YUV9: GstVideoFormat = 36; +pub const GST_VIDEO_FORMAT_YVU9: GstVideoFormat = 37; +pub const GST_VIDEO_FORMAT_IYU1: GstVideoFormat = 38; +pub const GST_VIDEO_FORMAT_ARGB64: GstVideoFormat = 39; +pub const GST_VIDEO_FORMAT_AYUV64: GstVideoFormat = 40; +pub const GST_VIDEO_FORMAT_r210: GstVideoFormat = 41; +pub const GST_VIDEO_FORMAT_I420_10BE: GstVideoFormat = 42; +pub const GST_VIDEO_FORMAT_I420_10LE: GstVideoFormat = 43; +pub const GST_VIDEO_FORMAT_I422_10BE: GstVideoFormat = 44; +pub const GST_VIDEO_FORMAT_I422_10LE: GstVideoFormat = 45; +pub const GST_VIDEO_FORMAT_Y444_10BE: GstVideoFormat = 46; +pub const GST_VIDEO_FORMAT_Y444_10LE: GstVideoFormat = 47; +pub const GST_VIDEO_FORMAT_GBR: GstVideoFormat = 48; +pub const GST_VIDEO_FORMAT_GBR_10BE: GstVideoFormat = 49; +pub const GST_VIDEO_FORMAT_GBR_10LE: GstVideoFormat = 50; +pub const GST_VIDEO_FORMAT_NV16: GstVideoFormat = 51; +pub const GST_VIDEO_FORMAT_NV24: GstVideoFormat = 52; +pub const GST_VIDEO_FORMAT_NV12_64Z32: GstVideoFormat = 53; +pub const GST_VIDEO_FORMAT_A420_10BE: GstVideoFormat = 54; +pub const GST_VIDEO_FORMAT_A420_10LE: GstVideoFormat = 55; +pub const GST_VIDEO_FORMAT_A422_10BE: GstVideoFormat = 56; +pub const GST_VIDEO_FORMAT_A422_10LE: GstVideoFormat = 57; +pub const GST_VIDEO_FORMAT_A444_10BE: GstVideoFormat = 58; +pub const GST_VIDEO_FORMAT_A444_10LE: GstVideoFormat = 59; +pub const GST_VIDEO_FORMAT_NV61: GstVideoFormat = 60; +pub const GST_VIDEO_FORMAT_P010_10BE: GstVideoFormat = 61; +pub const GST_VIDEO_FORMAT_P010_10LE: GstVideoFormat = 62; +pub const GST_VIDEO_FORMAT_IYU2: GstVideoFormat = 63; +pub const GST_VIDEO_FORMAT_VYUY: GstVideoFormat = 64; +pub const GST_VIDEO_FORMAT_GBRA: GstVideoFormat = 65; +pub const GST_VIDEO_FORMAT_GBRA_10BE: GstVideoFormat = 66; +pub const GST_VIDEO_FORMAT_GBRA_10LE: GstVideoFormat = 67; +pub const GST_VIDEO_FORMAT_GBR_12BE: GstVideoFormat = 68; +pub const GST_VIDEO_FORMAT_GBR_12LE: GstVideoFormat = 69; +pub const GST_VIDEO_FORMAT_GBRA_12BE: GstVideoFormat = 70; +pub const GST_VIDEO_FORMAT_GBRA_12LE: GstVideoFormat = 71; +pub const GST_VIDEO_FORMAT_I420_12BE: GstVideoFormat = 72; +pub const GST_VIDEO_FORMAT_I420_12LE: GstVideoFormat = 73; +pub const GST_VIDEO_FORMAT_I422_12BE: GstVideoFormat = 74; +pub const GST_VIDEO_FORMAT_I422_12LE: GstVideoFormat = 75; +pub const GST_VIDEO_FORMAT_Y444_12BE: GstVideoFormat = 76; +pub const GST_VIDEO_FORMAT_Y444_12LE: GstVideoFormat = 77; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoGLTextureOrientation { - NormalYNormal = 0, - NormalYFlip = 1, - FlipYNormal = 2, - FlipYFlip = 3, -} -pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL: GstVideoGLTextureOrientation = GstVideoGLTextureOrientation::NormalYNormal; -pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_FLIP: GstVideoGLTextureOrientation = GstVideoGLTextureOrientation::NormalYFlip; -pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_FLIP_Y_NORMAL: GstVideoGLTextureOrientation = GstVideoGLTextureOrientation::FlipYNormal; -pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_FLIP_Y_FLIP: GstVideoGLTextureOrientation = GstVideoGLTextureOrientation::FlipYFlip; +pub type GstVideoGLTextureOrientation = c_int; +pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL: GstVideoGLTextureOrientation = 0; +pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_FLIP: GstVideoGLTextureOrientation = 1; +pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_FLIP_Y_NORMAL: GstVideoGLTextureOrientation = 2; +pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_FLIP_Y_FLIP: GstVideoGLTextureOrientation = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoGLTextureType { - Luminance = 0, - LuminanceAlpha = 1, - Rgb16 = 2, - Rgb = 3, - Rgba = 4, - R = 5, - Rg = 6, -} -pub const GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE: GstVideoGLTextureType = GstVideoGLTextureType::Luminance; -pub const GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE_ALPHA: GstVideoGLTextureType = GstVideoGLTextureType::LuminanceAlpha; -pub const GST_VIDEO_GL_TEXTURE_TYPE_RGB16: GstVideoGLTextureType = GstVideoGLTextureType::Rgb16; -pub const GST_VIDEO_GL_TEXTURE_TYPE_RGB: GstVideoGLTextureType = GstVideoGLTextureType::Rgb; -pub const GST_VIDEO_GL_TEXTURE_TYPE_RGBA: GstVideoGLTextureType = GstVideoGLTextureType::Rgba; -pub const GST_VIDEO_GL_TEXTURE_TYPE_R: GstVideoGLTextureType = GstVideoGLTextureType::R; -pub const GST_VIDEO_GL_TEXTURE_TYPE_RG: GstVideoGLTextureType = GstVideoGLTextureType::Rg; +pub type GstVideoGLTextureType = c_int; +pub const GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE: GstVideoGLTextureType = 0; +pub const GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE_ALPHA: GstVideoGLTextureType = 1; +pub const GST_VIDEO_GL_TEXTURE_TYPE_RGB16: GstVideoGLTextureType = 2; +pub const GST_VIDEO_GL_TEXTURE_TYPE_RGB: GstVideoGLTextureType = 3; +pub const GST_VIDEO_GL_TEXTURE_TYPE_RGBA: GstVideoGLTextureType = 4; +pub const GST_VIDEO_GL_TEXTURE_TYPE_R: GstVideoGLTextureType = 5; +pub const GST_VIDEO_GL_TEXTURE_TYPE_RG: GstVideoGLTextureType = 6; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoGammaMode { - None = 0, - Remap = 1, -} -pub const GST_VIDEO_GAMMA_MODE_NONE: GstVideoGammaMode = GstVideoGammaMode::None; -pub const GST_VIDEO_GAMMA_MODE_REMAP: GstVideoGammaMode = GstVideoGammaMode::Remap; +pub type GstVideoGammaMode = c_int; +pub const GST_VIDEO_GAMMA_MODE_NONE: GstVideoGammaMode = 0; +pub const GST_VIDEO_GAMMA_MODE_REMAP: GstVideoGammaMode = 1; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoInterlaceMode { - Progressive = 0, - Interleaved = 1, - Mixed = 2, - Fields = 3, -} -pub const GST_VIDEO_INTERLACE_MODE_PROGRESSIVE: GstVideoInterlaceMode = GstVideoInterlaceMode::Progressive; -pub const GST_VIDEO_INTERLACE_MODE_INTERLEAVED: GstVideoInterlaceMode = GstVideoInterlaceMode::Interleaved; -pub const GST_VIDEO_INTERLACE_MODE_MIXED: GstVideoInterlaceMode = GstVideoInterlaceMode::Mixed; -pub const GST_VIDEO_INTERLACE_MODE_FIELDS: GstVideoInterlaceMode = GstVideoInterlaceMode::Fields; +pub type GstVideoInterlaceMode = c_int; +pub const GST_VIDEO_INTERLACE_MODE_PROGRESSIVE: GstVideoInterlaceMode = 0; +pub const GST_VIDEO_INTERLACE_MODE_INTERLEAVED: GstVideoInterlaceMode = 1; +pub const GST_VIDEO_INTERLACE_MODE_MIXED: GstVideoInterlaceMode = 2; +pub const GST_VIDEO_INTERLACE_MODE_FIELDS: GstVideoInterlaceMode = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoMatrixMode { - Full = 0, - InputOnly = 1, - OutputOnly = 2, - None = 3, -} -pub const GST_VIDEO_MATRIX_MODE_FULL: GstVideoMatrixMode = GstVideoMatrixMode::Full; -pub const GST_VIDEO_MATRIX_MODE_INPUT_ONLY: GstVideoMatrixMode = GstVideoMatrixMode::InputOnly; -pub const GST_VIDEO_MATRIX_MODE_OUTPUT_ONLY: GstVideoMatrixMode = GstVideoMatrixMode::OutputOnly; -pub const GST_VIDEO_MATRIX_MODE_NONE: GstVideoMatrixMode = GstVideoMatrixMode::None; +pub type GstVideoMatrixMode = c_int; +pub const GST_VIDEO_MATRIX_MODE_FULL: GstVideoMatrixMode = 0; +pub const GST_VIDEO_MATRIX_MODE_INPUT_ONLY: GstVideoMatrixMode = 1; +pub const GST_VIDEO_MATRIX_MODE_OUTPUT_ONLY: GstVideoMatrixMode = 2; +pub const GST_VIDEO_MATRIX_MODE_NONE: GstVideoMatrixMode = 3; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoMultiviewFramePacking { - None = -1, - Mono = 0, - Left = 1, - Right = 2, - SideBySide = 3, - SideBySideQuincunx = 4, - ColumnInterleaved = 5, - RowInterleaved = 6, - TopBottom = 7, - Checkerboard = 8, -} -pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_NONE: GstVideoMultiviewFramePacking = GstVideoMultiviewFramePacking::None; -pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_MONO: GstVideoMultiviewFramePacking = GstVideoMultiviewFramePacking::Mono; -pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_LEFT: GstVideoMultiviewFramePacking = GstVideoMultiviewFramePacking::Left; -pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_RIGHT: GstVideoMultiviewFramePacking = GstVideoMultiviewFramePacking::Right; -pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE: GstVideoMultiviewFramePacking = GstVideoMultiviewFramePacking::SideBySide; -pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE_QUINCUNX: GstVideoMultiviewFramePacking = GstVideoMultiviewFramePacking::SideBySideQuincunx; -pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_COLUMN_INTERLEAVED: GstVideoMultiviewFramePacking = GstVideoMultiviewFramePacking::ColumnInterleaved; -pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_ROW_INTERLEAVED: GstVideoMultiviewFramePacking = GstVideoMultiviewFramePacking::RowInterleaved; -pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_TOP_BOTTOM: GstVideoMultiviewFramePacking = GstVideoMultiviewFramePacking::TopBottom; -pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_CHECKERBOARD: GstVideoMultiviewFramePacking = GstVideoMultiviewFramePacking::Checkerboard; +pub type GstVideoMultiviewFramePacking = c_int; +pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_NONE: GstVideoMultiviewFramePacking = -1; +pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_MONO: GstVideoMultiviewFramePacking = 0; +pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_LEFT: GstVideoMultiviewFramePacking = 1; +pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_RIGHT: GstVideoMultiviewFramePacking = 2; +pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE: GstVideoMultiviewFramePacking = 3; +pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE_QUINCUNX: GstVideoMultiviewFramePacking = 4; +pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_COLUMN_INTERLEAVED: GstVideoMultiviewFramePacking = 5; +pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_ROW_INTERLEAVED: GstVideoMultiviewFramePacking = 6; +pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_TOP_BOTTOM: GstVideoMultiviewFramePacking = 7; +pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_CHECKERBOARD: GstVideoMultiviewFramePacking = 8; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoMultiviewMode { - None = -1, - Mono = 0, - Left = 1, - Right = 2, - SideBySide = 3, - SideBySideQuincunx = 4, - ColumnInterleaved = 5, - RowInterleaved = 6, - TopBottom = 7, - Checkerboard = 8, - FrameByFrame = 32, - MultiviewFrameByFrame = 33, - Separated = 34, -} -pub const GST_VIDEO_MULTIVIEW_MODE_NONE: GstVideoMultiviewMode = GstVideoMultiviewMode::None; -pub const GST_VIDEO_MULTIVIEW_MODE_MONO: GstVideoMultiviewMode = GstVideoMultiviewMode::Mono; -pub const GST_VIDEO_MULTIVIEW_MODE_LEFT: GstVideoMultiviewMode = GstVideoMultiviewMode::Left; -pub const GST_VIDEO_MULTIVIEW_MODE_RIGHT: GstVideoMultiviewMode = GstVideoMultiviewMode::Right; -pub const GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE: GstVideoMultiviewMode = GstVideoMultiviewMode::SideBySide; -pub const GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE_QUINCUNX: GstVideoMultiviewMode = GstVideoMultiviewMode::SideBySideQuincunx; -pub const GST_VIDEO_MULTIVIEW_MODE_COLUMN_INTERLEAVED: GstVideoMultiviewMode = GstVideoMultiviewMode::ColumnInterleaved; -pub const GST_VIDEO_MULTIVIEW_MODE_ROW_INTERLEAVED: GstVideoMultiviewMode = GstVideoMultiviewMode::RowInterleaved; -pub const GST_VIDEO_MULTIVIEW_MODE_TOP_BOTTOM: GstVideoMultiviewMode = GstVideoMultiviewMode::TopBottom; -pub const GST_VIDEO_MULTIVIEW_MODE_CHECKERBOARD: GstVideoMultiviewMode = GstVideoMultiviewMode::Checkerboard; -pub const GST_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME: GstVideoMultiviewMode = GstVideoMultiviewMode::FrameByFrame; -pub const GST_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME: GstVideoMultiviewMode = GstVideoMultiviewMode::MultiviewFrameByFrame; -pub const GST_VIDEO_MULTIVIEW_MODE_SEPARATED: GstVideoMultiviewMode = GstVideoMultiviewMode::Separated; +pub type GstVideoMultiviewMode = c_int; +pub const GST_VIDEO_MULTIVIEW_MODE_NONE: GstVideoMultiviewMode = -1; +pub const GST_VIDEO_MULTIVIEW_MODE_MONO: GstVideoMultiviewMode = 0; +pub const GST_VIDEO_MULTIVIEW_MODE_LEFT: GstVideoMultiviewMode = 1; +pub const GST_VIDEO_MULTIVIEW_MODE_RIGHT: GstVideoMultiviewMode = 2; +pub const GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE: GstVideoMultiviewMode = 3; +pub const GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE_QUINCUNX: GstVideoMultiviewMode = 4; +pub const GST_VIDEO_MULTIVIEW_MODE_COLUMN_INTERLEAVED: GstVideoMultiviewMode = 5; +pub const GST_VIDEO_MULTIVIEW_MODE_ROW_INTERLEAVED: GstVideoMultiviewMode = 6; +pub const GST_VIDEO_MULTIVIEW_MODE_TOP_BOTTOM: GstVideoMultiviewMode = 7; +pub const GST_VIDEO_MULTIVIEW_MODE_CHECKERBOARD: GstVideoMultiviewMode = 8; +pub const GST_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME: GstVideoMultiviewMode = 32; +pub const GST_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME: GstVideoMultiviewMode = 33; +pub const GST_VIDEO_MULTIVIEW_MODE_SEPARATED: GstVideoMultiviewMode = 34; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoOrientationMethod { - Identity = 0, - _90r = 1, - _180 = 2, - _90l = 3, - Horiz = 4, - Vert = 5, - UlLr = 6, - UrLl = 7, - Auto = 8, - Custom = 9, -} -pub const GST_VIDEO_ORIENTATION_IDENTITY: GstVideoOrientationMethod = GstVideoOrientationMethod::Identity; -pub const GST_VIDEO_ORIENTATION_90R: GstVideoOrientationMethod = GstVideoOrientationMethod::_90r; -pub const GST_VIDEO_ORIENTATION_180: GstVideoOrientationMethod = GstVideoOrientationMethod::_180; -pub const GST_VIDEO_ORIENTATION_90L: GstVideoOrientationMethod = GstVideoOrientationMethod::_90l; -pub const GST_VIDEO_ORIENTATION_HORIZ: GstVideoOrientationMethod = GstVideoOrientationMethod::Horiz; -pub const GST_VIDEO_ORIENTATION_VERT: GstVideoOrientationMethod = GstVideoOrientationMethod::Vert; -pub const GST_VIDEO_ORIENTATION_UL_LR: GstVideoOrientationMethod = GstVideoOrientationMethod::UlLr; -pub const GST_VIDEO_ORIENTATION_UR_LL: GstVideoOrientationMethod = GstVideoOrientationMethod::UrLl; -pub const GST_VIDEO_ORIENTATION_AUTO: GstVideoOrientationMethod = GstVideoOrientationMethod::Auto; -pub const GST_VIDEO_ORIENTATION_CUSTOM: GstVideoOrientationMethod = GstVideoOrientationMethod::Custom; +pub type GstVideoOrientationMethod = c_int; +pub const GST_VIDEO_ORIENTATION_IDENTITY: GstVideoOrientationMethod = 0; +pub const GST_VIDEO_ORIENTATION_90R: GstVideoOrientationMethod = 1; +pub const GST_VIDEO_ORIENTATION_180: GstVideoOrientationMethod = 2; +pub const GST_VIDEO_ORIENTATION_90L: GstVideoOrientationMethod = 3; +pub const GST_VIDEO_ORIENTATION_HORIZ: GstVideoOrientationMethod = 4; +pub const GST_VIDEO_ORIENTATION_VERT: GstVideoOrientationMethod = 5; +pub const GST_VIDEO_ORIENTATION_UL_LR: GstVideoOrientationMethod = 6; +pub const GST_VIDEO_ORIENTATION_UR_LL: GstVideoOrientationMethod = 7; +pub const GST_VIDEO_ORIENTATION_AUTO: GstVideoOrientationMethod = 8; +pub const GST_VIDEO_ORIENTATION_CUSTOM: GstVideoOrientationMethod = 9; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoOverlayFormatFlags { - None = 0, - PremultipliedAlpha = 1, - GlobalAlpha = 2, -} -pub const GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE: GstVideoOverlayFormatFlags = GstVideoOverlayFormatFlags::None; -pub const GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA: GstVideoOverlayFormatFlags = GstVideoOverlayFormatFlags::PremultipliedAlpha; -pub const GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA: GstVideoOverlayFormatFlags = GstVideoOverlayFormatFlags::GlobalAlpha; +pub type GstVideoOverlayFormatFlags = c_int; +pub const GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE: GstVideoOverlayFormatFlags = 0; +pub const GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA: GstVideoOverlayFormatFlags = 1; +pub const GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA: GstVideoOverlayFormatFlags = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoPrimariesMode { - None = 0, - MergeOnly = 1, - Fast = 2, -} -pub const GST_VIDEO_PRIMARIES_MODE_NONE: GstVideoPrimariesMode = GstVideoPrimariesMode::None; -pub const GST_VIDEO_PRIMARIES_MODE_MERGE_ONLY: GstVideoPrimariesMode = GstVideoPrimariesMode::MergeOnly; -pub const GST_VIDEO_PRIMARIES_MODE_FAST: GstVideoPrimariesMode = GstVideoPrimariesMode::Fast; +pub type GstVideoPrimariesMode = c_int; +pub const GST_VIDEO_PRIMARIES_MODE_NONE: GstVideoPrimariesMode = 0; +pub const GST_VIDEO_PRIMARIES_MODE_MERGE_ONLY: GstVideoPrimariesMode = 1; +pub const GST_VIDEO_PRIMARIES_MODE_FAST: GstVideoPrimariesMode = 2; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoResamplerMethod { - Nearest = 0, - Linear = 1, - Cubic = 2, - Sinc = 3, - Lanczos = 4, -} -pub const GST_VIDEO_RESAMPLER_METHOD_NEAREST: GstVideoResamplerMethod = GstVideoResamplerMethod::Nearest; -pub const GST_VIDEO_RESAMPLER_METHOD_LINEAR: GstVideoResamplerMethod = GstVideoResamplerMethod::Linear; -pub const GST_VIDEO_RESAMPLER_METHOD_CUBIC: GstVideoResamplerMethod = GstVideoResamplerMethod::Cubic; -pub const GST_VIDEO_RESAMPLER_METHOD_SINC: GstVideoResamplerMethod = GstVideoResamplerMethod::Sinc; -pub const GST_VIDEO_RESAMPLER_METHOD_LANCZOS: GstVideoResamplerMethod = GstVideoResamplerMethod::Lanczos; +pub type GstVideoResamplerMethod = c_int; +pub const GST_VIDEO_RESAMPLER_METHOD_NEAREST: GstVideoResamplerMethod = 0; +pub const GST_VIDEO_RESAMPLER_METHOD_LINEAR: GstVideoResamplerMethod = 1; +pub const GST_VIDEO_RESAMPLER_METHOD_CUBIC: GstVideoResamplerMethod = 2; +pub const GST_VIDEO_RESAMPLER_METHOD_SINC: GstVideoResamplerMethod = 3; +pub const GST_VIDEO_RESAMPLER_METHOD_LANCZOS: GstVideoResamplerMethod = 4; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoTileMode { - Unknown = 0, - Zflipz2x2 = 65536, -} -pub const GST_VIDEO_TILE_MODE_UNKNOWN: GstVideoTileMode = GstVideoTileMode::Unknown; -pub const GST_VIDEO_TILE_MODE_ZFLIPZ_2X2: GstVideoTileMode = GstVideoTileMode::Zflipz2x2; +pub type GstVideoTileMode = c_int; +pub const GST_VIDEO_TILE_MODE_UNKNOWN: GstVideoTileMode = 0; +pub const GST_VIDEO_TILE_MODE_ZFLIPZ_2X2: GstVideoTileMode = 65536; pub type VideoTileType = c_int; pub const GST_VIDEO_TILE_TYPE_INDEXED: VideoTileType = 0; pub type GstVideoTileType = VideoTileType; -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[repr(C)] -pub enum GstVideoTransferFunction { - Unknown = 0, - Gamma10 = 1, - Gamma18 = 2, - Gamma20 = 3, - Gamma22 = 4, - Bt709 = 5, - Smpte240m = 6, - Srgb = 7, - Gamma28 = 8, - Log100 = 9, - Log316 = 10, - Bt202012 = 11, - Adobergb = 12, -} -pub const GST_VIDEO_TRANSFER_UNKNOWN: GstVideoTransferFunction = GstVideoTransferFunction::Unknown; -pub const GST_VIDEO_TRANSFER_GAMMA10: GstVideoTransferFunction = GstVideoTransferFunction::Gamma10; -pub const GST_VIDEO_TRANSFER_GAMMA18: GstVideoTransferFunction = GstVideoTransferFunction::Gamma18; -pub const GST_VIDEO_TRANSFER_GAMMA20: GstVideoTransferFunction = GstVideoTransferFunction::Gamma20; -pub const GST_VIDEO_TRANSFER_GAMMA22: GstVideoTransferFunction = GstVideoTransferFunction::Gamma22; -pub const GST_VIDEO_TRANSFER_BT709: GstVideoTransferFunction = GstVideoTransferFunction::Bt709; -pub const GST_VIDEO_TRANSFER_SMPTE240M: GstVideoTransferFunction = GstVideoTransferFunction::Smpte240m; -pub const GST_VIDEO_TRANSFER_SRGB: GstVideoTransferFunction = GstVideoTransferFunction::Srgb; -pub const GST_VIDEO_TRANSFER_GAMMA28: GstVideoTransferFunction = GstVideoTransferFunction::Gamma28; -pub const GST_VIDEO_TRANSFER_LOG100: GstVideoTransferFunction = GstVideoTransferFunction::Log100; -pub const GST_VIDEO_TRANSFER_LOG316: GstVideoTransferFunction = GstVideoTransferFunction::Log316; -pub const GST_VIDEO_TRANSFER_BT2020_12: GstVideoTransferFunction = GstVideoTransferFunction::Bt202012; -pub const GST_VIDEO_TRANSFER_ADOBERGB: GstVideoTransferFunction = GstVideoTransferFunction::Adobergb; +pub type GstVideoTransferFunction = c_int; +pub const GST_VIDEO_TRANSFER_UNKNOWN: GstVideoTransferFunction = 0; +pub const GST_VIDEO_TRANSFER_GAMMA10: GstVideoTransferFunction = 1; +pub const GST_VIDEO_TRANSFER_GAMMA18: GstVideoTransferFunction = 2; +pub const GST_VIDEO_TRANSFER_GAMMA20: GstVideoTransferFunction = 3; +pub const GST_VIDEO_TRANSFER_GAMMA22: GstVideoTransferFunction = 4; +pub const GST_VIDEO_TRANSFER_BT709: GstVideoTransferFunction = 5; +pub const GST_VIDEO_TRANSFER_SMPTE240M: GstVideoTransferFunction = 6; +pub const GST_VIDEO_TRANSFER_SRGB: GstVideoTransferFunction = 7; +pub const GST_VIDEO_TRANSFER_GAMMA28: GstVideoTransferFunction = 8; +pub const GST_VIDEO_TRANSFER_LOG100: GstVideoTransferFunction = 9; +pub const GST_VIDEO_TRANSFER_LOG316: GstVideoTransferFunction = 10; +pub const GST_VIDEO_TRANSFER_BT2020_12: GstVideoTransferFunction = 11; +pub const GST_VIDEO_TRANSFER_ADOBERGB: GstVideoTransferFunction = 12; // Constants pub const GST_BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META: *const c_char = b"GstBufferPoolOptionVideoAffineTransformation\0" as *const u8 as *const c_char;