Navigation
Unreal Engine C++ API Reference > Plugins > ImgMedia
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMediaSource
- UBaseMediaSource
- UImgMediaSource
References
Module | ImgMedia |
Header | /Engine/Plugins/Media/ImgMedia/Source/ImgMedia/Public/ImgMediaSource.h |
Include | #include "ImgMediaSource.h" |
Syntax
UCLASS&40;BlueprintType, HideCategories&61;&40;Overrides, Playback&41;&41;
class UImgMediaSource : public UBaseMediaSource
Remarks
Media source for EXR image sequences.
Image sequence media sources point to a directory that contains a series of image files in which each image represents a single frame of the sequence. BMP, EXR, PNG and JPG images are currently supported. EXR image sequences are optimized for performance. The first frame of an image sequence is used to determine the image dimensions (all formats) and frame rate (EXR only).
The image sequence directory may contain sub-directories, which are called 'proxies'. Proxies can be used to provide alternative media for playback during development and testing of a game. One common scenario is the use of low resolution versions of image sequence media on computers that are too slow or don't have enough storage to play the original high-res media.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() |
bool | bFillGapsInSequence | If true, then any gaps in the sequence will be filled with blank frames. |
![]() ![]() ![]() ![]() |
FFrameRate | FrameRateOverride | Overrides the default frame rate stored in the image files (0/0 = do not override). |
![]() |
TSharedPtr< FImgMediaMipMapInfo, ESPMode::ThreadSafe > | MipMapInfo | MipMapInfo object to handle mip maps. |
![]() ![]() ![]() ![]() |
FString | ProxyOverride | Name of the proxy directory to use. |
![]() ![]() ![]() ![]() |
FDirectoryPath | SequencePath | The directory that contains the image sequence files. |
![]() ![]() ![]() ![]() |
FImgMediaSourceCustomizationSequenceProxy | SequenceProxy | This is only used so we can customize editing of SequencePath. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Default constructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
void | AddTargetObject
(
AActor* InActor |
This object is using our img sequence. |
![]() ![]() |
FString | ExpandSequencePathTokens
(
const FString& InPath |
Returns the path after replacing the supported tokens |
![]() ![]() |
FString | GetFullPath () |
Get the full path to the image sequence. |
![]() ![]() |
const FImgMediaMipMapInfo * | Get our mipmap info object. | |
![]() ![]() ![]() ![]() |
void | GetProxies
(
TArray< FString >& OutProxies |
Get the names of available proxy directories. |
![]() ![]() ![]() ![]() |
const FString | Get the path to the image sequence directory to be played. Supported tokens will be expanded. | |
![]() ![]() |
bool | IsPathUnderBasePath
(
const FString& InPath, |
Returns true if InPath is under InBasePath. |
![]() ![]() ![]() |
void | RemoveTargetObject
(
AActor* InActor |
This object is no longer using our img sequence. |
![]() ![]() |
FString | SanitizeTokenizedSequencePath
(
const FString& InPath |
Returns a sanitized sequence path, but without expanding the tokens tokens |
![]() ![]() ![]() |
void | SetSequencePath
(
const FString& Path |
Set the path to the image sequence directory this source represents. |
![]() ![]() ![]() |
void | SetTokenizedSequencePath
(
const FString& Path |
Set the path to the image sequence directory this source represents. |
Overridden from UMediaSource
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
FString | GetUrl () |
Get the media source's URL string (must be implemented in child classes). |
![]() ![]() ![]() |
bool | Validate () |
Validate the media source settings (must be implemented in child classes). |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |
Overridden from IMediaOptions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
int64 | GetMediaOption
(
const FName& Key, |
Get a signed integer media option. |
![]() ![]() ![]() |
bool | GetMediaOption
(
const FName& Key, |
Get a Boolean media option. |
![]() ![]() ![]() |
FString | GetMediaOption
(
const FName& Key, |
Get a string media option. |
![]() ![]() ![]() |
TSharedPtr< FDataContainer, ESPMode::ThreadSafe > | GetMediaOption
(
const FName& Key, |
Get a complex data type media option. |
![]() ![]() ![]() |
bool | HasMediaOption
(
const FName& Key |
Check whether the specified option is set. |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | IsPathRelativeToProjectRoot_DEPRECATED | If true, then relative Sequence Paths are relative to the project root directory. |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
void | AddGlobalCamera
(
AActor* InActor |
AddGlobalCamera has been deprecated. |
![]() |
void | AddTargetObject
(
AActor* InActor, |
AddTargetObject has been deprecated, please use the variant with no Width argument. |
![]() ![]() ![]() |
void | RemoveGlobalCamera
(
AActor* InActor |
RemoveGlobalCamera has been deprecated. |
![]() ![]() ![]() |
void | SetMipLevelDistance
(
float Distance |
SetMipLevelDistance has been deprecated. |