From dd1b60e11adcb191557729e0cccd8f7ab0196fe5 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 14 Jul 2017 18:28:04 +0200 Subject: [PATCH] allow setting w/h for NAVideoInfo --- src/frame.rs | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.30.2