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
c30d165e
Commit
c30d165e
authored
May 29, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Add support for decoding 48-bit TIFF images.
parent
467f232f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
regsvr.c
dlls/windowscodecs/regsvr.c
+1
-0
tiffformat.c
dlls/windowscodecs/tiffformat.c
+17
-9
No files found.
dlls/windowscodecs/regsvr.c
View file @
c30d165e
...
...
@@ -895,6 +895,7 @@ static GUID const * const tiff_formats[] = {
&
GUID_WICPixelFormat32bppBGR
,
&
GUID_WICPixelFormat32bppBGRA
,
&
GUID_WICPixelFormat32bppPBGRA
,
&
GUID_WICPixelFormat48bppRGB
,
NULL
};
...
...
dlls/windowscodecs/tiffformat.c
View file @
c30d165e
...
...
@@ -257,9 +257,11 @@ static HRESULT tiff_get_decode_info(TIFF *tiff, tiff_decode_info *decode_info)
}
break
;
case
2
:
/* RGB */
if
(
bps
!=
8
)
ret
=
pTIFFGetField
(
tiff
,
TIFFTAG_PLANARCONFIG
,
&
planar
);
if
(
!
ret
)
planar
=
1
;
if
(
planar
!=
1
)
{
FIXME
(
"unhandled
RGB bit count %u
\n
"
,
bps
);
FIXME
(
"unhandled
planar configuration %u
\n
"
,
planar
);
return
E_FAIL
;
}
ret
=
pTIFFGetField
(
tiff
,
TIFFTAG_SAMPLESPERPIXEL
,
&
samples
);
...
...
@@ -268,16 +270,22 @@ static HRESULT tiff_get_decode_info(TIFF *tiff, tiff_decode_info *decode_info)
FIXME
(
"unhandled RGB sample count %u
\n
"
,
samples
);
return
E_FAIL
;
}
ret
=
pTIFFGetField
(
tiff
,
TIFFTAG_PLANARCONFIG
,
&
planar
);
if
(
!
ret
)
planar
=
1
;
if
(
planar
!=
1
)
decode_info
->
bpp
=
bps
*
samples
;
switch
(
bps
)
{
FIXME
(
"unhandled planar configuration %u
\n
"
,
planar
);
case
8
:
decode_info
->
reverse_bgr
=
1
;
decode_info
->
format
=
&
GUID_WICPixelFormat24bppBGR
;
break
;
case
16
:
decode_info
->
format
=
&
GUID_WICPixelFormat48bppRGB
;
break
;
default:
FIXME
(
"unhandled RGB bit count %u
\n
"
,
bps
);
return
E_FAIL
;
}
decode_info
->
bpp
=
bps
*
samples
;
decode_info
->
reverse_bgr
=
1
;
decode_info
->
format
=
&
GUID_WICPixelFormat24bppBGR
;
break
;
case
3
:
/* RGB Palette */
decode_info
->
indexed
=
1
;
...
...
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