mirror of
https://github.com/encounter/rust-ffmpeg.git
synced 2026-07-10 21:18:39 -07:00
frame/video: make plane_height() public
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user