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
d24a4212
Commit
d24a4212
authored
Mar 08, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add support for decoding TIFF images.
parent
738059ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
image.c
dlls/gdiplus/image.c
+32
-0
No files found.
dlls/gdiplus/image.c
View file @
d24a4212
...
...
@@ -2459,6 +2459,11 @@ static GpStatus decode_image_gif(IStream* stream, REFCLSID clsid, GpImage **imag
return
decode_image_wic
(
stream
,
&
CLSID_WICGifDecoder
,
image
);
}
static
GpStatus
decode_image_tiff
(
IStream
*
stream
,
REFCLSID
clsid
,
GpImage
**
image
)
{
return
decode_image_wic
(
stream
,
&
CLSID_WICTiffDecoder
,
image
);
}
static
GpStatus
decode_image_olepicture_metafile
(
IStream
*
stream
,
REFCLSID
clsid
,
GpImage
**
image
)
{
IPicture
*
pic
;
...
...
@@ -2505,6 +2510,7 @@ typedef enum {
BMP
,
JPEG
,
GIF
,
TIFF
,
EMF
,
WMF
,
PNG
,
...
...
@@ -2906,6 +2912,13 @@ static const WCHAR gif_format[] = {'G','I','F',0};
static
const
BYTE
gif_sig_pattern
[
4
]
=
"GIF8"
;
static
const
BYTE
gif_sig_mask
[]
=
{
0xFF
,
0xFF
,
0xFF
,
0xFF
};
static
const
WCHAR
tiff_codecname
[]
=
{
'B'
,
'u'
,
'i'
,
'l'
,
't'
,
'-'
,
'i'
,
'n'
,
' '
,
'T'
,
'I'
,
'F'
,
'F'
,
0
};
static
const
WCHAR
tiff_extension
[]
=
{
'*'
,
'.'
,
'T'
,
'I'
,
'F'
,
'F'
,
';'
,
'*'
,
'.'
,
'T'
,
'I'
,
'F'
,
0
};
static
const
WCHAR
tiff_mimetype
[]
=
{
'i'
,
'm'
,
'a'
,
'g'
,
'e'
,
'/'
,
't'
,
'i'
,
'f'
,
'f'
,
0
};
static
const
WCHAR
tiff_format
[]
=
{
'T'
,
'I'
,
'F'
,
'F'
,
0
};
static
const
BYTE
tiff_sig_pattern
[]
=
{
0x49
,
0x49
,
42
,
0
,
0x4d
,
0x4d
,
0
,
42
};
static
const
BYTE
tiff_sig_mask
[]
=
{
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
};
static
const
WCHAR
emf_codecname
[]
=
{
'B'
,
'u'
,
'i'
,
'l'
,
't'
,
'-'
,
'i'
,
'n'
,
' '
,
'E'
,
'M'
,
'F'
,
0
};
static
const
WCHAR
emf_extension
[]
=
{
'*'
,
'.'
,
'E'
,
'M'
,
'F'
,
0
};
static
const
WCHAR
emf_mimetype
[]
=
{
'i'
,
'm'
,
'a'
,
'g'
,
'e'
,
'/'
,
'x'
,
'-'
,
'e'
,
'm'
,
'f'
,
0
};
...
...
@@ -2993,6 +3006,25 @@ static const struct image_codec codecs[NUM_CODECS] = {
decode_image_gif
},
{
{
/* TIFF */
/* Clsid */
{
0x557cf405
,
0x1a04
,
0x11d3
,
{
0x9a
,
0x73
,
0x0
,
0x0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
}
},
/* FormatID */
{
0xb96b3cb1U
,
0x0728U
,
0x11d3U
,
{
0x9d
,
0x7b
,
0x00
,
0x00
,
0xf8
,
0x1e
,
0xf3
,
0x2e
}
},
/* CodecName */
tiff_codecname
,
/* DllName */
NULL
,
/* FormatDescription */
tiff_format
,
/* FilenameExtension */
tiff_extension
,
/* MimeType */
tiff_mimetype
,
/* Flags */
ImageCodecFlagsDecoder
|
ImageCodecFlagsSupportBitmap
|
ImageCodecFlagsBuiltin
,
/* Version */
1
,
/* SigCount */
2
,
/* SigSize */
4
,
/* SigPattern */
tiff_sig_pattern
,
/* SigMask */
tiff_sig_mask
,
},
NULL
,
decode_image_tiff
},
{
{
/* EMF */
/* Clsid */
{
0x557cf403
,
0x1a04
,
0x11d3
,
{
0x9a
,
0x73
,
0x0
,
0x0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
}
},
/* FormatID */
{
0xb96b3cacU
,
0x0728U
,
0x11d3U
,
{
0x9d
,
0x7b
,
0x00
,
0x00
,
0xf8
,
0x1e
,
0xf3
,
0x2e
}
},
...
...
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