libvdo
|
A video frame. More...
Go to the source code of this file.
Functions | |
VdoFrameType | vdo_frame_get_frame_type (VdoFrame *self) |
Returns the type of this frame. More... | |
guint | vdo_frame_get_sequence_nbr (VdoFrame *self) |
Returns the sequence number of this frame. More... | |
guint64 | vdo_frame_get_timestamp (VdoFrame *self) |
Returns the timestamp of this frame. More... | |
gint64 | vdo_frame_get_custom_timestamp (VdoFrame *self) |
Returns a custom timestamp for this frame. More... | |
gsize | vdo_frame_get_size (VdoFrame *self) |
Returns the size of this frame. More... | |
gssize | vdo_frame_get_header_size (VdoFrame *self) |
Returns the size of any H264/H265 headers contained in this frame. More... | |
gint | vdo_frame_get_fd (VdoFrame *self) |
Returns a file descriptor for this frame. More... | |
VdoMap * | vdo_frame_get_extra_info (VdoFrame *self) |
Returns the extra info of this frame. More... | |
gpointer | vdo_frame_get_opaque (VdoFrame *self) |
Returns a pointer to the opaque data of this frame. More... | |
gboolean | vdo_frame_get_is_last_buffer (VdoFrame *self) |
Tests whether this frame is last buffer. More... | |
void | vdo_frame_set_size (VdoFrame *self, gsize size) |
Sets the size of this frame. More... | |
void | vdo_frame_set_frame_type (VdoFrame *self, VdoFrameType type) |
Sets the type of this frame. More... | |
void | vdo_frame_set_sequence_nbr (VdoFrame *self, guint seqnum) |
Sets the sequence number of this frame. More... | |
void | vdo_frame_set_timestamp (VdoFrame *self, guint64 timestamp) |
Sets the timestamp of this frame. More... | |
void | vdo_frame_set_custom_timestamp (VdoFrame *self, gint64 timestamp) |
Returns a custom timestamp of this frame. More... | |
void | vdo_frame_set_is_last_buffer (VdoFrame *self, gboolean is_last_buffer) |
Marks this frame as last buffer. More... | |
void | vdo_frame_set_extra_info (VdoFrame *self, VdoMap *extra_info) |
Sets the extra info of this frame. More... | |
void | vdo_frame_set_header_size (VdoFrame *self, gssize size) |
Sets the header size of this frame, normally used for H26x frames. More... | |
gpointer | vdo_frame_memmap (VdoFrame *self) |
A convenience function that maps the frame into current process memory. More... | |
void | vdo_frame_unmap (VdoFrame *self) |
Unmaps the frame from current process memory. More... | |
VdoChunk | vdo_frame_take_chunk (VdoFrame *self, GError **error) |
Iterate buffer contents by chunks. More... | |
A video frame.
Copyright (C) 2016-2019, Axis Communications AB, Lund
gint64 vdo_frame_get_custom_timestamp | ( | VdoFrame * | self | ) |
Returns a custom timestamp for this frame.
self | A VdoFrame |
gint64
. gint vdo_frame_get_fd | ( | VdoFrame * | self | ) |
Returns a file descriptor for this frame.
vdo_buffer_get_fd
self | A VdoFrame |
VdoFrameType vdo_frame_get_frame_type | ( | VdoFrame * | self | ) |
Returns the type of this frame.
self | A VdoFrame |
gssize vdo_frame_get_header_size | ( | VdoFrame * | self | ) |
Returns the size of any H264/H265 headers contained in this frame.
This can be used as an offset into the frame data buffer to get the frame data without headers.
self | A VdoFrame |
gboolean vdo_frame_get_is_last_buffer | ( | VdoFrame * | self | ) |
Tests whether this frame is last buffer.
self | A VdoFrame |
TRUE
if this frame is the last buffer, otherwise FALSE
gpointer vdo_frame_get_opaque | ( | VdoFrame * | self | ) |
Returns a pointer to the opaque data of this frame.
vdo_buffer_get_opaque
self | A VdoFrame |
guint vdo_frame_get_sequence_nbr | ( | VdoFrame * | self | ) |
Returns the sequence number of this frame.
The returned sequence number is represented as an unsigned integer and starts at 0. The point where the sequence number counter wraps around is undefined.
self | A VdoFrame |
guint
. gsize vdo_frame_get_size | ( | VdoFrame * | self | ) |
guint64 vdo_frame_get_timestamp | ( | VdoFrame * | self | ) |
Returns the timestamp of this frame.
self | A VdoFrame |
guint64
. gpointer vdo_frame_memmap | ( | VdoFrame * | self | ) |
A convenience function that maps the frame into current process memory.
This function will map the full buffer size as opposed to the current frame size. This is due to the requirement of mapping complete buffer size when the frame buffers are backed by AXIS' vcrfs which is the case for monolith cache.
self | A VdoFrame |
void vdo_frame_set_custom_timestamp | ( | VdoFrame * | self, |
gint64 | timestamp | ||
) |
Returns a custom timestamp of this frame.
self | A VdoFrame |
timestamp | The new custom timestamp for this frame |
Sets the extra info of this frame.
self | A VdoFrame |
extra_info | The new extra info for this frame |
void vdo_frame_set_frame_type | ( | VdoFrame * | self, |
VdoFrameType | type | ||
) |
Sets the type of this frame.
self | A VdoFrame |
type | The new type for this frame |
void vdo_frame_set_header_size | ( | VdoFrame * | self, |
gssize | size | ||
) |
Sets the header size of this frame, normally used for H26x frames.
The headers size can be used as an offset into the frame data buffer to get the frame data without headers. A size set to -1 indicates that the header size is unknown.
self | A VdoFrame |
size | The combined size of the H264/H265 headers. |
void vdo_frame_set_is_last_buffer | ( | VdoFrame * | self, |
gboolean | is_last_buffer | ||
) |
Marks this frame as last buffer.
self | A VdoFrame |
is_last_buffer | If TRUE , marks the frame as last buffer |
void vdo_frame_set_sequence_nbr | ( | VdoFrame * | self, |
guint | seqnum | ||
) |
Sets the sequence number of this frame.
self | A VdoFrame |
seqnum | The new sequence number for this frame |
void vdo_frame_set_size | ( | VdoFrame * | self, |
gsize | size | ||
) |
Sets the size of this frame.
self | A VdoFrame |
size | The new size in bytes for this frame |
void vdo_frame_set_timestamp | ( | VdoFrame * | self, |
guint64 | timestamp | ||
) |
Sets the timestamp of this frame.
self | A VdoFrame |
timestamp | The new timestamp for this frame |
Iterate buffer contents by chunks.
self | A VdoFrame |
error | A location to return an error. |
NULL