From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 33B8849784 for ; Wed, 20 Mar 2024 08:44:58 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EF0E668D40A; Wed, 20 Mar 2024 10:44:55 +0200 (EET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id ACFAF68D0FC for ; Wed, 20 Mar 2024 10:44:49 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710924295; x=1742460295; h=from:to:subject:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version; bh=CVdhGRUL69FEydcr2oKjQQRoRhBZPMNl6XmG0dKr+7I=; b=kD36iw2EwKGImt7ylTKgVLukCkbZVC+eP+HpHYl9be8j9Ihrlh5uv9uu OqZqhCy4Okb9uvFKw8MSqCY4BoeEfQHr8ZBYtvhJks+BY+zF4QTqiwv7Z YmiCiJtj1WlZGDdM2MDxpC7tKTp+JsmGFRBYx9A9wyPXaDytZZY2nsMGY OVbZLHainpBLFc3tmjVGTLhyuWQ1NpM1hYd5axLUSQ/Yl7sPc2GT6I28d c0aEgIhROzHDFFsZyPFwCzsTJlG4U/VZJHzECtdBx9wHyRcIUnvzYb/aO ehF4dw2RkNbgD3m1hopCeit8dKriEW90e3nKgPGMkXIl8eCangnyHNLVw A==; X-IronPort-AV: E=McAfee;i="6600,9927,11018"; a="5714844" X-IronPort-AV: E=Sophos;i="6.07,139,1708416000"; d="scan'208";a="5714844" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2024 01:44:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,139,1708416000"; d="scan'208";a="18817836" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orviesa005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 20 Mar 2024 01:44:48 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 20 Mar 2024 01:44:47 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 20 Mar 2024 01:44:46 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Wed, 20 Mar 2024 01:44:46 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 20 Mar 2024 01:44:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bH1TEj8aewGBeFPRHSODNBWAwJcLhsh0X1z0Q3DyF3uqlnw5vVHmX7WU8RH175uK4HkgbTWTw3BqICH/asLGDwvkIdVBoJjv3JcA1PvA88SkNDSYrK7AtYKORxihxdyfs70KEX5eNRUhrfmJRzHZjdojy20g8dgooVXpLEH42Wccn+9W96Ua6hhHDusPtJVZbs+1zB5h2HY3K0CXyI3PhRjG/pwChnVA3BKDiO4K7QVFID9hrpNINkn12BCW+9McMfAmqLmSeQ4YV4VoNICVwziYyL1oFqfzPOgO8zk9eY//evjQUDPPhNicBZ8jMn3YlNbntL35Bc394MwVH/K+Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CVdhGRUL69FEydcr2oKjQQRoRhBZPMNl6XmG0dKr+7I=; b=g7ec7HX9ME8+PU0H1P0iqRR2vOwNOgcf0tTGIEl7bnvdy+dZEZY/IxJJ7QXr1dguNIR9Oyw7YTMOboNnm6jKKqPKmbaTfYhdvuyVfYK9I7L2x4n/TfIhY2gK9bOfY0x+mEKlMhORbVOiVBUD7dor9cOwoZeOqQ76cg2/eaoNCuiruHHNF1vpwL3BfXnFbmoJ/yiPc2wjtX3nOO/r4/VgiHoMbUPotS2RTd5y1m135NdhRot3XyPNU/YB/lXebBwEjpn1AcaaLogg8qYyiJdjQyxTah1HRbDxs8wY1tpLYpzU2oOUdAsxQzv1O528Ut1Sv8P63qRKfvejDpseDA58fQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH0PR11MB5030.namprd11.prod.outlook.com (2603:10b6:510:41::5) by SJ2PR11MB8300.namprd11.prod.outlook.com (2603:10b6:a03:548::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.11; Wed, 20 Mar 2024 08:44:44 +0000 Received: from PH0PR11MB5030.namprd11.prod.outlook.com ([fe80::566d:2e2d:1fa3:d511]) by PH0PR11MB5030.namprd11.prod.outlook.com ([fe80::566d:2e2d:1fa3:d511%5]) with mapi id 15.20.7409.010; Wed, 20 Mar 2024 08:44:44 +0000 From: "Wang, Fei W" To: "ffmpeg-devel@ffmpeg.org" Thread-Topic: [FFmpeg-devel] [PATCH v3 2/2] lavc/vaapi_encode_h265: Set general_*_constriaint flags with profile Thread-Index: AQHaeXp5igVfhXyhtUm2DpOVNcx3wrFAUtOA Date: Wed, 20 Mar 2024 08:44:44 +0000 Message-ID: <2632f0803eef7becfaff4458547f967a4578a997.camel@intel.com> References: <20240318042111.21983-1-fei.w.wang@intel.com> <20240318042111.21983-2-fei.w.wang@intel.com> <4cdd5a84-8547-48ea-b0e5-62ca20da39a3@jkqxz.net> In-Reply-To: <4cdd5a84-8547-48ea-b0e5-62ca20da39a3@jkqxz.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.36.5-0ubuntu1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR11MB5030:EE_|SJ2PR11MB8300:EE_ x-ms-office365-filtering-correlation-id: 2f9632c5-60c2-4d47-6626-08dc48b9fdef x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0J3sGM4YORECqGHyYJIakW2WuizhNsvm6zbGzvjv/7+Q3c8B1bnpYvoBy5jqwtATkGAav6DC9rJjPWGVhlt0OT09RnzfevhVkBJ1uBjJX7AvSQv+D61uXuasgM18gsq05uqH/ToB0h4Y44lRTo3uY+ELO/NWpeDVYq88IQBvfjLnH9Jlaly6srtRVJWTQ8vbd+Jjk9+oAblK+EieTTfjzOEnPLAkcB3rliNK0YgsbsX+aUN3mataJjt4EaaReg1UKTmA7n986KUyNoQYWOLn9nxgp4AUwoSZbBUIjIoFuzPcMUre4gew1ac7T5YP4CcOJrrJzI28ycGWlLH6f0cHFT+YjEMltXm64DAJBjGNferAQJuOpSX2SUTJpUIkeODz2stoa1vaEdEEHOyZmIh5GdVXSr0YFMEoN4/44kb4zg6omJCJaIKPtc+GKM3nynCUJZVG92iiKVb78txHI5F3uyhlou3MUZXfIoizx2Nl+8P6scDRW8P3fv/DW/pIFaBOBZJsqvw/oG8dQm6fbMaUpg7qDJOnM+5q+0TFXNxGs0R8IArCt8iZiW+04crGy1w9v1Lk4IUkebkFVIhEhMeGzqjz1lQp+9hJaV8gJlQqvFqWqoI3/Gx2jFJ2bpP5n6yT2x+u2a8AWeQwHHmShD/RzD1/nzXjLNVcyhaDjSLXuf4= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5030.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(366007)(1800799015)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?YkpDKy9ROW5zSUtiQmt2ZzhvaDFaRnBmNnNRUmRRTE0yR3J5Mk1nVUx5cEZl?= =?utf-8?B?M3d3aSs4ekpDZkVzM3p6SnVKQ0tuSEEzZjBDNDFGc0trNG9Hb3oycDV3R3pC?= =?utf-8?B?eUF4NUJBTWVLSkFDSTIya1NwUG9vOW1QRVYvcWpZQzBOVTdCNkdybXhtd0dn?= =?utf-8?B?LytzNXlrVGpWQm1naSs2SVpSVUdSVEVOTEtHRmdVa0JVcGZPcFNlUXhrZW1H?= =?utf-8?B?bGxTNmgzbFB1dkM1enpQYTFrT2FObEpHS1d2b2pVemNSRElhbGVKNGgxODE2?= =?utf-8?B?TzdPUWJPWUFaMkVnbTl3K1U5aHJDRUdMZFB4Zk1lUTlwRVA1b0FKZDBqTVho?= =?utf-8?B?dW5IYTB0TmVMZi8vV1ZXVWtEMkNXVkRCMEpkbTFDSGhvOHdSMjdXMGJ3QVp1?= =?utf-8?B?MXkySytsWkhXZTVXakhxZTV3ZkpGVzl1MEJmUWIwVTFKTXZjSVoyK3ZneFd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rossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5030.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2f9632c5-60c2-4d47-6626-08dc48b9fdef X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2024 08:44:44.5724 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YyxrM/4wQu+iLOH5rDKe8M+DD6ExwnoqqyEWGJiPwOoGeFImls0151pGTmfWcu6J3Xco8cLGWaqw0jn4UxEr6A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB8300 X-OriginatorOrg: intel.com Subject: Re: [FFmpeg-devel] [PATCH v3 2/2] lavc/vaapi_encode_h265: Set general_*_constriaint flags with profile X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Mon, 2024-03-18 at 21:22 +0000, Mark Thompson wrote: > On 18/03/2024 04:21, fei.w.wang-at-intel.com@ffmpeg.org wrote: > > From: Fei Wang > > > > According to Table A.2 in spec. > > > > Signed-off-by: Fei Wang > > --- > > libavcodec/vaapi_encode_h265.c | 176 +++++++++++++++++++++++----- > > ----- > > 1 file changed, 123 insertions(+), 53 deletions(-) > > > > diff --git a/libavcodec/vaapi_encode_h265.c > > b/libavcodec/vaapi_encode_h265.c > > index 43755e2188..5ed317ce11 100644 > > --- a/libavcodec/vaapi_encode_h265.c > > +++ b/libavcodec/vaapi_encode_h265.c > > @@ -258,6 +258,124 @@ fail: > > return err; > > } > > > > +static int vaapi_encode_h265_init_ptl(AVCodecContext *avctx) > > +{ > > + VAAPIEncodeContext *ctx = avctx->priv_data; > > + VAAPIEncodeH265Context *priv = avctx->priv_data; > > + H265RawVPS *vps = &priv->raw_vps; > > + H265RawProfileTierLevel *ptl = &vps->profile_tier_level; > > + > > + ptl->general_profile_space = 0; > > + ptl->general_profile_idc = avctx->profile; > > + ptl->general_tier_flag = priv->tier; > > + > > + ptl->general_profile_compatibility_flag[ptl- > > >general_profile_idc] = 1; > > + > > + if (ptl->general_profile_compatibility_flag[1]) > > + ptl->general_profile_compatibility_flag[2] = 1; > > + if (ptl->general_profile_compatibility_flag[3]) { > > + ptl->general_profile_compatibility_flag[1] = 1; > > + ptl->general_profile_compatibility_flag[2] = 1; > > + } > > + > > + ptl->general_progressive_source_flag = 1; > > + ptl->general_interlaced_source_flag = 0; > > + ptl->general_non_packed_constraint_flag = 1; > > + ptl->general_frame_only_constraint_flag = 1; > > + > > + if (avctx->profile >= 4) { > > + ptl->general_intra_constraint_flag = ctx- > > >gop_size == 1; > > + ptl->general_one_picture_only_constraint_flag = 0; > > + ptl->general_lower_bit_rate_constraint_flag = 1; > > + ptl->general_max_14bit_constraint_flag = 0; > > + > > + switch (ctx->va_profile) { > > +#if VA_CHECK_VERSION(1, 2, 0) > > + case VAProfileHEVCMain12: > > + // Main 12 > > + ptl->general_max_12bit_constraint_flag = 1; > > + ptl->general_max_10bit_constraint_flag = 0; > > + ptl->general_max_8bit_constraint_flag = 0; > > + ptl->general_max_422chroma_constraint_flag = 1; > > + ptl->general_max_420chroma_constraint_flag = 1; > > + ptl->general_max_monochrome_constraint_flag = 0; > > + break; > > + case VAProfileHEVCMain422_10: > > + // Main 4:2:2 10 > > + ptl->general_max_12bit_constraint_flag = 1; > > + ptl->general_max_10bit_constraint_flag = 1; > > + ptl->general_max_8bit_constraint_flag = 0; > > + ptl->general_max_422chroma_constraint_flag = 1; > > + ptl->general_max_420chroma_constraint_flag = 0; > > + ptl->general_max_monochrome_constraint_flag = 0; > > + break; > > + case VAProfileHEVCMain422_12: > > + // Main 4:2:2 12 > > + ptl->general_max_12bit_constraint_flag = 1; > > + ptl->general_max_10bit_constraint_flag = 0; > > + ptl->general_max_8bit_constraint_flag = 0; > > + ptl->general_max_422chroma_constraint_flag = 1; > > + ptl->general_max_420chroma_constraint_flag = 0; > > + ptl->general_max_monochrome_constraint_flag = 0; > > + break; > > + case VAProfileHEVCMain444: > > + // Main 4:4:4 > > + ptl->general_max_12bit_constraint_flag = 1; > > + ptl->general_max_10bit_constraint_flag = 1; > > + ptl->general_max_8bit_constraint_flag = 1; > > + ptl->general_max_422chroma_constraint_flag = 0; > > + ptl->general_max_420chroma_constraint_flag = 0; > > + ptl->general_max_monochrome_constraint_flag = 0; > > + break; > > + case VAProfileHEVCMain444_10: > > + // Main 4:4:4 10 > > + ptl->general_max_12bit_constraint_flag = 1; > > + ptl->general_max_10bit_constraint_flag = 1; > > + ptl->general_max_8bit_constraint_flag = 0; > > + ptl->general_max_422chroma_constraint_flag = 0; > > + ptl->general_max_420chroma_constraint_flag = 0; > > + ptl->general_max_monochrome_constraint_flag = 0; > > + break; > > + case VAProfileHEVCMain444_12: > > + // Main 4:4:4 12 > > + ptl->general_max_12bit_constraint_flag = 1; > > + ptl->general_max_10bit_constraint_flag = 0; > > + ptl->general_max_8bit_constraint_flag = 0; > > + ptl->general_max_422chroma_constraint_flag = 0; > > + ptl->general_max_420chroma_constraint_flag = 0; > > + ptl->general_max_monochrome_constraint_flag = 0; > > + break; > > +#endif > > + default: > > + av_log(avctx, AV_LOG_ERROR, "Unknown profile to init > > PTL.\n"); > > + return AVERROR(EINVAL); > > + } > > + } > > Why is this an improvement over the current code which sets the > constraint flags based on the actual content of the stream? > > Note the requirement in A.3.5 for decoder support: > > general_profile_idc is equal to 4 or > general_profile_compatibility_flag[ 4 ] is equal to 1 for the > bitstream, and > the value of each constraint flag listed in Table A.2 is greater than > or equal to the value(s) specified in the row > of Table A.2 for the format range extensions profile for which the > decoder conformance is evaluated. > > which says that decoders must be able to support streams which set > additional constraint flags beyond those which are specified for a > particular profile (in particular, an 8-bit 4:2:2 stream must be > decodable by any decoder supporting either "Main 4:2:2 10" or "Main > 4:4:4", so ideally it shouldn't be marked to require one of those in > particular). That's a capability request for decoder. For encoder side, I'd prefer to use the most typical values. The constraint flags in Table A.2/3/5 are strictly checked to get rext profile in ff_h265_get_profile(), and seems the constraint flags is the only way to distinguish profiles in rext(all the rext profiles shares same general_profile_idc or general_profile_compatibility_flag[ 4 ]). Thanks Fei > > Thanks, > > - Mark > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".