DescriptionLinux Video Capture: small cleanup
I took the liberty to bundle a bunch of cleanups:
- Some loops of the form while(...){... increment_variable} are passed to
for loops, this IMHO brings closer the loop-specific actions.
- Const added to many local variables.
- 1 Const auto and range based loop.
- GetListOfUsableFourCCs -> changed to return a std::list<int>
instead of filling up a pointer parameter; IMHO this reflects
better the method name.
- Renamed V4l2ColorToVideoCaptureColorFormat() ->
V4l2FourCcToChromiumPixelFormat() to reflect better what is doing.
- Removed superfluous comments and added refs to crbug.coms.
BUG=441836
Committed: https://crrev.com/7b4d541404e82b7b12a2e8255e3529e95dac26a0
Cr-Commit-Position: refs/heads/master@{#308698}
Patch Set 1 : #
Total comments: 10
Patch Set 2 : perkj@s comments #
Total comments: 10
Patch Set 3 : corrected indentations #
Messages
Total messages: 20 (11 generated)
|