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
b00c2979
Commit
b00c2979
authored
Jan 10, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Jan 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Support 8-bit RGB (as opposed to BGR) bitfields bitmaps.
parent
d9fb1a4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
bmpdecode.c
dlls/windowscodecs/bmpdecode.c
+22
-0
No files found.
dlls/windowscodecs/bmpdecode.c
View file @
b00c2979
...
...
@@ -399,6 +399,27 @@ fail:
return
hr
;
}
static
HRESULT
BmpFrameDecode_ReadRGB8
(
BmpDecoder
*
This
)
{
HRESULT
hr
;
UINT
width
,
height
;
hr
=
IWICBitmapFrameDecode_GetSize
((
IWICBitmapFrameDecode
*
)
&
This
->
lpFrameVtbl
,
&
width
,
&
height
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
BmpFrameDecode_ReadUncompressed
(
This
);
}
if
(
SUCCEEDED
(
hr
))
{
reverse_bgr8
(
This
->
bitsperpixel
/
8
,
This
->
imagedatastart
,
width
,
height
,
This
->
stride
);
}
return
hr
;
}
static
HRESULT
ReadByte
(
IStream
*
stream
,
BYTE
*
buffer
,
ULONG
buffer_size
,
ULONG
*
cursor
,
ULONG
*
bytesread
,
BYTE
*
result
)
{
...
...
@@ -705,6 +726,7 @@ static const struct bitfields_format bitfields_formats[] = {
{
16
,
0xf800
,
0x7e0
,
0x1f
,
0
,
&
GUID_WICPixelFormat16bppBGR565
,
BmpFrameDecode_ReadUncompressed
},
{
32
,
0xff0000
,
0xff00
,
0xff
,
0
,
&
GUID_WICPixelFormat32bppBGR
,
BmpFrameDecode_ReadUncompressed
},
{
32
,
0xff0000
,
0xff00
,
0xff
,
0xff000000
,
&
GUID_WICPixelFormat32bppBGRA
,
BmpFrameDecode_ReadUncompressed
},
{
32
,
0xff
,
0xff00
,
0xff0000
,
0
,
&
GUID_WICPixelFormat32bppBGR
,
BmpFrameDecode_ReadRGB8
},
{
0
}
};
...
...
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