Skip to main content
Version: 🚧 Nightly

Class f3d::video_packet

Definition: video\_packet.h (line 17)

Class used to represent a video packet.

A class to represent a video packet, which is an encoded video frame. The video packet can be used to write to a file or stream over a network. The video packet is produced by the video_encoder class.

Members​

Public functions​

Function ~video_packet​

virtual f3d::video_packet::~video_packet()=default

Return type:

Function getPacketSize​

virtual size_t f3d::video_packet::getPacketSize() const =0

Get the size of the video packet in bytes.

Return type: size_t

Function getPacketData​

virtual std::byte * f3d::video_packet::getPacketData() const =0

Get the data of the video packet.

Return type: std::byte *

Function getTimestamp​

virtual int64_t f3d::video_packet::getTimestamp() const =0

Get the timestamp of the video packet.

Return type: int64_t

Function isKeyFrame​

virtual bool f3d::video_packet::isKeyFrame() const =0

Returns true if the packet is a key frame, false otherwise.

Return type: bool