[go: up one dir, main page]

CN101500159B - Method and apparatus for image entropy encoding, entropy decoding - Google Patents

Method and apparatus for image entropy encoding, entropy decoding Download PDF

Info

Publication number
CN101500159B
CN101500159B CN 200810009057 CN200810009057A CN101500159B CN 101500159 B CN101500159 B CN 101500159B CN 200810009057 CN200810009057 CN 200810009057 CN 200810009057 A CN200810009057 A CN 200810009057A CN 101500159 B CN101500159 B CN 101500159B
Authority
CN
China
Prior art keywords
code table
decoding
coding
entropy
block
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.)
Active
Application number
CN 200810009057
Other languages
Chinese (zh)
Other versions
CN101500159A (en
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.)
Tsinghua University
Huawei Technologies Co Ltd
Original Assignee
Tsinghua University
Huawei Technologies Co Ltd
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
Application filed by Tsinghua University, Huawei Technologies Co Ltd filed Critical Tsinghua University
Priority to CN 200810009057 priority Critical patent/CN101500159B/en
Priority to PCT/CN2009/070299 priority patent/WO2009097810A1/en
Publication of CN101500159A publication Critical patent/CN101500159A/en
Application granted granted Critical
Publication of CN101500159B publication Critical patent/CN101500159B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • 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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The invention provides a method for encoding an image entropy and decoding an entropy and a device thereof, mainly comprising the following steps: according to a code table of entropy encoding and decoding corresponding to the first kind of block mapping, parameters of a code table of entropy encoding and decoding corresponding to the second kind of block mapping are mapped and obtained; and the parameters of the code table of entropy encoding and decoding are utilized for carrying out the entropy encoding and decoding of the image block data under the second kind of block mapping. In the embodiment of the invention, as only the code table corresponding to the first kind of block mapping is stored, and then is converted and processed according to the code table corresponding to the first kind of block mapping, the code table corresponding to the second kind of block mapping is obtained; therefore, under the condition of occupying less storing resource occupation, the invention can realize the reusing of the code table in different mapping modes, further ensures the efficiency of entropy encoding and entropy decoding.

Description

一种图像熵编码、熵解码的方法及装置Method and device for image entropy encoding and entropy decoding

技术领域 technical field

本发明涉及编解码技术领域,尤其涉及一种图像熵编码、熵解码的方法及装置。  The present invention relates to the technical field of encoding and decoding, in particular to an image entropy encoding and entropy decoding method and device. the

背景技术 Background technique

在视频和图像编解码过程中是,为减小视频和图像数据在传输或存储时的数据量,通常需要采用相应的压缩编解码技术。在视频和图像压缩编码过程中需要采用变换技术将一副图像、一个区域中的图像内容及信息经变换后集中于某一特定区域,以便在视频压缩算法对相应内容进行有效的压缩。具体可以将一幅图像或图像中的一个区域被划分成若干小块或子区域(称为子块,亦可称之为图像块),之后再子块为单位进行变换。其中,子块的大小可以但不限于为4×4或8×8等,相应的4和8均以图像像素为单位。在视频和图像编码解码中通常以16×16的图像块为一个编解码处理单元,这个单元成为宏块。一个宏块还有可能会进一步划分成若干尺寸更小的子块,在现有文献中,子块和宏块可以统称为图像块。  In the process of video and image coding and decoding, in order to reduce the data volume of video and image data during transmission or storage, it is usually necessary to adopt corresponding compression coding and decoding technologies. In the process of video and image compression and encoding, transformation technology is needed to concentrate an image, image content and information in a region in a specific region after transformation, so that the corresponding content can be effectively compressed in the video compression algorithm. Specifically, an image or an area in the image may be divided into several small blocks or sub-areas (called sub-blocks, or image blocks), and then transformed in units of sub-blocks. Wherein, the size of the sub-block may be, but not limited to, 4×4 or 8×8, and the corresponding 4 and 8 are both in units of image pixels. In video and image coding and decoding, a 16×16 image block is usually used as a codec processing unit, and this unit becomes a macroblock. A macroblock may be further divided into several sub-blocks with smaller sizes. In existing documents, sub-blocks and macroblocks may be collectively referred to as image blocks. the

在进行子块划分过程中,具体可以将一个特定区域分别按照不同的子块大小进行划分,然后针对不同大小的子块进行不同的变换处理,称为自适应块大小的变换技术。这里所说的变换是指具有一定数学特性的数据处理方法,例如DCT(离散余弦变换)、小波变换、整数变换等。在视频和图像编码解码中这些变换通常以矩阵形式表示。  In the process of sub-block division, specifically, a specific area can be divided according to different sub-block sizes, and then different transformation processes are performed on sub-blocks of different sizes, which is called adaptive block size transformation technology. The transformation mentioned here refers to a data processing method with certain mathematical characteristics, such as DCT (discrete cosine transform), wavelet transform, integer transform, etc. These transformations are usually expressed in matrix form in video and image coding and decoding. the

在自适应块尺寸变换技术中存在多种变换模式时,部分宏块可以单独使 用一种变换模式,所述的变换模式是指变换及变换相应的编解码处理方式,例如,一个大小为16×16的宏块中所有子块都划分成8×8大小,并且所有子块均采用8×8的变换及与变换相应的编码及解码技术(即采用一种变换模式)。同时,部分宏块中的子块可以使用不同的变换模式,例如:在一个16×16的宏块中若含有4×4、4×8、8×4及8×8几种子块类型,则可以分别使用4×4、4×8、8×4及8×8各自对应的变换模式。  When there are multiple transformation modes in the adaptive block size transformation technology, some macroblocks can use one transformation mode alone. The transformation mode refers to the transformation and the corresponding codec processing method for transformation. All sub-blocks in a ×16 macroblock are divided into 8×8 sizes, and all sub-blocks adopt 8×8 transformation and encoding and decoding techniques corresponding to the transformation (that is, adopt a transformation mode). At the same time, sub-blocks in some macroblocks can use different transformation modes, for example: if a 16×16 macroblock contains 4×4, 4×8, 8×4 and 8×8 sub-block types, Then the transform modes corresponding to 4×4, 4×8, 8×4 and 8×8 can be used respectively. the

其中,若数据块采用不同的变换,则将使得经过不同变换处理后的数据的分布规律会也不相同,为此,在对经过不同变换之后的数据块进行VLC(Variable Length Coding,变长编码)和VLD(Variable Length Coding,变长解码))过程中,需要根据数据块的分布规律(即统计特性)分别采用相适应的码表进行编码或解码操作。  Among them, if the data blocks adopt different transformations, the distribution rules of the data after different transformations will be different. Therefore, VLC (Variable Length Coding) is performed on the data blocks after different transformations. ) and VLD (Variable Length Coding, variable length decoding)) processes, it is necessary to use the appropriate code table for encoding or decoding operations according to the distribution law (that is, statistical characteristics) of the data blocks. the

在视频编解码标准中使用变长编码时会为编码元素设置一套码表,码表根据编码元素为编码图像亮度分量元素、图像色度分量元素、帧间编码、帧内编码进行划分。该编码元素是指编码过程中产生的游程(run)和量化系数值(level),其中,run是指在编码或解码过程中在图像块扫描中一个非0系数前值为0的系数的个数,level是指量化系数的数值大小。在变长编码中run和level以一对数据的形式出现。  When using variable-length coding in the video codec standard, a set of code tables will be set for the coding elements. The code tables are divided into coded image brightness component elements, image chrominance component elements, inter-frame coding, and intra-frame coding according to the coding elements. The coding element refers to the run length (run) and the quantized coefficient value (level) generated during the encoding process, where run refers to the number of coefficients whose value is 0 before a non-zero coefficient in the image block scanning during the encoding or decoding process number, level refers to the numerical size of the quantization coefficient. In variable-length encoding, run and level appear as a pair of data. the

在变长编码中,编码端得到一对run和level之后,在码表中根据run和level的数值查找到相应的索引值,该索引值称为变换系数(trans_coefficient)。在变长编码中trans_coefficient值会规定在一定范围内,若因编码时level或run值过大而没法确定trans_coefficient值,则还会使用转逸系数差值(escape_level_diff),escape_level_diff通常是在trans_coefficient与run和level对之间没法建立联系时使用。在编码过程中,编码系统会根据trans_coefficient和escape_level_diff(如果存在)的值以及当前编码元素是否为图像块亮度分量元素、图像块色度分量元素以及是否为帧间编码元素、帧内编码元素等 因素确定下一编码元素所使用的码表。如果当前图像块编码结束,编码系统会在当前图像块最后一个编码元素编码完毕后写入一个块结束标志(EOB),EOB的值由当前码表决定。  In variable-length coding, after the coder obtains a pair of run and level, it searches for the corresponding index value in the code table according to the values of run and level, and the index value is called the transformation coefficient (trans_coefficient). In variable length encoding, the value of trans_coefficient will be specified within a certain range. If the value of trans_coefficient cannot be determined because the level or run value is too large during encoding, the escape coefficient difference (escape_level_diff) will also be used. Escape_level_diff is usually between trans_coefficient and Used when there is no connection between run and level pairs. During the encoding process, the encoding system will take into account factors such as the values of trans_coefficient and escape_level_diff (if present) and whether the current encoding element is an image block luminance component element, an image block chrominance component element, whether it is an inter-frame coding element, or an intra-frame coding element. Determines the code table to use for the next encoded element. If the encoding of the current image block ends, the encoding system will write an end-of-block (EOB) after the encoding of the last encoding element of the current image block is completed, and the value of the EOB is determined by the current code table. the

在变长解码中,根据从码流中解析得到的trans_coefficient和escape_level_diff(如果存在)值在相应的码表中查找trans_coefficient和escape_level_diff对应的run和level对。在解码过程中,解码系统会根据trans_coefficient和escape_level_diff(如果存在)的值以及当前解码元素是否为图像块亮度分量元素、图像块色度分量元素以及是否为帧间编码元素、帧内编码元素等因素确定下一解码元素所使用的码表。如果解码系统解析得到的语法元素为当前码表中EOB的对应值,则表示当前图像块解码结束,即需要开始针对下一图像块的解码。  In variable-length decoding, according to the values of trans_coefficient and escape_level_diff (if present) parsed from the code stream, look up the pair of run and level corresponding to trans_coefficient and escape_level_diff in the corresponding code table. During the decoding process, the decoding system will take into account factors such as the values of trans_coefficient and escape_level_diff (if present) and whether the current decoding element is an image block luminance component element, an image block chrominance component element, whether it is an inter-frame coding element, or an intra-frame coding element. Determines the code table to use for the next decoded element. If the syntax element analyzed by the decoding system is the corresponding value of the EOB in the current code table, it means that the decoding of the current image block is completed, that is, the decoding of the next image block needs to be started. the

通常,为节省编码器和解码器的内存占用资源,通常仅设置一种变换后的数据块对应的码表,对于其他尺寸的数据块则可以经过相应的变换,之后再采用设置的相应码表进行编码或解码操作。  Usually, in order to save the memory resources occupied by the encoder and decoder, usually only one code table corresponding to the transformed data block is set, and data blocks of other sizes can be transformed accordingly, and then the set corresponding code table can be used Perform encoding or decoding operations. the

以4×4块和8×8块为例,在编码或解码操作过程中,相应的选择使用码表的实现方案具体可以为以下两种:  Taking 4×4 blocks and 8×8 blocks as examples, in the process of encoding or decoding operations, the corresponding implementation schemes for selecting and using the code table can be specifically as follows:

方案一  Option One

假设当前只有4×4块对应的码表,则对于经8×8变换之后的数据块(即8×8块),其使用码表的方式可以为:首先,将8×8块采用采样的方式分割成4×4数据块;之后,对于获得的4个4×4数据块分别使用4×4块对应的码表进行编码或解码操作。  Assuming that there is currently only a code table corresponding to the 4×4 block, for the data block after the 8×8 transformation (that is, the 8×8 block), the way to use the code table can be as follows: first, the 8×8 block is sampled The method is divided into 4×4 data blocks; after that, for the obtained 4 4×4 data blocks, code tables corresponding to 4×4 blocks are respectively used for encoding or decoding operations. the

方案二  Option II

假设当前只有8×8块对应的码表,则对于经过4×4变换后得到的数据块(即4×4块),其使用码表的方式可以为:将多个4×4块以一定方式串成8×8数据块;之后,针对获得的8×8块则可以采用相应的8×8块对应的码表进行编码或解码操作。 Assuming that there are only code tables corresponding to 8×8 blocks at present, for the data blocks obtained after 4×4 transformation (that is, 4×4 blocks), the way to use the code tables can be: combine multiple 4×4 blocks with a certain Then, for the obtained 8×8 block, the code table corresponding to the corresponding 8×8 block can be used for encoding or decoding.

在实现本发明过程中,发明人发现,在上述现有技术中,无论是将将8×8块分割后采用相应码表的实现方案,还是将4×4块串成8×8块后采用相应码表的实现方案,其均存在当前采用的码表无法很好地适应相应尺寸的数据块的数据分布规律的问题,进而降低了相应的编解码效率。  In the process of realizing the present invention, the inventors found that, in the above-mentioned prior art, no matter whether it is to divide the 8×8 blocks and then adopt the corresponding code table, or to string 4×4 blocks into 8×8 blocks and use The implementation schemes of the corresponding code tables all have the problem that the currently used code table cannot well adapt to the data distribution law of the data block of the corresponding size, thereby reducing the corresponding encoding and decoding efficiency. the

发明内容Contents of the invention

本发明的实施例提供了一种图像熵编码、熵解码的方法及装置,以降低存储资源的占用,并可以提高编解码效率。  Embodiments of the present invention provide a method and device for image entropy encoding and entropy decoding, so as to reduce the occupation of storage resources and improve encoding and decoding efficiency. the

一种图像熵编码方法,包括:  An image entropy coding method, comprising:

根据第一种块变换对应的熵编码码表,映射获得第二种块变换对应的熵编码码表参数,利用所述熵编码码表参数对第二种块变换图像块数据进行熵编码;  According to the entropy encoding code table corresponding to the first type of block transformation, the entropy encoding code table parameters corresponding to the second type of block transformation are obtained by mapping, and the entropy encoding is performed on the second type of block transformation image block data by using the entropy encoding code table parameters;

其中,所述映射的处理包括根据用于确定熵编码码表跳转后的码表序号的跳转参数进行映射操作;或者,根据映射参数调整所述第一种块变换对应的熵编码码表中的元素值,获得映射后的第二种块变换对应的熵编码码表参数。  Wherein, the mapping process includes performing a mapping operation according to the jump parameter used to determine the code table sequence number after the jump of the entropy coding code table; or, adjusting the entropy coding code table corresponding to the first type of block transformation according to the mapping parameter The element value in is used to obtain the entropy encoding code table parameter corresponding to the second type of block transformation after mapping. the

一种熵解码方法,包括:  A method of entropy decoding, comprising:

根据第一种块变换对应的熵解码码表,映射获得第二种块变换对应的熵解码码表参数,利用所述熵解码码表参数对第二种块变换下图像块数据进行熵解码;  According to the entropy decoding code table corresponding to the first type of block transformation, map to obtain the entropy decoding code table parameters corresponding to the second type of block transformation, and use the entropy decoding code table parameters to perform entropy decoding on the image block data under the second type of block transformation;

其中,所述映射的处理包括根据用于确定熵编码码表跳转后的码表序号的跳转参数进行映射操作;或者,根据映射参数调整所述第一种块变换对应的熵编码码表中的元素值,获得映射后的第二种块变换对应的熵编码码表参数。  Wherein, the mapping process includes performing a mapping operation according to the jump parameter used to determine the code table sequence number after the jump of the entropy coding code table; or, adjusting the entropy coding code table corresponding to the first type of block transformation according to the mapping parameter The element value in is used to obtain the entropy encoding code table parameter corresponding to the second type of block transformation after mapping. the

一种熵编码装置,包括:  An entropy encoding device, comprising:

第一存储单元,用于保存的第一种块变换对应的熵编码码表;  The first storage unit is used to save the entropy encoding code table corresponding to the first block transformation;

第一码表处理单元,用于根据对所述第一存储单元保存的第一种块变换对应的熵编码码表进行映射处理,获得第二种块变换对应的熵编码码表参数;  The first code table processing unit is used to perform mapping processing on the entropy coding code table corresponding to the first type of block transformation stored in the first storage unit, and obtain the entropy coding code table parameters corresponding to the second type of block transformation;

编码单元,用于使用所述第一码表处理单元获得的第二种块变换对应的熵编码码表参数对第二种块变换的图像块的数据进行熵编码操作;  An encoding unit, configured to use the entropy encoding code table parameters corresponding to the second type of block transformation obtained by the first code table processing unit to perform entropy encoding operations on the data of the image block of the second type of block transformation;

其中,所述第一码表处理单元进行映射处理包括根据用于确定熵编码码 表跳转后的码表序号的跳转参数进行映射操作;或者,根据映射参数调整所述第一种块变换对应的熵编码码表中的元素值,获得映射后的第二种块变换对应的熵编码码表参数。  Wherein, the first code table processing unit performing the mapping process includes performing a mapping operation according to the jump parameter used to determine the code table serial number after the entropy coding code table jumps; or, adjusting the first type of block transformation according to the mapping parameter Corresponding to the element values in the entropy encoding code table, the entropy encoding code table parameters corresponding to the second type of block transformation after mapping are obtained. the

一种熵编码装置,包括:  An entropy encoding device, comprising:

第二存储单元,用于保存的第一种块变换对应的熵解码码表;  The second storage unit is used to save the entropy decoding code table corresponding to the first block transformation;

第二码表处理单元,用于根据第二存储单元保存的第一种块变换对应的熵解码码表映射获得第二种块变换对应的熵解码码表参数;  The second code table processing unit is used to obtain the entropy decoding code table parameters corresponding to the second block transformation according to the entropy decoding code table mapping corresponding to the first block transformation stored in the second storage unit;

解码单元,用于使用所述第二码表处理单元获得的第二种块变换对应的熵编码码表参数对第二种块变换的图像块的数据进行熵解码操作;  The decoding unit is used to use the entropy encoding code table parameters corresponding to the second type of block transformation obtained by the second code table processing unit to perform entropy decoding operations on the data of the image block of the second type of block transformation;

其中,所述所述第二码表处理单元进行映射处理包括根据用于确定熵编码码表跳转后的码表序号的跳转参数进行映射操作;或者,根据映射参数调整所述第一种块变换对应的熵编码码表中的元素值,获得映射后的第二种块变换对应的熵编码码表参数。  Wherein, the said second code table processing unit performing the mapping process includes performing a mapping operation according to the jump parameter used to determine the code table serial number after the entropy coding code table jumps; or, adjusting the first type according to the mapping parameter The element values in the entropy encoding code table corresponding to the block transformation are obtained to obtain the entropy encoding code table parameters corresponding to the second type of block transformation after mapping. the

由上述本发明的实施例提供的技术方案可以看出,本发明实施例中,由于采用了仅保存第一种块变换对应的码表,而对于第二种块变换对应的码表,则是根据保存的第一种块变换对应的码表转换处理获得,因此,其可以使得在占用较少的存储资源的条件下(仅需要存储第一种块变换对应的码表)实现不同变换模式下的码表的复用,并且保证熵编码或熵解码效率。  It can be seen from the technical solutions provided by the above-mentioned embodiments of the present invention that in the embodiments of the present invention, since only the code table corresponding to the first type of block transformation is saved, and for the code table corresponding to the second type of block transformation, it is Obtained according to the stored code table conversion processing corresponding to the first type of block conversion, therefore, it can realize the different conversion modes under the condition of occupying less storage resources (only need to store the code table corresponding to the first type of block conversion) Multiplexing of the code table, and guarantee the efficiency of entropy coding or entropy decoding. the

附图说明Description of drawings

图1为本发明实施例提供的处理过程示意图;  Fig. 1 is the processing schematic diagram that the embodiment of the present invention provides;

图2为本发明实施例提供的熵编码装置的结构示意图;  Fig. 2 is a schematic structural diagram of an entropy encoding device provided by an embodiment of the present invention;

图3为本发明实施例提供的熵解码装置的结构示意图。  FIG. 3 is a schematic structural diagram of an entropy decoding device provided by an embodiment of the present invention. the

具体实施方式Detailed ways

本发明实施例中,在仅保存一种块变换对应的码表的情况下,可以根据映射处理获得相应的另一种块变换对应的码表。  In the embodiment of the present invention, when only the code table corresponding to one type of block transformation is saved, the corresponding code table corresponding to another type of block transformation can be obtained according to the mapping process. the

如图1所示,相应的处理过程可以包括:在需要获取另一种块变换对应的码表时,获取保存的第一种块变换对应的码表,在获取保存的第一种块变换对应的码表后,便可以根据所述第一种块变换对应的熵编码码表或熵解码码表映射处理获得第二种块变换对应的熵编码码表参数或熵解码码表参数。相应的第一种种块变换和第二种种块变换为不同块尺寸下的变换,相应的不同块尺寸可以为4×16、16×4、16×8、8×16、8×8、8×4、4×8或4×4,等等。  As shown in Figure 1, the corresponding processing process may include: when it is necessary to obtain a code table corresponding to another block transformation, obtain the stored code table corresponding to the first type of block transformation, and obtain the stored code table corresponding to the first type of block transformation. After the code table, the entropy encoding code table parameters or entropy decoding code table parameters corresponding to the second type of block transformation can be obtained according to the entropy encoding code table or entropy decoding code table mapping process corresponding to the first type of block transformation. The corresponding first kind of block transformation and the second kind of block transformation are transformations under different block sizes, and the corresponding different block sizes can be 4×16, 16×4, 16×8, 8×16, 8×8, 8× 4, 4×8 or 4×4, etc. the

在上述处理过程中,相应的熵编码码表参数或熵解码码表参数包括以下至少一项:  During the above processing, the corresponding entropy encoding code table parameters or entropy decoding code table parameters include at least one of the following:

变长编码下的帧内亮度编码码表序号和类型,帧间亮度编码码表序号和类型,帧内色度编码码表序号和类型,帧间色度编码码表序号和类型,游程run,量化系数值level,变换系数trans_coefficient,转逸系数差值escape_level_diff和增加图像块结束标志EOB;  Intra-frame luminance code table number and type under variable-length coding, inter-frame luminance code table number and type, intra-frame chroma code table number and type, inter-frame chroma code table number and type, run program run, Quantization coefficient value level, transform coefficient trans_coefficient, escape coefficient difference escape_level_diff and increase image block end flag EOB;

相应的图像块的数据可以包括游程run的值和量化系数值level的值。  The data of the corresponding image block may include the value of the run length and the value of the quantization coefficient value level. the

其中,相应的映射处理具体可以为根据相应的第二种块变换的统计特性确定。具体可以在分析经过不同变换处理之后数据的分布规律,对经过某一种变换获得的数据对应的码表设置相应的映射处理方式,以使得将保存的一种块变换码表经处理后能够符合另一种块变换对应的数据分布规律。  Wherein, the corresponding mapping process may specifically be determined according to the corresponding statistical characteristics of the second type of block transformation. Specifically, it is possible to analyze the distribution law of data after different transformation processes, and set a corresponding mapping processing method for the code table corresponding to the data obtained through a certain transformation, so that a saved block transformation code table can be processed. Another data distribution rule corresponding to block transformation. the

在上述实现方案中,相应的映射处理可为调整码表间跳转顺序的规则,或者,也可以为调整码表中元素的规则。  In the above implementation solution, the corresponding mapping process may be a rule for adjusting the jump sequence between code tables, or may be a rule for adjusting elements in the code table. the

若采用调整码表间跳转顺序的规则进行映射处理时,则可以包括:  If the rules for adjusting the jump order between code tables are used for mapping processing, it can include:

在编码端,可以预先保存第二种块变换对应的跳转参数,也可以根据当前编码序列或编码图像或编码条带的编码特性确定相应的当前编码序列或编码图像或编码条带对应的跳转参数;这样,可以根据保存的第二种块变换对应的跳转参数对相应的第一种块变换对应的码表中的码表的跳转顺序进行调整,并将调整跳转顺序后的码表作为第二种块变换对应的熵编码码表参数以进行第二种块变换下的图像的熵编码操作。其中,相应的跳转参数具体可以为根据相应的第二种块变换的统计特性确定;例如,可以根据第二种块变换的统计特性获得第二种块变换对应的码表,并根据该第二种块变换对应的码表与第一种块变换对应的码表之间的对应关系确定相应的跳转参数。  At the coding end, the jump parameters corresponding to the second type of block transformation can be saved in advance, or the corresponding jumps corresponding to the current coding sequence or coding image or coding strip can be determined according to the coding characteristics of the current coding sequence or coding image or coding strip. In this way, the jump order of the code tables in the code table corresponding to the corresponding first block conversion can be adjusted according to the jump parameters corresponding to the saved second block conversion, and the adjusted jump order The code table is used as an entropy coding code table parameter corresponding to the second type of block transformation to perform an entropy coding operation of the image under the second type of block transformation. Wherein, the corresponding jump parameter may specifically be determined according to the statistical characteristics of the corresponding second type of block transformation; for example, the code table corresponding to the second type of block transformation may be obtained according to the statistical characteristics of the second type of block transformation, and the Correspondence between the code tables corresponding to the two types of block transformations and the code tables corresponding to the first type of block transformations determine corresponding jump parameters. the

在上述处理过程中,相应的跳转参数可以为跳转后的码表序号,或者,也可以为跳转后的码表序号与当前的码序号之间的差值;相应的编码序列或 编码图像或编码条带的编码特性可以包括:序列或图像或条带的像素值、残差值、像素值或残差值的数学统计特征值,或者,序列或图像或条带的像素值和残差值的数学统计特征值。  In the above process, the corresponding jump parameter can be the serial number of the code table after the jump, or, it can also be the difference between the serial number of the code table after the jump and the current code serial number; Coding properties of a picture or coded slice may include: pixel values, residual values, pixel values or mathematical statistical characteristic values of a sequence or picture or slice, or pixel values and residual values of a sequence or picture or slice The mathematical statistical eigenvalue of the difference. the

对应的,在解码端,同样可以预先保存第二种块变换对应的跳转参数,也可以根据当前解码序列或解码图像或解码条带从编码码流中获取确定相应的当前解码序列或解码图像或解码条带对应的跳转参数,进而根据获取的所述跳转参数,以及第一种块变换对应的码表,确定相应的第二种块变换对应的熵解码码表参数,以用于对当前第二种块变换的图像的解码序列或解码图像或解码条带进行熵解码操作。  Correspondingly, at the decoding end, the jump parameters corresponding to the second type of block transformation can also be saved in advance, and the corresponding current decoding sequence or decoding image can also be determined from the encoded code stream according to the current decoding sequence or decoding image or decoding strip Or decode the jump parameter corresponding to the slice, and then determine the corresponding entropy decoding code table parameter corresponding to the second type of block conversion according to the obtained jump parameter and the code table corresponding to the first type of block conversion, for use in An entropy decoding operation is performed on the decoded sequence or decoded image or decoded slice of the current image of the second type of block transformation. the

若采用调整码表中元素的规则进行映射处理时,则可以包括:  If the rules for adjusting the elements in the code table are used for mapping processing, it can include:

在编码端,预先保存第二种块变换对应的映射参数,或者,根据当前编码序列或编码图像或编码条带编码特性确定相应的当前编码序列或编码图像或编码条带对应的映射参数;并可以根据相应的第二种块变换对应的映射参数调整第一种块变换对应的码表中的元素值,获得第二种块变换对应的熵编码码表参数,以便于进行第二种块变换下的图像的熵编码操作。其中,相应的映射参数具体可以为根据第二种块变换的统计特性确定;具体地,可以根据第二种块变换的统计特性获得第二种块变换对应的码表,并根据该第二种块变换对应的码表包含的元素值与相应的第一种块变换对应的码表包含的元素值之间的对应关系确定相应的映射参数。其中,相应的编码序列或编码图像或编码条带的编码特性可以包括:序列或图像或条带的像素值、残差值、像素值或残差值的数学统计特征值,或者,序列或图像或条带的像素值和残差值的数学统计特征值。  At the coding end, pre-save the mapping parameters corresponding to the second type of block transformation, or determine the corresponding mapping parameters corresponding to the current coding sequence or coding image or coding strip according to the coding characteristics of the current coding sequence or coding image or coding strip; and The element values in the code table corresponding to the first type of block transformation can be adjusted according to the corresponding mapping parameters corresponding to the second type of block transformation, and the entropy encoding code table parameters corresponding to the second type of block transformation can be obtained to facilitate the second type of block transformation The entropy encoding operation of the image below. Wherein, the corresponding mapping parameters can specifically be determined according to the statistical characteristics of the second type of block transformation; specifically, the code table corresponding to the second type of block transformation can be obtained according to the statistical characteristics of the second type of block transformation, and according to the second type of block transformation Correspondence between element values contained in the code table corresponding to the block transformation and corresponding element values contained in the code table corresponding to the first type of block transformation determine corresponding mapping parameters. Among them, the coding characteristics of the corresponding coded sequence or coded image or coded strip may include: the pixel value of the sequence or picture or strip, the residual value, the mathematical statistical characteristic value of the pixel value or the residual value, or the sequence or picture or the mathematical statistical eigenvalues of the pixel values and residual values of the strips. the

对应的,在解码端,同样可以预先保存相应第二种块变换对应的映射参数,或者,根据当前解码序列或解码图像或解码条带从编码码流中获取当前解码序列或解码图像或解码条带对应的映射参数,并根据映射参数调整所述 第一种块变换对应的熵解码码表中的数据元素,将调整结果作为第二种块变换对应的熵解码码表参数(即根据获取的映射参数及第一种块变换对应的码表确定相应的第二种块变换对应的码表),以对当前第二种块变换下图像的解码序列或解码图像或解码条带进行熵解码。或者,在解码端,还可以根据映射参数调整从熵编码码流中接收到的第二种块变换对应的数据元素,并根据调整后的数据元素值及第一种块变换对应的熵解码码表获得第二种块变换对应的熵解码码表参数,以进行熵解码操作。  Correspondingly, at the decoding end, the mapping parameters corresponding to the second type of block transformation can also be saved in advance, or the current decoding sequence or decoding image or decoding strip can be obtained from the encoded code stream according to the current decoding sequence or decoding image or decoding strip Take the corresponding mapping parameters, and adjust the data elements in the entropy decoding code table corresponding to the first block transformation according to the mapping parameters, and use the adjustment result as the entropy decoding code table parameters corresponding to the second block transformation (that is, according to the acquired The mapping parameters and the code table corresponding to the first type of block transformation determine the corresponding code table corresponding to the second type of block transformation), so as to perform entropy decoding on the decoded sequence or decoded image or decoded slice of the image under the current second type of block transformation. Alternatively, at the decoding end, the data element corresponding to the second type of block transformation received from the entropy encoded code stream can also be adjusted according to the mapping parameters, and the corresponding entropy decoding code can be transformed according to the adjusted data element value and the first type of block transformation The table obtains entropy decoding code table parameters corresponding to the second type of block transformation, so as to perform entropy decoding operations. the

也就是说,上述用于指示码表间跳转顺序规则的跳转参数或者用于指示码表中元素映射处理方式的映射参数可以预先保留在熵编码和熵解码系统中。也可以在熵编码端根据熵编码序列或图像或条带的特性更新码表间跳转顺序规则或码表中元素处理规则,将上述规则写入序列、图像或条带等熵编码信息中,以便于解码端获取相应的处理规则;对应的在解码端可以从码流中序列、图像或条带等编码元素中解析得到相应的跳转参数或映射参数。  That is to say, the above-mentioned jump parameters used to indicate the rules of the jump sequence between code tables or the mapping parameters used to indicate the element mapping processing method in the code table may be pre-reserved in the entropy encoding and entropy decoding systems. It is also possible to update the jump order rules between code tables or the element processing rules in the code table according to the characteristics of the entropy coding sequence or image or strip at the entropy coding end, and write the above rules into the entropy coding information such as the sequence, image or strip, In order to facilitate the decoding end to obtain corresponding processing rules; correspondingly, the corresponding jump parameters or mapping parameters can be obtained by parsing from encoding elements such as sequences, images, or slices in the code stream at the decoding end. the

在熵编码过程中,上述本发明实施例具体可以用于对以下任意一项或多项当前编码数据进行熵编码操作:  In the process of entropy encoding, the above-mentioned embodiments of the present invention can specifically be used to perform entropy encoding operations on any one or more of the following currently encoded data:

(1)当前熵编码数据为图像亮度分量;  (1) The current entropy coding data is the image brightness component;

(2)当前熵编码数据为图像色度分量;  (2) The current entropy coded data is the image chrominance component;

(3)当前熵编码数据为帧内熵编码数据;  (3) The current entropy encoded data is intra-frame entropy encoded data;

(4)当前熵编码数据为帧间熵编码数据。  (4) The current entropy encoded data is inter-frame entropy encoded data. the

在熵解码过程中,上述本发明实施例具体可以用于对以下任意一项或多项当前熵解码数据进行熵解码操作:  In the process of entropy decoding, the above-mentioned embodiments of the present invention can be specifically used to perform entropy decoding operations on any one or more of the following current entropy decoding data:

(1)当前熵解码数据为图像亮度分量;  (1) The current entropy decoding data is the image brightness component;

(2)当前熵解码数据为图像色度分量;  (2) The current entropy decoding data is the image chrominance component;

(3)当前熵解码数据为帧内熵编码数据;  (3) The current entropy decoding data is intra-frame entropy coding data;

(4)当前熵解码数据为帧间熵编码数据。  (4) The current entropy-decoded data is inter-frame entropy-coded data. the

为便于对本发明实施例的理解,下面将以具体的应用实例对本发明实施例的实现过程进行详细说明。  To facilitate the understanding of the embodiments of the present invention, the implementation process of the embodiments of the present invention will be described in detail below using specific application examples. the

具体实施例一  Specific embodiment one

在该实施例中,采用调整码表间跳转顺序的规则作为转换规,即采用码表跳转的实现方式获得相应的码表。  In this embodiment, the rules for adjusting the jump order between code tables are used as conversion rules, that is, the corresponding code tables are obtained by using code table jump implementation. the

假设经过变换后的块包括4×4块和8×8块,通常,4×4变换后获得的4×4块的数据分布比8×8块的数据分布更为陡峭,在使用8×8块对应的VLC和VLD码表编码或解码4×4块时,则可以通过改变码表跳转的条件的方式,以适应4×4块的数据分布规律。在这里经4×4变换(编码端)或4×4反变换(解码端)的图像块称为4×4变换块;经8×8变换(编码端)或8×8反变换(码端)的图像块称为8×8变换块。  Assume that the transformed blocks include 4×4 blocks and 8×8 blocks. Generally, the data distribution of 4×4 blocks obtained after 4×4 transformation is steeper than that of 8×8 blocks. When using 8×8 When the VLC and VLD code tables corresponding to a block encode or decode a 4×4 block, the data distribution rule of the 4×4 block can be adapted to by changing the jumping condition of the code table. The image block that undergoes 4×4 transformation (encoding end) or 4×4 inverse transformation (decoding end) is called a 4×4 transformation block; after 8×8 transformation (encoding end) or 8×8 inverse transformation (coding end ) is called an 8×8 transform block. the

假设,在熵编码或熵解码过程中,相应的8×8块对应VLC和VLD码表共有19张码表,具体可以包括:  Assume that in the process of entropy encoding or entropy decoding, there are 19 code tables corresponding to VLC and VLD code tables for the corresponding 8×8 block, which can specifically include:

(1)亮度块帧内编码码表7张,计为:VLC0_Intra,VLC1_Intra,VLC2_Intra,VLC3_Intra,VLC4_Intra,VLC5_Intra,VLC6_Intra;  (1) There are 7 code tables for intra-frame encoding of luma blocks, counted as: VLC0_Intra, VLC1_Intra, VLC2_Intra, VLC3_Intra, VLC4_Intra, VLC5_Intra, VLC6_Intra;

(2)亮度块帧间编码7张,计为:VLC0_Inter,VLC1_Inter,VLC2_Inter,VLC3_Inter,VLC4_Inter,VLC5_Inter,VLC6_Inter;  (2) 7 pieces of luminance block inter-frame coding, counted as: VLC0_Inter, VLC1_Inter, VLC2_Inter, VLC3_Inter, VLC4_Inter, VLC5_Inter, VLC6_Inter;

(3)色度块编码码表5张,计为:VLC0_Chroma,VLC1_Chroma,VLC2_Chroma,VLC3_Chroma,VLC4_Chroma。  (3) Five chrominance block code tables, counted as: VLC0_Chroma, VLC1_Chroma, VLC2_Chroma, VLC3_Chroma, VLC4_Chroma. the

其中,在利用上述各表对8×8数据块进行VLC编码或VLD解码时,码表的跳转规则是依次增一,即当编码元素满足一定条件时码表会切换到与当前码表序号紧邻但序号值大一的表,例如,由VLC5_Intra切换到VLC6_Intra等。  Among them, when using the above-mentioned tables to perform VLC encoding or VLD decoding on 8×8 data blocks, the jump rule of the code table is to increase one by one, that is, when the coding elements meet certain conditions, the code table will switch to the sequence number of the current code table. Tables that are next to each other but whose sequence number is one higher, for example, switch from VLC5_Intra to VLC6_Intra, etc. the

当利用上述各表对4×4变换后的数据块(即4×4块)进行VLC编码或VLD解码时,则由于4×4块的数据的分布规律与经过8×8变换获得的8×8块的数据的分布规律不一致,则可以采用与4×4块相适应的码表跳转规则进行各码表 的选择应用,以适应4×4块的数据的分布规律。考虑到通常情况下4×4块的数据的分布规律中相应的数据变化幅度要较8×8块更大一些,故其能够采用的码表跳转方式可以为如表1~表3所示:  When the above-mentioned tables are used to perform VLC encoding or VLD decoding on the 4×4 transformed data blocks (that is, 4×4 blocks), the data distribution of the 4×4 blocks is different from the 8×8 obtained through 8×8 transformation. If the distribution rules of the data of the 8 blocks are inconsistent, the code table jump rules suitable for the 4×4 blocks can be used to select and apply each code table to adapt to the distribution rules of the data of the 4×4 blocks. Considering that the corresponding data change range in the data distribution of 4×4 blocks is larger than that of 8×8 blocks in general, the code table jumping methods that can be used can be as shown in Table 1 to Table 3 :

表1  Table 1

Figure 2008100090572A00800101
Figure 2008100090572A00800101

表2  Table 2

Figure 2008100090572A00800102
Figure 2008100090572A00800102

表3  table 3

Figure 2008100090572A00800103
Figure 2008100090572A00800103

在上述三张跳转表中,在当前元素使用某一码表编码或解码时,若当前编码或解码元素满足预定条件时,则下一编码或解码元素所使用码表跳转至根据当前码表对应的跳转至确定的码表,具体为跳转到当前码表序号值加上对应的跳转值之和指向的码表。例如,对亮度块进行帧间编解码时,当前编码或解码元素使用的是亮度块帧间编码对应的各码表(即表2中的各码表) 中的VLC3_Inter码表,此时,若跳转参数N4的值为2,则在当前编码或解码元素满足预定条件时,则由于VLC3_Inter码表的序号为3,再将上N4值,则跳转后的码表的序号为5,即相应的下一编码或解码元素所使用的码表将跳转至序号值为5的VLC5_Inter码表。  In the above three jump tables, when the current element is coded or decoded using a certain code table, if the current coded or decoded element satisfies the predetermined condition, the code table used for the next coded or decoded element will jump to the code table according to the current code The table corresponds to a jump to a determined code table, specifically jumping to the code table pointed to by the sum of the current code table serial number plus the corresponding jump value. For example, when performing inter-frame encoding and decoding on a luma block, the current encoding or decoding element uses the VLC3_Inter code table in each code table corresponding to the inter-frame encoding of the luma block (that is, each code table in Table 2). At this time, if The value of the jump parameter N4 is 2, then when the current encoding or decoding element satisfies the predetermined condition, then because the sequence number of the VLC3_Inter code table is 3, and then the N4 value is added, the sequence number of the code table after the jump is 5, namely The code table used by the corresponding next encoding or decoding element will jump to the VLC5_Inter code table whose sequence number is 5. the

在上述三张跳转表中,若前编码或解码元素使用的是VLC5_Intra或VLC5_Inter或VLC3_Chroma码表时,则由于其为当前编码条件(例如亮度块帧内编码)下的倒数第二张码表,下一编码或解码元素所能够使用的码表仅能是最后一张码表,故相应的跳转参数值设置为1。  In the above three jump tables, if the VLC5_Intra or VLC5_Inter or VLC3_Chroma code table is used for the previous encoding or decoding element, it is the penultimate code table under the current encoding conditions (such as luma block intra-frame coding) , the code table that can be used for the next encoding or decoding element can only be the last code table, so the corresponding jump parameter value is set to 1. the

在上述三张跳转表中,若前编码或解码元素使用的是VLC6_Intra或VLC6_Inter或VLC4_Chroma码表时由于其为当前编码条件(例如亮度块帧内编码)下的最后一张码表,故跳转参数值不可得,并设置为N/A;即码表的跳转参数值与当前码表序号之和不能超过当前编码或解码条件下最后一张码表的序号值,否则,将无法确定跳转后采用的码表。  In the above three jump tables, if the previous encoding or decoding element uses the VLC6_Intra or VLC6_Inter or VLC4_Chroma code table because it is the last code table under the current coding conditions (such as luma block intra-frame coding), so jump The transfer parameter value is unavailable and set to N/A; that is, the sum of the jump parameter value of the code table and the serial number of the current code table cannot exceed the serial number value of the last code table under the current encoding or decoding conditions, otherwise, it will not be determined The code table used after the jump. the

在上述三张跳转表中,各个跳转参数值根据4×4块的数据的分布规律确定。若需要获得其他种块变换的码表,则相应的跳转参数需要根据该种块变换的数据的颁布规律进行设置。  In the above three jump tables, each jump parameter value is determined according to the distribution law of the data of the 4*4 blocks. If it is necessary to obtain code tables of other kinds of block transformations, the corresponding jump parameters need to be set according to the promulgation rules of the data of this kind of block transformations. the

上述跳转表可预先存储于编码与解码系统中,亦可在编码端根据当前编码序列、图像、条带的特性和内容更新跳转表并将更新后的跳转表存储于序列头或图像头或条带头中。解码端则从码流中的序列头或图像头或条带头中提取更新后的跳转表用于解码当前序列或图像或条带。  The above jump table can be pre-stored in the encoding and decoding system, and the jump table can also be updated at the encoding end according to the characteristics and contents of the current encoding sequence, image, and strip, and the updated jump table can be stored in the sequence header or image header or strip header. The decoding end extracts the updated jump table from the sequence header or picture header or slice header in the code stream to decode the current sequence or picture or slice. the

具体实施例二  Specific embodiment two

在该实施例中,编码端对熵编码码表中的元素进行映射,获得第二种块变换对应的熵编码参数;解码端,根据映射规则对使用第二种块变换的图像块数据进行映射,使用第一种块变换对应的熵解码码表解码所述映射后的数据。本发明实施例中亦可根据上述映射规则在分别在熵编码和熵解码端生成 第二变换对应的熵编码和熵解码码表,以编码和解码使用第二变换的图像块数据。  In this embodiment, the encoding end maps the elements in the entropy encoding code table to obtain the entropy encoding parameters corresponding to the second type of block transformation; the decoding end maps the image block data using the second type of block transformation according to the mapping rule , using the entropy decoding code table corresponding to the first type of block transformation to decode the mapped data. In the embodiment of the present invention, the entropy encoding and entropy decoding code tables corresponding to the second transformation can also be generated at the entropy encoding and entropy decoding ends respectively according to the above mapping rules, so as to encode and decode the image block data using the second transformation. the

以VLC编码和VLD解码码表为例,相应的码表中的元素包括:索引值、run、level、EOB。在此实施例中码表中的索引值为trans_coefficient。若当前编码中使用了4×4和8×8两种变换。由于在8×8变换中总共有64个像素值待编码,其run和level对最多可能有64对;而在4×4变换中总共有16个像素值待编码,其run和level对最多可能有16对。通常情况下EOB的值与当前码表所对应编码条件下run和level对的对数有关系。如果在统计意义下当前编码条件下run和level对的对数较多,则EOB的值会设为一个较大的数值,否则EOB为一个较小值。由于4×4变换块本身待编码元素就比8×8变换块少,故编码4×4变换块时,其所对应的EOB值应比8×8变换块所对应的EOB值小,否则会降低编码效率。  Taking VLC encoding and VLD decoding code table as an example, the elements in the corresponding code table include: index value, run, level, EOB. In this embodiment, the index value in the code table is trans_coefficient. If both 4×4 and 8×8 transforms are used in the current encoding. Since there are a total of 64 pixel values to be encoded in the 8×8 transform, there may be at most 64 pairs of run and level pairs; and there are a total of 16 pixel values to be encoded in the 4×4 transform, and the run and level pairs may be at most There are 16 pairs. Usually, the value of EOB is related to the logarithm of the pair of run and level under the coding conditions corresponding to the current code table. If there are more logarithms of run and level pairs under the current encoding conditions in a statistical sense, the value of EOB will be set to a larger value, otherwise EOB will be set to a smaller value. Since the 4×4 transform block itself has fewer elements to be encoded than the 8×8 transform block, when encoding the 4×4 transform block, the corresponding EOB value should be smaller than the EOB value corresponding to the 8×8 transform block, otherwise it will Reduce coding efficiency. the

综上所述,若当前编码系统保存的是基于8×8的码表,在使用该码表编码4×4变换块时EOB的值不宜设的太大。因此,在原先码表中EOB对应的值为M,在使用8×8变换的码表编码4×4变换块时码表中对应的EOB值可转换为一个较小值N,而原先码表中为N到M-1的索引值在编码4×4变换块数据时其值依次加1,但其所对应的run和level对数据不变。即原先run和level对所对应的索引值由N到M-1转换至N+1到M。这样,在编码4×4变换块数据时由于EOB的比特开销大幅减少,从而可以为编码4×4变换块带来较为理想的编码增益。  To sum up, if the current encoding system stores an 8×8 code table, the value of EOB should not be set too large when using this code table to encode a 4×4 transform block. Therefore, the value corresponding to EOB in the original code table is M, and the corresponding EOB value in the code table can be converted to a smaller value N when using the 8×8 transformed code table to encode a 4×4 transform block, while the original code table In the index value from N to M-1, the values of the index values from N to M-1 are sequentially increased by 1 when encoding 4×4 transform block data, but the corresponding run and level pairs of data remain unchanged. That is, the index value corresponding to the original run and level pair is converted from N to M-1 to N+1 to M. In this way, since the bit overhead of the EOB is greatly reduced when encoding the 4×4 transform block data, an ideal coding gain can be brought to the encoding of the 4×4 transform block. the

在解码端则在解码4×4变换块数据时,如果索引值在N+1到M之间,则索引值减1;如果索引值等于N,则索引值赋值为M。经上述操作后再将转换后的索引值在当前码表中查找得到对应的run和level对。  At the decoding end, when decoding 4×4 transform block data, if the index value is between N+1 and M, the index value is decremented by 1; if the index value is equal to N, the index value is assigned to M. After the above operations, search the converted index value in the current code table to obtain the corresponding pair of run and level. the

在上述处理过程中,相应的索引值与编码或解码元素的转换关系可以依据数据统计特性得到。例如,在VLC和VLD码表中,若EOB值为8,则在当前 编码或解码条件下统计意义上一个编码或解码图像块有7个run值和level值对。在编码4×4变换后的4×4图像块数据时,则可以将该码表EOB对应的值转换为‘0’,即在编码该4×4变换块时让EOB值由‘8’更改为0,将数值‘0’写入码流中,解码该4×4变换块时若解析得到数值为‘0’的元素,则将其值转换为‘8’,根据当前码表可知此元素为EOB,当前图像块解码结束。  During the above processing, the conversion relationship between the corresponding index value and the encoding or decoding element can be obtained according to the statistical characteristics of the data. For example, in the VLC and VLD code tables, if the EOB value is 8, a coded or decoded image block has 7 pairs of run values and level values in a statistical sense under current coding or decoding conditions. When encoding the 4×4 transformed 4×4 image block data, the value corresponding to the code table EOB can be converted to '0', that is, the EOB value is changed from '8' when encoding the 4×4 transformed block If it is 0, write the value '0' into the code stream. When decoding the 4×4 transform block, if the element with the value '0' is analyzed, its value will be converted to '8'. According to the current code table, this element can be known is EOB, the decoding of the current image block ends. the

假设实施例一的VLC3_Intra码表EOB所对应值为8,则在编码或解码经4×4变换后的4×4图像块数据时可将EOB值映射为0,而数值为0~7的索引值则依次映射至1~8,其所对应的run值和level值保持不变,参照下表所示,其中,表4为原始的8×8图像块的VLC3_Intra码表中EOB值、索引值与run和level的关系,表5则为映射处理之后的4×4图像块的码表中的EOB值、索引值如run和level数据之间的关系:  Assuming that the value corresponding to the EOB of the VLC3_Intra code table of Embodiment 1 is 8, the EOB value can be mapped to 0 when encoding or decoding the 4×4 image block data after 4×4 transformation, and the value is an index of 0 to 7 The values are mapped to 1 to 8 in turn, and the corresponding run value and level value remain unchanged, as shown in the following table, where Table 4 shows the EOB value and index value in the VLC3_Intra code table of the original 8×8 image block The relationship between run and level, Table 5 shows the relationship between the EOB value and index value in the code table of the 4×4 image block after the mapping process, such as run and level data:

表4  Table 4

Figure 2008100090572A00800131
Figure 2008100090572A00800131

表5  table 5

Figure 2008100090572A00800132
Figure 2008100090572A00800132

Figure 2008100090572A00800141
Figure 2008100090572A00800141

上述针对VLC3_Intra码表EOB值的转换方式可以扩展到实施例中其余18张码表。即设CurrentVLCTable代表当前码表,trans_coefficient为所述索引值。如果当前编码块是4×4变换块,则把CurrentVLCTable中的EOB值转换为‘0’,当编码EOB时将数值‘0’写入码流中;CurrentVLCTable中trans_coefficient为0到CurrentVLCTable中EOB对应值-1所对应的编码元素写码流时其值依次加1。解码时,如果当前块是4×4变换块,先进行映射操作如下:如果trans_coefficient在1到CurrentVLCTable中的EOB对应值(含)之间,则trans_coefficient减1;如果trans_coefficient等于0,则trans_coefficient赋值为CurrentVLCTable中的EOB的值。  The above conversion method for the EOB value of the VLC3_Intra code table can be extended to the remaining 18 code tables in the embodiment. That is, it is assumed that CurrentVLCTable represents the current code table, and trans_coefficient is the index value. If the current encoding block is a 4×4 transformation block, convert the EOB value in CurrentVLCTable to '0', and write the value '0' into the code stream when encoding EOB; trans_coefficient in CurrentVLCTable is 0 to the corresponding value of EOB in CurrentVLCTable The value of the encoding element corresponding to -1 is incremented by 1 when the code stream is written. When decoding, if the current block is a 4×4 transform block, the mapping operation is performed as follows: if trans_coefficient is between 1 and the corresponding value of EOB in CurrentVLCTable (inclusive), then trans_coefficient is reduced by 1; if trans_coefficient is equal to 0, then trans_coefficient is assigned a value of The value of EOB in CurrentVLCTable. the

可以看出,通过上述映射转换方式对保存的码表中的元素进行转换后便可以获得期望的尺寸的图像块对应的码表,并且该码表是通过一定处理规则获得而无需存储于编码和解码系统之中,有效节省了系统资源。  It can be seen that the code table corresponding to the image block of the desired size can be obtained after converting the elements in the saved code table through the above-mentioned mapping conversion method, and the code table is obtained through certain processing rules without storing in the encoding and In the decoding system, system resources are effectively saved. the

上述不同变换下码表元素的映射规则可预先存储于编码与解码系统中,亦可在编码端根据当前编码序列、图像、条带的特性和内容更新所述映射规则并将更新后的映射规则存储于序列头或图像头或条带头中。解码端则从码流中的序列头或图像头或条带头中提取更新后的映射规则用于解码当前序列或图像或条带。  The mapping rules of the above-mentioned code table elements under different transformations can be pre-stored in the encoding and decoding system, and the mapping rules can also be updated at the encoding end according to the characteristics and contents of the current encoding sequence, image, and strip, and the updated mapping rules Stored in the sequence header or picture header or slice header. The decoding end extracts the updated mapping rule from the sequence header or picture header or slice header in the code stream to decode the current sequence or picture or slice. the

本发明实施例还提供了一种熵编码装置,其具体实现结构如图2所示,可以包括以下处理单元:  The embodiment of the present invention also provides an entropy encoding device, its specific implementation structure is shown in Figure 2, and may include the following processing units:

(1)第一存储单元,用于保存的第一种块变换对应的熵编码码表;  (1) The first storage unit is used to store the entropy encoding code table corresponding to the first block transformation;

(2)第一码表处理单元,用于根据对所述第一存储单元保存的第一种块变换对应的熵编码码表进行映射处理,获得第二种块变换对应的熵编码码表参数;  (2) The first code table processing unit is configured to perform mapping processing on the entropy coding code table corresponding to the first type of block transformation stored in the first storage unit to obtain the parameters of the entropy coding code table corresponding to the second type of block transformation ;

其中,该第一码表处理单元具体可以采用的映射处理包括以下任意一种实现方式:  Wherein, the specific mapping processing that the first code table processing unit can adopt includes any of the following implementations:

方式一:根据用于确定跳转后的码表序号的跳转参数进行映射操作,其中,所述的跳转参数为跳转后的码表序号,或者,所述的跳转参数为跳转后的码表序号与当前的码序号之间的差值;  Mode 1: perform the mapping operation according to the jump parameter used to determine the code table serial number after the jump, wherein the jump parameter is the code table serial number after the jump, or the jump parameter is the jump The difference between the code table serial number after and the current code serial number;

方式二:根据第二种块变换对应的映射参数调整所述第一种块变换对应的熵编码码表中的元素值,获得第二种块变换对应的熵编码码表参数;  Mode 2: Adjust the element values in the entropy coding code table corresponding to the first block transformation according to the mapping parameters corresponding to the second block transformation, and obtain the entropy coding code table parameters corresponding to the second block transformation;

(3)编码单元,用于使用所述第一码表处理单元获得的第二种块变换对应的熵编码码表参数对第二种块变换的图像块的数据进行熵编码操作;  (3) a coding unit, used to use the entropy coding code table parameters corresponding to the second block transformation obtained by the first code table processing unit to perform entropy coding operations on the data of the image block of the second block transformation;

该所述编码单元用于根据所述第二种块变换对应的熵编码码表参数对当前或下一个使采用第二变换处理的第二种块变换的图像块的数据进行熵编码操作。  The encoding unit is configured to perform an entropy encoding operation on the data of the current or next image block transformed by the second type of block processed by the second type of transformation according to the entropy encoding code table parameters corresponding to the second type of block transformation. the

可选地,在该装置中还可以包括第一跳转参数获取单元,用于获取预先设定的跳转参数;或者,也可以用于获取根据当前编码序列或编码图像或编码条带的编码特性确定的跳转参数,并通知编码单元将所述跳转参数写入编码码流中。  Optionally, the device may also include a first jump parameter acquisition unit, configured to acquire a preset jump parameter; or, it may also be used to acquire a coding sequence based on a current coding sequence or a coding image or a coding strip. The jump parameters determined by the characteristics, and notify the encoding unit to write the jump parameters into the encoded code stream. the

可选地,该装置中还可以包括第一括映射参数获取单元,用于获取预先设定的映射参数;或者,也可以用于获取根据当前编码序列或编码图像或编码条带的编码特性确定的当前编码序列或编码图像或编码条带的映射参数,并通知编码单元将所述映射参数写入码流中。  Optionally, the device may also include a first mapping parameter acquisition unit, configured to acquire preset mapping parameters; or, may also be used to acquire a mapping parameter determined according to the encoding characteristics of the current encoding sequence or encoding image or encoding slice. The mapping parameters of the current coding sequence or coded image or coded slice, and notify the coding unit to write the mapping parameters into the code stream. the

本发明实施例还提供了一种熵解码装置,其具体实现结构如图3所示,可以包括以下处理单元:  The embodiment of the present invention also provides an entropy decoding device, its specific implementation structure is shown in Figure 3, and may include the following processing units:

(1)第二存储单元,用于保存的第一种块变换对应的熵解码码表;  (1) The second storage unit is used to store the entropy decoding code table corresponding to the first block transformation;

(2)第二码表处理单元,用于根据第二存储单元保存的第一种块变换对应的熵解码码表映射获得第二种块变换对应的熵解码码表参数;  (2) The second code table processing unit is used to obtain the entropy decoding code table parameters corresponding to the second block transformation according to the entropy decoding code table mapping corresponding to the first block transformation preserved by the second storage unit;

该第二码表处理单元采用的映射的处理可以包括以下任一方式:  The processing of the mapping adopted by the second code table processing unit can include any of the following methods:

方式一:根据用于确定跳转后的码表序号的跳转参数进行映射操作,其中,所述的跳转参数为跳转后的码表序号,或者,所述的跳转参数为跳转后的码表序号与当前的码序号之间的差值;  Mode 1: perform the mapping operation according to the jump parameter used to determine the code table serial number after the jump, wherein the jump parameter is the code table serial number after the jump, or the jump parameter is the jump The difference between the code table serial number after and the current code serial number;

方式二:根据映射参数调整所述第二种块变换对应的数据元素,并根据调整后的数据元素值及第一种块变换对应的熵解码码表获得第二种块变换对应的熵解码码表参数;或者,也可以根据映射参数调整所述第一种块变换对应的熵解码码表中的数据元素,将调整结果作为第二种块变换对应的熵解码码表参数;  Mode 2: Adjust the data elements corresponding to the second type of block transformation according to the mapping parameters, and obtain the entropy decoding code corresponding to the second type of block transformation according to the adjusted data element value and the entropy decoding code table corresponding to the first type of block transformation Table parameters; or, the data elements in the entropy decoding code table corresponding to the first block transformation can also be adjusted according to the mapping parameters, and the adjustment result is used as the entropy decoding code table parameter corresponding to the second block transformation;

(3)解码单元,用于使用所述第二码表处理单元获得的第二种块变换对应的熵编码码表参数对第二种块变换的图像块的数据进行熵解码操作。  (3) A decoding unit, configured to use the entropy coding code table parameters corresponding to the second type of block transformation obtained by the second code table processing unit to perform entropy decoding operations on the data of the image block of the second type of block transformation. the

该解码单元用于根据所述第二种块变换对应的熵解码码表参数对当前或下一个使采用第二变换处理的第二种块变换下的图像进行熵编码操作。  The decoding unit is configured to perform an entropy coding operation on the current or next image under the second type of block transformation using the second type of block transformation according to the entropy decoding code table parameters corresponding to the second type of block transformation. the

可选地,在该装置中还可以包括第二跳转参数获取单元,用于获取预先设定的跳转参数;或者,用于根据当前解码序列或解码图像或解码条带从接收到的编码码流中获取的当前解码序列或解码图像或解码条带的映射参数。  Optionally, the device may also include a second jump parameter acquisition unit, configured to acquire a preset jump parameter; Mapping parameters of the current decoded sequence or decoded image or decoded slice obtained in the bitstream. the

可选地,在该装置还可以包括第二映射参数获取单元,用于获取预先设定的映射参数;或者,用于根据当前解码序列或解码图像或解码条带从接收到的编码码流中获取的当前解码序列或解码图像或解码条带的映射参数。  Optionally, the device may further include a second mapping parameter acquisition unit, configured to acquire preset mapping parameters; or, configured to obtain the coded code stream received according to the current decoding sequence or decoded image or decoded slice Get the mapping parameters of the currently decoded sequence or decoded image or decoded slice. the

综上所述,本发明实施例的实现可以根据当前尺寸的图像块的数据统计特性获得适合的码表,进而有效减少因ABT(Adapt Block Transform,自适应种块变换)技术而带来的熵编码码表开销。而且,本发明实施例中仅需要 保存某一尺寸的图像块对应的码表便可以获得其他尺寸的图像块的码表,因而可以有效降低硬件资源的占用,同时还可以兼顾提高相应的编解码效率。  In summary, the implementation of the embodiment of the present invention can obtain a suitable code table according to the data statistical characteristics of the image block of the current size, thereby effectively reducing the entropy caused by the ABT (Adapt Block Transform, Adaptive Block Transform) technology Encoding code table overhead. Moreover, in the embodiment of the present invention, it is only necessary to save the code table corresponding to an image block of a certain size to obtain the code table of an image block of another size, so that the occupation of hardware resources can be effectively reduced, and at the same time, the corresponding encoding and decoding can be improved. efficiency. the

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。  The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of changes or modifications within the technical scope disclosed in the present invention. Replacement should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims. the

Claims (30)

1. An image entropy coding method, comprising:
mapping to obtain entropy coding code table parameters corresponding to a second block transformation according to an entropy coding code table corresponding to the first block transformation, and performing entropy coding on the second block transformation image block data by using the entropy coding code table parameters;
the mapping processing comprises the step of mapping according to a jump parameter for determining the code table serial number after the jump of the entropy coding code table; or adjusting element values in the entropy coding code table corresponding to the first block transform according to the mapping parameters to obtain entropy coding code table parameters corresponding to the second block transform after mapping; the mapping parameter and the skip parameter are determined according to the statistical properties of the corresponding second block transform.
2. The method as claimed in claim 1, wherein when the mapping operation is performed using a skip parameter according to the code table number used for determining the skip of the entropy coding code table, the skip parameter is the code table number of the entropy coding code table after the skip, or the skip parameter is a difference value between the code table number of the entropy coding code table after the skip and the current code table number.
3. The method of claim 2, wherein entropy encoding the second block-transformed image block data using the entropy encoding code table parameters comprises:
and after the coding code table corresponding to the second block transform is determined in the coding code table corresponding to the first block transform according to the code table serial number jumped by the entropy coding code table, entropy coding is carried out on the data of the current or next second block transform image block according to the coding code table corresponding to the second block transform.
4. The method as claimed in claim 2, wherein the step of obtaining the skipped code table sequence number of the entropy coding code table further comprises:
if the code table corresponding to the serial number of the current code table is the penultimate code table under the current coding condition, the serial number of the code table after the entropy coding code table jumps is the serial number of the code table corresponding to the last code table under the current coding condition;
or,
and if the code table corresponding to the current code table serial number is the last code table under the current coding condition, not performing entropy coding code table skip operation.
5. The method of claim 2, wherein the hop parameter is preset; or, determining the jump parameter according to the coding characteristic of the current coding sequence or the coding image or the coding strip, and writing the jump parameter into the coding code stream.
6. The method of claim 1, wherein the step of adjusting the values of the elements in the entropy coding code table corresponding to the first block transform comprises;
and carrying out mapping adjustment processing on element values in a preset numerical value range in a coding code table corresponding to the first block transformation.
7. The method of claim 1, wherein the adjusting the values of the elements in the entropy coding code table corresponding to the first block transform comprises:
if the element value in the code table is the end mark of the current image block, mapping the element value M to N, wherein M and N are respectively an integer value, adding 1 to the element value between N and M-1, and keeping the index relationship between the element value and other elements in the code table unchanged.
8. The method of claim 1, wherein the mapping parameter is preset; or determining the mapping parameters of the current coding sequence or the coding image or the coding strip according to the coding characteristics of the current coding sequence or the coding image or the coding strip, and writing the mapping parameters into the code stream.
9. The method according to claim 5 or 8, wherein the coding characteristics of the coded sequence or coded picture or coded slice comprise: pixel values, residual values, mathematical statistical characteristic values of pixel values or residual values of a sequence or image or strip, or pixel values and mathematical statistical characteristic values of residual values of a sequence or image or strip.
10. The method according to any of claims 1 to 8, wherein said entropy encoding code table parameters comprises: at least one of the sequence number and type of an intra-frame brightness coding code table under variable length coding, the sequence number and type of an inter-frame brightness coding code table, the sequence number and type of an intra-frame chroma coding code table, the sequence number and type of an inter-frame chroma coding code table, run, quantization coefficient value level, transform coefficient trans _ coefficient, escape coefficient difference value escape _ level _ diff and an increase image block end mark EOB; the data of the image block comprises values of run and values of quantized coefficient value level.
11. An entropy decoding method, comprising:
mapping according to the entropy decoding code table corresponding to the first block transformation to obtain entropy decoding code table parameters corresponding to the second block transformation, and performing entropy decoding on the image block data under the second block transformation by using the entropy decoding code table parameters;
the mapping processing comprises mapping operation according to a jump parameter for determining a code table sequence number after the jump of the entropy decoding code table; or adjusting the element value in the entropy decoding code table corresponding to the first block transform according to the mapping parameter to obtain the entropy decoding code table parameter corresponding to the second block transform after mapping; the mapping parameter and the skip parameter are determined according to the statistical properties of the corresponding second block transform.
12. The method as claimed in claim 11, wherein when the mapping operation is performed by using a jump parameter according to the code table sequence number used for determining the jump of the entropy-decoded code table, the jump parameter is the code table sequence number after the jump of the entropy-decoded code table, or the jump parameter is a difference value between the code table sequence number after the jump of the entropy-decoded code table and the current code table sequence number.
13. The method of claim 12, wherein entropy decoding the block data of the second block transform using the entropy decoding code table parameters comprises:
and after the decoding code table corresponding to the second block transform is determined in the decoding code table corresponding to the first block transform according to the code table serial number after the entropy decoding code table is jumped, performing entropy decoding on the data of the current or next image block using the second block transform according to the decoding code table corresponding to the second block transform.
14. The method as claimed in claim 12, wherein the obtaining the skipped code table sequence number further comprises:
if the code table corresponding to the current code table serial number is the penultimate code table under the current decoding condition, the code table serial number after the entropy decoding code table jumps is the code table serial number corresponding to the last code table under the current decoding condition;
or,
and if the code table corresponding to the current code table serial number is the last code table under the current decoding condition, skipping the entropy decoding code table.
15. The method of claim 12, wherein the hop parameter is preset; or, the decoding sequence or the decoding image or the decoding stripe is obtained by analyzing from the received coding code stream according to the current decoding sequence or the decoding image or the decoding stripe.
16. The method of claim 11, wherein the mapping process comprises:
and adjusting the data elements corresponding to the second block transform according to the mapping parameters, and obtaining the entropy decoding code table parameters corresponding to the second block transform according to the adjusted data element values and the entropy decoding code table corresponding to the first block transform.
17. The method of claim 11 or 16, wherein the adjustment of the data element value comprises; and carrying out mapping adjustment processing on element values in a preset numerical range.
18. The method according to claim 11 or 16, wherein said entropy decoding the data of the second image block under block transform using the entropy decoding code table parameters comprises:
if the data element value obtained by analyzing the code stream is N, the data element value is mapped to a value M of an image block end mark in the current entropy decoding code table, the data element value between the data element value N +1 and M in the code stream is subtracted by 1, the index relation between the data element value and other elements in the current entropy decoding code table is kept unchanged, and N and M are integer values.
19. The method according to claim 11 or 16, wherein the mapping parameter is preset; or, the decoding sequence or the decoding image or the decoding stripe is obtained by analyzing from the received coding code stream according to the current decoding sequence or the decoding image or the decoding stripe.
20. The method according to any of claims 11 to 19, wherein entropy decoding the code table parameters comprises: at least one of the sequence number and the type of an intra-frame brightness decoding code table, the sequence number and the type of an inter-frame brightness decoding code table, the sequence number and the type of an intra-frame chroma decoding code table, the sequence number and the type of an inter-frame chroma decoding code table, a run, a quantization coefficient value level, a transform coefficient trans _ coefficient, a transfer coefficient difference value escape _ level _ diff and an increase image block end mark EOB under variable length decoding; the data of the image block comprises values of run and values of quantized coefficient value level.
21. An entropy encoding apparatus, characterized by comprising:
the first storage unit is used for storing an entropy coding code table corresponding to the first block transform;
the first code table processing unit is used for carrying out mapping processing according to the entropy coding code table corresponding to the first block transform stored in the first storage unit to obtain entropy coding code table parameters corresponding to the second block transform;
an encoding unit, configured to perform entropy encoding operation on the data of the image block of the second block transform by using the entropy encoding code table parameters corresponding to the second block transform obtained by the first code table processing unit;
the first code table processing unit performs mapping processing, including mapping operation according to a jump parameter for determining a code table sequence number after the entropy coding code table jumps; or adjusting element values in the entropy coding code table corresponding to the first block transform according to the mapping parameters to obtain entropy coding code table parameters corresponding to the second block transform after mapping; the mapping parameter and the skip parameter are determined according to the statistical properties of the corresponding second block transform.
22. The apparatus of claim 21, wherein the first code table processing unit is configured to, during the mapping process, determine the skip parameter as a skipped code table sequence number, or determine the skip parameter as a difference between the skipped code table sequence number and a current code table sequence number; and the coding unit is used for performing entropy coding operation on the data of the current or next image block of the second block transform processed by the second transform according to the entropy coding code table parameters corresponding to the second block transform.
23. The apparatus of claim 22, further comprising a first skip parameter obtaining unit for obtaining a preset skip parameter; or, the method is used for acquiring the jump parameter determined according to the coding characteristic of the current coding sequence, the coding image or the coding strip, and informing the coding unit to write the jump parameter into the coding code stream.
24. The apparatus of claim 21, wherein the first code table processing unit performs mapping processing comprising: adjusting element values in an entropy coding code table corresponding to the first block transformation according to mapping parameters corresponding to the second block transformation to obtain entropy coding code table parameters corresponding to the second block transformation; and the coding unit is used for performing entropy coding operation on the data of the image block of the current or next second block transform according to the entropy coding code table parameters corresponding to the second block transform obtained by adjustment.
25. The apparatus according to claim 24, further comprising a first mapping parameter obtaining unit, configured to obtain a preset mapping parameter; or the mapping unit is used for acquiring the mapping parameters of the current coding sequence, the coding image or the coding strip determined according to the coding characteristics of the current coding sequence, the coding image or the coding strip, and informing the coding unit to write the mapping parameters into the code stream.
26. An entropy decoding apparatus, comprising:
the second storage unit is used for storing the entropy decoding code table corresponding to the first block transform;
the second code table processing unit is used for obtaining the entropy decoding code table parameters corresponding to the second block transformation according to the entropy decoding code table mapping corresponding to the first block transformation stored in the second storage unit;
a decoding unit, configured to perform entropy decoding operation on the data of the image block of the second block transform by using the entropy decoding code table parameters corresponding to the second block transform obtained by the second code table processing unit;
the second code table processing unit performs mapping processing, including mapping operation according to a jump parameter for determining a code table sequence number after the jump of the entropy decoding code table; or adjusting the element value in the entropy decoding code table corresponding to the first block transform according to the mapping parameter to obtain the entropy decoding code table parameter corresponding to the second block transform after mapping; the mapping parameter and the skip parameter are determined according to the statistical properties of the corresponding second block transform.
27. The apparatus as claimed in claim 26, wherein the second code table processing unit is configured to, during the mapping process, determine the skip parameter as a skipped code table sequence number, or determine the skip parameter as a difference between the skipped code table sequence number and a current code table sequence number; and the decoding unit is used for carrying out entropy decoding operation on the image under the second block transform which is currently or next processed by the second transform according to the entropy decoding code table parameters corresponding to the second block transform.
28. The apparatus of claim 27, further comprising a second skip parameter obtaining unit for obtaining a preset skip parameter; or, the skip parameter is used for acquiring the current decoding sequence or decoding image or decoding strip from the received coding code stream according to the current decoding sequence or decoding image or decoding strip.
29. The apparatus of claim 26, wherein the processing of the mapping employed by the second code table processing unit comprises: adjusting the data elements corresponding to the second block transform according to the mapping parameters, and obtaining entropy decoding code table parameters corresponding to the second block transform according to the adjusted data element values and the entropy decoding code table corresponding to the first block transform; and the decoding unit is used for carrying out entropy decoding operation on the data of the current or next image block of the second block transform processed by the second transform according to the entropy decoding code table parameters corresponding to the second block transform obtained by adjustment.
30. The apparatus according to claim 29, further comprising a second mapping parameter obtaining unit, configured to obtain a preset mapping parameter; or, the mapping parameter is used for obtaining the current decoding sequence or decoding image or decoding strip from the received coding code stream according to the current decoding sequence or decoding image or decoding strip.
CN 200810009057 2008-01-31 2008-01-31 Method and apparatus for image entropy encoding, entropy decoding Active CN101500159B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 200810009057 CN101500159B (en) 2008-01-31 2008-01-31 Method and apparatus for image entropy encoding, entropy decoding
PCT/CN2009/070299 WO2009097810A1 (en) 2008-01-31 2009-01-23 A method and device for image entropy encoding and entropy decoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810009057 CN101500159B (en) 2008-01-31 2008-01-31 Method and apparatus for image entropy encoding, entropy decoding

Publications (2)

Publication Number Publication Date
CN101500159A CN101500159A (en) 2009-08-05
CN101500159B true CN101500159B (en) 2012-01-11

Family

ID=40947004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810009057 Active CN101500159B (en) 2008-01-31 2008-01-31 Method and apparatus for image entropy encoding, entropy decoding

Country Status (2)

Country Link
CN (1) CN101500159B (en)
WO (1) WO2009097810A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107027037B (en) * 2012-01-20 2020-06-23 索尼公司 Method and device for coding effective graph with reduced complexity
CN103414897B (en) * 2013-07-31 2016-05-18 北京蛙视通信技术股份有限公司 To method and the device of the decoding of video image entropy
CN103841405B (en) * 2014-03-21 2016-07-06 华为技术有限公司 The decoding method of depth image and coding and decoding device
CN105094978B (en) * 2014-05-15 2020-02-28 研祥智能科技股份有限公司 Voice processing device and method
EP3349454A1 (en) * 2017-01-11 2018-07-18 Thomson Licensing Method and device for coding a block of video data, method and device for decoding a block of video data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6646578B1 (en) * 2002-11-22 2003-11-11 Ub Video Inc. Context adaptive variable length decoding system and method
CN1689026A (en) * 2002-10-03 2005-10-26 诺基亚有限公司 Context-based adaptive variable length coding for adaptive block transforms
CN1717938A (en) * 2004-05-20 2006-01-04 株式会社摩迩迪 System and method for encoding moving pictures of mobile communication terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4130780B2 (en) * 2002-04-15 2008-08-06 松下電器産業株式会社 Image encoding method and image decoding method
JP4090862B2 (en) * 2002-04-26 2008-05-28 松下電器産業株式会社 Variable length encoding method and variable length decoding method
CN1589023A (en) * 2004-08-06 2005-03-02 联合信源数字音视频技术(北京)有限公司 Coding and decoding method and device for multiple coded list lengthening based on context

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1689026A (en) * 2002-10-03 2005-10-26 诺基亚有限公司 Context-based adaptive variable length coding for adaptive block transforms
US6646578B1 (en) * 2002-11-22 2003-11-11 Ub Video Inc. Context adaptive variable length decoding system and method
CN1717938A (en) * 2004-05-20 2006-01-04 株式会社摩迩迪 System and method for encoding moving pictures of mobile communication terminal

Also Published As

Publication number Publication date
CN101500159A (en) 2009-08-05
WO2009097810A1 (en) 2009-08-13

Similar Documents

Publication Publication Date Title
RU2765300C1 (en) Method for encoding and decoding of images, encoding and decoding device and corresponding computer programs
RU2736421C1 (en) Method of encoding and decoding images and encoding and decoding device
JP6701391B2 (en) Digital frame encoding/decoding by downsampling/upsampling with improved information
US9215463B2 (en) Image encoding/decoding method and device
US20160330468A1 (en) Image encoding device, image decoding device, encoded stream conversion device, image encoding method, and image decoding method
WO2013067436A1 (en) Binarization of prediction residuals for lossless video coding
CN103636207B (en) Variable length coding coefficient decoding for luma and chroma blocks
US20160088299A1 (en) Adaptive picture section encoding mode decision control
KR20130010124A (en) Variable length coding of coded block pattern (cbp) in video compression
WO2023040600A1 (en) Image encoding method and apparatus, image decoding method and apparatus, electronic device, and medium
JP2014520493A (en) Lossless coding and related signaling methods for composite video
JP2011507450A (en) Variable length coding method and apparatus
EP1768415A1 (en) Adaptive scan order of DCT coefficients and its signaling
CN112106365B (en) Method and apparatus for adaptive context modeling in video encoding and decoding
CN116668695B (en) Method, computing device and storage medium for video encoding
CN116746148A (en) Residual and coefficient coding for video coding
CN101500159B (en) Method and apparatus for image entropy encoding, entropy decoding
CN116803077A (en) Residual and coefficient coding for video coding
TWI848530B (en) Image decoding methods, image coding method, and devices thereof
CN110708547B (en) Efficient entropy coding grouping method for transform modes
CN101836453B (en) Method for alternating entropy coding
CN116527927B (en) Image decoding method, image encoding method and device
US9247257B1 (en) Segmentation based entropy encoding and decoding
KR20250038735A (en) Image encoding and decoding method and device
WO2022217417A1 (en) Encoding method, decoding method, encoder, decoder and storage medium

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