GNOME Bugzilla – Bug 704357
regression: videocrop unit test fail after adding GRAY16_BE format
Last modified: 2013-07-18 15:00:12 UTC
There is a regression according to videocrop unit tests. The cause seems the following patch: commit 837dcfb3638ea3f88f9ff8192f63e1ddc935e1a3 Author: Joshua M. Doe <oss@nvl.army.mil> Date: Tue May 14 10:28:10 2013 -0400 videocrop: Add support for GRAY16_LE/GRAY16_BE https://bugzilla.gnome.org/show_bug.cgi?id=700331
The value after cropping seems good, though the test seems wrong: values[i] >> (8 - depth)); Where depth is 16, means we try to shift -8 (a bit number which will guaranty having 0 on any platforms). Also, this value array seems specific to 8bit.
Created attachment 249336 [details] [review] [PATCH] videocrop: Fix unit for GRAY16 formats tests/check/elements/videocrop.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
Would that patch be ok ?
Comment on attachment 249336 [details] [review] [PATCH] videocrop: Fix unit for GRAY16 formats Yes
Comment on attachment 249336 [details] [review] [PATCH] videocrop: Fix unit for GRAY16 formats I again forgot to modify the commit log, sorry Tim. commit 01b20ab901a59db8c148504893db09b976c47c01 Author: Nicolas Dufresne <nicolas.dufresne@collabora.com> Date: Tue Jul 16 20:41:15 2013 -0400 videocrop: Fix unit for GRAY16 formats