From patchwork Fri Jun 19 01:52:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Wang X-Patchwork-Id: 20486 Delivered-To: andriy.gelman@gmail.com Received: by 2002:a25:80ca:0:0:0:0:0 with SMTP id c10csp106249ybm; Thu, 18 Jun 2020 18:54:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRVm5GHLMkW6x+CmOk1C+zRk/Ju5fJw5A1KL8ayNIRPsTmEvcpVAqDt87Z1CPHPs6JVdcm X-Received: by 2002:a1c:f204:: with SMTP id s4mr1171827wmc.159.1592531668594; Thu, 18 Jun 2020 18:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592531668; cv=none; d=google.com; s=arc-20160816; b=dW9RqocPko6u+76u7YI/AoagGC9zBQXcTvFU7AT5UqjEmHE5Dr7naFIymJZgypqHDp x/1dcnTfAhWY2k2UTlSkn3pazGkbHWSugsmEeZmpwa4MSuu42do/ERR5A7NyfpeZlpN1 x10SmaqUnhi4lsW+gNb9KNFNmYu8zwGmgzOz47jfK9YPkpaEcki7dVIVbHiv8ykHqSFq xZSIljz2K63poDA4dpw5WddZL/MFY5M7TRqeYmcgLVAHIiz554PjsJqS1SMSl8HwdOS6 xh6Ig5UJS0Dql1mwUDFvzE9coB62Fdo6zktGH3bbrcQsme+Y4fDn7MxufzLCnt39ovpd kNtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:ironport-sdr:ironport-sdr:delivered-to; bh=zyhYhbm758UZ1RBeb0/Pk7FWI0JHBrlEJNL1jNrnNy8=; b=RT+Iv0/a4XprLnDykHPU621HaNiGOOU2z8gjuhqsDML6pSb2QouW6zEPLgoDtcjWBE aMkP74FFoLaV6UNfrYHNgS0473N8CyX5a7IyRqPSkpBc5ubwL1bBmXOftGRQH7JEOvMC 9+9a8cniIQPlOAoLoIBDpTLqxNTxVqNYxkDST8VLi4EQNGB0acePOBdFg+zYyNlRa8oa aNt1H4tQLR0o3G2U8kZE+kOZe7+ggy+uJv2ETCw5YvXLBbzadZJfJux4WTN/78qx0PsX zCkkF0Xog1X1Emcu9oVjRFA7G4bcYr+/jZcADjzasyIO70Dcp9HDiZ1qf+XzKmHEa/wh PGVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id g4si4420026wrp.455.2020.06.18.18.54.28; Thu, 18 Jun 2020 18:54:28 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 32CD468B64A; Fri, 19 Jun 2020 04:53:43 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 299C668B5BE for ; Fri, 19 Jun 2020 04:53:32 +0300 (EEST) IronPort-SDR: sHYGb7Uk27zzRHjO77qABv16QocClzOwm4ZUcRigj9WFxefrilyHlyIpVkyd+3nZLcEAcFjc0D sJ1Mc2cpeu0w== X-IronPort-AV: E=McAfee;i="6000,8403,9656"; a="204278663" X-IronPort-AV: E=Sophos;i="5.75,253,1589266800"; d="scan'208";a="204278663" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2020 18:53:26 -0700 IronPort-SDR: I/yk7N8j2p9EK3EMBOg0QzS6mEbUxQESleZagr6YjTBJ++ApZPuIRUjh+MtFAxOqd6sUj2I7gc gWyTnZT4VaUw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,253,1589266800"; d="scan'208";a="317989410" Received: from f.sh.intel.com ([10.239.159.122]) by FMSMGA003.fm.intel.com with ESMTP; 18 Jun 2020 18:53:25 -0700 From: Fei Wang To: ffmpeg-devel@ffmpeg.org Date: Fri, 19 Jun 2020 09:52:44 +0800 Message-Id: <20200619015248.21873-5-fei.w.wang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200619015248.21873-1-fei.w.wang@intel.com> References: <20200619015248.21873-1-fei.w.wang@intel.com> Subject: [FFmpeg-devel] [PATCH v1 5/9] lavu/hwcontext_vaapi: add vaapi_format_map support for P012 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: Fei Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: SPbPn6Q9H4bd Content-Length: 1281 The format will be used for VAAPI and QSV HEVC/VP9 12bit decode. Signed-off-by: Fei Wang --- libavutil/hwcontext_vaapi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index b31cf95850..b93d8f23e8 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -125,6 +125,9 @@ static const VAAPIFormatDescriptor vaapi_format_map[] = { MAP(Y800, YUV400, GRAY8, 0), #ifdef VA_FOURCC_P010 MAP(P010, YUV420_10BPP, P010, 0), +#endif +#ifdef VA_FOURCC_P012 + MAP(P012, YUV420_12, P012LE, 0), #endif MAP(BGRA, RGB32, BGRA, 0), MAP(BGRX, RGB32, BGR0, 0),