projects
/
nihav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3e113f5
)
allow setting w/h for NAVideoInfo
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Fri, 14 Jul 2017 16:28:04 +0000
(18:28 +0200)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Fri, 14 Jul 2017 16:28:04 +0000
(18:28 +0200)
src/frame.rs
patch
|
blob
|
blame
|
history
diff --git
a/src/frame.rs
b/src/frame.rs
index b6cc9eb3780b0fba47d0f2b40be276e2eef82ca1..6f22dafc1cdcdc4277704789ad3fbed197f00249 100644
(file)
--- 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 {