Torc  0.1
Public Member Functions | Static Public Member Functions | List of all members
TorcMuxer Class Reference

#include <torcmuxer.h>

Public Member Functions

 TorcMuxer (const QString &File)
 
 TorcMuxer (TorcSegmentedRingBuffer *Buffer)
 
 ~TorcMuxer ()
 
bool IsValid (void)
 
int AddH264Stream (int Width, int Height, int Profile, int Bitrate)
 
int AddDummyAudioStream (void)
 
bool AddPacket (AVPacket *Packet, bool CodecConfig)
 
void FinishSegment (bool Init)
 
void Finish (void)
 
int WriteAVPacket (uint8_t *Buffer, int Size)
 

Static Public Member Functions

static int AVWritePacket (void *Opaque, uint8_t *Buffer, int Size)
 
static QString GetAVCCodec (const QByteArray &Packet)
 Determine the 3 byte H.264 codec descriptor string. More...
 

Detailed Description

Definition at line 15 of file torcmuxer.h.

Constructor & Destructor Documentation

TorcMuxer::TorcMuxer ( const QString &  File)
explicit

Definition at line 121 of file torcmuxer.cpp.

TorcMuxer::TorcMuxer ( TorcSegmentedRingBuffer Buffer)
explicit

Definition at line 102 of file torcmuxer.cpp.

TorcMuxer::~TorcMuxer ( )

Definition at line 139 of file torcmuxer.cpp.

Member Function Documentation

int TorcMuxer::AddDummyAudioStream ( void  )

Definition at line 293 of file torcmuxer.cpp.

int TorcMuxer::AddH264Stream ( int  Width,
int  Height,
int  Profile,
int  Bitrate 
)

Definition at line 395 of file torcmuxer.cpp.

bool TorcMuxer::AddPacket ( AVPacket *  Packet,
bool  CodecConfig 
)

Definition at line 434 of file torcmuxer.cpp.

int TorcMuxer::AVWritePacket ( void *  Opaque,
uint8_t *  Buffer,
int  Size 
)
static

Definition at line 229 of file torcmuxer.cpp.

void TorcMuxer::Finish ( void  )

Definition at line 490 of file torcmuxer.cpp.

void TorcMuxer::FinishSegment ( bool  Init)

Definition at line 467 of file torcmuxer.cpp.

QString TorcMuxer::GetAVCCodec ( const QByteArray &  Packet)
static

Determine the 3 byte H.264 codec descriptor string.

Note
This code is very much targetted at the output of the Raspberry Pi camera module. It may require modification for use with other devices.

Definition at line 243 of file torcmuxer.cpp.

bool TorcMuxer::IsValid ( void  )

Definition at line 288 of file torcmuxer.cpp.

int TorcMuxer::WriteAVPacket ( uint8_t *  Buffer,
int  Size 
)

Definition at line 277 of file torcmuxer.cpp.


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