ReactOS
0.4.15-dev-1636-gf634010
|
#include "config.h"
#include "wine/port.h"
#include "d3dx9_private.h"
#include "initguid.h"
#include "ole2.h"
#include "wincodec.h"
#include "wine/wined3d.h"
Go to the source code of this file.
Classes | |
struct | dds_pixel_format |
struct | dds_header |
struct | argb_conversion_info |
Macros | |
#define | DDS_CAPS 0x1 |
#define | DDS_HEIGHT 0x2 |
#define | DDS_WIDTH 0x4 |
#define | DDS_PITCH 0x8 |
#define | DDS_PIXELFORMAT 0x1000 |
#define | DDS_MIPMAPCOUNT 0x20000 |
#define | DDS_LINEARSIZE 0x80000 |
#define | DDS_DEPTH 0x800000 |
#define | DDS_CAPS_COMPLEX 0x8 |
#define | DDS_CAPS_TEXTURE 0x1000 |
#define | DDS_CAPS_MIPMAP 0x400000 |
#define | DDS_CAPS2_CUBEMAP 0x200 |
#define | DDS_CAPS2_CUBEMAP_POSITIVEX 0x400 |
#define | DDS_CAPS2_CUBEMAP_NEGATIVEX 0x800 |
#define | DDS_CAPS2_CUBEMAP_POSITIVEY 0x1000 |
#define | DDS_CAPS2_CUBEMAP_NEGATIVEY 0x2000 |
#define | DDS_CAPS2_CUBEMAP_POSITIVEZ 0x4000 |
#define | DDS_CAPS2_CUBEMAP_NEGATIVEZ 0x8000 |
#define | DDS_CAPS2_CUBEMAP_ALL_FACES |
#define | DDS_CAPS2_VOLUME 0x200000 |
#define | DDS_PF_ALPHA 0x1 |
#define | DDS_PF_ALPHA_ONLY 0x2 |
#define | DDS_PF_FOURCC 0x4 |
#define | DDS_PF_RGB 0x40 |
#define | DDS_PF_YUV 0x200 |
#define | DDS_PF_LUMINANCE 0x20000 |
#define | DDS_PF_BUMPLUMINANCE 0x40000 |
#define | DDS_PF_BUMPDUDV 0x80000 |
Typedefs | |
typedef BOOL(* | dxtn_conversion_func) (const BYTE *src, BYTE *dst, DWORD pitch_in, DWORD pitch_out, enum wined3d_format_id format, unsigned int w, unsigned int h) |
Variables | |
struct { | |
const GUID * wic_guid | |
D3DFORMAT d3dformat | |
} | wic_pixel_formats [] |
struct { | |
DWORD bpp | |
DWORD rmask | |
DWORD gmask | |
DWORD bmask | |
DWORD amask | |
D3DFORMAT format | |
} | rgb_pixel_formats [] |
#define DDS_CAPS2_CUBEMAP_ALL_FACES |
|
static |
Definition at line 435 of file surface.c.
Referenced by get_image_info_from_dds(), and save_dds_surface_to_memory().
|
static |
Definition at line 412 of file surface.c.
Referenced by calculate_dds_file_size(), load_cube_texture_from_dds(), load_surface_from_dds(), load_texture_from_dds(), load_volume_from_dds(), load_volume_texture_from_dds(), and save_dds_surface_to_memory().
void convert_argb_pixels | ( | const BYTE * | src, |
UINT | src_row_pitch, | ||
UINT | src_slice_pitch, | ||
const struct volume * | src_size, | ||
const struct pixel_format_desc * | src_format, | ||
BYTE * | dst, | ||
UINT | dst_row_pitch, | ||
UINT | dst_slice_pitch, | ||
const struct volume * | dst_size, | ||
const struct pixel_format_desc * | dst_format, | ||
D3DCOLOR | color_key, | ||
const PALETTEENTRY * | palette | ||
) |
Definition at line 1691 of file surface.c.
Referenced by D3DXLoadSurfaceFromMemory(), D3DXLoadVolumeFromMemory(), and D3DXSaveSurfaceToFileInMemory().
Definition at line 859 of file surface.c.
Referenced by D3DXGetImageInfoFromFileInMemory(), and D3DXLoadSurfaceFromFileInMemory().
void copy_pixels | ( | const BYTE * | src, |
UINT | src_row_pitch, | ||
UINT | src_slice_pitch, | ||
BYTE * | dst, | ||
UINT | dst_row_pitch, | ||
UINT | dst_slice_pitch, | ||
const struct volume * | size, | ||
const struct pixel_format_desc * | format | ||
) |
Definition at line 1660 of file surface.c.
Referenced by BitmapImpl_CopyPixels(), BmpFrameDecode_CopyPixels(), D3DXLoadSurfaceFromMemory(), D3DXLoadVolumeFromMemory(), GifFrameDecode_CopyPixels(), IcoFrameDecode_CopyPixels(), save_dds_surface_to_memory(), and TgaDecoder_Frame_CopyPixels().
|
static |
Definition at line 377 of file surface.c.
Referenced by save_dds_surface_to_memory().
Definition at line 68 of file surface.c.
Referenced by D3DXSaveSurfaceToFileInMemory().
HRESULT WINAPI D3DXGetImageInfoFromFileA | ( | const char * | file, |
D3DXIMAGE_INFO * | info | ||
) |
Definition at line 1095 of file surface.c.
Referenced by test_D3DXGetImageInfo().
HRESULT WINAPI D3DXGetImageInfoFromFileInMemory | ( | const void * | data, |
UINT | datasize, | ||
D3DXIMAGE_INFO * | info | ||
) |
Definition at line 945 of file surface.c.
Referenced by check_dds_pixel_format_(), D3DXCreateCubeTextureFromFileInMemoryEx(), D3DXCreateTextureFromFileInMemoryEx(), D3DXCreateVolumeTextureFromFileInMemoryEx(), D3DXGetImageInfoFromFileW(), D3DXGetImageInfoFromResourceA(), D3DXGetImageInfoFromResourceW(), D3DXLoadSurfaceFromFileInMemory(), D3DXLoadVolumeFromFileInMemory(), test_D3DXGetImageInfo(), test_D3DXSaveTextureToFileInMemory(), and test_dds_header_handling().
HRESULT WINAPI D3DXGetImageInfoFromFileW | ( | const WCHAR * | file, |
D3DXIMAGE_INFO * | info | ||
) |
Definition at line 1115 of file surface.c.
Referenced by D3DXGetImageInfoFromFileA().
HRESULT WINAPI D3DXGetImageInfoFromResourceA | ( | HMODULE | module, |
const char * | resource, | ||
D3DXIMAGE_INFO * | info | ||
) |
Definition at line 1144 of file surface.c.
Referenced by test_D3DXGetImageInfo().
HRESULT WINAPI D3DXGetImageInfoFromResourceW | ( | HMODULE | module, |
const WCHAR * | resource, | ||
D3DXIMAGE_INFO * | info | ||
) |
Definition at line 1163 of file surface.c.
HRESULT WINAPI D3DXLoadSurfaceFromFileA | ( | IDirect3DSurface9 * | dst_surface, |
const PALETTEENTRY * | dst_palette, | ||
const RECT * | dst_rect, | ||
const char * | src_file, | ||
const RECT * | src_rect, | ||
DWORD | filter, | ||
D3DCOLOR | color_key, | ||
D3DXIMAGE_INFO * | src_info | ||
) |
Definition at line 1376 of file surface.c.
Referenced by test_D3DXLoadSurface(), and test_D3DXSaveSurfaceToFile().
HRESULT WINAPI D3DXLoadSurfaceFromFileInMemory | ( | IDirect3DSurface9 * | pDestSurface, |
const PALETTEENTRY * | pDestPalette, | ||
const RECT * | pDestRect, | ||
const void * | pSrcData, | ||
UINT | SrcDataSize, | ||
const RECT * | pSrcRect, | ||
DWORD | dwFilter, | ||
D3DCOLOR | Colorkey, | ||
D3DXIMAGE_INFO * | pSrcInfo | ||
) |
Definition at line 1205 of file surface.c.
Referenced by D3DXCreateTextureFromFileInMemoryEx(), D3DXLoadSurfaceFromFileW(), D3DXLoadSurfaceFromResourceA(), D3DXLoadSurfaceFromResourceW(), test_D3DXLoadSurface(), and test_D3DXSaveTextureToFileInMemory().
HRESULT WINAPI D3DXLoadSurfaceFromFileW | ( | IDirect3DSurface9 * | dst_surface, |
const PALETTEENTRY * | dst_palette, | ||
const RECT * | dst_rect, | ||
const WCHAR * | src_file, | ||
const RECT * | src_rect, | ||
DWORD | filter, | ||
D3DCOLOR | color_key, | ||
D3DXIMAGE_INFO * | src_info | ||
) |
Definition at line 1403 of file surface.c.
Referenced by D3DXLoadSurfaceFromFileA().
HRESULT WINAPI D3DXLoadSurfaceFromMemory | ( | IDirect3DSurface9 * | dst_surface, |
const PALETTEENTRY * | dst_palette, | ||
const RECT * | dst_rect, | ||
const void * | src_memory, | ||
D3DFORMAT | src_format, | ||
UINT | src_pitch, | ||
const PALETTEENTRY * | src_palette, | ||
const RECT * | src_rect, | ||
DWORD | filter, | ||
D3DCOLOR | color_key | ||
) |
Definition at line 1931 of file surface.c.
Referenced by D3DXLoadSurfaceFromFileInMemory(), D3DXLoadSurfaceFromSurface(), load_cube_texture_from_dds(), load_surface_from_dds(), load_texture_from_dds(), test_D3DXLoadSurface(), and test_D3DXSaveSurfaceToFile().
HRESULT WINAPI D3DXLoadSurfaceFromResourceA | ( | IDirect3DSurface9 * | dst_surface, |
const PALETTEENTRY * | dst_palette, | ||
const RECT * | dst_rect, | ||
HMODULE | src_module, | ||
const char * | resource, | ||
const RECT * | src_rect, | ||
DWORD | filter, | ||
D3DCOLOR | color_key, | ||
D3DXIMAGE_INFO * | src_info | ||
) |
Definition at line 1429 of file surface.c.
Referenced by test_D3DXLoadSurface().
HRESULT WINAPI D3DXLoadSurfaceFromResourceW | ( | IDirect3DSurface9 * | dst_surface, |
const PALETTEENTRY * | dst_palette, | ||
const RECT * | dst_rect, | ||
HMODULE | src_module, | ||
const WCHAR * | resource, | ||
const RECT * | src_rect, | ||
DWORD | filter, | ||
D3DCOLOR | color_key, | ||
D3DXIMAGE_INFO * | src_info | ||
) |
Definition at line 1457 of file surface.c.
HRESULT WINAPI D3DXLoadSurfaceFromSurface | ( | IDirect3DSurface9 * | dst_surface, |
const PALETTEENTRY * | dst_palette, | ||
const RECT * | dst_rect, | ||
IDirect3DSurface9 * | src_surface, | ||
const PALETTEENTRY * | src_palette, | ||
const RECT * | src_rect, | ||
DWORD | filter, | ||
D3DCOLOR | color_key | ||
) |
Definition at line 2138 of file surface.c.
Referenced by copy_render_target_to_cube_texture_face(), D3DXFilterTexture(), D3DXRenderToSurface_EndScene(), and test_D3DXLoadSurface().
HRESULT WINAPI D3DXSaveSurfaceToFileA | ( | const char * | dst_filename, |
D3DXIMAGE_FILEFORMAT | file_format, | ||
IDirect3DSurface9 * | src_surface, | ||
const PALETTEENTRY * | src_palette, | ||
const RECT * | src_rect | ||
) |
Definition at line 2210 of file surface.c.
Referenced by test_D3DXSaveSurfaceToFile().
HRESULT WINAPI D3DXSaveSurfaceToFileInMemory | ( | ID3DXBuffer ** | dst_buffer, |
D3DXIMAGE_FILEFORMAT | file_format, | ||
IDirect3DSurface9 * | src_surface, | ||
const PALETTEENTRY * | src_palette, | ||
const RECT * | src_rect | ||
) |
Definition at line 2260 of file surface.c.
Referenced by D3DXSaveSurfaceToFileA(), D3DXSaveSurfaceToFileW(), D3DXSaveTextureToFileInMemory(), and test_D3DXSaveSurfaceToFileInMemory().
HRESULT WINAPI D3DXSaveSurfaceToFileW | ( | const WCHAR * | dst_filename, |
D3DXIMAGE_FILEFORMAT | file_format, | ||
IDirect3DSurface9 * | src_surface, | ||
const PALETTEENTRY * | src_palette, | ||
const RECT * | src_rect | ||
) |
Definition at line 2239 of file surface.c.
|
static |
Definition at line 319 of file surface.c.
Referenced by dds_pixel_format_to_d3dformat().
|
static |
Definition at line 340 of file surface.c.
Referenced by dds_pixel_format_to_d3dformat().
|
static |
Definition at line 328 of file surface.c.
Referenced by dds_pixel_format_to_d3dformat().
Definition at line 150 of file surface.c.
Referenced by d3dformat_to_dds_pixel_format(), and dds_pixel_format_to_d3dformat().
|
static |
Definition at line 297 of file surface.c.
Referenced by dds_pixel_format_to_d3dformat().
|
static |
Definition at line 351 of file surface.c.
Referenced by get_image_info_from_dds().
|
static |
Definition at line 274 of file surface.c.
Referenced by dds_pixel_format_to_d3dformat().
DEFINE_GUID | ( | GUID_WineContainerFormatTga | , |
0x0c44fda1 | , | ||
0xa5c5 | , | ||
0x4298 | , | ||
0x96 | , | ||
0x85 | , | ||
0x47 | , | ||
0x3f | , | ||
0xc1 | , | ||
0x7c | , | ||
0xd3 | , | ||
0x22 | |||
) |
|
static |
Definition at line 1610 of file surface.c.
Referenced by convert_argb_pixels(), and point_filter_argb_pixels().
|
static |
Definition at line 1580 of file surface.c.
Referenced by convert_argb_pixels(), and point_filter_argb_pixels().
|
static |
Definition at line 1884 of file surface.c.
Referenced by D3DXLoadSurfaceFromMemory().
|
static |
Definition at line 472 of file surface.c.
Referenced by D3DXGetImageInfoFromFileInMemory().
|
static |
Definition at line 1532 of file surface.c.
Referenced by convert_argb_pixels(), and point_filter_argb_pixels().
|
static |
Definition at line 617 of file surface.c.
Referenced by save_dds_texture_to_memory().
|
static |
Definition at line 1499 of file surface.c.
Referenced by convert_argb_pixels(), and point_filter_argb_pixels().
HRESULT load_cube_texture_from_dds | ( | IDirect3DCubeTexture9 * | cube_texture, |
const void * | src_data, | ||
const PALETTEENTRY * | palette, | ||
DWORD | filter, | ||
DWORD | color_key, | ||
const D3DXIMAGE_INFO * | src_info | ||
) |
Definition at line 754 of file surface.c.
|
static |
Definition at line 528 of file surface.c.
Referenced by D3DXLoadSurfaceFromFileInMemory().
HRESULT load_texture_from_dds | ( | IDirect3DTexture9 * | texture, |
const void * | src_data, | ||
const PALETTEENTRY * | palette, | ||
DWORD | filter, | ||
D3DCOLOR | color_key, | ||
const D3DXIMAGE_INFO * | src_info, | ||
unsigned int | skip_levels, | ||
unsigned int * | loaded_miplevels | ||
) |
Definition at line 697 of file surface.c.
Referenced by D3DXCreateTextureFromFileInMemoryEx().
HRESULT load_volume_from_dds | ( | IDirect3DVolume9 * | dst_volume, |
const PALETTEENTRY * | dst_palette, | ||
const D3DBOX * | dst_box, | ||
const void * | src_data, | ||
const D3DBOX * | src_box, | ||
DWORD | filter, | ||
D3DCOLOR | color_key, | ||
const D3DXIMAGE_INFO * | src_info | ||
) |
Definition at line 679 of file surface.c.
Referenced by D3DXLoadVolumeFromFileInMemory().
HRESULT load_volume_texture_from_dds | ( | IDirect3DVolumeTexture9 * | volume_texture, |
const void * | src_data, | ||
const PALETTEENTRY * | palette, | ||
DWORD | filter, | ||
DWORD | color_key, | ||
const D3DXIMAGE_INFO * | src_info | ||
) |
Definition at line 807 of file surface.c.
Referenced by D3DXCreateVolumeTextureFromFileInMemoryEx().
HRESULT lock_surface | ( | IDirect3DSurface9 * | surface, |
D3DLOCKED_RECT * | lock, | ||
IDirect3DSurface9 ** | temp_surface, | ||
BOOL | write | ||
) |
Definition at line 206 of file surface.c.