ReactOS 0.4.17-dev-934-g091855f
d3dx9_test_images.h File Reference
#include <stdint.h>
#include "d3dx9tex.h"
Include dependency graph for d3dx9_test_images.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  volume_readback
 

Macros

#define COBJMACROS
 
#define FMT_TO_STR(format_id)   case format_id: return #format_id
 
#define check_image_info(info, width, height, depth, mip_levels, format, resource_type, image_file_format, wine_todo)
 
#define release_volume_readback(rb)   release_volume_readback_(__FILE__, __LINE__, rb)
 
#define get_texture_volume_readback(device, volume_tex, mip_level, rb)    get_texture_volume_readback_(__FILE__, __LINE__, device, volume_tex, mip_level, rb)
 
#define check_volume_readback_pixel_4bpp(rb, x, y, z, color, todo)    _check_volume_readback_pixel_4bpp(__FILE__, __LINE__, rb, x, y, z, color, todo)
 

Functions

static const char * debug_d3dformat (D3DFORMAT format_id)
 
static void check_image_info_ (const char *file, uint32_t line, const D3DXIMAGE_INFO *info, uint32_t width, uint32_t height, uint32_t depth, uint32_t mip_levels, D3DFORMAT format, D3DRESOURCETYPE resource_type, D3DXIMAGE_FILEFORMAT image_file_format, BOOL wine_todo)
 
static uint32_t get_volume_readback_color (struct volume_readback *rb, uint32_t x, uint32_t y, uint32_t z)
 
static void release_volume_readback_ (const char *file, uint32_t line, struct volume_readback *rb)
 
static void get_texture_volume_readback_ (const char *file, uint32_t line, IDirect3DDevice9 *device, IDirect3DVolumeTexture9 *volume_tex, uint32_t mip_level, struct volume_readback *rb)
 
static void _check_volume_readback_pixel_4bpp (const char *file, uint32_t line, struct volume_readback *rb, uint32_t x, uint32_t y, uint32_t z, uint32_t expected_color, BOOL todo)
 

Variables

struct {
   uint32_t   filter
 
   HRESULT   expected_hr
 
} test_filter_values []
 
static const uint8_t bmp_1bpp []
 
static const uint8_t bmp_2bpp []
 
static const uint8_t bmp_4bpp []
 
static const uint8_t bmp_8bpp []
 
static const uint8_t bmp_32bpp_xrgb []
 
static const uint8_t bmp_32bpp_argb []
 
static const uint8_t bmp_32bpp_4_4_argb []
 
static const uint8_t png_grayscale []
 
static const uint8_t png_2_2_24bpp_bgr []
 
static const uint8_t png_2_2_48bpp_rgb []
 
static const uint8_t png_2_2_64bpp_rgba []
 
static const uint8_t jpg_rgb_2_2 []
 
static const uint8_t jpg_grayscale_2_2 []
 
static const uint8_t pixdata []
 
static const uint8_t noimage [4]
 
static const uint8_t dds_8bit []
 
static const uint8_t dds_a8p8 []
 
static const uint8_t dds_24bit []
 
static const uint8_t dds_16bit []
 
static const uint8_t dds_cube_map []
 
static const uint8_t dds_cube_map_4_2 []
 
static const uint8_t dds_cube_map_2_4 []
 
static const uint8_t dds_cube_map_4_4 []
 
static const uint8_t dds_volume_map []
 
static const uint8_t dds_dxt5 []
 
static const uint8_t dds_dxt5_8_8 []
 
static const uint8_t dxt5_8_8 []
 
static const uint8_t dds_volume_24bit_4_4_4 []
 
static const uint8_t dds_volume_dxt3_4_4_4 []
 
static const uint8_t dds_24bit_8_8 []
 

Macro Definition Documentation

◆ check_image_info

#define check_image_info (   info,
  width,
  height,
  depth,
  mip_levels,
  format,
  resource_type,
  image_file_format,
  wine_todo 
)
Value:
check_image_info_(__FILE__, __LINE__, info, width, height, depth, mip_levels, format, resource_type, \
image_file_format, wine_todo)
static void check_image_info_(const char *file, uint32_t line, const D3DXIMAGE_INFO *info, uint32_t width, uint32_t height, uint32_t depth, uint32_t mip_levels, D3DFORMAT format, D3DRESOURCETYPE resource_type, D3DXIMAGE_FILEFORMAT image_file_format, BOOL wine_todo)
GLint GLint GLsizei GLsizei GLsizei depth
Definition: gl.h:1546
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546

Definition at line 775 of file d3dx9_test_images.h.

◆ check_volume_readback_pixel_4bpp

#define check_volume_readback_pixel_4bpp (   rb,
  x,
  y,
  z,
  color,
  todo 
)     _check_volume_readback_pixel_4bpp(__FILE__, __LINE__, rb, x, y, z, color, todo)

Definition at line 900 of file d3dx9_test_images.h.

◆ COBJMACROS

#define COBJMACROS

Definition at line 23 of file d3dx9_test_images.h.

◆ FMT_TO_STR

#define FMT_TO_STR (   format_id)    case format_id: return #format_id

◆ get_texture_volume_readback

#define get_texture_volume_readback (   device,
  volume_tex,
  mip_level,
  rb 
)     get_texture_volume_readback_(__FILE__, __LINE__, device, volume_tex, mip_level, rb)

Definition at line 837 of file d3dx9_test_images.h.

◆ release_volume_readback

#define release_volume_readback (   rb)    release_volume_readback_(__FILE__, __LINE__, rb)

Definition at line 825 of file d3dx9_test_images.h.

Function Documentation

◆ _check_volume_readback_pixel_4bpp()

static void _check_volume_readback_pixel_4bpp ( const char *  file,
uint32_t  line,
struct volume_readback *  rb,
uint32_t  x,
uint32_t  y,
uint32_t  z,
uint32_t  expected_color,
BOOL  todo 
)
inlinestatic

Definition at line 902 of file d3dx9_test_images.h.

904{
906 todo_wine_if(todo) ok_(file, line)(color == expected_color, "Got color 0x%08x, expected 0x%08x.\n", color, expected_color);
907}
#define ok_(x1, x2)
Definition: atltest.h:61
static uint32_t get_volume_readback_color(struct volume_readback *rb, uint32_t x, uint32_t y, uint32_t z)
UINT32 uint32_t
Definition: types.h:75
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLuint color
Definition: glext.h:6243
GLdouble GLdouble z
Definition: glext.h:5874
#define todo_wine_if(is_todo)
Definition: minitest.h:81
BOOL todo
Definition: filedlg.c:313
Definition: fci.c:123
Definition: parser.c:49

◆ check_image_info_()

static void check_image_info_ ( const char *  file,
uint32_t  line,
const D3DXIMAGE_INFO *  info,
uint32_t  width,
uint32_t  height,
uint32_t  depth,
uint32_t  mip_levels,
D3DFORMAT  format,
D3DRESOURCETYPE  resource_type,
D3DXIMAGE_FILEFORMAT  image_file_format,
BOOL  wine_todo 
)
inlinestatic

Definition at line 778 of file d3dx9_test_images.h.

781{
782 const D3DXIMAGE_INFO expected_info = { width, height, depth, mip_levels, format, resource_type, image_file_format };
784
785 matched = !memcmp(&expected_info, info, sizeof(*info));
786 todo_wine_if(wine_todo) ok_(file, line)(matched, "Got unexpected image info values.\n");
787 if (matched)
788 return;
789
790 todo_wine_if(wine_todo && info->Width != width)
791 ok_(file, line)(info->Width == width, "Expected width %u, got %u.\n", width, info->Width);
792 todo_wine_if(wine_todo && info->Height != height)
793 ok_(file, line)(info->Height == height, "Expected height %u, got %u.\n", height, info->Height);
794 todo_wine_if(wine_todo && info->Depth != depth)
795 ok_(file, line)(info->Depth == depth, "Expected depth %u, got %u.\n", depth, info->Depth);
796 todo_wine_if(wine_todo && info->MipLevels != mip_levels)
797 ok_(file, line)(info->MipLevels == mip_levels, "Expected mip_levels %u, got %u.\n", mip_levels,
798 info->MipLevels);
799 todo_wine_if(wine_todo && info->Format != format)
800 ok_(file, line)(info->Format == format, "Expected texture format %s (%u), got %s (%u).\n",
802 todo_wine_if(wine_todo && info->ResourceType != resource_type)
803 ok_(file, line)(info->ResourceType == resource_type, "Expected resource_type %d, got %d.\n", resource_type,
804 info->ResourceType);
805 ok_(file, line)(info->ImageFileFormat == image_file_format, "Expected image_file_format %d, got %d.\n",
806 image_file_format, info->ImageFileFormat);
807}
static const char * debug_d3dformat(D3DFORMAT format_id)
_ACRTIMP int __cdecl memcmp(const void *, const void *, size_t)
Definition: string.c:2807
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL matched
Definition: taskkill.c:46

Referenced by check_tga_image_info_().

◆ debug_d3dformat()

static const char * debug_d3dformat ( D3DFORMAT  format_id)
inlinestatic

Definition at line 699 of file d3dx9_test_images.h.

700{
701 switch (format_id)
702 {
703#define FMT_TO_STR(format_id) case format_id: return #format_id
769#undef FMT_TO_STR
770 default:
771 return "unknown";
772 }
773}
@ D3DFMT_L6V5U5
Definition: d3d8types.h:625
@ D3DFMT_DXT5
Definition: d3d8types.h:638
@ D3DFMT_A1R5G5B5
Definition: d3d8types.h:608
@ D3DFMT_UYVY
Definition: d3d8types.h:632
@ D3DFMT_YUY2
Definition: d3d8types.h:633
@ D3DFMT_VERTEXDATA
Definition: d3d8types.h:648
@ D3DFMT_A8P8
Definition: d3d8types.h:617
@ D3DFMT_D16
Definition: d3d8types.h:644
@ D3DFMT_X1R5G5B5
Definition: d3d8types.h:607
@ D3DFMT_DXT2
Definition: d3d8types.h:635
@ D3DFMT_D16_LOCKABLE
Definition: d3d8types.h:640
@ D3DFMT_R8G8B8
Definition: d3d8types.h:603
@ D3DFMT_R3G3B2
Definition: d3d8types.h:610
@ D3DFMT_A8L8
Definition: d3d8types.h:621
@ D3DFMT_V16U16
Definition: d3d8types.h:628
@ D3DFMT_A8R8G8B8
Definition: d3d8types.h:604
@ D3DFMT_A2B10G10R10
Definition: d3d8types.h:614
@ D3DFMT_X8L8V8U8
Definition: d3d8types.h:626
@ D3DFMT_INDEX16
Definition: d3d8types.h:649
@ D3DFMT_A8
Definition: d3d8types.h:611
@ D3DFMT_DXT1
Definition: d3d8types.h:634
@ D3DFMT_X4R4G4B4
Definition: d3d8types.h:613
@ D3DFMT_R5G6B5
Definition: d3d8types.h:606
@ D3DFMT_A8R3G3B2
Definition: d3d8types.h:612
@ D3DFMT_V8U8
Definition: d3d8types.h:624
@ D3DFMT_DXT4
Definition: d3d8types.h:637
@ D3DFMT_A4R4G4B4
Definition: d3d8types.h:609
@ D3DFMT_D24S8
Definition: d3d8types.h:643
@ D3DFMT_D32
Definition: d3d8types.h:641
@ D3DFMT_D24X8
Definition: d3d8types.h:645
@ D3DFMT_P8
Definition: d3d8types.h:618
@ D3DFMT_INDEX32
Definition: d3d8types.h:650
@ D3DFMT_UNKNOWN
Definition: d3d8types.h:601
@ D3DFMT_DXT3
Definition: d3d8types.h:636
@ D3DFMT_X8R8G8B8
Definition: d3d8types.h:605
@ D3DFMT_L8
Definition: d3d8types.h:620
@ D3DFMT_G16R16
Definition: d3d8types.h:615
@ D3DFMT_A2W10V10U10
Definition: d3d8types.h:630
@ D3DFMT_Q8W8V8U8
Definition: d3d8types.h:627
@ D3DFMT_D15S1
Definition: d3d8types.h:642
@ D3DFMT_D24X4S4
Definition: d3d8types.h:646
@ D3DFMT_A4L4
Definition: d3d8types.h:622
@ D3DFMT_A1
Definition: d3d9types.h:865
@ D3DFMT_A32B32G32R32F
Definition: d3d9types.h:861
@ D3DFMT_CxV8U8
Definition: d3d9types.h:863
@ D3DFMT_G8R8_G8B8
Definition: d3d9types.h:831
@ D3DFMT_D24FS8
Definition: d3d9types.h:843
@ D3DFMT_A16B16G16R16F
Definition: d3d9types.h:856
@ D3DFMT_A2B10G10R10_XR_BIAS
Definition: d3d9types.h:866
@ D3DFMT_R8G8_B8G8
Definition: d3d9types.h:832
@ D3DFMT_D32F_LOCKABLE
Definition: d3d9types.h:842
@ D3DFMT_R32F
Definition: d3d9types.h:859
@ D3DFMT_X8B8G8R8
Definition: d3d9types.h:803
@ D3DFMT_Q16W16V16U16
Definition: d3d9types.h:852
@ D3DFMT_D32_LOCKABLE
Definition: d3d9types.h:845
@ D3DFMT_MULTI2_ARGB8
Definition: d3d9types.h:830
@ D3DFMT_A2R10G10B10
Definition: d3d9types.h:805
@ D3DFMT_S8_LOCKABLE
Definition: d3d9types.h:846
@ D3DFMT_G32R32F
Definition: d3d9types.h:860
@ D3DFMT_BINARYBUFFER
Definition: d3d9types.h:867
@ D3DFMT_A8B8G8R8
Definition: d3d9types.h:802
@ D3DFMT_A16B16G16R16
Definition: d3d9types.h:806
@ D3DFMT_L16
Definition: d3d9types.h:841
@ D3DFMT_G16R16F
Definition: d3d9types.h:855
@ D3DFMT_R16F
Definition: d3d9types.h:854
#define FMT_TO_STR(format_id)
static UINT format_id
Definition: clipboard.c:1455

Referenced by check_image_info_().

◆ get_texture_volume_readback_()

static void get_texture_volume_readback_ ( const char *  file,
uint32_t  line,
IDirect3DDevice9 *  device,
IDirect3DVolumeTexture9 *  volume_tex,
uint32_t  mip_level,
struct volume_readback *  rb 
)
inlinestatic

Definition at line 839 of file d3dx9_test_images.h.

841{
842 IDirect3DVolumeTexture9 *rb_tex;
843 IDirect3DVolume9 *volume = NULL;
845 HRESULT hr;
846
847 memset(rb, 0, sizeof(*rb));
848 hr = IDirect3DVolumeTexture9_GetLevelDesc(volume_tex, mip_level, &desc);
849 if (FAILED(hr))
850 {
851 trace_(file, line)("Failed to get volume description for mip level %d, hr %#lx.\n", mip_level, hr);
852 return;
853 }
854
856 D3DPOOL_SYSTEMMEM, &rb_tex, NULL);
857 if (FAILED(hr))
858 {
859 trace_(file, line)("Can't create the readback volume texture, hr %#lx.\n", hr);
860 return;
861 }
862
863 hr = IDirect3DVolumeTexture9_GetVolumeLevel(volume_tex, mip_level, &volume);
864 if (FAILED(hr))
865 {
866 trace_(file, line)("Failed to get the volume for mip_level %d, hr %#lx.\n", mip_level, hr);
867 goto exit;
868 }
869
871 if (FAILED(hr))
872 {
873 trace_(file, line)("Failed to get readback volume, hr %#lx.\n", hr);
874 goto exit;
875 }
876
878 if (FAILED(hr))
879 {
880 trace_(file, line)("Can't load the source volume into the readback, hr %#lx.\n", hr);
881 goto exit;
882 }
883
885 if (FAILED(hr))
886 trace_(file, line)("Can't lock the readback volume, hr %#lx.\n", hr);
887
888exit:
890 if (volume)
892 if (FAILED(hr))
893 {
894 if (rb->volume)
896 rb->volume = NULL;
897 }
898}
@ D3DPOOL_SYSTEMMEM
Definition: d3d8types.h:711
#define D3DLOCK_READONLY
Definition: d3d8types.h:69
#define IDirect3DVolumeTexture9_GetLevelDesc(p, a, b)
Definition: d3d9.h:955
#define IDirect3DVolumeTexture9_Release(p)
Definition: d3d9.h:937
#define IDirect3DVolume9_LockBox(p, a, b, c)
Definition: d3d9.h:285
#define IDirect3DVolume9_Release(p)
Definition: d3d9.h:277
#define IDirect3DDevice9_CreateVolumeTexture(p, a, b, c, d, e, f, g, h, i)
Definition: d3d9.h:1359
#define IDirect3DVolumeTexture9_GetVolumeLevel(p, a, b)
Definition: d3d9.h:956
HRESULT hr
Definition: delayimp.cpp:582
#define NULL
Definition: types.h:112
HRESULT WINAPI D3DXLoadVolumeFromVolume(IDirect3DVolume9 *dst_volume, const PALETTEENTRY *dst_palette, const D3DBOX *dst_box, IDirect3DVolume9 *src_volume, const PALETTEENTRY *src_palette, const D3DBOX *src_box, DWORD filter, D3DCOLOR color_key)
Definition: volume.c:242
#define D3DX_FILTER_NONE
Definition: d3dx9tex.h:27
#define FAILED(hr)
Definition: intsafe.h:51
#define trace_(file, line,...)
Definition: kmt_test.h:230
D3D11_SHADER_VARIABLE_DESC desc
Definition: reflection.c:1683
#define exit(n)
Definition: config.h:202
#define memset(x, y, z)
Definition: compat.h:39
Definition: devices.h:37
IDirect3DVolume9 * volume
D3DLOCKED_BOX locked_box

◆ get_volume_readback_color()

static uint32_t get_volume_readback_color ( struct volume_readback *  rb,
uint32_t  x,
uint32_t  y,
uint32_t  z 
)
inlinestatic

Definition at line 815 of file d3dx9_test_images.h.

816{
817 const uint32_t *pixels = rb->locked_box.pBits;
818 const D3DLOCKED_BOX *box = &rb->locked_box;
819
820 if (!box->pBits)
821 return 0xdeadbeef;
822 return pixels[(z * (box->SlicePitch / sizeof(uint32_t)) + (y * (box->RowPitch / sizeof(uint32_t))) + x)];
823}
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
Definition: gl.h:1546
#define uint32_t
Definition: nsiface.idl:61
Definition: palette.c:466

Referenced by _check_volume_readback_pixel_4bpp().

◆ release_volume_readback_()

static void release_volume_readback_ ( const char *  file,
uint32_t  line,
struct volume_readback *  rb 
)
inlinestatic

Definition at line 826 of file d3dx9_test_images.h.

827{
828 HRESULT hr;
829
830 if (!rb->volume)
831 return;
833 trace_(file, line)("Can't unlock the readback volume, hr %#lx.\n", hr);
835}
#define IDirect3DVolume9_UnlockBox(p)
Definition: d3d9.h:286

Variable Documentation

◆ bmp_1bpp

const uint8_t bmp_1bpp[]
static
Initial value:
=
{
0x42,0x4d,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x28,0x00,
0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x04,0x00,0x00,0x00,0x12,0x0b,0x00,0x00,0x12,0x0b,0x00,0x00,0x02,0x00,
0x00,0x00,0x02,0x00,0x00,0x00,0xf1,0xf2,0xf3,0x80,0xf4,0xf5,0xf6,0x81,0x00,0x00,
0x00,0x00
}

Definition at line 46 of file d3dx9_test_images.h.

Referenced by test_D3DXGetImageInfo(), and test_D3DXLoadSurface().

◆ bmp_2bpp

const uint8_t bmp_2bpp[]
static
Initial value:
=
{
0x42,0x4d,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x28,0x00,
0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x02,0x00,0x00,0x00,
0x00,0x00,0x04,0x00,0x00,0x00,0x12,0x0b,0x00,0x00,0x12,0x0b,0x00,0x00,0x02,0x00,
0x00,0x00,0x02,0x00,0x00,0x00,0xf1,0xf2,0xf3,0x80,0xf4,0xf5,0xf6,0x81,0x00,0x00,
0x00,0x00
}

Definition at line 56 of file d3dx9_test_images.h.

Referenced by test_D3DXGetImageInfo().

◆ bmp_32bpp_4_4_argb

const uint8_t bmp_32bpp_4_4_argb[]
static
Initial value:
=
{
0x42,0x4d,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x00,0x00,0x28,0x00,
0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x01,0x00,0x20,0x00,0x00,0x00,
0x00,0x00,0x40,0x00,0x00,0x00,0x24,0x16,0x00,0x00,0x24,0x16,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0x00,0x00,
0x00,0xff,0x00,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0x00,0x00,
0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,
}

Definition at line 115 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateCubeTextureFromFileInMemory(), test_D3DXCreateVolumeTextureFromFileInMemoryEx(), and test_D3DXLoadVolumeFromFileInMemory().

◆ bmp_32bpp_argb

const uint8_t bmp_32bpp_argb[]
static
Initial value:
=
{
0x42,0x4d,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x00,0x00,0x28,0x00,
0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x01,0x00,0x20,0x00,0x00,0x00,
0x00,0x00,0x10,0x00,0x00,0x00,0x12,0x0b,0x00,0x00,0x12,0x0b,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xa0,0xb0,0xc0,0x00,0xa1,0xb1,0xc1,0x00,0xa2,0xb2,
0xc2,0x00,0xa3,0xb3,0xc3,0x01
}

Definition at line 96 of file d3dx9_test_images.h.

Referenced by test_D3DXGetImageInfo().

◆ bmp_32bpp_xrgb

const uint8_t bmp_32bpp_xrgb[]
static
Initial value:
=
{
0x42,0x4d,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x00,0x00,0x28,0x00,
0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x01,0x00,0x20,0x00,0x00,0x00,
0x00,0x00,0x10,0x00,0x00,0x00,0x12,0x0b,0x00,0x00,0x12,0x0b,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xa0,0xb0,0xc0,0x00,0xa1,0xb1,0xc1,0x00,0xa2,0xb2,
0xc2,0x00,0xa3,0xb3,0xc3,0x00
}

Definition at line 86 of file d3dx9_test_images.h.

Referenced by test_D3DXGetImageInfo().

◆ bmp_4bpp

const uint8_t bmp_4bpp[]
static
Initial value:
=
{
0x42,0x4d,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x28,0x00,
0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x04,0x00,0x00,0x00,
0x00,0x00,0x04,0x00,0x00,0x00,0x12,0x0b,0x00,0x00,0x12,0x0b,0x00,0x00,0x02,0x00,
0x00,0x00,0x02,0x00,0x00,0x00,0xf1,0xf2,0xf3,0x80,0xf4,0xf5,0xf6,0x81,0x00,0x00,
0x00,0x00
}

Definition at line 66 of file d3dx9_test_images.h.

Referenced by test_D3DXGetImageInfo().

◆ bmp_8bpp

const uint8_t bmp_8bpp[]
static
Initial value:
=
{
0x42,0x4d,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x28,0x00,
0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x08,0x00,0x00,0x00,
0x00,0x00,0x04,0x00,0x00,0x00,0x12,0x0b,0x00,0x00,0x12,0x0b,0x00,0x00,0x02,0x00,
0x00,0x00,0x02,0x00,0x00,0x00,0xf1,0xf2,0xf3,0x80,0xf4,0xf5,0xf6,0x81,0x00,0x00,
0x00,0x00
}

Definition at line 76 of file d3dx9_test_images.h.

Referenced by test_D3DXGetImageInfo().

◆ dds_16bit

const uint8_t dds_16bit[]
static
Initial value:
=
{
0x44,0x44,0x53,0x20,0x7c,0x00,0x00,0x00,0x07,0x10,0x08,0x00,0x02,0x00,0x00,0x00,
0x02,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,
0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x7c,0x00,0x00,
0xe0,0x03,0x00,0x00,0x1f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff,0x7f,0xff,0x7f,0xff,0x7f,0xff,0x7f
}

Definition at line 423 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateTextureFromFileInMemory(), test_D3DXCreateTextureFromFileInMemoryEx(), and test_D3DXGetImageInfo().

◆ dds_24bit

const uint8_t dds_24bit[]
static
Initial value:
=
{
0x44,0x44,0x53,0x20,0x7c,0x00,0x00,0x00,0x07,0x10,0x0a,0x00,0x02,0x00,0x00,0x00,
0x02,0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,
0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x10,0x40,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
}

Definition at line 409 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateCubeTextureFromFileInMemory(), test_D3DXCreateTextureFromFileInMemory(), test_D3DXCreateTextureFromFileInMemoryEx(), test_D3DXGetImageInfo(), and test_D3DXLoadSurface().

◆ dds_24bit_8_8

const uint8_t dds_24bit_8_8[]
static
Initial value:
=
{
0x44,0x44,0x53,0x20,0x7c,0x00,0x00,0x00,0x07,0x10,0x0a,0x00,0x08,0x00,0x00,0x00,
0x08,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,
0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x10,0x40,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,
0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,
0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,
0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,
0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00
}

Definition at line 671 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateTextureFromFileInMemoryEx(), test_D3DXCreateVolumeTextureFromFileInMemoryEx(), and test_D3DXLoadVolumeFromFileInMemory().

◆ dds_8bit

const uint8_t dds_8bit[]
static

Definition at line 249 of file d3dx9_test_images.h.

Referenced by test_D3DXGetImageInfo(), and test_D3DXLoadSurface().

◆ dds_a8p8

const uint8_t dds_a8p8[]
static

Definition at line 330 of file d3dx9_test_images.h.

Referenced by test_D3DXLoadSurface().

◆ dds_cube_map

const uint8_t dds_cube_map[]
static
Initial value:
=
{
0x44,0x44,0x53,0x20,0x7c,0x00,0x00,0x00,0x07,0x10,0x08,0x00,0x04,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x44,0x58,0x54,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x10,0x00,0x00,
0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xef,0x87,0x0f,0x78,0x05,0x05,0x50,0x50,
0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xef,0x87,0x0f,0x78,0x05,0x05,0x50,0x51,
0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xef,0x87,0x0f,0x78,0x05,0x05,0x50,0x52,
0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xef,0x87,0x0f,0x78,0x05,0x05,0x50,0x53,
0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xef,0x87,0x0f,0x78,0x05,0x05,0x50,0x54,
0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xef,0x87,0x0f,0x78,0x05,0x05,0x50,0x55
}

Definition at line 437 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateCubeTextureFromFileInMemory(), test_D3DXCreateCubeTextureFromFileInMemoryEx(), test_D3DXCreateTextureFromFileInMemory(), and test_D3DXGetImageInfo().

◆ dds_cube_map_2_4

const uint8_t dds_cube_map_2_4[]
static
Initial value:
=
{
0x44,0x44,0x53,0x20,0x7c,0x00,0x00,0x00,0x0f,0x10,0x00,0x00,0x04,0x00,0x00,0x00,
0x02,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,
0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x10,0x00,0x00,
0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,
0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,
0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,
0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,
0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,
0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}

Definition at line 481 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateCubeTextureFromFileInMemoryEx().

◆ dds_cube_map_4_2

const uint8_t dds_cube_map_4_2[]
static
Initial value:
=
{
0x44,0x44,0x53,0x20,0x7c,0x00,0x00,0x00,0x0f,0x10,0x00,0x00,0x02,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,
0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x10,0x00,0x00,
0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,
0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,
0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,
0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,
0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,
0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}

Definition at line 456 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateCubeTextureFromFileInMemoryEx().

◆ dds_cube_map_4_4

const uint8_t dds_cube_map_4_4[]
static

Definition at line 506 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateCubeTextureFromFileInMemoryEx().

◆ dds_dxt5

const uint8_t dds_dxt5[]
static
Initial value:
=
{
0x44,0x44,0x53,0x20,0x7c,0x00,0x00,0x00,0x07,0x10,0x08,0x00,0x02,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x44,0x58,0x54,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x10,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xef,0x87,0x0f,0x78,0x05,0x05,0x50,0x50,
}

Definition at line 566 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateTextureFromFileInMemory(), and test_D3DXLoadSurface().

◆ dds_dxt5_8_8

const uint8_t dds_dxt5_8_8[]
static
Initial value:
=
{
0x44,0x44,0x53,0x20,0x7c,0x00,0x00,0x00,0x07,0x10,0x08,0x00,0x08,0x00,0x00,0x00,
0x08,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x44,0x58,0x54,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x10,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0xe0,0x07,0x05,0x05,0x50,0x50,
0x3f,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0xff,0x07,0x05,0x05,0x50,0x50,
0x7f,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0xf8,0xe0,0xff,0x05,0x05,0x50,0x50,
0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x00,0x00,0x05,0x05,0x50,0x50,
}

Definition at line 580 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateTextureFromFileInMemory(), and test_D3DXLoadSurface().

◆ dds_volume_24bit_4_4_4

const uint8_t dds_volume_24bit_4_4_4[]
static
Initial value:
=
{
0x44,0x44,0x53,0x20,0x7c,0x00,0x00,0x00,0x0f,0x10,0x82,0x00,0x04,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x03,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,
0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x10,0x40,0x00,
0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,
0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,
0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,
0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,
0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
0xff,0x00,0x00,0xff,0x00,0x00,0xff,0x00,0xff,0x00,0x00
}

Definition at line 618 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateTextureFromFileInMemoryEx().

◆ dds_volume_dxt3_4_4_4

const uint8_t dds_volume_dxt3_4_4_4[]
static
Initial value:
=
{
0x44,0x44,0x53,0x20,0x7c,0x00,0x00,0x00,0x07,0x10,0x8a,0x00,0x04,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x03,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x44,0x58,0x54,0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x10,0x40,0x00,
0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0xf8,0x00,0xf8,0xaa,0xaa,0xaa,0xaa,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0xf8,0x00,0xf8,0xaa,0xaa,0xaa,0xaa,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0xf8,0x00,0xf8,0xaa,0xaa,0xaa,0xaa,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0xf8,0x00,0xf8,0xaa,0xaa,0xaa,0xaa,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xe0,0x07,0xe0,0x07,0xaa,0xaa,0xaa,0xaa,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xe0,0x07,0xe0,0x07,0xaa,0xaa,0xaa,0xaa,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x1f,0x00,0x1f,0x00,0xaa,0xaa,0xaa,0xaa,
}

Definition at line 648 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateTextureFromFileInMemory(), test_D3DXCreateTextureFromFileInMemoryEx(), and test_D3DXCreateVolumeTextureFromFileInMemoryEx().

◆ dds_volume_map

const uint8_t dds_volume_map[]
static
Initial value:
=
{
0x44,0x44,0x53,0x20,0x7c,0x00,0x00,0x00,0x07,0x10,0x8a,0x00,0x04,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x44,0x58,0x54,0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x10,0x40,0x00,
0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xef,0x87,0x0f,0x78,0x05,0x05,0x50,0x50,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xef,0x87,0x0f,0x78,0x05,0x05,0x50,0x50,
0xff,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x2f,0x7e,0xcf,0x79,0x01,0x54,0x5c,0x5c,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x84,0xef,0x7b,0xaa,0xab,0xab,0xab
}

Definition at line 549 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateTextureFromFileInMemory(), test_D3DXCreateVolumeTextureFromFileInMemory(), test_D3DXCreateVolumeTextureFromFileInMemoryEx(), test_D3DXGetImageInfo(), and test_D3DXLoadVolumeFromFileInMemory().

◆ dxt5_8_8

const uint8_t dxt5_8_8[]
static
Initial value:
=
{
0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x1f,0x00,0x00,0x00,0x00,0x00,
0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x07,0xe0,0x07,0x00,0x00,0x00,0x00,
0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0x00,0xf8,0x00,0x00,0x00,0x00,
0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}

Definition at line 606 of file d3dx9_test_images.h.

Referenced by test_D3DXLoadSurface().

◆ expected_hr

◆ filter

Definition at line 28 of file d3dx9_test_images.h.

◆ jpg_grayscale_2_2

const uint8_t jpg_grayscale_2_2[]
static
Initial value:
=
{
0xff,0xd8,0xff,0xe0,0x00,0x10,0x4a,0x46,0x49,0x46,0x00,0x01,0x01,0x00,0x00,0x01,
0x00,0x01,0x00,0x00,0xff,0xdb,0x00,0x43,0x00,0x08,0x06,0x06,0x07,0x06,0x05,0x08,
0x07,0x07,0x07,0x09,0x09,0x08,0x0a,0x0c,0x14,0x0d,0x0c,0x0b,0x0b,0x0c,0x19,0x12,
0x13,0x0f,0x14,0x1d,0x1a,0x1f,0x1e,0x1d,0x1a,0x1c,0x1c,0x20,0x24,0x2e,0x27,0x20,
0x22,0x2c,0x23,0x1c,0x1c,0x28,0x37,0x29,0x2c,0x30,0x31,0x34,0x34,0x34,0x1f,0x27,
0x39,0x3d,0x38,0x32,0x3c,0x2e,0x33,0x34,0x32,0xff,0xc0,0x00,0x0b,0x08,0x00,0x02,
0x00,0x02,0x01,0x01,0x11,0x00,0xff,0xc4,0x00,0x1f,0x00,0x00,0x01,0x05,0x01,0x01,
0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x03,0x04,
0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0xff,0xc4,0x00,0xb5,0x10,0x00,0x02,0x01,0x03,
0x03,0x02,0x04,0x03,0x05,0x05,0x04,0x04,0x00,0x00,0x01,0x7d,0x01,0x02,0x03,0x00,
0x04,0x11,0x05,0x12,0x21,0x31,0x41,0x06,0x13,0x51,0x61,0x07,0x22,0x71,0x14,0x32,
0x81,0x91,0xa1,0x08,0x23,0x42,0xb1,0xc1,0x15,0x52,0xd1,0xf0,0x24,0x33,0x62,0x72,
0x82,0x09,0x0a,0x16,0x17,0x18,0x19,0x1a,0x25,0x26,0x27,0x28,0x29,0x2a,0x34,0x35,
0x36,0x37,0x38,0x39,0x3a,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x53,0x54,0x55,
0x56,0x57,0x58,0x59,0x5a,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x73,0x74,0x75,
0x76,0x77,0x78,0x79,0x7a,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x92,0x93,0x94,
0x95,0x96,0x97,0x98,0x99,0x9a,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xb2,
0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,
0xca,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,
0xe7,0xe8,0xe9,0xea,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xff,0xda,
0x00,0x08,0x01,0x01,0x00,0x00,0x3f,0x00,0xea,0x2c,0x34,0x1d,0x1f,0xfb,0x3a,0xdb,
0xfe,0x25,0x36,0x3f,0xea,0x93,0xfe,0x5d,0xd3,0xd0,0x7b,0x57,0xff,0xd9,
}

Definition at line 210 of file d3dx9_test_images.h.

Referenced by test_D3DXGetImageInfo().

◆ jpg_rgb_2_2

◆ noimage

const uint8_t noimage[4]
static
Initial value:
=
{
0x11,0x22,0x33,0x44
}

Definition at line 243 of file d3dx9_test_images.h.

Referenced by test_D3DXGetImageInfo(), and test_D3DXLoadSurface().

◆ pixdata

const uint8_t pixdata[]
static
Initial value:
=
{
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
}

Definition at line 237 of file d3dx9_test_images.h.

Referenced by d3dx_pixels_decompress(), fetch_2d_texel_rgb_dxt1(), fetch_2d_texel_rgba_dxt1(), fetch_2d_texel_rgba_dxt3(), fetch_2d_texel_rgba_dxt5(), and test_D3DXLoadSurface().

◆ png_2_2_24bpp_bgr

const uint8_t png_2_2_24bpp_bgr[]
static
Initial value:
=
{
0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52,
0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x08,0x02,0x00,0x00,0x00,0xfd,0xd4,0x9a,
0x73,0x00,0x00,0x00,0x16,0x49,0x44,0x41,0x54,0x08,0x99,0x63,0x54,0x10,0x60,0x30,
0x30,0x30,0x60,0x49,0x48,0x48,0x30,0x30,0x30,0x00,0x00,0x0e,0x68,0x02,0x76,0xd0,
0x18,0x48,0x79,0x00,0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82,
}

Definition at line 136 of file d3dx9_test_images.h.

Referenced by test_D3DXGetImageInfo().

◆ png_2_2_48bpp_rgb

const uint8_t png_2_2_48bpp_rgb[]
static
Initial value:
=
{
0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52,
0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x10,0x02,0x00,0x00,0x00,0xad,0x44,0x46,
0x30,0x00,0x00,0x00,0x1d,0x49,0x44,0x41,0x54,0x08,0x99,0x63,0x64,0x60,0x10,0x10,
0x50,0x50,0x30,0x30,0x30,0x30,0x30,0x30,0x60,0x49,0x48,0x48,0x48,0x48,0x48,0x80,
0x70,0x00,0x34,0x38,0x04,0xe6,0xd6,0xb5,0xab,0x37,0x00,0x00,0x00,0x00,0x49,0x45,
0x4e,0x44,0xae,0x42,0x60,0x82,
}

Definition at line 145 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateTextureFromFileInMemoryEx(), test_D3DXCreateVolumeTextureFromFileInMemoryEx(), test_D3DXGetImageInfo(), test_D3DXLoadSurface(), and test_D3DXLoadVolumeFromFileInMemory().

◆ png_2_2_64bpp_rgba

const uint8_t png_2_2_64bpp_rgba[]
static
Initial value:
=
{
0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52,
0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x10,0x06,0x00,0x00,0x00,0x22,0x26,0xd1,
0x67,0x00,0x00,0x00,0x26,0x49,0x44,0x41,0x54,0x08,0x99,0x63,0x64,0x60,0x10,0x10,
0x50,0x50,0x30,0x30,0x70,0x80,0x02,0x86,0x86,0x86,0x09,0x13,0x16,0x2c,0xd8,0xb0,
0xe1,0xc0,0x81,0x0b,0x17,0x1e,0x3c,0xf8,0xf0,0x01,0x00,0x97,0x64,0x0e,0x42,0xcc,
0x1c,0xbb,0xb8,0x00,0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82,
}

Definition at line 155 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateTextureFromFileInMemoryEx(), test_D3DXCreateVolumeTextureFromFileInMemoryEx(), test_D3DXGetImageInfo(), test_D3DXLoadSurface(), and test_D3DXLoadVolumeFromFileInMemory().

◆ png_grayscale

const uint8_t png_grayscale[]
static
Initial value:
=
{
0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52,
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x08,0x00,0x00,0x00,0x00,0x3a,0x7e,0x9b,
0x55,0x00,0x00,0x00,0x0a,0x49,0x44,0x41,0x54,0x08,0xd7,0x63,0xf8,0x0f,0x00,0x01,
0x01,0x01,0x00,0x1b,0xb6,0xee,0x56,0x00,0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,
0x42,0x60,0x82
}

Definition at line 127 of file d3dx9_test_images.h.

Referenced by test_D3DXCreateTextureFromFileInMemoryEx(), and test_D3DXGetImageInfo().

◆ 

const struct { ... } test_filter_values[]