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

std::array< unsigned char, 11 > m_data {}
 

Static Private Attributes

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

Detailed Description

Definition at line 234 of file pespacket.h.

Constructor & Destructor Documentation

◆ SequenceHeader()

SequenceHeader::SequenceHeader ( )
inlineprivate

Definition at line 245 of file pespacket.h.

◆ ~SequenceHeader()

SequenceHeader::~SequenceHeader ( )
inlineprivate

Definition at line 246 of file pespacket.h.

Member Function Documentation

◆ width()

uint SequenceHeader::width ( void  ) const
inline

Definition at line 237 of file pespacket.h.

Referenced by aspect().

◆ height()

uint SequenceHeader::height ( void  ) const
inline

Definition at line 238 of file pespacket.h.

Referenced by aspect().

◆ aspectNum()

uint SequenceHeader::aspectNum ( void  ) const
inline

Definition at line 239 of file pespacket.h.

Referenced by aspect().

◆ fpsNum()

uint SequenceHeader::fpsNum ( void  ) const
inline

Definition at line 240 of file pespacket.h.

Referenced by fps().

◆ fps()

float SequenceHeader::fps ( void  ) const
inline

Definition at line 241 of file pespacket.h.

◆ aspect()

float SequenceHeader::aspect ( bool  mpeg1) const

Returns the screen aspect ratio.

Definition at line 224 of file pespacket.cpp.

Referenced by AvFormatDecoder::MpegPreProcessPkt().

Member Data Documentation

◆ m_data

std::array<unsigned char,11> SequenceHeader::m_data {}
private

Definition at line 248 of file pespacket.h.

Referenced by aspectNum(), fpsNum(), height(), and width().

◆ kMpeg1Aspect

const AspectArray 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 249 of file pespacket.h.

Referenced by aspect().

◆ kMpeg2Aspect

const AspectArray 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 250 of file pespacket.h.

Referenced by aspect().

◆ kMpeg2Fps

const AspectArray 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 251 of file pespacket.h.

Referenced by fps().


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