summaryrefslogtreecommitdiff
path: root/main.c
AgeCommit message (Collapse)Author
2011-02-07Move printing functions to main.cTodor Tomov
Move printing and helper functions to media-ctl application source. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-01-24Fix printf typosMichael Jones
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-01-19main.c: allow spaces in format definitionTodor Tomov
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>
2010-10-21Update to the latest media kernel APILaurent Pinchart
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>
2010-09-28main.c: Fix crop rectangle printing formatTodor Tomov
Fix crop rectangle printing format after L,T/WxH to (L,T)/WxH change. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2010-08-16Make format setting optional for -f optionTodor Tomov
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>
2010-08-16Change crop rectangle format from L,T/WxH to (L,T)/WxHTodor Tomov
Signed-off-by: Todor Tomov <ttomov@mm-sol.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-08-11Add a --get-format optionLaurent Pinchart
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>
2010-08-01Configure cropping on output pads before setting the formatLaurent Pinchart
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>
2010-07-01main.c: fix spaces check in parse_pad()Todor Tomov
Check for spaces before colon also when entity is numeric. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2010-07-01V4L2 subdev frame interval supportTodor Tomov
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>
2010-06-29V4L2 subdev crop supportLaurent Pinchart
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>
2010-06-14Enumerate entities using MEDIA_ENTITY_ID_FLAG_NEXTLaurent Pinchart
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>
2010-06-08strerror takes a non-negative integerLaurent Pinchart
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>
2010-06-02Print active formats when printing device topologyLaurent Pinchart
When run with the -p argument, print the active format on all subdev pads. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-05-21Add --print-dot option to print topology as a dot graphLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-05-21Don't set formats on remote pads if the remote entity is not a subdevLaurent Pinchart
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>
2010-05-19Zero structures before filling themLaurent Pinchart
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>
2010-05-19Initial importLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>