CN1527610A - 用于视频预测残差系数编码的熵编码方法 - Google Patents

用于视频预测残差系数编码的熵编码方法 Download PDF

Info

Publication number
CN1527610A
CN1527610A CNA031571891A CN03157189A CN1527610A CN 1527610 A CN1527610 A CN 1527610A CN A031571891 A CNA031571891 A CN A031571891A CN 03157189 A CN03157189 A CN 03157189A CN 1527610 A CN1527610 A CN 1527610A
Authority
CN
China
Prior art keywords
code table
level
run
coding
code
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.)
Granted
Application number
CNA031571891A
Other languages
English (en)
Other versions
CN1214649C (zh
Inventor
高文
赵德斌
王强
马思伟
吕岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
UNITED XINYUAN DIGITAL AUDIO V
Original Assignee
Institute of Computing Technology of CAS
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=34287152&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CN1527610(A) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CNB031571891A priority Critical patent/CN1214649C/zh
Priority to BRPI0414308A priority patent/BRPI0414308B1/pt
Priority to PCT/CN2004/000750 priority patent/WO2005027521A1/zh
Priority to US10/572,440 priority patent/US7974343B2/en
Publication of CN1527610A publication Critical patent/CN1527610A/zh
Application granted granted Critical
Publication of CN1214649C publication Critical patent/CN1214649C/zh
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

本发明公开了一种用于视频预测残差系数编码的熵编码方法,包括如下步骤:首先,对被编码块系数进行zig-zag扫描,形成(level,run)数对序列;然后,根据图像块类型选择用于编码当前被编码块的码表类型;接下来对得到的数对序列中每一(level,run)数对进行多码表切换编码,数对的编码顺序为zig-zag扫描的逆向顺序;最后,以当前码表,编码块结束标志EOB;本发明用于视频预测残差系数编码的熵编码方法通过为不同类型,不同level值区域设定不同的码表进行编码,充分考虑到了上下文环境和被编码元素的条件概率分布规律,同时对算法实现复杂度没有影响,并且提高了编码效率。

Description

用于视频预测残差系数编码的熵编码方法
技术领域
本发明涉及一种图像/视频编解码技术,特别是指一种用于在图像/视频压缩、数字音视频编码技术中,进一步提高编码效率,同时保持较低的软硬件计算实现复杂度的熵编码方法,属于数字媒体处理技术领域。
背景技术
视频编码技术是数字媒体存储与传输等应用的关键技术之一。视频编码系统中的核心技术包括:预测编码、变换编码、熵编码。其中,熵编码是指对编码过程中产生的语法元素(例如:运动矢量mv、块标识cbp、块预测残差系数等)进行信息熵编码,其作用是去除数据的统计冗余。
以往视频编码标准对块预测残差系数的编码方法有:H.261、MPEG(运动图象专家组,Motion Picture Experts Group简称MPEG)-2标准的2D-VLC(Variable Length Coding)熵编码器,H.263、MPEG-4标准的3D-VLC熵编码器及H.264/AVC(国际电信协会ITU-T的H.264视频编码建议或ISO/IEC的国际标准14496-10,即MPEG-4标准的第10部分)视频编码标准的CAVLC(Context-based Adaptive Variable Length Coding)熵编码器和CABAC(Context-based Adaptive Binary Arithmetic Coding)熵编码器。
2D-VLC熵编码器对残差系数的编码采用(level,run)+EOB的编码方式,level表示经过DCT变换和量化后的残差图像块的非零系数,而run表示该系数到其前第一个非零系数间的值为0的系数个数,EOB(End of Block)为块结束标志,EOB在码表中独占一个位置,即EOB单独分配一个码字。3D-VLC熵编码器将EOB结合在(level,run)数对中,形成三维量(level,run,last),last表示当前系数是否为块内做后一个系数,这样腾出了码表中EOB占据的较短码字,并且利用了level、run及EOB的联合概率,因此编码效率有提高。H.264/AVC视频编码标准的CAVLC熵编码器由于其充分的利用了上、下文信息,并针对4×4块大小进行了很好的优化,因此虽然将level、run分开编码,但依然取得了很好的编码结果。以上的各种熵编码器属于变长编码器,其编码基本原理是Huffman编码,即将大概率的符号用短码字编码,而出现概率小的符号用长码字编码,从而最终达到平均码长最短的目的。H.264/AVC视频编码标准的CABAC熵编码器属于算术编码器,算术编码器的性能高于变长编码器,而且由于CABAC能够很好地对上下文进行建模,对信源符号的出现概率有更准确的估计,因此编码效率很高。但相比于变长编码器,算术编码器的计算复杂度高,同时硬件实现复杂,相当于以软、硬件的高复杂度换取编码效率的提高。
因此,从编码效率及算法的软硬件实现复杂度两方面来考虑,变长编码是一种性价比更高的熵编码方案。在变长编码器中,2D-VLC熵编码器利用了level及run的联合概率,理论上效率高于CAVLC熵编码器将level及run分开编码的方式,而且相对于3D-VLC编码器,2D-VLC码表的体积更小,所以2D-VLC熵编码器兼顾了性能和硬件的实现复杂度。但是传统的2D-VLC熵编码器采用通过全局统计而得到的单一码表进行编码,其缺点是,单一码表不能很好的适应局部概率分布的变化,因此编码效率不高。
发明内容
本发明所要解决的技术问题在于提供一种用于视频预测残差系数编码的新型高效熵编码方法,进一步提高编码效率,同时保持较低的计算实现复杂度。
本发明的目的是这样实现的:
一种用于视频预测残差系数编码的熵编码方法,包括如下步骤:
步骤1:对图像块的被编码块系数进行zig-zag扫描,形成(level,run)数对序列;
步骤2:根据图像块所在宏块类型选择用于编码当前被编码图像块的码表类型;
步骤3:对步骤1得到的数对序列中每一(level,run)数对进行编码;
步骤4:编码块结束标志EOB。
本发明用于视频预测残差系数编码的熵编码方法,在2D-VLC编码器中引入了自适应机制,为不同类型宏块和不同level值区域设定了不同的局部统计分布最优的码表,编码时通过码表切换,找到最匹配当前局部概率特性的码表进行编码,充分考虑到了视频块残差系数的上下文环境和统计规律,同时对计算实现复杂度没有影响,进一步提高了编码效率。
附图说明
图1是本发明实施例的流程图;
图2是本发明一实施例对4x4块图像块进行zig-zag扫描形成(level,run)数对的示意图;
图3是本发明对4×4块图像块的编码方案的示意图。
具体实施方式
以下结合附图和具体的实施例对本发明作进一步的详细说明:
本实施例所述的熵编码方法,如图1,图3所示,包括如下步骤
步骤1:对图像块的被编码块系数进行zig-zag扫描,形成(level,run)数对序列;
步骤2:根据图像块所在宏块类型选择用于编码当前被编码图像块的码表类型;
步骤3:对步骤1得到的数对序列中每一(level,run)数对进行编码;
步骤4:编码块结束标志EOB。
在视频图像编码中,宏块是编码的基本单位,每一个宏块包括4个8×8的亮度块和2个8×8的色度块,共6个图像块。对预测残差系数的熵编码中,图像块每一点为一个系数,这个系数表示经过熵编码之前的编码步骤得到的视频预测残差。
宏块类型可分为两种,一种是intra(内部)型,采用帧内相邻的图像块对待编码图像块进行帧内预测的方法进行编码;另一种是inter(外部)型,采用相邻帧的图像块对待编码图像块进行帧间预测的方法进行编码。这两种不同的预测编码方法使得所得到的块残差系数的特性不同,在扫描后形成的相同(level,run)数对出现的概率不同。比如某一(level,run)数对(3,0),可能在所有intra型图像块中出现的概率为10%,而在所有inter型图像块中出现的概率只有7%。
为了提高编码效率,本发明针对不同的类型建立不同的类型的码表,使得每种类型下,被编码符号的码字长度和被编码符号的出现概率能够更好的匹配,从而取得更好的编码效果。
步骤1所述的zig-zag扫描,即“之”字扫描,如图2,图3所示,从左上到右下,依次得到(level,run)数对。
步骤2所述的根据图像块类型选择用于编码当前被编码块系数的码表,具体为:如果当前宏块类型为intra型,则选择intra型码表编码当前宏块内亮度块的系数;如果宏块类型为inter型,则选择inter型码表编码当前宏块内亮度块的系数;如果对宏块内色度块的编码采用inter型码表或采用自己单独的码表。
用inter型码表编码色度块的效果基本可以满足编码的需求,当然也可以在基于统计分析的基础上,为色度块建立自己的码表,但一般可以不这样做。
本实施例所述的步骤3,进一步具体包括:
步骤31:采用固定码表编码最后一个(level,run);
步骤32:以当前已编码的(level,run)数对的level值选择编码前一数对的码表;
步骤33:以步骤32所选择的码表编码前一(level,run)数对编码;
步骤34:如果没有对所有的(level,run)数对编码完毕,则执行步骤32;否则结束步骤3。
对于视频熵编码而言,编码的结果越小,计算复杂度越小,编码效率越高,而本发明不涉及计算复杂度,因此,对出现几率高的(level,run)数对分配数字比较小的码字,对码字编码后的结果也小,相应的最后的编码结果也就最小,效率最高。
本发明对于确定的intra/inter图像块类型,采用了多个不同的码表来分配码字,每一个码表都是根据码表本身的level值对下一个将要编码的(level,run)数对的出现概率进行统计后制成的,按下一个将要编码的(level,run)数对的出现概率由高到低分配由小到大的码字,充分的利用了上下文环境和统计规律,比只有一个统一的码表,不考虑上下文环境,只考虑总的统计规律效率提高了很多。这也是本发明方法步骤32切换码表的原因。
由于相近的level值的预测结果可能会比较接近,为了提高编码的速度并降低码表的存储需求,本发明采用了分区的方法来设计多个码表,即将整个分成若干个区域,每个区域采用相同的码表。一般level值越大预测结果越接近,所以大多数码表都集中在level值小的地方。
下面给出一个具体的、用C语言表达的多个码表切换实例:
int incVlc[]={1,2,3,5,8,3000};

TableNum=0;//采用VLC0_Intra或VLC0_Inter编码第一个(level,run)

for(icoeff=TotalCoeff;icoeff>0;icoeff--)//编码块内所有非零系数

{

  encode_levelrun(TableNum);//采用当前码表,编码当前(level,run)

  if(abs(level)>incVlc[TableNum])//以已编码的level值切换码表
        <!-- SIPO <DP n="5"> -->
        <dp n="d5"/>
  {

   if(abs(level)<=3)

     TableNum=(abs(level)-1);

  else if(abs(level)<=5)

   TableNum=3;

  else if(abs(level)<=8)

   TableNum=4;

  else

   TaleNum=5;

}

}
在以上码表选择方法中,用于Inter型系数块的编码共有6个码表,将整个level的可能取值分成了6个区域,1,2,3,4-5,5-8和8以上,分别对应不同码表。
所述的码表为2D-VLC结构,包括(level,run)数对及EOB与码字的映射关系。表1给出了编码Inter型图像块所用的码字分配码表VLC0_Inter及VLC1_Inter示例。VLC0_Inter表示Inter型图像块level为1的码表,用来对level为1的(level,run)数对后的(level,run)数对编码,或作为固定码表编码第一个(level,run)数对。VLC1_Inter表示Inter型图像块level为2的码表,用来对level为2的(level,run)数对后的(level,run)数对编码。
其他的码表结构与这两个码表类似。
表1:
 VLC0_Inter  VLC1_Inter
Run EOB  Level>0 Run EOB  Level>0
 1  2  3  4  5  1  2  3  4  5  6
 0  0  1  9  27  41  53  0  0  1  5  11  19  35  45
 1  -  3  25  -  -  -  1  -  3  13  27  51  -   -
 2  -  5  35  -  -  -  2  -  7  23  47  -  -   -
 3  -  7  39  -  -  -  3  -  9  29  53  -  -   -
  4 -   11   45 - - -   4 -   15   39 - - - -
  5 -   13   47 - - -   5 -   17   41 - - - -
  6 -   15   55 - - -   6 -   21   57 - - - -
  7 -   17   - - - -   7 -   25   - - - - -
  8 -   19   - - - -   8 -   31   - - - - -
  9 -   21   - - - -   9 -   33   - - - - -
  10 -   23   - - - -   10 -   37   - - - - -
  11 -   29   - - - -   11 -   43   - - - - -
  12 -   31   - - - -   12 -   49   - - - - -
  13 -   33   - - - -   13 -   55   - - - - -
  14 -   37   - - - -   14 -   -   - - - - -
  15 -   43   - - - -   15 -   -   - - - - -
  16 -   49   - - - -   16 -   -   - - - - -
  17 -   51   - - - -   17 -   -   - - - - -
  18 -   57   - - - -   18 -   -   - - - - -
在所述的步骤31中,所述的固定码表为VLC0_inter或VLC0_intra。这是因为在大多数情况下,最后一个(level,run)的level为1,即最后一个(level,run)的level为1的几率非常高。这样可以在没有任何上下文的情况下,可以获得最好的编码结果。步骤3中采用逆序的方式从后向前对(level,run)进行编码也是这个原因。
本发明对(level,run)数对编码,具体包括如下步骤:
步骤331:如果(level,run)包含在码表当中,则直接从码表中查表得到码字,再将码字转换成Exp-Golomb码;
步骤332:如果(level,run)超出码表范围,先编码escape_code,之后将level和run分别转换成Exp-Golomb码。
由于统计预测的结果一般集中在一个区域,这是图像的渐进变化所决定的,所以设计码表时,码表中不包括那些出现几率非常小的,超出设定的区域的(level,run)数对。从码表VLC0_Inter及VLC1_Inter就可以看到,码表中对下一个level值的预测区域非常集中,因此需要对超出码表范围的(level,run)数对,进行例外的处理。
所述的例外处理的方法是先根据当前码表,即超出范围的码表,确定此码表所采用的Exp-Golomb码的阶数,然后,编码一个escape_code,再将超出码表的level和run分别转换成Exp-Golomb码。
所谓的escape_code就是一个Exp-Golomb码,该Exp-Golomb码对应的码字大于对应码表中所有码字。
所谓的Exp-Golomb码,即Exponential(指数型)-Golomb码。Exp-Golomb码具有不同的阶数,每个码表中的码字要转换成Exp-Golomb码要选择合适阶数;对超出码表范围的(level,run)数对的level和run转换成Exp-Golomb码也要选择合适阶数。
所有转换成Exp-Golomb码的数据选择阶数的方法如下所述:
步骤100:判断需要进行转换的类型,如果是从码表中查出的(level,run)对应的码字或EOB对应的码字,执行步骤101;如果是超出码表的level值或run值执行步骤102;
步骤101:根据码表的不同来确定Exp-Golomb的阶数;
步骤102:根据图象块所在宏块为intra型和inter型来确定Exp-Golomb的阶数。
下面给出一个码表与Exp-Golomb码阶数对应关系和图象块所在宏块类型与Exp-Golomb码阶数对应关系的实例:
码表VLC0_Inter及VLC1_Inter选择2阶Exp-Golomb码,其他码表选择3阶Exp-Golomb码。
intra型图象块level值对应3阶Exp-Golomb码;run值也对应3阶Exp-Golomb码;inter型型图象块level值对应2阶Exp-Golomb码;run值对应3阶Exp-Golomb码。
阶数的选择根据出现具体概率分布而定,这样做的目的也是尽量减小编码后的数据长度。
本发明中所述的将码字或数值转化成Exp-Golomb码具体包括如下过程:
首先根据码表确定所采用的Exp-Golomb码的阶数,然后根据阶数和码字从Exp-Golomb码表中查出对应的Exp-Golomb码,完成转换。
表2给出了本发明的熵编码方法所采用的各阶Exp-Golomb码,Golomb码由前缀和后缀组成,前缀码为若干个0及末尾一个1的比特串,后缀码为信息比特。所述的INFO,是一个信息量,用如下公式计算:
INFO = &Sigma; i = 0 N x i &CenterDot; 2 i
表2是Exp-Golomb码表的一种简写形式,表中的Xi为0或1。把每一个Exp-Golomb码利用码字公式计算就可以知道Exp-Golomb码对应的码字。比如,Exp-Golomb码00111的依据上面公式计算:INFO=4,而L=5,则L/2=2(这里只取整数部分)依据码字公式,得出码字为7。
表2
阶数     Exp-Golomb码 码长L     码字或数值
K=0  1  1   0
 01x0  3 2L/2-1+INFO
 001x1x0  5
 0001x2x1x0  7
 00001x3x2x1x0  9
 000001x4x3x2x1x0  11
 000000x5x4x3x2x1x0  12   2(L+1)/2-1+INFO
K=1  1x0  2 2(L+1)/2-2+INFO
 01x1x0  4
 001x2x1x0  6
 0001x3x2x1x0  8
 00001x4x3x2x1x0  10
 00000x5x4x3x2x1x0  11
K=2  1x1x0  3   2(L+2)/2-4+INFO
 01x2x1x0  5
 001x3x2x1x0  7
 0001x4x3x2x1x0  9
 0000x5x4x3x2x1x0  10
K=3  1x2x1x0  4 2(L+3)/2-8+INFO
 01x3x2x1x0  6
 001x4x3x2x1x0  8
 000x5x4x3x2x1x0  9
K=4  1x3x2x1x0  5 2(L+4)/2-16+INFO
 01x4x3x2x1x0  7
 00x5x4x3x2x1x0  8
所述的步骤4,编码块结束标志EOB,具体过程为:利用步骤3结束时的(level,run)数对,即步骤3中编码的最后一个(level,run)数对的level值选择编码EOB采用的码表;从码表中查出对应的EOB码字,采用步骤331所述的方法,将EOB码字转换成Exp-Golomb码。
通过以上的描述可以看出,本发明方法是一种对2D-VLC变长熵编码器的改进,计算复杂度并不高,但编码效率有了极大的提高。
最后应说明的是:以上实施例仅用以说明本发明而并非限制本发明所描述的技术方案;因此,尽管本说明书参照上述的各个实施例对本发明已进行了详细的说明,但是,本领域的普通技术人员应当理解,仍然可以对本发明进行修改或者等同替换;而一切不脱离本发明的精神和范围的技术方案及其改进,其均应涵盖在本发明的权利要求范围当中。

Claims (10)

1、一种用于视频预测残差系数编码的熵编码方法,包括如下步骤:
步骤1:对图像块的被编码块系数进行zig-zag扫描,形成(level,run)数对序列;
步骤2:根据图像块所在宏块类型选择用于编码当前被编码图像块的码表类型;
步骤3:对步骤1得到的数对序列中每一(level,run)数对进行编码;
步骤4:编码块结束标志EOB。
2、根据权利要求1所述的用于视频预测残差系数编码的熵编码方法,其特征在于:所述的zig-zag扫描,具体过程为:从图像块最左上开始,先横向移动一个单元,然后向左下方顺次移动,每次到达图像块左或下边缘,就向下或向移右动一个单元,然后向右上方顺次移动,每次到达图像块上或右边缘,再向右或向下移动一个单元,然后向左下方顺次移动,如此循环,到达最右下;就得到整个图像块的(level,run)数对序列。
3、根据权利要求1所述的用于视频预测残差系数编码的熵编码方法,其特征在于:所述的根据宏块类型选择用于编码当前被编码图像块系数的码表,具体为如下过程:如果当前宏块类型为intra型,则选择intra型码表编码当前宏块内亮度块的系数;如果宏块类型为inter型,则选择inter型码表编码当前宏块内亮度块的系数;如果对宏块内色度块的编码,采用inter型码表或采用色度块自身的码表。
4、根据权利要求1所述的用于视频预测残差系数编码的熵编码方法,其特征在于:所述的步骤3,进一步具体包括:
步骤31:采用固定码表编码最后一个(level,run)数对;
步骤32:以当前已编码的(level,run)数对的level值选择编码前一数对的码表;
步骤33:以步骤32所选择的码表编码前一(level,run)数对编码;
步骤34:如果没有对所有的(level,run)数对编码完毕,则执行步骤32;否则结束步骤三。
5、根据权利要求4所述的用于视频预测残差系数编码的熵编码方法,其特征在于:所述的码表为2D-VLC结构,包括(level,run)数对及EOB与码字的映射关系。
6、根据权利要求4所述的用于视频预测残差系数编码的熵编码方法,其特征在于:步骤31中所述的固定码表,当编码inter型图像块时为VLCO_inter码表;当编码intra型图像块时为VLCO_intra码表。
7、根据权利要求4所述的用于视频预测残差系数编码的熵编码方法,其特征在于:所述步骤3中,编码具体包括如下步骤:
步骤331:如果(level,run)包含在码表当中,则直接从码表中查表得到码字,再将码字转换成Exp-Golomb码;
步骤332:如果(level,run)超出码表范围,先编码escape_code,之后将level和run分别转换成Exp-Golomb码。
8、根据权利要求7所述的用于视频预测残差系数编码的熵编码方法,其特征在于:转化成Exp-Golomb码具体包括如下过程:首先根据码表确定进行转换需要的Exp-Golomb的阶数,然后根据阶数和码字从Exp-Golomb码表中查出对应的Exp-Golomb码,完成转换。
9、根据权利要求8所述的用于视频预测残差系数编码的熵编码方法,其特征在于:确定进行转换需要的Exp-Golomb的阶数,具体包括如下过程:
步骤100:判断需要进行转换的类型,如果是从码表中查出的(level,run)对应的码字或EOB对应的码字,执行步骤101;如果是超出码表的level值或run值执行步骤102;
步骤101:根据码表的不同来确定Exp-Golomb的阶数;
步骤102:根据图象块所在宏块为intra型和inter型来确定Exp-Golomb的阶数。
10、根据权利要求1所述的用于视频预测残差系数编码的熵编码方法,其特征在于:所述的步骤4,编码块结束标志EOB,具体过程为:根据步骤3最后一个(level,run)数对的level值选择编码EOB的码表,从码表中查出对应的EOB码字,并转换成Exp-Golomb码。
CNB031571891A 2003-09-18 2003-09-18 用于视频预测残差系数编码的熵编码方法 Expired - Fee Related CN1214649C (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CNB031571891A CN1214649C (zh) 2003-09-18 2003-09-18 用于视频预测残差系数编码的熵编码方法
BRPI0414308A BRPI0414308B1 (pt) 2003-09-18 2004-07-05 método de conversão em código por entropia para converter em código coeficientes residuais de predição de vídeo
PCT/CN2004/000750 WO2005027521A1 (en) 2003-09-18 2004-07-05 Entropy coding method for encoding remanet coefficient in video predicting
US10/572,440 US7974343B2 (en) 2003-09-18 2004-07-05 Entropy coding method for coding video prediction residual coefficients

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031571891A CN1214649C (zh) 2003-09-18 2003-09-18 用于视频预测残差系数编码的熵编码方法

Publications (2)

Publication Number Publication Date
CN1527610A true CN1527610A (zh) 2004-09-08
CN1214649C CN1214649C (zh) 2005-08-10

Family

ID=34287152

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031571891A Expired - Fee Related CN1214649C (zh) 2003-09-18 2003-09-18 用于视频预测残差系数编码的熵编码方法

Country Status (4)

Country Link
US (1) US7974343B2 (zh)
CN (1) CN1214649C (zh)
BR (1) BRPI0414308B1 (zh)
WO (1) WO2005027521A1 (zh)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100428634C (zh) * 2005-03-09 2008-10-22 浙江大学 数字信号处理中联合变长编解码的方法和装置
CN101657973A (zh) * 2006-11-17 2010-02-24 数码士有限公司 具有采用位精度进行编码和解码的程序的记录介质及其装置
CN101175210B (zh) * 2006-10-30 2010-08-11 中国科学院计算技术研究所 用于视频预测残差系数解码的熵解码方法及熵解码装置
CN101335897B (zh) * 2007-06-28 2010-08-25 联想(北京)有限公司 图像压缩/解码方法及系统
CN101583029B (zh) * 2008-05-13 2011-01-19 联咏科技股份有限公司 熵解码电路与方法、以及使用流水线方式的熵解码方法
CN101557515B (zh) * 2008-04-08 2011-03-16 联咏科技股份有限公司 熵编码电路及其编码方法
CN101427584B (zh) * 2006-03-27 2012-03-21 高通股份有限公司 用于在视频压缩中进行有效系数编码的方法及系统
CN102648583A (zh) * 2009-10-05 2012-08-22 法国电信 用于编码和解码图像的方法、对应的编码和解码装置及计算机程序
CN101822057B (zh) * 2007-10-12 2013-11-27 高通股份有限公司 编码和解码视频数据的方法和装置
CN103761754A (zh) * 2014-01-22 2014-04-30 浙江宇视科技有限公司 一种对曲线进行熵编码的方法
CN106534854A (zh) * 2011-03-07 2017-03-22 杜比国际公司 编码和解码图像的方法、编码和解码设备
CN104124982B (zh) * 2008-12-09 2017-04-12 日本电信电话株式会社 编码方法以及编码装置
CN108419084A (zh) * 2010-10-14 2018-08-17 汤姆逊许可公司 改进熵编码和解码的方法及装置
US10362311B2 (en) 2011-06-24 2019-07-23 Dolby International Ab Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2282310B1 (en) * 2002-09-04 2012-01-25 Microsoft Corporation Entropy coding by adapting coding between level and run-length/level modes
JP2006339794A (ja) * 2005-05-31 2006-12-14 Sony Corp 情報処理装置、情報処理方法、およびプログラム
US8599925B2 (en) * 2005-08-12 2013-12-03 Microsoft Corporation Efficient coding and decoding of transform blocks
US8938009B2 (en) * 2007-10-12 2015-01-20 Qualcomm Incorporated Layered encoded bitstream structure
US8179974B2 (en) 2008-05-02 2012-05-15 Microsoft Corporation Multi-level representation of reordered transform coefficients
US8406307B2 (en) 2008-08-22 2013-03-26 Microsoft Corporation Entropy coding/decoding of hierarchically organized data
GB2471647B (en) * 2009-06-16 2016-03-23 Aptina Imaging Corp Use of Z-order data in an image sensor
WO2010149799A1 (es) * 2009-06-22 2010-12-29 Universidad De Barcelona Método para la calibración totalmente adaptativa de un codificador de errores de predicción
US8705623B2 (en) 2009-10-02 2014-04-22 Texas Instruments Incorporated Line-based compression for digital image data
US20120163471A1 (en) * 2010-12-23 2012-06-28 Qualcomm Incorporated Variable length coding of video block coefficients
US9490839B2 (en) 2011-01-03 2016-11-08 Qualcomm Incorporated Variable length coding of video block coefficients
CN102625096A (zh) * 2011-01-28 2012-08-01 联合信源数字音视频技术(北京)有限公司 基于avs的并行预编码设备
US9516316B2 (en) 2011-06-29 2016-12-06 Qualcomm Incorporated VLC coefficient coding for large chroma block
US9338456B2 (en) 2011-07-11 2016-05-10 Qualcomm Incorporated Coding syntax elements using VLC codewords
JP2013081003A (ja) * 2011-09-30 2013-05-02 Toshiba Corp データ符号化装置及び方法、並びに、データ復号装置及び方法
US11039138B1 (en) 2012-03-08 2021-06-15 Google Llc Adaptive coding of prediction modes using probability distributions
KR20200014945A (ko) * 2014-03-14 2020-02-11 브이아이디 스케일, 인크. Rgb 비디오 코딩 향상을 위한 시스템 및 방법
US10171810B2 (en) 2015-06-22 2019-01-01 Cisco Technology, Inc. Transform coefficient coding using level-mode and run-mode
US12022060B2 (en) 2019-02-28 2024-06-25 Samsung Electronics Co., Ltd. Video encoding and decoding method for predicting chroma component, and video encoding and decoding device for predicting chroma component
WO2020228762A1 (en) 2019-05-14 2020-11-19 Beijing Bytedance Network Technology Co., Ltd. Context modeling for residual coding
CN112399181B (zh) 2019-08-19 2022-08-26 华为技术有限公司 图像编解码的方法、装置和存储介质
CN112449186B (zh) * 2019-08-30 2021-10-12 腾讯科技(深圳)有限公司 编码方法、解码方法、相应的装置、电子设备及存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0128859B1 (ko) * 1993-08-20 1998-04-10 배순훈 적응적인 영상부호화 제어장치
KR0155784B1 (ko) * 1993-12-16 1998-12-15 김광호 영상데이타의 적응형 가변장 부호화/복호화방법
US5552832A (en) * 1994-10-26 1996-09-03 Intel Corporation Run-length encoding sequence for video signals
EP1802135A3 (en) * 1995-03-15 2008-11-12 Kabushiki Kaisha Toshiba Moving picture coding and/or decoding systems
KR101030903B1 (ko) * 2001-11-22 2011-04-22 파나소닉 주식회사 부호화 방법 및 부호화 장치
US6963613B2 (en) * 2002-04-01 2005-11-08 Broadcom Corporation Method of communicating between modules in a decoding system
JP4130780B2 (ja) * 2002-04-15 2008-08-06 松下電器産業株式会社 画像符号化方法および画像復号化方法
US7194137B2 (en) * 2003-05-16 2007-03-20 Cisco Technology, Inc. Variable length coding method and apparatus for video compression
US7519229B2 (en) * 2004-03-30 2009-04-14 Apple, Inc. Video coding system providing separate coding chains for dynamically selected small-size or full-size playback

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100428634C (zh) * 2005-03-09 2008-10-22 浙江大学 数字信号处理中联合变长编解码的方法和装置
CN101427584B (zh) * 2006-03-27 2012-03-21 高通股份有限公司 用于在视频压缩中进行有效系数编码的方法及系统
CN101175210B (zh) * 2006-10-30 2010-08-11 中国科学院计算技术研究所 用于视频预测残差系数解码的熵解码方法及熵解码装置
US8385405B2 (en) 2006-11-17 2013-02-26 Humax Co., Ltd. Recorded medium having program for coding and decoding using bit-precision, and apparatus thereof
CN101657973A (zh) * 2006-11-17 2010-02-24 数码士有限公司 具有采用位精度进行编码和解码的程序的记录介质及其装置
CN101335897B (zh) * 2007-06-28 2010-08-25 联想(北京)有限公司 图像压缩/解码方法及系统
CN101822057B (zh) * 2007-10-12 2013-11-27 高通股份有限公司 编码和解码视频数据的方法和装置
CN101557515B (zh) * 2008-04-08 2011-03-16 联咏科技股份有限公司 熵编码电路及其编码方法
CN101583029B (zh) * 2008-05-13 2011-01-19 联咏科技股份有限公司 熵解码电路与方法、以及使用流水线方式的熵解码方法
CN104124982B (zh) * 2008-12-09 2017-04-12 日本电信电话株式会社 编码方法以及编码装置
CN102648583A (zh) * 2009-10-05 2012-08-22 法国电信 用于编码和解码图像的方法、对应的编码和解码装置及计算机程序
CN102648583B (zh) * 2009-10-05 2015-05-20 法国电信 用于编码和解码图像的方法、对应的编码和解码装置
US11677983B2 (en) 2010-10-14 2023-06-13 Interdigital Vc Holdings, Inc. Methods and apparatus for improved entropy encoding and decoding
US11218732B2 (en) 2010-10-14 2022-01-04 Interdigital Vc Holdings, Inc. Methods and apparatus for improved entropy encoding and decoding
CN108419084B (zh) * 2010-10-14 2021-02-26 交互数字Vc控股公司 改进熵编码和解码的方法、装置及存储介质
US10694211B2 (en) 2010-10-14 2020-06-23 Interdigital Vc Holdings, Inc. Methods and apparatus for improved entropy encoding and decoding
CN108419084A (zh) * 2010-10-14 2018-08-17 汤姆逊许可公司 改进熵编码和解码的方法及装置
CN106658007A (zh) * 2011-03-07 2017-05-10 杜比国际公司 编码和解码图像的方法、编码和解码设备
CN106534854B (zh) * 2011-03-07 2019-09-13 杜比国际公司 编码和解码图像的方法、编码和解码设备
US11736723B2 (en) 2011-03-07 2023-08-22 Dolby International Ab Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto
CN106658008B (zh) * 2011-03-07 2019-08-13 杜比国际公司 编码和解码图像的方法、编码和解码设备
US10382784B2 (en) 2011-03-07 2019-08-13 Dolby International Ab Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto
CN106791838B (zh) * 2011-03-07 2019-09-06 杜比国际公司 编码和解码图像的方法、编码和解码设备
CN106658007B (zh) * 2011-03-07 2019-09-10 杜比国际公司 编码和解码图像的方法、编码和解码设备
CN106791838A (zh) * 2011-03-07 2017-05-31 杜比国际公司 编码和解码图像的方法、编码和解码设备
US10681376B2 (en) 2011-03-07 2020-06-09 Dolby International Ab Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto
CN106658008A (zh) * 2011-03-07 2017-05-10 杜比国际公司 编码和解码图像的方法、编码和解码设备
US11343535B2 (en) 2011-03-07 2022-05-24 Dolby International Ab Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto
CN106534854A (zh) * 2011-03-07 2017-03-22 杜比国际公司 编码和解码图像的方法、编码和解码设备
US10694186B2 (en) 2011-06-24 2020-06-23 Dolby International Ab Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto
US10362311B2 (en) 2011-06-24 2019-07-23 Dolby International Ab Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto
CN103761754B (zh) * 2014-01-22 2016-10-12 浙江宇视科技有限公司 一种对曲线进行熵编码的方法
CN103761754A (zh) * 2014-01-22 2014-04-30 浙江宇视科技有限公司 一种对曲线进行熵编码的方法

Also Published As

Publication number Publication date
BRPI0414308A (pt) 2006-11-07
CN1214649C (zh) 2005-08-10
BRPI0414308B1 (pt) 2018-11-21
WO2005027521A1 (en) 2005-03-24
US20070200737A1 (en) 2007-08-30
US7974343B2 (en) 2011-07-05

Similar Documents

Publication Publication Date Title
CN1214649C (zh) 用于视频预测残差系数编码的熵编码方法
CN100348051C (zh) 一种增强型帧内预测模式编码方法
CN1589023A (zh) 一种基于上下文的多码表变长编解码方法及编解码装置
CN100488254C (zh) 一种基于上下文的熵编码方法及解码方法
US8934540B2 (en) Video compression using multiple variable length coding methods for multiple types of transform coefficient blocks
CN104869423A (zh) 变换系数等级的熵编码装置和熵解码装置
EP2765780A1 (en) Binarizing method and device thereof
KR20130050904A (ko) 비디오의 산술 부호화 방법 및 그 장치, 비디오의 산술 복호화 방법 및 그 장치
CN106101705A (zh) 用于对分割块进行编码的视频编码方法、用于对分割块进行解码的视频解码方法以及用于实施上述方法的记录媒体
CN104883569A (zh) 用于使用分层数据单元进行编码和解码的方法和设备
CN1535018A (zh) 一种视频图像跳过宏块的编码方法
CN1525762A (zh) 一种用于视频编码的编码端/解码端双向预测方法
WO2012159301A1 (zh) 一种视频熵编码、熵解码方法、装置及介质
EP2533538A2 (en) Method and system to reduce modelling overhead for data compression
CN104410859A (zh) 在cabac中使用分离的绝对值和符号(savs)对dpq进行二元化
WO2013107230A1 (en) Method and apparatus for context-adaptive binary arithmetic coding of syntax elements
CN102752592B (zh) 视频变换系数的熵编码方法
CN1615020A (zh) 一种复杂度可分级的帧内预测方法
KR20070062391A (ko) Fgs 계층의 블록에 포함되는 계수의 특성에 따라 비디오신호를 부호화하고 복호화하는 방법 및 장치
WO2024022356A1 (zh) 一种编解码方法、装置及其设备
CN100337481C (zh) 一种mpeg-2到avs视频码流格式转换方法及其装置
KR20110079404A (ko) 엔트로피 코딩의 성능 향상 방법 및 상기 방법을 이용한 비디오 코딩 방법 및 장치
CN1271861C (zh) 基于位平面的不等长的量化/反量化方法
US8532413B2 (en) Entropy encoding/decoding method and apparatus for hierarchical image processing and symbol encoding/decoding apparatus for the same
CN1535023A (zh) 最大宏块类型与编码块模式联合编/解码的方法

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: UNITED XINYUAN DIGITAL AUDIO-VIDEO TECHNOLOGY (BE

Free format text: FORMER OWNER: INST. OF COMPUTING TECHN. ACADEMIA SINICA

Effective date: 20080328

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20080328

Address after: Beijing city Haidian District East Road No. 1 Yingchuang power building block A room 701

Patentee after: UNITED XINYUAN DIGITAL AUDIO V

Address before: Joint laboratory, South Gate graduate building, Institute of physics, Chinese Academy of Sciences, 8 South Avenue, Beijing, Haidian District, Zhongguancun

Patentee before: Institute of Computing Technology, Chinese Academy of Sciences

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050810

Termination date: 20210918

CF01 Termination of patent right due to non-payment of annual fee