[vlc-devel] [PATCH 2/3] [RFC] pictures: the planes visible lines/pitch should include the offsets
Steve Lhomme
robux4 at videolabs.io
Thu Aug 18 15:57:02 CEST 2016
The pitch and line values are just used to copy/process the data on the plane.
When there's an offset on the source like in offset_test.ogv [1] the visible
pitch/lines are missing the amount of the offset. When only the visible part
of the plane is used valuable pixels are missing (see plane_CopyPixels() [2]).
[1] https://v2v.cc/~j/theora_testsuite/offset_test.ogv
[2] http://git.videolan.org/?p=vlc.git;a=blob;f=src/misc/picture.c;h=0cdbd0e983388de3d88f1a07021e5afa902558b5;hb=HEAD#l322
---
include/vlc_picture.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/vlc_picture.h b/include/vlc_picture.h
index b8d4a5a..23eff88 100644
--- a/include/vlc_picture.h
+++ b/include/vlc_picture.h
@@ -46,8 +46,8 @@ typedef struct plane_t
int i_pixel_pitch;
/* Variables used for pictures with margins */
- int i_visible_lines; /**< How many visible lines are there ? */
- int i_visible_pitch; /**< How many visible pixels are there ? */
+ int i_visible_lines; /**< How many needed (offset+visible) lines are there ? */
+ int i_visible_pitch; /**< How many needed (offset+visible) pixels per line */
} plane_t;
--
2.9.1
More information about the vlc-devel
mailing list