AV module

VideoPacket

Video packet for interleaved formats.

VideoPacket

#include <icy/av/packet.h>

Inherits: MediaPacket Subclassed by: PlanarVideoPacket

Video packet for interleaved formats.

Public Attributes

ReturnNameDescription
intwidthFrame width in pixels.
intheightFrame height in pixels.
booliframeTrue if this is an intra (keyframe) frame.
AVPacket *avpacketNon-owning pointer to the encoded AVPacket from FFmpeg. Set by VideoEncoder, read by MultiplexEncoder.

width

int width

Frame width in pixels.


height

int height

Frame height in pixels.


iframe

bool iframe

True if this is an intra (keyframe) frame.


avpacket

AVPacket * avpacket = nullptr

Non-owning pointer to the encoded AVPacket from FFmpeg. Set by VideoEncoder, read by MultiplexEncoder.

Public Methods

ReturnNameDescription
VideoPacket inlineConstruct a video packet with an interleaved buffer.
VideoPacket inlineCopy constructor. The avpacket pointer is shallow-copied (non-owning).
std::unique_ptr< IPacket >clone virtual const inline#### Returns
const char *className virtual const inlineReturns 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

  • 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.


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() const

Returns

A heap-allocated copy of this packet.


className

virtual const inline

virtual inline const char * className() const

Returns the class name of this packet type for logging and diagnostics.