AV module
MediaPacket
Timestamped media packet carrying raw audio or video data.
MediaPacket
#include <icy/av/packet.h>Inherits:
RawPacketSubclassed by:AudioPacket,VideoPacket
Timestamped media packet carrying raw audio or video data.
Public Attributes
| Return | Name | Description |
|---|---|---|
int64_t | time | Presentation timestamp in microseconds. |
time
int64_t timePresentation timestamp in microseconds.
Public Methods
| Return | Name | Description |
|---|---|---|
MediaPacket inline | Construct with a non-owning or owning mutable buffer. | |
MediaPacket inline | Construct with const data (copied, owning). | |
MediaPacket inline | Copy constructor. | |
std::unique_ptr< IPacket > | clone virtual const inline | #### Returns |
const char * | className virtual const inline | Returns the class name of this packet type for logging and diagnostics. |
MediaPacket
inline
inline MediaPacket(uint8_t * data, size_t size, int64_t time)Construct with a non-owning or owning mutable buffer.
Parameters
dataPointer to the raw data buffer (may be null).sizeSize of the buffer in bytes.timePresentation timestamp in microseconds.
MediaPacket
inline
inline MediaPacket(const uint8_t * data, size_t size, int64_t time)Construct with const data (copied, owning).
Parameters
dataPointer to the const raw data buffer (data is copied).sizeSize of the buffer in bytes.timePresentation timestamp in microseconds.
MediaPacket
inline
inline MediaPacket(const MediaPacket & r)Copy constructor.
clone
virtual const inline
virtual inline std::unique_ptr< IPacket > clone() constReturns
A heap-allocated copy of this packet.
className
virtual const inline
virtual inline const char * className() constReturns the class name of this packet type for logging and diagnostics.
