WebP RGB565 encoding?

86 views
Skip to first unread message

Hyosung Jeon

unread,
Feb 11, 2015, 10:50:28 AM2/11/15
to webp-d...@webmproject.org
Sorry, previous post is deleted because of wrong personal information( copy and paste ). 

Dear webp project 

I am mobile graphics developer. I has been reviewing your library for improving performance and reduce network bandwidth.

webp image's size is very impressive, and rgb565 decoding feature is good for gpu memory usages and bandwidth.

So, I started to find encoding feature of RGB565. and I failed that feature.

How can I uses rgb565 encoding? Did it right now possible?

Pascal Massimino

unread,
Feb 11, 2015, 4:31:57 PM2/11/15
to WebP Discussion
Hi,

What is your platform / language? Are you trying to compress into lossy or lossless format?

Converting rgb565 to rgb888 is somewhat straightforward, note. (the difficult part is the byte ordering, most of the time :))

/skal

Pascal Massimino

unread,
Feb 16, 2015, 9:01:01 AM2/16/15
to WebP Discussion
Hi,

For reference, i've uploaded some C-code that is likely doing what you need:


There's two new functions: WebPImportRGB565 and WebPImportRGB4444 (for good measure).
Not sure they should be part of the official API, but rather fall in the 'goodies' category
(pretty much like WebPImportGray that we discussed before here. Patch: https://gerrit.chromium.org/gerrit/#/c/73791)

Anyway, here you go, give it a try if you can!

/skal

Reply all
Reply to author
Forward
0 new messages