Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp412256ybc; Fri, 22 Nov 2019 07:13:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwwbHuwKKIgk+P3NsCTxlQPXKS3mDYXE50OBATGFA7IgpquwLp1ITwk1bLNhk5ofulwrEvZ X-Received: by 2002:a17:906:698b:: with SMTP id i11mr22237258ejr.97.1574435622319; Fri, 22 Nov 2019 07:13:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574435622; cv=none; d=google.com; s=arc-20160816; b=RhtYrGiRoDDq+Ny1wcXzDQuMRb6x7oKNcSKJH3bGpOiq2SZfSi6Ik4KnWDzVmNepe3 /Z8dVp2eKiEW/zcfnK7MVVZROPx4/5Iegg40q7dv5XQO1KpHVCY15uAcRHNuROFs5/Pw 5GsRzRcnc17BAXbrMxiiQ13uE532GbH2/Vjan4YiIwcv4JJc/gsrVgzyPQifbDFdXsqK mJtIFBt2pPQ1QGrhUGf3GF8p3Dh8d6+/tZOUFN/CAmCqBpjw1sqY8TxclmPoTWAhhGqz /+oVfWo74yGylp4ITbXmj9jM+uEsDKKfkEG7trEPSsK/qu1RskdpZcu/HY19hNQN0iY+ 0e5g== 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:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id :dkim-signature; bh=g5NUe7vlbEe2wgfNr66lt2YquPFqR05ke44iUlyinlU=; b=Do4kiTM9Np4rPen1i/zMWWQxw6p/ulX4mxuzZhmvAy2SnZI2KCSbfbLQ4gmu4P5vig VjCdBkTY/1Oz8/tPu5+hF6ejTdZp6PE1qwKEOFs2wiZdM6dSmukJ1laeVksQMEkUN9ty SOd5UAhstbRWNW7ruHl7BU9d2BdkyeVSvO7OUhGtNKDaQpCkcNgzvXFs7oINzgfJYbtK tHb4z9xo5PvYLNy+QBEv7mXJZ3V/lfnrgw+Us0yOttiwdW7xErJatBS3McyUB42R4mc1 /S5vHtzamcTwRCXziK/imnXUZ66W5OkRRJyP2ckU8Ykhht9PLDnGL7PlgvsuVi8EfSC0 E2IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b="YB/UzBGO"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rp9si4334472ejb.40.2019.11.22.07.13.16; Fri, 22 Nov 2019 07:13:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b="YB/UzBGO"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727166AbfKVPJ1 (ORCPT + 99 others); Fri, 22 Nov 2019 10:09:27 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:39574 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726759AbfKVPJ0 (ORCPT ); Fri, 22 Nov 2019 10:09:26 -0500 Received: by mail-qt1-f196.google.com with SMTP id t8so8172644qtc.6 for ; Fri, 22 Nov 2019 07:09:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=g5NUe7vlbEe2wgfNr66lt2YquPFqR05ke44iUlyinlU=; b=YB/UzBGOwUoXBzOrmcmzXISuMyursMtRnjg5a7p/fdYK+/DyPLb/40VRF9XWScfcGz xk80Cp/0W8vxIbTT9v4P1MpvrRTk794Qd/t6gFDmn5/Fy25IDRNmEnNLkYaUgJrV6q6B N/MPCdJvPY81oc1zHDlVYOi3VMQVJ2sv374uH74hYXkvjnb7/jaD+sHLy2y7MuC8odee xhxVxze/dTdua7AWxfk0P4nKulmMv8VsMuxBK/Sb6M/MA79onUv4a0Yx3vaG3bu+ael1 kc2DY3xoyoqL3B+ZKPkPmh5TvvAAOELQusgdTguCjyWXA7UJSjw/x6+rhXWuVaWZ/xOB QxFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=g5NUe7vlbEe2wgfNr66lt2YquPFqR05ke44iUlyinlU=; b=KHRtzzSMKfsiyjRu+e9sDp5eT3AAlfMzzTAKKR4hxBg+mtyNIv9wi13zj/WX4jshz0 siZih08U7V6ymtkxc8qW2HCa92bWzO2StZ9Mt59QWGFagHtJjAlD90rEpp4wDd11e2Sw tUGf/bqHP8o5FFim8S7rWvKebsbQUN1if+oLGl+FsKHfaCzwBKL1BMGXXyXiqDt9BwFF fu8RJ7xNT49SB2/w5jv1Osz1+Z5ZAmCXA32JPIsEYI5fFMuqj3c7C8dhBW7UpL9/t+8D qSmN/heyiM+dtucs1z0uf9bVdTYUOMch1YcoFuPoTMeYkf5WrMGqtzhKqw/iRr4j0si5 Ua6g== X-Gm-Message-State: APjAAAViV+9g23Ez1Qribjq7MciYC3/oGs1tNDmv60EyNBeKhnAD+iJl XtSYUi8TN/F9oASpcriB2JEang== X-Received: by 2002:ac8:89c:: with SMTP id v28mr3765148qth.156.1574435365519; Fri, 22 Nov 2019 07:09:25 -0800 (PST) Received: from skullcanyon ([192.222.193.21]) by smtp.gmail.com with ESMTPSA id c19sm3583774qtb.30.2019.11.22.07.09.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2019 07:09:24 -0800 (PST) Message-ID: <767528be59275265072896e5c679e97575615fdd.camel@ndufresne.ca> Subject: Re: [PATCH] media: hantro: Support H264 profile control From: Nicolas Dufresne To: Hirokazu Honda , ezequiel@collabora.com, mchehab@kernel.org, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, tfiga@chromium.org Date: Fri, 22 Nov 2019 10:09:23 -0500 In-Reply-To: <20191122051608.128717-1-hiroh@chromium.org> References: <20191122051608.128717-1-hiroh@chromium.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.1 (3.34.1-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le vendredi 22 novembre 2019 à 14:16 +0900, Hirokazu Honda a écrit : > The Hantro G1 decoder supports H.264 profiles from Baseline to High, with > the exception of the Extended profile. > > Expose the V4L2_CID_MPEG_VIDEO_H264_PROFILE control, so that the > applications can query the driver for the list of supported profiles. Thanks for this patch. Do you think we could also add the LEVEL control so the profile/level enumeration becomes complete ? I'm thinking it would be nice if the v4l2 compliance test make sure that codecs do implement these controls (both stateful and stateless), it's essential for stack with software fallback, or multiple capable codec hardware but with different capabilities. > > Signed-off-by: Hirokazu Honda > --- > drivers/staging/media/hantro/hantro_drv.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/staging/media/hantro/hantro_drv.c b/drivers/staging/media/hantro/hantro_drv.c > index 6d9d41170832..9387619235d8 100644 > --- a/drivers/staging/media/hantro/hantro_drv.c > +++ b/drivers/staging/media/hantro/hantro_drv.c > @@ -355,6 +355,16 @@ static const struct hantro_ctrl controls[] = { > .def = V4L2_MPEG_VIDEO_H264_START_CODE_ANNEX_B, > .max = V4L2_MPEG_VIDEO_H264_START_CODE_ANNEX_B, > }, > + }, { > + .codec = HANTRO_H264_DECODER, > + .cfg = { > + .id = V4L2_CID_MPEG_VIDEO_H264_PROFILE, > + .min = V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE, > + .max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH, > + .menu_skip_mask = > + BIT(V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED), > + .def = V4L2_MPEG_VIDEO_H264_PROFILE_MAIN, > + } > }, { > }, > };