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
07fd33d1
Commit
07fd33d1
authored
Aug 11, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement SetSize for the BMP frame encoder.
parent
4664116a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
bmpencode.c
dlls/windowscodecs/bmpencode.c
+14
-2
No files found.
dlls/windowscodecs/bmpencode.c
View file @
07fd33d1
...
...
@@ -40,6 +40,8 @@ typedef struct BmpFrameEncode {
LONG
ref
;
IStream
*
stream
;
BOOL
initialized
;
UINT
width
,
height
;
BYTE
*
bits
;
}
BmpFrameEncode
;
static
HRESULT
WINAPI
BmpFrameEncode_QueryInterface
(
IWICBitmapFrameEncode
*
iface
,
REFIID
iid
,
...
...
@@ -107,8 +109,15 @@ static HRESULT WINAPI BmpFrameEncode_Initialize(IWICBitmapFrameEncode *iface,
static
HRESULT
WINAPI
BmpFrameEncode_SetSize
(
IWICBitmapFrameEncode
*
iface
,
UINT
uiWidth
,
UINT
uiHeight
)
{
FIXME
(
"(%p,%u,%u): stub
\n
"
,
iface
,
uiWidth
,
uiHeight
);
return
E_NOTIMPL
;
BmpFrameEncode
*
This
=
(
BmpFrameEncode
*
)
iface
;
TRACE
(
"(%p,%u,%u)
\n
"
,
iface
,
uiWidth
,
uiHeight
);
if
(
!
This
->
initialized
||
This
->
bits
)
return
WINCODEC_ERR_WRONGSTATE
;
This
->
width
=
uiWidth
;
This
->
height
=
uiHeight
;
return
S_OK
;
}
static
HRESULT
WINAPI
BmpFrameEncode_SetResolution
(
IWICBitmapFrameEncode
*
iface
,
...
...
@@ -327,6 +336,9 @@ static HRESULT WINAPI BmpEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
IStream_AddRef
(
This
->
stream
);
encode
->
stream
=
This
->
stream
;
encode
->
initialized
=
FALSE
;
encode
->
width
=
0
;
encode
->
height
=
0
;
encode
->
bits
=
NULL
;
*
ppIFrameEncode
=
(
IWICBitmapFrameEncode
*
)
encode
;
This
->
frame
=
(
IWICBitmapFrameEncode
*
)
encode
;
...
...
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