Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2021-11-20 13:25:14 +0300
committerSebastian Dröge <sebastian@centricular.com>2021-11-20 15:31:06 +0300
commit55aad51141907ea7834eb0cbcdf6f92e3fdce5d1 (patch)
treef556878f25667e079ce6d0dac96bda76f5f8be31 /video
parent288acaa7ccb596e63af47b8ef7b8408a84f973b3 (diff)
Update for glib constructor renames
See https://github.com/gtk-rs/gtk-rs-core/pull/384
Diffstat (limited to 'video')
-rw-r--r--video/closedcaption/src/ccdetect/imp.rs6
-rw-r--r--video/closedcaption/src/cea608overlay/imp.rs6
-rw-r--r--video/closedcaption/src/cea608tojson/imp.rs2
-rw-r--r--video/closedcaption/src/mcc_enc/imp.rs4
-rw-r--r--video/closedcaption/src/transcriberbin/imp.rs12
-rw-r--r--video/closedcaption/src/tttocea608/imp.rs6
-rw-r--r--video/closedcaption/src/tttojson/imp.rs2
-rw-r--r--video/closedcaption/tests/mcc_enc.rs2
-rw-r--r--video/gif/src/gifenc/imp.rs4
-rw-r--r--video/gtk4/src/sink/imp.rs2
-rw-r--r--video/hsv/src/hsvdetector/imp.rs12
-rw-r--r--video/hsv/src/hsvfilter/imp.rs10
-rw-r--r--video/rav1e/src/rav1enc/imp.rs20
-rw-r--r--video/rspng/src/pngenc/imp.rs4
14 files changed, 46 insertions, 46 deletions
diff --git a/video/closedcaption/src/ccdetect/imp.rs b/video/closedcaption/src/ccdetect/imp.rs
index 54f414c00..cd85cde84 100644
--- a/video/closedcaption/src/ccdetect/imp.rs
+++ b/video/closedcaption/src/ccdetect/imp.rs
@@ -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",
diff --git a/video/closedcaption/src/cea608overlay/imp.rs b/video/closedcaption/src/cea608overlay/imp.rs
index 6a4c449ec..66065664d 100644
--- a/video/closedcaption/src/cea608overlay/imp.rs
+++ b/video/closedcaption/src/cea608overlay/imp.rs
@@ -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",
diff --git a/video/closedcaption/src/cea608tojson/imp.rs b/video/closedcaption/src/cea608tojson/imp.rs
index 900235fd8..4c67d3d24 100644
--- a/video/closedcaption/src/cea608tojson/imp.rs
+++ b/video/closedcaption/src/cea608tojson/imp.rs
@@ -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, \
diff --git a/video/closedcaption/src/mcc_enc/imp.rs b/video/closedcaption/src/mcc_enc/imp.rs
index 48cadc5e1..0d59fd6f2 100644
--- a/video/closedcaption/src/mcc_enc/imp.rs
+++ b/video/closedcaption/src/mcc_enc/imp.rs
@@ -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",
diff --git a/video/closedcaption/src/transcriberbin/imp.rs b/video/closedcaption/src/transcriberbin/imp.rs
index b174b2a8c..aa084acca 100644
--- a/video/closedcaption/src/transcriberbin/imp.rs
+++ b/video/closedcaption/src/transcriberbin/imp.rs
@@ -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",
diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs
index b9b6ab901..e2c16e7f0 100644
--- a/video/closedcaption/src/tttocea608/imp.rs
+++ b/video/closedcaption/src/tttocea608/imp.rs
@@ -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",
diff --git a/video/closedcaption/src/tttojson/imp.rs b/video/closedcaption/src/tttojson/imp.rs
index 9eda203e9..616ac2aba 100644
--- a/video/closedcaption/src/tttojson/imp.rs
+++ b/video/closedcaption/src/tttojson/imp.rs
@@ -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",
diff --git a/video/closedcaption/tests/mcc_enc.rs b/video/closedcaption/tests/mcc_enc.rs
index f3e8c30cf..58d615187 100644
--- a/video/closedcaption/tests/mcc_enc.rs
+++ b/video/closedcaption/tests/mcc_enc.rs
@@ -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(),
);
}
diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs
index 8bec0302f..7a3c32de7 100644
--- a/video/gif/src/gifenc/imp.rs
+++ b/video/gif/src/gifenc/imp.rs
@@ -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)",
diff --git a/video/gtk4/src/sink/imp.rs b/video/gtk4/src/sink/imp.rs
index 70344ed10..3b3705414 100644
--- a/video/gtk4/src/sink/imp.rs
+++ b/video/gtk4/src/sink/imp.rs
@@ -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",
diff --git a/video/hsv/src/hsvdetector/imp.rs b/video/hsv/src/hsvdetector/imp.rs
index 2d64072ce..bd758dcdf 100644
--- a/video/hsv/src/hsvdetector/imp.rs
+++ b/video/hsv/src/hsvdetector/imp.rs
@@ -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",
diff --git a/video/hsv/src/hsvfilter/imp.rs b/video/hsv/src/hsvfilter/imp.rs
index 67fb49218..444fdbd2b 100644
--- a/video/hsv/src/hsvfilter/imp.rs
+++ b/video/hsv/src/hsvfilter/imp.rs
@@ -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)",
diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs
index bf32739cc..014dd255a 100644
--- a/video/rav1e/src/rav1enc/imp.rs
+++ b/video/rav1e/src/rav1enc/imp.rs
@@ -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",
diff --git a/video/rspng/src/pngenc/imp.rs b/video/rspng/src/pngenc/imp.rs
index 09491b502..15c18b6d9 100644
--- a/video/rspng/src/pngenc/imp.rs
+++ b/video/rspng/src/pngenc/imp.rs
@@ -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",