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