AlignedData::DataFrame

AlignedData::DataFrame

A frame of aligned data that is passed to the rendering engine from the MediaReceiver. A DataFrame contains a time stamped frame of media, which might be video, audio and auxiliary data such as subtitles. A single DataFrame can contain one or multiple types of media. Which media types are included can be probed by nullptr-checking/size checking the data members. The struct has ownership of all data pointers included. The struct includes all logic for freeing the resources held by this struct and the user should therefore just make sure the struct itself is deallocated to ensure all resources are freed.

#include <AlignedData.h>

Public Functions

Name
DataFrame() =default
~DataFrame()
DataFrame(DataFrame const & ) =delete
DataFrame &operator=(DataFrame const & ) =delete

Public Attributes

Name
uint64_tmPTS
uint8_t *mVideoDataCudaPtr
PixelFormatmPixelFormat
uint32_tmFrameRateN
uint32_tmFrameRateD
uint32_tmWidth
uint32_tmHeight
std::vector< AudioSampleRow >mAudioData
uint32_tmAudioChannels
uint32_tmAudioSamplingFrequency

Public Functions Documentation

function DataFrame

DataFrame() =default

function ~DataFrame

inline ~DataFrame()

function DataFrame

DataFrame(
    DataFrame const & 
) =delete

function operator=

DataFrame & operator=(
    DataFrame const & 
) =delete

Public Attributes Documentation

variable mPTS

uint64_t mPTS;

variable mVideoDataCudaPtr

uint8_t * mVideoDataCudaPtr = nullptr;

variable mPixelFormat

PixelFormat mPixelFormat = PixelFormat::kUnknown;

variable mFrameRateN

uint32_t mFrameRateN = 0;

variable mFrameRateD

uint32_t mFrameRateD = 0;

variable mWidth

uint32_t mWidth = 0;

variable mHeight

uint32_t mHeight = 0;

variable mAudioData

std::vector< AudioSampleRow > mAudioData;

variable mAudioChannels

uint32_t mAudioChannels = 0;

variable mAudioSamplingFrequency

uint32_t mAudioSamplingFrequency = 0;

Updated on 2022-06-22 at 16:53:25 +0200