mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-16 06:55:38 -04:00
use hdi colorgamut type
Signed-off-by: stonesxd <shixindong@huawei.com> Change-Id: I5953b7c1ef0ecdc66b2942c1840d7fe526078e69
This commit is contained in:
@@ -139,7 +139,7 @@ bool SurfaceReader::ProcessBuffer(const sptr<SurfaceBuffer> &buf)
|
||||
ImageInfo info;
|
||||
info.size.width = static_cast<int32_t>(width);
|
||||
info.size.height = static_cast<int32_t>(height);
|
||||
info.pixelFormat = PixelFormat::RGBA_8888;
|
||||
info.pixelFormat = OHOS::Media::PixelFormat::RGBA_8888;
|
||||
info.colorSpace = ColorSpace::SRGB;
|
||||
pixelMap->SetImageInfo(info);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user