From patchwork Fri Oct 28 02:35:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jammy Huang X-Patchwork-Id: 799 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp576961wru; Thu, 27 Oct 2022 19:40:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6sulzqJhQ/tfpqpamUtK1VyOjfgVKYXRKqXRiCN3Iv9dXH5RLlM24UkAp33gLlij0+pXPd X-Received: by 2002:a17:906:845b:b0:7ad:9673:7dd7 with SMTP id e27-20020a170906845b00b007ad96737dd7mr3144018ejy.509.1666924819139; Thu, 27 Oct 2022 19:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666924819; cv=none; d=google.com; s=arc-20160816; b=pIfE7CXZMIvQzjthoRrJrkW2MY3DPLE7L+/jN44WxEOYekwWuq5kBqmvwUJo1Ymbpy GWW8LbdBYFiQeIYfuPzRzfdNrgWPgUIE2JKgJtgzM31fCRt5AVzJQlAj+fYnnKdBTVaw Yl80egwp+XNzMcpuLdUvgPkzfKG10C4oXDg527dR2aA/ulfj5gAtugxn3bVKqVc0K1YO j4QqHEzRLx4s8cSiYmE1guhWeS2dsq4CoM0AYiGjlRV1TN6aFm8jLiLTjhtnhT4wieSW ijcc8mZVXlHW+BQbQX5U0PaWL8M1eZ9M0QVXHqq8ys2M1tbCP/HTXRwDmhgGq9tVuHYn v96g== 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:to:from; bh=7hJD6srmhRJbRk8JUFz8Hf16IJDtEwKPUQN26Wwu3Tg=; b=wAdl3TkOVA6BgMeYG8kzjGQmdNtV26QHSoZxqR5oWrxKJt7aN7ER8Umz1MGO+k7RJF WbLC6M18IXmdtB5nbxC8prLDkY+uAbFt9yH9MeEBzE+wwkK3FneVG4PMCGUDL/9OQhrP HSgwiZ9FqbaVxL+FxmbVXzXB2vPUdrTxhujMUWL0N0w9N6ouwzt25+uta6gZsQLmdlCy hQmKvwXRLOSysElCRdatAeRWyI/fCSKeDJ6wz3aKCnn/9PV/E2j2RPdtgLNYGTBQi8h4 SWnWbLX4W300n1/kZi7wMTwD1/a41JlWS7n/4b6UbvGcX02HO6dQjOsNfL7ra7851C6D ioiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ov18-20020a170906fc1200b00780488c11bbsi2489873ejb.388.2022.10.27.19.39.55; Thu, 27 Oct 2022 19:40:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236615AbiJ1CiY (ORCPT + 99 others); Thu, 27 Oct 2022 22:38:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236408AbiJ1Ch7 (ORCPT ); Thu, 27 Oct 2022 22:37:59 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBAD843AE8; Thu, 27 Oct 2022 19:37:53 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 29S2D5CC054599; Fri, 28 Oct 2022 10:13:05 +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, 28 Oct 2022 10:35:58 +0800 From: Jammy Huang To: , , , , , , , , , , , , , , , , , Subject: [PATCH v11 0/5] add aspeed-jpeg support for aspeed-video Date: Fri, 28 Oct 2022 10:35:49 +0800 Message-ID: <20221028023554.928-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 29S2D5CC054599 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747897359168409637?= X-GMAIL-MSGID: =?utf-8?q?1747897359168409637?= 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 v11: - Update document Changes in v10: - Add document, aspeed-video.rst, for new V4L2 CID - Fix warnings reported by kernel test robot Changes in v9: - Rebase on new kernel 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 (5): media: v4l: Add definition for the Aspeed JPEG format media: v4l2-ctrls: Reserve controls for ASPEED media: Documentation: aspeed-video: Add user documentation for the aspeed-video driver media: aspeed: Support aspeed mode to reduce compressed data media: aspeed: Extend debug message .../media/drivers/aspeed-video.rst | 65 ++++ .../userspace-api/media/drivers/index.rst | 1 + .../media/v4l/pixfmt-reserved.rst | 17 + drivers/media/platform/aspeed/aspeed-video.c | 317 +++++++++++++++--- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/uapi/linux/aspeed-video.h | 14 + include/uapi/linux/v4l2-controls.h | 6 + include/uapi/linux/videodev2.h | 1 + 8 files changed, 370 insertions(+), 52 deletions(-) create mode 100644 Documentation/userspace-api/media/drivers/aspeed-video.rst create mode 100644 include/uapi/linux/aspeed-video.h base-commit: aae703b02f92bde9264366c545e87cec451de471