From patchwork Fri Dec 24 01:27:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jammy Huang X-Patchwork-Id: 12698759 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B5774C433F5 for ; Fri, 24 Dec 2021 02:26:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xUqRUhwjogD8MfYO8TdM7gH81tmR92sPIGILgBoEWUY=; b=44vHTiTVQIuweT CCVYNjOrk7V2C/CHfsvYsSsX1SnsxLrBV/0mmhAIVvaRZroKF+aE5sA5hIW/UTSuOQiVLvKQ9XKWY /eib6C755Ca3P3Nbzt5peogbJ0eEqaYWp6YwRi+kHY77vAVObhdUK79yVtccb6HHgcMj3RTlXtn3a 8x0TOtRHLCAJ3gFm+NFSRqAbQw/ZMwrWKOUNXRZY1fsGn0JX5OYgh6MkP5CZhuOKf9tY4y3PacniK fj6a167ZAk/VxIO2KYcAJdA3TaP5ZjVMc114sea9gUJWVhgPfVC3ZdcU12k54+E0FmAwyeGVkK2yn UU6ueOY3x6qA0Pvixikg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0aGP-00Df80-IE; Fri, 24 Dec 2021 02:24:57 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0aGF-00Df6Y-Df for linux-arm-kernel@bombadil.infradead.org; Fri, 24 Dec 2021 02:24:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:In-Reply-To:References; bh=XcV2mR1glgmlRJuLoyVWFwHoXZtx12TBaveZCsfjzJQ=; b=LTaU11PA0a/5hnQlkqlnBzVDwD 3UH48rBOs0RhbaleibOrk0RphT2ra2E7oKvPgB+9l1qXEWtJovckqeIufwYepR0SNdnji0wZf58wz Yfs6WtpCUB8VsTpbKpM/bjYdcJXMjPyVi5QZAr7v2453t610f+uvkeWSqtdatRtLheKkP+rbtbb0p 8tYlBn0Ip2YYabI/QcDxoKKqLyGSuPYyCKZS6R39clt+Q2SwT4uWkGqBUW48KcGzQ7Fp42XTVx7Wq xbdnWUt54ojcMddwEjQcF8OACWWfKsqPUK3ZaZKx7JKjthScrGahgnicFf3U0wa6ehTDlQT7ToWOS 5GxmtS7A==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0ZNw-003DEv-0o for linux-arm-kernel@lists.infradead.org; Fri, 24 Dec 2021 01:29:00 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 1BO1M7jM007688; Fri, 24 Dec 2021 09:22:07 +0800 (GMT-8) (envelope-from jammy_huang@aspeedtech.com) Received: from JammyHuang-PC.aspeed.com (192.168.2.115) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 24 Dec 2021 09:27:37 +0800 From: Jammy Huang To: , , , , , , , , , , , Subject: [PATCH v8 0/4] add aspeed-jpeg support for aspeed-video Date: Fri, 24 Dec 2021 09:27:34 +0800 Message-ID: <20211224012738.1551-1-jammy_huang@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [192.168.2.115] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 1BO1M7jM007688 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211224_012857_091018_6CA54B61 X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The aim of this series is to add aspeed-jpeg support for aspeed-video driver. aspeed-jpeg is a per-frame differential jpeg format which only compress the parts which are different from the previous frame. In this way, it reduces both the amount of data to be transferred by network and those to be decoded on the client side. In the last, debugfs information is also updated per this change. Changes in v8: - Add information of decoder's implementation Changes in v7: - Separate other patches alone from aspeed-jpeg series - for Aspeed-jpeg, generate an I frame every 8 frames - rename compression_mode as compression_scheme - Add more reference for aspeed-jpeg - Update debugfs message Changes in v6: - Update description for new format, aspeed-jpeg, in Documentation. Changes in v5: - Use model data to tell different soc Changes in v4: - Add definition for the Aspeed JPEG format - Reserve controls for ASPEED - Use s_fmt to update format rather than new control - Update aspeed hq quality range, 1 ~ 12 Jammy Huang (4): media: v4l: Add definition for the Aspeed JPEG format media: v4l2-ctrls: Reserve controls for ASPEED media: aspeed: Support aspeed mode to reduce compressed data media: aspeed: Extend debug message .../media/uapi/v4l/pixfmt-reserved.rst | 17 ++ drivers/media/platform/aspeed-video.c | 287 ++++++++++++++++-- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/uapi/linux/aspeed-video.h | 15 + include/uapi/linux/v4l2-controls.h | 5 + include/uapi/linux/videodev2.h | 1 + 6 files changed, 307 insertions(+), 19 deletions(-) create mode 100644 include/uapi/linux/aspeed-video.h