| IMediaTextureSample
|
Module |
|
Header |
/Engine/Source/Runtime/Media/Public/IMediaTextureSample.h |
Include |
#include "IMediaTextureSample.h" |
class IMediaTextureSample
Interface for media texture samples.
Media texture samples are generated by media players and sent to the registered media texture sink. They contain a single frame of texture data along with extra metadata, such as dimensions, time codes, and durations.
Depending on the decoder, a frame's pixel data may be stored in a CPU memory buffer, or in an RHI texture resource (only available when compiling against the Engine). The media texture sample API supports both models via the GetBuffer and the GetTexture methods. Sample instances need to implement only one of these.
Name | Description | |
---|---|---|
|
~IMediaTextureSample() |
Virtual destructor. |
Name | Description | ||
---|---|---|---|
|
double |
GetAspectRatio() |
Get pixel aspect ratio |
|
const void &... |
GetBuffer() |
Get the sample's frame buffer. |
|
GetDim() |
Get the width and height of the sample. |
|
|
GetDuration() |
Get the amount of time for which the sample is valid. |
|
|
EMediaTextur... |
GetFormat() |
Get the texture sample format. |
|
GetNumMips() |
Get the number of mips encoded in the sample |
|
|
GetOffset() |
Get the Offset applied after ScaleRotation for the sample. |
|
|
EMediaOrient... |
GetOrientation() |
Get image orientation vs. physically returned image data |
|
GetOutputDim() |
Get the sample's desired output width and height. |
|
|
GetScaleRotation() |
Get the ScaleRotation (2x2 matrix) for the sample. |
|
|
GetStride() |
Get the horizontal stride (aka. pitch) of the sample's frame buffer. |
|
|
FMediaTimeSt... |
GetTime() |
Get the sample time (in the player's local clock). |
|
GetTimecode() |
Get the sample timecode if available. |
|
|
const FMatri... |
GetYUVToRGBMatrix() |
Get the YUV to RGB conversion matrix. Equivalent to MediaShaders::YuvToSrgbDefault Matrix. |
|
IsCacheable() |
Whether the sample can be held in a cache. |
|
|
IsOutputSrgb() |
Whether the output of the sample is in sRGB color space. |
|
|
Reset() |