Wrap FFmpeg's AVHWDeviceType and av_hwdevice_iterate_types

This commit is contained in:
Josh Megnauth 2024-02-14 03:09:44 -05:00
parent 3235a0425a
commit 99595eeeed
No known key found for this signature in database
GPG key ID: 70813183462EFAD3
5 changed files with 173 additions and 0 deletions

View file

@ -6,6 +6,8 @@ use cosmic::{
};
use serde::{Deserialize, Serialize};
use crate::wrappers::HWDeviceType;
pub const CONFIG_VERSION: u64 = 1;
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
@ -28,12 +30,14 @@ impl AppTheme {
#[derive(Clone, CosmicConfigEntry, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub struct Config {
pub app_theme: AppTheme,
pub hw_decoder: HWDeviceType,
}
impl Default for Config {
fn default() -> Self {
Self {
app_theme: AppTheme::System,
hw_decoder: HWDeviceType::default(),
}
}
}