Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
MediaInfo Struct Reference

#include <mediainfo_p.h>

Collaboration diagram for MediaInfo:

Static Public Member Functions

static std::optional< MediaInfocreate (const QUrl &fileLocation, bool keepFrames=false)
static std::array< QColor, 4 > sampleQuadrants (const QImage &image)

Public Attributes

QString m_url
int m_frameCount = 0
qreal m_frameRate = 0.0f
QSize m_size
milliseconds m_duration
bool m_hasVideo = false
bool m_hasAudio = false
std::vector< QVideoFramem_frames
std::vector< std::array< QColor, 4 > > m_colors
QAudioBuffer m_audioBuffer
std::vector< TestVideoSink::TimePointm_frameTimes

Detailed Description

Definition at line 32 of file mediainfo_p.h.

Member Function Documentation

◆ create()

std::optional< MediaInfo > MediaInfo::create ( const QUrl & fileLocation,
bool keepFrames = false )
inlinestatic

Definition at line 34 of file mediainfo_p.h.

References m_frameCount, m_hasAudio, and m_hasVideo.

◆ sampleQuadrants()

std::array< QColor, 4 > MediaInfo::sampleQuadrants ( const QImage & image)
inlinestatic

Definition at line 104 of file mediainfo_p.h.

Member Data Documentation

◆ m_audioBuffer

QAudioBuffer MediaInfo::m_audioBuffer

Definition at line 126 of file mediainfo_p.h.

◆ m_colors

std::vector<std::array<QColor, 4> > MediaInfo::m_colors

Definition at line 125 of file mediainfo_p.h.

◆ m_duration

milliseconds MediaInfo::m_duration

Definition at line 121 of file mediainfo_p.h.

◆ m_frameCount

int MediaInfo::m_frameCount = 0

Definition at line 118 of file mediainfo_p.h.

Referenced by create().

◆ m_frameRate

qreal MediaInfo::m_frameRate = 0.0f

Definition at line 119 of file mediainfo_p.h.

◆ m_frames

std::vector<QVideoFrame> MediaInfo::m_frames

Definition at line 124 of file mediainfo_p.h.

◆ m_frameTimes

std::vector<TestVideoSink::TimePoint> MediaInfo::m_frameTimes

Definition at line 128 of file mediainfo_p.h.

◆ m_hasAudio

bool MediaInfo::m_hasAudio = false

Definition at line 123 of file mediainfo_p.h.

Referenced by create().

◆ m_hasVideo

bool MediaInfo::m_hasVideo = false

Definition at line 122 of file mediainfo_p.h.

Referenced by create().

◆ m_size

QSize MediaInfo::m_size

Definition at line 120 of file mediainfo_p.h.

◆ m_url

QString MediaInfo::m_url

Definition at line 117 of file mediainfo_p.h.


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