mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 10:30:40 +00:00
cdg: Update to image 0.22 and cdg_renderer 0.3
This commit is contained in:
parent
324b205926
commit
1e71767b40
2 changed files with 4 additions and 7 deletions
|
@ -13,9 +13,9 @@ gstreamer = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", fea
|
||||||
gstreamer-base = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["subclassing", "v1_12"] }
|
gstreamer-base = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["subclassing", "v1_12"] }
|
||||||
gstreamer-video = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["subclassing", "v1_12"] }
|
gstreamer-video = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["subclassing", "v1_12"] }
|
||||||
gstreamer-app = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
gstreamer-app = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
||||||
cdg = "0.1.0"
|
cdg = "0.1"
|
||||||
cdg_renderer = "0.2"
|
cdg_renderer = "0.3"
|
||||||
image = "0.21"
|
image = "0.22"
|
||||||
muldiv = "0.2"
|
muldiv = "0.2"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
|
|
|
@ -180,10 +180,7 @@ impl VideoDecoderImpl for CdgDec {
|
||||||
.enumerate()
|
.enumerate()
|
||||||
{
|
{
|
||||||
let p = cdg_inter.get_pixel(x as u32, y as u32);
|
let p = cdg_inter.get_pixel(x as u32, y as u32);
|
||||||
pixel[0] = p.data[0];
|
pixel.copy_from_slice(&p.0);
|
||||||
pixel[1] = p.data[1];
|
|
||||||
pixel[2] = p.data[2];
|
|
||||||
pixel[3] = p.data[3];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue