1 // Copyright 2024 The ChromiumOS Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 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 { default() -> Self17 fn default() -> Self { 18 // Artificially encoder configuration with intent to be widely supported. 19 Self { 20 resolution: Resolution { width: 320, height: 240 }, 21 pred_structure: PredictionStructure::LowDelay { limit: 2048 }, 22 } 23 } 24 } 25