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
64146fa9
Commit
64146fa9
authored
Sep 23, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Support more formats in the BMP encoder.
parent
48cf4536
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
bmpencode.c
dlls/windowscodecs/bmpencode.c
+20
-0
No files found.
dlls/windowscodecs/bmpencode.c
View file @
64146fa9
...
...
@@ -47,6 +47,13 @@ struct bmp_pixelformat {
static
const
struct
bmp_pixelformat
formats
[]
=
{
{
&
GUID_WICPixelFormat24bppBGR
,
24
,
BI_RGB
},
{
&
GUID_WICPixelFormat16bppBGR555
,
16
,
BI_RGB
},
{
&
GUID_WICPixelFormat16bppBGR565
,
16
,
BI_BITFIELDS
,
0xf800
,
0x7e0
,
0x1f
,
0
},
{
&
GUID_WICPixelFormat32bppBGR
,
32
,
BI_RGB
},
#if 0
/* Windows doesn't seem to support this one. */
{&GUID_WICPixelFormat32bppBGRA, 32, BI_BITFIELDS, 0xff0000, 0xff00, 0xff, 0xff000000},
#endif
{
NULL
}
};
...
...
@@ -338,6 +345,19 @@ static HRESULT WINAPI BmpFrameEncode_Commit(IWICBitmapFrameEncode *iface)
bih
.
bV5ClrUsed
=
0
;
bih
.
bV5ClrImportant
=
0
;
if
(
This
->
format
->
compression
==
BI_BITFIELDS
)
{
if
(
This
->
format
->
alphamask
)
bih
.
bV5Size
=
info_size
=
sizeof
(
BITMAPV4HEADER
);
else
info_size
=
sizeof
(
BITMAPINFOHEADER
)
+
12
;
bih
.
bV5RedMask
=
This
->
format
->
redmask
;
bih
.
bV5GreenMask
=
This
->
format
->
greenmask
;
bih
.
bV5BlueMask
=
This
->
format
->
bluemask
;
bih
.
bV5AlphaMask
=
This
->
format
->
alphamask
;
bih
.
bV5AlphaMask
=
LCS_DEVICE_RGB
;
}
bfh
.
bfSize
=
sizeof
(
BITMAPFILEHEADER
)
+
info_size
+
bih
.
bV5SizeImage
;
bfh
.
bfOffBits
=
sizeof
(
BITMAPFILEHEADER
)
+
info_size
;
...
...
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