PVR and PNG on iOS

Source: Internet
Author: User

The PVR format is an iOS display chip that can be directly read without parsing and can be displayed directly, so the rendering speed is faster and saves memory.

Zwoptex has an item called "CCZ compression", the size of the image can be reduced by almost half. The file format is: Xxx.pvr.ccz,cocos2d is recognizable. PVRTC2And PVRTC4are two PVR compressed image formats, both of which are PVR files. Both image formats have faster loading speeds and smaller memory footprint than normal images. PVRTC4: Compressed format, 4 bits per pixel, OK image quality PVRTC2: Compressed format, 2 bits per pixel, poor image quality general PVR format files have: RGBA8888: 32-bit texture with alpha channel, best image quality RGBA4444: 16-bit texture with alpha channel, good image quality RGB565: 16-bit texture without alpha channel, good image quality but no alpha (transparency) image takes up the memory formula: numbytes = width * Height * bitsperpixel/8That is to say, 2048*2048 RGBA8888 takes up 16MB of memory, while PVRTC4 consumes only 2MB

PVR and PNG on iOS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.