QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlMovieDeviceProfile Class Reference

This structure defines the type and screen size of a device (iPad, iPhone, etc). More...

Public Member Functions

 QtlMovieDeviceProfile (const char *name="undefined", int width=100, int height=100, float frameRate=30, int audioBitRate=128000, int audioSampling=48000)
 Constructor. More...
 
int audioBitRate () const
 Audio bitrate. More...
 
int audioSampling () const
 Audio samples per second. More...
 
float frameRate () const
 Frame rate. More...
 
QString frameRateString () const
 Frame rate value as a string for FFmpeg option. More...
 
int height () const
 Screen height in pixels. More...
 
QString name () const
 Device model name. More...
 
int videoBitRate (int qualityIndicator) const
 Compute the video bitrate from a given quality indicator. More...
 
int width () const
 Screen width in pixels. More...
 

Static Public Member Functions

static int videoBitRate (int qualityIndicator, int width, int height, float frameRate)
 Compute the video bitrate from a given quality indicator. More...
 

Static Public Attributes

static const QVector< QtlMovieDeviceProfileandroidModels
 List of supported Android devices. More...
 
static const QVector< QtlMovieDeviceProfileiPadModels
 List of supported iPad models. More...
 
static const QVector< QtlMovieDeviceProfileiPhoneModels
 List of supported iPhone models. More...
 

Private Attributes

int _audioBitRate
 Audio bitrate. More...
 
int _audioSampling
 Audio samples per second. More...
 
float _frameRate
 Frames per second. More...
 
int _height
 Screen height in pixels. More...
 
QString _name
 Device model name. More...
 
int _width
 Screen width in pixels. More...
 

Detailed Description

This structure defines the type and screen size of a device (iPad, iPhone, etc).

Constructor & Destructor Documentation

◆ QtlMovieDeviceProfile()

QtlMovieDeviceProfile::QtlMovieDeviceProfile ( const char *  name = "undefined",
int  width = 100,
int  height = 100,
float  frameRate = 30,
int  audioBitRate = 128000,
int  audioSampling = 48000 
)

Constructor.

Parameters
[in]nameDevice model name.
[in]widthScreen width in pixels.
[in]heightScreen height in pixels.
[in]frameRateFrame rate.
[in]audioBitRateAudio bitrate.
[in]audioSamplingAudio samples per second.

Member Function Documentation

◆ name()

QString QtlMovieDeviceProfile::name ( ) const
inline

Device model name.

Returns
Device model name.

◆ width()

int QtlMovieDeviceProfile::width ( ) const
inline

Screen width in pixels.

Returns
Screen width in pixels.

◆ height()

int QtlMovieDeviceProfile::height ( ) const
inline

Screen height in pixels.

Returns
Screen height in pixels.

◆ frameRate()

float QtlMovieDeviceProfile::frameRate ( ) const
inline

Frame rate.

Returns
Frame rate in frames per second.

◆ frameRateString()

QString QtlMovieDeviceProfile::frameRateString ( ) const

Frame rate value as a string for FFmpeg option.

Returns
Frame rate value as a string.

◆ audioBitRate()

int QtlMovieDeviceProfile::audioBitRate ( ) const
inline

Audio bitrate.

Returns
Audio bitrate.

◆ audioSampling()

int QtlMovieDeviceProfile::audioSampling ( ) const
inline

Audio samples per second.

Returns
Audio samples per second.

◆ videoBitRate() [1/2]

int QtlMovieDeviceProfile::videoBitRate ( int  qualityIndicator) const

Compute the video bitrate from a given quality indicator.

A quality indicator is a way to represent the video quality independently from the actual video size and frame rate.

Parameters
[in]qualityIndicatorSpecified video quality. This is the number of bits per pixel per 100 frames.
Returns
The computed bitrate in bits per second.

◆ videoBitRate() [2/2]

int QtlMovieDeviceProfile::videoBitRate ( int  qualityIndicator,
int  width,
int  height,
float  frameRate 
)
static

Compute the video bitrate from a given quality indicator.

A quality indicator is a way to represent the video quality independently from the actual video size and frame rate.

Parameters
[in]qualityIndicatorSpecified video quality. This is the number of bits per pixel per 100 frames.
[in]widthScreen width in pixels.
[in]heightScreen height in pixels.
[in]frameRateFrames per second.
Returns
The computed bitrate in bits per second.

Member Data Documentation

◆ iPadModels

const QVector< QtlMovieDeviceProfile > QtlMovieDeviceProfile::iPadModels
static

List of supported iPad models.

◆ iPhoneModels

const QVector< QtlMovieDeviceProfile > QtlMovieDeviceProfile::iPhoneModels
static

List of supported iPhone models.

◆ androidModels

const QVector< QtlMovieDeviceProfile > QtlMovieDeviceProfile::androidModels
static

List of supported Android devices.

◆ _name

QString QtlMovieDeviceProfile::_name
private

Device model name.

◆ _width

int QtlMovieDeviceProfile::_width
private

Screen width in pixels.

◆ _height

int QtlMovieDeviceProfile::_height
private

Screen height in pixels.

◆ _frameRate

float QtlMovieDeviceProfile::_frameRate
private

Frames per second.

◆ _audioBitRate

int QtlMovieDeviceProfile::_audioBitRate
private

Audio bitrate.

◆ _audioSampling

int QtlMovieDeviceProfile::_audioSampling
private

Audio samples per second.


The documentation for this class was generated from the following files: