Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp215257imm; Wed, 22 Aug 2018 02:55:56 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxoJU+LUidq+DLfkkit6Irrj4NfD58p9QnLl0fFuYbZ0qpN2w4SQS4wexqd60wajqcF/UJ7 X-Received: by 2002:a17:902:8b86:: with SMTP id ay6-v6mr53195385plb.25.1534931756766; Wed, 22 Aug 2018 02:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534931756; cv=none; d=google.com; s=arc-20160816; b=krUUXtHJzZxYL3v5D7D2G7ZoKXMiBdvGgueNYalkn1lvoA2F8j9BIsaXL/evB7ueI8 DKj8OuA218BhgTZt3eUkI+6gENk1qQtcBJXdOjzH1QHSRBf8jkQHZ+XBLRBZnzdDbwt2 NUUoKJ7TvfR53CjrC+0qJUa095LPUvC97mNMHcwmPWBkJaPC7flSIxXrn1eGAPBwnegw E6t78BOvsTOdMmhpnVyhSbCj+e67L5Rvct4rrAtgyaNXYxoeofw7NtqNH3mHLTZj1/nc LVhU0cT9X7Bk0bICNhlqFnSKVlKHO5+/ZiGqP9npLQfPDwbuvb2lb6M9g3OhU+k+omGf XUXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=pHLlpe46iozvBQLH2P28nniBBlGbrFvyzPoOtjWoRhg=; b=UHVeVtios0rKOSTkRGsUJNXAP4JNfCr+7WzITalrrSkgB5s7u/Xn5YOtLYcLXnF1TB utJibYl/cghHHDkBhpaSJUHiBoYohFmjwxr1cFNpwL2E9MbtCaRT1MRxA/Ag63Ic0z5S YJPN5AiOn7t0MC0Z5LVkrfYj4ok0Az88rokxqrgRcAEk9LR+Mym3TKL0DEvP/c3b760F RyJAaF13UpKXxmwRQSq/XfwtNVT5XrzjkLRRPovxV3465JV940ZQhDYqpZ1nqolTLWhl 7tK/+vl+7QjF+shZMet/NUTZyOLk4zJzgonZVy3mCuxoPsf+h05GjsfnAO4SNJ/2y/Ti jkEw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1-v6si159705pgf.555.2018.08.22.02.55.41; Wed, 22 Aug 2018 02:55:56 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728302AbeHVMkB (ORCPT + 99 others); Wed, 22 Aug 2018 08:40:01 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34584 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbeHVMkB (ORCPT ); Wed, 22 Aug 2018 08:40:01 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id B181A20728; Wed, 22 Aug 2018 11:15:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (AAubervilliers-681-1-85-9.w90-88.abo.wanadoo.fr [90.88.27.9]) by mail.bootlin.com (Postfix) with ESMTPSA id 7B16220711; Wed, 22 Aug 2018 11:15:56 +0200 (CEST) Date: Wed, 22 Aug 2018 11:15:57 +0200 From: Maxime Ripard To: Ezequiel Garcia Cc: tfiga@chromium.org, posciak@chromium.org, Paul Kocialkowski , hans.verkuil@cisco.com, acourbot@chromium.org, sakari.ailus@linux.intel.com, Laurent Pinchart , Chen-Yu Tsai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, nicolas.dufresne@collabora.com, jenskuske@gmail.com, linux-sunxi@googlegroups.com, Thomas Petazzoni , Guenter Roeck Subject: Re: [PATCH 1/9] CHROMIUM: v4l: Add H264 low-level decoder API compound controls. Message-ID: <20180822091557.gtnlgoebyv6yttzf@flea> References: <20180613140714.1686-1-maxime.ripard@bootlin.com> <20180613140714.1686-2-maxime.ripard@bootlin.com> <80e1d9cb49c6df06843e49332685f2b401023292.camel@collabora.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="noua72ythpkh5fic" Content-Disposition: inline In-Reply-To: <80e1d9cb49c6df06843e49332685f2b401023292.camel@collabora.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --noua72ythpkh5fic Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Aug 21, 2018 at 01:58:38PM -0300, Ezequiel Garcia wrote: > On Wed, 2018-06-13 at 16:07 +0200, Maxime Ripard wrote: > > From: Pawel Osciak > >=20 > > Signed-off-by: Pawel Osciak > > Reviewed-by: Wu-cheng Li > > Tested-by: Tomasz Figa > > [rebase44(groeck): include linux/types.h in v4l2-controls.h] > > Signed-off-by: Guenter Roeck > > Signed-off-by: Maxime Ripard > > --- > >=20 > [..] > > diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videod= ev2.h > > index 242a6bfa1440..4b4a1b25a0db 100644 > > --- a/include/uapi/linux/videodev2.h > > +++ b/include/uapi/linux/videodev2.h > > @@ -626,6 +626,7 @@ struct v4l2_pix_format { > > #define V4L2_PIX_FMT_H264 v4l2_fourcc('H', '2', '6', '4') /* H264 = with start codes */ > > #define V4L2_PIX_FMT_H264_NO_SC v4l2_fourcc('A', 'V', 'C', '1') /* H26= 4 without start codes */ > > #define V4L2_PIX_FMT_H264_MVC v4l2_fourcc('M', '2', '6', '4') /* H264 = MVC */ > > +#define V4L2_PIX_FMT_H264_SLICE v4l2_fourcc('S', '2', '6', '4') /* H26= 4 parsed slices */ >=20 > As pointed out by Tomasz, the Rockchip VPU driver expects start codes [1]= , so the userspace > should be aware of it. Perhaps we could document this pixel format better= as: >=20 > #define V4L2_PIX_FMT_H264_SLICE v4l2_fourcc('S', '2', '6', '4') /* H264 p= arsed slices with start codes */ I'm not sure this is something we want to do at that point. libva doesn't give the start code, so this is only going to make the life of the sane controllers more difficult. And if you need to have the start code and parse it, then you're not so stateless anymore. Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --noua72ythpkh5fic Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlt9KcwACgkQ0rTAlCFN r3RpKQ//aADj5oLUZV78d16Y1whgjwjeyfX6eBcc6VmFhBvEbu68xB2blBtc0Z+J 6lo4AisRAK9YAO6WBtfNCL+ZIgWs2RD7PF+HiXah789Ksfdk2bzESGFou7EfS37o 67v9cxz1tnts7TQbPx5RQlpfb56uuvGZo6fRV+KXYq71hwCgx0IjeGhZc1QsBCdE O3b4YiINvlTNQZQZfGUszA4wQ/+gT4OZXmtQu5SpLT2pdre57SmQ8EN9+Z5GthBQ vhdhSlLP9L6TmZonQfA0HIPYtLsfPCPtOMbznS9KEqsLuGDJ20dUTLagXTJRVcEJ WwgrdiX7OXoUsB6PmfNMr0I7cxWATh3k54OIl2+dSPJANdjIUwWb1s7yBAlYBwWu 5vg22giYTU7bj4oc5Vfe1MSm6huM7We0ED93Y/L7PWfq9WbDMeeKZMMh7viTg3Tq H+L77lsxDwusG+NsWoKpFhq08UOcaOUue+dBPadRILfYEbizccrob+0x82APctWA KBDAukqZp6sRRV8Yl0op2trS7W332pnTDv/09zXNEIrUK+yXetrxEIX74aJY4qRF M34vgMQdok1/RJRZLo18p39kLyKQB+CZbNtFWC6VK0Ziu+vnEluXXq3wU7c2qIcb rwMeeWQP9kNcO04AcJ7E+pAYYMme159CkaktdL4a7hL5eaiORao= =tUm/ -----END PGP SIGNATURE----- --noua72ythpkh5fic--