|
CARLA
|
Classes | |
| struct | ReadImageDataContext |
Typedefs | |
| using | ReadImageDataAsyncCallback = std::function< bool(const void *, size_t, size_t, EPixelFormat, FIntPoint) > |
| using | ReadImageDataAsyncCallbackFColor = std::function< bool(TArrayView< const FColor >, FIntPoint) > |
| using | ReadImageDataAsyncCallbackFLinearColor = std::function< bool(TArrayView< const FLinearColor >, FIntPoint) > |
Functions | |
| bool | DecodePixelsByFormat (const void *PixelData, int32 SourcePitch, FIntPoint Extent, EPixelFormat Format, FReadSurfaceDataFlags Flags, TArrayView< FColor > Out) |
| bool | DecodePixelsByFormat (const void *PixelData, int32 SourcePitch, FIntPoint Extent, EPixelFormat Format, FReadSurfaceDataFlags Flags, TArrayView< FLinearColor > Out) |
| void | FlushBatchedReadbacks () |
| TUniquePtr< TImagePixelData< FColor > > | ReadImageData (UTextureRenderTarget2D &RenderTarget) |
| bool | ReadImageData (UTextureRenderTarget2D &RenderTarget, TArray64< FColor > &Out) |
| bool | ReadImageData (UTextureRenderTarget2D &RenderTarget, TArray< FColor > &Out) |
| static void | ReadImageDataAddToBatch (ReadImageDataContext &&Context) |
| bool | ReadImageDataAsync (UTextureRenderTarget2D &RenderTarget, FRHIGPUReadbackPoolPtr Pool, ReadImageDataAsyncCallback &&Callback, bool bNonBlocking) |
| bool | ReadImageDataAsync (UTextureRenderTarget2D &RenderTarget, ReadImageDataAsyncCallback &&Callback) |
| bool | ReadImageDataAsyncFColor (UTextureRenderTarget2D &RenderTarget, ReadImageDataAsyncCallbackFColor &&Callback, bool bNonBlocking, FRHIGPUReadbackPoolPtr Pool) |
| bool | ReadImageDataAsyncFLinearColor (UTextureRenderTarget2D &RenderTarget, ReadImageDataAsyncCallbackFLinearColor &&Callback, bool bNonBlocking, FRHIGPUReadbackPoolPtr Pool) |
| static void | ReadImageDataBegin (ReadImageDataContext &Self, UTextureRenderTarget2D &RenderTarget, FRHIGPUReadbackPoolPtr Pool, ReadImageDataAsyncCallback &&Callback) |
| static void | ReadImageDataEnd (ReadImageDataContext &Self) |
| static void | ReadImageDataEndAsync (ReadImageDataContext &&Self) |
| bool | ReadSensorImageDataAsync (AShaderBasedSensor &Sensor, ReadImageDataAsyncCallback &&Callback) |
| bool | ReadSensorImageDataAsyncFColor (AShaderBasedSensor &Sensor, ReadImageDataAsyncCallbackFColor &&Callback) |
| bool | ReadSensorImageDataAsyncFLinearColor (AShaderBasedSensor &Sensor, ReadImageDataAsyncCallbackFLinearColor &&Callback) |
| TFuture< bool > | SaveImageData (TUniquePtr< TImagePixelData< FColor > > Data, const FStringView &Path) |
| TFuture< bool > | SaveImageData (UTextureRenderTarget2D &RenderTarget, const FStringView &Path) |
Variables | |
| static TArray< ReadImageDataContext > | GBatchedReadbacks |
| using ImageUtil::ReadImageDataAsyncCallback = typedef std::function< bool( const void*, size_t, size_t, EPixelFormat, FIntPoint ) > |
Definition at line 26 of file ImageUtil.h.
| using ImageUtil::ReadImageDataAsyncCallbackFColor = typedef std::function< bool( TArrayView<const FColor>, FIntPoint ) > |
Definition at line 39 of file ImageUtil.h.
| using ImageUtil::ReadImageDataAsyncCallbackFLinearColor = typedef std::function< bool( TArrayView<const FLinearColor>, FIntPoint ) > |
Definition at line 49 of file ImageUtil.h.
| bool ImageUtil::DecodePixelsByFormat | ( | const void * | PixelData, |
| int32 | SourcePitch, | ||
| FIntPoint | Extent, | ||
| EPixelFormat | Format, | ||
| FReadSurfaceDataFlags | Flags, | ||
| TArrayView< FColor > | Out | ||
| ) |
Definition at line 59 of file ImageUtil.cpp.
| bool ImageUtil::DecodePixelsByFormat | ( | const void * | PixelData, |
| int32 | SourcePitch, | ||
| FIntPoint | Extent, | ||
| EPixelFormat | Format, | ||
| FReadSurfaceDataFlags | Flags, | ||
| TArrayView< FLinearColor > | Out | ||
| ) |
Definition at line 38 of file ImageUtil.cpp.
Referenced by ReadImageDataAsyncFColor(), and ReadImageDataAsyncFLinearColor().
| void ImageUtil::FlushBatchedReadbacks | ( | ) |
Definition at line 351 of file ImageUtil.cpp.
References FlushBatchedReadbacks(), and GBatchedReadbacks.
Referenced by FlushBatchedReadbacks(), and FSensorManager::PostPhysTick().
| TUniquePtr< TImagePixelData< FColor > > ImageUtil::ReadImageData | ( | UTextureRenderTarget2D & | RenderTarget | ) |
Definition at line 172 of file ImageUtil.cpp.
References ReadImageData().
| bool ImageUtil::ReadImageData | ( | UTextureRenderTarget2D & | RenderTarget, |
| TArray64< FColor > & | Out | ||
| ) |
Definition at line 155 of file ImageUtil.cpp.
| bool ImageUtil::ReadImageData | ( | UTextureRenderTarget2D & | RenderTarget, |
| TArray< FColor > & | Out | ||
| ) |
Definition at line 138 of file ImageUtil.cpp.
Referenced by ReadImageData(), and SaveImageData().
|
static |
Definition at line 345 of file ImageUtil.cpp.
References GBatchedReadbacks, and ReadImageDataAddToBatch().
Referenced by ReadImageDataAddToBatch(), and ReadImageDataAsync().
| bool ImageUtil::ReadImageDataAsync | ( | UTextureRenderTarget2D & | RenderTarget, |
| FRHIGPUReadbackPoolPtr | Pool, | ||
| ReadImageDataAsyncCallback && | Callback, | ||
| bool | bNonBlocking | ||
| ) |
Definition at line 419 of file ImageUtil.cpp.
References ImageUtil::ReadImageDataContext::Readback, ReadImageDataAddToBatch(), ReadImageDataAsync(), ReadImageDataBegin(), and ReadImageDataEndAsync().
Referenced by ASceneCaptureCamera_RayTracedLensDistance::PostPhysTick(), ReadImageDataAsync(), ReadImageDataAsync(), ReadImageDataAsyncFColor(), ReadImageDataAsyncFLinearColor(), and ReadSensorImageDataAsync().
| bool ImageUtil::ReadImageDataAsync | ( | UTextureRenderTarget2D & | RenderTarget, |
| ReadImageDataAsyncCallback && | Callback | ||
| ) |
Definition at line 464 of file ImageUtil.cpp.
References ReadImageDataAsync().
| bool ImageUtil::ReadImageDataAsyncFColor | ( | UTextureRenderTarget2D & | RenderTarget, |
| ReadImageDataAsyncCallbackFColor && | Callback, | ||
| bool | bNonBlocking, | ||
| FRHIGPUReadbackPoolPtr | Pool | ||
| ) |
Definition at line 488 of file ImageUtil.cpp.
References DecodePixelsByFormat(), ReadImageDataAsync(), and ReadImageDataAsyncFColor().
Referenced by ASceneCaptureSensor_WideAngleLens::CaptureAndSendToClient(), ASceneCaptureCamera_RayTracedLens::PostPhysTick(), ASceneCaptureCamera_RayTracedLensInstance::PostPhysTick(), ReadImageDataAsyncFColor(), and ReadSensorImageDataAsyncFColor().
| bool ImageUtil::ReadImageDataAsyncFLinearColor | ( | UTextureRenderTarget2D & | RenderTarget, |
| ReadImageDataAsyncCallbackFLinearColor && | Callback, | ||
| bool | bNonBlocking, | ||
| FRHIGPUReadbackPoolPtr | Pool | ||
| ) |
Definition at line 531 of file ImageUtil.cpp.
References DecodePixelsByFormat(), ReadImageDataAsync(), and ReadImageDataAsyncFLinearColor().
Referenced by ReadImageDataAsyncFLinearColor(), and ReadSensorImageDataAsyncFLinearColor().
|
static |
Definition at line 224 of file ImageUtil.cpp.
References ImageUtil::ReadImageDataContext::Callback, ImageUtil::ReadImageDataContext::FallbackReadback, ImageUtil::ReadImageDataContext::Format, ImageUtil::ReadImageDataContext::Pool, ImageUtil::ReadImageDataContext::Readback, ImageUtil::ReadImageDataContext::Size, and ImageUtil::ReadImageDataContext::SlotIndex.
Referenced by ReadImageDataAsync().
|
static |
Definition at line 280 of file ImageUtil.cpp.
References ImageUtil::ReadImageDataContext::Callback, ImageUtil::ReadImageDataContext::Format, ImageUtil::ReadImageDataContext::Pool, ImageUtil::ReadImageDataContext::Readback, ImageUtil::ReadImageDataContext::Size, and ImageUtil::ReadImageDataContext::SlotIndex.
Referenced by ReadImageDataEndAsync().
|
static |
Definition at line 297 of file ImageUtil.cpp.
References ReadImageDataEnd().
Referenced by ReadImageDataAsync().
| bool ImageUtil::ReadSensorImageDataAsync | ( | AShaderBasedSensor & | Sensor, |
| ReadImageDataAsyncCallback && | Callback | ||
| ) |
Definition at line 473 of file ImageUtil.cpp.
References ASceneCaptureSensor::GetCaptureRenderTarget(), ASceneCaptureSensor::GetReadbackPool(), ReadImageDataAsync(), and ReadSensorImageDataAsync().
Referenced by AOpticalFlowCamera::PostPhysTick(), and ReadSensorImageDataAsync().
| bool ImageUtil::ReadSensorImageDataAsyncFColor | ( | AShaderBasedSensor & | Sensor, |
| ReadImageDataAsyncCallbackFColor && | Callback | ||
| ) |
Definition at line 512 of file ImageUtil.cpp.
References ASceneCaptureSensor::GetCaptureRenderTarget(), ASceneCaptureSensor::GetReadbackPool(), ReadImageDataAsyncFColor(), and ReadSensorImageDataAsyncFColor().
Referenced by ADepthCamera::PostPhysTick(), AInstanceSegmentationCamera::PostPhysTick(), ANormalsCamera::PostPhysTick(), ASceneCaptureCamera::PostPhysTick(), ASemanticSegmentationCamera::PostPhysTick(), and ReadSensorImageDataAsyncFColor().
| bool ImageUtil::ReadSensorImageDataAsyncFLinearColor | ( | AShaderBasedSensor & | Sensor, |
| ReadImageDataAsyncCallbackFLinearColor && | Callback | ||
| ) |
Definition at line 555 of file ImageUtil.cpp.
References ASceneCaptureSensor::GetCaptureRenderTarget(), ASceneCaptureSensor::GetReadbackPool(), ReadImageDataAsyncFLinearColor(), and ReadSensorImageDataAsyncFLinearColor().
Referenced by ReadSensorImageDataAsyncFLinearColor().
| TFuture< bool > ImageUtil::SaveImageData | ( | TUniquePtr< TImagePixelData< FColor > > | Data, |
| const FStringView & | Path | ||
| ) |
Definition at line 194 of file ImageUtil.cpp.
| TFuture< bool > ImageUtil::SaveImageData | ( | UTextureRenderTarget2D & | RenderTarget, |
| const FStringView & | Path | ||
| ) |
Definition at line 185 of file ImageUtil.cpp.
References ReadImageData(), and SaveImageData().
Referenced by SaveImageData().
|
static |
Definition at line 343 of file ImageUtil.cpp.
Referenced by FlushBatchedReadbacks(), and ReadImageDataAddToBatch().