Commit 062f6bce authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Luca Barbato
Browse files

crav1e: Update API to the unified EncoderConfig

See xiph/rav1e@599bbd5b6fcc2cd586a24b70090b7caedb4b2bc6.
parent 5886ffbd
......@@ -81,19 +81,19 @@ pub unsafe extern "C" fn rav1e_config_default(
bit_depth: u8,
chroma_sampling: ChromaSampling,
chroma_sample_position: ChromaSamplePosition,
timebase: Rational,
time_base: Rational,
) -> *mut Config {
let enc = rav1e::EncoderConfig{
width : width as usize,
height: height as usize,
bit_depth: bit_depth as usize,
chroma_sampling,
chroma_sample_position,
time_base,
..Default::default()
};
let cfg = rav1e::Config {
video_info: rav1e::VideoDetails {
width: width as usize,
height: height as usize,
bit_depth: bit_depth as usize,
chroma_sampling,
chroma_sample_position,
mono: false,
time_base: timebase,
},
enc: Default::default(),
enc
};
let c = Box::new(Config {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment