camera_h264avc_slicetype_t

Updated: October 26, 2022

The supported slice types for H.264/AVC

Synopsis:

#include <camera/camera_h264avc.h>
typedef enum {
    CAMERA_H264AVC_SLICE_FRAME = 0,
    CAMERA_H264AVC_SLICE_BYTES,
    CAMERA_H264AVC_SLICE_MACROBLOCKS
} camera_h264avc_slicetype_t;

Data:

CAMERA_H264AVC_SLICE_FRAME
The frame is encoded as a single slice NAL (network abstraction layer) unit.
CAMERA_H264AVC_SLICE_BYTES
The frame is encoded as multiple slice NAL units.

The size of each slice's NAL unit can't exceed the configured CAMERA_H264AVC_SLICESIZE value in bytes.

CAMERA_H264AVC_SLICE_MACROBLOCKS
The frame is encoded as multiple slice NAL units.

The size of each slice's NAL unit can't exceed the configured number of CAMERA_H264AVC_SLICESIZE macroblocks.

Library:

libcamapi

Description:

These are acceptable values to use when you configure the CAMERA_H264AVC_SLICETYPE parameter in parameter-value pairs that you pass into encoding functions. Use camera_get_supported_videoencoder_parameter_values() to determine the supported values at runtime.