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
eaf61d83
Commit
eaf61d83
authored
Apr 05, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement TiffFrameEncode_SetSize.
parent
3c8edfe9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
tiffformat.c
dlls/windowscodecs/tiffformat.c
+20
-2
No files found.
dlls/windowscodecs/tiffformat.c
View file @
eaf61d83
...
...
@@ -1164,6 +1164,7 @@ typedef struct TiffFrameEncode {
BOOL
initialized
;
BOOL
info_written
;
const
struct
tiff_encode_format
*
format
;
UINT
width
,
height
;
}
TiffFrameEncode
;
static
inline
TiffFrameEncode
*
impl_from_IWICBitmapFrameEncode
(
IWICBitmapFrameEncode
*
iface
)
...
...
@@ -1244,8 +1245,23 @@ static HRESULT WINAPI TiffFrameEncode_Initialize(IWICBitmapFrameEncode *iface,
static
HRESULT
WINAPI
TiffFrameEncode_SetSize
(
IWICBitmapFrameEncode
*
iface
,
UINT
uiWidth
,
UINT
uiHeight
)
{
FIXME
(
"(%p,%u,%u): stub
\n
"
,
iface
,
uiWidth
,
uiHeight
);
return
E_NOTIMPL
;
TiffFrameEncode
*
This
=
impl_from_IWICBitmapFrameEncode
(
iface
);
TRACE
(
"(%p,%u,%u)
\n
"
,
iface
,
uiWidth
,
uiHeight
);
EnterCriticalSection
(
&
This
->
parent
->
lock
);
if
(
!
This
->
initialized
||
This
->
info_written
)
{
LeaveCriticalSection
(
&
This
->
parent
->
lock
);
return
WINCODEC_ERR_WRONGSTATE
;
}
This
->
width
=
uiWidth
;
This
->
height
=
uiHeight
;
LeaveCriticalSection
(
&
This
->
parent
->
lock
);
return
S_OK
;
}
static
HRESULT
WINAPI
TiffFrameEncode_SetResolution
(
IWICBitmapFrameEncode
*
iface
,
...
...
@@ -1513,6 +1529,8 @@ static HRESULT WINAPI TiffEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
result
->
initialized
=
FALSE
;
result
->
info_written
=
FALSE
;
result
->
format
=
NULL
;
result
->
width
=
0
;
result
->
height
=
0
;
IWICBitmapEncoder_AddRef
(
iface
);
*
ppIFrameEncode
=
&
result
->
IWICBitmapFrameEncode_iface
;
...
...
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