From cd06fe652b33c7c556a5735a30ca5f48dbcb77b8 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 25 Jul 2011 00:24:39 +0200 Subject: 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 --- isp/omap3isp-priv.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'isp/omap3isp-priv.h') 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 + #include "omap3isp.h" /* @@ -49,18 +51,28 @@ struct omap3_isp_video { bool running; }; +/* + * 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; }; /* -- cgit v1.2.3