#include <icy/av/packet.h>Inherits:
VideoPacket
Video packet for planar formats.
data Array of per-plane data pointers (up to 4 planes).
linesize Array of per-plane byte strides.
pixelFmt The pixel format name (e.g. "yuv420p").
width The frame width in pixels.
height The frame height in pixels.
time The timestamp in microseconds.
| Return | Name | Description |
|---|---|---|
uint8_t * | buffer | |
int | linesize | |
std::string | pixelFmt | |
bool | owns_buffer | |
AVFrame * | avframe | Non-owning pointer to the decoded AVFrame from FFmpeg. Set by VideoDecoder. |
uint8_t * buffer = {nullptr}int linesize = {0}std::string pixelFmtbool owns_buffer = falseAVFrame * avframe = nullptrNon-owning pointer to the decoded AVFrame from FFmpeg. Set by VideoDecoder.
| Return | Name | Description |
|---|---|---|
PlanarVideoPacket | Construct a planar video packet, copying the plane pointers (not the pixel data). | |
PlanarVideoPacket | 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. |
PlanarVideoPacket(uint8_t * data, const int linesize, const std::string & pixelFmt, int width, int height, int64_t time)Construct a planar video packet, copying the plane pointers (not the pixel data).
data Array of up to 4 per-plane data pointers.
linesize Array of per-plane byte strides.
pixelFmt The pixel format string (e.g. "yuv420p").
width Frame width in pixels.
height Frame height in pixels.
time Presentation timestamp in microseconds.
PlanarVideoPacket(const PlanarVideoPacket & 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.