1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2024-06-02 13:39:54 +00:00

Update types.rs

Add after the HevcConfig.
This commit is contained in:
ninthakeey 2021-01-25 13:54:37 +08:00 committed by GitHub
parent 2c4d86e3e0
commit 4dff0c63de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -480,6 +480,12 @@ pub struct HevcConfig {
pub height: u16,
}
#[derive(Debug, PartialEq, Clone, Default)]
pub struct Vp9Config {
pub width: u16,
pub height: u16,
}
#[derive(Debug, PartialEq, Clone)]
pub struct AacConfig {
pub bitrate: u32,
@ -502,19 +508,13 @@ impl Default for AacConfig {
#[derive(Debug, PartialEq, Clone, Default)]
pub struct TtxtConfig {}
#[derive(Debug, PartialEq, Clone, Default)]
pub struct Vp9Config {
pub width: u16,
pub height: u16,
}
#[derive(Debug, PartialEq, Clone)]
pub enum MediaConfig {
AvcConfig(AvcConfig),
HevcConfig(HevcConfig),
Vp9Config(Vp9Config),
AacConfig(AacConfig),
TtxtConfig(TtxtConfig),
Vp9Config(Vp9Config),
}
#[derive(Debug)]