Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4309471pxb; Tue, 10 Nov 2020 13:08:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaVopYwnxQC7+WzhWucndHdTu6wrBSsdQeK921T/s4JO1t0TEiDVE23tsqVYzPNAmgh0Fh X-Received: by 2002:a17:906:a149:: with SMTP id bu9mr21467744ejb.115.1605042490897; Tue, 10 Nov 2020 13:08:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605042490; cv=none; d=google.com; s=arc-20160816; b=rb4sW0r/33uMtUsudx5HK8Jb6mY844Ih264s0JbwOlzGjL0pDSt3VVZBXsf64idXXo n6b6f0ugCgk0syfdplE7+YmeinKWQxtGZaa8W0dZRAQtx7+jQ+PwTQX831jmcGjVJpRc vrOu6/eldN3hxRUiqtGOXbgk1VRM7uZCMsJHRZK84Y/S+DSP+r9gUcPDSJw4OALPZBev 8Jj/RVn1NcdBxgaIm5RKWO/MPif5Yu6FKHDHAq27TqPAJN3UrFtRObH6mmHtVQl3yAt2 26CRLHZQqYuZu8zmX84r8B4XY8FvMShF0sClVY5wgClPY6UW71Vw5aWgoN3f15mBIG5B AebQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xI45YnQNiC4P8J4lgBXG/z8cHmMzcRB6aMt37sREgLU=; b=pUMGg0nG0WjQNt0UCWeJLpbXWZYKNBi0Fx7wQ7wdajBl/vK+acjsdrIxVDiTcYnqYs GzZp4n41+mInelPWT+UI5MHr152UNtVlQ6gJE4/lU6AV3hdNWZtE0UZz6zR9pFte8rpx sy3hV2TtdieyWGQf3mupKV30C2qk1rEmbV00D2izFL0qk7AappIuwqoReRv2G0O0zRLr 8dEeFuY5C6Ej9GKzI76qrpPaILpnDpgFKfcNw0ych1xSkDJVAbvioLaS9hOmHuS9iH46 TXP8/1LJE1yuQKLBFYjdu71Rqv+yNXUuuksk7gUPenm5VEl3jOO19aUbxG87HgLdLt0d whRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=Ffv7bCnb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s7si5842353edh.264.2020.11.10.13.07.46; Tue, 10 Nov 2020 13:08:10 -0800 (PST) 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; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=Ffv7bCnb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731709AbgKJVEI (ORCPT + 99 others); Tue, 10 Nov 2020 16:04:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbgKJVEI (ORCPT ); Tue, 10 Nov 2020 16:04:08 -0500 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B948C0613D3 for ; Tue, 10 Nov 2020 13:04:07 -0800 (PST) Received: by mail-ed1-x541.google.com with SMTP id q3so14318741edr.12 for ; Tue, 10 Nov 2020 13:04:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xI45YnQNiC4P8J4lgBXG/z8cHmMzcRB6aMt37sREgLU=; b=Ffv7bCnbSiujBe1FuKScR6+7em4yb0WJLyXysMA6NcrvjYpAtWgIyLHNA+jRVlDsdU 4u5wVWxcT3+j9Wl67L0rtT6CdCkfn6Oy6t5M1Y/Cp9UEaNL8UnbqbFkWs2VCwLtXqxSE cHPycBFCvM/absTS5+alHKmvnhds4dcyIbLjZvSraRbFx7+0YEVCZt0csdnIVX4QYwo1 6ZCYX/ldY5YiVAFMlO0iSr+Gnf5itKawwyv88+ZwNObEQ2AQ4Q1oGmHzCTjzkv3HhgzC YI5LNiGNTAjXGJ16IcLPFMWs5z824tT9wonIddIe3cj41Rs6+vO8Y2LZ+I89oMXgslzd rHmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xI45YnQNiC4P8J4lgBXG/z8cHmMzcRB6aMt37sREgLU=; b=aXPG4s7xGQTFwPmQxlViD09z7KBe5YPbUhKOWg7D9OUoV1E8LbCMl4n+hxwIzJXmfH vFB7NfQy7oibpMd/zCXtPVgzIu/kfNm12KuL3D2l0UhJnqouI4jbGr5C0V6LLRG8Z0VM CiMhzXkLtwrtTp8s5kBCCXgi+Yv1OHp1a54zzKCFXWc1j3MMBctRbiMDi1kNhLEXXith AjUfEDYiwZqNiq1TnSM291RskJqDP7h9ekOjM3Wj3ajD6bdjH4o2H9wBxOrjwsLAcE2S 41GRsCklPT2tZqpQRF6hsUBnJ3wr4o5leTqbubSjLs+sleA42AUQY2Kz/GrTAAMyKHko yB3A== X-Gm-Message-State: AOAM53384hM1Jx0A0BOZUNgd+mCe0jdOUcIZHX6vH2K9IozqUl59xebq yHoupkIV0Kx/Yg79Hp70za+eEC7xYbd6xNTk36sEPw== X-Received: by 2002:a05:6402:2059:: with SMTP id bc25mr1429498edb.13.1605042245675; Tue, 10 Nov 2020 13:04:05 -0800 (PST) MIME-Version: 1.0 References: <20201102190551.1223389-1-adrian.ratiu@collabora.com> In-Reply-To: <20201102190551.1223389-1-adrian.ratiu@collabora.com> From: Ezequiel Garcia Date: Tue, 10 Nov 2020 18:03:54 -0300 Message-ID: Subject: Re: [PATCH v5 0/3] media: rkvdec: Add a VP9 backend To: Adrian Ratiu Cc: linux-media , Mauro Carvalho Chehab , Ezequiel Garcia , Boris Brezillon , Hans Verkuil , Laurent Pinchart , Jonas Karlman , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List , kernel@collabora.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2 Nov 2020 at 16:04, Adrian Ratiu wrote: > > Dear all, > > This is v5 of the series adding VP9 profile 0 decoding to rkvdec. > > All feedback from v4 should be addressed, there's just one thing I did > not address: ref_frame_sign_biases in the uAPI. The userspace tool I'm I believe that Hantro G2 VP9 needs ref_frame_sign_biases. I think that it's also needed for the MTK decoder. Might be worth checking that as well, if the code is publicly available somewhere. Coming to think about it, I think we are really close to having this uAPI directly upstream. Let's take a step back on why we have these uAPIs in the staging area. Couple years ago, there were some doubts in the media community about these uAPIs, and we wanted to wait a bit for more users before moving to public land. The uAPIs were meant to be in staging until enough users appeared and we were confident enough to move to stable. For VP9, given the feedback received through the year was already addressed, I think all that's left is to check the interface and make sure it can support Rockchip (RK3399, RK3326, etc), Hantro G2 and Mediatek, We will be very close to having a public API, and we could even merge it directly there. Thanks, Ezequiel > using [1] apparently doesn't need it or the default hwreg value for it > is capable of decoding the bitstreams I used on the driver, so I don't > really have a use-case to change and test that. :) > > Considering the uAPI is a work in progress and expected to be modified, > ref_frame_sign_biases can be added later with others which might be > required to enable more functionality (for eg profiles >= 1). > > Series tested on rk3399 and applies on next-20201030. > > [1] https://github.com/Kwiboo/FFmpeg/tree/v4l2-request-hwaccel-4.2.2-rkvdec > > Changelog > --------- > > v5: > > * Drop unnecessary OUTPUT buffer payload set in .buf_prepare. > * Drop obsolete .per_request ctrl flag > * Added new vp9 ctrls to v4l2_ctrl_ptr > * Fix pahole detected padding issues > * Send userspace an error if it tries to reconfigure decode resolution > as v4l2 or rkvdec-vp9 backend do not support dynamic res changes yet > * Allow frame ctx probability tables to be non-mandatory so users can > set them directly during frame decoding in cases where no defaults > have been set previously (eg. ffmpeg vp9 backend) > * Some comments and documentation clarifications > * Minor checkpatch fixes > > v4: > > * Drop color_space field from the VP9 interface. > V4L2 API should be used for it. > * Clarified Segment-ID comments. > * Moved motion vector probabilities to a separate > struct. > > v3: > > * Fix documentation issues found by Hans. > * Fix smatch detected issues as pointed out by Hans. > * Added patch to fix wrong bytesused set on .buf_prepare. > > v2: > > * Documentation style issues pointed out by Nicolas internally. > * s/VP9_PROFILE_MAX/V4L2_VP9_PROFILE_MAX/ > * Fix wrong kfree(ctx). > * constify a couple structs on rkvdec-vp9.c > > > Boris Brezillon (2): > media: uapi: Add VP9 stateless decoder controls > media: rkvdec: Add the VP9 backend > > Ezequiel Garcia (1): > media: rkvdec: Fix .buf_prepare > > .../userspace-api/media/v4l/biblio.rst | 10 + > .../media/v4l/ext-ctrls-codec.rst | 550 ++++++ > drivers/media/v4l2-core/v4l2-ctrls.c | 239 +++ > drivers/media/v4l2-core/v4l2-ioctl.c | 1 + > drivers/staging/media/rkvdec/Makefile | 2 +- > drivers/staging/media/rkvdec/rkvdec-vp9.c | 1577 +++++++++++++++++ > drivers/staging/media/rkvdec/rkvdec.c | 72 +- > drivers/staging/media/rkvdec/rkvdec.h | 6 + > include/media/v4l2-ctrls.h | 5 + > include/media/vp9-ctrls.h | 486 +++++ > 10 files changed, 2942 insertions(+), 6 deletions(-) > create mode 100644 drivers/staging/media/rkvdec/rkvdec-vp9.c > create mode 100644 include/media/vp9-ctrls.h > > -- > 2.29.0 >