onevpl: Fix missing UYVY VA_FOURCC causing encode failure

Merged into innersource oneVPL (07200be)

Signed-off-by: Mazlan, Hilman Zafri <hilman.zafri.mazlan@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
This commit is contained in:
Mazlan, Hilman Zafri 2022-06-28 04:57:43 +08:00 committed by Anuj Mittal
parent 940218bd43
commit 61a2e69d2e
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From 943f228402fa5ec3a1b4fd898e2783bb314af5a4 Mon Sep 17 00:00:00 2001
From: "Mazlan, Hilman Zafri" <hilman.zafri.mazlan@intel.com>
Date: Thu, 8 Sep 2022 11:06:33 +0800
Subject: [PATCH] Fix missing UYVY VA_FOURCC causing encode failure
Upstream-Status: Submitted [Innersource PR: #504]
Signed-off-by: Mazlan, Hilman Zafri <hilman.zafri.mazlan@intel.com>
---
tools/legacy/sample_common/src/vaapi_allocator.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/legacy/sample_common/src/vaapi_allocator.cpp b/tools/legacy/sample_common/src/vaapi_allocator.cpp
index b374a6cb..e3c286e9 100644
--- a/tools/legacy/sample_common/src/vaapi_allocator.cpp
+++ b/tools/legacy/sample_common/src/vaapi_allocator.cpp
@@ -129,7 +129,7 @@ static mfxStatus GetVAFourcc(mfxU32 fourcc, unsigned int& va_fourcc) {
mfxU32 mfx_fourcc = ConvertVP8FourccToMfxFourcc(fourcc);
va_fourcc = ConvertMfxFourccToVAFormat(mfx_fourcc);
if (!va_fourcc || ((VA_FOURCC_NV12 != va_fourcc) && (VA_FOURCC_YV12 != va_fourcc) &&
- (VA_FOURCC_YUY2 != va_fourcc) && (VA_FOURCC_ARGB != va_fourcc) &&
+ (VA_FOURCC_UYVY != va_fourcc) && (VA_FOURCC_ARGB != va_fourcc) &&
(VA_FOURCC_ABGR != va_fourcc) && (VA_FOURCC_P208 != va_fourcc) &&
(VA_FOURCC_P010 != va_fourcc) && (VA_FOURCC_YUY2 != va_fourcc) &&
(VA_FOURCC_Y210 != va_fourcc) && (VA_FOURCC_Y410 != va_fourcc) &&
--
2.34.1

View File

@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c18ea6bb4786a26bf4eee88a7424a408 \
file://third-party-programs.txt;md5=f43d223f2b736e89abed9660483d0386"
SRC_URI = "git://github.com/oneapi-src/oneVPL.git;protocol=https;branch=master \
file://0001-Fix-missing-UYVY-VA_FOURCC-causing-encode-failure.patch \
"
SRCREV = "b90dbc9e673ee119f841e67184194446069c45a6"
S = "${WORKDIR}/git"