Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a513da06
Commit
a513da06
authored
Oct 28, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
Oct 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Rename copy_simple_data to convert_argb_pixels.
parent
5059da9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
d3dx9_36_private.h
dlls/d3dx9_36/d3dx9_36_private.h
+4
-3
surface.c
dlls/d3dx9_36/surface.c
+6
-6
volume.c
dlls/d3dx9_36/volume.c
+1
-1
No files found.
dlls/d3dx9_36/d3dx9_36_private.h
View file @
a513da06
...
...
@@ -72,9 +72,10 @@ HRESULT write_buffer_to_file(const WCHAR *filename, ID3DXBuffer *buffer) DECLSPE
const
struct
pixel_format_desc
*
get_format_info
(
D3DFORMAT
format
)
DECLSPEC_HIDDEN
;
const
struct
pixel_format_desc
*
get_format_info_idx
(
int
idx
)
DECLSPEC_HIDDEN
;
void
copy_simple_data
(
const
BYTE
*
src
,
UINT
src_row_pitch
,
UINT
src_slice_pitch
,
struct
volume
*
src_size
,
const
struct
pixel_format_desc
*
src_format
,
BYTE
*
dst
,
UINT
dst_row_pitch
,
UINT
dst_slice_pitch
,
struct
volume
*
dst_size
,
const
struct
pixel_format_desc
*
dst_format
,
D3DCOLOR
color_key
)
DECLSPEC_HIDDEN
;
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
)
DECLSPEC_HIDDEN
;
void
point_filter_simple_data
(
const
BYTE
*
src
,
UINT
src_row_pitch
,
UINT
src_slice_pitch
,
struct
volume
*
src_size
,
const
struct
pixel_format_desc
*
src_format
,
BYTE
*
dst
,
UINT
dst_row_pitch
,
UINT
dst_slice_pitch
,
struct
volume
*
dst_size
,
const
struct
pixel_format_desc
*
dst_format
,
D3DCOLOR
color_key
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3dx9_36/surface.c
View file @
a513da06
...
...
@@ -504,7 +504,7 @@ static HRESULT save_dds_surface_to_memory(ID3DXBuffer **dst_buffer, IDirect3DSur
volume
.
width
=
src_desc
.
Width
;
volume
.
height
=
src_desc
.
Height
;
volume
.
depth
=
1
;
co
py_simple_data
(
locked_rect
.
pBits
,
locked_rect
.
Pitch
,
0
,
&
volume
,
pixel_format
,
co
nvert_argb_pixels
(
locked_rect
.
pBits
,
locked_rect
.
Pitch
,
0
,
&
volume
,
pixel_format
,
pixels
,
dst_pitch
,
0
,
&
volume
,
pixel_format
,
0
);
IDirect3DSurface9_UnlockRect
(
src_surface
);
...
...
@@ -1355,16 +1355,16 @@ static void format_from_vec4(const struct pixel_format_desc *format, const struc
}
/************************************************************
* co
py_simple_data
* co
nvert_argb_pixels
*
* Copies the source buffer to the destination buffer, performing
* any necessary format conversion and color keying.
* Pixels outsize the source rect are blacked out.
* Works only for ARGB formats with 1 - 4 bytes per pixel.
*/
void
co
py_simple_data
(
const
BYTE
*
src
,
UINT
src_row_pitch
,
UINT
src_slice_pitch
,
struct
volume
*
src_size
,
void
co
nvert_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
,
struct
volume
*
dst_size
,
const
struct
pixel_format_desc
*
dst_format
,
D3DCOLOR
color_key
)
const
struct
volume
*
dst_size
,
const
struct
pixel_format_desc
*
dst_format
,
D3DCOLOR
color_key
)
{
struct
argb_conversion_info
conv_info
,
ck_conv_info
;
const
struct
pixel_format_desc
*
ck_format
=
NULL
;
...
...
@@ -1691,7 +1691,7 @@ HRESULT WINAPI D3DXLoadSurfaceFromMemory(IDirect3DSurface9 *dst_surface,
if
((
filter
&
0xf
)
==
D3DX_FILTER_NONE
)
{
co
py_simple_data
(
src_memory
,
src_pitch
,
0
,
&
src_size
,
srcformatdesc
,
co
nvert_argb_pixels
(
src_memory
,
src_pitch
,
0
,
&
src_size
,
srcformatdesc
,
lockrect
.
pBits
,
lockrect
.
Pitch
,
0
,
&
dst_size
,
destformatdesc
,
color_key
);
}
else
/* if ((filter & 0xf) == D3DX_FILTER_POINT) */
...
...
@@ -1976,7 +1976,7 @@ HRESULT WINAPI D3DXSaveSurfaceToFileInMemory(ID3DXBuffer **dst_buffer, D3DXIMAGE
hr
=
IDirect3DSurface9_LockRect
(
src_surface
,
&
locked_rect
,
src_rect
,
D3DLOCK_READONLY
);
if
(
SUCCEEDED
(
hr
))
{
co
py_simple_data
(
locked_rect
.
pBits
,
locked_rect
.
Pitch
,
0
,
&
size
,
src_format_desc
,
co
nvert_argb_pixels
(
locked_rect
.
pBits
,
locked_rect
.
Pitch
,
0
,
&
size
,
src_format_desc
,
dst_data
,
dst_pitch
,
0
,
&
size
,
dst_format_desc
,
0
);
IDirect3DSurface9_UnlockRect
(
src_surface
);
}
...
...
dlls/d3dx9_36/volume.c
View file @
a513da06
...
...
@@ -212,7 +212,7 @@ HRESULT WINAPI D3DXLoadVolumeFromMemory(IDirect3DVolume9 *dst_volume,
if
((
filter
&
0xf
)
==
D3DX_FILTER_NONE
)
{
co
py_simple_data
(
src_memory
,
src_row_pitch
,
src_slice_pitch
,
&
src_size
,
src_format_desc
,
co
nvert_argb_pixels
(
src_memory
,
src_row_pitch
,
src_slice_pitch
,
&
src_size
,
src_format_desc
,
locked_box
.
pBits
,
locked_box
.
RowPitch
,
locked_box
.
SlicePitch
,
&
dst_size
,
dst_format_desc
,
color_key
);
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment