| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | use crate::encoder::PredictionStructure; |
| 6 | use crate::Resolution; |
| 7 | |
| 8 | pub struct VP8; |
| 9 | |
| 10 | #[derive(Clone)] |
| 11 | pub struct EncoderConfig { |
| 12 | pub resolution: Resolution, |
| 13 | pub pred_structure: PredictionStructure, |
| 14 | } |
| 15 | |
| 16 | impl Default for EncoderConfig { |
| 17 | fn default() -> Self { |
| 18 | |
| 19 | Self { |
| 20 | resolution: Resolution { width: 320, height: 240 }, |
| 21 | pred_structure: PredictionStructure::LowDelay { limit: 2048 }, |
| 22 | } |
| 23 | } |
| 24 | } |