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
59810aa4
Commit
59810aa4
authored
Aug 13, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Register the PNG decoder.
parent
568c7390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
regsvr.c
dlls/windowscodecs/regsvr.c
+35
-1
No files found.
dlls/windowscodecs/regsvr.c
View file @
59810aa4
...
...
@@ -777,7 +777,7 @@ static struct regsvr_coclass const coclass_list[] = {
/***********************************************************************
* decoder list
*/
static
const
BYTE
mask_all
[]
=
{
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
};
static
const
BYTE
mask_all
[]
=
{
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
};
static
const
BYTE
bmp_magic
[]
=
{
0x42
,
0x4d
};
...
...
@@ -838,6 +838,30 @@ static struct decoder_pattern const jpeg_patterns[] = {
{
0
}
};
static
const
BYTE
png_magic
[]
=
{
137
,
80
,
78
,
71
,
13
,
10
,
26
,
10
};
static
GUID
const
*
const
png_formats
[]
=
{
&
GUID_WICPixelFormatBlackWhite
,
&
GUID_WICPixelFormat2bppGray
,
&
GUID_WICPixelFormat4bppGray
,
&
GUID_WICPixelFormat8bppGray
,
&
GUID_WICPixelFormat16bppGray
,
&
GUID_WICPixelFormat32bppBGRA
,
&
GUID_WICPixelFormat64bppRGBA
,
&
GUID_WICPixelFormat1bppIndexed
,
&
GUID_WICPixelFormat2bppIndexed
,
&
GUID_WICPixelFormat4bppIndexed
,
&
GUID_WICPixelFormat8bppIndexed
,
&
GUID_WICPixelFormat24bppBGR
,
&
GUID_WICPixelFormat48bppRGB
,
NULL
};
static
struct
decoder_pattern
const
png_patterns
[]
=
{
{
8
,
0
,
png_magic
,
mask_all
,
0
},
{
0
}
};
static
struct
regsvr_decoder
const
decoder_list
[]
=
{
{
&
CLSID_WICBmpDecoder
,
"The Wine Project"
,
...
...
@@ -879,6 +903,16 @@ static struct regsvr_decoder const decoder_list[] = {
jpeg_formats
,
jpeg_patterns
},
{
&
CLSID_WICPngDecoder
,
"The Wine Project"
,
"PNG Decoder"
,
"1.0.0.0"
,
&
GUID_VendorMicrosoft
,
"image/png"
,
".png"
,
png_formats
,
png_patterns
},
{
NULL
}
/* list terminator */
};
...
...
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