Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e4986fc9
Commit
e4986fc9
authored
Apr 05, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement TiffFrameEncode_Commit.
parent
a0207c88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
tiffformat.c
dlls/windowscodecs/tiffformat.c
+22
-2
No files found.
dlls/windowscodecs/tiffformat.c
View file @
e4986fc9
...
...
@@ -1167,6 +1167,7 @@ typedef struct TiffFrameEncode {
/* fields below are protected by parent->lock */
BOOL
initialized
;
BOOL
info_written
;
BOOL
committed
;
const
struct
tiff_encode_format
*
format
;
UINT
width
,
height
;
double
xres
,
yres
;
...
...
@@ -1513,8 +1514,26 @@ static HRESULT WINAPI TiffFrameEncode_WriteSource(IWICBitmapFrameEncode *iface,
static
HRESULT
WINAPI
TiffFrameEncode_Commit
(
IWICBitmapFrameEncode
*
iface
)
{
FIXME
(
"(%p): stub
\n
"
,
iface
);
return
E_NOTIMPL
;
TiffFrameEncode
*
This
=
impl_from_IWICBitmapFrameEncode
(
iface
);
TRACE
(
"(%p)
\n
"
,
iface
);
EnterCriticalSection
(
&
This
->
parent
->
lock
);
if
(
!
This
->
info_written
||
This
->
lines_written
!=
This
->
height
||
This
->
committed
)
{
LeaveCriticalSection
(
&
This
->
parent
->
lock
);
return
WINCODEC_ERR_WRONGSTATE
;
}
/* libtiff will commit the data when creating a new frame or closing the file */
This
->
committed
=
TRUE
;
This
->
parent
->
num_frames_committed
++
;
LeaveCriticalSection
(
&
This
->
parent
->
lock
);
return
S_OK
;
}
static
HRESULT
WINAPI
TiffFrameEncode_GetMetadataQueryWriter
(
IWICBitmapFrameEncode
*
iface
,
...
...
@@ -1701,6 +1720,7 @@ static HRESULT WINAPI TiffEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
result
->
parent
=
This
;
result
->
initialized
=
FALSE
;
result
->
info_written
=
FALSE
;
result
->
committed
=
FALSE
;
result
->
format
=
NULL
;
result
->
width
=
0
;
result
->
height
=
0
;
...
...
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