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
47cc78c4
Commit
47cc78c4
authored
Dec 30, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 31, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Added AVI compressor Start and Stop implementations.
parent
0414557e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
avico.c
dlls/qcap/avico.c
+28
-4
No files found.
dlls/qcap/avico.c
View file @
47cc78c4
...
@@ -45,6 +45,8 @@ typedef struct {
...
@@ -45,6 +45,8 @@ typedef struct {
VIDEOINFOHEADER
*
videoinfo
;
VIDEOINFOHEADER
*
videoinfo
;
size_t
videoinfo_size
;
size_t
videoinfo_size
;
DWORD
driver_flags
;
DWORD
driver_flags
;
DWORD
frame_cnt
;
}
AVICompressor
;
}
AVICompressor
;
static
inline
AVICompressor
*
impl_from_BaseFilter
(
BaseFilter
*
filter
)
static
inline
AVICompressor
*
impl_from_BaseFilter
(
BaseFilter
*
filter
)
...
@@ -166,8 +168,15 @@ static ULONG WINAPI AVICompressor_Release(IBaseFilter *iface)
...
@@ -166,8 +168,15 @@ static ULONG WINAPI AVICompressor_Release(IBaseFilter *iface)
static
HRESULT
WINAPI
AVICompressor_Stop
(
IBaseFilter
*
iface
)
static
HRESULT
WINAPI
AVICompressor_Stop
(
IBaseFilter
*
iface
)
{
{
AVICompressor
*
This
=
impl_from_IBaseFilter
(
iface
);
AVICompressor
*
This
=
impl_from_IBaseFilter
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
filter
.
state
==
State_Stopped
)
return
S_OK
;
ICCompressEnd
(
This
->
hic
);
This
->
filter
.
state
=
State_Stopped
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
AVICompressor_Pause
(
IBaseFilter
*
iface
)
static
HRESULT
WINAPI
AVICompressor_Pause
(
IBaseFilter
*
iface
)
...
@@ -180,8 +189,23 @@ static HRESULT WINAPI AVICompressor_Pause(IBaseFilter *iface)
...
@@ -180,8 +189,23 @@ static HRESULT WINAPI AVICompressor_Pause(IBaseFilter *iface)
static
HRESULT
WINAPI
AVICompressor_Run
(
IBaseFilter
*
iface
,
REFERENCE_TIME
tStart
)
static
HRESULT
WINAPI
AVICompressor_Run
(
IBaseFilter
*
iface
,
REFERENCE_TIME
tStart
)
{
{
AVICompressor
*
This
=
impl_from_IBaseFilter
(
iface
);
AVICompressor
*
This
=
impl_from_IBaseFilter
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
wine_dbgstr_longlong
(
tStart
));
HRESULT
hres
;
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
wine_dbgstr_longlong
(
tStart
));
if
(
This
->
filter
.
state
==
State_Running
)
return
S_OK
;
hres
=
IMemAllocator_Commit
(
This
->
out
->
pAllocator
);
if
(
FAILED
(
hres
))
{
FIXME
(
"Commit failed: %08x
\n
"
,
hres
);
return
hres
;
}
This
->
frame_cnt
=
0
;
This
->
filter
.
state
=
State_Running
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
AVICompressor_FindPin
(
IBaseFilter
*
iface
,
LPCWSTR
Id
,
IPin
**
ppPin
)
static
HRESULT
WINAPI
AVICompressor_FindPin
(
IBaseFilter
*
iface
,
LPCWSTR
Id
,
IPin
**
ppPin
)
...
...
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