Navigation
API > API/Plugins > API/Plugins/MediaIOCore
Inheritance Hierarchy
- IMediaTextureSample
- IMediaPoolable
- IMediaTextureSampleColorConverter
- FMediaIOCoreTextureSampleBase
References
Module | MediaIOCore |
Header | /Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Public/MediaIOCoreTextureSampleBase.h |
Include | #include "MediaIOCoreTextureSampleBase.h" |
Syntax
class FMediaIOCoreTextureSampleBase :
public IMediaTextureSample ,
public IMediaPoolable ,
public IMediaTextureSampleColorConverter
Remarks
Implements the IMediaTextureSample/IMediaPoolable interface.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bIsSRGBInput | Whether the sample is in sRGB space and requires an explicit conversion to linear |
![]() |
TArray< uint8, TAlignedHeapAllocator< 4096 > > | Buffer | Pointer to raw pixels |
![]() |
UE::Color::FColorSpace | ColorSpaceStruct | Color space structure of the incoming texture. Used for retrieving chromaticities. |
![]() |
UE::Color::EColorSpace | ColorSpaceType | Color space enum of the incoming texture. |
![]() |
TSharedPtr< FMediaIOCoreTextureSampleConverter > | Converter | Custom converter that will be the one checking back with the player for just in time sample render purposes |
![]() |
FTimespan | Duration | Duration for which the sample is valid. |
![]() |
UE::Color::EEncoding | Encoding | Color encoding of the incoming texture. |
![]() |
void * | ExternalBuffer | |
![]() |
std::atomic< uint64 > | FrameNumber | Which engine frame number this sample corresponds to. |
![]() |
uint32 | Height | |
![]() |
TWeakPtr< FMediaIOCorePlayerBase > | Player | The player that created this sample |
![]() |
EMediaTextureSampleFormat | SampleFormat | Sample format. |
![]() |
uint32 | Stride | Image dimensions |
![]() |
FTimespan | Time | Sample time. |
![]() |
TOptional< FTimecode > | Timecode | Sample timecode. |
![]() |
uint32 | Width |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Method that caches color conversion settings on Game thread. | |
![]() ![]() |
void | CopyConfiguration
(
const TSharedPtr< FMediaIOCoreTextureSampleBase >& SourceSample |
Copies all neccessary data from a source sample to render JIT |
![]() ![]() |
void | FreeSample () |
|
![]() ![]() ![]() |
UE::Color::EColorSpace | Method that returns this sample's colorspace type. | |
![]() ![]() |
double | Returns time evaluated on the game thread for JITR | |
![]() ![]() ![]() |
uint64 | ||
![]() |
void * | ||
![]() ![]() |
void * | GetOrRequestBuffer
(
uint32 InBufferSize |
Attemps to get the initialized buffer. |
![]() |
EPixelFormat | ||
![]() ![]() |
TSharedPtr< FMediaIOCorePlayerBase > | GetPlayer () |
Returns the player that created this sample |
![]() |
bool | Initialize
(
const void* InVideoBuffer, |
Initialize the sample. |
![]() |
bool | Initialize
(
TArray< uint8 >&& InVideoBuffer, |
Initialize the sample. |
![]() |
bool | Initialize
(
const TArray< uint8 >& InVideoBuffer, |
Initialize the sample. |
![]() ![]() |
bool | InitializeJITR
(
const FMediaIOCoreSampleJITRConfigurationArgs& Args |
Configure this sample for JITR |
![]() |
bool | InitializeWithEvenOddLine
(
bool bUseEvenLine, |
Initialize the sample with half it's original height and take only the odd or even line. |
![]() ![]() |
bool | Returns whether it's ready for GPUDirect texture transfer | |
![]() ![]() |
void * | RequestBuffer
(
uint32 InBufferSize |
Request an uninitialized sample buffer. |
![]() |
void | SetAwaitingForGPUTransfer
(
bool bIsAwaitingGPUTransfer |
Marks this sample as one that is ready and awaiting for fast GPUDirect texture transfer |
![]() |
bool | Set the sample buffer. | |
![]() |
bool | Set the sample buffer. | |
![]() |
bool | Initialize the sample. | |
![]() |
void | SetBuffer
(
void* InBuffer |
|
![]() |
bool | SetBufferWithEvenOddLine
(
bool bUseEvenLine, |
Set the sample buffer with half it's original height and take only the odd or even line. |
![]() |
void | SetColorConversionSettings
(
TSharedPtr< struct FOpenColorIOColorConversionSettings > InColorConversionSettings |
Set the OCIO settings used for color conversion. |
![]() |
void | SetDestructionCallback
(
TFunction< void(TRefCountPtr< FRHITexture >)> InDestructionCallback |
|
![]() ![]() |
void | SetFrameNumber
(
uint32 InFrameNumber |
|
![]() |
bool | SetProperties
(
uint32 InStride, |
Set the sample properties. |
![]() |
void | SetTexture
(
TRefCountPtr< FRHITexture > InRHITexture |
|
![]() ![]() |
void |
Overridden from IMediaTextureSample
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const void * | GetBuffer () |
Get the sample's frame buffer. |
![]() ![]() ![]() |
FIntPoint | GetDim () |
Get the width and height of the sample. |
![]() ![]() ![]() |
FTimespan | GetDuration () |
Get the amount of time for which the sample is valid. |
![]() ![]() ![]() |
UE::Color::EEncoding | Get EOTF / "Gamma" / encoding type of data | |
![]() ![]() ![]() |
EMediaTextureSampleFormat | GetFormat () |
Get the texture sample format. |
![]() ![]() ![]() |
float | Get factor to normalize data from nits to scene color values | |
![]() ![]() ![]() |
FIntPoint | GetOutputDim () |
Get the sample's desired output width and height. |
![]() ![]() ![]() |
const UE::Color::FColorSpace & | Get sample source color space (defaults to the sRGB/Rec709 gamut) | |
![]() ![]() ![]() |
uint32 | GetStride () |
Get the horizontal stride (aka. pitch) of the sample's frame buffer. |
![]() ![]() ![]() |
FMediaTimeStamp | GetTime () |
Get the sample time (in the player's local clock). |
![]() ![]() ![]() |
TOptional< FTimecode > | GetTimecode () |
Get the sample timecode if available. |
![]() ![]() ![]() |
const FMatrix & | Get YUV to RGB conversion matrix | |
![]() ![]() ![]() |
bool | IsCacheable () |
Whether the sample can be held in a cache. |
![]() ![]() ![]() |
bool | IsOutputSrgb () |
Whether the output of the sample is in sRGB color space. |
Overridden from IMediaPoolable
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Called when the object added to the pool. |
Overridden from IMediaTextureSampleColorConverter
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | ApplyColorConversion
(
FRHICommandListImmediate& RHICmdList, |
Apply a color conversion on the input and store the result in the destination texture. |