#include <StampedOggPacket.h>
Inheritance diagram for StampedOggPacket:
Public Types | |
enum | eStampType { NONE = 0, OGG_END_ONLY = 1, OGG_BOTH = 2, DIRECTSHOW = 3 } |
Public Member Functions | |
StampedOggPacket (void) | |
StampedOggPacket (unsigned char *inPackData, unsigned long inPacketSize, bool inIsTruncated, bool inIsContinuation, LOOG_INT64 inStartTime, LOOG_INT64 inEndTime, unsigned short inStampType) | |
virtual | ~StampedOggPacket (void) |
virtual OggPacket * | clone () |
Does a deep copy of the packet a returns you a new one you can keep. | |
LOOG_INT64 | startTime () |
Returns the start time of the packet. (Check stamp type). | |
LOOG_INT64 | endTime () |
Returns the end time of the packet (Check stamp type). | |
void | setStartTime (LOOG_INT64 inStartTime) |
Sets the start time of the packet (You need to set stamp type appropriately). | |
void | setEndTime (LOOG_INT64 inEndTime) |
Sets the end time of the packet (You need to set stamp type appropriately). | |
void | setTimeStamp (LOOG_INT64 inStartTime, LOOG_INT64 inEndTime, StampedOggPacket::eStampType inStampType) |
Sets the time stamp in one hit. | |
virtual void | merge (const StampedOggPacket *inMorePacket) |
Merges two packets together. | |
unsigned long | packetSize () const |
Returns the size of the contained packet. | |
unsigned char * | packetData () |
Returns a pointer to the internal packet buffer. | |
bool | isTruncated () const |
Returns whether this packet is truncated. | |
bool | isContinuation () const |
Returns whether this packet is continued from another one. | |
void | setIsTruncated (bool inIsTruncated) |
Set the truncated flag on this packet. | |
void | setIsContinuation (bool inIsContinuation) |
Set the continuation flag on this packet. | |
void | setPacketSize (unsigned long inPacketSize) |
Set the size of this packet. | |
void | setPacketData (unsigned char *inPacketData) |
Give a buffer to kept as the internal packet buffer. | |
virtual void | merge (const OggPacket *inMorePacket) |
Merges this packet to another one you pass it. | |
string | toPackDumpString () |
Turns the packet into a hex dump string. | |
Public Attributes | |
unsigned short | mStampType |
Static Public Attributes | |
const unsigned long | HEX_DUMP_LINE_LENGTH = 16 |
Protected Member Functions | |
string | dumpNCharsToString (unsigned char *inStartPoint, unsigned long inNumChars) |
string | padField (string inString, unsigned long inPadWidth, unsigned char inPadChar) |
Protected Attributes | |
LOOG_INT64 | mStartTime |
LOOG_INT64 | mEndTime |
unsigned long | mPacketSize |
unsigned char * | mPacketData |
bool | mIsTruncated |
bool | mIsContinuation |
Private Member Functions | |
StampedOggPacket & | operator= (const StampedOggPacket &other) |
StampedOggPacket (const StampedOggPacket &other) |
|
Definition at line 41 of file StampedOggPacket.h. |
|
Definition at line 35 of file StampedOggPacket.cpp. Referenced by clone(). |
|
Definition at line 48 of file StampedOggPacket.cpp. |
|
Definition at line 44 of file StampedOggPacket.cpp. |
|
|
|
Does a deep copy of the packet a returns you a new one you can keep.
Reimplemented from OggPacket. Definition at line 95 of file StampedOggPacket.cpp. References mEndTime, mStampType, mStartTime, and StampedOggPacket(). Referenced by OggPacketiser::acceptOggPage(), FLACStream::deliverCodecHeaders(), VorbisStream::InitCodec(), TheoraStream::InitCodec(), SpeexStream::InitCodec(), OggFLAC_1_0_Stream::InitCodec(), FLACStream::InitCodec(), FFDShowVideoStream::InitCodec(), CMMLStream::InitCodec(), OggPacketiser::processPage(), and OggMuxInputPin::Receive(). |
Here is the call graph for this function:
|
Definition at line 138 of file OggPacket.cpp. References OggPacket::HEX_DUMP_LINE_LENGTH, and OggPacket::padField(). Referenced by OggPacket::toPackDumpString(). |
Here is the call graph for this function:
|
Returns the end time of the packet (Check stamp type).
Definition at line 109 of file StampedOggPacket.cpp. References LOOG_INT64. Referenced by OOOggPacketDumper::acceptStampedOggPacket(), OggPaginator::addPartOfPacketToPage(), OggDemuxSourcePin::deliverOggPacket(), CMMLSourcePin::deliverOggPacket(), TheoraDecoder::simulateOldOggPacket(), and TheoraEncodeInputPin::TransformData(). |
|
Returns whether this packet is continued from another one.
Definition at line 185 of file OggPacket.cpp. Referenced by OggPacketiser::acceptOggPage(), OOOggPacketDumper::acceptStampedOggPacket(), and pageCB(). |
|
Returns whether this packet is truncated.
Definition at line 182 of file OggPacket.cpp. Referenced by OggValidationState::acceptOggPage(), OggPacketiser::acceptOggPage(), OOOggPacketDumper::acceptStampedOggPacket(), and pageCB(). |
|
Merges this packet to another one you pass it.
Definition at line 210 of file OggPacket.cpp. References OggPacket::mIsContinuation, OggPacket::mIsTruncated, OggPacket::mPacketData, and OggPacket::mPacketSize. |
|
Merges two packets together.
Definition at line 59 of file StampedOggPacket.cpp. References mEndTime, OggPacket::mIsTruncated, OggPacket::mPacketData, OggPacket::mPacketSize, and mStampType. Referenced by OggPacketiser::acceptOggPage(), OggFLAC_1_0_Stream::deliverCodecHeaders(), and FLACStream::deliverCodecHeaders(). |
|
|
|
|
|
Definition at line 130 of file OggPacket.cpp. Referenced by OggPacket::dumpNCharsToString(), and OggPacket::toPackDumpString(). |
|
Sets the end time of the packet (You need to set stamp type appropriately).
Definition at line 116 of file StampedOggPacket.cpp. References mEndTime. |
|
Set the continuation flag on this packet.
|
|
Set the truncated flag on this packet.
|
|
Give a buffer to kept as the internal packet buffer. This function accepts responsibility for the pointer it is passed, and it deletes it in the destructor. Note that you should reset the checksum on the Ogg page via OggPage::computeAndSetCRCChecksum(), otherwise you'll end up with an invalid page. (Arguably this should automatically be done for you, but that's the way it is for now.) Definition at line 205 of file OggPacket.cpp. References OggPacket::mPacketData. Referenced by FLACMetadataSplitter::convertToStampedPacket(), and TheoraDecoder::simulateOldOggPacket(). |
|
Set the size of this packet.
Definition at line 196 of file OggPacket.cpp. References OggPacket::mPacketSize. |
|
Sets the start time of the packet (You need to set stamp type appropriately).
Definition at line 113 of file StampedOggPacket.cpp. References mStartTime. |
|
Sets the time stamp in one hit.
Definition at line 120 of file StampedOggPacket.cpp. References mEndTime, mStampType, and mStartTime. Referenced by OggPacketiser::dispatchStampedOggPacket(). |
|
Returns the start time of the packet. (Check stamp type).
Definition at line 106 of file StampedOggPacket.cpp. References LOOG_INT64. Referenced by OOOggPacketDumper::acceptStampedOggPacket(), OggPaginator::addPartOfPacketToPage(), OggDemuxSourcePin::deliverOggPacket(), FFDShowVideoStream::dispatchPacket(), and pageCB(). |
|
Turns the packet into a hex dump string. NOTE::: ShOuld be reworked. Definition at line 78 of file OggPacket.cpp. References OggPacket::dumpNCharsToString(), OggPacket::HEX_DUMP_LINE_LENGTH, OggPacket::mPacketData, and OggPacket::padField(). Referenced by OOOggPacketDumper::acceptStampedOggPacket(), and pageCB(). |
Here is the call graph for this function:
|
Definition at line 46 of file OggPacket.h. Referenced by OggPacket::dumpNCharsToString(), and OggPacket::toPackDumpString(). |
|
Definition at line 79 of file StampedOggPacket.h. Referenced by clone(), merge(), setEndTime(), and setTimeStamp(). |
|
Definition at line 87 of file OggPacket.h. Referenced by OggPacket::clone(), and OggPacket::merge(). |
|
Definition at line 86 of file OggPacket.h. Referenced by OggPacket::clone(), merge(), and OggPacket::merge(). |
|
Definition at line 84 of file OggPacket.h. Referenced by OggPacket::clone(), merge(), OggPacket::merge(), OggPacket::setPacketData(), and OggPacket::toPackDumpString(). |
|
Definition at line 83 of file OggPacket.h. Referenced by OggPacket::clone(), merge(), OggPacket::merge(), and OggPacket::setPacketSize(). |
|
Definition at line 57 of file StampedOggPacket.h. Referenced by OggPaginator::addPartOfPacketToPage(), clone(), merge(), and setTimeStamp(). |
|
Definition at line 78 of file StampedOggPacket.h. Referenced by clone(), setStartTime(), and setTimeStamp(). |