
Optimizer Textures by AdPipino (console version 0.5)

Usage: AdPDDS.exe [parameters] Path\Texture.ext

Parameters are 12 digits of configurations, default:               101551100000
                                                                   ||||||||||||
A) Check / Compress / Backup: 0=Check 1=Compress 2=w/Backup _______||||||||||||
B) Layer processing:          0=Software ___________________________|||||||||||
C) If no mask, compress:      0=No 1=dxt1 3=dxt3 5=dxt5 9=Preserve __||||||||||
D) If mask is 1bit, compress: 0=No 1=dxt1 3=dxt3 5=dxt5 9=Preserve ___|||||||||
E) If is translucy, compress: 0=No        3=dxt3 5=dxt5 9-Preserve ____||||||||
F) Mipmaps:                   0=Delete  1=Make 3=Remake 9-Preserve _____|||||||
G) Fix bad size (or icon):    0=No 1=Yes 2-16x16 3-32x32 4-64x64 ________||||||
H) Fix alpha channnel:        0=No 1=Yes 2-set_invisible _________________|||||
I) Minimize whitout loss, to: 0=No 1=4x4 2=8x8 3=16x16 ____________________||||
J) Clean / Delete clones:     0=No 1=Clean _________________________________|||
K) Resize half, "if >":       0=No 1=All 2=256 3=512 4=1K 5=2K 6=4K 7=8K ____||
L) ununsed / reserved: _______________________________________________________|

Examples: 1) AdPDDS.exe c:\tmp\teste.tga
          2) AdPDDS.exe 101551100000 c:\tmp\teste.dds

================================================================================
Parameters 12 digits [ABCDEFGHIJKL]

A) 0=Check only 1=Process 2=Backup and Process (ex.: teste.tga => teste.tga.bak) 3=Delete_if_ok (for BSA implementation)

B) Process: 0=Software 1=Hardware_Aceleration (no implemented)

C) If no mask, compress to: 0=no 1=DXT1 2=DXT1 3=DXT3 5=DXT5 6=R5G6B5 7=A4R4G4B4 8=R8G8B8 9=keeps_equal_original

D) If mask is 1bit, compress to : 0=no 1=DXT1 2=DXT1 3=DXT3 5=DXT5 6=A1R5G5B5 7=A4R4G4B4 8=A8R8G8B8 9=keeps_equal_original

E) If is translucy, compress to: 0=no 3=DXT3 5=DXT5 6=A4R4G4B4 7=A4R4G4B4 8=A8R8G8B8 9=keeps_equal_original

F) Mipmaps: 0=Remove 1=Make 2=Make_Forced 9=keeps_equal_original

G) Fix bad size or icon: 0=No 1=Yes 2=is_Icon_16x16 3=is_Icon_32x32 4=is_Icon_64x64

H) if the alpha channel is covering completely a picture: 0=Nothing 1=Remove 2=texture_is_invisible

I) Minimize whitout loss quality (patterns): 0=No 1=to_4x4 2=to_8x8 3=to_16x16

J) Delete: clones and trash (bmp=tga=dds, thumbs.db, *.bak, *.tmp, others):  0=No 1=Yes

K) Resize to half:  0=No 1=All 2=if>256 3=if>512 4=if>1K 5=if>2K 6=if>4K 7=if>8K

L) ununsed / reserved = 0=nothing

================================================================================
Return:

OK                      0x0000 // 0000 0000 0000 0000
NOTHING                 0x0000 // 0000 0000 0000 0000
FILE_OK                 0x0000 // 0000 0000 0000 0000
OUT_ALREADY_OPTIMIZED   0x0000 // 0000 0000 0000 0000

NOK                     0x0001 // 0000 0000 0000 0001 // 
FILE_NOK                0x0001 // 0000 0000 0000 0001 // 
FILE_BAD                0x0001 // 0000 0000 0000 0001 // 
FILE_UNSUPORTED         0x0002 // 0000 0000 0000 0010 // DDS luminance, DXT10
FILE_CLONE              0x0004 // 0000 0000 0000 0100 // bmp == tga == dds
FILE_TRASH              0x0008 // 0000 0000 0000 1000 // thumbs.db and other trash
FILE_UNKNOWLED          0x0010 // 0000 0000 0001 0000 // file TXT DOC NIF or others
FILE_NO_EXIST           0x0020 // 0000 0000 0010 0000 // file no exist
ERROR_PARAMETERS        0x0040 // 0000 0000 0100 0000 // wrong parameters 
ERROR_DX                0x0080 // 0000 0000 1000 0000 // DirectX fail

OUT_COMPRESSED          0x0100 // 0000 0001 0000 0000
OUT_DEL_MASK            0x0200 // 0000 0010 0000 0000
OUT_MK_MIPMAPS          0x0400 // 0000 0100 0000 0000
OUT_DEL_MIPMAPS         0x0800 // 0000 1000 0000 0000
OUT_FIX_ALPHA           0x1000 // 0001 0000 0000 0000
OUT_FIX_SIZE            0x2000 // 0010 0000 0000 0000
OUT_PATTERN             0x4000 // 0100 0000 0000 0000
OUT_RESIZED             0x8000 // 1000 0000 0000 0000
