FImageTileAccumulator

Contains all the image planes for the tiles.

Windows
MacOS
Linux

References

Module

MovieRenderPipelineCore

Header

/Engine/Plugins/MovieScene/MovieRenderPipeline/Source/MovieRenderPipelineCore/Public/MovieRenderTileImage.h

Include

#include "MovieRenderTileImage.h"

Syntax

struct FImageTileAccumulator

Remarks

Contains all the image planes for the tiles.

Variables

Name Description

Public variable

float

 

AccumulationGamma

When accumulating apply pow(X,AccumulationGamma), and then apply pow(X,1/AccumulationGamma) on output.

Public variable

TArray64< FImag...

 

ImagePlanes

Actual pixel data.

Public variable

float

 

KernelRadius

Radius of the kernel, in units of the final image. A value of 1.0 means a radius of one pixel.

Public variable

int32

 

NumChannels

Number of channels in the tiles. Typical will be 3 (RGB).

Public variable

int32

 

NumTilesX

Horizontal tiles.

Public variable

int32

 

NumTilesY

Vertical tiles.

Public variable

int32

 

TileSizeX

Width of each tile in pixels

Public variable

int32

 

TileSizeY

Height of each tile in pixels

Constructors

Name Description

Public function

FImageTileAccumulator()

Default constructor.

Functions

Name Description

Public function

void

 

AccumulatePixelData

(
    const FImagePixelData& InPixelData,
    int32 InTileX,
    int32 InTileY,
    FVector2D InSubpixelOffset
)

Given a rendered tile, accumulate the data to the full size image.

Public function

void

 

AccumulateTile

(
    const TArray64< float >& InRawData,
    int32 InRawSizeX,
    int32 InRawSizeY,
    int InRawChannel,
    FVector2D InSubpixelOffset
)

Given a tile and its subpixel offset, accumulate this tile to all of the image planes.

Public function

FImageTilePl...

 

AtPlaneData

(
    int32 InTileX,
    int32 InTileY,
    int32 InChannel
)

Get the data for the appropriate tile.

Public function Const

const FImage...

 

AtPlaneData

(
    int32 InTileX,
    int32 InTileY,
    int32 InChannel
)

Get the data for the appropriate tile.

Public function Const

float

 

CalcSampleWeight

(
    float InDistance
)

Given the dstance from a sample, calculate the weight.

Public function Const

void

 

FetchFinalPixelDataByte

(
    TArray64< FColor >& OutPixelData
)

After accumulation is finished, fetch the final image as bytes.

Public function Const

void

 

FetchFinalPixelDataLinearColor

(
    TArray64< FLinearColor >& OutPixel...
)

After accumulation is finished, fetch the final image as linear colors

Public function Const

void

 

FetchFinalPlaneScale

(
    TArray< float >& PlaneScale
)

After accumulation is finished, fetch the final scale of each plane.

Public function Const

void

 

FetchFullImageValue

(
    float Rgba,
    const TArray< float >& PlaneScale,
    int32 FullX,
    int32 FullY
)

Grab a single pixel from the full res tile and scale it by the appropriate Scale value.

Public function Const

int32

 

GetPlaneIndex

(
    int32 InTileX,
    int32 InTileY,
    int32 InChannel
)

Get the tile index in the ImagePlanes list.

Public function

void

 

InitMemory

(
    int InTileSizeX,
    int InTileSizeY,
    int InNumTilesX,
    int InNumTilesY,
    int InNumChannels
)

Allocates memory.

Public function

void

 

Reset()

Resets the memory.

Public function

void

 

ZeroPlanes()

Initializes memory.

Resets the memory to 0s so that we can start a new frame.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss