Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3521520ybn; Fri, 27 Sep 2019 07:34:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWEnKP8ai1BAnVTnfee53CdD7GgKeGoXidyZkt8XnB8+cie9+8c79XQAWelWBMomXVWMR1 X-Received: by 2002:a17:906:53d6:: with SMTP id p22mr8075867ejo.91.1569594896084; Fri, 27 Sep 2019 07:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569594896; cv=none; d=google.com; s=arc-20160816; b=qDWlEyHo710OahwSOMlx+ISMxpT/3SvMwWHOZlwCaI6QEk+uVSGsUzLVZOd/aaL0J3 keFTaC93WrWeVc7Q7Qg35q6jlI71WQcqrCb17+g27/ZTVDMtjMfmahk2ysspxT3uirnH pHtfPDkF6DhBKxJVjBRx6glWOlb8iAOJcsHQGSx2GGrFqERF3iMa3vEcjQvxTD9PNdBJ mKB0vNCIdbV43ck1DHhpfm6xqzGsmTnOZ+VtZ/BgGhlY8rSMwprSS7E6t4jZMKLGRyPV +AC4dT3/qKOTZ8VszfzYCfAbdmsFgPcDk4TVuoKBegRvarwprVCpa2UXMOWU6+9emHgp Z2ug== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WnX7R7wGDvi86+z8DRxaMMdvAXinVWvvE2hU58nM6X4=; b=J0uFPUxOzLdhehIc59nSVjuEDF435l9yeXC9mL9X0DjZPulGeFEuKxIowcs+ijzKmN ymvwQ+1a4/s3F4SFX7JNQK0SQ/ZCYzhpv+oabwucJQ+lE7FQtwkt6R/xZuITMIp9dTdb TRkffz/l7WL8svX3R4JJva9Quu9PeuqWHfZOE48TpDewc9r8QFCg/Y7lVZ4R3k7PNfH3 QjeDzm/fA4tVk25YxPlA2JSqnH3VK2HBxsGYsHP11kbo9ujAUghVJZ6knKuvSzfhe8ED biA7HXohyTB+TdCW6QQ6baWSRdjN3rGLsLBn1VwWyLSvLw3cy/S0Xz2LTePcrrRrTkqr RJnQ== 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 f16si2817960ejc.73.2019.09.27.07.34.31; Fri, 27 Sep 2019 07:34: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 S1727689AbfI0OeU (ORCPT + 99 others); Fri, 27 Sep 2019 10:34:20 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:52467 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726540AbfI0OeU (ORCPT ); Fri, 27 Sep 2019 10:34:20 -0400 X-Originating-IP: 86.250.200.211 Received: from localhost.localdomain (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: paul.kocialkowski@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 0A24120002; Fri, 27 Sep 2019 14:34:17 +0000 (UTC) From: Paul Kocialkowski To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com Cc: Mauro Carvalho Chehab , Paul Kocialkowski , Chen-Yu Tsai , Maxime Ripard , Hans Verkuil , Ezequiel Garcia , Tomasz Figa , Nicolas Dufresne , Jernej Skrabec , Jonas Karlman , Thomas Petazzoni Subject: [PATCH v8 2/3] media: pixfmt: Document the HEVC slice pixel format Date: Fri, 27 Sep 2019 16:34:10 +0200 Message-Id: <20190927143411.141526-3-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190927143411.141526-1-paul.kocialkowski@bootlin.com> References: <20190927143411.141526-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the current state of the HEVC slice pixel format. The format will need to evolve in the future, which is why it is not part of the public API. Signed-off-by: Paul Kocialkowski --- .../media/uapi/v4l/pixfmt-compressed.rst | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Documentation/media/uapi/v4l/pixfmt-compressed.rst b/Documentation/media/uapi/v4l/pixfmt-compressed.rst index 292fdc116c77..7e9b2b939e59 100644 --- a/Documentation/media/uapi/v4l/pixfmt-compressed.rst +++ b/Documentation/media/uapi/v4l/pixfmt-compressed.rst @@ -188,6 +188,29 @@ Compressed Formats If :ref:`VIDIOC_ENUM_FMT` reports ``V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM`` then the decoder has no requirements since it can parse all the information from the raw bytestream. + * .. _V4L2-PIX-FMT-HEVC-SLICE: + + - ``V4L2_PIX_FMT_HEVC_SLICE`` + - 'S265' + - HEVC parsed slice data, as extracted from the HEVC bitstream. + This format is adapted for stateless video decoders that implement a + HEVC pipeline (using the :ref:`mem2mem` and :ref:`media-request-api`). + This pixelformat has two modifiers that must be set at least once + through the ``V4L2_CID_MPEG_VIDEO_HEVC_DECODE_MODE`` + and ``V4L2_CID_MPEG_VIDEO_HEVC_START_CODE`` controls. + Metadata associated with the frame to decode is required to be passed + through the following controls : + * ``V4L2_CID_MPEG_VIDEO_HEVC_SPS`` + * ``V4L2_CID_MPEG_VIDEO_HEVC_PPS`` + * ``V4L2_CID_MPEG_VIDEO_HEVC_SLICE_PARAMS`` + See the :ref:`associated Codec Control IDs `. + Buffers associated with this pixel format must contain the appropriate + number of macroblocks to decode a full corresponding frame. + + .. note:: + + This format is not yet part of the public kernel API and it + is expected to change. * .. _V4L2-PIX-FMT-FWHT: - ``V4L2_PIX_FMT_FWHT`` -- 2.23.0