RDK Documentation (Open Sourced RDK Components)
tsprocessor.h File Reference

Header file for play context. More...

#include "mediaprocessor.h"
#include "uint33_t.h"
#include <stdio.h>
#include <pthread.h>
#include <vector>
Include dependency graph for tsprocessor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RecordingComponent
 Stores information of a audio/video component. More...
 
class  TSProcessor
 MPEG TS Processor. Supports software Demuxer/ PTS re-stamping for trickmode. More...
 
struct  TSProcessor::_H264SPS
 Holds SPS parameters. More...
 
struct  TSProcessor::_H264PPS
 Holds PPS parameters. More...
 

Macros

#define MAX_PIDS   (8)
 
#define SCAN_REMAINDER_SIZE_MPEG2   (7)
 
#define SCAN_REMAINDER_SIZE_H264   (29)
 
#define MAX_SCAN_REMAINDER_SIZE   SCAN_REMAINDER_SIZE_H264
 

Enumerations

enum  StreamOperation
 Operation done by TSProcessor. More...
 
enum  TrackToDemux
 Track to demux. More...
 

yes

Header file for play context.

Definition in file tsprocessor.h.


Data Structure Documentation

◆ RecordingComponent

struct RecordingComponent

Stores information of a audio/video component.

Definition at line 41 of file tsprocessor.h.

Collaboration diagram for RecordingComponent:
Collaboration graph
Data Fields
int siType

Service information type such as PAT, PMT, NIT, SDT, BAT, etc

int elemStreamType

Elementary stream type of Audio or Video, such as 1B=H.264, 0x01=MPEG1, 0x10=MPEG4, 0x03=MPEG1 Audio, 0x04=MPEG2 Audio, etc

int pid

PID associated to the audio, video or data component

char * associatedLanguage

Language such as eng, hin, etc

unsigned int descriptorTags

Descriptor tags, each byte value will represent one descriptor tag up to max MAX_DESCRIPTOR (4)

◆ TSProcessor::_H264SPS

struct TSProcessor::_H264SPS

Holds SPS parameters.

Definition at line 451 of file tsprocessor.h.

Collaboration diagram for TSProcessor::_H264SPS:
Collaboration graph
Data Fields
int picOrderCountType
int maxPicOrderCount
int log2MaxFrameNumMinus4
int log2MaxPicOrderCntLsbMinus4
int separateColorPlaneFlag
int frameMBSOnlyFlag

◆ TSProcessor::_H264PPS

struct TSProcessor::_H264PPS

Holds PPS parameters.

Definition at line 465 of file tsprocessor.h.

Collaboration diagram for TSProcessor::_H264PPS:
Collaboration graph
Data Fields
int spsId

Enumeration Type Documentation

◆ StreamOperation

Operation done by TSProcessor.

Enumerator
eStreamOp_NONE 

Normal operation when no demuxing is required. Used with playersinkbin

eStreamOp_DEMUX_AUDIO 

Demux and inject audio only

eStreamOp_DEMUX_VIDEO 

Demux and inject video only

eStreamOp_DEMUX_ALL 

Demux and inject audio and video

eStreamOp_QUEUE_AUDIO 

When video contains PAT/PMT, audio needs to be queued until video is processed used with playersinkbin

eStreamOp_SEND_VIDEO_AND_QUEUED_AUDIO 

Send queued audio after video

eStreamOp_DEMUX_AUX 

Demux and inject auxiliary audio only

eStreamOp_DEMUX_VIDEO_AND_AUX 

Demux and inject auxiliary audio and video

Definition at line 66 of file tsprocessor.h.

◆ TrackToDemux

Track to demux.

Enumerator
ePC_Track_Video 

Demux and send video only

ePC_Track_Audio 

Demux and send audio only

ePC_Track_Both 

Demux and send audio and video

Definition at line 84 of file tsprocessor.h.