enum slice_type_e
{
SLICE_TYPE_P = 0,
SLICE_TYPE_B = 1,
SLICE_TYPE_I = 2,
SLICE_TYPE_SP = 3,
SLICE_TYPE_SI = 4
};// 定义范围,确定查表工作范围
static const char slice_type_to_char[] = { 'P', 'B', 'I', 'S', 'S' };// read table ,the fastest 例如这个在函数第一次调用时分配空间,用于查表
都写在用这个表的的函数的头文件里