#include <icy/av/packet.h>Inherits:
AudioPacket
Audio packet for planar formats.
data Array of per-plane sample buffers (one per channel).
channels The number of audio channels.
numSamples The number of samples per channel.
sampleFmt The sample format name (e.g. "fltp").
time The timestamp in microseconds.
| Return | Name | Description |
|---|---|---|
uint8_t * | buffer | |
int | linesize | |
int | channels | |
std::string | sampleFmt | |
bool | owns_buffer |
uint8_t * buffer = {nullptr}int linesize = 0int channels = 0std::string sampleFmtbool owns_buffer = false| Return | Name | Description |
|---|---|---|
PlanarAudioPacket | Construct a planar audio packet, copying the plane pointers (not the sample data). | |
PlanarAudioPacket | Copy constructor. Performs a deep copy of the owned buffer if owns_buffer is set. | |
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. |
PlanarAudioPacket(uint8_t * data, int channels, size_t numSamples, const std::string & sampleFmt, int64_t time)Construct a planar audio packet, copying the plane pointers (not the sample data).
data Array of up to 4 per-channel sample buffers.
channels Number of audio channels.
numSamples Number of samples per channel.
sampleFmt The sample format string (e.g. "fltp").
time Presentation timestamp in microseconds.
PlanarAudioPacket(const PlanarAudioPacket & r)Copy constructor. Performs a deep copy of the owned buffer if owns_buffer is set.
virtual const inline
virtual inline std::unique_ptr< IPacket > clone() constA heap-allocated deep copy of this packet.
virtual const inline
virtual inline const char * className() constReturns the class name of this packet type for logging and diagnostics.