PlanarAudioPacket
PlanarAudioPacket
#include <icy/av/packet.h>Inherits:
AudioPacket
Audio packet for planar formats.
Parameters
dataArray of per-plane sample buffers (one per channel).channelsThe number of audio channels.numSamplesThe number of samples per channel.sampleFmtThe sample format name (e.g. "fltp").timeThe timestamp in microseconds.
Public Attributes
| Return | Name | Description |
|---|---|---|
uint8_t * | buffer | |
int | linesize | |
int | channels | |
std::string | sampleFmt | |
bool | owns_buffer |
buffer
uint8_t * buffer = {nullptr}linesize
int linesize = 0channels
int channels = 0sampleFmt
std::string sampleFmtowns_buffer
bool owns_buffer = falsePublic Methods
| 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
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).
Parameters
dataArray of up to 4 per-channel sample buffers.channelsNumber of audio channels.numSamplesNumber of samples per channel.sampleFmtThe sample format string (e.g. "fltp").timePresentation timestamp in microseconds.
PlanarAudioPacket
PlanarAudioPacket(const PlanarAudioPacket & r)Copy constructor. Performs a deep copy of the owned buffer if owns_buffer is set.
clone
virtual const inline
virtual inline std::unique_ptr< IPacket > clone() constReturns
A heap-allocated deep 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.
