Skip to content

Commit 6291c96

Browse files
LhGuintel-mediadev
authored andcommitted
[Media Common] Add R16 format in VE copy
Add R16 format in copy method
1 parent 1a79fc5 commit 6291c96

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

media_softlet/agnostic/common/shared/mediacopy/media_copy.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ uint32_t GetMinRequiredSurfaceSizeInBytes(uint32_t pitch, uint32_t height, MOS_F
297297
case Format_IRW1:
298298
case Format_IRW2:
299299
case Format_IRW3:
300+
case Format_R16UN:
300301
nBytes = pitch * height;
301302
break;
302303
default:

media_softlet/agnostic/common/shared/mediacopy/media_vebox_copy_next.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,10 @@ void VeboxCopyStateNext::AdjustSurfaceFormat(MOS_SURFACE &surface)
590590
surface.dwWidth = MOS_ALIGN_CEIL(surface.dwWidth, 2);
591591
surface.dwWidth /= 2;
592592
}
593+
if (surface.Format == Format_R16UN)
594+
{
595+
surface.Format = Format_Y16U;
596+
}
593597
}
594598

595599
MOS_STATUS VeboxCopyStateNext::CreateGpuContext(

0 commit comments

Comments
 (0)