CARLA
ImageUtil.h
Go to the documentation of this file.
1 // Copyright (c) 2022 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #pragma once
8 #include "CoreMinimal.h"
9 
10 
11 
12 class FRHIGPUTextureReadback;
13 
14 namespace ImageUtil
15 {
17  void* PixelData,
18  int32 SourcePitch,
19  FIntPoint SourceExtent,
20  FIntPoint DestinationExtent,
21  EPixelFormat Format,
22  FReadSurfaceDataFlags Flags,
23  TArrayView<FColor> Out);
24 
26  void* PixelData,
27  int32 SourcePitch,
28  FIntPoint SourceExtent,
29  FIntPoint DestinationExtent,
30  EPixelFormat Format,
31  FReadSurfaceDataFlags Flags,
32  TArrayView<FLinearColor> Out);
33 }
void DecodePixelsByFormat(void *PixelData, int32 SourcePitch, FIntPoint SourceExtent, FIntPoint DestinationExtent, EPixelFormat Format, FReadSurfaceDataFlags Flags, TArrayView< FLinearColor > Out)
Definition: ImageUtil.cpp:15