QtlMovie 1.12 (A specialized FFmpeg front-end)
QtsCore.cpp File Reference

Functions

const QtsPidSet QtsAllPids (~QtsNoPid)
 
quint64 qtsGetPcr (const void *b)
 Extract a PCR (Program Clock Reference) from a stream. More...
 
quint64 qtsGetPtsDts (const void *b)
 Extract a PTS or DTS from a stream. More...
 
bool qtsIsAudioStreamType (QtsStreamType st)
 Check if an ST (Stream Type) value indicates an audio stream. More...
 
bool qtsIsLongHeaderPesStreamId (QtsPesStreamId sid)
 Check if a PES stream identifier value indicates a PES packet with long header. More...
 
bool qtsIsPesStreamType (QtsStreamType st)
 Check if an ST (Stream Type) value indicates a PES stream. More...
 
bool qtsIsSectionStreamType (QtsStreamType st)
 Check if an ST (Stream Type) value indicates a stream carrying sections. More...
 
bool qtsIsVideoStreamType (QtsStreamType st)
 Check if an ST (Stream Type) value indicates a video stream. More...
 
void qtsPutPcr (void *b, const quint64 &pcr)
 Insert a PCR (Program Clock Reference) in a stream. More...
 
void qtsPutPtsDts (void *b, const quint64 &xts)
 Insert a PTS or DTS in a stream. More...
 

Variables

const QtsPidSet QtsNoPid
 A constant QtsPidSet with no PID set. More...
 

Function Documentation

◆ QtsAllPids()

const QtsPidSet QtsAllPids ( QtsNoPid)

◆ qtsGetPcr()

quint64 qtsGetPcr ( const void *  b)

Extract a PCR (Program Clock Reference) from a stream.

Parameters
[in]bAddress of a 6-byte area where to extract the PCR.
Returns
A 42-bit PCR value.

◆ qtsPutPcr()

void qtsPutPcr ( void *  b,
const quint64 &  pcr 
)

Insert a PCR (Program Clock Reference) in a stream.

Parameters
[out]bAddress of a 6-byte area where to insert the PCR.
[in]pcrA 42-bit PCR value.

◆ qtsGetPtsDts()

quint64 qtsGetPtsDts ( const void *  b)

Extract a PTS or DTS from a stream.

Parameters
[in]bAddress of a 5-byte area where to extract the PTS or DTS.
Returns
A 33-bit PTS or DTS value.

◆ qtsPutPtsDts()

void qtsPutPtsDts ( void *  b,
const quint64 &  xts 
)

Insert a PTS or DTS in a stream.

Parameters
[out]bAddress of a 5-byte area where to insert the PTS or DTS.
[in]xtsA 33-bit PTS or DTS value.

◆ qtsIsLongHeaderPesStreamId()

bool qtsIsLongHeaderPesStreamId ( QtsPesStreamId  sid)

Check if a PES stream identifier value indicates a PES packet with long header.

Parameters
[in]sidPES stream identifier.
Returns
True for a PES packet with long header, false otherwise.

◆ qtsIsPesStreamType()

bool qtsIsPesStreamType ( QtsStreamType  st)

Check if an ST (Stream Type) value indicates a PES stream.

Parameters
[in]stStream type as used in PMT.
Returns
True for a PES stream, false otherwise.

◆ qtsIsVideoStreamType()

bool qtsIsVideoStreamType ( QtsStreamType  st)

Check if an ST (Stream Type) value indicates a video stream.

Parameters
[in]stStream type as used in PMT.
Returns
True for a video stream, false otherwise.

◆ qtsIsAudioStreamType()

bool qtsIsAudioStreamType ( QtsStreamType  st)

Check if an ST (Stream Type) value indicates an audio stream.

Parameters
[in]stStream type as used in PMT.
Returns
True for an audio stream, false otherwise.

◆ qtsIsSectionStreamType()

bool qtsIsSectionStreamType ( QtsStreamType  st)

Check if an ST (Stream Type) value indicates a stream carrying sections.

Parameters
[in]stStream type as used in PMT.
Returns
True for a section stream, false otherwise.

Variable Documentation

◆ QtsNoPid

const QtsPidSet QtsNoPid

A constant QtsPidSet with no PID set.