From a0e8618752ac6b612b175a3179b63e9f7b509717 Mon Sep 17 00:00:00 2001 From: luleilei1 Date: Wed, 17 Jul 2024 09:16:37 +0000 Subject: [PATCH] Revert "[Decode] Add Y210 format support for media copy " This reverts commit 6bd806f8daa095cd7b99cde01fbc2c734e8eaf21 --- _studio/shared/src/libmfx_allocator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_studio/shared/src/libmfx_allocator.cpp b/_studio/shared/src/libmfx_allocator.cpp index 813333f582..b4270ab9c7 100644 --- a/_studio/shared/src/libmfx_allocator.cpp +++ b/_studio/shared/src/libmfx_allocator.cpp @@ -166,6 +166,7 @@ mfxStatus mfxDefaultAllocator::GetSurfaceSizeInBytes(mfxU32 pitch, mfxU32 height break; case MFX_FOURCC_P210: case MFX_FOURCC_YUY2: + case MFX_FOURCC_Y210: case MFX_FOURCC_YUV422H: case MFX_FOURCC_YUV422V: case MFX_FOURCC_UYVY: @@ -189,7 +190,6 @@ mfxStatus mfxDefaultAllocator::GetSurfaceSizeInBytes(mfxU32 pitch, mfxU32 height case MFX_FOURCC_Y410: case MFX_FOURCC_Y416: case MFX_FOURCC_P8: - case MFX_FOURCC_Y210: case MFX_FOURCC_Y216: case MFX_FOURCC_P8_TEXTURE: case MFX_FOURCC_YUV400: @@ -221,10 +221,10 @@ mfxStatus mfxDefaultAllocator::GetNumBytesRequired(const mfxFrameInfo & Info, mf case MFX_FOURCC_P010: case MFX_FOURCC_P016: case MFX_FOURCC_P210: + case MFX_FOURCC_Y210: Pitch = mfx::align2_value(Info.Width * 2, 32); break; case MFX_FOURCC_Y410: - case MFX_FOURCC_Y210: case MFX_FOURCC_Y216: Pitch = mfx::align2_value(Info.Width * 4, 32); break;