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
0ce1c796
Commit
0ce1c796
authored
May 29, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement TiffFrameDecode_CopyPalette.
parent
ad72ecbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
tiffformat.c
dlls/windowscodecs/tiffformat.c
+28
-2
No files found.
dlls/windowscodecs/tiffformat.c
View file @
0ce1c796
...
...
@@ -692,8 +692,34 @@ static HRESULT WINAPI TiffFrameDecode_GetResolution(IWICBitmapFrameDecode *iface
static
HRESULT
WINAPI
TiffFrameDecode_CopyPalette
(
IWICBitmapFrameDecode
*
iface
,
IWICPalette
*
pIPalette
)
{
FIXME
(
"(%p,%p)
\n
"
,
iface
,
pIPalette
);
return
E_NOTIMPL
;
TiffFrameDecode
*
This
=
(
TiffFrameDecode
*
)
iface
;
uint16
*
red
,
*
green
,
*
blue
;
WICColor
colors
[
256
];
int
color_count
,
ret
,
i
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pIPalette
);
color_count
=
1
<<
This
->
decode_info
.
bps
;
EnterCriticalSection
(
&
This
->
parent
->
lock
);
ret
=
pTIFFGetField
(
This
->
parent
->
tiff
,
TIFFTAG_COLORMAP
,
&
red
,
&
green
,
&
blue
);
LeaveCriticalSection
(
&
This
->
parent
->
lock
);
if
(
!
ret
)
{
WARN
(
"Couldn't read color map
\n
"
);
return
E_FAIL
;
}
for
(
i
=
0
;
i
<
color_count
;
i
++
)
{
colors
[
i
]
=
0xff000000
|
((
red
[
i
]
<<
8
)
&
0xff0000
)
|
(
green
[
i
]
&
0xff00
)
|
((
blue
[
i
]
>>
8
)
&
0xff
);
}
return
IWICPalette_InitializeCustom
(
pIPalette
,
colors
,
color_count
);
}
static
HRESULT
TiffFrameDecode_ReadTile
(
TiffFrameDecode
*
This
,
UINT
tile_x
,
UINT
tile_y
)
...
...
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