H.264 SPS/PPS员值义成含(转) (2011-01-06 09:03:39) 转载 标签: it 分类: 视频技术相关 一、sequence_parameter_set_rbsp_t 结构体内成员及用途 1. unsigned profile_idc: 它指的是码流对应的 profile. 1.1 基线 profile(Baseline profile) 遵循基线 profile 的码流应该遵循以下的约束: a) 只有 I 和 P 切片存在 b) NAL 单元流不应该有范围在 2 到 4 的 nal_unit_type 值,包括 2 和 4. c) 序列参数集(sps)的 frame_mbs_only_fag(之后介绍)应该等于 1 d) 图象参数值(psp)的 weighted_pred_flag 和 weighted_bipred_idc 都应该为0 e) 图象参数值(psp)的 entropy_coding_mode_flag 应该等于 0 f) 图象参数值(psp)的 num_slice_groups_minus1 应该在 0 到 7 之间,包括 0 和7 g) 对于基线 profile 对应的 level 度应该满足. 符合基线 profile 的码流的 profile_idc 被赋 66.符合一定 level 的基线Baseline 的解码器应该可以解码 所有的 profile_idc 等于 66 的码流或 constrained_set0_flag(等会介绍)为 1而且 level_idc(在 level 部 分介绍)少于或等于一个指定的 level 的码流。 1.2 主 profile(Main profile) 符合主 profile 的码流应该遵循以下的约束: a) 只有 I,P,B 切片存在. b) NAL 单元流不包括 nal_unit_type 值范围在 2-4 之内的值。包括 2 和 4. c) 不能允许有随意顺序的切片 d) 图像参数集(psp)的 num_slice_groups_minus1 应该只为 0 e) 图像参数集(psp)的 redundant_pic_cnt_present_flag 应该只为 0 f) 对于主 profile 所要求的 level 级需要达到。 符合主 profile 的码流的 profile_idc 应为 77。符合指定 level 的主 profile的解码器应该可以解码所有 的 profile_idc 为 77 的或 constrained_set1_flag 值为 1 且 level_idc 值小于或等于指定 level 的码流。 1.3 扩展 profile(Extended profile) 符合扩展 profile 的码流应该遵循以下的约束: a) 序列参数集的 direct_8x8_inference_flag 值应该为 1 b) 图像参数集的 entropy_coding_mode_flag 值应该为 0 c) 图像参数集的 num_slice_groups_minus1 的值范围为 0 到 7,包括 0 和 7 d) 对于扩展 profile 指定的 level 级应该被达到 符合指定level 级的扩展profile 的解码器可以解...