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