![]() |
Murl Engine API
Version 2018.3
|
The evictable video stream class, see IVideoStream. More...
#include <murl_util_evictable_video_stream.h>
The evictable video stream class, see IVideoStream.
Public Member Functions | |
EvictableVideoStream (IEnums::PixelFormat outputFormat, UInt32 pixelSizeX, UInt32 pixelSizeY, IEnums::MipMapGenerationMode mipMapGen) | |
The constructor. More... | |
virtual | ~EvictableVideoStream () |
The destructor. | |
virtual Bool | ReleaseDecodedData () |
Release decoded surface data. More... | |
![]() | |
VideoStream (IEnums::PixelFormat outputFormat, UInt32 pixelSizeX, UInt32 pixelSizeY, IEnums::MipMapGenerationMode mipMapGen) | |
The constructor. More... | |
virtual | ~VideoStream () |
The destructor. | |
virtual IVideoStream * | Clone () const |
Implementation of IVideoStream::Clone(). More... | |
virtual IVideoStream * | Clone (IEnums::PixelFormat pixelFormat) const |
Implementation of IVideoStream::Clone(IEnums::PixelFormat pixelFormat). More... | |
virtual IVideoStream * | Clone (IEnums::PixelFormat pixelFormat, UInt32 pixelSizeX, UInt32 pixelSizeY) const |
Implementation of IVideoStream::Clone((IEnums::PixelFormat pixelFormat, UInt32 pixelSizeX, UInt32 pixelSizeY). More... | |
virtual IVideoStream * | Clone (IEnums::PixelFormat pixelFormat, UInt32 pixelSizeX, UInt32 pixelSizeY, IEnums::MipMapGenerationMode mipMapGen) const |
Implementation of IVideoStream::Clone(IEnums::PixelFormat pixelFormat, UInt32 pixelSizeX, UInt32 pixelSizeY, IEnums::MipMapGenerationMode mipMapGen). More... | |
virtual UInt32 | GetNumberOfFrames () const |
Implementation of IVideoStream::GetNumberOfFrames(). More... | |
virtual UInt32 | GetFrameIndex (Double startTime) const |
Implementation of IVideoStream::GetFrameIndex(). More... | |
virtual Double | GetStartTime (UInt32 frameIndex) const |
Implementation of IVideoStream::GetStartTime(). More... | |
virtual Double | GetFrameRate () const |
Implementation of IVideoStream::GetFrameRate(). More... | |
virtual Double | GetFrameDuration () const |
Implementation of IVideoStream::GetFrameDuration(). More... | |
virtual Double | GetTotalDuration () const |
Implementation of IVideoStream::GetTotalDuration(). More... | |
virtual UInt32 | GetNumberOfMipLevels () const |
Implementation of IVideoStream::GetNumberOfMipLevels(). More... | |
virtual UInt32 | GetNumberOfPlanes () const |
Implementation of IVideoStream::GetNumberOfPlanes(). More... | |
virtual IEnums::PixelFormat | GetPixelFormat () const |
Implementation of IVideoStream::GetPixelFormat(). More... | |
virtual UInt32 | GetBytesPerPixel () const |
Implementation of IVideoStream::GetBytesPerPixel(). More... | |
virtual UInt32 | GetPixelSizeX (UInt32 mipLevel) const |
Implementation of IVideoStream::GetPixelSizeX(UInt32 mipLevel). More... | |
virtual UInt32 | GetPixelSizeY (UInt32 mipLevel) const |
Implementation of IVideoStream::GetPixelSizeY(UInt32 mipLevel). More... | |
virtual UInt32 | GetBytesPerLine (UInt32 mipLevel) const |
Implementation of IVideoStream::GetBytesPerLine(UInt32 mipLevel). More... | |
virtual UInt32 | GetNumberOfBytes (UInt32 mipLevel) const |
Implementation of IVideoStream::GetNumberOfBytes(UInt32 mipLevel). More... | |
virtual IEnums::PixelFormat | GetPixelFormat (UInt32 planeIndex) const |
Implementation of IVideoStream::GetPixelFormat(UInt32 planeIndex). More... | |
virtual UInt32 | GetBytesPerPixel (UInt32 planeIndex) const |
Implementation of IVideoStream::GetBytesPerPixel(UInt32 planeIndex). More... | |
virtual UInt32 | GetPixelSizeX (UInt32 mipLevel, UInt32 planeIndex) const |
Implementation of IVideoStream::GetPixelSizeX(UInt32 mipLevel, UInt32 planeIndex). More... | |
virtual UInt32 | GetPixelSizeY (UInt32 mipLevel, UInt32 planeIndex) const |
Implementation of IVideoStream::GetPixelSizeY(UInt32 mipLevel, UInt32 planeIndex). More... | |
virtual UInt32 | GetBytesPerLine (UInt32 mipLevel, UInt32 planeIndex) const |
Implementation of IVideoStream::GetBytesPerLine(UInt32 mipLevel, UInt32 planeIndex). More... | |
virtual UInt32 | GetNumberOfBytes (UInt32 mipLevel, UInt32 planeIndex) const |
Implementation of IVideoStream::GetNumberOfBytes(UInt32 mipLevel, UInt32 planeIndex). More... | |
virtual Bool | IsReadyForDecoding () const |
Implementation of IVideoStream::IsReadyForDecoding(). More... | |
virtual Bool | StartDecoding () |
Implementation of IVideoStream::StartDecoding(). More... | |
virtual Bool | EndDecoding () |
Implementation of IVideoStream::EndDecoding(). More... | |
virtual UInt32 | Decode (UInt32 mipLevel, UInt32 planeIndex, Data &dstBuffer, IEnums::PixelFormat dstFormat, UInt32 firstFrame, UInt32 numFrames) |
Implementation of IVideoStream::Decode(). More... | |
virtual Bool | SetCurrentMode (IEnums::StreamMode mode) |
Implementation of IVideoStream::SetCurrentMode(). More... | |
virtual const IEnums::StreamMode | GetCurrentMode () const |
Implementation of IVideoStream::GetCurrentMode(). More... | |
virtual Bool | SetCurrentTimeOffset (Double timeOffset) |
Implementation of IVideoStream::SetCurrentTimeOffset(). More... | |
virtual Double | GetCurrentTimeOffset () const |
Implementation of IVideoStream::GetCurrentTimeOffset(). More... | |
virtual Bool | PrepareDecodedData () |
Implementation of IVideoStream::PrepareDecodedData(). More... | |
virtual Bool | FinishDecodedData () |
Implementation of IVideoStream::FinishDecodedData(). More... | |
virtual Double | GetDecodedTimeOffset () const |
Implementation of IVideoStream::GetDecodedTimeOffset(). More... | |
virtual UInt64 | GetDecodedFrameIndex () const |
Implementation of IVideoStream::GetDecodedFrameIndex(). More... | |
virtual const ConstData & | GetDecodedData (UInt32 mipLevel, UInt32 planeIndex) |
Implementation of IVideoStream::GetDecodedData(). More... | |
virtual const IVideoSurface * | GetDecodedSurface (UInt32 mipLevel, UInt32 planeIndex) |
Implementation of IVideoStream::GetDecodedSurface(). More... | |
virtual const MutableData & | LockDecodedData (UInt32 mipLevel, UInt32 planeIndex) |
Implementation of IVideoStream::LockDecodedData(). More... | |
virtual IVideoSurface * | LockDecodedSurface (UInt32 mipLevel, UInt32 planeIndex) |
Implementation of IVideoStream::LockDecodedSurface(). More... | |
virtual Bool | UnlockDecodedData (UInt32 mipLevel, UInt32 planeIndex) |
Implementation of IVideoStream::UnlockDecodedData(). More... | |
virtual Bool | UnlockDecodedSurface (UInt32 mipLevel, UInt32 planeIndex) |
Implementation of IVideoStream::UnlockDecodedSurface(). More... | |
virtual Bool | SetSurface (UInt32 mipLevel, UInt32 planeIndex, IVideoSurface *surface, Bool takeOwnership) |
Set the surface. More... | |
![]() | |
virtual | ~IVideoStream () |
The destructor. | |
Protected Member Functions | |
virtual Bool | AcquireMipLevelSurface (UInt32 mipLevel) |
Create or restore surface data for a specified mip level. More... | |
Murl::Util::EvictableVideoStream::EvictableVideoStream | ( | IEnums::PixelFormat | outputFormat, |
UInt32 | pixelSizeX, | ||
UInt32 | pixelSizeY, | ||
IEnums::MipMapGenerationMode | mipMapGen | ||
) |
The constructor.
Creates a video stream with spcified pixel format and dimension.
outputFormat | The pixel format of the new video object. |
pixelSizeX | The number of horizontal pixels. |
pixelSizeY | The number of vertical pixels. |
mipMapGen | Specifies if and how mip maps are generated. |
|
virtual |
Release decoded surface data.
Calls IVideoSurface::Evict() on all mip-level surfaces.
Reimplemented from Murl::Util::VideoStream.
|
protectedvirtual |
Create or restore surface data for a specified mip level.
Calls IVideoSurface::Restore() if the surface exists, otherwise a new surface is created.
mipLevel | The mip level in the range [0 .. GetNumberOfMipLevels() - 1]. |
Reimplemented from Murl::Util::VideoStream.