SequenceHeader Class Reference

#include <pespacket.h>

List of all members.


Detailed Description

Definition at line 260 of file pespacket.h.


Public Member Functions

 SequenceHeader ()
 ~SequenceHeader ()
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.

Private Attributes

unsigned char data [11]

Static Private Attributes

static const float mpeg1_aspect [16]
static const float mpeg2_aspect [16]
 The negative values are screen aspect ratios, while the positive ones are pixel aspect ratios.
static const float mpeg2_fps [16]

Constructor & Destructor Documentation

SequenceHeader::SequenceHeader (  )  [inline]

Definition at line 263 of file pespacket.h.

SequenceHeader::~SequenceHeader (  )  [inline]

Definition at line 264 of file pespacket.h.


Member Function Documentation

uint SequenceHeader::width ( void   )  const [inline]

Definition at line 266 of file pespacket.h.

Referenced by aspect(), and AvFormatDecoder::MpegPreProcessPkt().

uint SequenceHeader::height ( void   )  const [inline]

Definition at line 267 of file pespacket.h.

Referenced by aspect(), and AvFormatDecoder::MpegPreProcessPkt().

uint SequenceHeader::aspectNum ( void   )  const [inline]

Definition at line 268 of file pespacket.h.

Referenced by aspect().

uint SequenceHeader::fpsNum ( void   )  const [inline]

Definition at line 269 of file pespacket.h.

Referenced by fps().

float SequenceHeader::fps ( void   )  const [inline]

Definition at line 270 of file pespacket.h.

Referenced by AvFormatDecoder::MpegPreProcessPkt().

float SequenceHeader::aspect ( bool  mpeg1  )  const

Returns the screen aspect ratio.

Definition at line 205 of file pespacket.cpp.

Referenced by AvFormatDecoder::MpegPreProcessPkt().


Member Data Documentation

unsigned char SequenceHeader::data[11] [private]

Definition at line 274 of file pespacket.h.

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

const float SequenceHeader::mpeg1_aspect [static, private]

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 275 of file pespacket.h.

Referenced by aspect().

const float SequenceHeader::mpeg2_aspect [static, private]

Initial value:

{
    0.0000f,       1.0000f,       -3.0/4.0,     -9.0/16.0,
    -1.0/2.21,     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 276 of file pespacket.h.

Referenced by aspect().

const float SequenceHeader::mpeg2_fps [static, private]

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 277 of file pespacket.h.

Referenced by fps().


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

Generated on Sat Dec 18 05:16:10 2010 for MythTV by  doxygen 1.5.5