From patchwork Mon Jul 23 09:32:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 10539791 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9AAB6180E for ; Mon, 23 Jul 2018 09:32:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8730128592 for ; Mon, 23 Jul 2018 09:32:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BAC0285A0; Mon, 23 Jul 2018 09:32:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 180FC28592 for ; Mon, 23 Jul 2018 09:32:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388167AbeGWKcp (ORCPT ); Mon, 23 Jul 2018 06:32:45 -0400 Received: from lb3-smtp-cloud8.xs4all.net ([194.109.24.29]:38003 "EHLO lb3-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388153AbeGWKcp (ORCPT ); Mon, 23 Jul 2018 06:32:45 -0400 Received: from [IPv6:2001:983:e9a7:1:e00a:ef61:ab84:2596] ([IPv6:2001:983:e9a7:1:e00a:ef61:ab84:2596]) by smtp-cloud8.xs4all.net with ESMTPA id hXCbf9MBHoj71hXCcfGEIg; Mon, 23 Jul 2018 11:32:26 +0200 To: Linux Media Mailing List Cc: Tom aan de Wiel From: Hans Verkuil Subject: [GIT PULL FOR v4.19] vicodec: the Virtual Codec driver Message-ID: Date: Mon, 23 Jul 2018 11:32:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Language: en-US X-CMAE-Envelope: MS4wfKGl8rl80IhlwchIpECAh7gzd//jq7wGQPQJOX/N9UNjy3ZEpW56uDbBLRn+9rHxOQGp6Pyc54gZckBcWCQFBBf5lwGXxmvmyG3wzshbc7WXEIjqoWfj xSJT6LQWptXqVLmurne0LTynOAOvXZ2Od5TR/fWSV9Qzciqg5UaCfKesqjOVtuUEMA+ZlIaGj93knJcJIwdwukICXMYvNeCx+WctOYxbajfKF65eGkRBE3/B ZwCpfp3tTDdNH3zVxA5ewHznZxNfHmlaS24UfcD2EPjWHUKivYj9FHzkfrr8CSKvVXdy/BUOrWUi6FWAltCHUw== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Mauro, This is the pull request for the new vicodec driver. The cover letter is here: https://www.mail-archive.com/linux-media@vger.kernel.org/msg133594.html One request: the vicodec-codec.h header refers to Tom's report on the Fast Walsh Hadamard Transform: https://hverkuil.home.xs4all.nl/fwht.pdf Can you copy this pdf and put it up somewhere on linuxtv.org and update the link in the header so it points to linuxtv.org? With all the activities ongoing it will be very useful to have this driver in the kernel so we can test and verify APIs. Regards, Hans The following changes since commit 39fbb88165b2bbbc77ea7acab5f10632a31526e6: media: bpf: ensure bpf program is freed on detach (2018-07-13 11:07:29 -0400) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git vicodec for you to fetch changes up to 92389fd3ce7cce108b448d76943c71d410ab40c0: vicodec: add the virtual codec driver (2018-07-23 11:24:54 +0200) ---------------------------------------------------------------- Hans Verkuil (5): media.h: add encoder/decoder functions for codecs videodev.h: add PIX_FMT_FWHT for use with vicodec v4l2-mem2mem: add v4l2_m2m_last_buf() vicodec: add the FWHT software codec vicodec: add the virtual codec driver Documentation/media/uapi/mediactl/media-types.rst | 11 + Documentation/media/uapi/v4l/pixfmt-compressed.rst | 7 + MAINTAINERS | 8 + drivers/media/platform/Kconfig | 3 + drivers/media/platform/Makefile | 1 + drivers/media/platform/vicodec/Kconfig | 13 + drivers/media/platform/vicodec/Makefile | 4 + drivers/media/platform/vicodec/vicodec-codec.c | 797 +++++++++++++++++++++++++++ drivers/media/platform/vicodec/vicodec-codec.h | 129 +++++ drivers/media/platform/vicodec/vicodec-core.c | 1506 +++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/media/v4l2-core/v4l2-ioctl.c | 1 + drivers/media/v4l2-core/v4l2-mem2mem.c | 18 + include/media/v4l2-mem2mem.h | 29 + include/uapi/linux/media.h | 2 + include/uapi/linux/videodev2.h | 1 + 15 files changed, 2530 insertions(+) create mode 100644 drivers/media/platform/vicodec/Kconfig create mode 100644 drivers/media/platform/vicodec/Makefile create mode 100644 drivers/media/platform/vicodec/vicodec-codec.c create mode 100644 drivers/media/platform/vicodec/vicodec-codec.h create mode 100644 drivers/media/platform/vicodec/vicodec-core.c