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 E74F94A5FB for ; Mon, 1 Apr 2024 20:11:24 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 22B8968CF50; Mon, 1 Apr 2024 23:11:18 +0300 (EEST) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5DA5568CEC8 for ; Mon, 1 Apr 2024 23:11:12 +0300 (EEST) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-41551500a7eso19403995e9.2 for ; Mon, 01 Apr 2024 13:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jkqxz-net.20230601.gappssmtp.com; s=20230601; t=1712002271; x=1712607071; darn=ffmpeg.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=H5RAATEzenwmVW0aYLdVkiV+KCUwldpfR7IXXIPdA+o=; b=XUdt3NC7P0cdjquyqbQjgYod0Ill2mhl4OdwqtvbQUHB/wwIhYFbc8pq3/PjIYlyjj kgzzkHiOvJry2rST/YKDIeylJ3S2/bnP7GRYIPk7OBeZJeg10zvlRFBCmHdtnSL2w2op YcSgjFFRjdPqqQBOknsWB8BsV92SMbOF4Xr3G+GTvR1sRhZXs9Zm8Y/qRAqYJWDCcGZ6 w5+/CA06Ds9WIVeJOjmEBhYPLxMRgG9KxF1hPFmxbviDc6X/0lWPUXhBk4o+xuOcDq8V BAq6Q78WOqqUEif81DuCWFME+U8KP/uxz3hiZHn0K0efdpMgSnhUBHIhbbVd+V14s6R2 sMyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712002271; x=1712607071; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=H5RAATEzenwmVW0aYLdVkiV+KCUwldpfR7IXXIPdA+o=; b=mKx3WIKSc3oMuJFc1rVC5b7L9eSkfFct6n/DKMR1vimCidNxrLqVoiv4MLd17p6NKh Xp6uQusTOtVcWO6X8SxyNyQ7hCeGjfg0On1pDe2NA8vRwjJ9s0I2HB3vqtVsT7rEBksi xRl2z26cZdnCXOv3aQU8VHlhybfWnjAKzCe/DSCtA2yl9Dzy9fYDZFTJ9/e+b605lJjt IOvuD5cdlEqdyTebvfc9YHrCYjYVsiP1VhL0p3lD8zTepwM2tPMfQIwzyoNzG8oeeO8+ hjqOyX0DHwIyOm3sbGUwpnRTPuekfkddJe4bstnS2njN7vubfh4jfamqAUoGeD5e8k6X e5EQ== X-Gm-Message-State: AOJu0YymxYv0Cr/36WnGALNGXoB4ZGHgJrljsl9AvLkAC0PihPDzQj/n HKppUjClU/Y1QCOK3lBaYm7VtNSsdvxGxgN6n1HtGjRucd+oTw47xlh1VQ2pUPzsAr7NU69csPn s X-Google-Smtp-Source: AGHT+IHemMW1ZZ6LU4m1R+ZPO2vqtIgPHjhLBictIhN9TrELAEw+IjkmxwNSJFc0JCt9JDc7ZVJ4ow== X-Received: by 2002:a05:600c:2313:b0:414:9467:53c1 with SMTP id 19-20020a05600c231300b00414946753c1mr7439255wmo.9.1712002271593; Mon, 01 Apr 2024 13:11:11 -0700 (PDT) Received: from [192.168.0.15] (cpc92302-cmbg19-2-0-cust1183.5-4.cable.virginm.net. [82.1.212.160]) by smtp.gmail.com with ESMTPSA id u22-20020a05600c139600b00414906f1ea1sm15569002wmf.17.2024.04.01.13.11.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Apr 2024 13:11:11 -0700 (PDT) Message-ID: <2119be3e-9385-438b-8a66-150bde955330@jkqxz.net> Date: Mon, 1 Apr 2024 21:11:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20240328020704.4109636-1-haihao.xiang@intel.com> From: Mark Thompson In-Reply-To: <20240328020704.4109636-1-haihao.xiang@intel.com> Subject: Re: [FFmpeg-devel] [PATCH] lavc/vaapi_hevc: Add support for Main Intra & Main 10 Intra 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 28/03/2024 02:07, Xiang, Haihao wrote: > From: Haihao Xiang > > Both Main Intra and Main 10 Intra are Rext, we may use Main and Main 10 > instead for decoding. This patch fixes the error below: > > [hevc @ 0x55a771b80a00] No support for codec hevc profile 4. > [hevc @ 0x55a771b80a00] Failed setup for format vaapi: hwaccel > initialisation returned error. > > Signed-off-by: Haihao Xiang > --- > libavcodec/vaapi_hevc.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c > index 3bdd2dd1b8..83b94d1a55 100644 > --- a/libavcodec/vaapi_hevc.c > +++ b/libavcodec/vaapi_hevc.c > @@ -612,6 +612,13 @@ VAProfile ff_vaapi_parse_hevc_rext_scc_profile(AVCodecContext *avctx) > av_log(avctx, AV_LOG_VERBOSE, "HEVC profile %s is found.\n", profile->name); > } > > +#if VA_CHECK_VERSION(0, 37, 0) > + if (!strcmp(profile->name, "Main Intra")) > + return VAProfileHEVCMain; > + else if (!strcmp(profile->name, "Main 10 Intra")) > + return VAProfileHEVCMain10; > +#endif > + > #if VA_CHECK_VERSION(1, 2, 0) > if (!strcmp(profile->name, "Main 12") || > !strcmp(profile->name, "Main 12 Intra")) What if high_precision_offsets_enabled_flag is set? (That doesn't matter for the VAAPI encoder setting the profile because we always have it as zero.) 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".