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
157480df
Commit
157480df
authored
Dec 27, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Use an iface instead of a vtbl pointer in IGetFrameImpl.
parent
61d84d68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
getframe.c
dlls/avifil32/getframe.c
+14
-9
No files found.
dlls/avifil32/getframe.c
View file @
157480df
...
...
@@ -62,7 +62,7 @@ static const struct IGetFrameVtbl igetframeVtbl = {
typedef
struct
_IGetFrameImpl
{
/* IUnknown stuff */
const
IGetFrameVtbl
*
lpVtbl
;
IGetFrame
IGetFrame_iface
;
LONG
ref
;
/* IGetFrame stuff */
...
...
@@ -92,6 +92,11 @@ typedef struct _IGetFrameImpl {
/***********************************************************************/
static
inline
IGetFrameImpl
*
impl_from_IGetFrame
(
IGetFrame
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IGetFrameImpl
,
IGetFrame_iface
);
}
static
void
AVIFILE_CloseCompressor
(
IGetFrameImpl
*
This
)
{
if
(
This
->
lpInFormat
!=
This
->
lpOutFormat
)
{
...
...
@@ -120,7 +125,7 @@ PGETFRAME AVIFILE_CreateGetFrame(PAVISTREAM pStream)
pg
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IGetFrameImpl
));
if
(
pg
!=
NULL
)
{
pg
->
lpVtbl
=
&
igetframeVtbl
;
pg
->
IGetFrame_iface
.
lpVtbl
=
&
igetframeVtbl
;
pg
->
ref
=
1
;
pg
->
lCurrentFrame
=
-
1
;
pg
->
pStream
=
pStream
;
...
...
@@ -133,7 +138,7 @@ PGETFRAME AVIFILE_CreateGetFrame(PAVISTREAM pStream)
static
HRESULT
WINAPI
IGetFrame_fnQueryInterface
(
IGetFrame
*
iface
,
REFIID
refiid
,
LPVOID
*
obj
)
{
IGetFrameImpl
*
This
=
(
IGetFrameImpl
*
)
iface
;
IGetFrameImpl
*
This
=
impl_from_IGetFrame
(
iface
)
;
TRACE
(
"(%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
refiid
),
obj
);
...
...
@@ -149,7 +154,7 @@ static HRESULT WINAPI IGetFrame_fnQueryInterface(IGetFrame *iface,
static
ULONG
WINAPI
IGetFrame_fnAddRef
(
IGetFrame
*
iface
)
{
IGetFrameImpl
*
This
=
(
IGetFrameImpl
*
)
iface
;
IGetFrameImpl
*
This
=
impl_from_IGetFrame
(
iface
)
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)
\n
"
,
iface
);
...
...
@@ -159,7 +164,7 @@ static ULONG WINAPI IGetFrame_fnAddRef(IGetFrame *iface)
static
ULONG
WINAPI
IGetFrame_fnRelease
(
IGetFrame
*
iface
)
{
IGetFrameImpl
*
This
=
(
IGetFrameImpl
*
)
iface
;
IGetFrameImpl
*
This
=
impl_from_IGetFrame
(
iface
)
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)
\n
"
,
iface
);
...
...
@@ -180,7 +185,7 @@ static ULONG WINAPI IGetFrame_fnRelease(IGetFrame *iface)
static
LPVOID
WINAPI
IGetFrame_fnGetFrame
(
IGetFrame
*
iface
,
LONG
lPos
)
{
IGetFrameImpl
*
This
=
(
IGetFrameImpl
*
)
iface
;
IGetFrameImpl
*
This
=
impl_from_IGetFrame
(
iface
)
;
LONG
readBytes
;
LONG
readSamples
;
...
...
@@ -299,7 +304,7 @@ static LPVOID WINAPI IGetFrame_fnGetFrame(IGetFrame *iface, LONG lPos)
static
HRESULT
WINAPI
IGetFrame_fnBegin
(
IGetFrame
*
iface
,
LONG
lStart
,
LONG
lEnd
,
LONG
lRate
)
{
IGetFrameImpl
*
This
=
(
IGetFrameImpl
*
)
iface
;
IGetFrameImpl
*
This
=
impl_from_IGetFrame
(
iface
)
;
TRACE
(
"(%p,%d,%d,%d)
\n
"
,
iface
,
lStart
,
lEnd
,
lRate
);
...
...
@@ -310,7 +315,7 @@ static HRESULT WINAPI IGetFrame_fnBegin(IGetFrame *iface, LONG lStart,
static
HRESULT
WINAPI
IGetFrame_fnEnd
(
IGetFrame
*
iface
)
{
IGetFrameImpl
*
This
=
(
IGetFrameImpl
*
)
iface
;
IGetFrameImpl
*
This
=
impl_from_IGetFrame
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
iface
);
...
...
@@ -324,7 +329,7 @@ static HRESULT WINAPI IGetFrame_fnSetFormat(IGetFrame *iface,
LPVOID
lpBits
,
INT
x
,
INT
y
,
INT
dx
,
INT
dy
)
{
IGetFrameImpl
*
This
=
(
IGetFrameImpl
*
)
iface
;
IGetFrameImpl
*
This
=
impl_from_IGetFrame
(
iface
)
;
AVISTREAMINFOW
sInfo
;
LPBITMAPINFOHEADER
lpbi
=
lpbiWanted
;
...
...
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