CN100574460C - AVS inter-frame predicated reference sample extraction method - Google Patents
AVS inter-frame predicated reference sample extraction method Download PDFInfo
- Publication number
- CN100574460C CN100574460C CN 200810033360 CN200810033360A CN100574460C CN 100574460 C CN100574460 C CN 100574460C CN 200810033360 CN200810033360 CN 200810033360 CN 200810033360 A CN200810033360 A CN 200810033360A CN 100574460 C CN100574460 C CN 100574460C
- Authority
- CN
- China
- Prior art keywords
- sub
- row
- memory
- value
- reference sample
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 239000013074 reference sample Substances 0.000 title claims abstract description 30
- 238000000605 extraction Methods 0.000 title claims abstract description 12
- 238000000034 method Methods 0.000 claims abstract description 13
- 239000000284 extract Substances 0.000 claims description 48
- 241000023320 Luma <angiosperm> Species 0.000 description 9
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 9
- 238000010586 diagram Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
技术领域 technical field
本发明涉及一种数字视频编码技术,尤其涉及一种AVS帧内预测参考样本提取方法。The invention relates to a digital video encoding technology, in particular to an AVS intra-frame prediction reference sample extraction method.
背景技术 Background technique
AVS(Audio Video coding Standard)是由我国自主制定的数字音视频编解码技术标准,帧内预测是提高编码效率的技术手段之一,是利用当前块的相邻像素直接对每个系数做预测,更有效地去除相邻块之间的相关性,从而极大地提高帧内编码的效率。AVS视频标准9.4.2定义了帧内预测模式,9.8定义了帧内预测公式和参考像素的定义,AVS帧内预测包括亮度帧内预测和色度帧内预测,共需要33个参考样本,16个上参考样本,16个左参考样本,1个零点参考样本。帧内预测数据量和计算量非常大,且是整个系统运行的瓶颈之一,要提高编码性能,并达到实时高清编码的要求,是帧内编码技术要解决的关键问题。AVS (Audio Video coding Standard) is a digital audio and video codec technology standard independently developed by my country. Intra-frame prediction is one of the technical means to improve coding efficiency. It uses the adjacent pixels of the current block to directly predict each coefficient. The correlation between adjacent blocks is removed more effectively, thereby greatly improving the efficiency of intra-frame coding. AVS video standard 9.4.2 defines the intra prediction mode, 9.8 defines the intra prediction formula and the definition of reference pixels, AVS intra prediction includes luma intra prediction and chrominance intra prediction, a total of 33 reference samples are required, 16 1 upper reference sample, 16 left reference samples, 1 zero reference sample. The intra-frame prediction data volume and calculation amount are very large, and it is one of the bottlenecks in the operation of the entire system. To improve the coding performance and meet the requirements of real-time high-definition coding is a key problem to be solved by the intra-frame coding technology.
经对现有文献的检索,发现在2006年《计算机工程与应用》期刊上,由王争、刘佩林发表的“AVS帧内预测算法及其解码器的硬件实现”文章中,提出了一种可重构计算单元的设计,但是该文并没有给出参考样本的提取方法。After searching the existing literature, it was found that in the article "AVS Intra-frame Prediction Algorithm and Its Hardware Implementation of Decoder" published by Wang Zheng and Liu Peilin in the journal "Computer Engineering and Application" in 2006, a possible Reconstruct the design of the computing unit, but the article does not give a reference sample extraction method.
发明内容 Contents of the invention
本发明所解决的技术问题是提供一种AVS帧内预测参考样本提取方法,所述方法在样本提取时合理的安排了存储空间,在一定程度上减少了逻辑资源的消耗,能达到实时高清的编码要求,而且便于硬件的实现。The technical problem solved by the present invention is to provide a method for extracting AVS intra-frame prediction reference samples. The method reasonably arranges the storage space during sample extraction, reduces the consumption of logic resources to a certain extent, and can achieve real-time high-definition Coding requirements, and facilitate the realization of hardware.
为了解决上述技术问题,本发明采用了如下技术手段:一种AVS帧内预测参考样本提取方法,所述方法对图像帧中M行N列个宏块进行预测,每个宏块包含0~3的四个亮度子块和4、5两个色度子块,所述的存储空间由行参考存储器、行备份寄存器、零点备份寄存器、零点备份存储器和列备份寄存器组成,其中:In order to solve the above technical problems, the present invention adopts the following technical means: an AVS intra-frame prediction reference sample extraction method, the method predicts macroblocks in M rows and N columns in an image frame, and each macroblock contains 0 to 3 Four luminance sub-blocks and two chrominance sub-blocks of 4 and 5, the storage space is composed of a row reference memory, a row backup register, a zero point backup register, a zero point backup memory and a column backup register, wherein:
行参考存储器,包含存储器A,用于保存亮度子块2和3的底行像素;以及存储器B,用于保存色度子块4和5的底行像素;The row reference memory includes memory A for storing the bottom row of pixels of luma sub-blocks 2 and 3; and memory B for storing the bottom row of pixels of chrominance sub-blocks 4 and 5;
行备份寄存器,记为寄存器F,用于保存亮度子块0和1的底行像素,所述像素用于为该宏块亮度子块2和3提供参考像素;The line backup register, denoted as register F, is used to save the bottom row pixels of the luminance sub-blocks 0 and 1, and the pixels are used to provide reference pixels for the macroblock luminance sub-blocks 2 and 3;
零点备份寄存器,记为寄存器E,用于保存亮度子块0和1的零点参考像素;The zero point backup register, denoted as register E, is used to save the zero point reference pixels of brightness sub-blocks 0 and 1;
零点备份存储器,包含存储器C,用于保存亮度子块2和3的零点参考像素;以及存储器D,用于保存色度子块4和5的零点参考像素;The zero-point backup memory includes a memory C for storing the zero-point reference pixels of the luma sub-blocks 2 and 3; and a memory D for storing the zero-point reference pixels of the chrominance sub-blocks 4 and 5;
列备份寄存器,包含寄存器G,用于保存亮度子块0和1的最右列像素;寄存器H,用于保存亮度子块2和3的最右列像素;以及寄存器I,用于保存色度子块4和5的最右列像素;Column backup registers, including register G, which holds the rightmost column pixels of luma subblocks 0 and 1; register H, which holds the rightmost column pixels of luma subblocks 2 and 3; and register I, which holds the chrominance The rightmost column pixels of sub-blocks 4 and 5;
所述方法包含以下步骤:Said method comprises the following steps:
步骤1、提取第一行宏块的所有子块0、1、4和5的行参考样本,其值都为0;提取第一列宏块的所有子块0、2、4和5的列参考样本,其值也都为0;本步骤不进行存储;Step 1, extract the row reference samples of all sub-blocks 0, 1, 4 and 5 of the first row of macroblocks, whose values are all 0; extract the columns of all sub-blocks 0, 2, 4 and 5 of the first row of macroblocks Reference sample, its value is also 0; this step does not store;
步骤2、提取第一行宏块的所有亮度子块0和1的零点参考样本,作为寄存器G的值,提取第一行宏块的所有色度子块4和5的零点参考样本,作为寄存器I的值;提取第一列宏块的所有亮度子块0的零点参考样本,作为存储器A的值,提取第一列宏块的所有亮度子块2的参考样本,作为寄存器F的值,提取第一列宏块的所有色度子块4和5的参考样本,作为存储器B的值;Step 2, extract the zero-point reference samples of all luminance sub-blocks 0 and 1 of the first row of macroblocks, as the value of register G, extract the zero-point reference samples of all chrominance sub-blocks 4 and 5 of the first row of macroblocks, as registers The value of I; extract the zero point reference samples of all brightness sub-blocks 0 of the first row of macroblocks, as the value of memory A, extract the reference samples of all brightness sub-blocks 2 of the first row of macroblocks, as the value of register F, extract Reference samples of all chrominance sub-blocks 4 and 5 of the first column of macroblocks, as the value of memory B;
步骤3、提取一帧图像中所有宏块的子块0和1的行参考样本,作为存储器A的值,提取所有子块2和3的参考样本,作为寄存器F的值,提取所有子块4和5的行参考样本,作为存储器B的值;Step 3, extract the row reference samples of sub-blocks 0 and 1 of all macroblocks in a frame of image, as the value of memory A, extract the reference samples of all sub-blocks 2 and 3, and extract all sub-blocks 4 as the value of register F and 5 row reference samples as the value of memory B;
步骤4、提取一帧图像中所有宏块的子块0和1的列参考样本,作为寄存器G的值,提取所有子块2和3的列参考样本,作为寄存器H的值,提取所有子块4和5的参考样本,作为寄存器I的值;Step 4, extract the column reference samples of sub-blocks 0 and 1 of all macroblocks in a frame image, as the value of register G, extract the column reference samples of all sub-blocks 2 and 3, and extract all sub-blocks as the value of register H Reference samples of 4 and 5, as the value of register I;
步骤5、提取一帧图像中所有宏块的子块0和1的零点参考样本,作为存储器C的值,提取所有子块2和3的零点参考样本,作为寄存器E的值,提取所有子块4和5的零点参考样本,作为存储器D的值。Step 5, extract the zero-point reference samples of sub-blocks 0 and 1 of all macroblocks in a frame image, and extract all sub-blocks 2 and 3 zero-point reference samples as the value of memory C, and extract all sub-blocks as the value of register E Zero-point reference samples of 4 and 5, as the value of memory D.
由于本发明采用了以上的帧内预测参考样本提取方法,使提取的参考像素分别存储在寄存器和存储器中,节省了存储器逻辑资源;每个子块的参考样本提取只需要2~3个时钟周期,提高了效率,能满足实时高清编码的要求。Since the present invention adopts the above intra-frame prediction reference sample extraction method, the extracted reference pixels are stored in the register and the memory respectively, which saves memory logic resources; the reference sample extraction of each sub-block only needs 2 to 3 clock cycles, The efficiency is improved, and the requirement of real-time high-definition coding can be met.
附图说明 Description of drawings
本发明的适于AVS的帧内预测参考样本提取方法由以下的实施例及附图详细给出。The method for extracting reference samples for intra-frame prediction suitable for AVS of the present invention is given in detail by the following embodiments and accompanying drawings.
图1为本发明所述宏块及其子块的排列示意图;Fig. 1 is a schematic diagram of arrangement of macroblocks and sub-blocks thereof according to the present invention;
具体实施方式 Detailed ways
以下将对本发明的帧内预测参考样本提取方法作进一步的详细描述。The method for extracting reference samples for intra-frame prediction of the present invention will be further described in detail below.
图1为M行N列个宏块及其子块的排列示意图,在本发明的实施例中,假设在图1所示图像帧中的M=N=2,这是四个位于相邻两行两列的宏块,每个宏块包含0~3的四个亮度子块和4、5两个色度子块,对预测其他子块有用的参考样本已经用数字格子1~8标出,在本实施例中,对不同子块的参考样本安排不同的存储空间,所述的存储空间由行参考存储器、行备份寄存器、零点备份寄存器、零点备份存储器和列备份寄存器组成,其中:Figure 1 is a schematic diagram of the arrangement of M rows and N columns of macroblocks and their sub-blocks. In an embodiment of the present invention, it is assumed that M=N=2 in the image frame shown in FIG. A macroblock with two rows and two columns, each macroblock contains four luminance subblocks of 0 to 3 and two chrominance subblocks of 4 and 5, and reference samples useful for predicting other subblocks have been marked with digital grids 1 to 8 , in this embodiment, different storage spaces are arranged for reference samples of different sub-blocks, and the storage space is composed of a row reference memory, a row backup register, a zero point backup register, a zero point backup memory and a column backup register, wherein:
行参考存储器,包含存储器A,用于保存亮度子块2和3的底行像素;以及存储器B,用于保存色度子块4和5的底行像素;The row reference memory includes memory A for storing the bottom row of pixels of luma sub-blocks 2 and 3; and memory B for storing the bottom row of pixels of chrominance sub-blocks 4 and 5;
行备份寄存器,记为寄存器F,用于保存亮度子块0和1的底行像素,所述像素用于为该宏块亮度子块2和3提供参考像素;The line backup register, denoted as register F, is used to save the bottom row pixels of the luminance sub-blocks 0 and 1, and the pixels are used to provide reference pixels for the macroblock luminance sub-blocks 2 and 3;
零点备份寄存器,记为寄存器E,用于保存亮度子块0和1的零点参考像素;The zero point backup register, denoted as register E, is used to save the zero point reference pixels of brightness sub-blocks 0 and 1;
零点备份存储器,包含存储器C,用于保存亮度子块2和3的零点参考像素;以及存储器D,用于保存色度子块4和5的零点参考像素;The zero-point backup memory includes a memory C for storing the zero-point reference pixels of the luma sub-blocks 2 and 3; and a memory D for storing the zero-point reference pixels of the chrominance sub-blocks 4 and 5;
列备份寄存器,包含寄存器G,用于保存亮度子块0和1的最右列像素;寄存器H,用于保存亮度子块2和3的最右列像素;以及寄存器I,用于保存色度子块4和5的最右列像素;Column backup registers, including register G, which holds the rightmost column pixels of luma subblocks 0 and 1; register H, which holds the rightmost column pixels of luma subblocks 2 and 3; and register I, which holds the chrominance The rightmost column pixels of sub-blocks 4 and 5;
所述方法包含以下步骤:Said method comprises the following steps:
步骤1、提取第一行宏块的所有子块0、1、4和5的行参考样本,其值都为0;提取第一列宏块的所有子块0、2、4和5的列参考样本,其值也都为0;本步骤不进行存储;Step 1, extract the row reference samples of all sub-blocks 0, 1, 4 and 5 of the first row of macroblocks, whose values are all 0; extract the columns of all sub-blocks 0, 2, 4 and 5 of the first row of macroblocks Reference sample, its value is also 0; this step does not store;
步骤2、提取第一行宏块的所有亮度子块0和1的零点参考样本,作为寄存器G的值,提取第一行宏块的所有色度子块4和5的零点参考样本,作为寄存器I的值;提取第一列宏块的所有亮度子块0的零点参考样本,作为存储器A的值,提取第一列宏块的所有亮度子块2的参考样本,作为寄存器F的值,提取第一列宏块的所有色度子块4和5的参考样本,作为存储器B的值;Step 2, extract the zero-point reference samples of all luminance sub-blocks 0 and 1 of the first row of macroblocks, as the value of register G, extract the zero-point reference samples of all chrominance sub-blocks 4 and 5 of the first row of macroblocks, as registers The value of I; extract the zero point reference samples of all brightness sub-blocks 0 of the first row of macroblocks, as the value of memory A, extract the reference samples of all brightness sub-blocks 2 of the first row of macroblocks, as the value of register F, extract Reference samples of all chrominance sub-blocks 4 and 5 of the first column of macroblocks, as the value of memory B;
步骤3、提取一帧图像中所有宏块的子块0和1的行参考样本,作为存储器A的值,提取所有子块2和3的参考样本,作为寄存器F的值,提取所有子块4和5的行参考样本,作为存储器B的值;Step 3, extract the row reference samples of sub-blocks 0 and 1 of all macroblocks in a frame of image, as the value of memory A, extract the reference samples of all sub-blocks 2 and 3, and extract all sub-blocks 4 as the value of register F and 5 row reference samples as the value of memory B;
步骤4、提取一帧图像中所有宏块的子块0和1的列参考样本,作为寄存器G的值,提取所有子块2和3的列参考样本,作为寄存器H的值,提取所有子块4和5的参考样本,作为寄存器I的值;Step 4, extract the column reference samples of sub-blocks 0 and 1 of all macroblocks in a frame image, as the value of register G, extract the column reference samples of all sub-blocks 2 and 3, and extract all sub-blocks as the value of register H Reference samples of 4 and 5, as the value of register I;
步骤5、提取一帧图像中所有宏块的子块0和1的零点参考样本,作为存储器C的值,提取所有子块2和3的零点参考样本,作为寄存器E的值,提取所有子块4和5的零点参考样本,作为存储器D的值。Step 5, extract the zero-point reference samples of sub-blocks 0 and 1 of all macroblocks in a frame image, and extract all sub-blocks 2 and 3 zero-point reference samples as the value of memory C, and extract all sub-blocks as the value of register E Zero-point reference samples of 4 and 5, as the value of memory D.
完成一帧图像中所有宏块中子块参考样本的提取,每个子块的参考样本提取只需要2~3个时钟周期,所需逻辑资源少,效率高。The extraction of sub-block reference samples in all macroblocks in a frame of image is completed, and the reference sample extraction of each sub-block only needs 2 to 3 clock cycles, requiring less logic resources and high efficiency.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810033360 CN100574460C (en) | 2008-01-31 | 2008-01-31 | AVS inter-frame predicated reference sample extraction method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810033360 CN100574460C (en) | 2008-01-31 | 2008-01-31 | AVS inter-frame predicated reference sample extraction method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101227624A CN101227624A (en) | 2008-07-23 |
CN100574460C true CN100574460C (en) | 2009-12-23 |
Family
ID=39859341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200810033360 Expired - Fee Related CN100574460C (en) | 2008-01-31 | 2008-01-31 | AVS inter-frame predicated reference sample extraction method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100574460C (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101895767B (en) * | 2009-05-22 | 2013-09-18 | 上海爱信诺航芯电子科技有限公司 | Method for storing and updating AVS inter-frame predicated reference pixel |
CN102340661B (en) * | 2010-07-23 | 2014-04-30 | 联合信源数字音视频技术(北京)有限公司 | Method for feeding back reconstruction data to intra prediction in AVS (Audio Video Standard) mode decision |
CN102025996B (en) * | 2010-12-20 | 2012-09-26 | 浙江大学 | Multiple-prediction mode multiplexed H.264 interframe processing unit |
CN103688533B (en) * | 2011-06-20 | 2015-12-23 | 联发科技(新加坡)私人有限公司 | Chroma intra prediction method and the device of line storage can be reduced |
JP7145793B2 (en) * | 2019-03-11 | 2022-10-03 | Kddi株式会社 | Image decoding device, image decoding method and program |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585495A (en) * | 2004-06-11 | 2005-02-23 | 上海大学 | Quick selection of prediction modes in H.264/AVC frame |
CN1874511A (en) * | 2006-06-29 | 2006-12-06 | 上海交通大学 | Method for mapping address of memory space in video hardware decoder based on AVS |
CN101022551A (en) * | 2007-03-15 | 2007-08-22 | 上海交通大学 | Motion compensating module pixel prefetching device in AVS video hardware decoder |
-
2008
- 2008-01-31 CN CN 200810033360 patent/CN100574460C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585495A (en) * | 2004-06-11 | 2005-02-23 | 上海大学 | Quick selection of prediction modes in H.264/AVC frame |
CN1874511A (en) * | 2006-06-29 | 2006-12-06 | 上海交通大学 | Method for mapping address of memory space in video hardware decoder based on AVS |
CN101022551A (en) * | 2007-03-15 | 2007-08-22 | 上海交通大学 | Motion compensating module pixel prefetching device in AVS video hardware decoder |
Also Published As
Publication number | Publication date |
---|---|
CN101227624A (en) | 2008-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103688533B (en) | Chroma intra prediction method and the device of line storage can be reduced | |
TWI586149B (en) | Video encoder, method and computing device for processing video frames in a block processing pipeline | |
TWI533209B (en) | Parallel hardware and software block processing pipelines | |
CN100574460C (en) | AVS inter-frame predicated reference sample extraction method | |
CN101924938B (en) | Method for processing adjacent block information in video decoding macro-block prediction and boundary filtering | |
WO2012119569A1 (en) | Prediction mode encoding and decoding method, encoding and decoding device and network system | |
CN101330617A (en) | Hardware implementation method and device of multi-standard intra-frame predictor based on mode mapping | |
CN102196272B (en) | P frame coding method and device | |
CN102148990A (en) | Device and method for predicting motion vector | |
CN104253998A (en) | Hardware on-chip storage method of deblocking effect filter applying to HEVC (High Efficiency Video Coding) standard | |
CN100426868C (en) | Frame image brightness predictive coding method | |
CN101888554A (en) | Design Method of Parallel Pipeline Motion Compensation Filter VLSI Structure | |
CN101902643A (en) | A VLSI Structure Design Method for Parallel Array Intra Prediction Decoder | |
CN101951521B (en) | Video image motion estimation method for extent variable block | |
CN100586188C (en) | A Hardware Realization Method of AVS-Based Intra-frame Prediction Calculation | |
CN103747257A (en) | Video data effective coding method | |
CN101895767B (en) | Method for storing and updating AVS inter-frame predicated reference pixel | |
CN103731674B (en) | H.264 two-dimensional parallel post-processing block removing filter hardware achieving method | |
CN111815502B (en) | FPGA acceleration method for multi-graph processing based on WebP compression algorithm | |
CN100496126C (en) | Image coding device and method thereof | |
CN102420989A (en) | Intra-frame prediction method and device | |
CN1972451A (en) | Macro-block loop filtering method based on AVS standard video decoding | |
CN101005619A (en) | Loop circuit filtering method | |
TWI520618B (en) | Video data process method and video process apparatus | |
TWI486908B (en) | Method and associated apparatus for video encoding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
ASS | Succession or assignment of patent right |
Owner name: GUANGDIAN ELECTRONIC CO., LTD., SHANGHAI Free format text: FORMER OWNER: CENTRAL RESEARCH ACADEMY OF SVA GROUP Effective date: 20120615 |
|
C41 | Transfer of patent application or patent right or utility model | ||
TR01 | Transfer of patent right |
Effective date of registration: 20120615 Address after: 200233 No. 168, Shanghai, Tianlin Road Patentee after: SVA Electron Co.,Ltd. Address before: 200233, No. 2, building 757, Yishan Road, Shanghai Patentee before: Central Research Institute of Shanghai radio and television (Group) Co.,Ltd. |
|
C56 | Change in the name or address of the patentee |
Owner name: INESA ELECTRON CO., LTD. Free format text: FORMER NAME: SVA ELECTRON CO., LTD. |
|
CP03 | Change of name, title or address |
Address after: 200233 Building 1, building 200, Zhang Heng Road, Zhangjiang hi tech park, Shanghai, Pudong New Area, 2 Patentee after: INESA ELECTRON Co.,Ltd. Address before: 200233 No. 168, Shanghai, Tianlin Road Patentee before: SVA Electron Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20091223 |