StormByte-Multimedia 3.3.2
C++26 multimedia processing module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Multimedia::PreviewVideo Struct Reference

Owned, tightly packed RGBA8 preview image, not an HDR mastering surface. More...

#include <StormByte/multimedia/display.hxx>

Collaboration diagram for StormByte::Multimedia::PreviewVideo:

Public Member Functions

 PreviewVideo ()=default
 Construct an empty image.
 PreviewVideo (const PreviewVideo &other)=default
 Copy an image.
 PreviewVideo (PreviewVideo &&other) noexcept=default
 Move an image.
 ~PreviewVideo () noexcept=default
 Release image storage.
PreviewVideo & operator= (const PreviewVideo &other)=default
 Copy an image.
PreviewVideo & operator= (PreviewVideo &&other) noexcept=default
 Move an image.

Public Attributes

Safe::Binary m_pixels
 Row-major RGBA8 bytes; stride is m_width * 4.
std::uint32_t m_width = 0
 Pixel width.
std::uint32_t m_height = 0
 Pixel height.
std::uint64_t m_epoch = 0
 Delivery generation.
double m_position = 0
 Presentation time in media seconds.
double m_duration = 0
 Image duration in seconds.

Detailed Description

Owned, tightly packed RGBA8 preview image, not an HDR mastering surface.

Constructor & Destructor Documentation

◆ PreviewVideo() [1/3]

StormByte::Multimedia::PreviewVideo::PreviewVideo ( )
default

Construct an empty image.

◆ PreviewVideo() [2/3]

StormByte::Multimedia::PreviewVideo::PreviewVideo ( const PreviewVideo & other)
default

Copy an image.

Parameters
otherSource.

◆ PreviewVideo() [3/3]

StormByte::Multimedia::PreviewVideo::PreviewVideo ( PreviewVideo && other)
defaultnoexcept

Move an image.

Parameters
otherSource.

◆ ~PreviewVideo()

StormByte::Multimedia::PreviewVideo::~PreviewVideo ( )
defaultnoexcept

Release image storage.

Member Function Documentation

◆ operator=() [1/2]

PreviewVideo & StormByte::Multimedia::PreviewVideo::operator= ( const PreviewVideo & other)
default

Copy an image.

Parameters
otherSource.
Returns
This image.

◆ operator=() [2/2]

PreviewVideo & StormByte::Multimedia::PreviewVideo::operator= ( PreviewVideo && other)
defaultnoexcept

Move an image.

Parameters
otherSource.
Returns
This image.

Member Data Documentation

◆ m_duration

double StormByte::Multimedia::PreviewVideo::m_duration = 0

Image duration in seconds.

◆ m_epoch

std::uint64_t StormByte::Multimedia::PreviewVideo::m_epoch = 0

Delivery generation.

◆ m_height

std::uint32_t StormByte::Multimedia::PreviewVideo::m_height = 0

Pixel height.

◆ m_pixels

Safe::Binary StormByte::Multimedia::PreviewVideo::m_pixels

Row-major RGBA8 bytes; stride is m_width * 4.

◆ m_position

double StormByte::Multimedia::PreviewVideo::m_position = 0

Presentation time in media seconds.

◆ m_width

std::uint32_t StormByte::Multimedia::PreviewVideo::m_width = 0

Pixel width.


The documentation for this struct was generated from the following file: