Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2158300ybi; Thu, 4 Jul 2019 06:07:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyobfTxkAJA5Z5CVcjBiSzMsPLlm1b0DoiBowM6P4dlIMePpwUOIVeUeMYtvQfKSLjpsrec X-Received: by 2002:a63:c4:: with SMTP id 187mr30085265pga.272.1562245636001; Thu, 04 Jul 2019 06:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562245635; cv=none; d=google.com; s=arc-20160816; b=LbPpbXSPtbN6e04gK1vN3mW7LK4UZgbYc5CHg/4Ogz+PFKkroSFh8/i6msYxF4mtJB 7ffnsOzKH7GoYls/buaOY5lqAVEuyxUFURlceNC8C6yhYtMRzVz9ksDAoMU1E7UL0mcU nXk1DYFrgCfLaBVZS8UVuX2Z4CxxFBQ/622KY5kFrGfk3bXbfcNa2GBJjCQbYfaQochn BgtEt45IbauPDYug5Tvp3sD/9hcu9PJTn6/PFsCeJH/A/8Xukyks1DGY3F1FBW11nwSW MmzF7ESkx0XZrRwBg5oD1HP5folhbnV0x2q7ePz4e2ktGWlB+LYdarhTDGa+JDhREnz2 m1Eg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=oxyWL1Bv9zRBg0Kawh+U9X+RHSShMpGlvl99LiUKOek=; b=RM8FpJJ6+1cBOWfndRGTNDhiWyALlt9PwNETkN+FAAx6aHXCw5Xivbx13bAfGtgEiF Ctb5v4ZSnHJaUAXcE6BAEd9xaba235jxtegXnYgyXkbBLrX6/FopqB6ZaESstU4Dx16c wKTOMCtA86NphL3OdWhMQXfjjGrQRTsFq/S0OIxSKKXgwIMIYOSfTYImdVf79/oPevpD vLbUGfYPmIQHJm9m00HwCsCwyw/vfACW0L5EG8KMkT5/C0jSr3AZ/ATGLed9Pjof4LlR FT2z/nJF4bL/DY1OkOgjjj6szMTm4btV8y1BVjyUcceS4cNzN91X5J4Gx4kD6M+P3yRb NBgg== 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 o24si5494863pll.280.2019.07.04.06.07.00; Thu, 04 Jul 2019 06:07:15 -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 S1727279AbfGDNGH (ORCPT + 99 others); Thu, 4 Jul 2019 09:06:07 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:51250 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726994AbfGDNGH (ORCPT ); Thu, 4 Jul 2019 09:06:07 -0400 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id E9D8F287FCD; Thu, 4 Jul 2019 14:06:04 +0100 (BST) Date: Thu, 4 Jul 2019 15:06:01 +0200 From: Boris Brezillon To: Ezequiel Garcia Cc: Nicolas Dufresne , linux-media@vger.kernel.org, Hans Verkuil , kernel@collabora.com, Tomasz Figa , linux-rockchip@lists.infradead.org, Heiko Stuebner , Jonas Karlman , Philipp Zabel , Paul Kocialkowski , Alexandre Courbot , fbuergisser@chromium.org, linux-kernel@vger.kernel.org, Pawel Osciak Subject: Re: [PATCH v2 1/2] media: uapi: Add VP8 stateless decoder API Message-ID: <20190704150601.05509027@collabora.com> In-Reply-To: References: <20190702170016.5210-1-ezequiel@collabora.com> <20190702170016.5210-2-ezequiel@collabora.com> <4206efe071473daee60cc330ae7934697110516f.camel@collabora.com> Organization: Collabora X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 04 Jul 2019 10:00:33 -0300 Ezequiel Garcia wrote: > > Oops, this is just an internal note, it seems I forgot to remove this one. > > > I am right to think that this is basically the size in bits of the > > frame header ? Maybe it could be another way to formulate it ? I'm just > > trying to think of formulation that will better guide the developers > > implementing the parser feeding this. You basically need to parse the > > header to get this size (as everything is dynamically sized). > > > > Depending what you call "frame header", then yes, it's the size in bits. > > first_part_size parttion_sizes[0] > ^ ^ > | | > +--------+------+ +-----+-----+ > | control part | | | > +--------+----------------+------------------+-----------+-----+-----------+ > | tag 3B | extra 7B | hdr | mb_data | dct sz | dct part0 | ... | dct partn | > +--------+-----------------------------------+-----------+-----+-----------+ > > The above shows a VP8 frame, "macroblock_bit_offset" is the size in bits of > the "hdr" portion: i.e. the header of the first partition (aka control partition). > > Thinking about it, the current description is quite confusing. > > How about: > > "Size in bits of the frame header. In other words, this the size in bits of the header > portion of the first partition". How about having a similar diagram somewhere in the spec? It's usually much clearer than a sentence, at least that's my opinion.