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
91c7d4f9
Commit
91c7d4f9
authored
May 19, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Use the proper types.
parent
2c2e3f86
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
15 deletions
+21
-15
capture.h
dlls/qcap/capture.h
+3
-3
v4l.c
dlls/qcap/v4l.c
+18
-12
No files found.
dlls/qcap/capture.h
View file @
91c7d4f9
...
...
@@ -30,9 +30,9 @@ Capture *qcap_driver_init(IPin*,USHORT);
HRESULT
qcap_driver_destroy
(
Capture
*
);
HRESULT
qcap_driver_set_format
(
Capture
*
,
AM_MEDIA_TYPE
*
);
HRESULT
qcap_driver_get_format
(
const
Capture
*
,
AM_MEDIA_TYPE
**
);
HRESULT
qcap_driver_get_prop_range
(
Capture
*
,
LONG
,
LONG
*
,
LONG
*
,
LONG
*
,
LONG
*
,
LONG
*
);
HRESULT
qcap_driver_get_prop
(
Capture
*
,
LONG
,
LONG
*
,
LONG
*
);
HRESULT
qcap_driver_set_prop
(
Capture
*
,
long
,
long
,
long
);
HRESULT
qcap_driver_get_prop_range
(
Capture
*
,
VideoProcAmpProperty
,
LONG
*
,
LONG
*
,
LONG
*
,
LONG
*
,
LONG
*
);
HRESULT
qcap_driver_get_prop
(
Capture
*
,
VideoProcAmpProperty
,
LONG
*
,
LONG
*
);
HRESULT
qcap_driver_set_prop
(
Capture
*
,
VideoProcAmpProperty
,
LONG
,
LONG
);
HRESULT
qcap_driver_run
(
Capture
*
,
FILTER_STATE
*
);
HRESULT
qcap_driver_pause
(
Capture
*
,
FILTER_STATE
*
);
HRESULT
qcap_driver_stop
(
Capture
*
,
FILTER_STATE
*
);
...
...
dlls/qcap/v4l.c
View file @
91c7d4f9
...
...
@@ -351,8 +351,9 @@ HRESULT qcap_driver_get_format(const Capture *capBox, AM_MEDIA_TYPE ** mT)
return
S_OK
;
}
HRESULT
qcap_driver_get_prop_range
(
Capture
*
capBox
,
LONG
Property
,
LONG
*
pMin
,
LONG
*
pMax
,
LONG
*
pSteppingDelta
,
LONG
*
pDefault
,
LONG
*
pCapsFlags
)
HRESULT
qcap_driver_get_prop_range
(
Capture
*
capBox
,
VideoProcAmpProperty
Property
,
LONG
*
pMin
,
LONG
*
pMax
,
LONG
*
pSteppingDelta
,
LONG
*
pDefault
,
LONG
*
pCapsFlags
)
{
TRACE
(
"%p -> %d %p %p %p %p %p
\n
"
,
capBox
,
Property
,
pMin
,
pMax
,
pSteppingDelta
,
pDefault
,
pCapsFlags
);
...
...
@@ -382,7 +383,8 @@ HRESULT qcap_driver_get_prop_range( Capture *capBox, LONG Property, LONG *pMin,
return
S_OK
;
}
HRESULT
qcap_driver_get_prop
(
Capture
*
capBox
,
LONG
Property
,
LONG
*
lValue
,
LONG
*
Flags
)
HRESULT
qcap_driver_get_prop
(
Capture
*
capBox
,
VideoProcAmpProperty
Property
,
LONG
*
lValue
,
LONG
*
Flags
)
{
TRACE
(
"%p -> %d %p %p
\n
"
,
capBox
,
Property
,
lValue
,
Flags
);
...
...
@@ -408,9 +410,10 @@ HRESULT qcap_driver_get_prop( Capture *capBox, LONG Property, LONG *lValue, LONG
return
S_OK
;
}
HRESULT
qcap_driver_set_prop
(
Capture
*
capBox
,
long
Property
,
long
lValue
,
long
Flags
)
HRESULT
qcap_driver_set_prop
(
Capture
*
capBox
,
VideoProcAmpProperty
Property
,
LONG
lValue
,
LONG
Flags
)
{
TRACE
(
"%p -> %
ld %ld %l
d
\n
"
,
capBox
,
Property
,
lValue
,
Flags
);
TRACE
(
"%p -> %
d %d %
d
\n
"
,
capBox
,
Property
,
lValue
,
Flags
);
switch
(
Property
)
{
...
...
@@ -427,7 +430,7 @@ HRESULT qcap_driver_set_prop(Capture *capBox, long Property, long lValue, long F
capBox
->
pict
.
colour
=
lValue
;
break
;
default:
FIXME
(
"Not implemented %
l
d
\n
"
,
Property
);
FIXME
(
"Not implemented %d
\n
"
,
Property
);
return
E_NOTIMPL
;
}
...
...
@@ -598,7 +601,7 @@ static DWORD WINAPI ReadThread(LPVOID lParam)
Capture
*
capBox
=
lParam
;
HRESULT
hr
;
IMediaSample
*
pSample
=
NULL
;
unsigned
long
framecount
=
0
;
ULONG
framecount
=
0
;
unsigned
char
*
pTarget
,
*
pInput
,
*
pOutput
;
hr
=
V4l_Prepare
(
capBox
);
...
...
@@ -636,7 +639,7 @@ static DWORD WINAPI ReadThread(LPVOID lParam)
capBox
->
renderer
(
capBox
,
pOutput
,
pInput
);
Resize
(
capBox
,
pTarget
,
pOutput
);
hr
=
OutputPin_SendSample
((
OutputPin
*
)
capBox
->
pOut
,
pSample
);
TRACE
(
"%p -> Frame %
l
u: %x
\n
"
,
capBox
,
++
framecount
,
hr
);
TRACE
(
"%p -> Frame %u: %x
\n
"
,
capBox
,
++
framecount
,
hr
);
IMediaSample_Release
(
pSample
);
V4l_FreeFrame
(
capBox
);
}
...
...
@@ -960,18 +963,21 @@ HRESULT qcap_driver_get_format(const Capture *capBox, AM_MEDIA_TYPE ** mT)
FAIL_WITH_ERR
;
}
HRESULT
qcap_driver_get_prop_range
(
Capture
*
capBox
,
LONG
Property
,
LONG
*
pMin
,
LONG
*
pMax
,
LONG
*
pSteppingDelta
,
LONG
*
pDefault
,
LONG
*
pCapsFlags
)
HRESULT
qcap_driver_get_prop_range
(
Capture
*
capBox
,
VideoProcAmpProperty
Property
,
LONG
*
pMin
,
LONG
*
pMax
,
LONG
*
pSteppingDelta
,
LONG
*
pDefault
,
LONG
*
pCapsFlags
)
{
FAIL_WITH_ERR
;
}
HRESULT
qcap_driver_get_prop
(
Capture
*
capBox
,
LONG
Property
,
LONG
*
lValue
,
LONG
*
Flags
)
HRESULT
qcap_driver_get_prop
(
Capture
*
capBox
,
VideoProcAmpProperty
Property
,
LONG
*
lValue
,
LONG
*
Flags
)
{
FAIL_WITH_ERR
;
}
HRESULT
qcap_driver_set_prop
(
Capture
*
capBox
,
long
Property
,
long
lValue
,
long
Flags
)
HRESULT
qcap_driver_set_prop
(
Capture
*
capBox
,
VideoProcAmpProperty
Property
,
LONG
lValue
,
LONG
Flags
)
{
FAIL_WITH_ERR
;
}
...
...
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