Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2128366ybi; Thu, 4 Jul 2019 05:39:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJHz0aH6ie9ycY8pKgqnv7hg1CzyjBlxLrNz5Hr/1dk5slyrc3QIkeD+AoAC/9dhhdyW+w X-Received: by 2002:a17:90a:a09:: with SMTP id o9mr19499107pjo.95.1562243999355; Thu, 04 Jul 2019 05:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562243999; cv=none; d=google.com; s=arc-20160816; b=VqFTf3TNnP5ckf/9VfszXrhYALafs6tTZXHV1hw9urAXnzz7M83Qocaf6sBKGs8wl/ cCWaMJ4N7EXWp4bWLMJv8gIUD/B8VIbGMs8ygokUEALWLzChV1tnXev0wLlG3PucrzEl pkQlyOMjSveBdynktcMqB3TAeLxgReYpsS3gq46rIAr0V629hkCl+Bq2bY8lj9yDqCTJ ArggSTJmR5sZ7xoqj7JrMTVU2m+X+lyGR9QI48dNxFP+W7EZYsOkkU64dRQSDSgTbAhC e5mWZVcaK1324FaynEFBiJDQRhU9eSnRi2+jND3oya+7cvQVsf8AQe7x7F3WImWM4sCu RFIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=JefukifJXccYE94mh8uTGcy6OW6KiGO9o4zJTHRbv2Y=; b=nAjymoFFCcQKokNDtaK4xojPhLb6ZYydJjrzXuxF19YGCwSHadTMFp4IcjSv7WCq+/ tT6MniYRZrAFY7xau0NviXyFFlkBT1yfDcCB2WccyQVj2D4u/KvJXTNxQbc6uLhTioYX 8bLUJGhunUZL8EYflyV6T0xvWBk1xUmDD/2M3xbUwG/7R49gtNjDdV9DA7vmVCsmDwEf /KW2fv4rQZQb3C9EluxwDp/okuG8MWq/89hYjpRMf1W4AVLklgmEMZIlQQOr/kkzbtVw Oe92A6AgB3f9Z0QxgtA6wY0eRoNhlzDK1UXaqCsmMwyoE5I7OshFW7m3IhbIi5cfbkY5 nWRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g24si5458751pfi.119.2019.07.04.05.39.44; Thu, 04 Jul 2019 05:39:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727780AbfGDMjV (ORCPT + 99 others); Thu, 4 Jul 2019 08:39:21 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:51012 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727682AbfGDMjU (ORCPT ); Thu, 4 Jul 2019 08:39:20 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 3C0E028A758 Message-ID: <6b8d2c435335a81d362d18f23bc4229601b2f512.camel@collabora.com> Subject: Re: [PATCH v2 1/2] media: uapi: Add VP8 stateless decoder API From: Ezequiel Garcia To: Philipp Zabel , linux-media@vger.kernel.org, Hans Verkuil Cc: kernel@collabora.com, Nicolas Dufresne , Tomasz Figa , linux-rockchip@lists.infradead.org, Heiko Stuebner , Jonas Karlman , Boris Brezillon , Paul Kocialkowski , Alexandre Courbot , fbuergisser@chromium.org, linux-kernel@vger.kernel.org, Pawel Osciak Date: Thu, 04 Jul 2019 09:39:10 -0300 In-Reply-To: <1562164149.4604.9.camel@pengutronix.de> References: <20190702170016.5210-1-ezequiel@collabora.com> <20190702170016.5210-2-ezequiel@collabora.com> <1562164149.4604.9.camel@pengutronix.de> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Philipp, Thanks a lot for reviewing. On Wed, 2019-07-03 at 16:29 +0200, Philipp Zabel wrote: > On Tue, 2019-07-02 at 14:00 -0300, Ezequiel Garcia wrote: > > From: Pawel Osciak > > > > Add the parsed VP8 frame pixel format and controls, to be used > > with the new stateless decoder API for VP8 to provide parameters > > for accelerator (aka stateless) codecs. > > > > Signed-off-by: Pawel Osciak > > Signed-off-by: Ezequiel Garcia > > -- > > Changes from v1: > > * Move 1-bit fields to flags in the respective structures. > > * Add padding fields to make all structures 8-byte aligned. > > * Reorder fields where needed to avoid padding as much as possible. > > * Fix documentation as needed. > > > > Changes from RFC: > > * Make sure the uAPI has the same size on x86, x86_64, arm and arm64. > > * Move entropy coder state fields to a struct. > > * Move key_frame field to the flags. > > * Remove unneeded first_part_offset field. > > * Add documentation. > > --- > > Documentation/media/uapi/v4l/biblio.rst | 10 + > > .../media/uapi/v4l/ext-ctrls-codec.rst | 323 ++++++++++++++++++ > > .../media/uapi/v4l/pixfmt-compressed.rst | 20 ++ > > drivers/media/v4l2-core/v4l2-ctrls.c | 8 + > > drivers/media/v4l2-core/v4l2-ioctl.c | 1 + > > include/media/v4l2-ctrls.h | 3 + > > include/media/vp8-ctrls.h | 110 ++++++ > > 7 files changed, 475 insertions(+) > > create mode 100644 include/media/vp8-ctrls.h > > [..] > > + * - __u8 > > + - ``num_dct_parts`` > > + - Number of DCT coefficients partitions. > > I assume this must be no larger than 8. Is this mandated by the spec? If > so, should it be documented here and checked by v4l2-core? > Good catch. Yes, it's mandated. The header [1] contains a two-bit field called "log2_nbr_of_dct_partitions", so partition count must be 1, 2, 4 or 8. [1] https://www.rfc-editor.org/rfc/rfc6386.html#section-9.5 I'll add this to the documentation. Also, I think this can be checked in std_validate(). Thanks, Ezequiel