From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-yw0-f173.google.com ([209.85.161.173]:33355 "EHLO mail-yw0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750704AbdFFEaa (ORCPT ); Tue, 6 Jun 2017 00:30:30 -0400 Received: by mail-yw0-f173.google.com with SMTP id 63so51008238ywr.0 for ; Mon, 05 Jun 2017 21:30:29 -0700 (PDT) Received: from mail-yb0-f173.google.com (mail-yb0-f173.google.com. [209.85.213.173]) by smtp.gmail.com with ESMTPSA id t14sm7118402ywf.32.2017.06.05.21.30.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Jun 2017 21:30:27 -0700 (PDT) Received: by mail-yb0-f173.google.com with SMTP id 4so12549322ybl.1 for ; Mon, 05 Jun 2017 21:30:27 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1496695157-19926-2-git-send-email-yong.zhi@intel.com> References: <1496695157-19926-1-git-send-email-yong.zhi@intel.com> <1496695157-19926-2-git-send-email-yong.zhi@intel.com> From: Tomasz Figa Date: Tue, 6 Jun 2017 13:30:06 +0900 Message-ID: Subject: Re: [PATCH 01/12] videodev2.h, v4l2-ioctl: add IPU3 meta buffer format To: Yong Zhi Cc: linux-media@vger.kernel.org, Sakari Ailus , "Zheng, Jian Xu" , "Mani, Rajmohan" , "Toivonen, Tuukka" Content-Type: text/plain; charset="UTF-8" Sender: linux-media-owner@vger.kernel.org List-ID: Hi Yong, On Tue, Jun 6, 2017 at 5:39 AM, Yong Zhi wrote: > Add the IPU3 specific processing parameter format > V4L2_META_FMT_IPU3_PARAMS and metadata formats > for 3A and other statistics: Please see my comments inline. > > V4L2_META_FMT_IPU3_PARAMS > V4L2_META_FMT_IPU3_STAT_3A > V4L2_META_FMT_IPU3_STAT_DVS > V4L2_META_FMT_IPU3_STAT_LACE > > Signed-off-by: Yong Zhi > --- > drivers/media/v4l2-core/v4l2-ioctl.c | 4 ++++ > include/uapi/linux/videodev2.h | 6 ++++++ > 2 files changed, 10 insertions(+) [snip] > +/* Vendor specific - used for IPU3 camera sub-system */ > +#define V4L2_META_FMT_IPU3_PARAMS v4l2_fourcc('i', 'p', '3', 'p') /* IPU3 params */ > +#define V4L2_META_FMT_IPU3_STAT_3A v4l2_fourcc('i', 'p', '3', 's') /* IPU3 3A statistics */ > +#define V4L2_META_FMT_IPU3_STAT_DVS v4l2_fourcc('i', 'p', '3', 'd') /* IPU3 DVS statistics */ > +#define V4L2_META_FMT_IPU3_STAT_LACE v4l2_fourcc('i', 'p', '3', 'l') /* IPU3 LACE statistics */ We had some discussion about this with Laurent and if I remember correctly, the conclusion was that it might make sense to define one FourCC for a vendor specific format, ('v', 'n', 'd', 'r') for example, and then have a V4L2-specific enum within the v4l2_pix_format(_mplane) struct that specifies the exact vendor data type. It seems saner than assigning a new FourCC whenever a new hardware revision comes out, especially given that FourCCs tend to be used outside of the V4L2 world as well and being kind of (de facto) standardized (with existing exceptions, unfortunately). Best regards, Tomasz