Age | Commit message (Collapse) | Author | Files | Lines |
|
Found with modernize-use-nullptr
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
|
|
Several C includes ending in .h are deprecated in C++.
Tested with several combinations of uClibc-ng, musl, glibc, libstdcpp,
libcxx, and uClibc++.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
|
|
Add optional <mbus_code> arg to 'v4l2-ctl --list-formats-*'
commands for capture, metadata and output devices.
If <mbus_code> is given and the device has capability
V4L2_CAP_IO_MC then list only the formats that matches the
mbus code.
The mbus_code is ignored for devices that don't use it
or don't have the V4L2_CAP_IO_MC capability.
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
|
|
|
|
In several places struct v4l2_fmtdesc was not properly zeroed.
Fix this.
This missing initialization caused vimc to fail since the new
mbus_code field was uninitialized.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
|
|
Also converted to the appropriate macros for clarity.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
|
|
Found with clang-tidy's modernize-redundant-void-arg
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
|
|
Add the --list-formats-out-ext function since m2m (codec) devices
need this.
Also push cv4l_fd down into the various test sources.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
When printing a v4l2_format struct show the pixelformat name
via VIDIOC_ENUM_FMT instead of just the fourcc.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Drop the '=' separator between the option and the arguments in the
usage message. It's confusing and not needed.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
If the ANDROID symbol is defined, done by Android toolchain by default,
include the android-config.h header file instead of the autogenerated
config.h header file.
Android build system is completely different from autoconf and make, and
is not capable, without some hacks, to generate the config.h header
file.
Signed-off-by: Hans-Christian Egtvedt <hegtvedt@cisco.com>
[hans.verkuil@cisco.com: moved config(-android).h include to v4l2-ctl.h]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
These files do not utilize anything from libv4l2.h, hence the include is
not needed.
Signed-off-by: Hans-Christian Egtvedt <hegtvedt@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Oops! Forgot to do a git add...
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|