Commit 8969d150 authored by Raphaël Zumer's avatar Raphaël Zumer

Define Default::default() for FrameInfo

parent f571c632
......@@ -246,7 +246,7 @@ pub struct ColorDescription {
}
/// Frame-specific information
#[derive(Clone, Copy, Debug, Default)]
#[derive(Clone, Copy, Debug)]
pub struct FrameInfo {
pub width: usize,
pub height: usize,
......@@ -255,6 +255,18 @@ pub struct FrameInfo {
pub chroma_sample_position: ChromaSamplePosition
}
impl Default for FrameInfo {
fn default() -> FrameInfo {
FrameInfo {
width: 640,
height: 480,
bit_depth: 8,
chroma_sampling: Default::default(),
chroma_sample_position: Default::default()
}
}
}
/// Contain all the encoder configuration
#[derive(Clone, Copy, Debug)]
pub struct 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