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
4664116a
Commit
4664116a
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 Initialize for the BMP frame encoder.
parent
8cfc5bef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
bmpencode.c
dlls/windowscodecs/bmpencode.c
+10
-2
No files found.
dlls/windowscodecs/bmpencode.c
View file @
4664116a
...
...
@@ -39,6 +39,7 @@ typedef struct BmpFrameEncode {
const
IWICBitmapFrameEncodeVtbl
*
lpVtbl
;
LONG
ref
;
IStream
*
stream
;
BOOL
initialized
;
}
BmpFrameEncode
;
static
HRESULT
WINAPI
BmpFrameEncode_QueryInterface
(
IWICBitmapFrameEncode
*
iface
,
REFIID
iid
,
...
...
@@ -93,8 +94,14 @@ static ULONG WINAPI BmpFrameEncode_Release(IWICBitmapFrameEncode *iface)
static
HRESULT
WINAPI
BmpFrameEncode_Initialize
(
IWICBitmapFrameEncode
*
iface
,
IPropertyBag2
*
pIEncoderOptions
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pIEncoderOptions
);
return
E_NOTIMPL
;
BmpFrameEncode
*
This
=
(
BmpFrameEncode
*
)
iface
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pIEncoderOptions
);
if
(
This
->
initialized
)
return
WINCODEC_ERR_WRONGSTATE
;
This
->
initialized
=
TRUE
;
return
S_OK
;
}
static
HRESULT
WINAPI
BmpFrameEncode_SetSize
(
IWICBitmapFrameEncode
*
iface
,
...
...
@@ -319,6 +326,7 @@ static HRESULT WINAPI BmpEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
encode
->
ref
=
2
;
IStream_AddRef
(
This
->
stream
);
encode
->
stream
=
This
->
stream
;
encode
->
initialized
=
FALSE
;
*
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