mirror of
https://github.com/alfg/mp4-rust.git
synced 2025-04-23 04:04:14 +00:00
Update types.rs
Add after the HevcConfig.
This commit is contained in:
parent
2c4d86e3e0
commit
4dff0c63de
1 changed files with 7 additions and 7 deletions
14
src/types.rs
14
src/types.rs
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue