projects
/
platform
/
upstream
/
v4l-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abccc7a
)
libv4l: fixup konica yuv420 conversion code
author
Hans de Goede
<hdegoede@redhat.com>
Sun, 4 Jul 2010 10:56:20 +0000
(12:56 +0200)
committer
Hans de Goede
<hdegoede@redhat.com>
Sun, 4 Jul 2010 10:56:20 +0000
(12:56 +0200)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
lib/libv4lconvert/spca501.c
patch
|
blob
|
history
diff --git
a/lib/libv4lconvert/spca501.c
b/lib/libv4lconvert/spca501.c
index
bf0e08a
..
a8e2725
100644
(file)
--- a/
lib/libv4lconvert/spca501.c
+++ b/
lib/libv4lconvert/spca501.c
@@
-199,8
+199,7
@@
void v4lconvert_konica_yuv420_to_yuv420(const unsigned char *src,
vdest = udest + (width * height) / 4;
}
- no_blocks = width * height * 3 / 2;
- no_blocks /= 256;
+ no_blocks = width * height / 256;
for (i = 0; i < no_blocks; i++) {
/* copy 256 Y pixels */
memcpy(ydest, src, 256);
@@
-213,8
+212,8
@@
void v4lconvert_konica_yuv420_to_yuv420(const unsigned char *src,
udest += 64;
/* copy 64 V pixels */
- memcpy(
u
dest, src, 64);
+ memcpy(
v
dest, src, 64);
src += 64;
-
u
dest += 64;
+
v
dest += 64;
}
}