多模视频解码芯片中帧内预测模块的设计与实现.pdf





《多模视频解码芯片中帧内预测模块的设计与实现.pdf》由会员分享,可在线阅读,更多相关《多模视频解码芯片中帧内预测模块的设计与实现.pdf(89页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、上海交通大学硕士学位论文多模视频解码芯片中帧内预测模块的设计与实现姓名:徐张磊申请学位级别:硕士专业:通信与信息系统指导教师:郑世宝20080101上海交通大学硕士学位论文I多模视频解码芯片中帧内预测模块的设计与实现摘 要H.264 是 ITU-T 与 ISO/IEC 共同制定的最新一代视频编码国际标准,具有非常高效的视频编解码效率,AVS 是中国自主知识产权的数字音视频编码标准,MPEG2 标准是现在已经广泛运用的而且相当成熟的视频编码标准。前两者是目前新一代媒体产业领域关注的热点问题,而 MPEG2 的市场之广也不容忽视。针对当前数字多媒体产业及其市场发展的特点,研究开发一种适用于多种视频
2、标准的解码芯片也已成为一个趋势;而上述的这些视频压缩标准均采用基于块的混合编码结构,在系统结构上有较多的相似之处,也使得开发一种适用于多种标准的解码器具有可行性。在 MPEG2、H.264 及 AVS 这几种视频标准中,只有 H.264 和 AVS 具有帧内预测模块。本文致力于提出一种适用于H.264 和 AVS 两种标准高清解码芯片的帧内预测模块的硬件架构设计。本文首先介绍了视频压缩原理,回顾了视频压缩标准的发展历史,对主流视频标准 MPEG-2、H.264 以及 AVS 进行了介绍;并对市场上已经存在的一些解码芯片尤其是多模解码芯片做了简单介绍,同时对芯片设计的一般流程给出说明,对本论文的
3、研究目的和侧重点进行了阐述,指明了本文研究的方向所在。上海交通大学硕士学位论文II然后,本文阐述了预测编码的基本原理,对帧内预测技术原理的发展历史进行了综述,并从算法层次研究了 H.264 和 AVS 帧内预测的方法,对两标准中算法的异同性进行了分析,这是进行后续模块设计的理论基础。本文在对支持多标准的视频解码 SOC 系统进行分析的基础上,重点对帧内预测模式进行了详细的设计,包括与总线以及 VLD 模块的控制字信号接口设计、预测模式判决模块设计以及最关键的预测计算单元设计。本文着重于分析算法的相容性,从而设计出可重用的运算单元,以提高对硬件资源的共享。与其他设计相比,本文所提出的一种运算结果
4、可以支持所有帧内预测算法,其中包括 H.264 FRExt 扩展部分所提出的 88 亮度宏块、1616 和 816 色度宏块预测算法。对本文所设计的帧内预测计算单元使用 VerilogHDL 进行 RTL 级的实现,并进行了功能仿真,通过和 C 语言模型所计算出来的预测值进行比较,验证了本设计的正确性。并且对设计结果进行了综合,得到了本设计在硬件上占的资源数和最高频率,以对此设计的处理速度和性能进行分析。实验结果表明,该硬件模块频率可以达到 150MHz,完全可以符合高清实时解码的要求,具有良好的应用前景。关键词:H.264,AVS,解码芯片,帧内预测,多标准,硬件架构上海交通大学硕士学位论文
5、IIIDESIGN AND IMPLEMENTATION OF INTRA PREDICTIONMODULE FOR MULTI-STANDARD DECODER CHIPABSTRACTH.264/AVC is a new video coding international standard proposed byJoint Video Team(JVT),which is organized by the ITU-T Video CodingExperts Group(VCEG)and the ISO/IEC Moving Picture Experts Group(MPEG),havi
6、ng high performance on video codec,AVS is Chinese digitalaudio/video coding standard with independent intellectual property,MPEG2has been widely used nowadays.Both H.264 and AVS are hot problems inrecent image communication research area,and the range MPEG2 hasinfluence on can not be negected.Due to
7、 increasingly multi-standard videocodec solution proposed in the multimedia market,it is necessary tocombine these standards in one decoder chip.These standards all adoptedthe block-based mix coding structure,having similarities among theirsystem architecture,which makes the development of decoder c
8、hipsupporting man standards feasible.Among MPEG2,H.264 and AVS,onlyH.264 and AVS posess the intra-prediction module.In this thesis,a VLSI上海交通大学硕士学位论文IVarchithecure of intra-prediction module supporting H.264 and AVS isproposed.First of all,this thesis introduces the principle of video compressing,lo
9、oks back on the history of development of video coding standards,introduces main-stream standards MPEG2,H.264 and AVS,and taks a lookon the existing video decoding chip,and the design flow of chip;also,thefirst part presents the aim and focus of this thesis.Then,this thesis expatiates the basic prin
10、ciple of prediction coding,summarizes the development of intra-prediction technology,and researchedon H.264 and AVS intra-prediction in terms of algorithm.The research onalgorithm is the theory base of module design in the next step.Based on the analysis of video decoding SOC system,this thesisdesig
11、ns the intra-prediction module in detail,including the interfacebetween module and bus,prediction mode decision module and the mostimportant prediction calculation unit.Design of every module is based onalgorithm,through the analysis of differences and similarities of twostandards.Reconfigurable cal
12、culation unit is dsigned in order to improve theshare of hardware resources.This thesis proposes a hardware architecturethat can support all intra-prediction algorithms including 88 Luma,1616and 816 Chroma macroblock.上海交通大学硕士学位论文VThis thesis implements the intra-predictoin modul using VerilogHDL,and
13、 finishs the function simulation.The correctness of the design is provedby the comparision between the hardware and C reference model.Thisthesis also synthesizes the module and get the resource it taken on FPGAand the frequency.The results shows that the frequency can reach 150MHz,meeting the requir
14、ement of high definition realtime decoding.KEY WORDS:H.264,AVS,Decoder Chip,Intra Prediction,Multi-standard,Hardware Architecture上海交通大学硕士学位论文VIII图例索引图例索引图 1-1 视频压缩标准进度图.2图 1-2 H.264 编码器框图.3图 2-1 基于频域的 DC 预测示意图.11图 2-2 44 帧内预测模式下需要的临近像素分布.13图 2-3 44 帧内预测模式下的 8 种预测方向.14图 2-4 44 亮度预测算法示意图.14图 2-5 1616
15、块预测模式.16图 2-6 当前块与邻块位置示意图.17图 2-7 AVS 亮度预测方向.19图 3-1 通用视频解码系统原理框图.22图 3-2 SOC 系统架构.24图 3-3 Video Decoder 各模块划分.25图 3-4 帧内预测模块解码状态转移图.27图 3-5 帧内预测模块框图.28图 3-6 输出像素位置.35图 3-7 帧内预测时序图.36图 3-8 H.264 下预测模式判断流程.37图 3-9 AVS 下预测模式判断流程.37图 3-10 帧内预测模式确定单元框图.37图 3-11 非 16x16 预测时亮度预测模式判断流程.39图 3-12 4x4 及 8x8 亮
16、度预测模式判断模块.40图 3-13 Plane 模式下各行所使用变量A示意图.46图 3-14 变量H、V计算所需参考像素点.47图 3-15 变量H及V计算结构.48图 3-16 Plane 预处理模块.48图 3-17 DC 预测可重用计算结构.49图 3-18 DC 预测值计算单元.50图 3-19 计算公式转换.51图 3-20 可重构运算单元 configurable_cal.51图 3-21 16x16 宏块中像素点计算顺序.52图 3-22 预测值计算单元.53图 3-23 44 预测时后续块需要的参考像素.53图 3-24 88 预测时后续块需要的参考像素.54图 3-25
17、上方参考像素寄存器组.55图 3-26 左方参考像素寄存器组.57上海交通大学硕士学位论文IX图 3-27 左上方参考像素寄存器组.59图 3-28 宏块参数与存储单元映射关系.60图 4-1 用 Testbench 进行验证12.62图 4-2 预测计算单元综合结果.63图 4-3 寄存器组综合结果.64图 4-4 参考设计预测硬件结构44.65上海交通大学硕士学位论文X表格索引表格索引表 2-1 44 帧内预测各模式描述.15表 2-2 16x16 块预测模式描述.16表 2-3 H.264 色度块预测模式描述.16表 2-4 AVS 亮度预测描述.19表 2-5 AVS 色度预测算法.2
18、0表 2-6 H.264 和 AVS 帧内预测算法比较.21表 3-1 H.264 码流时控制命令字格式.29表 3-2 AVS 码流时控制命令字格式.29表 3-3 H.264 码流 44 块预测时 Mode 命令字格式.30表 3-4 H.264 码流 88 块预测时 Mode 命令字格式.33表 3-5 H.264 码流 1616 块预测时 Mode 命令字格式.33表 3-6 AVS 码流时 Mode 命令字格式.34表 3-7 CPU 对语法元素 slice_type 及 mb_type 的处理.37表 3-8 H.264 中 1616 预测模式与控制命令字对应关系.38表 3-9
19、所有预测模式归纳.41表 3-10 预测模式分类.43表 3-11 4x4 预测不同时刻上方参考像素寄存器组中存放像素.55表 3-12 8x8 预测不同时刻上方参考像素寄存器组中存放像素.56表 3-13 4x4 预测不同时刻左方参考像素寄存器组中存放像素.58表 3-14 4x4 预测不同时刻左上方参考像素寄存器组中存放像素.59表 4-1 帧内预测计算单元综合时序结果.63表 4-2 寄存器组单元综合时序结果.64表 4-3 在不同平台上帧内预测模块所占用资源.65表 4-4 计算单元数目比较.66上海交通大学硕士学位论文73缩略语缩略语CCITTInternational Teleph
20、one and TelegraphConsultative Committee国际电话与电报顾问委员会ISOInternational Organization forStandardization国际标准化组织ITUInternational Telecommunication Union国际电信联盟JPEGJoint Photographic Experts Group联合图像专家组IECInternational Electrotechnical Commission国际电工委员会MPEGMoving Picture Experts Group运动图像专家组HDTVHigh Defini
21、tion Television高清晰度电视DVBDigital Video Broadcasting数字电视广播JVTJoint Video Team联合视频组AVSAudio Video coding System音视频编码系统DCTDiscrete Cosine Transform离散余弦变换IDCTInvert Discrete Cosine Transform反离散余弦变换CIFCommon Intermediate Format通用中间格式QCIFQuarter Common Intermediate Format四分之一通用中间格式SNRSignal-Noise Rate信噪比MB
22、AFFMacroblock-based Adaptive Frame Field宏块级帧场自适应CAVLCContext Adaptive Variable Length Coding内容自适应变长编码CABACContext Adaptive Binary Arithmetic Coding内容自适应二进制算术编码FMOFlexible Macroblock Order灵活的宏块次序ASOArbitary Slice Order任意条带排列DPCMDifferential Pulse Code Modulation差分脉冲编码SOCSystem On Chip片上系统ASICApplicat
23、ion Specific Integrated Circuit专用集成电路DSPDigital Signal Processor数字信号处理器RISCReduced Instructioni Set Computer精简指令集计算机HDLHardware Description Language硬件描述语言RTLRegister Transport Level寄存器传输级EDAElectronic Design Automation电子设计自动化FPGAField Pragrammable Gate Array现场可编程门阵列CMDCommand控制命令字上海交通大学硕士学位论文74MUXMu
24、ltiplexer多路选择器IFInterface接口VLDVariable Length Decoding变长解码IQInverse Quantization反量化ITInverse Transform反变换MCMotion Compensation运动补偿MVPMotion Vector Prediction运动向量预测MFMemory Fetch从存储器取出相应像素INTInterpolation插值RECReconstruction像素重建DFDisplay显示输出SESyntax Element语法元素REGRegister寄存器FIFOFirst In First Out先进先出数
25、据缓冲器LUTLook Up Table查找表LELogic Element逻辑单元III上海交通大学学位论文原创性声明上海交通大学学位论文原创性声明本人郑重声明:所呈交的学位论文,是本人在导师的指导下,独立进行研究工作所取得的成果。除文中已经注明引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写过的作品成果。对本文的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。本人完全意识到本声明的法律结果由本人承担。学位论文作者签名:徐 张 磊 日期:2008 年 1 月 29 日IV 上海交通大学学位论文版权使用授权书上海交通大学学位论文版权使用授权书本学位论文作者完全了解学校有关保留
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 视频 解码 芯片 中帧内 预测 模块 设计 实现

限制150内