Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
monado
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
monado
Commits
3f976804
Commit
3f976804
authored
5 years ago
by
Jakob Bornecrantz
Browse files
Options
Downloads
Patches
Plain Diff
v4l2: Add quirk for Dell integrated webcam
parent
80b0c145
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xrt/drivers/v4l2/v4l2_driver.c
+12
-0
12 additions, 0 deletions
src/xrt/drivers/v4l2/v4l2_driver.c
with
12 additions
and
0 deletions
src/xrt/drivers/v4l2/v4l2_driver.c
+
12
−
0
View file @
3f976804
...
@@ -118,6 +118,7 @@ struct v4l2_fs
...
@@ -118,6 +118,7 @@ struct v4l2_fs
struct
struct
{
{
bool
ps4_cam
;
bool
ps4_cam
;
bool
dell_cam
;
bool
set_auto_exposure
;
bool
set_auto_exposure
;
bool
set_exposure_absolute
;
bool
set_exposure_absolute
;
int
value_exposure_absolute
;
int
value_exposure_absolute
;
...
@@ -286,6 +287,9 @@ v4l2_query_cap_and_validate(struct v4l2_fs *vid)
...
@@ -286,6 +287,9 @@ v4l2_query_cap_and_validate(struct v4l2_fs *vid)
vid
->
quirks
.
ps4_cam
=
vid
->
quirks
.
ps4_cam
=
strcmp
(
card
,
"USB Camera-OV580: USB Camera-OV"
)
==
0
;
strcmp
(
card
,
"USB Camera-OV580: USB Camera-OV"
)
==
0
;
vid
->
quirks
.
dell_cam
=
strcmp
(
card
,
"Integrated_Webcam_HD: Integrate"
)
==
0
;
if
(
vid
->
quirks
.
ps4_cam
)
{
if
(
vid
->
quirks
.
ps4_cam
)
{
// The experimented best controls to best track things.
// The experimented best controls to best track things.
vid
->
quirks
.
set_auto_exposure
=
true
;
vid
->
quirks
.
set_auto_exposure
=
true
;
...
@@ -294,6 +298,14 @@ v4l2_query_cap_and_validate(struct v4l2_fs *vid)
...
@@ -294,6 +298,14 @@ v4l2_query_cap_and_validate(struct v4l2_fs *vid)
vid
->
quirks
.
value_exposure_absolute
=
vid
->
quirks
.
value_exposure_absolute
=
debug_get_num_option_v4l2_exposure_absolute
();
debug_get_num_option_v4l2_exposure_absolute
();
}
}
if
(
vid
->
quirks
.
dell_cam
)
{
// The experimented best controls to best track things.
vid
->
quirks
.
set_auto_exposure
=
true
;
vid
->
quirks
.
value_auto_exposure
=
1
;
vid
->
quirks
.
set_exposure_absolute
=
true
;
vid
->
quirks
.
value_exposure_absolute
=
debug_get_num_option_v4l2_exposure_absolute
();
}
// Done
// Done
return
0
;
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment