/Engine/Source/Runtime/ImageCore/Public/ImageCoreUtils.h
EPixelFormat is the graphics texture pixel format it is a much larger superset of ERawImageFormat GetPixelFormatForRawImageFormat does not map to the very closest EPixelFormat instead map to a close one that is actually usable as Texture if *pOutEquivalentFormat != InFormat , then conversion is needed and conversion can be done using CopyImage to OutEquivalentFormat
namespace FImageCoreUtils { EPixelFormat FImageCoreUtils::GetPixelFormatForRawImageFormat ( [ERawImageFormat::Type](API\Runtime\ImageCore\ERawImageFormat__Type) InFormat, [ERawImageFormat::Type](API\Runtime\ImageCore\ERawImageFormat__Type) * pOutEquivalentFormat ) }