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 9F300466D7 for ; Fri, 2 Jun 2023 08:12:52 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5261868C34B; Fri, 2 Jun 2023 11:11:52 +0300 (EEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9410868C33C for ; Fri, 2 Jun 2023 11:11:49 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685693510; x=1717229510; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TqUPpMMiio9aWicp1yORPJOnEJVLOh5Rr2n07YwwLdM=; b=j3TJscXCis0ulLA1qJWtegJDbrEcHBLRayRP9khrXzgiIeujhOjO19bM iOdpf2ymaLuN12I1JkFvi8t3OGQ6XMtZNa3mOwG3giNX6ySBnQBNDkzNY dFMy35ejdSqvz9cVifgB8fy5gz3U2ZwM7Q4O0cN2bRTpgAQ/yNA9SVqV3 PQbREk4BKBTtSGjKVWpiBAJfnb89YtUStRGOBhJsNFPLeI4fqQx2E8w3w tlSLLkMYP9ed85WsIPTvuwR6shlVoMD8N6YB2UIt3XBC1rIugQazKbvdJ STWSof8QTgyg4/c4YzrsufBWmuLRq3WdhE91d3vEcW+TF0hLGCxn6Xxz9 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="421629950" X-IronPort-AV: E=Sophos;i="6.00,212,1681196400"; d="scan'208";a="421629950" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2023 01:11:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="852060691" X-IronPort-AV: E=Sophos;i="6.00,212,1681196400"; d="scan'208";a="852060691" Received: from desktop-qn7n0nf.sh.intel.com (HELO localhost.localdomain) ([10.239.160.59]) by fmsmga001.fm.intel.com with ESMTP; 02 Jun 2023 01:11:28 -0700 From: Tong Wu To: ffmpeg-devel@ffmpeg.org Date: Fri, 2 Jun 2023 16:07:01 +0800 Message-Id: <20230602080701.1754-9-tong1.wu@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 In-Reply-To: <20230602080701.1754-1-tong1.wu@intel.com> References: <20230602080701.1754-1-tong1.wu@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 9/9] avcodec/d3d12va_hevc: enable allow_profile_mismatch flag for d3d12va msp 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 Cc: Tong Wu 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: Same as d3d11va, this flag enables main still picture profile for d3d12va. User should add this flag when decoding main still picture profile. Signed-off-by: Tong Wu --- libavcodec/d3d12va_hevc.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavcodec/d3d12va_hevc.c b/libavcodec/d3d12va_hevc.c index 1d94831e01..59ca500eb2 100644 --- a/libavcodec/d3d12va_hevc.c +++ b/libavcodec/d3d12va_hevc.c @@ -181,8 +181,13 @@ static int d3d12va_hevc_decode_init(AVCodecContext *avctx) break; case FF_PROFILE_HEVC_MAIN_STILL_PICTURE: - av_log(avctx, AV_LOG_ERROR, "D3D12 doesn't support PROFILE_HEVC_MAIN_STILL_PICTURE!\n"); - return AVERROR(EINVAL); + if (avctx->hwaccel_flags & AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH) { + ctx->cfg.DecodeProfile = D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN; + break; + } else { + av_log(avctx, AV_LOG_ERROR, "D3D12 doesn't support PROFILE_HEVC_MAIN_STILL_PICTURE!\n"); + return AVERROR(EINVAL); + } case FF_PROFILE_HEVC_MAIN: default: -- 2.35.1.windows.2 _______________________________________________ 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".