From patchwork Wed Sep 21 02:51:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jammy Huang X-Patchwork-Id: 86206 Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1oaprF-003oJB-RJ; Wed, 21 Sep 2022 02:53:06 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231137AbiIUCwt (ORCPT + 1 other); Tue, 20 Sep 2022 22:52:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbiIUCwn (ORCPT ); Tue, 20 Sep 2022 22:52:43 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FCE57DF77; Tue, 20 Sep 2022 19:52:39 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 28L2U5Vr024711; Wed, 21 Sep 2022 10:30:06 +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; Wed, 21 Sep 2022 10:50:55 +0800 From: Jammy Huang To: , , , , , , , , , , , , , , , Subject: [PATCH v9 0/4] add aspeed-jpeg support for aspeed-video Date: Wed, 21 Sep 2022 10:51:08 +0800 Message-ID: <20220921025112.13150-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 28L2U5Vr024711 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-media@vger.kernel.org X-LSpam-Score: -2.4 (--) X-LSpam-Report: No, score=-2.4 required=5.0 tests=BAYES_00=-1.9,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no 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 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 (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/v4l/pixfmt-reserved.rst | 17 + drivers/media/platform/aspeed/aspeed-video.c | 319 +++++++++++++++--- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/uapi/linux/aspeed-video.h | 15 + include/uapi/linux/v4l2-controls.h | 6 + include/uapi/linux/videodev2.h | 1 + 6 files changed, 307 insertions(+), 52 deletions(-) create mode 100644 include/uapi/linux/aspeed-video.h