ReactOS 0.4.16-dev-297-gc569aee
|
Go to the source code of this file.
Classes | |
struct | dds_pixel_format |
struct | dds_header |
Macros | |
#define | COBJMACROS |
#define | check_release(obj, exp) _check_release(__LINE__, obj, exp) |
#define | DDS_CAPS 0x00000001 |
#define | DDS_HEIGHT 0x00000002 |
#define | DDS_WIDTH 0x00000004 |
#define | DDS_PITCH 0x00000008 |
#define | DDS_PIXELFORMAT 0x00001000 |
#define | DDS_MIPMAPCOUNT 0x00020000 |
#define | DDS_LINEARSIZE 0x00080000 |
#define | DDSCAPS_ALPHA 0x00000002 |
#define | DDS_CAPS_TEXTURE 0x00001000 |
#define | DDS_PF_ALPHA 0x00000001 |
#define | DDS_PF_ALPHA_ONLY 0x00000002 |
#define | DDS_PF_FOURCC 0x00000004 |
#define | DDS_PF_RGB 0x00000040 |
#define | DDS_PF_LUMINANCE 0x00020000 |
#define | DDS_PF_BUMPLUMINANCE 0x00040000 |
#define | DDS_PF_BUMPDUDV 0x00080000 |
#define | check_dds_pixel_format(flags, fourcc, bpp, rmask, gmask, bmask, amask, format) check_dds_pixel_format_(__LINE__, flags, fourcc, bpp, rmask, gmask, bmask, amask, format) |
#define | check_pixel_2bpp(lockrect, x, y, color) _check_pixel_2bpp(__LINE__, lockrect, x, y, color) |
#define | check_pixel_4bpp(lockrect, x, y, color) _check_pixel_4bpp(__LINE__, lockrect, x, y, color) |
Functions | |
static void | _check_release (unsigned int line, IUnknown *obj, int exp) |
static HRESULT | create_file (const char *filename, const unsigned char *data, const unsigned int size) |
static void | fill_dds_header (struct dds_header *header) |
static void | check_dds_pixel_format_ (unsigned int line, DWORD flags, DWORD fourcc, DWORD bpp, DWORD rmask, DWORD gmask, DWORD bmask, DWORD amask, D3DFORMAT expected_format) |
static void | test_dds_header_handling (void) |
static void | test_D3DXGetImageInfo (void) |
static void | _check_pixel_2bpp (unsigned int line, const D3DLOCKED_RECT *lockrect, int x, int y, WORD expected_color) |
static void | _check_pixel_4bpp (unsigned int line, const D3DLOCKED_RECT *lockrect, int x, int y, DWORD expected_color) |
static void | test_D3DXLoadSurface (IDirect3DDevice9 *device) |
static void | test_D3DXSaveSurfaceToFileInMemory (IDirect3DDevice9 *device) |
static void | test_D3DXSaveSurfaceToFile (IDirect3DDevice9 *device) |
START_TEST (surface) | |
Variables | |
static const unsigned char | bmp_1bpp [] |
static const unsigned char | bmp_2bpp [] |
static const unsigned char | bmp_4bpp [] |
static const unsigned char | bmp_8bpp [] |
static const unsigned char | bmp_32bpp_xrgb [] |
static const unsigned char | bmp_32bpp_argb [] |
static const unsigned char | png_grayscale [] |
static const unsigned char | pixdata [] |
static const unsigned char | noimage [4] |
static const unsigned char | dds_8bit [] |
static const unsigned char | dds_24bit [] |
static const unsigned char | dds_16bit [] |
static const unsigned char | dds_cube_map [] |
static const unsigned char | dds_volume_map [] |
static const BYTE | dds_dxt5 [] |
static const BYTE | dds_dxt5_8_8 [] |
|
inlinestatic |
|
static |
Definition at line 375 of file surface.c.
|
static |
Definition at line 282 of file surface.c.
|
static |
Definition at line 353 of file surface.c.
Referenced by check_dds_pixel_format_(), and test_dds_header_handling().
START_TEST | ( | surface | ) |
Definition at line 1756 of file surface.c.
Definition at line 561 of file surface.c.
Referenced by START_TEST().
|
static |
Definition at line 835 of file surface.c.
Referenced by START_TEST().
|
static |
Definition at line 1630 of file surface.c.
Referenced by START_TEST().
|
static |
Definition at line 1527 of file surface.c.
Referenced by START_TEST().
Definition at line 410 of file surface.c.
Referenced by test_D3DXGetImageInfo().
Definition at line 35 of file surface.c.
Referenced by test_D3DXGetImageInfo(), and test_D3DXLoadSurface().
Definition at line 44 of file surface.c.
Referenced by test_D3DXGetImageInfo().
Definition at line 81 of file surface.c.
Referenced by test_D3DXGetImageInfo().
Definition at line 71 of file surface.c.
Referenced by test_D3DXGetImageInfo().
Definition at line 53 of file surface.c.
Referenced by test_D3DXGetImageInfo().
Definition at line 62 of file surface.c.
Referenced by test_D3DXGetImageInfo().
Definition at line 205 of file surface.c.
Referenced by test_D3DXGetImageInfo().
Definition at line 192 of file surface.c.
Referenced by test_D3DXGetImageInfo(), and test_D3DXLoadSurface().
Definition at line 111 of file surface.c.
Referenced by test_D3DXGetImageInfo().
Definition at line 218 of file surface.c.
Referenced by test_D3DXGetImageInfo().
Definition at line 252 of file surface.c.
Referenced by test_D3DXLoadSurface().
Definition at line 266 of file surface.c.
Referenced by test_D3DXLoadSurface().
Definition at line 236 of file surface.c.
Referenced by test_D3DXGetImageInfo().
Definition at line 106 of file surface.c.
Referenced by test_D3DXGetImageInfo(), and test_D3DXLoadSurface().
Definition at line 101 of file surface.c.
Referenced by D3DXLoadSurfaceFromMemory(), fetch_2d_texel_rgb_dxt1(), fetch_2d_texel_rgba_dxt1(), fetch_2d_texel_rgba_dxt3(), fetch_2d_texel_rgba_dxt5(), and test_D3DXLoadSurface().
Definition at line 90 of file surface.c.
Referenced by test_D3DXGetImageInfo().