cros_codecs/encoder/
vp8.rs

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
5use crate::encoder::PredictionStructure;
6use crate::Resolution;
7
8pub struct VP8;
9
10#[derive(Clone)]
11pub struct EncoderConfig {
12    pub resolution: Resolution,
13    pub pred_structure: PredictionStructure,
14}
15
16impl Default for EncoderConfig {
17    fn default() -> Self {
18        // Artificially encoder configuration with intent to be widely supported.
19        Self {
20            resolution: Resolution {
21                width: 320,
22                height: 240,
23            },
24            pred_structure: PredictionStructure::LowDelay { limit: 2048 },
25        }
26    }
27}