From patchwork Tue Jun 16 12:29:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 188014 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp3606707ilo; Tue, 16 Jun 2020 05:31:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW9Cwm7Y2trnoDYda8n5liGFJvfAeDg5UlXE/8Z+8cBocS/DNznD7YJWq/JN7fzjctJPK0 X-Received: by 2002:a17:906:7e19:: with SMTP id e25mr2453216ejr.319.1592310696346; Tue, 16 Jun 2020 05:31:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592310696; cv=none; d=google.com; s=arc-20160816; b=0IqHPu3lWqlNR5XVH6LjcWahvnzWDJ1+SHqPUaO50SC+6kpmBTLt5LnG5aUIDwaYJ0 OdKQuK/PE4JNvmVc7G24Ij8zJDgV9kqVc88xlOFeor0HuFCybElEgnZFAa/UT3ensrDk x3b13o3KLDbNf7vyQdg5OxqkmdWNYISBUhRJRuV8jvyMHGBmB1e4jGcyfcJZHPC1BMkS 41Lqd4kKJx4bJExR7hzChXstGTILDQPEHie6WiewlZv7KO1+nmdU9nb1kXXMd49M5T7j LDTN9p4uqzz3Rd95PNf+CDroqjJEhZ100AOxtpx3BQH17jgFHXjLBM50cRI/usDQ3fFo da2g== 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=/1r7CkWYB3PvqDAm7Ot1fK+BdMOnYVR/V3utAsyrDz0=; b=xkry5smXZ0aGv8n9ksPe9+Ws8GiOribKbEcjHnC+YcS16sjrI+xQrgOwRdYF7LyzyS FEjDqx5G9LaEhxJi2L0kNqJQwbGiNqWd6/FiP4nbCpb0nQF2XccDf6CcartVNUZ62pFG NPlPtxYP20P70wmFD+DZndC5PvrMjabQl5AoOYFhl2eepyhHhfRc9kSWLdeDJSRtYgir dKtrmtGSN9sVI9XHz/2XwrE3r3FCIUo0Z4ERcVo/X5allkbK07K8XVkAtJYY4nWoOzS2 MlGSFOVrMUHmgf0MVXK70nPcyexOK4rFfIyXQoEF4PXed6xZhe4hm08A1YA5R+o+AgGs /s3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aOuc3PNI; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-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 h5si9498422edr.201.2020.06.16.05.31.36; Tue, 16 Jun 2020 05:31:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-media-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=aOuc3PNI; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-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 S1728778AbgFPMbf (ORCPT + 4 others); Tue, 16 Jun 2020 08:31:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbgFPMbe (ORCPT ); Tue, 16 Jun 2020 08:31:34 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57633C08C5C4 for ; Tue, 16 Jun 2020 05:31:32 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id t21so14095194edr.12 for ; Tue, 16 Jun 2020 05:31:32 -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=/1r7CkWYB3PvqDAm7Ot1fK+BdMOnYVR/V3utAsyrDz0=; b=aOuc3PNIXOscLHviWkmoerLaHV3t0vKE4OF+G+AsWn4rC9b6olH2lm6AItsGUbKi/e Qzelbl0GduFV1NbJPGME4+loz08IxPVRkUH1xpD4JrgFlmHcaVGUwM2yAM3R52OLybtF AJVq5Eiv9mPIPfNpHuY0o242bSrKMv7yzzPZyBqYTSQ/LApa/njqHNMD2JXQb4wlJN3+ aTLfGbnILz6HCmPbJtPqHK2We/agFZqzcbUkP7Y+Gyy9po2YGEDFCH8f9RPe3aG2Ak8H oHX3AQbe7oQ/qyRukBnOKPINVdsAWs+xEbGe6RatIhDl69YPNnR4g1I3TY+BUWJxuJyJ 7wgw== 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=/1r7CkWYB3PvqDAm7Ot1fK+BdMOnYVR/V3utAsyrDz0=; b=hvCo1WKpQzZlI6nOGnzN0mugxh51qkbEZcp0J3hWElm3+XcfvwCa0ttldEWMoh16dH 7IiCJu9iNMTt1gGOrNzCnQgIKRfaNzRI/k52F1H/vbwdZfJXKMh1bcRJDjQ2GcWHWG+m xDJI6dk6jKC74LzN2NC32MkyUoukUMDKCJWc1X9cDABWt23GAmKKers/wsR+m5Gl3niJ vIknCGz7A/vQ1UrT8eaek/j79sX8x+k8iPEMr7EiyqT0WqYBFAscqkPlvuu59Tc+5OQ0 lJpfuVtQPJEw8ntgHXTQWFbUFuoQU+12x7ZefC8L8/don2AAzlYa9inV21MYWJIIXV0U ZbKA== X-Gm-Message-State: AOAM533yNRoE82z05Cw76osSuANI2Gd9/3U6VI8PznvDTMHJTMs7U8mC bYWXWgJxezur4ewxLIdiGOXw9H4uai9LzQ== X-Received: by 2002:aa7:c6c7:: with SMTP id b7mr2324483eds.213.1592310690397; Tue, 16 Jun 2020 05:31:30 -0700 (PDT) Received: from localhost.localdomain (212-5-158-38.ip.btc-net.bg. [212.5.158.38]) by smtp.gmail.com with ESMTPSA id p6sm11071983ejb.71.2020.06.16.05.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 05:31:29 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Hans Verkuil , Ezequiel Garcia , Maheshwar Ajja , Mauro Carvalho Chehab , Stanimir Varbanov Subject: [PATCH 0/4] Add two new v4l controls and implementation Date: Tue, 16 Jun 2020 15:29:57 +0300 Message-Id: <20200616123001.11321-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hello, Here we add two more v4l controls: - V4L2_CID_MPEG_VIDEO_CONSTANT_QUALITY for encoders - V4L2_CID_MPEG_VIDEO_DECODE_INTRA_FRAMES_ONLY for decoders and the implementations in Venus driver. The original patch for CQ from Maheshwar has been rebased on top of current media/master and the comment from Hans has been taken into account. Comments are welcome. regards, Stan Maheshwar Ajja (1): media: v4l2-ctrls: Add encoder constant quality control Stanimir Varbanov (3): venus: venc: Add support for constant quality control v4l2-ctrl: Add control for intra only decode venus: vdec: Add support for decode intra frames only .../media/v4l/ext-ctrls-codec.rst | 19 +++++++ drivers/media/platform/qcom/venus/core.h | 2 + drivers/media/platform/qcom/venus/hfi_cmds.c | 49 ++++++++++++++++++- .../media/platform/qcom/venus/hfi_helper.h | 4 +- drivers/media/platform/qcom/venus/vdec.c | 7 +++ .../media/platform/qcom/venus/vdec_ctrls.c | 9 +++- drivers/media/platform/qcom/venus/venc.c | 4 +- .../media/platform/qcom/venus/venc_ctrls.c | 6 +++ drivers/media/v4l2-core/v4l2-ctrls.c | 4 ++ include/uapi/linux/v4l2-controls.h | 3 ++ 10 files changed, 103 insertions(+), 4 deletions(-) -- 2.17.1