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
e324b8ef
Commit
e324b8ef
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 SetSize for the PNG encoder.
parent
a2214f04
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
pngformat.c
dlls/windowscodecs/pngformat.c
+12
-2
No files found.
dlls/windowscodecs/pngformat.c
View file @
e324b8ef
...
...
@@ -699,6 +699,7 @@ typedef struct PngEncoder {
BOOL
frame_initialized
;
const
struct
png_pixelformat
*
format
;
BOOL
info_written
;
UINT
width
,
height
;
}
PngEncoder
;
static
inline
PngEncoder
*
encoder_from_frame
(
IWICBitmapFrameEncode
*
iface
)
...
...
@@ -757,8 +758,15 @@ static HRESULT WINAPI PngFrameEncode_Initialize(IWICBitmapFrameEncode *iface,
static
HRESULT
WINAPI
PngFrameEncode_SetSize
(
IWICBitmapFrameEncode
*
iface
,
UINT
uiWidth
,
UINT
uiHeight
)
{
FIXME
(
"(%p,%u,%u): stub
\n
"
,
iface
,
uiWidth
,
uiHeight
);
return
E_NOTIMPL
;
PngEncoder
*
This
=
encoder_from_frame
(
iface
);
TRACE
(
"(%p,%u,%u)
\n
"
,
iface
,
uiWidth
,
uiHeight
);
if
(
!
This
->
frame_initialized
||
This
->
info_written
)
return
WINCODEC_ERR_WRONGSTATE
;
This
->
width
=
uiWidth
;
This
->
height
=
uiHeight
;
return
S_OK
;
}
static
HRESULT
WINAPI
PngFrameEncode_SetResolution
(
IWICBitmapFrameEncode
*
iface
,
...
...
@@ -1089,6 +1097,8 @@ HRESULT PngEncoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv)
This
->
frame_initialized
=
FALSE
;
This
->
format
=
NULL
;
This
->
info_written
=
FALSE
;
This
->
width
=
0
;
This
->
height
=
0
;
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