Skip to content

Commit

Permalink
Revert "[Decode] Add Y210 format support for media copy "
Browse files Browse the repository at this point in the history
This reverts commit 6bd806f
  • Loading branch information
luleilei1 authored and gfxVPLsdm committed Jul 18, 2024
1 parent 83d0a48 commit a0e8618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _studio/shared/src/libmfx_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a0e8618

Please sign in to comment.