teasame / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

ppc support for webp #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now ppc builds are not able to decode webp pictures. The following 
trivial patch fixes it:

--- webp/src/utils/bit_reader.h 2012-03-08 17:26:25.722680500 +0100
+++ ../libwebp/src/utils/bit_reader.h   2012-03-08 10:43:08.704549500 +0100
@@ -92,8 +92,6 @@
     // gcc will recognize a 'rorw $8, ...' here:
     bits = (bit_t)(in_bits >> 8) | ((in_bits & 0xff) << 8);
 #endif
-#else
-    bits = (bit_t)in_bits;
 #endif    // LITTLE_ENDIAN
     br->value_ |= bits << br->missing_;
     br->missing_ -= (BITS);

Original issue reported on code.google.com by naidef...@gmail.com on 14 Mar 2012 at 11:29

GoogleCodeExporter commented 9 years ago
Hi,

this has already been fixed (for various problems) in HEAD.
Here is the link to the current code in the git repository:

http://code.google.com/p/webm/source/browse/src/utils/bit_reader.h?repo=libwebp#
72

Original comment by pascal.m...@gmail.com on 22 Mar 2012 at 2:11

GoogleCodeExporter commented 9 years ago
oops, i mis-read your report. You're indeed right, there's a line of code 
missing for LITTLE_ENDIAN!
Sorry about that, patch coming soon.

Original comment by pascal.m...@gmail.com on 27 Mar 2012 at 12:52

GoogleCodeExporter commented 9 years ago
fixed as per commit I874dbd55

Original comment by pascal.m...@gmail.com on 27 Mar 2012 at 12:58