Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f515878c
Commit
f515878c
authored
Sep 13, 2017
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement IWICBitmapFrameEncode::SetPalette in BMP encoder.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
02870de5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
bmpencode.c
dlls/windowscodecs/bmpencode.c
+14
-3
No files found.
dlls/windowscodecs/bmpencode.c
View file @
f515878c
...
...
@@ -67,6 +67,8 @@ typedef struct BmpFrameEncode {
double
xres
,
yres
;
UINT
lineswritten
;
UINT
stride
;
WICColor
palette
[
256
];
UINT
colors
;
BOOL
committed
;
}
BmpFrameEncode
;
...
...
@@ -197,10 +199,18 @@ static HRESULT WINAPI BmpFrameEncode_SetColorContexts(IWICBitmapFrameEncode *ifa
}
static
HRESULT
WINAPI
BmpFrameEncode_SetPalette
(
IWICBitmapFrameEncode
*
iface
,
IWICPalette
*
p
IP
alette
)
IWICPalette
*
palette
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pIPalette
);
return
WINCODEC_ERR_UNSUPPORTEDOPERATION
;
BmpFrameEncode
*
This
=
impl_from_IWICBitmapFrameEncode
(
iface
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
palette
);
if
(
!
palette
)
return
E_INVALIDARG
;
if
(
!
This
->
initialized
)
return
WINCODEC_ERR_NOTINITIALIZED
;
return
IWICPalette_GetColors
(
palette
,
256
,
This
->
palette
,
&
This
->
colors
);
}
static
HRESULT
WINAPI
BmpFrameEncode_SetThumbnail
(
IWICBitmapFrameEncode
*
iface
,
...
...
@@ -520,6 +530,7 @@ static HRESULT WINAPI BmpEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
encode
->
xres
=
0
.
0
;
encode
->
yres
=
0
.
0
;
encode
->
lineswritten
=
0
;
encode
->
colors
=
0
;
encode
->
committed
=
FALSE
;
*
ppIFrameEncode
=
&
encode
->
IWICBitmapFrameEncode_iface
;
...
...
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