diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-06-25 19:49:07 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-06-25 19:49:07 +0300 |
commit | f62c11f851d357b131d5246153724d616bfc3451 (patch) | |
tree | 9904ca49deb4277fd855cfeef22f560166cde5be /video | |
parent | 392bfc0b1e67ec207c0de6a7298e6b735752dcba (diff) |
Update for functions returning a Builder being renamed to builder() instead of new()
And new video event APIs.
Diffstat (limited to 'video')
-rw-r--r-- | video/cdg/tests/cdgdec.rs | 2 | ||||
-rw-r--r-- | video/gif/tests/gifenc.rs | 4 | ||||
-rw-r--r-- | video/rav1e/tests/rav1enc.rs | 18 | ||||
-rw-r--r-- | video/rspng/tests/pngenc.rs | 8 |
4 files changed, 16 insertions, 16 deletions
diff --git a/video/cdg/tests/cdgdec.rs b/video/cdg/tests/cdgdec.rs index f8997767d..c43ffa4fd 100644 --- a/video/cdg/tests/cdgdec.rs +++ b/video/cdg/tests/cdgdec.rs @@ -64,7 +64,7 @@ fn test_cdgdec() { let sink = sink.downcast::<gst_app::AppSink>().unwrap(); sink.set_callbacks( - gst_app::AppSinkCallbacks::new() + gst_app::AppSinkCallbacks::builder() // Add a handler to the "new-sample" signal. .new_sample(move |appsink| { // Pull the sample in question out of the appsink's buffer. diff --git a/video/gif/tests/gifenc.rs b/video/gif/tests/gifenc.rs index 9d06ce26b..11a6975d7 100644 --- a/video/gif/tests/gifenc.rs +++ b/video/gif/tests/gifenc.rs @@ -27,7 +27,7 @@ fn init() { fn test_encode_rgba() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Rgba, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Rgba, 160, 120) .fps((30, 1)) .build() .unwrap(); @@ -37,7 +37,7 @@ fn test_encode_rgba() { fn test_encode_rgb() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Rgb, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Rgb, 160, 120) .fps((30, 1)) .build() .unwrap(); diff --git a/video/rav1e/tests/rav1enc.rs b/video/rav1e/tests/rav1enc.rs index 09b727c3f..ec2591430 100644 --- a/video/rav1e/tests/rav1enc.rs +++ b/video/rav1e/tests/rav1enc.rs @@ -28,7 +28,7 @@ fn init() { fn test_encode_i420() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::I420, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::I420, 160, 120) .fps((30, 1)) .build() .unwrap(); @@ -39,7 +39,7 @@ fn test_encode_i420() { fn test_encode_i420_10() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::I42010le, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::I42010le, 160, 120) .fps((30, 1)) .build() .unwrap(); @@ -50,7 +50,7 @@ fn test_encode_i420_10() { fn test_encode_i420_12() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::I42012le, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::I42012le, 160, 120) .fps((30, 1)) .build() .unwrap(); @@ -61,7 +61,7 @@ fn test_encode_i420_12() { fn test_encode_y42b() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Y42b, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Y42b, 160, 120) .fps((30, 1)) .build() .unwrap(); @@ -72,7 +72,7 @@ fn test_encode_y42b() { fn test_encode_i422_10() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::I42210le, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::I42210le, 160, 120) .fps((30, 1)) .build() .unwrap(); @@ -83,7 +83,7 @@ fn test_encode_i422_10() { fn test_encode_y422_12() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::I42212le, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::I42212le, 160, 120) .fps((30, 1)) .build() .unwrap(); @@ -94,7 +94,7 @@ fn test_encode_y422_12() { fn test_encode_y444() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Y444, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Y444, 160, 120) .fps((30, 1)) .build() .unwrap(); @@ -105,7 +105,7 @@ fn test_encode_y444() { fn test_encode_i444_10() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Y44410le, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Y44410le, 160, 120) .fps((30, 1)) .build() .unwrap(); @@ -116,7 +116,7 @@ fn test_encode_i444_10() { fn test_encode_i444_12() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Y44412le, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Y44412le, 160, 120) .fps((30, 1)) .build() .unwrap(); diff --git a/video/rspng/tests/pngenc.rs b/video/rspng/tests/pngenc.rs index de57b1965..4668633c1 100644 --- a/video/rspng/tests/pngenc.rs +++ b/video/rspng/tests/pngenc.rs @@ -20,7 +20,7 @@ fn init() { fn test_png_encode_gray() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Gray8, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Gray8, 160, 120) .fps((30, 1)) .build() .unwrap(); @@ -31,7 +31,7 @@ fn test_png_encode_gray() { fn test_png_encode_gray16() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Gray16Be, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Gray16Be, 160, 120) .fps((30, 1)) .build() .unwrap(); @@ -42,7 +42,7 @@ fn test_png_encode_gray16() { fn test_png_encode_rgb() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Rgb, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Rgb, 160, 120) .fps((30, 1)) .build() .unwrap(); @@ -53,7 +53,7 @@ fn test_png_encode_rgb() { fn test_png_encode_rgba() { init(); - let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Rgba, 160, 120) + let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Rgba, 160, 120) .fps((30, 1)) .build() .unwrap(); |