cros-codecs 0.0.6

Hardware-accelerated codecs for Linux
Documentation
// Copyright 2024 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

use crate::encoder::PredictionStructure;
use crate::Resolution;

pub struct VP8;

#[derive(Clone)]
pub struct EncoderConfig {
    pub resolution: Resolution,
    pub pred_structure: PredictionStructure,
}

impl Default for EncoderConfig {
    fn default() -> Self {
        // Artificially encoder configuration with intent to be widely supported.
        Self {
            resolution: Resolution { width: 320, height: 240 },
            pred_structure: PredictionStructure::LowDelay { limit: 2048 },
        }
    }
}