Commit Graph

114 Commits

Author SHA1 Message Date
Matteo Bruni 84a290c12b d3dx9: Don't forbid supported format conversions.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 21:38:49 +01:00
Matteo Bruni 4d1192ad89 d3dx9: Cleanup header includes.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-15 14:12:29 +09:00
Christian Costa d2307b1ffc d3dx9: Improve generated DDS file header.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-08 21:37:32 +09:00
Matteo Bruni d71970f658 d3dx9: Don't take the fastpath when converting between texture formats of different type.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:16:49 +09:00
Józef Kucia ece3af7855 d3dx9: Use D3DFMT constants instead of MAKEFOURCC codes. 2015-08-25 16:57:55 +09:00
Józef Kucia 853be6e1d8 d3dx9: Fix miplevels handling for DDS file format. 2015-08-25 16:57:55 +09:00
Józef Kucia ba53012fcf d3dx9: Fix typo in DDS_WIDTH define. 2015-08-25 16:57:55 +09:00
Andrey Gusev 07630a9eae d3dx9_36: Assorted spelling and typos fixes. 2015-03-31 00:04:42 +09:00
Matteo Bruni fb9c01f1dc d3dx9: Handle GUID_WICPixelFormat8bppGray format. 2014-11-11 14:21:00 +09:00
Matteo Bruni 807c01727c d3dx9: Avoid reading outside of the allocated surface memory (Valgrind). 2014-08-27 19:23:06 +02:00
Frédéric Delanoy 95ae71f3ab Assorted spelling/grammar fixes. 2014-07-01 13:09:13 +02:00
Matteo Bruni 596557a57a d3dx9: Support skipping mip levels in D3DXCreateTextureFromFileInMemoryEx. 2014-03-05 19:18:17 +01:00
Matteo Bruni df3c573f63 d3dx9: Allow loading DDS volume textures into 2D textures. 2014-03-03 17:53:53 +01:00
Matteo Bruni 8226a187d6 d3dx9: Don't call CoUninitialize if CoInitializeEx failed. 2014-02-25 14:18:07 -06:00
Matteo Bruni fa8a0dc7f6 d3dx9: Allow loading float "FOURCC" DDS files. 2014-02-20 13:25:29 +01:00
Matteo Bruni 950c40b117 d3dx9: Handle pixel formats larger than 32 bits in surface loading / filtering functions. 2014-02-17 20:16:24 +01:00
Matteo Bruni ac5664c879 d3dx9: Trace DDS pixel format. 2014-02-17 20:16:22 +01:00
Henri Verbeet 49a3dbc453 d3dx9: Avoid CONST. 2013-09-20 11:27:49 +02:00
Henri Verbeet 75511e351c d3dx9: Avoid LPCSTR. 2013-09-02 18:02:48 +02:00
Henri Verbeet 2a24b11af5 d3dx9: Avoid LPWSTR. 2013-09-02 18:02:46 +02:00
Henri Verbeet 82710124e3 d3dx9: Avoid LPCWSTR. 2013-08-30 11:19:05 +02:00
Henri Verbeet 9595dd873e d3dx9: Simplify D3DXLoadSurfaceFromResourceW(). 2013-08-28 11:17:09 +02:00
Henri Verbeet d16402b10c d3dx9: Simplify D3DXLoadSurfaceFromResourceA(). 2013-08-28 11:17:09 +02:00
Henri Verbeet 4c850f0e79 d3dx9: Simplify D3DXGetImageInfoFromResourceW(). 2013-08-27 11:50:53 +02:00
Henri Verbeet aaff163ae0 d3dx9: Simplify D3DXGetImageInfoFromResourceA(). 2013-08-27 11:50:53 +02:00
Christian Costa 582945faac d3dx9_36: Display bpp in decimal in traces. 2013-07-22 17:16:03 +02:00
Marcus Meissner 64fb92ab38 d3dx9_36: Allocate the right size (Coverity). 2013-05-27 19:02:25 +02:00
Christian Costa edb01d2662 d3dx9_36: Add support for D3DFMT_P8 and conversion to other ARGB formats + tests. 2013-05-23 20:51:23 +02:00
Christian Costa aa1d24f09b d3dx9_36: Report D3DFMT_P8 for image with indexed colors in D3DGetImageInfoFromFileInMemory. 2013-05-14 22:00:06 +02:00
Christian Costa 0321e63641 d3dx9_36: Add DIB file support to D3DXSaveSurfaceToFileInMemory. 2013-04-25 20:25:07 +02:00
Christian Costa 792e2ee248 d3dx9_36: Add DIB file support to D3DXLoadSurfaceFromFileInMemory. 2013-04-25 20:25:07 +02:00
Christian Costa 4653b839e7 d3dx9_36: Add support for DIB file in D3DXGetImageInfoFromFileInMemory. 2013-04-25 20:25:06 +02:00
Christian Costa 4778a5e27d d3dx9_36: Add support for RT_BITMAP resource type since it is in DIB format D3DXIFF_DIB. 2013-01-07 19:33:09 +01:00
Andrew Talbot 1a45569f72 d3dx9_36: Avoid signed-unsigned integer comparisons. 2013-01-04 11:59:32 +01:00
Christian Costa dabde6a04f d3dx9_36: Check proper signature for DIB files. 2012-12-27 18:47:54 +01:00
Józef Kucia 4f50e751e1 d3dx9: A simple copy isn't enough when a color key is provided. 2012-10-29 10:47:04 +01:00
Józef Kucia 08a5dbbb8e d3dx9: Introduce a function for copying pixels. 2012-10-29 10:47:03 +01:00
Józef Kucia a4df391976 d3dx9: Rename point_filter_simple_data to point_filter_argb_pixels. 2012-10-29 10:47:03 +01:00
Józef Kucia a513da063f d3dx9: Rename copy_simple_data to convert_argb_pixels. 2012-10-29 10:47:03 +01:00
Józef Kucia 84935d4312 d3dx9: Introduce a separate pixel format type for compressed pixel formats. 2012-10-23 12:07:47 +02:00
Gerald Pfeifer f807666d2b d3dx9_36: Fix initialization of header in save_dds_surface_to_memory. save_dds_surface_to_memory. 2012-09-26 11:00:06 +02:00
Christian Costa 12d11833f7 d3dx9_36: Cube texture can be loaded as a simple texture. The first face texture is taken in that case. 2012-09-24 22:27:42 +02:00
Józef Kucia 934293c1ec d3dx9: Implement conversion from D3DFORMAT to DDS pixel format for RGB pixel formats. 2012-09-24 22:27:29 +02:00
Józef Kucia bf4201ea58 d3dx9: Implement the support for saving a surface to a DDS file. 2012-09-24 22:27:29 +02:00
Józef Kucia 8f00a63161 d3dx9: Use 4 spaces per indent level in get_image_info_from_dds(). 2012-09-24 22:27:29 +02:00
Józef Kucia 00ea54f64f d3dx9: Introduce a function for calculating the expected size of a DDS file. 2012-09-24 22:27:29 +02:00
Rico Schüller 8da8811615 d3dx9: Remove PixelFormatDesc typedef. 2012-09-03 15:51:57 +02:00
Rico Schüller 97ef9f9322 d3dx9: Add some traces to D3DXLoadSurfaceFromMemory(). 2012-08-28 20:24:18 +02:00
Jacek Caban 434b696c46 Fixed remaining wrong iface call helpers. 2012-08-28 14:41:12 +02:00
Józef Kucia e8bfaf1727 d3dx9: Use structure to pass volume size to pixel format conversion functions. 2012-07-16 16:56:08 +02:00