FORUMS
Remove All Ads from XDA

Bootanimation Codec: PNG vs. JPG

6 posts
Thanks Meter: 0
 
By sambuculus, Junior Member on 8th February 2014, 10:43 AM
Post Reply Email Thread
I have seen people around this forum say that PNG is superior to JPG. I'd love to get one final answer in this thread concerning performance.

The core difference: PNG is lossless, JPG is lossy.
This results in around 3-4 times bigger file sizes on a PNG file on a quality level (9/10) without perceptible quality difference.
The drawback is that each JPG needs to be decompressed "live" from 24 to 30 times a second. On the other hand, the PNG method needs to load 4 times more data.

I only tested the performance on an Xperia Arc (1*1GHz), and I could notice some lag on the JPG. My guess, though, is that on any modern device (dual core +), there wouldn't be a noticeable difference.
If so, I would prefer the 17 MB (JPG) to the 77 MB (PNG) on a HD animation.

Has anyone tested this?

Further informationů
PNG supports alpha, JPG doesn't. No need for alpha in a boot animation. Both are 8 bit.
JPG is good for photography and "natural" imagery, but bad at hard edges and color fields.
 
 
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes