diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-07-25 00:24:39 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-09-04 15:36:34 +0200 |
commit | cd06fe652b33c7c556a5735a30ca5f48dbcb77b8 (patch) | |
tree | 2d4de03e3639f1c31dc0b9919941d21b8cbda4fc /isp/omap3isp-priv.h | |
parent | d3e7371b152c98ebac4c5202223c1c962bf390c6 (diff) |
Add omap3_isp_pipeline_try_format()
The function tries formats on pipeline pads to achieve the requested
output format, and saves the format at each pad in the oamp3_isp_pad
structure for later use.
Replace the snapshot format try code by a call to
omap3_isp_pipeline_try_format().
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'isp/omap3isp-priv.h')
-rw-r--r-- | isp/omap3isp-priv.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/isp/omap3isp-priv.h b/isp/omap3isp-priv.h index bb683b5..375c5c9 100644 --- a/isp/omap3isp-priv.h +++ b/isp/omap3isp-priv.h @@ -23,6 +23,8 @@ #ifndef __OMAP3ISP_PRIV_H #define __OMAP3ISP_PRIV_H +#include <linux/v4l2-mediabus.h> + #include "omap3isp.h" /* @@ -50,17 +52,27 @@ struct omap3_isp_video { }; /* + * struct omap3_isp_pad - OMAP3 entity pad + * @link: Link connected to the pad + * @format: Format on the pad + */ +struct omap3_isp_pad { + struct media_entity_link *link; + struct v4l2_mbus_framefmt format; +}; + +/* * struct omap3_isp_entity - OMAP3 entity in a pipeline * @list: Entities list * @entity: Media entity information - * @link_sink: Link connected to the sink pad - * @link_source: Link connected to the source pad + * @sink: Sink pad + * @source: Sink pad */ struct omap3_isp_entity { struct list_entry list; struct media_entity *entity; - struct media_entity_link *link_sink; - struct media_entity_link *link_source; + struct omap3_isp_pad sink; + struct omap3_isp_pad source; }; /* |