sensor_format_video_compressed_t

A format used 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
The format of the compressed video.
bool keyframe
A flag indicating whether this frame is a keyframe.
uint64_t bitrate
Bitrate expressed in bits per second.

Library:

libsensor

Description:

Use this format when SENSOR_FORMAT_VIDEO_COMPRESSED is reported as the sensor_format_t.