AVCDecoderConfiguration语法格式分析

本文详细解析了AVCDecoderConfigurationRecord的语法结构及其组成部分,包括序列参数集(SPS)和图像参数集(PPS)的定义及作用。通过本篇文章,读者可以了解如何解析AVC解码配置信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

AVCDecoderConfiguration语法

aligned(8) class AVCDecoderConfigurationRecord {
    unsigned int(8) configurationVersion = 1;
    unsigned int(8) AVCProfileIndication;
    unsigned int(8) profile_compatibility;
    unsigned int(8) AVCLevelIndication;
    bit(6) reserved = ‘111111’b;
    unsigned int(2) lengthSizeMinusOne;
    bit(3) reserved = ‘111’b;

    unsigned int(5) numOfSequenceParameterSets;
    for (i=0; i< numOfSequenceParameterSets; i++) {
        unsigned int(16) sequenceParameterSetLength ;
        bit(8*sequenceParameterSetLength) sequenceParameterSetNALUnit;
    }

    unsigned int(8) numOfPictureParameterSets;
    for (i=0; i< numOfPictureParameterSets; i++) {
        unsigned int(16) pictureParameterSetLength;
        bit(8*pictureParameterSetLength) pictureParameterSetNALUnit;
    }
}

AVCDecoderConfiguration句意

sequenceParameterSetNALUnit:包含了SPS NAL Unit,第一个字节为0x67,然后即是seq_parameter_set_rbsp(),其语法如表1所示。

pictureParameterSetNALUnit:包含了PPS NAL Unit,第一个字节为0x68,然后即是pic_parameter_set_rbsp(),其语法如表2所示。

表1 序列参数集(SPS)RBSP语法




表2 图像参数集(PPS)RBSP语法




评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值