Age | Commit message (Collapse) | Author |
|
Rename libraries to more descriptive names:
libmedia -> libmediactl
libsubdev -> libv4l2subdev
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Install media.h and subdev.h header files to mediactl/ subdirectory.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Fix media_setup_link() to update flags in twin link too.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Local variable link is defined in media_enum_links() for more simple
access to link's data. Use it when accessing link's flags.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Add autotools temporary files to .gitignore.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Install libmedia.pc and libsubdev.pc files for use from pkg-config.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Create debian packages for media-ctl application, media controller
and v4l2 subdevice libraries.
Set initial version 0.0.1-1.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Build media controller and v4l2 subdevice shared libraries.
Use libtool for building.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Use autoconf and automake for building.
Quick instructions are added in INSTALL.
Application source files are moved to src subdirectory.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Add function to get frame interval.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Add doxygen format comments to header files.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Shorten structures names:
struct media_entity_link => struct media_link
struct media_entity_pad => struct media_pad
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Add padding to
struct media_entity_link
struct media_entity_pad
struct media_entity
struct media_device
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Add v4l2_subdev_close() function and declare both in subdev.h.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Store all inbound and outbound links in media_entity.links.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Rename media_entity_remote_pad() to media_entity_remote_source().
When it is called on a sink pad, return the linked source pad.
When it is called on a source pad, return NULL.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Move printing and helper functions to media-ctl application source.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
|
|
Allow spaces after '[' in format definition.
Example:
media-ctl -f '"OMAP3 ISP resizer":1[ UYVY 864x480]'
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Do not dereference source and sink in media_enum_links() if one
of them is NULL.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Fix overrun of static arrays node_types and subdev_types in
media_entity_subtype_to_string().
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
To install kernel headers to usr/include inside a kernel tree, just run
make headers_install. media-ctl can then be compiled by setting KDIR to
the patch to the kernel tree.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The media kernel API has seen many changes during the review process,
update the media-ctl application accordingly.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Fix crop rectangle printing format after L,T/WxH to (L,T)/WxH change.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
Changes made during the v4l2_subdev API review renamed the /dev/subdev*
device nodes to /dev/v4l-subdev*. Instead of hardcoding the names in the
media-ctl application, use sysfs to retrieve the kernel device name and
assume the device node name is identical.
This isn't a perfect solution, we should really use libudev, but it will
do for now.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
This allows to setup crop rectangle or frame interval alone - without format.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The option takes a pad name as argument and returns the active format
(and optional crop settings if available) for that pad.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Image size on output pads depend on the cropping parameters. Cropping
must be configured before setting the image size on those pads.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
This allows the gcc compilation to build with extra parameters.
For example, if we want to build with -static, we just do:
make CFLAGS=-static
Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
|
|
Ignore build generated files as well as the "standard" patches subfolder
used by quilt.
Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Check for spaces before colon also when entity is numeric.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
|
|
For subdev pads that support cropping, print the active crop rectangle
in media_print_topology_text().
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Extend the V4L2 media bus format syntax to support an optional frame interval
value. If specified, the frame interval is set on the subdev.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Extend the V4L2 media bus format syntax to support an optional crop
rectangle. If specified, the crop rectangle is set on the subdev pad.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Entity IDs don't have to be contiguous. Use the new flag-based
enumeration system instead of looping over consecutive IDs.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Negative error codes were passed untouched to strerror which then
reported an unknown error. Use the positive error code instead.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
When run with the -p argument, print the active format on all subdev
pads.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
When setting format on an output pad, the same format is automatically
set on the remote pads, if any. As the format setting API is
subdev-specific, skip remote pads that belong to a non-subdev entity.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The parse_format function fills a v4l2_mbus_framefmt structure but
doesn't zero it beforehand. This results in some fields being
uninitialized. Fix this.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
errno is a positive value, fix functions that return errno when they are
expected to return a negative error code.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|