PlanarVideoPacket
PlanarVideoPacket
#include <icy/av/packet.h>Inherits:
VideoPacketSubclassed by:VisionFramePacket
Video packet for planar formats.
Parameters
dataArray of per-plane data pointers (up to 4 planes).linesizeArray of per-plane byte strides.pixelFmtThe pixel format name (e.g. "yuv420p").widthThe frame width in pixels.heightThe frame height in pixels.timeThe timestamp in microseconds.
Public Attributes
| 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. |
buffer
uint8_t * buffer = {nullptr}linesize
int linesize = {0}pixelFmt
std::string pixelFmtowns_buffer
bool owns_buffer = falseavframe
AVFrame * avframe = nullptrNon-owning pointer to the decoded AVFrame from FFmpeg. Set by VideoDecoder.
Public Methods
| 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
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).
Parameters
dataArray of up to 4 per-plane data pointers.linesizeArray of per-plane byte strides.pixelFmtThe pixel format string (e.g. "yuv420p").widthFrame width in pixels.heightFrame height in pixels.timePresentation timestamp in microseconds.
PlanarVideoPacket
PlanarVideoPacket(const PlanarVideoPacket & 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.
