From patchwork Tue Sep 8 12:32:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 249368 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4839693ilg; Tue, 8 Sep 2020 12:33:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuZnPea+qTHnvBeuK0Yb8HH4NcFnrTv3Zqs/Ta709Ce9s4c63To8mB1i1PYJtV2URgaFge X-Received: by 2002:a17:906:780f:: with SMTP id u15mr28844921ejm.259.1599593614260; Tue, 08 Sep 2020 12:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599593614; cv=none; d=google.com; s=arc-20160816; b=qhKt2w64EhzzcIAYP7LfnxqX14LvUtqRrOV+zau30cIjmCNmV1wfUAt1GFjpH8Yt1A vSVcH1fGd0Lq+O+Zs/SvevI1FQTCMOLhbC9M9l4JGqaTwX6flAvBxkcGTXqQm26gKacx cn6Gn9zWpDFIFbzHwGPyvKJAGnx/mjj4BkKSwOEZxJ5dIIg3XfON92b3rlLOh+pXJSMW 3rkJhwfmZG165JRErBjuXriWQ9KBllcW0s0RuvRklZUxxnK+jrvNhBGmZN6bP8FXNC+1 /u2brABq3rbS7v2ICqnvzpPtWDJyRN2Try7/K2SMSDTOcjStr15yj6UKz7uarF6apyJD GYTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=CbHAntwE/i/0aOcErfQq5jTQMnZZWtdKrAQxbD+Urlc=; b=xqik6p2VLv9tb9mXvblfDABbFVVEMkvQ+49L87XzeFjJBXnfRCxesF0sCRl07TZtr7 a2JtqUDAU4vSsUwBQPWu6Dd7w2+A0SmnwxyQj3TQhmyHnTt8c8uBrg/zCMylLjj5XtWD 9CJKKPPdV5GJhDHjd2eUlyQwVeWo/jh508lCq5+TG/vl7yGWj+qBDMKdvvdUVbDNKjG/ KYy6hKIF3jNgXQrgesjtE8Juv+aZmT4CofGCkF2Q0Bw08KZuETIjMmP1CLAO82sAAylo XiPGj3L72BvVtgu47+w2lxRC7HCsjJCdMqnx7IWA8y8GQ/U5yZDTktV30bzbGFhMqhox s2eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J+xmTgpW; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si19687edu.609.2020.09.08.12.33.33; Tue, 08 Sep 2020 12:33:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@linaro.org header.s=google header.b=J+xmTgpW; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731057AbgIHTda (ORCPT + 15 others); Tue, 8 Sep 2020 15:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730992AbgIHP6F (ORCPT ); Tue, 8 Sep 2020 11:58:05 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E189C06138F for ; Tue, 8 Sep 2020 05:33:25 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id q21so15831287edv.1 for ; Tue, 08 Sep 2020 05:33:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=CbHAntwE/i/0aOcErfQq5jTQMnZZWtdKrAQxbD+Urlc=; b=J+xmTgpWIz9Bfj8KndmtxBj1SCYkernBnfaLUVEZ1RBJMr2xge19uixrG4oQBxWmxE wlcVcXZsavOQxg4sIEhXmDFiYybKnat/o+TLE5MGXzt663viuveYHsIaoT7VX/+k0Sxb dmsYrI4+WU3ck1uTe4hy+JbTz2wcuufFscmSCxrcRxFst9HEzxpsuMxMuF1wXZpg1jt6 FkIqMsDT/Cm2vCccRKFUz7St6nLxmBuWa+u0DPge8QTUdOqNslY518gM4zEem1PYnC7/ odBsMsJQMswlXhDy1m+xg3viqA4ZteEcF4gs6E5YhPBg/KlxCGcfN6LbGUP7ncOv15md NX/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CbHAntwE/i/0aOcErfQq5jTQMnZZWtdKrAQxbD+Urlc=; b=p+HZ32Yxq02fbWgWHCS9CQnUZ96AGBKp8gC5rLRZe0Os2Cr+ujBBm6qgCmemKmQM+z 0qucCpSjueFzcnywT/1qrWItO3PAZBCdsV9AhW1iNJG4eDeQ06tbqe0MhgxuD0SERgFw NMjcbYH0Iu5B9rw/OyayTQuEYSyN/KFiWQaBUhUlCtAqdoWBTDHGmnxmfndkFQr5xnsE P93r3XPcBiyJJa4j/GAEaVi4AMBDsr995z8iCK5NO0n8l+28lKgJo7j9i5RCFJmXj0vg ihotIvNPuSTrOerUI7CJbgSkZ3LhPsAc6vcsKiqZ7FflA9RN+SIkzZbdSCiSGkmBL8Cz l4/A== X-Gm-Message-State: AOAM531kzYCw7XzjSM8yU33erHf9JDRqleEUbP4u+2LULGeLLPAEhtjk OQm/r0+YpuhsV9kw78EIpkU7RUzQaHqg0Frq X-Received: by 2002:a50:c182:: with SMTP id m2mr26187244edf.70.1599568403518; Tue, 08 Sep 2020 05:33:23 -0700 (PDT) Received: from localhost.localdomain ([195.24.90.54]) by smtp.gmail.com with ESMTPSA id y9sm17499744edo.37.2020.09.08.05.33.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 05:33:22 -0700 (PDT) From: Stanimir Varbanov To: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: Paul Kocialkowski , Philipp Zabel , Hans Verkuil , Mauro Carvalho Chehab , Neil Armstrong , nicolas.dufresne@collabora.com, Stanimir Varbanov Subject: [PATCH v3 0/6] Add VP9 codec levels Date: Tue, 8 Sep 2020 15:32:15 +0300 Message-Id: <20200908123221.2793-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Hello, This new v3 now contains the implementation for VP9 profile and levels in the Venus driver as has been requested by Nicolas at [1]. Comments are welcome! regards, Stan [1] https://patchwork.kernel.org/patch/11717307/ Stanimir Varbanov (6): v4l2-ctrl: Add VP9 codec levels venus: hfi_helper: Add VP9 profile and levels venus: helpers: Add a helper to map v4l2 ids to HFI ids venus: vdec: Set/Get VP9 profile/level venus: vdec: Use helper to get profile and level venus: venc: Use helper to set profile and level .../media/v4l/ext-ctrls-codec.rst | 43 ++++ drivers/media/platform/qcom/venus/core.h | 13 +- drivers/media/platform/qcom/venus/helpers.c | 239 ++++++++++++++++++ drivers/media/platform/qcom/venus/helpers.h | 2 + .../media/platform/qcom/venus/hfi_helper.h | 18 ++ .../media/platform/qcom/venus/vdec_ctrls.c | 31 ++- drivers/media/platform/qcom/venus/venc.c | 159 +----------- .../media/platform/qcom/venus/venc_ctrls.c | 14 +- drivers/media/v4l2-core/v4l2-ctrls.c | 21 ++ include/uapi/linux/v4l2-controls.h | 17 ++ 10 files changed, 370 insertions(+), 187 deletions(-) -- 2.17.1 Reviewed-by: Hans Verkuil