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
6994317b
Commit
6994317b
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: Reorder some code to avoid forward declarations for the IGetFrameVtbl methods.
parent
157480df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
43 deletions
+30
-43
getframe.c
dlls/avifil32/getframe.c
+30
-43
No files found.
dlls/avifil32/getframe.c
View file @
6994317b
...
...
@@ -37,29 +37,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(avifile);
/***********************************************************************/
static
HRESULT
WINAPI
IGetFrame_fnQueryInterface
(
IGetFrame
*
iface
,
REFIID
refiid
,
LPVOID
*
obj
);
static
ULONG
WINAPI
IGetFrame_fnAddRef
(
IGetFrame
*
iface
);
static
ULONG
WINAPI
IGetFrame_fnRelease
(
IGetFrame
*
iface
);
static
LPVOID
WINAPI
IGetFrame_fnGetFrame
(
IGetFrame
*
iface
,
LONG
lPos
);
static
HRESULT
WINAPI
IGetFrame_fnBegin
(
IGetFrame
*
iface
,
LONG
lStart
,
LONG
lEnd
,
LONG
lRate
);
static
HRESULT
WINAPI
IGetFrame_fnEnd
(
IGetFrame
*
iface
);
static
HRESULT
WINAPI
IGetFrame_fnSetFormat
(
IGetFrame
*
iface
,
LPBITMAPINFOHEADER
lpbi
,
LPVOID
lpBits
,
INT
x
,
INT
y
,
INT
dx
,
INT
dy
);
static
const
struct
IGetFrameVtbl
igetframeVtbl
=
{
IGetFrame_fnQueryInterface
,
IGetFrame_fnAddRef
,
IGetFrame_fnRelease
,
IGetFrame_fnGetFrame
,
IGetFrame_fnBegin
,
IGetFrame_fnEnd
,
IGetFrame_fnSetFormat
};
typedef
struct
_IGetFrameImpl
{
/* IUnknown stuff */
IGetFrame
IGetFrame_iface
;
...
...
@@ -115,26 +92,6 @@ static void AVIFILE_CloseCompressor(IGetFrameImpl *This)
}
}
PGETFRAME
AVIFILE_CreateGetFrame
(
PAVISTREAM
pStream
)
{
IGetFrameImpl
*
pg
;
/* check parameter */
if
(
pStream
==
NULL
)
return
NULL
;
pg
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IGetFrameImpl
));
if
(
pg
!=
NULL
)
{
pg
->
IGetFrame_iface
.
lpVtbl
=
&
igetframeVtbl
;
pg
->
ref
=
1
;
pg
->
lCurrentFrame
=
-
1
;
pg
->
pStream
=
pStream
;
IAVIStream_AddRef
(
pStream
);
}
return
(
PGETFRAME
)
pg
;
}
static
HRESULT
WINAPI
IGetFrame_fnQueryInterface
(
IGetFrame
*
iface
,
REFIID
refiid
,
LPVOID
*
obj
)
{
...
...
@@ -521,4 +478,34 @@ static HRESULT WINAPI IGetFrame_fnSetFormat(IGetFrame *iface,
}
}
static
const
struct
IGetFrameVtbl
igetframeVtbl
=
{
IGetFrame_fnQueryInterface
,
IGetFrame_fnAddRef
,
IGetFrame_fnRelease
,
IGetFrame_fnGetFrame
,
IGetFrame_fnBegin
,
IGetFrame_fnEnd
,
IGetFrame_fnSetFormat
};
PGETFRAME
AVIFILE_CreateGetFrame
(
PAVISTREAM
pStream
)
{
IGetFrameImpl
*
pg
;
/* check parameter */
if
(
pStream
==
NULL
)
return
NULL
;
pg
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IGetFrameImpl
));
if
(
pg
!=
NULL
)
{
pg
->
IGetFrame_iface
.
lpVtbl
=
&
igetframeVtbl
;
pg
->
ref
=
1
;
pg
->
lCurrentFrame
=
-
1
;
pg
->
pStream
=
pStream
;
IAVIStream_AddRef
(
pStream
);
}
return
(
PGETFRAME
)
pg
;
}
/***********************************************************************/
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