Blender V2.61 - r43446
|
#include <DirectDrawSurface.h>
#include <BlockDXT.h>
#include <PixelFormat.h>
#include <stdio.h>
#include <math.h>
#include <sys/types.h>
Go to the source code of this file.
Definition in file DirectDrawSurface.cpp.
#define CASE | ( | format | ) | case DXGI_FORMAT_##format: return #format |
Referenced by getDxgiFormatString().
#define MAKEFOURCC | ( | ch0, | |
ch1, | |||
ch2, | |||
ch3 | |||
) |
(uint(uint8(ch0)) | (uint(uint8(ch1)) << 8) | \ (uint(uint8(ch2)) << 16) | (uint(uint8(ch3)) << 24 ))
Definition at line 69 of file DirectDrawSurface.cpp.
Referenced by DDSHeader::setFourCC(), and DDSHeader::setSwizzleCode().
D3D10_RESOURCE_DIMENSION_UNKNOWN | |
D3D10_RESOURCE_DIMENSION_BUFFER | |
D3D10_RESOURCE_DIMENSION_TEXTURE1D | |
D3D10_RESOURCE_DIMENSION_TEXTURE2D | |
D3D10_RESOURCE_DIMENSION_TEXTURE3D |
Definition at line 298 of file DirectDrawSurface.cpp.
enum DXGI_FORMAT |
Definition at line 168 of file DirectDrawSurface.cpp.
Definition at line 1210 of file DirectDrawSurface.cpp.
Definition at line 537 of file DirectDrawSurface.cpp.
References i.
Referenced by DDSHeader::d3d9Format().
const char* getD3d10ResourceDimensionString | ( | D3D10_RESOURCE_DIMENSION | resourceDimension | ) |
Definition at line 432 of file DirectDrawSurface.cpp.
References D3D10_RESOURCE_DIMENSION_BUFFER, D3D10_RESOURCE_DIMENSION_TEXTURE1D, D3D10_RESOURCE_DIMENSION_TEXTURE2D, D3D10_RESOURCE_DIMENSION_TEXTURE3D, and D3D10_RESOURCE_DIMENSION_UNKNOWN.
Referenced by DirectDrawSurface::printInfo().
const char* getDxgiFormatString | ( | DXGI_FORMAT | dxgiFormat | ) |
Definition at line 308 of file DirectDrawSurface.cpp.
References CASE.
Referenced by DirectDrawSurface::printInfo().
void mem_read | ( | Stream & | mem, |
DDSHeader10 & | header | ||
) |
Definition at line 467 of file DirectDrawSurface.cpp.
References DDSHeader10::arraySize, DDSHeader10::dxgiFormat, mem_read(), DDSHeader10::miscFlag, DDSHeader10::reserved, and DDSHeader10::resourceDimension.
Definition at line 459 of file DirectDrawSurface.cpp.
References DDSCaps::caps1, DDSCaps::caps2, DDSCaps::caps3, DDSCaps::caps4, and mem_read().
void mem_read | ( | Stream & | mem, |
DDSPixelFormat & | pf | ||
) |
Definition at line 447 of file DirectDrawSurface.cpp.
References DDSPixelFormat::amask, DDSPixelFormat::bitcount, DDSPixelFormat::bmask, DDSPixelFormat::flags, DDSPixelFormat::fourcc, DDSPixelFormat::gmask, mem_read(), DDSPixelFormat::rmask, and DDSPixelFormat::size.
Definition at line 476 of file DirectDrawSurface.cpp.
References DDSHeader::caps, DDSHeader::depth, DDSHeader::flags, DDSHeader::fourcc, DDSHeader::hasDX10Header(), DDSHeader::header10, DDSHeader::height, i, mem_read(), DDSHeader::mipmapcount, DDSHeader::notused, DDSHeader::pf, DDSHeader::pitch, DDSHeader::reserved, DDSHeader::size, and DDSHeader::width.
const uint D3DFMT_A16B16G16R16 = 36 [static] |
Definition at line 109 of file DirectDrawSurface.cpp.
const uint D3DFMT_A16B16G16R16F = 113 [static] |
Definition at line 124 of file DirectDrawSurface.cpp.
const uint D3DFMT_A1R5G5B5 = 25 [static] |
Definition at line 97 of file DirectDrawSurface.cpp.
const uint D3DFMT_A2B10G10R10 = 31 [static] |
Definition at line 103 of file DirectDrawSurface.cpp.
const uint D3DFMT_A2R10G10B10 = 35 [static] |
Definition at line 107 of file DirectDrawSurface.cpp.
const uint D3DFMT_A32B32G32R32F = 116 [static] |
Definition at line 127 of file DirectDrawSurface.cpp.
const uint D3DFMT_A4L4 = 52 [static] |
Definition at line 118 of file DirectDrawSurface.cpp.
const uint D3DFMT_A4R4G4B4 = 26 [static] |
Definition at line 98 of file DirectDrawSurface.cpp.
Definition at line 100 of file DirectDrawSurface.cpp.
const uint D3DFMT_A8B8G8R8 = 32 [static] |
Definition at line 104 of file DirectDrawSurface.cpp.
const uint D3DFMT_A8L8 = 51 [static] |
Definition at line 117 of file DirectDrawSurface.cpp.
const uint D3DFMT_A8P8 = 40 [static] |
Definition at line 112 of file DirectDrawSurface.cpp.
const uint D3DFMT_A8R3G3B2 = 29 [static] |
Definition at line 101 of file DirectDrawSurface.cpp.
const uint D3DFMT_A8R8G8B8 = 21 [static] |
Definition at line 93 of file DirectDrawSurface.cpp.
const uint D3DFMT_G16R16 = 34 [static] |
Definition at line 106 of file DirectDrawSurface.cpp.
const uint D3DFMT_G16R16F = 112 [static] |
Definition at line 123 of file DirectDrawSurface.cpp.
const uint D3DFMT_G32R32F = 115 [static] |
Definition at line 126 of file DirectDrawSurface.cpp.
const uint D3DFMT_L16 = 81 [static] |
Definition at line 119 of file DirectDrawSurface.cpp.
Definition at line 116 of file DirectDrawSurface.cpp.
Definition at line 113 of file DirectDrawSurface.cpp.
const uint D3DFMT_R16F = 111 [static] |
Definition at line 122 of file DirectDrawSurface.cpp.
const uint D3DFMT_R32F = 114 [static] |
Definition at line 125 of file DirectDrawSurface.cpp.
const uint D3DFMT_R3G3B2 = 27 [static] |
Definition at line 99 of file DirectDrawSurface.cpp.
const uint D3DFMT_R5G6B5 = 23 [static] |
Definition at line 95 of file DirectDrawSurface.cpp.
const uint D3DFMT_R8G8B8 = 20 [static] |
Definition at line 92 of file DirectDrawSurface.cpp.
const uint D3DFMT_X1R5G5B5 = 24 [static] |
Definition at line 96 of file DirectDrawSurface.cpp.
const uint D3DFMT_X4R4G4B4 = 30 [static] |
Definition at line 102 of file DirectDrawSurface.cpp.
const uint D3DFMT_X8B8G8R8 = 33 [static] |
Definition at line 105 of file DirectDrawSurface.cpp.
const uint D3DFMT_X8R8G8B8 = 22 [static] |
Definition at line 94 of file DirectDrawSurface.cpp.
const uint DDPF_ALPHA = 0x00000002U [static] |
Definition at line 153 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo(), and DDSHeader::setPixelFormat().
const uint DDPF_ALPHAPIXELS = 0x00000001U [static] |
Definition at line 152 of file DirectDrawSurface.cpp.
Referenced by DDSHeader::hasAlpha(), DirectDrawSurface::printInfo(), DDSHeader::setHasAlphaFlag(), and DDSHeader::setPixelFormat().
const uint DDPF_ALPHAPREMULT = 0x00008000U [static] |
Definition at line 161 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo().
const uint DDPF_FOURCC = 0x00000004U [static] |
Definition at line 154 of file DirectDrawSurface.cpp.
Referenced by DDSHeader::d3d9Format(), DirectDrawSurface::hasAlpha(), DirectDrawSurface::isSupported(), DirectDrawSurface::mipmap(), DirectDrawSurface::printInfo(), DDSHeader::setFormatCode(), and DDSHeader::setFourCC().
const uint DDPF_LUMINANCE = 0x00020000U [static] |
Definition at line 160 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::isSupported(), DirectDrawSurface::printInfo(), and DDSHeader::setPixelFormat().
const uint DDPF_NORMAL = 0x80000000U [static] |
Definition at line 164 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::hasAlpha(), DDSHeader::isNormalMap(), DirectDrawSurface::printInfo(), and DDSHeader::setNormalFlag().
const uint DDPF_PALETTEINDEXED1 = 0x00000800U [static] |
Definition at line 156 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo().
const uint DDPF_PALETTEINDEXED2 = 0x00001000U [static] |
Definition at line 157 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo().
const uint DDPF_PALETTEINDEXED4 = 0x00000008U [static] |
Definition at line 158 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo().
const uint DDPF_PALETTEINDEXED8 = 0x00000020U [static] |
Definition at line 159 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo().
Definition at line 155 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::hasAlpha(), DirectDrawSurface::isSupported(), DirectDrawSurface::mipmap(), DirectDrawSurface::printInfo(), and DDSHeader::setPixelFormat().
Definition at line 165 of file DirectDrawSurface.cpp.
Referenced by DDSHeader::isSrgb(), and DDSHeader::setSrgbFlag().
const uint DDSCAPS2_CUBEMAP = 0x00000200U [static] |
Definition at line 142 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::isTextureCube(), DirectDrawSurface::printInfo(), and DDSHeader::setTextureCube().
const uint DDSCAPS2_CUBEMAP_ALL_FACES = 0x0000FC00U [static] |
Definition at line 150 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::isSupported(), DirectDrawSurface::printInfo(), and DDSHeader::setTextureCube().
const uint DDSCAPS2_CUBEMAP_NEGATIVEX = 0x00000800U [static] |
Definition at line 145 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo().
const uint DDSCAPS2_CUBEMAP_NEGATIVEY = 0x00002000U [static] |
Definition at line 147 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo().
const uint DDSCAPS2_CUBEMAP_NEGATIVEZ = 0x00008000U [static] |
Definition at line 149 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo().
const uint DDSCAPS2_CUBEMAP_POSITIVEX = 0x00000400U [static] |
Definition at line 144 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo().
const uint DDSCAPS2_CUBEMAP_POSITIVEY = 0x00001000U [static] |
Definition at line 146 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo().
const uint DDSCAPS2_CUBEMAP_POSITIVEZ = 0x00004000U [static] |
Definition at line 148 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo().
const uint DDSCAPS2_VOLUME = 0x00200000U [static] |
Definition at line 141 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::isTexture3D(), DirectDrawSurface::printInfo(), and DDSHeader::setTexture3D().
const uint DDSCAPS_COMPLEX = 0x00000008U [static] |
Definition at line 138 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo(), DDSHeader::setMipmapCount(), and DDSHeader::setTextureCube().
const uint DDSCAPS_MIPMAP = 0x00400000U [static] |
Definition at line 140 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo(), and DDSHeader::setMipmapCount().
const uint DDSCAPS_TEXTURE = 0x00001000U [static] |
Definition at line 139 of file DirectDrawSurface.cpp.
Referenced by DDSHeader::DDSHeader(), DirectDrawSurface::printInfo(), and DDSHeader::setMipmapCount().
Definition at line 129 of file DirectDrawSurface.cpp.
Referenced by DDSHeader::DDSHeader(), and DirectDrawSurface::printInfo().
const uint DDSD_DEPTH = 0x00800000U [static] |
Definition at line 136 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::depth(), DirectDrawSurface::printInfo(), and DDSHeader::setDepth().
const uint DDSD_HEIGHT = 0x00000002U [static] |
Definition at line 132 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::height(), DirectDrawSurface::isValid(), DirectDrawSurface::printInfo(), and DDSHeader::setHeight().
const uint DDSD_LINEARSIZE = 0x00080000U [static] |
Definition at line 135 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo(), DDSHeader::setLinearSize(), and DDSHeader::setPitch().
const uint DDSD_MIPMAPCOUNT = 0x00020000U [static] |
Definition at line 134 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::mipmapCount(), DirectDrawSurface::printInfo(), and DDSHeader::setMipmapCount().
const uint DDSD_PITCH = 0x00000008U [static] |
Definition at line 133 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo(), DDSHeader::setLinearSize(), and DDSHeader::setPitch().
const uint DDSD_PIXELFORMAT = 0x00001000U [static] |
Definition at line 130 of file DirectDrawSurface.cpp.
Referenced by DDSHeader::DDSHeader(), and DirectDrawSurface::printInfo().
const uint DDSD_WIDTH = 0x00000004U [static] |
Definition at line 131 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::isValid(), DirectDrawSurface::printInfo(), DDSHeader::setWidth(), and DirectDrawSurface::width().
const uint FOURCC_A2XY = MAKEFOURCC('A', '2', 'X', 'Y') [static] |
Definition at line 85 of file DirectDrawSurface.cpp.
const uint FOURCC_ATI1 = MAKEFOURCC('A', 'T', 'I', '1') [static] |
Definition at line 82 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::hasAlpha(), and DirectDrawSurface::isSupported().
const uint FOURCC_ATI2 = MAKEFOURCC('A', 'T', 'I', '2') [static] |
Definition at line 83 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::DirectDrawSurface(), DirectDrawSurface::hasAlpha(), and DirectDrawSurface::isSupported().
const uint FOURCC_DDS = MAKEFOURCC('D', 'D', 'S', ' ') [static] |
Definition at line 75 of file DirectDrawSurface.cpp.
Referenced by DDSHeader::DDSHeader(), and DirectDrawSurface::isValid().
const uint FOURCC_DX10 = MAKEFOURCC('D', 'X', '1', '0') [static] |
Definition at line 87 of file DirectDrawSurface.cpp.
Referenced by DDSHeader::hasDX10Header(), and DDSHeader::setDX10Format().
const uint FOURCC_DXT1 = MAKEFOURCC('D', 'X', 'T', '1') [static] |
Definition at line 76 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::isSupported().
const uint FOURCC_DXT2 = MAKEFOURCC('D', 'X', 'T', '2') [static] |
Definition at line 77 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::isSupported().
const uint FOURCC_DXT3 = MAKEFOURCC('D', 'X', 'T', '3') [static] |
Definition at line 78 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::isSupported().
const uint FOURCC_DXT4 = MAKEFOURCC('D', 'X', 'T', '4') [static] |
Definition at line 79 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::isSupported().
const uint FOURCC_DXT5 = MAKEFOURCC('D', 'X', 'T', '5') [static] |
Definition at line 80 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::isSupported().
const uint FOURCC_NVTT = MAKEFOURCC('N', 'V', 'T', 'T') [static] |
Definition at line 74 of file DirectDrawSurface.cpp.
Referenced by DDSHeader::DDSHeader(), and DirectDrawSurface::printInfo().
const uint FOURCC_RXGB = MAKEFOURCC('R', 'X', 'G', 'B') [static] |
Definition at line 81 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::hasAlpha(), and DirectDrawSurface::isSupported().
const uint FOURCC_UVER = MAKEFOURCC('U', 'V', 'E', 'R') [static] |
Definition at line 89 of file DirectDrawSurface.cpp.
Referenced by DirectDrawSurface::printInfo(), DDSHeader::setUserVersion(), and DDSHeader::userVersion().