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
81c91c43
Commit
81c91c43
authored
Jan 24, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Avoid forward declarations of iface methods.
parent
2a14c4e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
86 deletions
+45
-86
editstream.c
dlls/avifil32/editstream.c
+45
-86
No files found.
dlls/avifil32/editstream.c
View file @
81c91c43
...
...
@@ -50,75 +50,6 @@ typedef struct _EditStreamTable {
#define EditStreamEnd(This,streamNr) ((This)->pStreams[streamNr].dwStart + \
(This)->pStreams[streamNr].dwLength)
/***********************************************************************/
static
HRESULT
WINAPI
IAVIEditStream_fnQueryInterface
(
IAVIEditStream
*
iface
,
REFIID
refiid
,
LPVOID
*
obj
);
static
ULONG
WINAPI
IAVIEditStream_fnAddRef
(
IAVIEditStream
*
iface
);
static
ULONG
WINAPI
IAVIEditStream_fnRelease
(
IAVIEditStream
*
iface
);
static
HRESULT
WINAPI
IAVIEditStream_fnCut
(
IAVIEditStream
*
iface
,
LONG
*
plStart
,
LONG
*
plLength
,
PAVISTREAM
*
ppResult
);
static
HRESULT
WINAPI
IAVIEditStream_fnCopy
(
IAVIEditStream
*
iface
,
LONG
*
plStart
,
LONG
*
plLength
,
PAVISTREAM
*
ppResult
);
static
HRESULT
WINAPI
IAVIEditStream_fnPaste
(
IAVIEditStream
*
iface
,
LONG
*
plStart
,
LONG
*
plLength
,
PAVISTREAM
pSource
,
LONG
lStart
,
LONG
lEnd
);
static
HRESULT
WINAPI
IAVIEditStream_fnClone
(
IAVIEditStream
*
iface
,
PAVISTREAM
*
ppResult
);
static
HRESULT
WINAPI
IAVIEditStream_fnSetInfo
(
IAVIEditStream
*
iface
,
LPAVISTREAMINFOW
asi
,
LONG
size
);
static
const
struct
IAVIEditStreamVtbl
ieditstream
=
{
IAVIEditStream_fnQueryInterface
,
IAVIEditStream_fnAddRef
,
IAVIEditStream_fnRelease
,
IAVIEditStream_fnCut
,
IAVIEditStream_fnCopy
,
IAVIEditStream_fnPaste
,
IAVIEditStream_fnClone
,
IAVIEditStream_fnSetInfo
};
static
HRESULT
WINAPI
IEditAVIStream_fnQueryInterface
(
IAVIStream
*
iface
,
REFIID
refiid
,
LPVOID
*
obj
);
static
ULONG
WINAPI
IEditAVIStream_fnAddRef
(
IAVIStream
*
iface
);
static
ULONG
WINAPI
IEditAVIStream_fnRelease
(
IAVIStream
*
iface
);
static
HRESULT
WINAPI
IEditAVIStream_fnCreate
(
IAVIStream
*
iface
,
LPARAM
lParam1
,
LPARAM
lParam2
);
static
HRESULT
WINAPI
IEditAVIStream_fnInfo
(
IAVIStream
*
iface
,
AVISTREAMINFOW
*
psi
,
LONG
size
);
static
LONG
WINAPI
IEditAVIStream_fnFindSample
(
IAVIStream
*
iface
,
LONG
pos
,
LONG
flags
);
static
HRESULT
WINAPI
IEditAVIStream_fnReadFormat
(
IAVIStream
*
iface
,
LONG
pos
,
LPVOID
format
,
LONG
*
formatsize
);
static
HRESULT
WINAPI
IEditAVIStream_fnSetFormat
(
IAVIStream
*
iface
,
LONG
pos
,
LPVOID
format
,
LONG
formatsize
);
static
HRESULT
WINAPI
IEditAVIStream_fnRead
(
IAVIStream
*
iface
,
LONG
start
,
LONG
samples
,
LPVOID
buffer
,
LONG
buffersize
,
LONG
*
bytesread
,
LONG
*
samplesread
);
static
HRESULT
WINAPI
IEditAVIStream_fnWrite
(
IAVIStream
*
iface
,
LONG
start
,
LONG
samples
,
LPVOID
buffer
,
LONG
buffersize
,
DWORD
flags
,
LONG
*
sampwritten
,
LONG
*
byteswritten
);
static
HRESULT
WINAPI
IEditAVIStream_fnDelete
(
IAVIStream
*
iface
,
LONG
start
,
LONG
samples
);
static
HRESULT
WINAPI
IEditAVIStream_fnReadData
(
IAVIStream
*
iface
,
DWORD
fcc
,
LPVOID
lp
,
LONG
*
lpread
);
static
HRESULT
WINAPI
IEditAVIStream_fnWriteData
(
IAVIStream
*
iface
,
DWORD
fcc
,
LPVOID
lp
,
LONG
size
);
static
HRESULT
WINAPI
IEditAVIStream_fnSetInfo
(
IAVIStream
*
iface
,
AVISTREAMINFOW
*
info
,
LONG
infolen
);
static
const
struct
IAVIStreamVtbl
ieditstast
=
{
IEditAVIStream_fnQueryInterface
,
IEditAVIStream_fnAddRef
,
IEditAVIStream_fnRelease
,
IEditAVIStream_fnCreate
,
IEditAVIStream_fnInfo
,
IEditAVIStream_fnFindSample
,
IEditAVIStream_fnReadFormat
,
IEditAVIStream_fnSetFormat
,
IEditAVIStream_fnRead
,
IEditAVIStream_fnWrite
,
IEditAVIStream_fnDelete
,
IEditAVIStream_fnReadData
,
IEditAVIStream_fnWriteData
,
IEditAVIStream_fnSetInfo
};
typedef
struct
_IAVIEditStreamImpl
IAVIEditStreamImpl
;
struct
_IAVIEditStreamImpl
{
...
...
@@ -151,23 +82,6 @@ static inline IAVIEditStreamImpl *impl_from_IAVIStream(IAVIStream *iface)
/***********************************************************************/
PAVIEDITSTREAM
AVIFILE_CreateEditStream
(
PAVISTREAM
pstream
)
{
IAVIEditStreamImpl
*
pedit
=
NULL
;
pedit
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IAVIEditStreamImpl
));
if
(
pedit
==
NULL
)
return
NULL
;
pedit
->
IAVIEditStream_iface
.
lpVtbl
=
&
ieditstream
;
pedit
->
IAVIStream_iface
.
lpVtbl
=
&
ieditstast
;
pedit
->
ref
=
1
;
IAVIStream_Create
(
&
pedit
->
IAVIStream_iface
,
(
LPARAM
)
pstream
,
0
);
return
(
PAVIEDITSTREAM
)
pedit
;
}
static
HRESULT
AVIFILE_FindStreamInTable
(
IAVIEditStreamImpl
*
const
This
,
DWORD
pos
,
PAVISTREAM
*
ppStream
,
DWORD
*
streamPos
,
...
...
@@ -749,6 +663,17 @@ static HRESULT WINAPI IAVIEditStream_fnSetInfo(IAVIEditStream*iface,
return
AVIERR_OK
;
}
static
const
struct
IAVIEditStreamVtbl
ieditstream
=
{
IAVIEditStream_fnQueryInterface
,
IAVIEditStream_fnAddRef
,
IAVIEditStream_fnRelease
,
IAVIEditStream_fnCut
,
IAVIEditStream_fnCopy
,
IAVIEditStream_fnPaste
,
IAVIEditStream_fnClone
,
IAVIEditStream_fnSetInfo
};
static
HRESULT
WINAPI
IEditAVIStream_fnQueryInterface
(
IAVIStream
*
iface
,
REFIID
refiid
,
LPVOID
*
obj
)
{
...
...
@@ -1063,3 +988,37 @@ static HRESULT WINAPI IEditAVIStream_fnSetInfo(IAVIStream*iface,
return
IAVIEditStream_SetInfo
(
&
This
->
IAVIEditStream_iface
,
info
,
len
);
}
static
const
struct
IAVIStreamVtbl
ieditstast
=
{
IEditAVIStream_fnQueryInterface
,
IEditAVIStream_fnAddRef
,
IEditAVIStream_fnRelease
,
IEditAVIStream_fnCreate
,
IEditAVIStream_fnInfo
,
IEditAVIStream_fnFindSample
,
IEditAVIStream_fnReadFormat
,
IEditAVIStream_fnSetFormat
,
IEditAVIStream_fnRead
,
IEditAVIStream_fnWrite
,
IEditAVIStream_fnDelete
,
IEditAVIStream_fnReadData
,
IEditAVIStream_fnWriteData
,
IEditAVIStream_fnSetInfo
};
PAVIEDITSTREAM
AVIFILE_CreateEditStream
(
PAVISTREAM
pstream
)
{
IAVIEditStreamImpl
*
pedit
=
NULL
;
pedit
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IAVIEditStreamImpl
));
if
(
pedit
==
NULL
)
return
NULL
;
pedit
->
IAVIEditStream_iface
.
lpVtbl
=
&
ieditstream
;
pedit
->
IAVIStream_iface
.
lpVtbl
=
&
ieditstast
;
pedit
->
ref
=
1
;
IAVIStream_Create
(
&
pedit
->
IAVIStream_iface
,
(
LPARAM
)
pstream
,
0
);
return
(
PAVIEDITSTREAM
)
pedit
;
}
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