Commit 2ff9055f authored by Luca Barbato's avatar Luca Barbato Committed by Luca Barbato

Rename get_frame_properties to build_frame_properties

The function creates a new FrameInvariant according to some logic
parent 04512866
...@@ -494,13 +494,13 @@ impl Context { ...@@ -494,13 +494,13 @@ impl Context {
} }
fn set_frame_properties(&mut self, idx: u64) -> bool { fn set_frame_properties(&mut self, idx: u64) -> bool {
let (fi, end_of_subgop) = self.get_frame_properties(idx); let (fi, end_of_subgop) = self.build_frame_properties(idx);
self.frame_data.insert(idx, fi); self.frame_data.insert(idx, fi);
end_of_subgop end_of_subgop
} }
fn get_frame_properties(&mut self, idx: u64) -> (FrameInvariants, bool) { fn build_frame_properties(&mut self, idx: u64) -> (FrameInvariants, bool) {
if idx == 0 { if idx == 0 {
let mut seq = Sequence::new(&self.config.video_info); let mut seq = Sequence::new(&self.config.video_info);
seq.pixel_range = self.config.enc.pixel_range; seq.pixel_range = self.config.enc.pixel_range;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment