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
7715684f
Commit
7715684f
authored
Mar 21, 2014
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Mar 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Use BOOL type where appropriate.
parent
ac8a24aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
v4l.c
dlls/qcap/v4l.c
+11
-8
yuv.c
dlls/qcap/yuv.c
+3
-2
No files found.
dlls/qcap/v4l.c
View file @
7715684f
...
...
@@ -110,7 +110,7 @@ struct _Capture
IPin
*
pOut
;
int
fd
,
mmap
;
int
iscommitted
,
stopped
;
BOOL
iscommitted
,
stopped
;
struct
video_picture
pict
;
int
dbrightness
,
dhue
,
dcolour
,
dcontrast
;
...
...
@@ -661,7 +661,8 @@ cfail:
LeaveCriticalSection
(
&
capBox
->
CritSect
);
fail:
capBox
->
thread
=
0
;
capBox
->
stopped
=
1
;
capBox
->
thread
=
0
;
capBox
->
stopped
=
TRUE
;
FIXME
(
"Stop IFilterGraph
\n
"
);
return
0
;
}
...
...
@@ -677,16 +678,18 @@ HRESULT qcap_driver_run(Capture *capBox, FILTER_STATE *state)
EnterCriticalSection
(
&
capBox
->
CritSect
);
capBox
->
stopped
=
0
;
capBox
->
stopped
=
FALSE
;
if
(
*
state
==
State_Stopped
)
{
*
state
=
State_Running
;
if
(
!
capBox
->
iscommitted
++
)
if
(
!
capBox
->
iscommitted
)
{
ALLOCATOR_PROPERTIES
ap
,
actual
;
BaseOutputPin
*
out
;
capBox
->
iscommitted
=
TRUE
;
ap
.
cBuffers
=
3
;
if
(
!
capBox
->
swresize
)
ap
.
cbBuffer
=
capBox
->
width
*
capBox
->
height
;
...
...
@@ -755,14 +758,14 @@ HRESULT qcap_driver_stop(Capture *capBox, FILTER_STATE *state)
{
if
(
*
state
==
State_Paused
)
ResumeThread
(
capBox
->
thread
);
capBox
->
stopped
=
1
;
capBox
->
stopped
=
TRUE
;
capBox
->
thread
=
0
;
if
(
capBox
->
iscommitted
)
{
BaseOutputPin
*
out
;
HRESULT
hr
;
capBox
->
iscommitted
=
0
;
capBox
->
iscommitted
=
FALSE
;
out
=
(
BaseOutputPin
*
)
capBox
->
pOut
;
...
...
@@ -894,9 +897,9 @@ Capture * qcap_driver_init( IPin *pOut, USHORT card )
capBox
->
bitDepth
=
24
;
capBox
->
pOut
=
pOut
;
capBox
->
fps
=
3
;
capBox
->
stopped
=
0
;
capBox
->
stopped
=
FALSE
;
capBox
->
curframe
=
0
;
capBox
->
iscommitted
=
0
;
capBox
->
iscommitted
=
FALSE
;
TRACE
(
"format: %d bits - %d x %d
\n
"
,
capBox
->
bitDepth
,
capBox
->
width
,
capBox
->
height
);
...
...
dlls/qcap/yuv.c
View file @
7715684f
...
...
@@ -41,7 +41,7 @@ static int yuv_gu[256]; /* Green U */
static
int
yuv_bu
[
256
];
/* Blue U */
static
int
yuv_rv
[
256
];
/* Red V */
static
int
yuv_gv
[
256
];
/* Green V */
static
int
initialised
=
0
;
static
BOOL
initialised
=
FALSE
;
static
inline
int
ValidRange
(
int
in
)
{
if
(
in
>
255
)
in
=
255
;
...
...
@@ -67,7 +67,8 @@ void YUV_Init(void) {
float
y
,
u
,
v
;
int
y_
,
cb
,
cr
;
if
(
initialised
++
)
return
;
if
(
initialised
)
return
;
initialised
=
TRUE
;
for
(
y_
=
0
;
y_
<=
255
;
y_
++
)
{
...
...
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