Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3291982pxy; Sun, 25 Apr 2021 20:37:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/Qhj/XjAhS60VxwcpyUzkS3XV5V8j6ZxGAhYb5yRBi8aXJqJfsJSxCWSOYoTA35IJlvOD X-Received: by 2002:aa7:87d3:0:b029:259:ff63:3500 with SMTP id i19-20020aa787d30000b0290259ff633500mr15215431pfo.35.1619408264495; Sun, 25 Apr 2021 20:37:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619408264; cv=none; d=google.com; s=arc-20160816; b=TJn5XU/2cxegzzAGM1w69UchGecwqat8pWJpy/AewZQIJKvNOoz7ExluiSWimhLb3i 1ADavP7pDsPl5Jlp1z/w6UMSscGLMzOEWTzGsPbzuN5dE24KtuD8jShUd5pnIGef7S4d woxy5WDqsKyaGuoPDMHHeReECp8hPLs+OgtngII2RLXrAq70SWp2dyWo/y+58zK5mCuf GMXrxMUS+wc2GEFPakl+NNnwX3G+zReFg9QZue2cXRxGll1OJhAGCQKXIBhPiFIiNnts zUltkh7tPd1UmUyr5N8J7I2AKT8KQ3MhTgtU2xMV725gueI54XkEsdfhOMNRxnRk2fXX SV3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=71rcToGowH5kRoxR0+18lluUVc55FtfnIZKIP282F+g=; b=VpGvt9wAYDHH2qbJ7mDbMDmZ6uJPZ/rtcN9ZJxDV5JS/IKbBcNhS10zxK23ABd/cOQ 41BUtCN96ZGu1Z9wHoMKdukIwPYDyE6d/uXPCXlvhRrgYsraVH67qQeHWFTgcCoIZKtt TcHLayMEVJeSJfhTgvS1BPNM2BLAcl0fLx4L1CB7y1rDSvtFQy6zJ5GQsTEjY13Fq4LY cAaZowWnEa4wf1ilZ75pBx4tRt2KI5hRlhebA3/2q5wm6ScUBTohPxXfwrhieur4ZZ/1 sMa2RXMhAeXpEImWJfWLpaPO+mBCaFUWOd2N8kuQnKVNyYslOgKBtOyRkCph3s/gthh/ P1zA== 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 b14si2594280plh.198.2021.04.25.20.37.32; Sun, 25 Apr 2021 20:37:44 -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 S231616AbhDZDgf (ORCPT + 99 others); Sun, 25 Apr 2021 23:36:35 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:38186 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231346AbhDZDge (ORCPT ); Sun, 25 Apr 2021 23:36:34 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id E74B31F41F55 From: Ezequiel Garcia To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel@collabora.com, Jonas Karlman , Hans Verkuil , Nicolas Dufresne , Philipp Zabel , Maxime Ripard , Paul Kocialkowski , Jernej Skrabec , Daniel Almeida , Ezequiel Garcia Subject: [PATCH v6 00/10] MPEG-2 stateless API cleanup and destaging Date: Mon, 26 Apr 2021 00:35:12 -0300 Message-Id: <20210426033522.69395-1-ezequiel@collabora.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi everyone, Here's another round addressing Hans' feedback. More details about this can be found in the previous cover letter [1]: [1] https://lore.kernel.org/linux-media/20210403180756.175881-11-ezequiel@collabora.com/T/ The documentation looks good, and so does pahole, but it's really easy to miss some detail in this series, so we'd appreciate if more people could take a look. v6: * Reorder patch "media: controls: Log MPEG-2 stateless control in .std_log" to avoid a new compile warning. * Remove "reserved" field in mpeg2 sequence control, noted by Hans. * Reorder "flags" field in mpeg2 picture control, noted by Hans. * Typos and comments fixes, noted by Hans. v5: * Rename "quantization" to "quantisation", so the terminology matches the MPEG-2 specification. This is the only change in v5, compared to v4. v4: * Rework and clarify quantization matrices control semantics. * Move reference buffer fields to the picture parameter control. * Remove slice parameters control. This can be added back in the future if needed, but for now it's not used. See patch 6/9 for details. * Destage the API. v3: * No API changes, just minor boilerplate fixes for the new controls to be properly exposed, initialized and validated. v2: * Fixed bad use of boolean negation in a flag, which was fortunately reported by 0day bot. Ezequiel Garcia (10): media: uapi: mpeg2: Rename "quantization" to "quantisation" media: uapi: mpeg2: rework quantisation matrices semantics media: uapi: mpeg2: Cleanup flags media: uapi: mpeg2: Split sequence and picture parameters media: uapi: mpeg2: Move reference buffer fields media: hantro/cedrus: Remove unneeded slice size and slice offset media: uapi: mpeg2: Remove V4L2_CID_MPEG_VIDEO_MPEG2_SLICE_PARAMS media: uapi: Move the MPEG-2 stateless control type out of staging media: controls: Log MPEG-2 stateless control in .std_log media: uapi: move MPEG-2 stateless controls out of staging .../media/v4l/ext-ctrls-codec-stateless.rst | 214 +++++++++++++++++ .../media/v4l/ext-ctrls-codec.rst | 217 ------------------ .../media/v4l/pixfmt-compressed.rst | 11 +- .../media/v4l/vidioc-g-ext-ctrls.rst | 12 + .../media/v4l/vidioc-queryctrl.rst | 18 +- .../media/videodev2.h.rst.exceptions | 5 +- drivers/media/v4l2-core/v4l2-ctrls.c | 122 +++++++--- drivers/staging/media/hantro/hantro_drv.c | 9 +- .../media/hantro/hantro_g1_mpeg2_dec.c | 110 ++++----- drivers/staging/media/hantro/hantro_hw.h | 2 +- drivers/staging/media/hantro/hantro_mpeg2.c | 2 +- .../media/hantro/rk3399_vpu_hw_mpeg2_dec.c | 106 ++++----- drivers/staging/media/sunxi/cedrus/cedrus.c | 10 +- drivers/staging/media/sunxi/cedrus/cedrus.h | 5 +- .../staging/media/sunxi/cedrus/cedrus_dec.c | 10 +- .../staging/media/sunxi/cedrus/cedrus_mpeg2.c | 97 +++----- include/media/mpeg2-ctrls.h | 82 ------- include/media/v4l2-ctrls.h | 11 +- include/uapi/linux/v4l2-controls.h | 112 +++++++++ include/uapi/linux/videodev2.h | 7 + 20 files changed, 610 insertions(+), 552 deletions(-) delete mode 100644 include/media/mpeg2-ctrls.h -- 2.30.0