VideoPacket
VideoPacket
#include <icy/av/packet.h>Inherits:
MediaPacketSubclassed by:PlanarVideoPacket
Video packet for interleaved formats.
Public Attributes
| Return | Name | Description |
|---|---|---|
int | width | Frame width in pixels. |
int | height | Frame height in pixels. |
bool | iframe | True if this is an intra (keyframe) frame. |
AVPacket * | avpacket | Non-owning pointer to the encoded AVPacket from FFmpeg. Set by VideoEncoder, read by MultiplexEncoder. |
width
int widthFrame width in pixels.
height
int heightFrame height in pixels.
iframe
bool iframeTrue if this is an intra (keyframe) frame.
avpacket
AVPacket * avpacket = nullptrNon-owning pointer to the encoded AVPacket from FFmpeg. Set by VideoEncoder, read by MultiplexEncoder.
Public Methods
| Return | Name | Description |
|---|---|---|
VideoPacket inline | Construct a video packet with an interleaved buffer. | |
VideoPacket inline | Copy constructor. The avpacket pointer is shallow-copied (non-owning). | |
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. |
VideoPacket
inline
inline VideoPacket(uint8_t * data, size_t size, int width, int height, int64_t time)Construct a video packet with an interleaved buffer.
Parameters
dataPointer to the raw frame buffer (may be null).sizeSize of the buffer in bytes.widthFrame width in pixels.heightFrame height in pixels.timePresentation timestamp in microseconds.
VideoPacket
inline
inline VideoPacket(const VideoPacket & r)Copy constructor. The avpacket pointer is shallow-copied (non-owning).
clone
virtual const inline
virtual inline std::unique_ptr< IPacket > clone() constReturns
A heap-allocated 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.
