"slice mode" option seems to be unnecessary since it could be
determined by -slices/max_nal_size.
default: SM_FIXEDSLCNUM_SLICE mode with cpu-number slices.
-slices N: SM_FIXEDSLCNUM_SLICE mode with N slices.
-max_nal_size: SM_SIZELIMITED_SLICE mode with limited size slices.
Add FF_API_OPENH264_SLICE_MODE macro to remove this option after
LIBAVCODEC_VERSION_MAJOR = 59.
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
{"slice_mode","set slice mode, use slices/max_nal_size",OFFSET(slice_mode),AV_OPT_TYPE_INT,{.i64=SM_FIXEDSLCNUM_SLICE},SM_SINGLE_SLICE,SM_RESERVED,VE|DEPRECATED,"slice_mode"},
{"slice_mode","set slice mode, use slices/max_nal_size",OFFSET(slice_mode),AV_OPT_TYPE_INT,{.i64=SM_AUTO_SLICE},SM_SINGLE_SLICE,SM_RESERVED,VE|DEPRECATED,"slice_mode"},
#endif
{"fixed","a fixed number of slices",0,AV_OPT_TYPE_CONST,{.i64=SM_FIXEDSLCNUM_SLICE},0,0,VE,"slice_mode"},