From patchwork Mon Nov 9 17:35:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 320946 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1921587ilc; Mon, 9 Nov 2020 09:36:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxCdJGWdQHIU6yFjzoNwbQ090CXzrNErxi9YrzqMlm3///iHjBNewhEQuhdY14kZ9j/adZ X-Received: by 2002:a17:906:5a88:: with SMTP id l8mr6684195ejq.407.1604943372519; Mon, 09 Nov 2020 09:36:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604943372; cv=none; d=google.com; s=arc-20160816; b=JHWLC3XzPqb6oFT9prtJOSmrLuITj9tWrsB8ZxjX0pEYDe5wbK7X5eYhINbOBlAep/ ygtHqw+aYC5SRVv8hplvlTuSWFsS8R2FuOy5gvSFP6uJs34/V2GYQXsaEOS+8DFzqKqy 59k5JQNSWrL6+UAZxU7vK2KQ6mZ/izrzvOgMciS4yKrCLxH+pL8IIW5HRyxXzYW3Nsqw zRGGX8zfxmGzISIkgYuybNhHls2fuBGvrEmj3iHGHueuSAwZQwX81wtRsRwi567a2eVL d7QOmJF1/m8Rz7GfG/2M/QQ7XxfLPsrVTP0LcgXHeRkNd7c8topvHxiw1DwEsnD2VIHY 9qqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=4uG33267VrZPuq/TP2MGJz5yF4YqwpdNO7AQA5+ar2s=; b=bG8slsowTIjfqSCCu65v7JZweoFdrd9niY2UGQiJdo4KxCI/Mlvl4orNVcqgTQ1GoO FSBrkhB932oYZ904G7ZIn7PwNsiqWryPfhEyQrmWMJpaifslkr7nQeTFqV9dwep2/0OB Wlrx4XDNBq8MObZDOlw1vURDZ5CzodMc+z0kElJIFl4qd8ayur8ut+dRTwyCCuLVZHKZ FANDqWUQEBNHcuD1UxtzU8G/oSKoA9VPiPE6v5whXR7P4LWNUKzSTsOHfoMMB1u7ev0L 2Q/PnXvx2Wa65EYBm8PX6MsEKAihyeAf7hFGWwhXip2jxAXcQmkN/W8RgMc7elOQHpxh iVhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O7BrI5oN; 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 e15si7597803ejr.176.2020.11.09.09.36.12; Mon, 09 Nov 2020 09:36:12 -0800 (PST) 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=O7BrI5oN; 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 S1729879AbgKIRgH (ORCPT + 15 others); Mon, 9 Nov 2020 12:36:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731969AbgKIRgG (ORCPT ); Mon, 9 Nov 2020 12:36:06 -0500 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 527FAC0613D3 for ; Mon, 9 Nov 2020 09:36:04 -0800 (PST) Received: by mail-ed1-x544.google.com with SMTP id b9so9656155edu.10 for ; Mon, 09 Nov 2020 09:36:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4uG33267VrZPuq/TP2MGJz5yF4YqwpdNO7AQA5+ar2s=; b=O7BrI5oNvRv+OmwF/UkCImulVAiaztkPKqytKHXY+phxO3mvlbqqkcs7BYsB3rn+Ek gt/KpHJr49OZdbt3NADQHFhpcYjja0bSgE7+WXDaEpg9tTcJTvd6K9bJpFw7UGkQ6IPD zQD8Op68Wh8S0LF2m8pknytLEj1QY2q0+RspgasOMtL1dALe96WnNFKUYYvK+hSXueoQ +oLlVcUZJOe0gwrYm8fEiHaIm6U+zLyzi0+qN7XU+p4k1d/G15GbNbsUen5muluj1D8a WN9VnyOW3Mgpq3uRVEuGPeRZVRta5YJGcTWNftJ1lbfp+i4BmT7fpVjOCs1UsKaMm7tV 6kuw== 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:in-reply-to :references; bh=4uG33267VrZPuq/TP2MGJz5yF4YqwpdNO7AQA5+ar2s=; b=DSh7fGeTIGrCmDFNGAJkVwKbtDApuf0nCQu5i7nZhyZnVTGpandrmXAZEjzR2QdW2U s/J5LL6XVr+dolXMg0vxZBEclO/svvHCT6CUDhq+6NMhbVzaiaba2Z/eA9E1dbJ+yExx eqh7/AlBLXqtijCN6OfDCJT3ksRYFodKh7JOuf6WgKeEkpCGul+0zh+5bt+5A0aFlUOx eS2eZEyK7dG7wSJu3uQr4ZOssXHpj+nn7UqhM9TcpUS86iB0T7dcw1OwYomxe56xF+pX nH0RYj6qJ63vCVY3smpxAl6U/9Fl2DuqdB7yvA6D9eTrTixdx+AhpCUn+yGH+8aidvIP 4TWQ== X-Gm-Message-State: AOAM531AO+5t2n5NDt/HoZ/SSYhMkL7KSxlWLMOndeGPSW6mKULvm6AN qRvv7eU/GkLXGlxad2oIJkAnMd61a1VecHXz X-Received: by 2002:a50:a40f:: with SMTP id u15mr17002139edb.307.1604943362974; Mon, 09 Nov 2020 09:36:02 -0800 (PST) Received: from localhost.localdomain (hst-221-89.medicom.bg. [84.238.221.89]) by smtp.gmail.com with ESMTPSA id jw7sm9123981ejb.54.2020.11.09.09.36.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 09:36:02 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Kyungmin Park , Kamil Debski , Hans Verkuil , Ezequiel Garcia , Nicolas Dufresne , Marek Szyprowski , Stanimir Varbanov Subject: [PATCH 1/4] v4l2-ctrl: Make display delay and display enable std controls Date: Mon, 9 Nov 2020 19:35:38 +0200 Message-Id: <20201109173541.10016-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201109173541.10016-1-stanimir.varbanov@linaro.org> References: <20201109173541.10016-1-stanimir.varbanov@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Make display delay and display delay enable MFC controls standard v4l controls. This will allow reuse of the controls for other decoder drivers. Also the new proposed controls are now codec agnostic because they could be used for any codec. Signed-off-by: Stanimir Varbanov --- .../userspace-api/media/v4l/ext-ctrls-codec.rst | 15 +++++++++++++++ drivers/media/v4l2-core/v4l2-ctrls.c | 4 ++++ include/uapi/linux/v4l2-controls.h | 2 ++ 3 files changed, 21 insertions(+) -- 2.17.1 diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst index ce728c757eaf..82c9cda40270 100644 --- a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst @@ -679,6 +679,21 @@ enum v4l2_mpeg_video_frame_skip_mode - otherwise the decoder expects a single frame in per buffer. Applicable to the decoder, all codecs. +``V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY_ENABLE (boolean)`` + If the display delay is enabled then the decoder is forced to return + a CAPTURE buffer (decoded frame) after processing a certain number + of OUTPUT buffers. The delay can be set through + ``V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY``. This + feature can be used for example for generating thumbnails of videos. + Applicable to the decoder. + +``V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY (integer)`` + Display delay value for decoder. The decoder is forced to + return a decoded frame after the set 'display delay' number of + frames. If this number is low it may result in frames returned out + of display order, in addition the hardware may still be using the + returned buffer as a reference picture for subsequent frames. + ``V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_ENABLE (boolean)`` Enable writing sample aspect ratio in the Video Usability Information. Applicable to the H264 encoder. diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index bd7f330c941c..4a21802e026b 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls.c +++ b/drivers/media/v4l2-core/v4l2-ctrls.c @@ -874,6 +874,8 @@ const char *v4l2_ctrl_get_name(u32 id) case V4L2_CID_MPEG_VIDEO_HEADER_MODE: return "Sequence Header Mode"; case V4L2_CID_MPEG_VIDEO_MAX_REF_PIC: return "Max Number of Reference Pics"; case V4L2_CID_MPEG_VIDEO_FRAME_SKIP_MODE: return "Frame Skip Mode"; + case V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY: return "Display Delay"; + case V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY_ENABLE: return "Display Delay Enable"; case V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP: return "H263 I-Frame QP Value"; case V4L2_CID_MPEG_VIDEO_H263_P_FRAME_QP: return "H263 P-Frame QP Value"; case V4L2_CID_MPEG_VIDEO_H263_B_FRAME_QP: return "H263 B-Frame QP Value"; @@ -1221,6 +1223,7 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type, case V4L2_CID_FLASH_READY: case V4L2_CID_MPEG_VIDEO_DECODER_MPEG4_DEBLOCK_FILTER: case V4L2_CID_MPEG_VIDEO_DECODER_SLICE_INTERFACE: + case V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY_ENABLE: case V4L2_CID_MPEG_VIDEO_FRAME_RC_ENABLE: case V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE: case V4L2_CID_MPEG_VIDEO_H264_8X8_TRANSFORM: @@ -1256,6 +1259,7 @@ 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_DECODER_DISPLAY_DELAY: *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 7035f4fb182c..d6b19f8d0022 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h @@ -773,6 +773,8 @@ enum v4l2_mpeg_video_frame_skip_mode { V4L2_MPEG_VIDEO_FRAME_SKIP_MODE_LEVEL_LIMIT = 1, V4L2_MPEG_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT = 2, }; +#define V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY (V4L2_CID_MPEG_BASE + 647) +#define V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY_ENABLE (V4L2_CID_MPEG_BASE + 648) /* MPEG-class control IDs specific to the CX2341x driver as defined by V4L2 */ #define V4L2_CID_MPEG_CX2341X_BASE (V4L2_CTRL_CLASS_MPEG | 0x1000) From patchwork Mon Nov 9 17:35:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 320947 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1921599ilc; Mon, 9 Nov 2020 09:36:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxh5mtZYL4b9vq2wxqNP8b2zxqL3uSrjBDd0mINcGlh5z9uuFlTOQnJE3koNI1jBzzeQ3/ X-Received: by 2002:a50:ee97:: with SMTP id f23mr16941640edr.333.1604943373012; Mon, 09 Nov 2020 09:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604943373; cv=none; d=google.com; s=arc-20160816; b=he8ZQC/XwHmk3GcEh8Uu8LA6YZXQtm60z3ZiVDIk1C0auPjfO4R3MVkzAgXG87I/eH z5tdZw0Qw5+1YarNOJK+dzX3AvC7ZqVPMRS4FLEaUlmSQuwixyjBOAm3lWwIXTxm7U9k 6OoZlv9TlKmH1tJAOHgOwn1S0UkGck0xE5ZW/BpVg/X1GWRkN3jG6ETtTnedXcp7nTu9 0C3gkScZVcv6hhw0GxUsfdRNxzKHOYK6XW2F+uqznnS/LZuiMsJsqyLZ0+xLmj/3rxoh q06fFz5WbupTD7xYrc49BVv+bDF+WvL4bXF//eaHDytcr5M8ha2Y1f9cTlwPbyZRDFPM GWzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=pFnWMBmOgfjRF3Cwrlx3uYofQt37aDdlePhMz4xU5fM=; b=EbJe0D9wFn0CdYzmNO2PqDTuWj5YMTNC8Ac+V9Kyw9YDDwuyi+PIMKv4O5qqAYiYlh QHRQMvC+d8MekkoUCu4RUZoQaAC2+sf3I1aBv0C6ejbNbCrmy12JX9ZROB3s2IVj0TfR wRH1GBTz6+q3BTZpaRsfqM90vfXxtpI1Rxe1fv1sgkWacZBJub1KdFxL00eQR9WzDtl6 LBMEr9nYWMwmq0jrJ4m7/4kk6qjXqmUhFKJegvuniGY2wut7gOtNMzwH2pka30ggenwN hiBzii1k5YTBH1NJXoG73k9gM6lGKhfe7BrmUN1qmWWBgxAyIxeWtJ0FJUWLMTTN+7TN AhJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iqaR9WXs; 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 e15si7597803ejr.176.2020.11.09.09.36.12; Mon, 09 Nov 2020 09:36:13 -0800 (PST) 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=iqaR9WXs; 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 S1732113AbgKIRgK (ORCPT + 15 others); Mon, 9 Nov 2020 12:36:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731988AbgKIRgG (ORCPT ); Mon, 9 Nov 2020 12:36:06 -0500 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0389C0617A6 for ; Mon, 9 Nov 2020 09:36:05 -0800 (PST) Received: by mail-ej1-x641.google.com with SMTP id f23so6815824ejk.2 for ; Mon, 09 Nov 2020 09:36:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pFnWMBmOgfjRF3Cwrlx3uYofQt37aDdlePhMz4xU5fM=; b=iqaR9WXs1bpO3jxfnrqog2V3ZZ8NOeRIH1JbfpsU9eKC9o235qvTuKsqCqlmJgcOBw pbxE10HHH1JwPmFc67hRNVCOhSr8dplvvLeDmbpc5ysEas6Ms1+jtfNlPx+WkvfOAGhm 4aBXO1QP4IafcuJ2LfpGCM4G/M3jQRaTWj92+SohjcOTyUk2sEUzdE8aC+hde4ZT5Ygg RgaxXMEpqLD1r3RUAlMR656YhCshu7WssWky6m0OVkdyX2/h5snkzfoMsFIiS3nwDfax 7NRlWT96bzk7h7PT5uNlk1pK5ydXXtYiQO+XgMbHpxt8jkc8pOnDCFX9w8k9sVAx232O fkOA== 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:in-reply-to :references; bh=pFnWMBmOgfjRF3Cwrlx3uYofQt37aDdlePhMz4xU5fM=; b=a38fSyY/S8xNlPbLKfav7SVHRm13ROdonMaOuYmaxp0LBshfEDf98f3x7rckCkGDmV QNefUB/vOWqyJCD+iOkjVkvwDwMrYylRmwgxipUnGhe4whSS1KN2GuXvAcq0j7moBaQ4 1AwMkC8GMnBZkx2QvtC4X5j0SVtlXhvmOApViMOQTibxaFwM27TsDNIBX0bXWfggqEdM FYgw102wBdIB/fE8Qm6/4Mk8EFDyJMC6RJ6G/iIpq25clr+sHHThTYkHndPoCHTfuUsL TymR288O46KlOvqf4I9t7GGD3GkSlOQc6ypkpixfGJ5D7iCAltva+frWpvaSEkO6/9CC Cu6g== X-Gm-Message-State: AOAM5322C/sMQ4yTUl9nDViwf2tmJXSvalFEHWZdy0oy2I//A+7SVuN7 VMTYvBodg3VaaV5C7hd3SPO4UQ== X-Received: by 2002:a17:906:1b09:: with SMTP id o9mr16814643ejg.79.1604943364389; Mon, 09 Nov 2020 09:36:04 -0800 (PST) Received: from localhost.localdomain (hst-221-89.medicom.bg. [84.238.221.89]) by smtp.gmail.com with ESMTPSA id jw7sm9123981ejb.54.2020.11.09.09.36.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 09:36:03 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Kyungmin Park , Kamil Debski , Hans Verkuil , Ezequiel Garcia , Nicolas Dufresne , Marek Szyprowski , Stanimir Varbanov Subject: [PATCH 2/4] venus: vdec: Add support for display delay and delay enable controls Date: Mon, 9 Nov 2020 19:35:39 +0200 Message-Id: <20201109173541.10016-3-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201109173541.10016-1-stanimir.varbanov@linaro.org> References: <20201109173541.10016-1-stanimir.varbanov@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for display delay and display delay enable std controls. With this we implement decoder decode output order (decode vs display). Once firmware implement few new features the controls will be used for other use-cases. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.h | 2 ++ drivers/media/platform/qcom/venus/vdec.c | 10 +++++++++- drivers/media/platform/qcom/venus/vdec_ctrls.c | 16 +++++++++++++++- 3 files changed, 26 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/media/platform/qcom/venus/core.h b/drivers/media/platform/qcom/venus/core.h index 7b79a33dc9d6..a57fb6f70e61 100644 --- a/drivers/media/platform/qcom/venus/core.h +++ b/drivers/media/platform/qcom/venus/core.h @@ -210,6 +210,8 @@ struct vdec_controls { u32 post_loop_deb_mode; u32 profile; u32 level; + u32 display_delay; + u32 display_delay_enable; }; struct venc_controls { diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index ea13170a6a2c..1b3b819ccc83 100644 --- a/drivers/media/platform/qcom/venus/vdec.c +++ b/drivers/media/platform/qcom/venus/vdec.c @@ -615,7 +615,7 @@ static int vdec_set_properties(struct venus_inst *inst) { struct vdec_controls *ctr = &inst->controls.dec; struct hfi_enable en = { .enable = 1 }; - u32 ptype; + u32 ptype, decode_order; int ret; if (ctr->post_loop_deb_mode) { @@ -625,6 +625,14 @@ static int vdec_set_properties(struct venus_inst *inst) return ret; } + if (ctr->display_delay_enable && ctr->display_delay == 0) { + ptype = HFI_PROPERTY_PARAM_VDEC_OUTPUT_ORDER; + decode_order = HFI_OUTPUT_ORDER_DECODE; + ret = hfi_session_set_property(inst, ptype, &decode_order); + if (ret) + return ret; + } + return 0; } diff --git a/drivers/media/platform/qcom/venus/vdec_ctrls.c b/drivers/media/platform/qcom/venus/vdec_ctrls.c index 974110b75b93..e1378532dec8 100644 --- a/drivers/media/platform/qcom/venus/vdec_ctrls.c +++ b/drivers/media/platform/qcom/venus/vdec_ctrls.c @@ -30,6 +30,12 @@ static int vdec_op_s_ctrl(struct v4l2_ctrl *ctrl) case V4L2_CID_MPEG_VIDEO_VP9_LEVEL: ctr->level = ctrl->val; break; + case V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY: + ctr->display_delay = ctrl->val; + break; + case V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY_ENABLE: + ctr->display_delay_enable = ctrl->val; + break; default: return -EINVAL; } @@ -89,7 +95,7 @@ int vdec_ctrl_init(struct venus_inst *inst) struct v4l2_ctrl *ctrl; int ret; - ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 9); + ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 11); if (ret) return ret; @@ -158,6 +164,14 @@ int vdec_ctrl_init(struct venus_inst *inst) if (ctrl) ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE; + v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, + V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY, + 0, 16383, 1, 0); + + v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, + V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY_ENABLE, + 0, 1, 1, 0); + ret = inst->ctrl_handler.error; if (ret) { v4l2_ctrl_handler_free(&inst->ctrl_handler); From patchwork Mon Nov 9 17:35:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 320948 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1921616ilc; Mon, 9 Nov 2020 09:36:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3zbtRgJfnHs622Gk/Wr38ls+dfvGnCOYMHiQvy4irSNm+WzoyxsFrpDstoHGimWrbueNF X-Received: by 2002:a17:906:57ca:: with SMTP id u10mr16770593ejr.389.1604943374552; Mon, 09 Nov 2020 09:36:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604943374; cv=none; d=google.com; s=arc-20160816; b=aV47KNUDVvr5cwlKxaDaPUYrzuoQ8HDhuEguTDFpfv+Q9EM39TFKETcq/pSXwTo1Uq FzQQ2twWoFar0xXW7Pu7VjFhVcLE7bzaxp5QWdqgPOylmrJ6UJs4kyX1OjhtstLV7vwC GXReMCpGH9bmRYXoizNYHApx4ogpEZEdflvTUrFBDjF8pWkE16OfuFxtdGnpUERtGJFU 0Qc0yCr6vaqp6uosfnDIDgnDBAnLbw6AP9iJMILLrknQYQDnucQwpSdeCXtUS2CONXOr gD2zIn+saGN5xC+9uXZYej/ggoVajCKNRA5728cFmguUYxfHuZKyQqkFme0UVoIOOgW2 giBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=SsKi06aFz0HTo2Yl+cJME4oxrb6MxPsHXouTbem6RGI=; b=RuykxTZraSFEYLld7ochMFt59BY99+8S6FOjKQp+0SsGy4/qYscV989eAdzZzDXu95 bwM5qQzlgik8/2pEuwmOQX2QVU1rCXpxIASGRrwbdpd2JsoqJrR08K9xTRWbaxqV5PJG L3FA6aVCUg2cQjQifqh9r8DR1J5hC0e2a15WurTIpno4sHU11/0azKd0OAEeV6yaZBTd zv+TDpPvqPeSDCJqMp0bWz0h8F+DG1NmDLrerumroW6oHzT2oVv/C2jnvCh+eKgI5e/M 2vm4vctnQGfA7k3q0nNmJLSvKtncXmxkJ0mwqAmOkYfjmEEex6COxCOoCe4r+8Su/CeI hFug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BFxRxbsn; 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 e15si7597803ejr.176.2020.11.09.09.36.14; Mon, 09 Nov 2020 09:36:14 -0800 (PST) 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=BFxRxbsn; 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 S1731988AbgKIRgL (ORCPT + 15 others); Mon, 9 Nov 2020 12:36:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731756AbgKIRgH (ORCPT ); Mon, 9 Nov 2020 12:36:07 -0500 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 04E20C0613CF for ; Mon, 9 Nov 2020 09:36:07 -0800 (PST) Received: by mail-ed1-x544.google.com with SMTP id cq7so9452087edb.4 for ; Mon, 09 Nov 2020 09:36:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SsKi06aFz0HTo2Yl+cJME4oxrb6MxPsHXouTbem6RGI=; b=BFxRxbsn5xdgpJDxro2qTxpz/f0nOnFDLq48DGON105z4GLn5pgjkZnbCOd9mCkkZJ CRI0u8Or6ciO+QGVcFfMZ1RJovaGb7gOfORQp3Yv+95GSQ729HL+ZPkBSlN4p2BoJJOu aDMvNBe7de5MnwHxmWaio5Z6fbRhA3U3uIs0GyhYJ5WqAkRnJ/xmylnSx/Nzu2utmZck EBlHZp5yLxaMGD2b47Thvh57MEwg3LhvhFAkTNuys+cwXZUGrTHaOJ0uBGtz5nUlpsLX 9DvrAh/iAVOBaboXZsGireRxpymIWivTswiOZwjPQ09vE3FrOKoslXyiCLTQmHHUGNo0 0Qcg== 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:in-reply-to :references; bh=SsKi06aFz0HTo2Yl+cJME4oxrb6MxPsHXouTbem6RGI=; b=Ph1AduKS+KNbgKJn2QQvFKj1Wa2KH49sk9CDSs8CqIjbbX9UVGOtPpo3lCm9bBSL9G Le55cAuvfpIF1hKtoFnDR+3yX3cd5+SMPSHE51nDscHrF4HrRdlGrZgswVX+p1/ONFwH OmCtNrK3j97jOdcvMd8yn1jU4723jOCir9hhXKAxMiH752zMqFBuUYwZ2HucJuDn0zyE uN8u2GUphbaYP00WbYIazruM3dxa0WUOEHJcVsdesl22kMXrg9oE7KyaM5q/extJk+j8 DU+qwnViGM2e9eN9L79w0FRFOOQfPc1fh5o5k/qpJAe8RbuHrh6IGKLlcxNJVKENfB+4 ruGw== X-Gm-Message-State: AOAM531h3rAwp4G1NXyuL51TWPeInE5fL3CU+HI449mn20CTcjmCZiOO HN6QU74MJ0IMDmcWj+br6B4jXQ== X-Received: by 2002:a50:eb0a:: with SMTP id y10mr17307631edp.342.1604943365785; Mon, 09 Nov 2020 09:36:05 -0800 (PST) Received: from localhost.localdomain (hst-221-89.medicom.bg. [84.238.221.89]) by smtp.gmail.com with ESMTPSA id jw7sm9123981ejb.54.2020.11.09.09.36.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 09:36:05 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Kyungmin Park , Kamil Debski , Hans Verkuil , Ezequiel Garcia , Nicolas Dufresne , Marek Szyprowski , Stanimir Varbanov Subject: [PATCH 3/4] s5p-mfc: Use display delay and display enable std controls Date: Mon, 9 Nov 2020 19:35:40 +0200 Message-Id: <20201109173541.10016-4-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201109173541.10016-1-stanimir.varbanov@linaro.org> References: <20201109173541.10016-1-stanimir.varbanov@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Use the standard display_delay and display_delay_enable controls, the legacy private MFC controls are kept for backward compatibility. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.17.1 Acked-by: Marek Szyprowski diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c index 61e144a35201..4a3e8e9bbff2 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c @@ -167,6 +167,13 @@ static struct mfc_control controls[] = { .step = 1, .default_value = 0, }, + { + .id = V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY, + .type = V4L2_CTRL_TYPE_INTEGER, + .minimum = 0, + .maximum = 16383, + .default_value = 0, + }, { .id = V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY_ENABLE, .type = V4L2_CTRL_TYPE_BOOLEAN, @@ -176,6 +183,13 @@ static struct mfc_control controls[] = { .step = 1, .default_value = 0, }, + { + .id = V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY_ENABLE, + .type = V4L2_CTRL_TYPE_BOOLEAN, + .minimum = 0, + .maximum = 1, + .default_value = 0, + }, { .id = V4L2_CID_MPEG_VIDEO_DECODER_MPEG4_DEBLOCK_FILTER, .type = V4L2_CTRL_TYPE_BOOLEAN, @@ -690,9 +704,11 @@ static int s5p_mfc_dec_s_ctrl(struct v4l2_ctrl *ctrl) switch (ctrl->id) { case V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY: + case V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY: ctx->display_delay = ctrl->val; break; case V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY_ENABLE: + case V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY_ENABLE: ctx->display_delay_enable = ctrl->val; break; case V4L2_CID_MPEG_VIDEO_DECODER_MPEG4_DEBLOCK_FILTER: From patchwork Mon Nov 9 17:35:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 320949 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1921946ilc; Mon, 9 Nov 2020 09:36:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwvg5sOX8fcB+KrTbDB0o1+osOv9G0KWUsPAS9wlKZ4bV875iHT7mWJE37gVZ72lJWtunE X-Received: by 2002:aa7:d1c6:: with SMTP id g6mr16206848edp.130.1604943399413; Mon, 09 Nov 2020 09:36:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604943399; cv=none; d=google.com; s=arc-20160816; b=jy0ayFqBjVAC+dy5cBd3pxVD7qMEX+BTeDIdpaMDFcK1tVlWxQcGS/g59dwivfnrGL 7zRQhfYc7VSIHVN8LtApZjf+fRtjcSVqbaA3w58f47b4pWtH1fFLZLjStZhU0kgwR8XL 1O8BoDANxNOV0n5ykfYSYGC8hcRxVkCZ0o5mq8RtTEpOPIEx25evPTxJOWtvzIjUVqZ5 kpVoJb0tL7+vEwMTbakBcCtf6OjJ+u6eluK0yXis2YXFcKrTxNcSuF0sv5zgiAG1b9X9 PBG2MocBvEPVp8neBv6aksSyeleOWbksf5yJBNXHrnRR8j0nqIxlBsNSItS7h88X04KU 5w0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=L9F3HkMW13rcGTb3bzExEGKic5ytenCIez631dN7HLE=; b=U+E2VTSv1kCbkLocRIUeAEmPhSXwJqFMjuDoGnLPA/0rakOUzoWMphO88qbVL47VZC jOwMu3saJAANx4TkIXeXU+hW72Ouu7rUoPIaecXhAUC3JlMiVX+u+BMDbdh+spOxkGrs 0Cde3H4xerT9iPhkb8CflmWG1G/D4aqtNutU/lrSRdszdSEQQjxEoGbK4ihYQgMLe53w NIgT6Xt8yjLClzuvWnfsKv99N/h/ONozN1qL8/DqJP3PdNj2yjQQ1YBGKfT23LBS7Qdq iGHcAibjNbMJNk7Ai+b0nUdWLJZoFiz5uGQwMZt8jf+56HUGvvfLJTUxQN+SV1WgPUZ5 dRjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PitAaj9R; 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 p21si1847146edw.573.2020.11.09.09.36.39; Mon, 09 Nov 2020 09:36:39 -0800 (PST) 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=PitAaj9R; 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 S1732170AbgKIRgR (ORCPT + 15 others); Mon, 9 Nov 2020 12:36:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732041AbgKIRgI (ORCPT ); Mon, 9 Nov 2020 12:36:08 -0500 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ABE2C0613D6 for ; Mon, 9 Nov 2020 09:36:08 -0800 (PST) Received: by mail-ej1-x641.google.com with SMTP id dk16so13416874ejb.12 for ; Mon, 09 Nov 2020 09:36:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L9F3HkMW13rcGTb3bzExEGKic5ytenCIez631dN7HLE=; b=PitAaj9RXayVuhqFAVZImb2FJzaptvJrhnw4hRd7qLhtpHZt3/13gByfP2V52MOaUX aH5Y7+o8Wug0hJs2gyg/kpATu+uz4xGJqpaA+qMwMJNMx93z7o1RSZbdhe60teDElpma MZWjsED9bHeNSqbizQ32mr7FDj01m120ZIF+PLqQ2hWlxXqmbfq7/C7qIMbzCia4vpk0 wNo+WpH7HTWxUI88xYoFekEvbl+0OmG3mqHshaIormsO/9qngltHSg3J2kMiMZiybVvo rnnAax8INabenQwe0yl5nNUwZISmh+wVD3Xw0HE3/3I67qQhxFnAtuHbilgLmxjQDOnA wLSQ== 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:in-reply-to :references; bh=L9F3HkMW13rcGTb3bzExEGKic5ytenCIez631dN7HLE=; b=QaHCYPGqJRtINyWykJDY8viRuZNJHuqPiLeoOz3E25+jRbNR9M+n5ilb7LuQ3C1mch phQcjccWzGL2taq5ONSV17waG+e4zzLqyFtrnc1WMq6xtyFBYoAaWmSFGrFWW5lBqwdE qeYFDxtpL/yNXtD3sK3IiDzbFxipZx2hGRHOyYNwHJJYIL+X9P5z3GDM+U2i0Nq0sLDU S7uGfrLHNFWfvi62mUnHFE7nQyA2HYUmCuWyFIteG+Gi9IxXYy7t9lTRl9r8Jyhd9JYX NbZYu8Xu490cWCsHHXg6HIEyi2hMTt7mCRPZz0757vK64Yh9/bD3nkJ5Q1wFf0ZlI725 1UQw== X-Gm-Message-State: AOAM5327bW8Q3QSa88rRIYdP7fJhE0GJAR3oYT/amkk/e5jym3B1U7YZ boUyjNyB8EntIVmM1/lVw9O9JA== X-Received: by 2002:a17:906:1381:: with SMTP id f1mr15609974ejc.87.1604943367038; Mon, 09 Nov 2020 09:36:07 -0800 (PST) Received: from localhost.localdomain (hst-221-89.medicom.bg. [84.238.221.89]) by smtp.gmail.com with ESMTPSA id jw7sm9123981ejb.54.2020.11.09.09.36.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 09:36:06 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Kyungmin Park , Kamil Debski , Hans Verkuil , Ezequiel Garcia , Nicolas Dufresne , Marek Szyprowski , Stanimir Varbanov Subject: [PATCH 4/4] docs: Deprecate mfc display delay controls Date: Mon, 9 Nov 2020 19:35:41 +0200 Message-Id: <20201109173541.10016-5-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201109173541.10016-1-stanimir.varbanov@linaro.org> References: <20201109173541.10016-1-stanimir.varbanov@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Deprecate mfc private display delay and display enable controls for new clients and use the standard controls instead. Signed-off-by: Stanimir Varbanov --- .../userspace-api/media/v4l/ext-ctrls-codec.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.17.1 diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst index 82c9cda40270..b8f69c52b2a2 100644 --- a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst @@ -2771,6 +2771,11 @@ MFC 5.1 Control IDs feature can be used for example for generating thumbnails of videos. Applicable to the H264 decoder. + .. note:: + + This control is deprecated. Use the standard + ``V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY_ENABLE`` control instead. + ``V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY (integer)`` Display delay value for H264 decoder. The decoder is forced to return a decoded frame after the set 'display delay' number of @@ -2778,6 +2783,11 @@ MFC 5.1 Control IDs of display order, in addition the hardware may still be using the returned buffer as a reference picture for subsequent frames. + .. note:: + + This control is deprecated. Use the standard + ``V4L2_CID_MPEG_VIDEO_DECODER_DISPLAY_DELAY`` control instead. + ``V4L2_CID_MPEG_MFC51_VIDEO_H264_NUM_REF_PIC_FOR_P (integer)`` The number of reference pictures used for encoding a P picture. Applicable to the H264 encoder.