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
1ce8a66e
Commit
1ce8a66e
authored
Jun 10, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement JpegEncoder_Frame_Initialize.
parent
7f302c81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
jpegformat.c
dlls/windowscodecs/jpegformat.c
+18
-2
No files found.
dlls/windowscodecs/jpegformat.c
View file @
1ce8a66e
...
...
@@ -710,6 +710,7 @@ typedef struct JpegEncoder {
struct
jpeg_destination_mgr
dest_mgr
;
int
initialized
;
int
frame_count
;
int
frame_initialized
;
IStream
*
stream
;
CRITICAL_SECTION
lock
;
BYTE
dest_buffer
[
1024
];
...
...
@@ -812,8 +813,22 @@ static ULONG WINAPI JpegEncoder_Frame_Release(IWICBitmapFrameEncode *iface)
static
HRESULT
WINAPI
JpegEncoder_Frame_Initialize
(
IWICBitmapFrameEncode
*
iface
,
IPropertyBag2
*
pIEncoderOptions
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pIEncoderOptions
);
return
E_NOTIMPL
;
JpegEncoder
*
This
=
impl_from_IWICBitmapFrameEncode
(
iface
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pIEncoderOptions
);
EnterCriticalSection
(
&
This
->
lock
);
if
(
This
->
frame_initialized
)
{
LeaveCriticalSection
(
&
This
->
lock
);
return
WINCODEC_ERR_WRONGSTATE
;
}
This
->
frame_initialized
=
TRUE
;
LeaveCriticalSection
(
&
This
->
lock
);
return
S_OK
;
}
static
HRESULT
WINAPI
JpegEncoder_Frame_SetSize
(
IWICBitmapFrameEncode
*
iface
,
...
...
@@ -1138,6 +1153,7 @@ HRESULT JpegEncoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv)
This
->
ref
=
1
;
This
->
initialized
=
0
;
This
->
frame_count
=
0
;
This
->
frame_initialized
=
0
;
This
->
stream
=
NULL
;
InitializeCriticalSection
(
&
This
->
lock
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": JpegEncoder.lock"
);
...
...
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