Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1150947ybh; Thu, 16 Jul 2020 04:44:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa855pBq+adngu/tCMM/MAtBxVkrOm5gVsv9PrO5w7K7AmWLEXxHN3GrISKciw8nQe8Upx X-Received: by 2002:a17:906:c41:: with SMTP id t1mr2467134ejf.18.1594899855712; Thu, 16 Jul 2020 04:44:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594899855; cv=none; d=google.com; s=arc-20160816; b=WAL2bLGaH+nTGs5yVVIEmBAexQaUTUIPNc54tC57w6v0T05F7xHBjZeKGdYF5bGG/Z z1nUYj7cQAFOVX9opUfDBr9l+6cJGWKqET8Vqk/lS3qQwYjWwW2CiJBLDEgzmXJkYVXO Qn/YxIUw/91+PlbgYItuj8SXzfNbDVgLaTH5AcKmE3kjJ4YM1b4UjFgR8QRIkuHqVO8w t8bBbFqJSHB5KlVKqzoB2VzLn2xToaecldujn693k4lr1Ou5VsPhL4Jil9RbQh5GHhYY NK87rFKy9v+O5vF0Qx/8agXKflRd1KvJFd+EuB2Ip8uEmwaXev7eZd2Kz6rptzyF7j2K SUbw== 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=BxNLYfErXLMhk+zfUb3E1gdKvk7ClqMLnzZiQWXnjrE=; b=OiMzE8ukFsJSiFN46OqywPeWvUXgwSxZ4VAGLj/saEWSPzZgK1SnKohe4D1WmEpPGV TdTGL8quxVdb6/38U4iBzYzN9OK7qJSoYhRO0jC6llk0W1VgX5sulzrRV9zK+Ac+Gg35 AtmpiBbf5ah9/OAuffUko3lciPxlLRu4wYj0n/6Pp8EnHX0MrCLE1wFr/08ug3lDEgLv 67IJ6RvPbUV+kOuCiOfHQiB/vhx6o0sWKHyaHfMHbi08RQqykCO7wtZX0yqceJl/9pFO NrjZm7QHb86z8DybpqWIwmnw1c4SAiQUBtLNp9IEZnua5POC6NtGhlAUZIDNR3d9hseW CeDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h14si3138879edr.586.2020.07.16.04.43.51; Thu, 16 Jul 2020 04:44:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727963AbgGPLne (ORCPT + 99 others); Thu, 16 Jul 2020 07:43:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbgGPLnd (ORCPT ); Thu, 16 Jul 2020 07:43:33 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2484C061755; Thu, 16 Jul 2020 04:43:33 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id DB7AC2A551A Message-ID: <6e61d98bd8d7a6d41daf0edd449bd27558c0ac16.camel@collabora.com> Subject: Re: [PATCH 02/10] media: uapi: h264: Further clarify scaling lists order From: Ezequiel Garcia To: Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tomasz Figa , kernel@collabora.com, Jonas Karlman , Alexandre Courbot , Jeffrey Kardatzke , Nicolas Dufresne , Philipp Zabel , Maxime Ripard , Paul Kocialkowski Date: Thu, 16 Jul 2020 08:43:22 -0300 In-Reply-To: References: <20200715202233.185680-1-ezequiel@collabora.com> <20200715202233.185680-3-ezequiel@collabora.com> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3-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 On Thu, 2020-07-16 at 09:23 +0200, Hans Verkuil wrote: > On 15/07/2020 22:22, Ezequiel Garcia wrote: > > Commit 0b0393d59eb4a ("media: uapi: h264: clarify > > expected scaling_list_4x4/8x8 order") improved the > > documentation on H264 scaling lists order. > > > > This commit improves the documentation by clarifying > > that the lists themselves are expected in matrix order. > > "matrix order" is not a well defined term. Especially since different > programming languages lay out matrices differently (e.g. fortran uses > column-major order). Perhaps something like this is more unambiguous: > Agreed, "matrix order" is perhaps not a proper choice of words. > "The values on each scaling list are in row-major order." > > BTW, why not be explicit and use: > > __u8 scaling_list_4x4[6][4][4]; > __u8 scaling_list_8x8[6][8][8]; > > That makes it explicit and the order is just that of what the C language > uses. > I am not sure if that'll go in clearer direction. I'm thinking we just need to clarify the coefficients are in raster scan order, as opposed to a zig-zag scan order, which is a part of the decoding process. How about we simply say "raster scan order" and keep the patch as is? Thanks, Ezequiel > Regards, > > Hans > > > Signed-off-by: Ezequiel Garcia > > --- > > Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | 6 ++++-- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst > > index c2e17c02f77e..16bfc98ab2f6 100644 > > --- a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst > > +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst > > @@ -1725,12 +1725,14 @@ enum v4l2_mpeg_video_h264_hierarchical_coding_type - > > - ``scaling_list_4x4[6][16]`` > > - Scaling matrix after applying the inverse scanning process. > > Expected list order is Intra Y, Intra Cb, Intra Cr, Inter Y, > > - Inter Cb, Inter Cr. > > + Inter Cb, Inter Cr. The values on each scaling list are > > + expected in matrix order. > > * - __u8 > > - ``scaling_list_8x8[6][64]`` > > - Scaling matrix after applying the inverse scanning process. > > Expected list order is Intra Y, Inter Y, Intra Cb, Inter Cb, > > - Intra Cr, Inter Cr. > > + Intra Cr, Inter Cr. The values on each scaling list are > > + expected in matrix order. > > > > ``V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAMS (struct)`` > > Specifies the slice parameters (as extracted from the bitstream) > >