Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE91FC282DA for ; Fri, 19 Apr 2019 07:23:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BF80121736 for ; Fri, 19 Apr 2019 07:23:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SPpC3OoI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BF80121736 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vAMoXk7NOSZ/beUnGM5AF4WM1rrWeXGjy/NxfPkANiM=; b=SPpC3OoIuXhXum runzp5uL0sncv98wHukKh67NVaBr644weTNKMB9bMAib1HhHmNGg/pVtEVQz4emSUWE+PjQTesu3V 2pGxVx0/d/ShKWBdzjLWg2p+S8lz3clL7NcPX1mX3PL/edhUDVyDXBai1jhuQp7YJYJ6IxPWNYZfW W0As8ldunTpzQP8z6QRZRQYUUTqiIwz1dg7Gzx4TI79mRS3y9/u26z2s85d0PIB3D/3p/2Gf2TA5m O45aXqUsGRhw9e8f5KEqJYUBqvxKXiHdPeeJk2y18qc9leETtOP8riUagdA+D/W7zdKS6UY2k9+1y X8VBQYULVc1BRJfqUQ6g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHNrW-000736-MC; Fri, 19 Apr 2019 07:23:06 +0000 Received: from relay10.mail.gandi.net ([217.70.178.230]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHNrO-0006uk-TN for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 07:23:01 +0000 Received: from aptenodytes (aaubervilliers-681-1-42-238.w90-88.abo.wanadoo.fr [90.88.160.238]) (Authenticated sender: paul.kocialkowski@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id C128624000A; Fri, 19 Apr 2019 07:22:52 +0000 (UTC) Message-ID: <011ad65faa3517b2dd51be4a03ad52bf72c93557.camel@bootlin.com> Subject: Re: [PATCH v3 1/2] media: v4l: Add definitions for the HEVC slice format and controls From: Paul Kocialkowski To: Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com Date: Fri, 19 Apr 2019 09:22:51 +0200 In-Reply-To: <32979080-a86f-01a4-a9e3-bcb970a85135@xs4all.nl> References: <20190214095309.19594-1-paul.kocialkowski@bootlin.com> <20190214095309.19594-2-paul.kocialkowski@bootlin.com> <32979080-a86f-01a4-a9e3-bcb970a85135@xs4all.nl> Organization: Bootlin User-Agent: Evolution 3.32.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_002259_348490_A8C84E87 X-CRM114-Status: GOOD ( 16.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , Alexandre Courbot , Maxime Ripard , Greg Kroah-Hartman , Randy Li , Tomasz Figa , Chen-Yu Tsai , Sakari Ailus , Mauro Carvalho Chehab , Ezequiel Garcia Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, On Tue, 2019-04-02 at 13:51 +0200, Hans Verkuil wrote: > On 2/14/19 10:53 AM, Paul Kocialkowski wrote: [...] > > +.. c:type:: v4l2_hevc_dpb_entry > > + > > +.. cssclass:: longtable > > + > > +.. flat-table:: struct v4l2_hevc_dpb_entry > > + :header-rows: 0 > > + :stub-columns: 0 > > + :widths: 1 1 2 > > + > > + * - __u32 > > + - ``buffer_tag`` > > + - The V4L2 buffer tag that matches the associated reference picture. > > This struct documentation is out of date with the actual struct! Woops, sorry about that. I'll make another pass on the structures vs docs before submitting the next version. > > +#define V4L2_HEVC_DPB_ENTRY_RPS_ST_CURR_BEFORE 0x01 > > +#define V4L2_HEVC_DPB_ENTRY_RPS_ST_CURR_AFTER 0x02 > > +#define V4L2_HEVC_DPB_ENTRY_RPS_LT_CURR 0x03 > > + > > +#define V4L2_HEVC_DPB_ENTRIES_NUM_MAX 16 > > + > > +struct v4l2_hevc_dpb_entry { > > + __u64 timestamp; > > I would call this 'reference_ts' rather than plain 'timestamp'. > Or at least some other name that reflects what the timestamp > refers to. Well, I think using "ts" instead of "timestamp" is much less explicit (I'm really not a big fan of abbreviations...). Also, this field is in the dpb entry structure and since a dpb entry describes a reference, I find it quite straightforward already without any added prefix. The prefix feels redundant with the name of the structure that holds the element. I think the same should apply for mpeg-2 and h.264. > > + __u8 rps; > > + __u8 field_pic; > > + __u16 pic_order_cnt[2]; > > + __u8 padding[2]; > > padding fields here or elsewhere are not documented. Do you really > need them? What if you changed rps and field_pic to __u16 instead? > > Padding fields are painful to maintain in my experience. I think we'll need to rework the controls to include flags and such in the not-too-distant future. So there will be an occasion to change it then (the same work also needs to be done for MPEG-2). If you prefer that we make the change now and later update it along with the controls, I can definitely do that too. Cheers, Paul -- Paul Kocialkowski, Bootlin Embedded Linux and kernel engineering https://bootlin.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel