cros_codecs/encoder/
h264.rs1use crate::codec::h264::parser::Level;
6use crate::codec::h264::parser::Profile;
7use crate::encoder::PredictionStructure;
8use crate::encoder::Tunings;
9use crate::Resolution;
10
11pub struct H264;
12
13#[derive(Clone)]
14pub struct EncoderConfig {
15 pub resolution: Resolution,
16 pub profile: Profile,
17 pub level: Level,
18 pub pred_structure: PredictionStructure,
19 pub initial_tunings: Tunings,
21}
22
23impl Default for EncoderConfig {
24 fn default() -> Self {
25 Self {
27 resolution: Resolution {
28 width: 320,
29 height: 240,
30 },
31 profile: Profile::Baseline,
32 level: Level::L4,
33 pred_structure: PredictionStructure::LowDelay { limit: 2048 },
34 initial_tunings: Default::default(),
35 }
36 }
37}