liveMedia/MPEG1or2Demux.cpp File Reference

#include "MPEG1or2Demux.hh"
#include "MPEG1or2DemuxedElementaryStream.hh"
#include "StreamParser.hh"
#include <stdlib.h>
#include <string.h>

Include dependency graph for MPEG1or2Demux.cpp:

Go to the source code of this file.

Data Structures

class  MPEGProgramStreamParser
class  MPEG1or2Demux::OutputDescriptor::SavedData

Defines

#define RAW_PES   0xFC
#define PACK_START_CODE   0x000001BA
#define SYSTEM_HEADER_START_CODE   0x000001BB
#define PACKET_START_CODE_PREFIX   0x00000100
#define private_stream_1   0xBD
#define private_stream_2   0xBF
#define READER_NOT_READY   2

Enumerations

enum  MPEGParseState {
  PARSING_PACK_HEADER, PARSING_SYSTEM_HEADER, PARSING_PES_PACKET, PARSING_VIDEO_SEQUENCE_HEADER,
  PARSING_VIDEO_SEQUENCE_HEADER_SEEN_CODE, PARSING_GOP_HEADER, PARSING_GOP_HEADER_SEEN_CODE, PARSING_PICTURE_HEADER,
  PARSING_SLICE, PARSING_VISUAL_OBJECT_SEQUENCE, PARSING_VISUAL_OBJECT_SEQUENCE_SEEN_CODE, PARSING_VISUAL_OBJECT,
  PARSING_VIDEO_OBJECT_LAYER, PARSING_GROUP_OF_VIDEO_OBJECT_PLANE, PARSING_VIDEO_OBJECT_PLANE, PARSING_VISUAL_OBJECT_SEQUENCE_END_CODE
}

Functions

static Boolean isPacketStartCode (unsigned code)


Define Documentation

#define PACK_START_CODE   0x000001BA

Definition at line 374 of file MPEG1or2Demux.cpp.

Referenced by MPEGProgramStreamParser::parsePackHeader().

#define PACKET_START_CODE_PREFIX   0x00000100

Definition at line 376 of file MPEG1or2Demux.cpp.

Referenced by isPacketStartCode().

#define private_stream_1   0xBD

Definition at line 501 of file MPEG1or2Demux.cpp.

Referenced by MPEGProgramStreamParser::isSpecialStreamId().

#define private_stream_2   0xBF

Definition at line 502 of file MPEG1or2Demux.cpp.

Referenced by MPEGProgramStreamParser::isSpecialStreamId().

#define RAW_PES   0xFC

Definition at line 147 of file MPEG1or2Demux.cpp.

Referenced by MPEGProgramStreamParser::isSpecialStreamId(), MPEG1or2Demux::newRawPESStream(), and MPEGProgramStreamParser::parsePESPacket().

#define READER_NOT_READY   2

Definition at line 523 of file MPEG1or2Demux.cpp.

Referenced by MPEGProgramStreamParser::parsePESPacket().

#define SYSTEM_HEADER_START_CODE   0x000001BB

Definition at line 375 of file MPEG1or2Demux.cpp.

Referenced by isPacketStartCode(), MPEGProgramStreamParser::parsePackHeader(), and MPEGProgramStreamParser::parseSystemHeader().


Enumeration Type Documentation

enum MPEGParseState

Enumerator:
PARSING_PACK_HEADER 
PARSING_SYSTEM_HEADER 
PARSING_PES_PACKET 
PARSING_VIDEO_SEQUENCE_HEADER 
PARSING_VIDEO_SEQUENCE_HEADER_SEEN_CODE 
PARSING_GOP_HEADER 
PARSING_GOP_HEADER_SEEN_CODE 
PARSING_PICTURE_HEADER 
PARSING_SLICE 
PARSING_VISUAL_OBJECT_SEQUENCE 
PARSING_VISUAL_OBJECT_SEQUENCE_SEEN_CODE 
PARSING_VISUAL_OBJECT 
PARSING_VIDEO_OBJECT_LAYER 
PARSING_GROUP_OF_VIDEO_OBJECT_PLANE 
PARSING_VIDEO_OBJECT_PLANE 
PARSING_VISUAL_OBJECT_SEQUENCE_END_CODE 

Definition at line 29 of file MPEG1or2Demux.cpp.

00029                     {
00030   PARSING_PACK_HEADER,
00031   PARSING_SYSTEM_HEADER,
00032   PARSING_PES_PACKET
00033 };


Function Documentation

static Boolean isPacketStartCode ( unsigned  code  )  [inline, static]

Definition at line 378 of file MPEG1or2Demux.cpp.

References PACKET_START_CODE_PREFIX, and SYSTEM_HEADER_START_CODE.

Referenced by MPEGProgramStreamParser::parsePackHeader(), and MPEGProgramStreamParser::parsePESPacket().

00378                                                        {
00379   return (code&0xFFFFFF00) == PACKET_START_CODE_PREFIX
00380     && code > SYSTEM_HEADER_START_CODE;
00381 }


Generated on Tue Mar 25 14:38:13 2014 for live by  doxygen 1.5.2