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: 11764043 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C1CFB746 for ; Tue, 8 Sep 2020 19:33:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 984202166E for ; Tue, 8 Sep 2020 19:33:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="J+xmTgpW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731057AbgIHTda (ORCPT ); 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-Google-Smtp-Source: ABdhPJyire6a1xGmOn/Oizs1+bSA9Zj7VgW0Nwa4xh6mFyM9pB0RqkBU2ggzqp6YMpsH7c/DBqKZXg== 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(-)