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>
Name | |
---|---|
DataFrame() =default | |
~DataFrame() | |
DataFrame(DataFrame const & ) =delete | |
DataFrame & | operator=(DataFrame const & ) =delete |
Name | |
---|---|
uint64_t | mPTS |
uint8_t * | mVideoDataCudaPtr |
PixelFormat | mPixelFormat |
uint32_t | mFrameRateN |
uint32_t | mFrameRateD |
uint32_t | mWidth |
uint32_t | mHeight |
std::vector< AudioSampleRow > | mAudioData |
uint32_t | mAudioChannels |
uint32_t | mAudioSamplingFrequency |
DataFrame() =default
inline ~DataFrame()
DataFrame(
DataFrame const &
) =delete
DataFrame & operator=(
DataFrame const &
) =delete
uint64_t mPTS;
uint8_t * mVideoDataCudaPtr = nullptr;
PixelFormat mPixelFormat = PixelFormat::kUnknown;
uint32_t mFrameRateN = 0;
uint32_t mFrameRateD = 0;
uint32_t mWidth = 0;
uint32_t mHeight = 0;
std::vector< AudioSampleRow > mAudioData;
uint32_t mAudioChannels = 0;
uint32_t mAudioSamplingFrequency = 0;
Updated on 2022-06-22 at 16:53:25 +0200