/
Manifest
/
Real_Texture
Обзор
Документация
Войти
/
Manifest
/
Real_Texture
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Plugins/pixelreader/Source/PixelReader/Public/ImageStruct.h
104 строки
2 KB
m.samodurov
init commit for The Invaders
17 фев 2026, 04:57
17 фев 2026, 04:57
4a668d4
Код
Авторство
О чём код?
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "IImageWrapper.h" #include "HAL/Runnable.h" #include "HAL/RunnableThread.h" #include "HAL/ThreadSafeBool.h" #include "Containers/Queue.h" #include "UObject/WeakObjectPtrTemplates.h" #include "Async/Async.h" #include "Logging/MessageLog.h" #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "CoreMinimal.h" #include "ImageStruct.generated.h" // Used types of Image Format UENUM(BluePrintType) enum class E_PR_ImageFormat : uint8 { PNG UMETA(DisplayName = "PNG"), JPEG UMETA(DisplayName = "JPEG"), RAW_RED UMETA(DisplayName = "RAW_RED") }; bool preDefineCompressingParams ( E_PR_ImageFormat inFormat, std::pair<EImageFormat, FString>& outParams ); // Image representation in blueprints USTRUCT(BluePrintType) struct FImageStruct { GENERATED_BODY(); UPROPERTY(EditAnywhere, BlueprintReadWrite) TArray<uint8> img_array; UPROPERTY(EditAnywhere, BlueprintReadWrite) int32 width; UPROPERTY(EditAnywhere, BlueprintReadWrite) int32 height; UPROPERTY(EditAnywhere, BlueprintReadWrite) E_PR_ImageFormat img_format; FImageStruct() { } FImageStruct ( TArray<uint8> v_img_array, int32 v_width, int32 v_height, E_PR_ImageFormat v_img_format ) { img_array = v_img_array; width = v_width; height = v_height; img_format = v_img_format; } }; USTRUCT(BluePrintType) struct FResizeImgParams { GENERATED_BODY(); UPROPERTY(EditAnywhere, BlueprintReadWrite) int NewWidth; UPROPERTY(EditAnywhere, BlueprintReadWrite) int NewHeight; UPROPERTY(EditAnywhere, BlueprintReadWrite) int imQuality; UPROPERTY(EditAnywhere, BlueprintReadWrite) bool bNeedSave; FResizeImgParams(): NewWidth(0), NewHeight(0), imQuality(0), bNeedSave(false) {} FResizeImgParams(int inWidth, int inHeight, int inQuality, bool inNeedSave) : NewWidth(inWidth), NewHeight(inHeight), imQuality(inQuality), bNeedSave(inNeedSave) {} }; DECLARE_DYNAMIC_DELEGATE_OneParam(FImageStructDelegate, FImageStruct, img_struct);