mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-23 17:38:20 +00:00
rav1enc: Support 8 bit grayscale input
This commit is contained in:
parent
c194fb05f4
commit
9570fcaddd
1 changed files with 2 additions and 2 deletions
|
@ -441,7 +441,7 @@ impl ElementImpl for Rav1Enc {
|
||||||
gst_video::VideoFormat::I42012le.to_str(),
|
gst_video::VideoFormat::I42012le.to_str(),
|
||||||
gst_video::VideoFormat::I42212le.to_str(),
|
gst_video::VideoFormat::I42212le.to_str(),
|
||||||
gst_video::VideoFormat::Y44412le.to_str(),
|
gst_video::VideoFormat::Y44412le.to_str(),
|
||||||
// &gst_video::VideoFormat::Gray8.to_str(),
|
gst_video::VideoFormat::Gray8.to_str(),
|
||||||
]),
|
]),
|
||||||
)
|
)
|
||||||
.field("width", gst::IntRange::new(1, std::i32::MAX))
|
.field("width", gst::IntRange::new(1, std::i32::MAX))
|
||||||
|
@ -528,7 +528,7 @@ impl VideoEncoderImpl for Rav1Enc {
|
||||||
gst_video::VideoFormat::Y444
|
gst_video::VideoFormat::Y444
|
||||||
| gst_video::VideoFormat::Y44410le
|
| gst_video::VideoFormat::Y44410le
|
||||||
| gst_video::VideoFormat::Y44412le => color::ChromaSampling::Cs444,
|
| gst_video::VideoFormat::Y44412le => color::ChromaSampling::Cs444,
|
||||||
// gst_video::VideoFormat::Gray8 => color::ChromaSampling::Cs400,
|
gst_video::VideoFormat::Gray8 => color::ChromaSampling::Cs400,
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
},
|
},
|
||||||
chroma_sample_position: match video_info.chroma_site() {
|
chroma_sample_position: match video_info.chroma_site() {
|
||||||
|
|
Loading…
Reference in a new issue