frame/video: make plane_height() public

This commit is contained in:
Ivan Molodetskikh 2017-06-14 14:22:04 +03:00 committed by meh
parent c873287eb8
commit 0f48e9472b

View File

@ -245,7 +245,12 @@ impl Video {
8
}
fn plane_height(&self, index: usize) -> u32 {
#[inline]
pub fn plane_height(&self, index: usize) -> u32 {
if index >= self.planes() {
panic!("out of bounds");
}
// Logic taken from av_image_fill_pointers().
if index != 1 && index != 2 {
return self.height();