/Engine/Source/Runtime/ImageCore/Public/ImageCore.h
RGBA -> G8 takes from theRchannel G8 -> RGBA replicated to gray
namespace ERawImageFormat { int64 ERawImageFormat::GetBytesPerPixel ( [Type](API\Runtime\ImageCore\ERawImageFormat__Type) Format ) }