spot icon indicating copy to clipboard operation
spot copied to clipboard

dot file fmt

Open r-lyeh-archived opened this issue 9 years ago • 0 comments

magic[id, version, endianess]
meta len
[meta]
dims[h,w,d] stream [fmt offs len] mipmap N
dims[h,w,d] stream [fmt offs len] mipmap N-1
dims[h,w,d] stream [fmt offs len] mipmap N-2 [...]
dims[h,w,d] stream [fmt offs len] mipmap 1
mipmap N
mipmap N-1
mipmap N-2 [...]
mipmap 1
  • PKM compact size
  • KTX/PVR3 features
  • PVR3 spec simplicity
  • 2d/3d
  • mipmap toc
  • soil2 cubemaps (h==w,d=6 : w x w*6), faces, arrays
  • raw thumbnail: HSL233, RGB332
  • raw mipmaps: RGBA4444,

lvl 1 pix 512x256 131072px -- lvl 2 pix 256x128 32768px -- lvl 3 pix 128x64 8192px -- lvl 4 pix 64x32 2048px lvl 5 pix 32x16 512px lvl 6 pix 16x8 128px lvl 7 pix 8x4 32px lvl 8 pix 4x2 8px lvl 9 pix 2x1 2px lvl A pix 1x1 1px

lvl 4.. = 2048 + 512 + 128 + 32 + 8 + 2 + 1 = 2731 px * 2 bytes/px = 5462 bytes overhead lvl 5.. = 512 + 128 + 32 + 8 + 2 + 1 = 683 px * 2 bytes/px = 1366 bytes overhead

r-lyeh-archived avatar Apr 25 '15 10:04 r-lyeh-archived