MythTV  0.26-pre
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
SequenceHeader Class Reference

#include <pespacket.h>

List of all members.

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.

Private Member Functions

 SequenceHeader ()
 ~SequenceHeader ()

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]

Detailed Description

Definition at line 288 of file pespacket.h.


Constructor & Destructor Documentation

SequenceHeader::SequenceHeader ( ) [inline, private]

Definition at line 299 of file pespacket.h.

SequenceHeader::~SequenceHeader ( ) [inline, private]

Definition at line 300 of file pespacket.h.


Member Function Documentation

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

Definition at line 291 of file pespacket.h.

Referenced by AvFormatDecoder::MpegPreProcessPkt().

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

Definition at line 292 of file pespacket.h.

Referenced by AvFormatDecoder::MpegPreProcessPkt().

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

Definition at line 293 of file pespacket.h.

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

Definition at line 294 of file pespacket.h.

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

Definition at line 295 of file pespacket.h.

Referenced by AvFormatDecoder::MpegPreProcessPkt().

float SequenceHeader::aspect ( bool  mpeg1) const

Returns the screen aspect ratio.

Definition at line 194 of file pespacket.cpp.

Referenced by AvFormatDecoder::MpegPreProcessPkt().


Member Data Documentation

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

Definition at line 302 of file pespacket.h.

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

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

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends