mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-21 19:11:02 +00:00
Update for glib constructor renames
See https://github.com/gtk-rs/gtk-rs-core/pull/384
This commit is contained in:
parent
288acaa7cc
commit
55aad51141
48 changed files with 218 additions and 218 deletions
|
@ -96,14 +96,14 @@ impl ObjectImpl for AudioEcho {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_uint64("max-delay",
|
||||
glib::ParamSpecUInt64::new("max-delay",
|
||||
"Maximum Delay",
|
||||
"Maximum delay of the echo in nanoseconds (can't be changed in PLAYING or PAUSED state)",
|
||||
0, u64::MAX - 1,
|
||||
DEFAULT_MAX_DELAY.nseconds(),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"delay",
|
||||
"Delay",
|
||||
"Delay of the echo in nanoseconds",
|
||||
|
@ -112,7 +112,7 @@ impl ObjectImpl for AudioEcho {
|
|||
DEFAULT_DELAY.nseconds(),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_double(
|
||||
glib::ParamSpecDouble::new(
|
||||
"intensity",
|
||||
"Intensity",
|
||||
"Intensity of the echo",
|
||||
|
@ -121,7 +121,7 @@ impl ObjectImpl for AudioEcho {
|
|||
DEFAULT_INTENSITY,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_double(
|
||||
glib::ParamSpecDouble::new(
|
||||
"feedback",
|
||||
"Feedback",
|
||||
"Amount of feedback",
|
||||
|
|
|
@ -1769,7 +1769,7 @@ impl ObjectImpl for AudioLoudNorm {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_double(
|
||||
glib::ParamSpecDouble::new(
|
||||
"loudness-target",
|
||||
"Loudness Target",
|
||||
"Loudness target in LUFS",
|
||||
|
@ -1778,7 +1778,7 @@ impl ObjectImpl for AudioLoudNorm {
|
|||
DEFAULT_LOUDNESS_TARGET,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_double(
|
||||
glib::ParamSpecDouble::new(
|
||||
"loudness-range-target",
|
||||
"Loudness Range Target",
|
||||
"Loudness range target in LU",
|
||||
|
@ -1787,7 +1787,7 @@ impl ObjectImpl for AudioLoudNorm {
|
|||
DEFAULT_LOUDNESS_RANGE_TARGET,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_double(
|
||||
glib::ParamSpecDouble::new(
|
||||
"max-true-peak",
|
||||
"Maximum True Peak",
|
||||
"Maximum True Peak in dbTP",
|
||||
|
@ -1796,7 +1796,7 @@ impl ObjectImpl for AudioLoudNorm {
|
|||
DEFAULT_MAX_TRUE_PEAK,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_double(
|
||||
glib::ParamSpecDouble::new(
|
||||
"offset",
|
||||
"Offset Gain",
|
||||
"Offset Gain in LU",
|
||||
|
|
|
@ -147,7 +147,7 @@ impl ObjectImpl for EbuR128Level {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_flags(
|
||||
glib::ParamSpecFlags::new(
|
||||
"mode",
|
||||
"Mode",
|
||||
"Selection of metrics to calculate",
|
||||
|
@ -155,14 +155,14 @@ impl ObjectImpl for EbuR128Level {
|
|||
DEFAULT_MODE.bits() as u32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"post-messages",
|
||||
"Post Messages",
|
||||
"Whether to post messages on the bus for each interval",
|
||||
DEFAULT_POST_MESSAGES,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"interval",
|
||||
"Interval",
|
||||
"Interval in nanoseconds for posting messages",
|
||||
|
|
|
@ -347,14 +347,14 @@ impl ObjectImpl for CsoundFilter {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"loop",
|
||||
"Loop",
|
||||
"loop over the score (can be changed in PLAYING or PAUSED state)",
|
||||
DEFAULT_LOOP,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"location",
|
||||
"Location",
|
||||
"Location of the csd file to be used by csound.
|
||||
|
@ -362,7 +362,7 @@ impl ObjectImpl for CsoundFilter {
|
|||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"csd-text",
|
||||
"CSD-text",
|
||||
"The content of a csd file passed as a String.
|
||||
|
@ -370,7 +370,7 @@ impl ObjectImpl for CsoundFilter {
|
|||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_double(
|
||||
glib::ParamSpecDouble::new(
|
||||
"score-offset",
|
||||
"Score Offset",
|
||||
"Score offset in seconds to start the performance",
|
||||
|
|
|
@ -117,7 +117,7 @@ impl ObjectSubclass for FileSink {
|
|||
impl ObjectImpl for FileSink {
|
||||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![glib::ParamSpec::new_string(
|
||||
vec![glib::ParamSpecString::new(
|
||||
"location",
|
||||
"File Location",
|
||||
"Location of the file to write",
|
||||
|
|
|
@ -131,7 +131,7 @@ impl ObjectSubclass for FileSrc {
|
|||
impl ObjectImpl for FileSrc {
|
||||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![glib::ParamSpec::new_string(
|
||||
vec![glib::ParamSpecString::new(
|
||||
"location",
|
||||
"File Location",
|
||||
"Location of the file to read from",
|
||||
|
|
|
@ -375,8 +375,8 @@ pub(super) fn create_fmp4_header(cfg: super::HeaderConfiguration) -> Result<gst:
|
|||
fn write_moov(v: &mut Vec<u8>, cfg: &super::HeaderConfiguration) -> Result<(), Error> {
|
||||
use gst::glib;
|
||||
|
||||
let base = glib::DateTime::new_utc(1904, 1, 1, 0, 0, 0.0)?;
|
||||
let now = glib::DateTime::new_now_utc()?;
|
||||
let base = glib::DateTime::from_utc(1904, 1, 1, 0, 0, 0.0)?;
|
||||
let now = glib::DateTime::now_utc()?;
|
||||
let creation_time =
|
||||
u64::try_from(now.difference(&base).as_seconds()).expect("time before 1904");
|
||||
|
||||
|
|
|
@ -1110,7 +1110,7 @@ impl ObjectImpl for FMP4Mux {
|
|||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
// TODO: Add chunk-duration property separate from fragment-size
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"fragment-duration",
|
||||
"Fragment Duration",
|
||||
"Duration for each FMP4 fragment",
|
||||
|
@ -1119,7 +1119,7 @@ impl ObjectImpl for FMP4Mux {
|
|||
DEFAULT_FRAGMENT_DURATION.nseconds(),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_enum(
|
||||
glib::ParamSpecEnum::new(
|
||||
"header-update-mode",
|
||||
"Header update mode",
|
||||
"Mode for updating the header at the end of the stream",
|
||||
|
@ -1127,14 +1127,14 @@ impl ObjectImpl for FMP4Mux {
|
|||
DEFAULT_HEADER_UPDATE_MODE as i32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"write-mfra",
|
||||
"Write mfra box",
|
||||
"Write fragment random access box at the end of the stream",
|
||||
DEFAULT_WRITE_MFRA,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"write-mehd",
|
||||
"Write mehd box",
|
||||
"Write movie extends header box with the duration at the end of the stream (needs a header-update-mode enabled)",
|
||||
|
|
|
@ -598,14 +598,14 @@ impl ObjectImpl for Decrypter {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"receiver-key",
|
||||
"Receiver Key",
|
||||
"The private key of the Reeiver",
|
||||
glib::Bytes::static_type(),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"sender-key",
|
||||
"Sender Key",
|
||||
"The public key of the Sender",
|
||||
|
|
|
@ -390,21 +390,21 @@ impl ObjectImpl for Encrypter {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"receiver-key",
|
||||
"Receiver Key",
|
||||
"The public key of the Receiver",
|
||||
glib::Bytes::static_type(),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"sender-key",
|
||||
"Sender Key",
|
||||
"The private key of the Sender",
|
||||
glib::Bytes::static_type(),
|
||||
glib::ParamFlags::WRITABLE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"block-size",
|
||||
"Block Size",
|
||||
"The block-size of the chunks",
|
||||
|
|
|
@ -527,14 +527,14 @@ impl ObjectImpl for AppSrc {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"context",
|
||||
"Context",
|
||||
"Context name to share threads with",
|
||||
Some(DEFAULT_CONTEXT),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"context-wait",
|
||||
"Context Wait",
|
||||
"Throttle poll loop to run at most once every this many ms",
|
||||
|
@ -543,7 +543,7 @@ impl ObjectImpl for AppSrc {
|
|||
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"max-buffers",
|
||||
"Max Buffers",
|
||||
"Maximum number of buffers to queue up",
|
||||
|
@ -552,14 +552,14 @@ impl ObjectImpl for AppSrc {
|
|||
DEFAULT_MAX_BUFFERS,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"caps",
|
||||
"Caps",
|
||||
"Caps to use",
|
||||
gst::Caps::static_type(),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"do-timestamp",
|
||||
"Do Timestamp",
|
||||
"Timestamp buffers with the current running time on arrival",
|
||||
|
|
|
@ -413,14 +413,14 @@ impl ObjectImpl for InputSelector {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"context",
|
||||
"Context",
|
||||
"Context name to share threads with",
|
||||
Some(DEFAULT_CONTEXT),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"context-wait",
|
||||
"Context Wait",
|
||||
"Throttle poll loop to run at most once every this many ms",
|
||||
|
@ -429,7 +429,7 @@ impl ObjectImpl for InputSelector {
|
|||
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_object(
|
||||
glib::ParamSpecObject::new(
|
||||
"active-pad",
|
||||
"Active Pad",
|
||||
"Currently active pad",
|
||||
|
|
|
@ -1343,14 +1343,14 @@ impl ObjectImpl for JitterBuffer {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"context",
|
||||
"Context",
|
||||
"Context name to share threads with",
|
||||
Some(DEFAULT_CONTEXT),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"context-wait",
|
||||
"Context Wait",
|
||||
"Throttle poll loop to run at most once every this many ms",
|
||||
|
@ -1359,7 +1359,7 @@ impl ObjectImpl for JitterBuffer {
|
|||
DEFAULT_CONTEXT_WAIT.mseconds() as u32,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"latency",
|
||||
"Buffer latency in ms",
|
||||
"Amount of ms to buffer",
|
||||
|
@ -1368,14 +1368,14 @@ impl ObjectImpl for JitterBuffer {
|
|||
DEFAULT_LATENCY.mseconds() as u32,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"do-lost",
|
||||
"Do Lost",
|
||||
"Send an event downstream when a packet is lost",
|
||||
DEFAULT_DO_LOST,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"max-dropout-time",
|
||||
"Max dropout time",
|
||||
"The maximum time (milliseconds) of missing packets tolerated.",
|
||||
|
@ -1384,7 +1384,7 @@ impl ObjectImpl for JitterBuffer {
|
|||
DEFAULT_MAX_DROPOUT_TIME,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"max-misorder-time",
|
||||
"Max misorder time",
|
||||
"The maximum time (milliseconds) of misordered packets tolerated.",
|
||||
|
@ -1393,7 +1393,7 @@ impl ObjectImpl for JitterBuffer {
|
|||
DEFAULT_MAX_MISORDER_TIME,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"stats",
|
||||
"Statistics",
|
||||
"Various statistics",
|
||||
|
|
|
@ -589,7 +589,7 @@ impl ObjectSubclass for ProxySink {
|
|||
impl ObjectImpl for ProxySink {
|
||||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![glib::ParamSpec::new_string(
|
||||
vec![glib::ParamSpecString::new(
|
||||
"proxy-context",
|
||||
"Proxy Context",
|
||||
"Context name of the proxy to share with",
|
||||
|
@ -1131,14 +1131,14 @@ impl ObjectImpl for ProxySrc {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"context",
|
||||
"Context",
|
||||
"Context name to share threads with",
|
||||
Some(DEFAULT_CONTEXT),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"context-wait",
|
||||
"Context Wait",
|
||||
"Throttle poll loop to run at most once every this many ms",
|
||||
|
@ -1147,14 +1147,14 @@ impl ObjectImpl for ProxySrc {
|
|||
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"proxy-context",
|
||||
"Proxy Context",
|
||||
"Context name of the proxy to share with",
|
||||
Some(DEFAULT_PROXY_CONTEXT),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"max-size-buffers",
|
||||
"Max Size Buffers",
|
||||
"Maximum number of buffers to queue (0=unlimited)",
|
||||
|
@ -1163,7 +1163,7 @@ impl ObjectImpl for ProxySrc {
|
|||
DEFAULT_MAX_SIZE_BUFFERS,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"max-size-bytes",
|
||||
"Max Size Bytes",
|
||||
"Maximum number of bytes to queue (0=unlimited)",
|
||||
|
@ -1172,7 +1172,7 @@ impl ObjectImpl for ProxySrc {
|
|||
DEFAULT_MAX_SIZE_BYTES,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"max-size-time",
|
||||
"Max Size Time",
|
||||
"Maximum number of nanoseconds to queue (0=unlimited)",
|
||||
|
|
|
@ -717,14 +717,14 @@ impl ObjectImpl for Queue {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"context",
|
||||
"Context",
|
||||
"Context name to share threads with",
|
||||
Some(DEFAULT_CONTEXT),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"context-wait",
|
||||
"Context Wait",
|
||||
"Throttle poll loop to run at most once every this many ms",
|
||||
|
@ -733,7 +733,7 @@ impl ObjectImpl for Queue {
|
|||
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"max-size-buffers",
|
||||
"Max Size Buffers",
|
||||
"Maximum number of buffers to queue (0=unlimited)",
|
||||
|
@ -742,7 +742,7 @@ impl ObjectImpl for Queue {
|
|||
DEFAULT_MAX_SIZE_BUFFERS,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"max-size-bytes",
|
||||
"Max Size Bytes",
|
||||
"Maximum number of bytes to queue (0=unlimited)",
|
||||
|
@ -751,7 +751,7 @@ impl ObjectImpl for Queue {
|
|||
DEFAULT_MAX_SIZE_BYTES,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"max-size-time",
|
||||
"Max Size Time",
|
||||
"Maximum number of nanoseconds to queue (0=unlimited)",
|
||||
|
|
|
@ -568,14 +568,14 @@ impl ObjectImpl for TcpClientSrc {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"context",
|
||||
"Context",
|
||||
"Context name to share threads with",
|
||||
Some(DEFAULT_CONTEXT),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"context-wait",
|
||||
"Context Wait",
|
||||
"Throttle poll loop to run at most once every this many ms",
|
||||
|
@ -584,14 +584,14 @@ impl ObjectImpl for TcpClientSrc {
|
|||
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"host",
|
||||
"Host",
|
||||
"The host IP address to receive packets from",
|
||||
DEFAULT_HOST,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_int(
|
||||
glib::ParamSpecInt::new(
|
||||
"port",
|
||||
"Port",
|
||||
"Port to receive packets from",
|
||||
|
@ -600,14 +600,14 @@ impl ObjectImpl for TcpClientSrc {
|
|||
DEFAULT_PORT,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"caps",
|
||||
"Caps",
|
||||
"Caps to use",
|
||||
gst::Caps::static_type(),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"blocksize",
|
||||
"Blocksize",
|
||||
"Size in bytes to read per buffer (-1 = default)",
|
||||
|
|
|
@ -966,14 +966,14 @@ impl ObjectImpl for UdpSink {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"context",
|
||||
"Context",
|
||||
"Context name to share threads with",
|
||||
Some(DEFAULT_CONTEXT),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"context-wait",
|
||||
"Context Wait",
|
||||
"Throttle poll loop to run at most once every this many ms",
|
||||
|
@ -982,21 +982,21 @@ impl ObjectImpl for UdpSink {
|
|||
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"sync",
|
||||
"Sync",
|
||||
"Sync on the clock",
|
||||
DEFAULT_SYNC,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"bind-address",
|
||||
"Bind Address",
|
||||
"Address to bind the socket to",
|
||||
Some(DEFAULT_BIND_ADDRESS),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_int(
|
||||
glib::ParamSpecInt::new(
|
||||
"bind-port",
|
||||
"Bind Port",
|
||||
"Port to bind the socket to",
|
||||
|
@ -1005,14 +1005,14 @@ impl ObjectImpl for UdpSink {
|
|||
DEFAULT_BIND_PORT,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"bind-address-v6",
|
||||
"Bind Address V6",
|
||||
"Address to bind the V6 socket to",
|
||||
Some(DEFAULT_BIND_ADDRESS_V6),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_int(
|
||||
glib::ParamSpecInt::new(
|
||||
"bind-port-v6",
|
||||
"Bind Port",
|
||||
"Port to bind the V6 socket to",
|
||||
|
@ -1021,49 +1021,49 @@ impl ObjectImpl for UdpSink {
|
|||
DEFAULT_BIND_PORT_V6,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_object(
|
||||
glib::ParamSpecObject::new(
|
||||
"socket",
|
||||
"Socket",
|
||||
"Socket to use for UDP transmission. (None == allocate)",
|
||||
gio::Socket::static_type(),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_object(
|
||||
glib::ParamSpecObject::new(
|
||||
"used-socket",
|
||||
"Used Socket",
|
||||
"Socket currently in use for UDP transmission. (None = no socket)",
|
||||
gio::Socket::static_type(),
|
||||
glib::ParamFlags::READABLE,
|
||||
),
|
||||
glib::ParamSpec::new_object(
|
||||
glib::ParamSpecObject::new(
|
||||
"socket-v6",
|
||||
"Socket V6",
|
||||
"IPV6 Socket to use for UDP transmission. (None == allocate)",
|
||||
gio::Socket::static_type(),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_object(
|
||||
glib::ParamSpecObject::new(
|
||||
"used-socket-v6",
|
||||
"Used Socket V6",
|
||||
"V6 Socket currently in use for UDP transmission. (None = no socket)",
|
||||
gio::Socket::static_type(),
|
||||
glib::ParamFlags::READABLE,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"auto-multicast",
|
||||
"Auto multicast",
|
||||
"Automatically join/leave the multicast groups, FALSE means user has to do it himself",
|
||||
DEFAULT_AUTO_MULTICAST,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"loop",
|
||||
"Loop",
|
||||
"Set the multicast loop parameter.",
|
||||
DEFAULT_LOOP,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"ttl",
|
||||
"Time To Live",
|
||||
"Used for setting the unicast TTL parameter",
|
||||
|
@ -1072,7 +1072,7 @@ impl ObjectImpl for UdpSink {
|
|||
DEFAULT_TTL,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"ttl-mc",
|
||||
"Time To Live Multicast",
|
||||
"Used for setting the multicast TTL parameter",
|
||||
|
@ -1081,7 +1081,7 @@ impl ObjectImpl for UdpSink {
|
|||
DEFAULT_TTL_MC,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_int(
|
||||
glib::ParamSpecInt::new(
|
||||
"qos-dscp",
|
||||
"QoS DSCP",
|
||||
"Quality of Service, differentiated services code point (-1 default)",
|
||||
|
@ -1090,7 +1090,7 @@ impl ObjectImpl for UdpSink {
|
|||
DEFAULT_QOS_DSCP,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"clients",
|
||||
"Clients",
|
||||
"A comma separated list of host:port pairs with destinations",
|
||||
|
|
|
@ -709,14 +709,14 @@ impl ObjectImpl for UdpSrc {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
let mut properties = vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"context",
|
||||
"Context",
|
||||
"Context name to share threads with",
|
||||
Some(DEFAULT_CONTEXT),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"context-wait",
|
||||
"Context Wait",
|
||||
"Throttle poll loop to run at most once every this many ms",
|
||||
|
@ -725,14 +725,14 @@ impl ObjectImpl for UdpSrc {
|
|||
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"address",
|
||||
"Address",
|
||||
"Address/multicast group to listen on",
|
||||
DEFAULT_ADDRESS,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_int(
|
||||
glib::ParamSpecInt::new(
|
||||
"port",
|
||||
"Port",
|
||||
"Port to listen on",
|
||||
|
@ -741,21 +741,21 @@ impl ObjectImpl for UdpSrc {
|
|||
DEFAULT_PORT,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"reuse",
|
||||
"Reuse",
|
||||
"Allow reuse of the port",
|
||||
DEFAULT_REUSE,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"caps",
|
||||
"Caps",
|
||||
"Caps to use",
|
||||
gst::Caps::static_type(),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"mtu",
|
||||
"MTU",
|
||||
"Maximum expected packet size. This directly defines the allocation size of the receive buffer pool",
|
||||
|
@ -764,7 +764,7 @@ impl ObjectImpl for UdpSrc {
|
|||
DEFAULT_MTU,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"retrieve-sender-address",
|
||||
"Retrieve sender address",
|
||||
"Whether to retrieve the sender address and add it to buffers as meta. Disabling this might result in minor performance improvements in certain scenarios",
|
||||
|
@ -775,14 +775,14 @@ impl ObjectImpl for UdpSrc {
|
|||
|
||||
#[cfg(not(windows))]
|
||||
{
|
||||
properties.push(glib::ParamSpec::new_object(
|
||||
properties.push(glib::ParamSpecObject::new(
|
||||
"socket",
|
||||
"Socket",
|
||||
"Socket to use for UDP reception. (None == allocate)",
|
||||
gio::Socket::static_type(),
|
||||
glib::ParamFlags::READWRITE,
|
||||
));
|
||||
properties.push(glib::ParamSpec::new_object(
|
||||
properties.push(glib::ParamSpecObject::new(
|
||||
"used-socket",
|
||||
"Used Socket",
|
||||
"Socket currently in use for UDP reception. (None = no socket)",
|
||||
|
|
|
@ -325,7 +325,7 @@ mod imp_src {
|
|||
impl ObjectImpl for ElementSrcTest {
|
||||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![glib::ParamSpec::new_string(
|
||||
vec![glib::ParamSpecString::new(
|
||||
"context",
|
||||
"Context",
|
||||
"Context name to share threads with",
|
||||
|
@ -657,7 +657,7 @@ mod imp_sink {
|
|||
impl ObjectImpl for ElementSinkTest {
|
||||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![glib::ParamSpec::new_boxed(
|
||||
vec![glib::ParamSpecBoxed::new(
|
||||
"sender",
|
||||
"Sender",
|
||||
"Channel sender to forward the incoming items to",
|
||||
|
|
|
@ -384,28 +384,28 @@ impl ObjectImpl for HlsSink3 {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"location",
|
||||
"File Location",
|
||||
"Location of the file to write",
|
||||
Some(DEFAULT_LOCATION),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"playlist-location",
|
||||
"Playlist Location",
|
||||
"Location of the playlist to write.",
|
||||
Some(DEFAULT_PLAYLIST_LOCATION),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"playlist-root",
|
||||
"Playlist Root",
|
||||
"Location of the playlist to write.",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"max-files",
|
||||
"Max files",
|
||||
"Maximum number of files to keep on disk. Once the maximum is reached, old files start to be deleted to make room for new ones.",
|
||||
|
@ -414,7 +414,7 @@ impl ObjectImpl for HlsSink3 {
|
|||
DEFAULT_MAX_NUM_SEGMENT_FILES,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"target-duration",
|
||||
"Target duration",
|
||||
"The target duration in seconds of a segment/file. (0 - disabled, useful for management of segment duration by the streaming server)",
|
||||
|
@ -423,7 +423,7 @@ impl ObjectImpl for HlsSink3 {
|
|||
DEFAULT_TARGET_DURATION,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"playlist-length",
|
||||
"Playlist length",
|
||||
"Length of HLS playlist. To allow players to conform to section 6.3.3 of the HLS specification, this should be at least 3. If set to 0, the playlist will be infinite.",
|
||||
|
@ -432,14 +432,14 @@ impl ObjectImpl for HlsSink3 {
|
|||
DEFAULT_PLAYLIST_LENGTH,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"playlist-type",
|
||||
"Playlist Type",
|
||||
"The type of the playlist to use. When VOD type is set, the playlist will be live until the pipeline ends execution.",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"send-keyframe-requests",
|
||||
"Send Keyframe Requests",
|
||||
"Send keyframe requests to ensure correct fragmentation. If this is disabled then the input must have keyframes in regular intervals.",
|
||||
|
|
|
@ -672,42 +672,42 @@ impl ObjectImpl for ReqwestHttpSrc {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"location",
|
||||
"Location",
|
||||
"URL to read from",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"user-agent",
|
||||
"User-Agent",
|
||||
"Value of the User-Agent HTTP request header field",
|
||||
DEFAULT_USER_AGENT.into(),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"is-live",
|
||||
"Is Live",
|
||||
"Act like a live source",
|
||||
DEFAULT_IS_LIVE,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"user-id",
|
||||
"User-id",
|
||||
"HTTP location URI user id for authentication",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"user-pw",
|
||||
"User-pw",
|
||||
"HTTP location URI user password for authentication",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"timeout",
|
||||
"Timeout",
|
||||
"Value in seconds to timeout a blocking I/O (0 = No timeout).",
|
||||
|
@ -716,56 +716,56 @@ impl ObjectImpl for ReqwestHttpSrc {
|
|||
DEFAULT_TIMEOUT,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"compress",
|
||||
"Compress",
|
||||
"Allow compressed content encodings",
|
||||
DEFAULT_COMPRESS,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"extra-headers",
|
||||
"Extra Headers",
|
||||
"Extra headers to append to the HTTP request",
|
||||
gst::Structure::static_type(),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"cookies",
|
||||
"Cookies",
|
||||
"HTTP request cookies",
|
||||
Vec::<String>::static_type(),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"iradio-mode",
|
||||
"I-Radio Mode",
|
||||
"Enable internet radio mode (ask server to send shoutcast/icecast metadata interleaved with the actual stream data",
|
||||
DEFAULT_IRADIO_MODE,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"keep-alive",
|
||||
"Keep Alive",
|
||||
"Use HTTP persistent connections",
|
||||
DEFAULT_KEEP_ALIVE,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"proxy",
|
||||
"Proxy",
|
||||
"HTTP proxy server URI",
|
||||
Some(""),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"proxy-id",
|
||||
"Proxy-id",
|
||||
"HTTP proxy URI user id for authentication",
|
||||
Some(""),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"proxy-pw",
|
||||
"Proxy-pw",
|
||||
"HTTP proxy URI user password for authentication",
|
||||
|
|
|
@ -1088,7 +1088,7 @@ impl ObjectImpl for Transcriber {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"language-code",
|
||||
"Language Code",
|
||||
"The Language of the Stream, see \
|
||||
|
@ -1097,7 +1097,7 @@ impl ObjectImpl for Transcriber {
|
|||
Some("en-US"),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"latency",
|
||||
"Latency",
|
||||
"Amount of milliseconds to allow AWS transcribe",
|
||||
|
@ -1106,7 +1106,7 @@ impl ObjectImpl for Transcriber {
|
|||
DEFAULT_LATENCY.mseconds() as u32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"lateness",
|
||||
"Lateness",
|
||||
"Amount of milliseconds to introduce as lateness",
|
||||
|
@ -1115,7 +1115,7 @@ impl ObjectImpl for Transcriber {
|
|||
DEFAULT_LATENESS.mseconds() as u32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"vocabulary-name",
|
||||
"Vocabulary Name",
|
||||
"The name of a custom vocabulary, see \
|
||||
|
@ -1124,14 +1124,14 @@ impl ObjectImpl for Transcriber {
|
|||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"session-id",
|
||||
"Session ID",
|
||||
"The ID of the transcription session, must be length 36",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_enum(
|
||||
glib::ParamSpecEnum::new(
|
||||
"results-stability",
|
||||
"Results stability",
|
||||
"Defines how fast results should stabilize",
|
||||
|
@ -1139,14 +1139,14 @@ impl ObjectImpl for Transcriber {
|
|||
DEFAULT_STABILITY as i32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"access-key",
|
||||
"Access Key",
|
||||
"AWS Access Key",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"secret-access-key",
|
||||
"Secret Access Key",
|
||||
"AWS Secret Access Key",
|
||||
|
|
|
@ -434,28 +434,28 @@ impl ObjectImpl for S3Sink {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"bucket",
|
||||
"S3 Bucket",
|
||||
"The bucket of the file to write",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"key",
|
||||
"S3 Key",
|
||||
"The key of the file to write",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"region",
|
||||
"AWS Region",
|
||||
"An AWS region (e.g. eu-west-2).",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"part-size",
|
||||
"Part size",
|
||||
"A size (in bytes) of an individual part used for multipart upload.",
|
||||
|
@ -464,21 +464,21 @@ impl ObjectImpl for S3Sink {
|
|||
DEFAULT_BUFFER_SIZE,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"uri",
|
||||
"URI",
|
||||
"The S3 object URI",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"access-key",
|
||||
"Access Key",
|
||||
"AWS Access Key",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"secret-access-key",
|
||||
"Secret Access Key",
|
||||
"AWS Secret Access Key",
|
||||
|
|
|
@ -247,21 +247,21 @@ impl ObjectImpl for S3Src {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"uri",
|
||||
"URI",
|
||||
"The S3 object URI",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"access-key",
|
||||
"Access Key",
|
||||
"AWS Access Key",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"secret-access-key",
|
||||
"Secret Access Key",
|
||||
"AWS Secret Access Key",
|
||||
|
|
|
@ -156,17 +156,17 @@ impl ObjectSubclass for RegEx {
|
|||
impl ObjectImpl for RegEx {
|
||||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![glib::ParamSpec::new_array(
|
||||
vec![gst::ParamSpecArray::new(
|
||||
"commands",
|
||||
"Commands",
|
||||
"A set of commands to apply on input text",
|
||||
&glib::ParamSpec::new_boxed(
|
||||
Some(&glib::ParamSpecBoxed::new(
|
||||
"command",
|
||||
"Command",
|
||||
"A command to apply on input text",
|
||||
gst::Structure::static_type(),
|
||||
glib::ParamFlags::READWRITE,
|
||||
),
|
||||
)),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
)]
|
||||
});
|
||||
|
|
|
@ -498,7 +498,7 @@ impl ObjectImpl for TextWrap {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"dictionary",
|
||||
"Dictionary",
|
||||
"Path to a dictionary to load at runtime to perform hyphenation, see \
|
||||
|
@ -506,7 +506,7 @@ impl ObjectImpl for TextWrap {
|
|||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"columns",
|
||||
"Columns",
|
||||
"Maximum number of columns for any given line",
|
||||
|
@ -515,7 +515,7 @@ impl ObjectImpl for TextWrap {
|
|||
DEFAULT_COLUMNS,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"lines",
|
||||
"Lines",
|
||||
"Split input buffer into output buffers with max lines (0=do not split)",
|
||||
|
@ -524,7 +524,7 @@ impl ObjectImpl for TextWrap {
|
|||
DEFAULT_LINES,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"accumulate-time",
|
||||
"accumulate-time",
|
||||
"Cut-off time for input text accumulation (0=do not accumulate)",
|
||||
|
|
|
@ -81,7 +81,7 @@ impl ObjectImpl for ProgressBin {
|
|||
// Metadata for the element's properties
|
||||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![glib::ParamSpec::new_enum(
|
||||
vec![glib::ParamSpecEnum::new(
|
||||
"output",
|
||||
"Output",
|
||||
"Defines the output type of the progressbin",
|
||||
|
|
|
@ -97,14 +97,14 @@ impl ObjectImpl for Rgb2Gray {
|
|||
// Metadata for the properties
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"invert",
|
||||
"Invert",
|
||||
"Invert grayscale output",
|
||||
DEFAULT_INVERT,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"shift",
|
||||
"Shift",
|
||||
"Shift grayscale output (wrapping around)",
|
||||
|
|
|
@ -167,7 +167,7 @@ impl ObjectImpl for SineSrc {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"samples-per-buffer",
|
||||
"Samples Per Buffer",
|
||||
"Number of samples per output buffer",
|
||||
|
@ -176,7 +176,7 @@ impl ObjectImpl for SineSrc {
|
|||
DEFAULT_SAMPLES_PER_BUFFER,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"freq",
|
||||
"Frequency",
|
||||
"Frequency",
|
||||
|
@ -185,7 +185,7 @@ impl ObjectImpl for SineSrc {
|
|||
DEFAULT_FREQ,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_double(
|
||||
glib::ParamSpecDouble::new(
|
||||
"volume",
|
||||
"Volume",
|
||||
"Output volume",
|
||||
|
@ -194,14 +194,14 @@ impl ObjectImpl for SineSrc {
|
|||
DEFAULT_VOLUME,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"mute",
|
||||
"Mute",
|
||||
"Mute",
|
||||
DEFAULT_MUTE,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"is-live",
|
||||
"Is Live",
|
||||
"(Pseudo) live output",
|
||||
|
|
|
@ -63,7 +63,7 @@ impl ObjectSubclass for CustomSource {
|
|||
impl ObjectImpl for CustomSource {
|
||||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![glib::ParamSpec::new_object(
|
||||
vec![glib::ParamSpecObject::new(
|
||||
"source",
|
||||
"Source",
|
||||
"Source",
|
||||
|
|
|
@ -199,36 +199,36 @@ impl ObjectImpl for FallbackSrc {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"enable-audio",
|
||||
"Enable Audio",
|
||||
"Enable the audio stream, this will output silence if there's no audio in the configured URI",
|
||||
true,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"enable-video",
|
||||
"Enable Video",
|
||||
"Enable the video stream, this will output black or the fallback video if there's no video in the configured URI",
|
||||
true,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string("uri", "URI", "URI to use", None, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY),
|
||||
glib::ParamSpec::new_object(
|
||||
glib::ParamSpecString::new("uri", "URI", "URI to use", None, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY),
|
||||
glib::ParamSpecObject::new(
|
||||
"source",
|
||||
"Source",
|
||||
"Source to use instead of the URI",
|
||||
gst::Element::static_type(),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"fallback-uri",
|
||||
"Fallback URI",
|
||||
"Fallback URI to use for video in case the main stream doesn't work",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"timeout",
|
||||
"Timeout",
|
||||
"Timeout for switching to the fallback URI",
|
||||
|
@ -237,7 +237,7 @@ impl ObjectImpl for FallbackSrc {
|
|||
5 * *gst::ClockTime::SECOND,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"restart-timeout",
|
||||
"Timeout",
|
||||
"Timeout for restarting an active source",
|
||||
|
@ -246,7 +246,7 @@ impl ObjectImpl for FallbackSrc {
|
|||
5 * *gst::ClockTime::SECOND,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"retry-timeout",
|
||||
"Retry Timeout",
|
||||
"Timeout for stopping after repeated failure",
|
||||
|
@ -255,14 +255,14 @@ impl ObjectImpl for FallbackSrc {
|
|||
60 * *gst::ClockTime::SECOND,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"restart-on-eos",
|
||||
"Restart on EOS",
|
||||
"Restart source on EOS",
|
||||
false,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_enum(
|
||||
glib::ParamSpecEnum::new(
|
||||
"status",
|
||||
"Status",
|
||||
"Current source status",
|
||||
|
@ -270,7 +270,7 @@ impl ObjectImpl for FallbackSrc {
|
|||
Status::Stopped as i32,
|
||||
glib::ParamFlags::READABLE,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"min-latency",
|
||||
"Minimum Latency",
|
||||
"When the main source has a higher latency than the fallback source \
|
||||
|
@ -281,7 +281,7 @@ impl ObjectImpl for FallbackSrc {
|
|||
0,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_int64(
|
||||
glib::ParamSpecInt64::new(
|
||||
"buffer-duration",
|
||||
"Buffer Duration",
|
||||
"Buffer duration when buffering streams (-1 default value)",
|
||||
|
@ -290,21 +290,21 @@ impl ObjectImpl for FallbackSrc {
|
|||
-1,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"statistics",
|
||||
"Statistics",
|
||||
"Various statistics",
|
||||
gst::Structure::static_type(),
|
||||
glib::ParamFlags::READABLE,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"manual-unblock",
|
||||
"Manual unblock",
|
||||
"When enabled, the application must call the unblock signal, except for live streams",
|
||||
false,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"immediate-fallback",
|
||||
"Immediate fallback",
|
||||
"Forward the fallback streams immediately at startup, when the primary streams are slow to start up and immediate output is required",
|
||||
|
|
|
@ -83,14 +83,14 @@ impl ObjectImpl for VideoFallbackSource {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"uri",
|
||||
"URI",
|
||||
"URI to use for video in case the main stream doesn't work",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"min-latency",
|
||||
"Minimum Latency",
|
||||
"Minimum Latency",
|
||||
|
|
|
@ -682,7 +682,7 @@ impl ObjectImpl for FallbackSwitch {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"timeout",
|
||||
"Timeout",
|
||||
"Timeout in nanoseconds",
|
||||
|
@ -691,21 +691,21 @@ impl ObjectImpl for FallbackSwitch {
|
|||
DEFAULT_TIMEOUT.nseconds() as u64,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_object(
|
||||
glib::ParamSpecObject::new(
|
||||
"active-pad",
|
||||
"Active Pad",
|
||||
"Currently active pad. Writes are ignored if auto-switch=true",
|
||||
gst::Pad::static_type(),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"auto-switch",
|
||||
"Automatically switch pads",
|
||||
"Automatically switch pads (If true, prefer primary sink, otherwise manual selection via the active-pad property)",
|
||||
DEFAULT_AUTO_SWITCH,
|
||||
glib::ParamFlags::READWRITE| gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_enum(
|
||||
glib::ParamSpecEnum::new(
|
||||
"primary-health",
|
||||
"Primary stream state",
|
||||
"Reports the health of the primary stream on the sink pad",
|
||||
|
@ -713,7 +713,7 @@ impl ObjectImpl for FallbackSwitch {
|
|||
DEFAULT_STREAM_HEALTH as i32,
|
||||
glib::ParamFlags::READABLE,
|
||||
),
|
||||
glib::ParamSpec::new_enum(
|
||||
glib::ParamSpecEnum::new(
|
||||
"fallback-health",
|
||||
"Fallback stream state",
|
||||
"Reports the health of the fallback stream on the fallback_sink pad",
|
||||
|
@ -721,7 +721,7 @@ impl ObjectImpl for FallbackSwitch {
|
|||
DEFAULT_STREAM_HEALTH as i32,
|
||||
glib::ParamFlags::READABLE,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"immediate-fallback",
|
||||
"Immediate fallback",
|
||||
"Forward the fallback stream immediately at startup, when the primary stream is slow to start up and immediate output is required",
|
||||
|
|
|
@ -1752,21 +1752,21 @@ impl ObjectImpl for ToggleRecord {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"record",
|
||||
"Record",
|
||||
"Enable/disable recording",
|
||||
DEFAULT_RECORD,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"recording",
|
||||
"Recording",
|
||||
"Whether recording is currently taking place",
|
||||
DEFAULT_RECORD,
|
||||
glib::ParamFlags::READABLE,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"is-live",
|
||||
"Live mode",
|
||||
"Live mode: no \"gap eating\", forward incoming segment",
|
||||
|
|
|
@ -228,7 +228,7 @@ impl ObjectImpl for CCDetect {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"window",
|
||||
"Window",
|
||||
"Window of time (in ns) to determine if captions exist in the stream",
|
||||
|
@ -237,14 +237,14 @@ impl ObjectImpl for CCDetect {
|
|||
DEFAULT_WINDOW.nseconds(),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"cc608",
|
||||
"cc608",
|
||||
"Whether CEA608 captions (CC1/CC3) have been detected",
|
||||
DEFAULT_CC608,
|
||||
glib::ParamFlags::READABLE,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"cc708",
|
||||
"cc608",
|
||||
"Whether CEA708 captions (cc_data) have been detected",
|
||||
|
|
|
@ -611,7 +611,7 @@ impl ObjectImpl for Cea608Overlay {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_int(
|
||||
glib::ParamSpecInt::new(
|
||||
"field",
|
||||
"Field",
|
||||
"The field to render the caption for when available, (-1=automatic)",
|
||||
|
@ -620,14 +620,14 @@ impl ObjectImpl for Cea608Overlay {
|
|||
DEFAULT_FIELD,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"black-background",
|
||||
"Black background",
|
||||
"Whether a black background should be drawn behind text",
|
||||
DEFAULT_BLACK_BACKGROUND,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"timeout",
|
||||
"Timeout",
|
||||
"Duration after which to erase overlay when no cc data has arrived for the selected field",
|
||||
|
|
|
@ -1015,7 +1015,7 @@ impl ObjectImpl for Cea608ToJson {
|
|||
|
||||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![glib::ParamSpec::new_boolean(
|
||||
vec![glib::ParamSpecBoolean::new(
|
||||
"unbuffered",
|
||||
"Unbuffered",
|
||||
"Whether captions should be output at display time, \
|
||||
|
|
|
@ -495,14 +495,14 @@ impl ObjectImpl for MccEnc {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_string(
|
||||
glib::ParamSpecString::new(
|
||||
"uuid",
|
||||
"UUID",
|
||||
"UUID for the output file",
|
||||
None,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"creation-date",
|
||||
"Creation Date",
|
||||
"Creation date for the output file",
|
||||
|
|
|
@ -564,14 +564,14 @@ impl ObjectImpl for TranscriberBin {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"passthrough",
|
||||
"Passthrough",
|
||||
"Whether transcription should occur",
|
||||
DEFAULT_PASSTHROUGH,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"latency",
|
||||
"Latency",
|
||||
"Amount of milliseconds to allow the transcriber",
|
||||
|
@ -580,7 +580,7 @@ impl ObjectImpl for TranscriberBin {
|
|||
DEFAULT_LATENCY.mseconds() as u32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"accumulate-time",
|
||||
"accumulate-time",
|
||||
"Cut-off time for textwrap accumulation, in milliseconds (0=do not accumulate). \
|
||||
|
@ -590,7 +590,7 @@ impl ObjectImpl for TranscriberBin {
|
|||
DEFAULT_ACCUMULATE.mseconds() as u32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_enum(
|
||||
glib::ParamSpecEnum::new(
|
||||
"mode",
|
||||
"Mode",
|
||||
"Which closed caption mode to operate in",
|
||||
|
@ -598,14 +598,14 @@ impl ObjectImpl for TranscriberBin {
|
|||
DEFAULT_MODE as i32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_boxed(
|
||||
glib::ParamSpecBoxed::new(
|
||||
"cc-caps",
|
||||
"Closed Caption caps",
|
||||
"The expected format of the closed captions",
|
||||
gst::Caps::static_type(),
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_object(
|
||||
glib::ParamSpecObject::new(
|
||||
"transcriber",
|
||||
"Transcriber",
|
||||
"The transcriber element to use",
|
||||
|
|
|
@ -1064,7 +1064,7 @@ impl ObjectImpl for TtToCea608 {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_enum(
|
||||
glib::ParamSpecEnum::new(
|
||||
"mode",
|
||||
"Mode",
|
||||
"Which mode to operate in",
|
||||
|
@ -1072,7 +1072,7 @@ impl ObjectImpl for TtToCea608 {
|
|||
DEFAULT_MODE as i32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_int(
|
||||
glib::ParamSpecInt::new(
|
||||
"origin-row",
|
||||
"Origin row",
|
||||
"Origin row, (-1=automatic)",
|
||||
|
@ -1081,7 +1081,7 @@ impl ObjectImpl for TtToCea608 {
|
|||
DEFAULT_ORIGIN_ROW,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"origin-column",
|
||||
"Origin column",
|
||||
"Origin column",
|
||||
|
|
|
@ -233,7 +233,7 @@ impl ObjectSubclass for TtToJson {
|
|||
impl ObjectImpl for TtToJson {
|
||||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![glib::ParamSpec::new_enum(
|
||||
vec![glib::ParamSpecEnum::new(
|
||||
"mode",
|
||||
"Mode",
|
||||
"Which mode to operate in",
|
||||
|
|
|
@ -96,7 +96,7 @@ Time Code Rate=30DF\r\n\
|
|||
enc.set_property("uuid", "14720C04-857D-40E2-86FC-F080DE44CE74");
|
||||
enc.set_property(
|
||||
"creation-date",
|
||||
glib::DateTime::new_utc(2018, 12, 27, 17, 34, 47.0).unwrap(),
|
||||
glib::DateTime::from_utc(2018, 12, 27, 17, 34, 47.0).unwrap(),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ impl ObjectImpl for GifEnc {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_int(
|
||||
glib::ParamSpecInt::new(
|
||||
"repeat",
|
||||
"Repeat",
|
||||
"Repeat (-1 to loop forever, 0 .. n finite repetitions)",
|
||||
|
@ -153,7 +153,7 @@ impl ObjectImpl for GifEnc {
|
|||
DEFAULT_REPEAT,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_int(
|
||||
glib::ParamSpecInt::new(
|
||||
"speed",
|
||||
"Speed",
|
||||
"Speed (1 .. 30; higher value yields faster encoding)",
|
||||
|
|
|
@ -69,7 +69,7 @@ impl ObjectSubclass for PaintableSink {
|
|||
impl ObjectImpl for PaintableSink {
|
||||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![glib::ParamSpec::new_object(
|
||||
vec![glib::ParamSpecObject::new(
|
||||
"paintable",
|
||||
"Paintable",
|
||||
"The Paintable the sink renders to",
|
||||
|
|
|
@ -165,7 +165,7 @@ impl ObjectImpl for HsvDetector {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_float(
|
||||
glib::ParamSpecFloat::new(
|
||||
"hue-ref",
|
||||
"Hue reference",
|
||||
"Hue reference in degrees",
|
||||
|
@ -174,7 +174,7 @@ impl ObjectImpl for HsvDetector {
|
|||
DEFAULT_HUE_REF,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_float(
|
||||
glib::ParamSpecFloat::new(
|
||||
"hue-var",
|
||||
"Hue variation",
|
||||
"Allowed hue variation from the reference hue angle, in degrees",
|
||||
|
@ -183,7 +183,7 @@ impl ObjectImpl for HsvDetector {
|
|||
DEFAULT_HUE_VAR,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_float(
|
||||
glib::ParamSpecFloat::new(
|
||||
"saturation-ref",
|
||||
"Saturation reference",
|
||||
"Reference saturation value",
|
||||
|
@ -192,7 +192,7 @@ impl ObjectImpl for HsvDetector {
|
|||
DEFAULT_SATURATION_REF,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_float(
|
||||
glib::ParamSpecFloat::new(
|
||||
"saturation-var",
|
||||
"Saturation variation",
|
||||
"Allowed saturation variation from the reference value",
|
||||
|
@ -201,7 +201,7 @@ impl ObjectImpl for HsvDetector {
|
|||
DEFAULT_SATURATION_VAR,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_float(
|
||||
glib::ParamSpecFloat::new(
|
||||
"value-ref",
|
||||
"Value reference",
|
||||
"Reference value value",
|
||||
|
@ -210,7 +210,7 @@ impl ObjectImpl for HsvDetector {
|
|||
DEFAULT_VALUE_REF,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_float(
|
||||
glib::ParamSpecFloat::new(
|
||||
"value-var",
|
||||
"Value variation",
|
||||
"Allowed value variation from the reference value",
|
||||
|
|
|
@ -123,7 +123,7 @@ impl ObjectImpl for HsvFilter {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_float(
|
||||
glib::ParamSpecFloat::new(
|
||||
"hue-shift",
|
||||
"Hue shift",
|
||||
"Hue shifting in degrees",
|
||||
|
@ -132,7 +132,7 @@ impl ObjectImpl for HsvFilter {
|
|||
DEFAULT_HUE_SHIFT,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_float(
|
||||
glib::ParamSpecFloat::new(
|
||||
"saturation-mul",
|
||||
"Saturation multiplier",
|
||||
"Saturation multiplier to apply to the saturation value (before offset)",
|
||||
|
@ -141,7 +141,7 @@ impl ObjectImpl for HsvFilter {
|
|||
DEFAULT_SATURATION_MUL,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_float(
|
||||
glib::ParamSpecFloat::new(
|
||||
"saturation-off",
|
||||
"Saturation offset",
|
||||
"Saturation offset to add to the saturation value (after multiplier)",
|
||||
|
@ -150,7 +150,7 @@ impl ObjectImpl for HsvFilter {
|
|||
DEFAULT_SATURATION_OFF,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_float(
|
||||
glib::ParamSpecFloat::new(
|
||||
"value-mul",
|
||||
"Value multiplier",
|
||||
"Value multiplier to apply to the value (before offset)",
|
||||
|
@ -159,7 +159,7 @@ impl ObjectImpl for HsvFilter {
|
|||
DEFAULT_VALUE_MUL,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
|
||||
),
|
||||
glib::ParamSpec::new_float(
|
||||
glib::ParamSpecFloat::new(
|
||||
"value-off",
|
||||
"Value offset",
|
||||
"Value offset to add to the value (after multiplier)",
|
||||
|
|
|
@ -215,7 +215,7 @@ impl ObjectImpl for Rav1Enc {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"speed-preset",
|
||||
"Speed Preset",
|
||||
"Speed preset (10 fastest, 0 slowest)",
|
||||
|
@ -224,14 +224,14 @@ impl ObjectImpl for Rav1Enc {
|
|||
DEFAULT_SPEED_PRESET,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_boolean(
|
||||
glib::ParamSpecBoolean::new(
|
||||
"low-latency",
|
||||
"Low Latency",
|
||||
"Low Latency",
|
||||
DEFAULT_LOW_LATENCY,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"min-key-frame-interval",
|
||||
"Min Key Frame Interval",
|
||||
"Min Key Frame Interval",
|
||||
|
@ -240,7 +240,7 @@ impl ObjectImpl for Rav1Enc {
|
|||
DEFAULT_MIN_KEY_FRAME_INTERVAL,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint64(
|
||||
glib::ParamSpecUInt64::new(
|
||||
"max-key-frame-interval",
|
||||
"Max Key Frame Interval",
|
||||
"Max Key Frame Interval",
|
||||
|
@ -249,7 +249,7 @@ impl ObjectImpl for Rav1Enc {
|
|||
DEFAULT_MAX_KEY_FRAME_INTERVAL,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_int(
|
||||
glib::ParamSpecInt::new(
|
||||
"bitrate",
|
||||
"Bitrate",
|
||||
"Bitrate",
|
||||
|
@ -258,7 +258,7 @@ impl ObjectImpl for Rav1Enc {
|
|||
DEFAULT_BITRATE,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"quantizer",
|
||||
"Quantizer",
|
||||
"Quantizer",
|
||||
|
@ -267,7 +267,7 @@ impl ObjectImpl for Rav1Enc {
|
|||
DEFAULT_QUANTIZER as u32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"tile-cols",
|
||||
"Tile Cols",
|
||||
"Tile Cols",
|
||||
|
@ -276,7 +276,7 @@ impl ObjectImpl for Rav1Enc {
|
|||
DEFAULT_TILE_COLS as u32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"tile-rows",
|
||||
"Tile Rows",
|
||||
"Tile Rows",
|
||||
|
@ -285,7 +285,7 @@ impl ObjectImpl for Rav1Enc {
|
|||
DEFAULT_TILE_ROWS as u32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"tiles",
|
||||
"Tiles",
|
||||
"Tiles",
|
||||
|
@ -294,7 +294,7 @@ impl ObjectImpl for Rav1Enc {
|
|||
DEFAULT_TILES as u32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_uint(
|
||||
glib::ParamSpecUInt::new(
|
||||
"threads",
|
||||
"Threads",
|
||||
"Threads",
|
||||
|
|
|
@ -175,7 +175,7 @@ impl ObjectImpl for PngEncoder {
|
|||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::ParamSpec::new_enum(
|
||||
glib::ParamSpecEnum::new(
|
||||
"compression-level",
|
||||
"Compression level",
|
||||
"Selects the compression algorithm to use",
|
||||
|
@ -183,7 +183,7 @@ impl ObjectImpl for PngEncoder {
|
|||
DEFAULT_COMPRESSION_LEVEL as i32,
|
||||
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
|
||||
),
|
||||
glib::ParamSpec::new_enum(
|
||||
glib::ParamSpecEnum::new(
|
||||
"filter",
|
||||
"Filter",
|
||||
"Selects the filter type to applied",
|
||||
|
|
Loading…
Reference in a new issue