#include <OggPacket.h>
Inheritance diagram for OggPacket:

Public Member Functions | |
| virtual OggPacket * | clone () |
| Does a deep copy of this packet and returns a new one for you to keep. | |
| bool | isContinuation () const |
| Returns whether this packet is continued from another one. | |
| bool | isTruncated () const |
| Returns whether this packet is truncated. | |
| virtual void | merge (const OggPacket *inMorePacket) |
| Merges this packet to another one you pass it. | |
| OggPacket (unsigned char *inPackData, unsigned long inPacketSize, bool inIsTruncated, bool inIsContinuation) | |
| OggPacket (void) | |
| unsigned char * | packetData () |
| Returns a pointer to the internal packet buffer. | |
| unsigned long | packetSize () const |
| Returns the size of the contained packet. | |
| void | setIsContinuation (bool inIsContinuation) |
| Set the continuation flag on this packet. | |
| void | setIsTruncated (bool inIsTruncated) |
| Set the truncated flag on this packet. | |
| void | setPacketData (unsigned char *inPacketData) |
| Give a buffer to kept as the internal packet buffer. | |
| void | setPacketSize (unsigned long inPacketSize) |
| Set the size of this packet. | |
| string | toPackDumpString () |
| Turns the packet into a hex dump string. | |
| virtual | ~OggPacket (void) |
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 | |
| bool | mIsContinuation |
| bool | mIsTruncated |
| unsigned char * | mPacketData |
| unsigned long | mPacketSize |
Private Member Functions | |
| OggPacket (const OggPacket &other) | |
| OggPacket & | operator= (const OggPacket &other) |
|
|
Definition at line 36 of file OggPacket.cpp. References false. Referenced by clone(). |
|
||||||||||||||||||||
|
Definition at line 47 of file OggPacket.cpp. |
|
|
Definition at line 70 of file OggPacket.cpp. |
|
|
|
|
|
Does a deep copy of this packet and returns a new one for you to keep.
Reimplemented in StampedOggPacket. Definition at line 57 of file OggPacket.cpp. References mIsContinuation, mIsTruncated, mPacketData, mPacketSize, and OggPacket(). Referenced by OggStreamMapper::addNewPin(), OggDemuxPacketSourcePin::CompleteConnect(), FLACHeaderTweaker::getHeader(), AnxStreamMapper::handleAnxVersion_2_0(), FLACDecodeInputPin::showHeaderPacket(), and CMMLDecodeInputPin::showHeaderPacket(). |
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 138 of file OggPacket.cpp. References HEX_DUMP_LINE_LENGTH, and padField(). Referenced by toPackDumpString(). |
Here is the call graph for this function:

|
|
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(), AutoOggChainGranuleSeekTable::acceptOggPage(), OggPacketiser::acceptOggPage(), OOOggPacketDumper::acceptStampedOggPacket(), fixifyPage(), and pageCB(). |
|
|
Merges this packet to another one you pass it.
Definition at line 210 of file OggPacket.cpp. References mIsContinuation, mIsTruncated, mPacketData, and mPacketSize. Referenced by FLACDecodeInputPin::showHeaderPacket(). |
|
|
|
|
|
|
||||||||||||||||
|
Definition at line 130 of file OggPacket.cpp. Referenced by dumpNCharsToString(), and toPackDumpString(). |
|
|
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 mPacketData. Referenced by FLACMetadataSplitter::convertToStampedPacket(), and TheoraDecoder::simulateOldOggPacket(). |
|
|
Set the size of this packet.
Definition at line 196 of file OggPacket.cpp. References mPacketSize. |
|
|
Turns the packet into a hex dump string. NOTE::: ShOuld be reworked. Definition at line 78 of file OggPacket.cpp. References dumpNCharsToString(), HEX_DUMP_LINE_LENGTH, mPacketData, and 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 dumpNCharsToString(), and toPackDumpString(). |
|
|
Definition at line 87 of file OggPacket.h. |
|
|
Definition at line 86 of file OggPacket.h. Referenced by clone(), StampedOggPacket::merge(), and merge(). |
|
|
Definition at line 84 of file OggPacket.h. Referenced by clone(), StampedOggPacket::merge(), merge(), setPacketData(), and toPackDumpString(). |
|
|
Definition at line 83 of file OggPacket.h. Referenced by clone(), StampedOggPacket::merge(), merge(), and setPacketSize(). |
1.3.9