forge
Explore
Log in

Don't you dare go Hollow

edith

Clone
★ 0

0 watching0 forksRust18.3 MiB2e2ed69Tahinli3 months ago69 commits

vp8.rs24 lines, 666 bytesHistoryRawDownload
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 { width: 320, height: 240 },
21 pred_structure: PredictionStructure::LowDelay { limit: 2048 },
22 }
23 }
24}