Editing PVR

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 18: Line 18:
== File format ==
== File format ==


The PVR (.pvr) format (specification version 3.0.0) consists of:
The PVR (.pvr) format (PowerVR SDK REL_3.5) consists of:


{| class="wikitable" style="text-align: center;"
{| class="wikitable" style="text-align: center;"
|-
|-
| style="background-color:#505652; color:#FFFFFF;" |'''Header'''<br />52 bytes (0x34)
| style="background-color:#505652; color:#FFFFFF;" |'''Header'''<br />52 bytes
| style="background-color:#505652; color:#FFFFFF;" |'''Meta Data (optional)'''<br />variable
| style="background-color:#505652; color:#FFFFFF;" |'''Meta Data (optional)'''<br />variable
| style="background-color:#505652; color:#FFFFFF;" |'''Texture Data'''<br />variable
| style="background-color:#505652; color:#FFFFFF;" |'''Texture Data'''<br />variable
|-
|-
|}
|}
Sony uses a custom header.


=== Header ===
=== Header ===
Line 54: Line 56:
| 0x14 || 0x04 || 00 00 00 00 || 0 || '''Channel Type:'''
| 0x14 || 0x04 || 00 00 00 00 || 0 || '''Channel Type:'''
|-
|-
| 0x18 || 0x04 || 00 01 00 00 || 256 || '''Height:''' width of the texture stored in the texture data, in pixels.  
| 0x18 || 0x08 || 00 01 00 00 || 256 || '''Height:''' width of the texture stored in the texture data, in pixels.  
|-
|-
| 0x1C || 0x04 || 00 01 00 00 || 256 || '''Width:''' width of the texture stored in the texture data, in pixels.  
| 0x1C || 0x04 || 00 01 00 00 || 256 || '''Width:''' width of the texture stored in the texture data, in pixels.  
|-
|-
| 0x20 || 0x04 || 01 00 00 00 || 1 || '''Depth:''' depth of the texture stored in the texture data, in pixels.
| 0x20 || 0x04 || 01 00 00 00 || 1 || '''Depth:'''depth of the texture stored in the texture data, in pixels.
|-
| 0x24 || 0x04 || 01 00 00 00 || 1 || '''Num. Surfaces:''' number of surfaces within the texture array.
|-
|-
| 0x28 || 0x04 || 01 00 00 00 || 1 || '''Num. Faces:''' number of faces in a cube map.  
| 0x24 || 0x04 || 01 00 00 00 || 1 || '''Num. Surfaces:'''number of surfaces within the texture array.
|-
|-
| 0x2C || 0x04 || 01 00 00 00 || 1 || '''MIP-Map Count:''' number of MIP-Map levels present including the top level.
| 0x28 || 0x04 || 01 00 00 00 || 1 || '''Num. Faces:'''number of faces in a cube map.  
<small>
A value of one, therefore, means that only the top level texture exists.
</small>
|-
|-
| 0x30 || 0x04 || 00 00 00 00 || 0 || '''Meta Data Size:''' allows for the creator of a PVR to store custom information within the PVR file relating to the storage.  
| 0x2C || 0x04 || 00 00 00 00 || 0 || '''Meta Data Size:''' allows for the creator of a PVR to store custom information within the PVR file relating to the storage.  
|-
|-
|}
|}


==== Pixel Format ====
==== Pixel Format ====
Line 327: Line 325:


*http://community.imgtec.com/developers/powervr/tools/ suite of utilities and docs
*http://community.imgtec.com/developers/powervr/tools/ suite of utilities and docs
== Related Articles ==
*[[GXT|.gxt]] Graphic texture files
Please note that all contributions to Vita Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see Vita Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)

Template used on this page: