Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1194217ybg; Thu, 11 Jun 2020 03:32:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIQi1x8aQP85YDkfWj3xqymFi6KomO6L5IY+nk+ysgUKt6IvP8nSSXH5kwxPHhEjfqeU6X X-Received: by 2002:a17:906:4716:: with SMTP id y22mr7986946ejq.125.1591871576297; Thu, 11 Jun 2020 03:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591871576; cv=none; d=google.com; s=arc-20160816; b=RJin16rmmptsG7VhnrwsKY1gcz0J9HVMk+DcE+kn1bdYiO3D31hDUoNnOx5/l4oRlT RETbDYds5U1D2P5xXMuSh4IyQjfPumLyPUHiyZyt8GFCg+ooZljGfPJkcOAkUz09Ppdz 466kDCcmVBDaHg80a+KdHhjaDoKUzaxcGMBiIKBR4JrU3/NbMdNSpZfw24VwYWnerh0B n652PsyRcNNArUFQOpIaYlia172n9RsFh0yeGzpnUnpFc8hYFrIfkS3fF+Zw75qeuViI DNET1IPadubJkYnqQiVYBLm/72NQ18PfQBCQ3XDIRJ7+JYd6Pq9uFaZgXla6qRvQZGse AGcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=sg1XUuA6A7bYh6j1AiNjNe3PgKx8/XZYViF9ThCDBt0=; b=rB7eng3Yg0IQZZ8XilLJ/0Vhj2USXDdiZ2lHpCZ8lF2BgqalFAlbn7TLkEdRLJFOB4 Wef9La0ul36iUTpBS0EgLBuCpli52viO0+Q7oNucFwQ86jh0MHYa7K60pVDpPhvjjU4Z 3J0nttMzIIf9evzhdOkJBF390KlGasqjjOlRj215tqsk88uG2zRy4F8RNQMHJH8gUhsI cudAB8uGqe5bbqzJaicjTOuB5IaqHRVePJ/BTDAQVyEFKVRrJfl11FvxTZwwZNOesCAl 7uEWTxbJVcCoMrXG1DCECCE6ujeNiGAXVCsF1Mnpjdt9SuF8XgiahfKY2Kh5jUVacskM pGYw== ARC-Authentication-Results: i=1; mx.google.com; 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 do22si2182196ejc.79.2020.06.11.03.32.33; Thu, 11 Jun 2020 03:32:56 -0700 (PDT) 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; 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 S1727813AbgFKK0C (ORCPT + 99 others); Thu, 11 Jun 2020 06:26:02 -0400 Received: from alexa-out-blr-02.qualcomm.com ([103.229.18.198]:23911 "EHLO alexa-out-blr-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727063AbgFKK0A (ORCPT ); Thu, 11 Jun 2020 06:26:00 -0400 Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by alexa-out-blr-02.qualcomm.com with ESMTP/TLS/AES256-SHA; 11 Jun 2020 15:55:52 +0530 Received: from dikshita-linux.qualcomm.com ([10.204.65.237]) by ironmsg01-blr.qualcomm.com with ESMTP; 11 Jun 2020 15:55:30 +0530 Received: by dikshita-linux.qualcomm.com (Postfix, from userid 347544) id E72273BDB; Thu, 11 Jun 2020 15:55:28 +0530 (IST) From: Dikshita Agarwal To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl, ezequiel@collabora.com, boris.brezillon@collabora.com, ribalda@kernel.org, paul.kocialkowski@bootlin.com, posciak@chromium.org, linux-media@vger.kernel.org, stanimir.varbanov@linaro.org, linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, majja@codeaurora.org, Dikshita Agarwal Subject: [RFC PATCH 1/1] media: v4l2-ctrls: add control for ltr Date: Thu, 11 Jun 2020 15:55:21 +0530 Message-Id: <1591871121-25420-2-git-send-email-dikshita@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1591871121-25420-1-git-send-email-dikshita@codeaurora.org> References: <1591871121-25420-1-git-send-email-dikshita@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add v4l2 controls for ltr Signed-off-by: Dikshita Agarwal --- drivers/media/v4l2-core/v4l2-ctrls.c | 6 ++++++ include/uapi/linux/v4l2-controls.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index 93d33d1..205863e 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls.c +++ b/drivers/media/v4l2-core/v4l2-ctrls.c @@ -977,6 +977,9 @@ const char *v4l2_ctrl_get_name(u32 id) case V4L2_CID_MPEG_VIDEO_HEVC_SLICE_PARAMS: return "HEVC Slice Parameters"; case V4L2_CID_MPEG_VIDEO_HEVC_DECODE_MODE: return "HEVC Decode Mode"; case V4L2_CID_MPEG_VIDEO_HEVC_START_CODE: return "HEVC Start Code"; + case V4L2_CID_MPEG_VIDEO_LTRCOUNT: return "LTR Count"; + case V4L2_CID_MPEG_VIDEO_MARKLTRFRAME: return "Mark LTR"; + case V4L2_CID_MPEG_VIDEO_USELTRFRAME: return "Use LTR"; /* CAMERA controls */ /* Keep the order of the 'case's the same as in v4l2-controls.h! */ @@ -1208,6 +1211,9 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type, break; case V4L2_CID_MPEG_VIDEO_MV_H_SEARCH_RANGE: case V4L2_CID_MPEG_VIDEO_MV_V_SEARCH_RANGE: + case V4L2_CID_MPEG_VIDEO_LTRCOUNT: + case V4L2_CID_MPEG_VIDEO_MARKLTRFRAME: + case V4L2_CID_MPEG_VIDEO_USELTRFRAME: *type = V4L2_CTRL_TYPE_INTEGER; break; case V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME: diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index 1a58d7c..88d24e1 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h @@ -737,6 +737,10 @@ enum v4l2_cid_mpeg_video_hevc_size_of_length_field { #define V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L6_BR (V4L2_CID_MPEG_BASE + 642) #define V4L2_CID_MPEG_VIDEO_REF_NUMBER_FOR_PFRAMES (V4L2_CID_MPEG_BASE + 643) #define V4L2_CID_MPEG_VIDEO_PREPEND_SPSPPS_TO_IDR (V4L2_CID_MPEG_BASE + 644) +#define V4L2_CID_MPEG_VIDEO_LTRCOUNT (V4L2_CID_MPEG_BASE + 645) +#define V4L2_CID_MPEG_VIDEO_MARKLTRFRAME (V4L2_CID_MPEG_BASE + 646) +#define V4L2_CID_MPEG_VIDEO_USELTRFRAME (V4L2_CID_MPEG_BASE + 647) + /* MPEG-class control IDs specific to the CX2341x driver as defined by V4L2 */ #define V4L2_CID_MPEG_CX2341X_BASE (V4L2_CTRL_CLASS_MPEG | 0x1000) -- 1.9.1