ReactOS 0.4.16-dev-320-g3bd9ddc
|
#include "d3dx9_private.h"
#include "initguid.h"
#include "ole2.h"
#include "wincodec.h"
#include "txc_dxtn.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_INDEXED 0x20 |
#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 |
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 475 of file surface.c.
Referenced by get_image_info_from_dds(), and save_dds_surface_to_memory().
|
static |
Definition at line 452 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 1731 of file surface.c.
Referenced by D3DXLoadSurfaceFromMemory(), D3DXLoadVolumeFromMemory(), and D3DXSaveSurfaceToFileInMemory().
Definition at line 899 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 1700 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 417 of file surface.c.
Referenced by save_dds_surface_to_memory().
Definition at line 70 of file surface.c.
Referenced by D3DXSaveSurfaceToFileInMemory().
HRESULT WINAPI D3DXGetImageInfoFromFileA | ( | const char * | file, |
D3DXIMAGE_INFO * | info | ||
) |
Definition at line 1135 of file surface.c.
Referenced by test_D3DXGetImageInfo().
HRESULT WINAPI D3DXGetImageInfoFromFileInMemory | ( | const void * | data, |
UINT | datasize, | ||
D3DXIMAGE_INFO * | info | ||
) |
Definition at line 985 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 1155 of file surface.c.
Referenced by D3DXGetImageInfoFromFileA().
HRESULT WINAPI D3DXGetImageInfoFromResourceA | ( | HMODULE | module, |
const char * | resource, | ||
D3DXIMAGE_INFO * | info | ||
) |
Definition at line 1184 of file surface.c.
Referenced by test_D3DXGetImageInfo().
HRESULT WINAPI D3DXGetImageInfoFromResourceW | ( | HMODULE | module, |
const WCHAR * | resource, | ||
D3DXIMAGE_INFO * | info | ||
) |
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 1416 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 1245 of file surface.c.
Referenced by D3DXCreateTextureFromFileInMemoryEx(), D3DXLoadSurfaceFromFileW(), D3DXLoadSurfaceFromResourceA(), D3DXLoadSurfaceFromResourceW(), test_D3DXCreateTextureFromFileInMemory(), 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 1443 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 1963 of file surface.c.
Referenced by D3DXLoadSurfaceFromFileInMemory(), D3DXLoadSurfaceFromSurface(), load_cube_texture_from_dds(), load_surface_from_dds(), load_texture_from_dds(), test_D3DXCreateTextureFromFileInMemory(), 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 1469 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 | ||
) |
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 2233 of file surface.c.
Referenced by copy_render_target_to_cube_texture_face(), D3DXFilterTexture(), D3DXRenderToSurface_EndScene(), test_D3DXCreateTextureFromFileInMemory(), 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 2364 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 2414 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 2393 of file surface.c.
|
static |
Definition at line 348 of file surface.c.
Referenced by dds_pixel_format_to_d3dformat().
|
static |
Definition at line 378 of file surface.c.
Referenced by dds_pixel_format_to_d3dformat().
|
static |
Definition at line 366 of file surface.c.
Referenced by dds_pixel_format_to_d3dformat().
Definition at line 153 of file surface.c.
Referenced by d3dformat_to_dds_pixel_format(), and dds_pixel_format_to_d3dformat().
|
static |
Definition at line 357 of file surface.c.
Referenced by dds_pixel_format_to_d3dformat().
|
static |
Definition at line 326 of file surface.c.
Referenced by dds_pixel_format_to_d3dformat().
|
static |
Definition at line 389 of file surface.c.
Referenced by get_image_info_from_dds().
|
static |
Definition at line 303 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 1650 of file surface.c.
Referenced by convert_argb_pixels(), and point_filter_argb_pixels().
|
static |
Definition at line 1620 of file surface.c.
Referenced by convert_argb_pixels(), and point_filter_argb_pixels().
|
static |
Definition at line 512 of file surface.c.
Referenced by D3DXGetImageInfoFromFileInMemory().
|
static |
Definition at line 1572 of file surface.c.
Referenced by convert_argb_pixels(), and point_filter_argb_pixels().
|
static |
Definition at line 657 of file surface.c.
Referenced by save_dds_texture_to_memory().
|
static |
Definition at line 1539 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 794 of file surface.c.
|
static |
Definition at line 568 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 737 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 719 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 847 of file surface.c.
Referenced by D3DXCreateVolumeTextureFromFileInMemoryEx().
HRESULT lock_surface | ( | IDirect3DSurface9 * | surface, |
const RECT * | surface_rect, | ||
D3DLOCKED_RECT * | lock, | ||
IDirect3DSurface9 ** | temp_surface, | ||
BOOL | write | ||
) |
Definition at line 209 of file surface.c.
Referenced by D3DXFillTexture(), D3DXLoadSurfaceFromMemory(), D3DXLoadSurfaceFromSurface(), D3DXSaveSurfaceToFileInMemory(), and save_dds_surface_to_memory().
Definition at line 1602 of file surface.c.
Referenced by convert_argb_pixels(), and point_filter_argb_pixels().
void point_filter_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 1839 of file surface.c.
Referenced by D3DXLoadSurfaceFromMemory(), and D3DXLoadVolumeFromMemory().
|
static |
Definition at line 587 of file surface.c.
Referenced by D3DXSaveSurfaceToFileInMemory(), and save_dds_texture_to_memory().
HRESULT save_dds_texture_to_memory | ( | ID3DXBuffer ** | dst_buffer, |
IDirect3DBaseTexture9 * | src_texture, | ||
const PALETTEENTRY * | src_palette | ||
) |
Definition at line 672 of file surface.c.
Referenced by D3DXSaveTextureToFileInMemory().
HRESULT unlock_surface | ( | IDirect3DSurface9 * | surface, |
const RECT * | surface_rect, | ||
IDirect3DSurface9 * | temp_surface, | ||
BOOL | update | ||
) |
Definition at line 267 of file surface.c.
Referenced by D3DXFillTexture(), D3DXLoadSurfaceFromMemory(), D3DXLoadSurfaceFromSurface(), D3DXSaveSurfaceToFileInMemory(), and save_dds_surface_to_memory().
Definition at line 57 of file surface.c.
Referenced by D3DXGetImageInfoFromFileInMemory(), and D3DXSaveSurfaceToFileInMemory().
HRESULT WINAPI WICCreateImagingFactory_Proxy | ( | UINT | SDKVersion, |
IWICImagingFactory ** | ppIImagingFactory | ||
) |
Definition at line 651 of file proxy.c.
Referenced by D3DXGetImageInfoFromFileInMemory(), D3DXLoadSurfaceFromFileInMemory(), and D3DXSaveSurfaceToFileInMemory().
WINE_DEFAULT_DEBUG_CHANNEL | ( | d3dx | ) |
DWORD amask |
Definition at line 189 of file surface.c.
Referenced by check_dds_pixel_format_(), dds_rgb_to_d3dformat(), ps_mask_table_alloc(), ps_mask_table_last(), and ui_create_cursor().
DWORD bpp |
Definition at line 185 of file surface.c.
Referenced by _bdf_parse_start(), BDF_Glyph_Load(), BITMAP_LoadImageW(), BitmapImpl_Create(), bs_init(), bs_is_pixel_on(), bs_set_pixel_on(), check_alpha_draw(), check_bitmap_data(), check_dds_pixel_format_(), check_DrawIcon(), check_DrawIconEx(), check_DrawState_Color(), check_DrawState_Size(), copy_pixels(), create_alpha_bitmap(), create_bitmap(), create_default_palette(), create_dib(), create_dib_section(), create_test_bitmap(), create_test_icon(), CURSORICON_GetCursorDataFromBMI(), d3drm_texture_load(), ddraw1_SetDisplayMode(), ddraw2_SetDisplayMode(), ddraw4_SetDisplayMode(), ddraw7_SetDisplayMode(), dds_rgb_to_d3dformat(), decode_cinepak(), DIB_GetBitmapInfo(), DIB_GetWidthBytes(), FormatConverter_CopyPalette(), FormatConverter_Initialize(), ft_bitmap_assure_buffer(), GdipImageRotateFlip(), get_addr(), get_bitmap_info(), get_bitmap_stride(), get_default_color_table(), get_dib_stride(), get_format(), get_pixel2(), get_pixelformat_bpp(), get_pixelformat_info(), get_ptr(), GetPossibleSettings(), GreCreateDIBitmapInternal(), GreGetDIBitsInternal(), image_list_init(), InitBitmapInfo(), IntCreateDIBitmap(), is_pixel_on(), IWICPixelFormatInfo_GetBitsPerPixel_Proxy_W(), MainFrameBase::MainFrameBase(), metadc_stretchblt(), primarybuffer_SetFormat(), process_bitmap_updates(), process_bmpcache(), process_colour_pointer_common(), process_raw_bmpcache(), ReLoadDisplayPage(), set_pixel2(), set_pixel_on(), setup_picture(), SetupDiGetClassImageListExW(), ShellBrowser::ShellBrowser(), SIC_Initialize(), START_TEST(), surface_cpu_blt(), surface_cpu_blt_colour_fill(), test_bitmap_rendering(), test_bitmapbits(), Test_BitmapEntry(), test_color_formats(), test_dib_formats(), Test_DIBSectionEntry(), test_GetDIBits_selected_DDB(), test_GetDIBits_selected_DIB(), test_GetDIBits_top_down(), test_ImageList_DrawIndirect(), test_merge_colors(), test_multi_encoder(), test_select_object(), WICCreateBitmapFromSectionEx(), width_bytes(), and write_source().
D3DFORMAT d3dformat |
Definition at line 44 of file surface.c.
Referenced by d3dformat_to_dds_pixel_format(), d3dformat_to_wic_guid(), and wic_guid_to_d3dformat().
DWORD gmask |
Definition at line 187 of file surface.c.
Referenced by check_dds_pixel_format_().
const struct { ... } rgb_pixel_formats[] |
Referenced by d3dformat_to_dds_pixel_format(), and dds_rgb_to_d3dformat().
DWORD rmask |
Definition at line 186 of file surface.c.
Referenced by check_dds_pixel_format_(), and ps_mask_table_set_bits().
Definition at line 43 of file surface.c.
Referenced by wic_guid_to_d3dformat().
const struct { ... } wic_pixel_formats[] |
Referenced by d3dformat_to_wic_guid(), and wic_guid_to_d3dformat().