#include <icy/av/packet.h>Inherits:
MediaPacketSubclassed by:PlanarVideoPacket
Video packet for interleaved formats.
| 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. |
int widthFrame width in pixels.
int heightFrame height in pixels.
bool iframeTrue if this is an intra (keyframe) frame.
AVPacket * avpacket = nullptrNon-owning pointer to the encoded AVPacket from FFmpeg. Set by VideoEncoder, read by MultiplexEncoder.
| 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. |
inline
inline VideoPacket(uint8_t * data, size_t size, int width, int height, int64_t time)Construct a video packet with an interleaved buffer.
data Pointer to the raw frame buffer (may be null).
size Size of the buffer in bytes.
width Frame width in pixels.
height Frame height in pixels.
time Presentation timestamp in microseconds.
inline
inline VideoPacket(const VideoPacket & r)Copy constructor. The avpacket pointer is shallow-copied (non-owning).
virtual const inline
virtual inline std::unique_ptr< IPacket > clone() constA heap-allocated copy of this packet.
virtual const inline
virtual inline const char * className() constReturns the class name of this packet type for logging and diagnostics.