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
2cad6631
Commit
2cad6631
authored
Mar 29, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement TiffFrameEncode_Initialize.
parent
c876357c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
tiffformat.c
dlls/windowscodecs/tiffformat.c
+19
-2
No files found.
dlls/windowscodecs/tiffformat.c
View file @
2cad6631
...
...
@@ -1136,6 +1136,8 @@ typedef struct TiffFrameEncode {
IWICBitmapFrameEncode
IWICBitmapFrameEncode_iface
;
LONG
ref
;
TiffEncoder
*
parent
;
/* fields below are protected by parent->lock */
BOOL
initialized
;
}
TiffFrameEncode
;
static
inline
TiffFrameEncode
*
impl_from_IWICBitmapFrameEncode
(
IWICBitmapFrameEncode
*
iface
)
...
...
@@ -1195,8 +1197,22 @@ static ULONG WINAPI TiffFrameEncode_Release(IWICBitmapFrameEncode *iface)
static
HRESULT
WINAPI
TiffFrameEncode_Initialize
(
IWICBitmapFrameEncode
*
iface
,
IPropertyBag2
*
pIEncoderOptions
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pIEncoderOptions
);
return
E_NOTIMPL
;
TiffFrameEncode
*
This
=
impl_from_IWICBitmapFrameEncode
(
iface
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pIEncoderOptions
);
EnterCriticalSection
(
&
This
->
parent
->
lock
);
if
(
This
->
initialized
)
{
LeaveCriticalSection
(
&
This
->
parent
->
lock
);
return
WINCODEC_ERR_WRONGSTATE
;
}
This
->
initialized
=
TRUE
;
LeaveCriticalSection
(
&
This
->
parent
->
lock
);
return
S_OK
;
}
static
HRESULT
WINAPI
TiffFrameEncode_SetSize
(
IWICBitmapFrameEncode
*
iface
,
...
...
@@ -1443,6 +1459,7 @@ static HRESULT WINAPI TiffEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
result
->
IWICBitmapFrameEncode_iface
.
lpVtbl
=
&
TiffFrameEncode_Vtbl
;
result
->
ref
=
1
;
result
->
parent
=
This
;
result
->
initialized
=
FALSE
;
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