Updated: April 19, 2023 |
The supported slice types for H.264/AVC
#include <camera/camera_h264avc.h>
typedef enum { CAMERA_H264AVC_SLICE_FRAME = 0, CAMERA_H264AVC_SLICE_BYTES, CAMERA_H264AVC_SLICE_MACROBLOCKS } camera_h264avc_slicetype_t;
The size of each slice's NAL unit can't exceed the configured CAMERA_H264AVC_SLICESIZE value in bytes.
The size of each slice's NAL unit can't exceed the configured number of CAMERA_H264AVC_SLICESIZE macroblocks.
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.