aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2017-07-14 18:28:04 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2017-07-14 18:28:04 +0200
commitdd1b60e11adcb191557729e0cccd8f7ab0196fe5 (patch)
tree3f03e7b29f271d5b1078ecac8d3775dce9f8f48f
parent3e113f526806a877f464d0b5813d633bb0bd991a (diff)
downloadnihav-dd1b60e11adcb191557729e0cccd8f7ab0196fe5.tar.gz
allow setting w/h for NAVideoInfo
-rw-r--r--src/frame.rs2
1 files changed, 2 insertions, 0 deletions
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 {