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
61d84d68
Commit
61d84d68
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 IAVIStreamVtbl methods.
parent
a45ae7ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
55 deletions
+40
-55
icmstream.c
dlls/avifil32/icmstream.c
+40
-55
No files found.
dlls/avifil32/icmstream.c
View file @
61d84d68
...
...
@@ -38,38 +38,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(avifile);
/***********************************************************************/
static
HRESULT
WINAPI
ICMStream_fnQueryInterface
(
IAVIStream
*
iface
,
REFIID
refiid
,
LPVOID
*
obj
);
static
ULONG
WINAPI
ICMStream_fnAddRef
(
IAVIStream
*
iface
);
static
ULONG
WINAPI
ICMStream_fnRelease
(
IAVIStream
*
iface
);
static
HRESULT
WINAPI
ICMStream_fnCreate
(
IAVIStream
*
iface
,
LPARAM
lParam1
,
LPARAM
lParam2
);
static
HRESULT
WINAPI
ICMStream_fnInfo
(
IAVIStream
*
iface
,
AVISTREAMINFOW
*
psi
,
LONG
size
);
static
LONG
WINAPI
ICMStream_fnFindSample
(
IAVIStream
*
iface
,
LONG
pos
,
LONG
flags
);
static
HRESULT
WINAPI
ICMStream_fnReadFormat
(
IAVIStream
*
iface
,
LONG
pos
,
LPVOID
format
,
LONG
*
formatsize
);
static
HRESULT
WINAPI
ICMStream_fnSetFormat
(
IAVIStream
*
iface
,
LONG
pos
,
LPVOID
format
,
LONG
formatsize
);
static
HRESULT
WINAPI
ICMStream_fnRead
(
IAVIStream
*
iface
,
LONG
start
,
LONG
samples
,
LPVOID
buffer
,
LONG
buffersize
,
LONG
*
bytesread
,
LONG
*
samplesread
);
static
HRESULT
WINAPI
ICMStream_fnWrite
(
IAVIStream
*
iface
,
LONG
start
,
LONG
samples
,
LPVOID
buffer
,
LONG
buffersize
,
DWORD
flags
,
LONG
*
sampwritten
,
LONG
*
byteswritten
);
static
HRESULT
WINAPI
ICMStream_fnDelete
(
IAVIStream
*
iface
,
LONG
start
,
LONG
samples
);
static
HRESULT
WINAPI
ICMStream_fnReadData
(
IAVIStream
*
iface
,
DWORD
fcc
,
LPVOID
lp
,
LONG
*
lpread
);
static
HRESULT
WINAPI
ICMStream_fnWriteData
(
IAVIStream
*
iface
,
DWORD
fcc
,
LPVOID
lp
,
LONG
size
);
static
HRESULT
WINAPI
ICMStream_fnSetInfo
(
IAVIStream
*
iface
,
AVISTREAMINFOW
*
info
,
LONG
infolen
);
static
const
struct
IAVIStreamVtbl
iicmst
=
{
ICMStream_fnQueryInterface
,
ICMStream_fnAddRef
,
ICMStream_fnRelease
,
ICMStream_fnCreate
,
ICMStream_fnInfo
,
ICMStream_fnFindSample
,
ICMStream_fnReadFormat
,
ICMStream_fnSetFormat
,
ICMStream_fnRead
,
ICMStream_fnWrite
,
ICMStream_fnDelete
,
ICMStream_fnReadData
,
ICMStream_fnWriteData
,
ICMStream_fnSetInfo
};
typedef
struct
_IAVIStreamImpl
{
/* IUnknown stuff */
IAVIStream
IAVIStream_iface
;
...
...
@@ -120,29 +88,6 @@ static inline void AVIFILE_Reset(IAVIStreamImpl *This)
This
->
dwUnusedBytes
=
0
;
}
HRESULT
AVIFILE_CreateICMStream
(
REFIID
riid
,
LPVOID
*
ppv
)
{
IAVIStreamImpl
*
pstream
;
HRESULT
hr
;
assert
(
riid
!=
NULL
&&
ppv
!=
NULL
);
*
ppv
=
NULL
;
pstream
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IAVIStreamImpl
));
if
(
pstream
==
NULL
)
return
AVIERR_MEMORY
;
pstream
->
IAVIStream_iface
.
lpVtbl
=
&
iicmst
;
AVIFILE_Reset
(
pstream
);
hr
=
IAVIStream_QueryInterface
(
&
pstream
->
IAVIStream_iface
,
riid
,
ppv
);
if
(
FAILED
(
hr
))
HeapFree
(
GetProcessHeap
(),
0
,
pstream
);
return
hr
;
}
static
HRESULT
WINAPI
ICMStream_fnQueryInterface
(
IAVIStream
*
iface
,
REFIID
refiid
,
LPVOID
*
obj
)
{
...
...
@@ -762,6 +707,46 @@ static HRESULT WINAPI ICMStream_fnSetInfo(IAVIStream *iface,
return
E_FAIL
;
}
static
const
struct
IAVIStreamVtbl
iicmst
=
{
ICMStream_fnQueryInterface
,
ICMStream_fnAddRef
,
ICMStream_fnRelease
,
ICMStream_fnCreate
,
ICMStream_fnInfo
,
ICMStream_fnFindSample
,
ICMStream_fnReadFormat
,
ICMStream_fnSetFormat
,
ICMStream_fnRead
,
ICMStream_fnWrite
,
ICMStream_fnDelete
,
ICMStream_fnReadData
,
ICMStream_fnWriteData
,
ICMStream_fnSetInfo
};
HRESULT
AVIFILE_CreateICMStream
(
REFIID
riid
,
LPVOID
*
ppv
)
{
IAVIStreamImpl
*
pstream
;
HRESULT
hr
;
assert
(
riid
!=
NULL
&&
ppv
!=
NULL
);
*
ppv
=
NULL
;
pstream
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IAVIStreamImpl
));
if
(
pstream
==
NULL
)
return
AVIERR_MEMORY
;
pstream
->
IAVIStream_iface
.
lpVtbl
=
&
iicmst
;
AVIFILE_Reset
(
pstream
);
hr
=
IAVIStream_QueryInterface
(
&
pstream
->
IAVIStream_iface
,
riid
,
ppv
);
if
(
FAILED
(
hr
))
HeapFree
(
GetProcessHeap
(),
0
,
pstream
);
return
hr
;
}
/***********************************************************************/
static
HRESULT
AVIFILE_EncodeFrame
(
IAVIStreamImpl
*
This
,
...
...
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