MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SequenceHeader Class Reference

#include <pespacket.h>

Public Member Functions

uint width (void) const
 
uint height (void) const
 
uint aspectNum (void) const
 
uint fpsNum (void) const
 
float fps (void) const
 
float aspect (bool mpeg1) const
 Returns the screen aspect ratio. More...
 

Private Member Functions

 SequenceHeader ()
 
 ~SequenceHeader ()
 

Private Attributes

unsigned char m_data [11] {}
 

Static Private Attributes

static const float kMpeg1Aspect [16]
 
static const float kMpeg2Aspect [16]
 The negative values are screen aspect ratios, while the positive ones are pixel aspect ratios. More...
 
static const float kMpeg2Fps [16]
 

Detailed Description

Definition at line 226 of file pespacket.h.

Constructor & Destructor Documentation

◆ SequenceHeader()

SequenceHeader::SequenceHeader ( )
inlineprivate

Definition at line 237 of file pespacket.h.

◆ ~SequenceHeader()

SequenceHeader::~SequenceHeader ( )
inlineprivate

Definition at line 238 of file pespacket.h.

Member Function Documentation

◆ width()

uint SequenceHeader::width ( void  ) const
inline

Definition at line 229 of file pespacket.h.

◆ height()

uint SequenceHeader::height ( void  ) const
inline

Definition at line 230 of file pespacket.h.

◆ aspectNum()

uint SequenceHeader::aspectNum ( void  ) const
inline

Definition at line 231 of file pespacket.h.

◆ fpsNum()

uint SequenceHeader::fpsNum ( void  ) const
inline

Definition at line 232 of file pespacket.h.

◆ fps()

float SequenceHeader::fps ( void  ) const
inline

Definition at line 233 of file pespacket.h.

◆ aspect()

float SequenceHeader::aspect ( bool  mpeg1) const

Returns the screen aspect ratio.

Definition at line 194 of file pespacket.cpp.

Member Data Documentation

◆ m_data

unsigned char SequenceHeader::m_data[11] {}
private

Definition at line 240 of file pespacket.h.

◆ kMpeg1Aspect

const float SequenceHeader::kMpeg1Aspect
staticprivate
Initial value:
=
{
0.0000F, 1.0000F, 0.6735F, 0.7031F,
0.7615F, 0.8055F, 0.8437F, 0.8935F,
0.9157F, 0.9815F, 1.0255F, 1.0695F,
1.0950F, 1.1575F, 1.2015F, 0.0000F,
}

Definition at line 241 of file pespacket.h.

◆ kMpeg2Aspect

const float SequenceHeader::kMpeg2Aspect
staticprivate
Initial value:
=
{
0.0000F, 1.0000F, -3.0F/4.0F, -9.0F/16.0F,
-1.0F/2.21F, 0.0000F, 0.0000F, 0.0000F,
0.0000F, 0.0000F, 0.0000F, 0.0000F,
0.0000F, 0.0000F, 0.0000F, 0.0000F,
}

The negative values are screen aspect ratios, while the positive ones are pixel aspect ratios.

Definition at line 242 of file pespacket.h.

◆ kMpeg2Fps

const float SequenceHeader::kMpeg2Fps
staticprivate
Initial value:
=
{
0.0F, 24000/1001.0F, 24.0F, 25.0F,
30000/1001.0F, 30.0F, 50.0F, 60000/1001.0F,
60.0F, 1.0F, 1.0F, 1.0F,
1.0F, 1.0F, 1.0F, 1.0F,
}

Definition at line 243 of file pespacket.h.


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