sensor_format_video_compressed_t

Updated: April 19, 2023

Format for compressed video frames

Synopsis:

#include <sensor/sensor_api.h>
typedef struct sensor_format_video_compressed_t {
    uint64_t bufsize;
    sensor_videocodec_t codec;
    bool keyframe;
    uint64_t bitrate;
} sensor_format_video_compressed_t;

Data:

uint64_t bufsize
The size of the buffer as a 64-bit integer.
sensor_videocodec_t codec
A sensor_videocodec_t value indicating the format of the compressed video.
bool keyframe
A flag indicating whether this frame is a keyframe.
uint64_t bitrate
The bitrate, in bits per second (b/s).

Library:

libsensor

Description:

Use this format when SENSOR_FORMAT_VIDEO_COMPRESSED is reported as the sensor_format_t.