Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp397327ybt; Wed, 8 Jul 2020 02:36:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPJlpaHP8JladlOQAiCok99mSVEt4uBAJaZY7vgwTRw4beCHw+J4M3YiWtaIimVIA5kAef X-Received: by 2002:a50:d908:: with SMTP id t8mr12745150edj.373.1594201004537; Wed, 08 Jul 2020 02:36:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594201004; cv=none; d=google.com; s=arc-20160816; b=SC90knFisscqBxiRqZI0YHHjntGNA+8kyLJlH2xg9tfPVRZMSFjzk0mV5Av7t1A+uA j3QJfgnCcUovHi4G+CKRRz1MyPJXBhUDF/esYbt1wzFHW5y7oJgcauLRGt4txtVi6NQr yTgy5M/exDqq+yCh1AnVkuYMcnKDL7XSFUk/97BtZAMv/TCjJfTTjJ0R8ZGznsvrd+G/ pkH4PBnbw8CGaBM1K4iiByKQCbHrDLWF59yb4VlSpO73bXHlWsICL1x85+yPSqWD6J+T yzn5ZS3QjrQ7mjnNhRkqMfIxuo3YbpRDI9FxOoz+8Ah6L3xKB/IqMhLgdVFr8EFwUxC1 FVOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:cc:to:in-reply-to:mime-version:user-agent:date :message-id:from:references:subject:dkim-signature; bh=wTdcKNoDsPfl07/DOE2fNR+ke3gfU5xTSF0Q+OGPwDo=; b=ukvgYulFslb8VFanKSqMeV6QUpA3dKndX0WQIkryVhacx/3987feTe/U6FrIxW6C/I Az4cnZ/hueAYADR+bq5WBYaOJV+NDuFZTHLNUd9Ps0mgLADOFtUh9RztNa5uC1e2oxZ9 3Qt4VtsKVxSkUmKRXOpWCPpHqVCL+ny32ZrFYb4Vj+S1HgE/X1F4bkO3mKlprFFGxChx LiHG+PGfkFpC+g/lUezgpxdyqNk+my7RcoEGLdUp8HoEy177ru//g0VBJ5ZJPica3/ko 7bhDz9Nj3nxzmgwPtcbrKFuB0urS0Kh1mnkMnyMdAuhb7ZCykCn9UO3+F97+tHkkYV/W rqzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=001 header.b=K+0YlWIh; 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 y25si16808069edm.63.2020.07.08.02.36.19; Wed, 08 Jul 2020 02:36:44 -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; dkim=pass header.i=@kwiboo.se header.s=001 header.b=K+0YlWIh; 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 S1727932AbgGHJeL (ORCPT + 99 others); Wed, 8 Jul 2020 05:34:11 -0400 Received: from o1.b.az.sendgrid.net ([208.117.55.133]:27840 "EHLO o1.b.az.sendgrid.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726855AbgGHJeK (ORCPT ); Wed, 8 Jul 2020 05:34:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=subject:references:from:mime-version:in-reply-to:to:cc:content-type: content-transfer-encoding; s=001; bh=wTdcKNoDsPfl07/DOE2fNR+ke3gfU5xTSF0Q+OGPwDo=; b=K+0YlWIhBITmcjO7AFqdXuKkE2Rpnfzpy5bTYcyz4ecv00XYs0WqXkWOUdgnAMvQKi9p m7kZ37ZhqQDKaV9sTETxUFMWCISi5a0wAPmlsgANVDLGCsMIKCc1HXX0dT7EfPcv8K+4ve ZGXeeebAI30YJYaME1TEpylEZZndc1WUY= Received: by filterdrecv-p3mdw1-75c584b9c6-f64fx with SMTP id filterdrecv-p3mdw1-75c584b9c6-f64fx-19-5F059311-5A 2020-07-08 09:34:10.033222676 +0000 UTC m=+1009467.905161444 Received: from [192.168.1.14] (unknown) by ismtpd0005p1lon1.sendgrid.net (SG) with ESMTP id _qOInuZpSNKc1pja7tIRdQ Wed, 08 Jul 2020 09:34:09.856 +0000 (UTC) Subject: Re: [PATCH v2 12/12] media: rkvdec: h264: Support profile and level controls References: <20200701215616.30874-1-jonas@kwiboo.se> <20200706215430.22859-1-jonas@kwiboo.se> <20200706215430.22859-13-jonas@kwiboo.se> <97a4c51aa5cfcdef7f4c96fcf84f85bd7c8b3729.camel@collabora.com> From: Jonas Karlman Message-ID: Date: Wed, 08 Jul 2020 09:34:10 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <97a4c51aa5cfcdef7f4c96fcf84f85bd7c8b3729.camel@collabora.com> X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0hxvWe0Hf48kbhzjVr?= =?us-ascii?Q?Ys96KNQJawVSCYaKiFSD8ZVEvLm8Ve05YbSeQZz?= =?us-ascii?Q?fzijREANhnjgYa133r4hrvXKtDCqFTpm2c=2FqfmI?= =?us-ascii?Q?uIpvSdjJ7GGIUhhE+Q4kYOgnDKETrgT9rZkxI9k?= =?us-ascii?Q?48p1SMzPdxeZDumzOIYj3GaotzcD+K4ksDfkrCl?= =?us-ascii?Q?J=2Fb25Z8PPAds8XfWa=2FQIQ=3D=3D?= To: Ezequiel Garcia , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Hans Verkuil , Nicolas Dufresne , Tomasz Figa , Alexandre Courbot Content-Type: text/plain; charset=us-ascii Content-Language: sv Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-08 05:19, Ezequiel Garcia wrote: > On Mon, 2020-07-06 at 21:54 +0000, Jonas Karlman wrote: >> The Rockchip Video Decoder used in RK3399 supports H.264 profiles from >> Baseline to High 4:2:2 up to Level 5.1, except for the Extended profile. >> >> Expose the V4L2_CID_MPEG_VIDEO_H264_PROFILE and the >> V4L2_CID_MPEG_VIDEO_H264_LEVEL control, so that userspace can query the >> driver for the list of supported profiles and level. >> >> Signed-off-by: Jonas Karlman >> Reviewed-by: Ezequiel Garcia >> --- >> Changes in v2: >> - Moved to end >> - Collect r-b tag >> --- >> drivers/staging/media/rkvdec/rkvdec.c | 13 +++++++++++++ >> 1 file changed, 13 insertions(+) >> >> diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/rkvdec/rkvdec.c >> index 4faee9262392..b21031535330 100644 >> --- a/drivers/staging/media/rkvdec/rkvdec.c >> +++ b/drivers/staging/media/rkvdec/rkvdec.c >> @@ -144,6 +144,19 @@ static const struct rkvdec_ctrl_desc rkvdec_h264_ctrl_descs[] = { >> .cfg.def = V4L2_MPEG_VIDEO_H264_START_CODE_ANNEX_B, >> .cfg.max = V4L2_MPEG_VIDEO_H264_START_CODE_ANNEX_B, >> }, >> + { >> + .cfg.id = V4L2_CID_MPEG_VIDEO_H264_PROFILE, >> + .cfg.min = V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE, > > Nicolas recently pointed out to me that our drivers > can't support ASO/FMO baseline features, and so > seems we need to leave baseline out. I will change min to V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_BASELINE in v3. Regards, Jonas > > (Applies to Hantro as well). > > Thanks, > Ezequiel > >> + .cfg.max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_422, >> + .cfg.menu_skip_mask = >> + BIT(V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED), >> + .cfg.def = V4L2_MPEG_VIDEO_H264_PROFILE_MAIN, >> + }, >> + { >> + .cfg.id = V4L2_CID_MPEG_VIDEO_H264_LEVEL, >> + .cfg.min = V4L2_MPEG_VIDEO_H264_LEVEL_1_0, >> + .cfg.max = V4L2_MPEG_VIDEO_H264_LEVEL_5_1, >> + }, >> }; >> >> static const struct rkvdec_ctrls rkvdec_h264_ctrls = { > >