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
6afcb2eb
Commit
6afcb2eb
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 Initialize for the PNG frame encoder.
parent
049a2e0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
pngformat.c
dlls/windowscodecs/pngformat.c
+10
-2
No files found.
dlls/windowscodecs/pngformat.c
View file @
6afcb2eb
...
...
@@ -673,6 +673,7 @@ typedef struct PngEncoder {
png_structp
png_ptr
;
png_infop
info_ptr
;
UINT
frame_count
;
BOOL
frame_initialized
;
}
PngEncoder
;
static
inline
PngEncoder
*
encoder_from_frame
(
IWICBitmapFrameEncode
*
iface
)
...
...
@@ -718,8 +719,14 @@ static ULONG WINAPI PngFrameEncode_Release(IWICBitmapFrameEncode *iface)
static
HRESULT
WINAPI
PngFrameEncode_Initialize
(
IWICBitmapFrameEncode
*
iface
,
IPropertyBag2
*
pIEncoderOptions
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pIEncoderOptions
);
return
E_NOTIMPL
;
PngEncoder
*
This
=
encoder_from_frame
(
iface
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pIEncoderOptions
);
if
(
This
->
frame_initialized
)
return
WINCODEC_ERR_WRONGSTATE
;
This
->
frame_initialized
=
TRUE
;
return
S_OK
;
}
static
HRESULT
WINAPI
PngFrameEncode_SetSize
(
IWICBitmapFrameEncode
*
iface
,
...
...
@@ -1038,6 +1045,7 @@ HRESULT PngEncoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv)
This
->
info_ptr
=
NULL
;
This
->
stream
=
NULL
;
This
->
frame_count
=
0
;
This
->
frame_initialized
=
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