From: Kostya Shishkov Date: Fri, 14 Jul 2017 16:28:04 +0000 (+0200) Subject: allow setting w/h for NAVideoInfo X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=dd1b60e11adcb191557729e0cccd8f7ab0196fe5;p=nihav.git allow setting w/h for NAVideoInfo --- diff --git a/src/frame.rs b/src/frame.rs index b6cc9eb..6f22daf 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -47,6 +47,8 @@ impl NAVideoInfo { pub fn get_height(&self) -> usize { self.height as usize } pub fn is_flipped(&self) -> bool { self.flipped } pub fn get_format(&self) -> NAPixelFormaton { self.format } + pub fn set_width(&mut self, w: usize) { self.width = w; } + pub fn set_height(&mut self, h: usize) { self.height = h; } } impl fmt::Display for NAVideoInfo {