31 la->
x = rgba->
x * 0.2125f + rgba->
y * 0.7154f + rgba->
z * 0.0721f;
62 {
D3DFMT_R8G8B8, { 0, 8, 8, 8}, { 0, 16, 8, 0}, 3, 1, 1, 3,
FORMAT_ARGB,
NULL,
NULL },
63 {
D3DFMT_A8R8G8B8, { 8, 8, 8, 8}, {24, 16, 8, 0}, 4, 1, 1, 4,
FORMAT_ARGB,
NULL,
NULL },
64 {
D3DFMT_X8R8G8B8, { 0, 8, 8, 8}, { 0, 16, 8, 0}, 4, 1, 1, 4,
FORMAT_ARGB,
NULL,
NULL },
65 {
D3DFMT_A8B8G8R8, { 8, 8, 8, 8}, {24, 0, 8, 16}, 4, 1, 1, 4,
FORMAT_ARGB,
NULL,
NULL },
66 {
D3DFMT_X8B8G8R8, { 0, 8, 8, 8}, { 0, 0, 8, 16}, 4, 1, 1, 4,
FORMAT_ARGB,
NULL,
NULL },
67 {
D3DFMT_R5G6B5, { 0, 5, 6, 5}, { 0, 11, 5, 0}, 2, 1, 1, 2,
FORMAT_ARGB,
NULL,
NULL },
68 {
D3DFMT_X1R5G5B5, { 0, 5, 5, 5}, { 0, 10, 5, 0}, 2, 1, 1, 2,
FORMAT_ARGB,
NULL,
NULL },
69 {
D3DFMT_A1R5G5B5, { 1, 5, 5, 5}, {15, 10, 5, 0}, 2, 1, 1, 2,
FORMAT_ARGB,
NULL,
NULL },
70 {
D3DFMT_R3G3B2, { 0, 3, 3, 2}, { 0, 5, 2, 0}, 1, 1, 1, 1,
FORMAT_ARGB,
NULL,
NULL },
71 {
D3DFMT_A8R3G3B2, { 8, 3, 3, 2}, { 8, 5, 2, 0}, 2, 1, 1, 2,
FORMAT_ARGB,
NULL,
NULL },
72 {
D3DFMT_A4R4G4B4, { 4, 4, 4, 4}, {12, 8, 4, 0}, 2, 1, 1, 2,
FORMAT_ARGB,
NULL,
NULL },
73 {
D3DFMT_X4R4G4B4, { 0, 4, 4, 4}, { 0, 8, 4, 0}, 2, 1, 1, 2,
FORMAT_ARGB,
NULL,
NULL },
74 {
D3DFMT_A2R10G10B10, { 2, 10, 10, 10}, {30, 20, 10, 0}, 4, 1, 1, 4,
FORMAT_ARGB,
NULL,
NULL },
75 {
D3DFMT_A2B10G10R10, { 2, 10, 10, 10}, {30, 0, 10, 20}, 4, 1, 1, 4,
FORMAT_ARGB,
NULL,
NULL },
76 {
D3DFMT_A16B16G16R16, {16, 16, 16, 16}, {48, 0, 16, 32}, 8, 1, 1, 8,
FORMAT_ARGB,
NULL,
NULL },
77 {
D3DFMT_G16R16, { 0, 16, 16, 0}, { 0, 0, 16, 0}, 4, 1, 1, 4,
FORMAT_ARGB,
NULL,
NULL },
78 {
D3DFMT_A8, { 8, 0, 0, 0}, { 0, 0, 0, 0}, 1, 1, 1, 1,
FORMAT_ARGB,
NULL,
NULL },
79 {
D3DFMT_A8L8, { 8, 8, 0, 0}, { 8, 0, 0, 0}, 2, 1, 1, 2,
FORMAT_ARGB,
la_from_rgba,
la_to_rgba},
80 {
D3DFMT_A4L4, { 4, 4, 0, 0}, { 4, 0, 0, 0}, 1, 1, 1, 1,
FORMAT_ARGB,
la_from_rgba,
la_to_rgba},
81 {
D3DFMT_L8, { 0, 8, 0, 0}, { 0, 0, 0, 0}, 1, 1, 1, 1,
FORMAT_ARGB,
la_from_rgba,
la_to_rgba},
82 {
D3DFMT_L16, { 0, 16, 0, 0}, { 0, 0, 0, 0}, 2, 1, 1, 2,
FORMAT_ARGB,
la_from_rgba,
la_to_rgba},
83 {
D3DFMT_DXT1, { 0, 0, 0, 0}, { 0, 0, 0, 0}, 1, 4, 4, 8,
FORMAT_DXT,
NULL,
NULL },
84 {
D3DFMT_DXT2, { 0, 0, 0, 0}, { 0, 0, 0, 0}, 1, 4, 4, 16,
FORMAT_DXT,
NULL,
NULL },
85 {
D3DFMT_DXT3, { 0, 0, 0, 0}, { 0, 0, 0, 0}, 1, 4, 4, 16,
FORMAT_DXT,
NULL,
NULL },
86 {
D3DFMT_DXT4, { 0, 0, 0, 0}, { 0, 0, 0, 0}, 1, 4, 4, 16,
FORMAT_DXT,
NULL,
NULL },
87 {
D3DFMT_DXT5, { 0, 0, 0, 0}, { 0, 0, 0, 0}, 1, 4, 4, 16,
FORMAT_DXT,
NULL,
NULL },
88 {
D3DFMT_R16F, { 0, 16, 0, 0}, { 0, 0, 0, 0}, 2, 1, 1, 2,
FORMAT_ARGBF16,
NULL,
NULL },
89 {
D3DFMT_G16R16F, { 0, 16, 16, 0}, { 0, 0, 16, 0}, 4, 1, 1, 4,
FORMAT_ARGBF16,
NULL,
NULL },
90 {
D3DFMT_A16B16G16R16F, {16, 16, 16, 16}, {48, 0, 16, 32}, 8, 1, 1, 8,
FORMAT_ARGBF16,
NULL,
NULL },
91 {
D3DFMT_R32F, { 0, 32, 0, 0}, { 0, 0, 0, 0}, 4, 1, 1, 4,
FORMAT_ARGBF,
NULL,
NULL },
92 {
D3DFMT_G32R32F, { 0, 32, 32, 0}, { 0, 0, 32, 0}, 8, 1, 1, 8,
FORMAT_ARGBF,
NULL,
NULL },
93 {
D3DFMT_A32B32G32R32F, {32, 32, 32, 32}, {96, 0, 32, 64}, 16, 1, 1, 16,
FORMAT_ARGBF,
NULL,
NULL },
94 {
D3DFMT_P8, { 8, 8, 8, 8}, { 0, 0, 0, 0}, 1, 1, 1, 1,
FORMAT_INDEX,
NULL,
index_to_rgba},
95 {
D3DFMT_X8L8V8U8, { 0, 8, 8, 8}, { 0, 0, 8, 16}, 4, 1, 1, 4,
FORMAT_ARGB,
NULL,
NULL },
97 {
D3DFMT_UNKNOWN, { 0, 0, 0, 0}, { 0, 0, 0, 0}, 0, 1, 1, 0,
FORMAT_UNKNOWN,
NULL,
NULL },
131 if(!hmapping)
goto error;
189 void *buffer_pointer;
235#define WINE_D3DX_TO_STR(x) case x: return #x
248 FIXME(
"Unrecognized D3DXPARAMETER_CLASS %#x.\n",
c);
249 return "unrecognized";
278 FIXME(
"Unrecognized D3DXPARAMETER_TYP %#x.\n",
t);
279 return "unrecognized";
292 FIXME(
"Unrecognized D3DXREGISTER_SET %#x.\n",
r);
293 return "unrecognized";
297#undef WINE_D3DX_TO_STR
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
enum _D3DFORMAT D3DFORMAT
struct ID3DXBuffer ID3DXBuffer
#define ID3DXBuffer_GetBufferSize(p)
#define ID3DXBuffer_GetBufferPointer(p)
enum _D3DXREGISTER_SET D3DXREGISTER_SET
const struct pixel_format_desc * get_format_info(D3DFORMAT format)
static const struct pixel_format_desc formats[]
HRESULT map_view_of_file(const WCHAR *filename, void **buffer, DWORD *length)
static void la_to_rgba(const struct vec4 *la, struct vec4 *rgba, const PALETTEENTRY *palette)
UINT WINAPI D3DXGetDriverLevel(struct IDirect3DDevice9 *device)
const char * debug_d3dxparameter_type(D3DXPARAMETER_TYPE t)
static void la_from_rgba(const struct vec4 *rgba, struct vec4 *la)
const struct pixel_format_desc * get_format_info_idx(int idx)
static void index_to_rgba(const struct vec4 *index, struct vec4 *rgba, const PALETTEENTRY *palette)
const char * debug_d3dxparameter_registerset(D3DXREGISTER_SET r)
HRESULT write_buffer_to_file(const WCHAR *dst_filename, ID3DXBuffer *buffer)
#define WINE_D3DX_TO_STR(x)
const char * debug_d3dxparameter_class(D3DXPARAMETER_CLASS c)
HRESULT load_resource_into_memory(HMODULE module, HRSRC resinfo, void **buffer, DWORD *length)
BOOL WINAPI D3DXDebugMute(BOOL mute)
#define INVALID_HANDLE_VALUE
#define CreateFileMappingW(a, b, c, d, e, f)
static __inline const char * debugstr_an(const char *s, int n)
#define FILE_ATTRIBUTE_NORMAL
DWORD WINAPI GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
DWORD WINAPI SizeofResource(HINSTANCE hModule, HRSRC hRsrc)
LPVOID WINAPI LockResource(HGLOBAL handle)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
GLdouble GLdouble GLdouble r
GLuint GLsizei GLsizei * length
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static void buffer_size(GLcontext *ctx, GLuint *width, GLuint *height)
DWORD WINAPI GetLastError(void)
#define INVALID_FILE_SIZE
#define HRESULT_FROM_WIN32(x)