camera_videocodec_t

Updated: May 06, 2022

The video compression formats used by the video encoder

Synopsis:

#include <camera/camera_api.h>
typedef enum {
    CAMERA_VIDEOCODEC_NONE = 0,
    CAMERA_VIDEOCODEC_AVC1,
    CAMERA_VIDEOCODEC_H264
} camera_videocodec_t;

Data:

CAMERA_VIDEOCODEC_NONE
No compression.
CAMERA_VIDEOCODEC_AVC1
AVC1 compression (NALU).

This consists of an H.264 elementary stream preceded with a 32-bit length. This is the value you need to use if using CAMERA_ROLL_VIDEO_FMT_MP4 for recording H264 content to a file.

CAMERA_VIDEOCODEC_H264
H264 compression (Annex B).

This consists of an H.264 elementary stream preceded with a 32-bit 0x1 start code. This is typically the preferred format when streaming H.264 video over a network.

Library:

libcamapi