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
3db6ef49
Commit
3db6ef49
authored
Sep 23, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement Commit for the PNG encoder.
parent
e7eadeec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
pngformat.c
dlls/windowscodecs/pngformat.c
+11
-2
No files found.
dlls/windowscodecs/pngformat.c
View file @
3db6ef49
...
...
@@ -715,6 +715,7 @@ typedef struct PngEncoder {
double
xres
,
yres
;
UINT
lines_written
;
BOOL
frame_committed
;
BOOL
committed
;
}
PngEncoder
;
static
inline
PngEncoder
*
encoder_from_frame
(
IWICBitmapFrameEncode
*
iface
)
...
...
@@ -1195,8 +1196,15 @@ static HRESULT WINAPI PngEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
static
HRESULT
WINAPI
PngEncoder_Commit
(
IWICBitmapEncoder
*
iface
)
{
TRACE
(
"(%p): stub
\n
"
,
iface
);
return
E_NOTIMPL
;
PngEncoder
*
This
=
(
PngEncoder
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
iface
);
if
(
!
This
->
frame_committed
||
This
->
committed
)
return
WINCODEC_ERR_WRONGSTATE
;
This
->
committed
=
TRUE
;
return
S_OK
;
}
static
HRESULT
WINAPI
PngEncoder_GetMetadataQueryWriter
(
IWICBitmapEncoder
*
iface
,
...
...
@@ -1258,6 +1266,7 @@ HRESULT PngEncoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv)
This
->
yres
=
0
.
0
;
This
->
lines_written
=
0
;
This
->
frame_committed
=
FALSE
;
This
->
committed
=
FALSE
;
ret
=
IUnknown_QueryInterface
((
IUnknown
*
)
This
,
iid
,
ppv
);
IUnknown_Release
((
IUnknown
*
)
This
);
...
...
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