[go: up one dir, main page]

HK1233402B - Image encoding device and image encoding method - Google Patents

Image encoding device and image encoding method Download PDF

Info

Publication number
HK1233402B
HK1233402B HK17106459.2A HK17106459A HK1233402B HK 1233402 B HK1233402 B HK 1233402B HK 17106459 A HK17106459 A HK 17106459A HK 1233402 B HK1233402 B HK 1233402B
Authority
HK
Hong Kong
Prior art keywords
image
unit
block
coding
prediction
Prior art date
Application number
HK17106459.2A
Other languages
Chinese (zh)
Other versions
HK1233402A (en
HK1233402A1 (en
Inventor
关口俊一
杉本和夫
坂手宽治
村上笃道
峯泽彰
Original Assignee
三菱电机株式会社
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 三菱电机株式会社 filed Critical 三菱电机株式会社
Publication of HK1233402A publication Critical patent/HK1233402A/en
Publication of HK1233402A1 publication Critical patent/HK1233402A1/en
Publication of HK1233402B publication Critical patent/HK1233402B/en

Links

Description

图像编码装置以及图像编码方法Image encoding device and image encoding method

本申请是申请号为201280028658.2,申请日为2012年6月5日,发明名称为“图像编码装置、图像解码装置、图像编码方法以及图像解码方法”的分案申请。This application is a divisional application of application number 201280028658.2, application date June 5, 2012, and invention name “Image encoding device, image decoding device, image encoding method and image decoding method”.

技术领域Technical Field

本发明涉及对图像进行压缩编码而传送的图像编码装置以及图像编码方法、和从通过图像编码装置传送的编码数据对图像进行解码的图像解码装置以及图像解码方法。The present invention relates to an image coding apparatus and an image coding method for compressing and coding an image and transmitting the image, and an image decoding apparatus and an image decoding method for decoding an image from coded data transmitted by the image coding apparatus.

背景技术Background Art

以往,在MPEG、ITU-TH.26x等国际标准影像编码方式中,在将输入影像帧分割为由16×16像素块构成的宏块的单位,并实施了运动补偿预测之后,按照块单位对预测差分信号进行正交变换/量化,从而进行信息压缩。In the past, in international standard image coding methods such as MPEG and ITU-TH.26x, after the input image frame was divided into macroblock units consisting of 16×16 pixel blocks and motion compensation prediction was implemented, the predicted differential signal was orthogonally transformed/quantized on a block basis to compress information.

但是,如果压缩率变高,则起因于在实施运动补偿预测时使用的预测参照图像的质量的降低,存在妨碍压缩效率的问题。However, if the compression rate becomes high, there is a problem that compression efficiency is impaired due to a decrease in the quality of the prediction reference image used when performing motion compensation prediction.

因此,在MPEG-4AVC/H.264的编码方式(参照非专利文献1)中,通过实施环内阻塞滤波的处理,从而去除伴随正交变换系数的量化而发生的预测参照图像的块失真。Therefore, in the MPEG-4 AVC/H.264 encoding method (see Non-Patent Document 1), an in-loop blocking filter process is performed to remove block distortion of a prediction reference image that occurs with quantization of orthogonal transform coefficients.

此处,图16是示出非专利文献1公开的图像编码装置的结构图。Here, FIG16 is a structural diagram showing the image encoding device disclosed in Non-Patent Document 1. In FIG16 , FIG16 is a structural diagram showing the image encoding device disclosed in Non-Patent Document 1.

在该图像编码装置中,如果块分割部101输入了编码对象的图像信号,则将该图像信号分割为宏块单位,将宏块单位的图像信号作为分割图像信号输出到预测部102。In this image coding apparatus, when a coding target image signal is input to the block division unit 101, the block division unit 101 divides the image signal into macroblock units and outputs the macroblock-based image signals as divided image signals to the prediction unit 102.

预测部102如果从块分割部101接收到分割图像信号,则在帧内或者帧间预测宏块内的各颜色分量的图像信号,计算预测差分信号。Upon receiving the divided image signal from the block division unit 101 , the prediction unit 102 predicts the image signal of each color component in the macroblock within a frame or between frames, and calculates a prediction difference signal.

特别是,在帧间实施运动补偿预测的情况下,按照宏块自身、或者将宏块进一步细分割而得到的子块的单位,搜索运动矢量。In particular, when motion compensation prediction is performed between frames, a motion vector is searched for each macroblock itself or each subblock obtained by further dividing the macroblock.

然后,使用该运动矢量,实施针对由存储器107保存的参照图像信号的运动补偿预测,从而生成运动补偿预测图像,求出表示该运动补偿预测图像的预测信号与分割图像信号的差分,从而计算预测差分信号。Then, using the motion vector, motion compensation prediction is performed on the reference image signal stored in the memory 107 to generate a motion compensation prediction image, and the difference between the prediction signal representing the motion compensation prediction image and the segmented image signal is obtained to calculate the prediction difference signal.

另外,预测部102将在得到预测信号时决定的预测信号生成用参数输出到可变长编码部108。Furthermore, the prediction unit 102 outputs the prediction signal generation parameters determined when the prediction signal is obtained to the variable-length coding unit 108 .

另外,在预测信号生成用参数中,例如,包括表示帧间的运动量的运动矢量等信息。Furthermore, the parameters for prediction signal generation include, for example, information such as a motion vector indicating the amount of motion between frames.

压缩部103如果从预测部102接收到预测差分信号,则在通过实施针对该预测差分信号的DCT(离散余弦变换)处理而去除了信号相关之后,进行量化,从而得到压缩数据。Upon receiving the prediction difference signal from the prediction unit 102 , the compression unit 103 performs DCT (Discrete Cosine Transform) processing on the prediction difference signal to remove signal correlation, and then performs quantization to obtain compressed data.

局部解码部104如果从压缩部103接收到压缩数据,则通过对该压缩数据进行逆量化来实施逆DCT处理,计算与从预测部102输出的预测差分信号相当的预测差分信号。Upon receiving the compressed data from the compression unit 103 , the local decoding unit 104 performs inverse DCT processing on the compressed data by inverse quantizing the compressed data, thereby calculating a prediction difference signal corresponding to the prediction difference signal output from the prediction unit 102 .

加法器105如果从局部解码部104接收到预测差分信号,则将该预测差分信号和从预测部102输出的预测信号进行相加,生成局部解码图像。Upon receiving the prediction difference signal from the local decoding unit 104 , the adder 105 adds the prediction difference signal and the prediction signal output from the prediction unit 102 to generate a local decoded image.

环路滤波器106去除在表示由加法器105生成的局部解码图像的局部解码图像信号上重叠的块失真,将失真去除后的局部解码图像信号作为参照图像信号保存到存储器107中。The loop filter 106 removes block distortion superimposed on the local decoded image signal representing the local decoded image generated by the adder 105 , and stores the local decoded image signal after distortion removal in the memory 107 as a reference image signal.

可变长编码部108如果从压缩部103接收到压缩数据,则对该压缩数据进行熵编码,输出作为其编码结果的比特流。Upon receiving the compressed data from the compression unit 103 , the variable-length coding unit 108 performs entropy coding on the compressed data and outputs a bit stream as a result of the coding.

另外,可变长编码部108在输出比特流时,将从预测部102输出的预测信号生成用参数复用到比特流而输出。Furthermore, when outputting a bit stream, the variable-length coding unit 108 multiplexes the prediction signal generation parameters output from the prediction unit 102 into the bit stream and outputs the resultant.

此处,在非专利文献1公开的方式中,环路滤波器106针对DCT的块边界的周边像素,根据量化的粗细、编码模式、运动矢量的分散程度等信息来决定平滑化强度(滤波强度),实施针对局部解码图像的滤波处理,从而谋求降低在块边界中发生的失真(块失真)。Here, in the method disclosed in non-patent document 1, the loop filter 106 determines the smoothing intensity (filtering intensity) for the surrounding pixels of the DCT block boundary based on information such as the coarseness of quantization, the coding mode, and the degree of dispersion of the motion vector, and implements filtering processing on the local decoded image, thereby seeking to reduce the distortion (block distortion) occurring at the block boundary.

由此,参照图像信号的质量被改善,能够提高以后的编码中的运动补偿预测的效率。This improves the quality of the reference image signal and makes it possible to enhance the efficiency of motion compensation prediction in subsequent encoding.

非专利文献1:MPEG-4AVC(ISO/IEC14496-10)/ITU-TH.264标准Non-Patent Document 1: MPEG-4 AVC (ISO/IEC 14496-10)/ITU-TH.264 Standard

发明内容Summary of the Invention

以往的图像编码装置如以上那样构成,所以在环路滤波器106去除块失真时,关于针对该块的亮度信号分量的滤波的强度,根据编码模式等决定,但关于针对该块的色差信号分量的滤波的强度,挪用针对亮度信号分量的滤波的强度。因此,存在如下课题:针对色差信号分量的滤波的强度不一定恰当,画质的改善效果受限。Conventional image coding devices configured as described above have a problem where, when loop filter 106 removes block distortion, the filtering strength applied to the luma signal component of the block is determined based on the coding mode, etc., while the filtering strength applied to the chroma signal components of the block is derived from the filtering strength applied to the luma signal components. Consequently, the filtering strength applied to the chroma signal components is not always appropriate, limiting the effect of image quality improvement.

本发明是为了解决上述那样的课题而完成的,其目的在于得到一种能够提高块失真的去除精度来改善编码图像的质量的图像编码装置以及图像编码方法。The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide an image coding apparatus and an image coding method that can improve the accuracy of removing block distortion and thereby improve the quality of the coded image.

另外,本发明的目的在于得到一种能够提高块失真的去除精度来改善解码图像的质量的图像解码装置以及图像解码方法。Another object of the present invention is to provide an image decoding device and an image decoding method that can improve the accuracy of removing block distortion and thereby improve the quality of decoded images.

本发明涉及的图像编码装置,具备:块分割单元,将输入图像分割为成为实施预测处理时的处理单位的块;编码模式决定单元,决定针对由块分割单元分割出的块的编码模式;预测图像生成单元,依照由编码模式决定单元决定的编码模式,一边参照已编码块的局部解码图像,一边实施针对由块分割单元分割出的块的预测处理,生成预测图像;差分图像生成单元,生成由块分割单元分割出的块与由预测图像生成单元生成的预测图像的差分图像;图像压缩单元,对由差分图像生成单元生成的差分图像进行压缩,输出该差分图像的压缩数据;局部解码图像生成单元,对由图像压缩单元压缩的差分图像进行解压缩,将解压缩后的差分图像和由预测图像生成单元生成的预测图像进行相加而生成局部解码图像;失真去除单元,实施针对由局部解码图像生成单元生成的局部解码图像的滤波处理,去除该局部解码图像的块失真;以及编码单元,对从图像压缩单元输出的压缩数据以及由编码模式决定单元决定的编码模式进行编码,生成复用了该压缩数据以及编码模式的编码数据的比特流,失真去除单元在去除局部解码图像的块失真时,与由编码模式决定单元决定的编码模式相应地,按信号分量设定去除块失真的滤波的强度。The image coding device according to the present invention comprises: a block division unit for dividing an input image into blocks serving as processing units when performing prediction processing; a coding mode determination unit for determining a coding mode for the blocks divided by the block division unit; a prediction image generation unit for performing prediction processing on the blocks divided by the block division unit while referring to a local decoded image of an already coded block in accordance with the coding mode determined by the coding mode determination unit, thereby generating a prediction image; a difference image generation unit for generating a difference image between the blocks divided by the block division unit and the prediction image generated by the prediction image generation unit; an image compression unit for compressing the difference image generated by the difference image generation unit and outputting compressed data of the difference image; and a local decoded image generation unit for generating a prediction image. a unit for decompressing a differential image compressed by an image compression unit and adding the decompressed differential image to a prediction image generated by a prediction image generation unit to generate a local decoded image; a distortion removal unit for performing filtering processing on the local decoded image generated by the local decoded image generation unit to remove block distortion of the local decoded image; and a coding unit for encoding compressed data output from the image compression unit and a coding mode determined by a coding mode determination unit to generate a bit stream of coded data multiplexed with the compressed data and the coding mode, wherein the distortion removal unit sets the strength of the filter for removing the block distortion according to the signal component in accordance with the coding mode determined by the coding mode determination unit when removing the block distortion of the local decoded image.

根据本发明,构成为具备:块分割单元,将输入图像分割为成为实施预测处理时的处理单位的块;编码模式决定单元,决定针对由块分割单元分割出的块的编码模式;预测图像生成单元,依照由编码模式决定单元决定的编码模式,一边参照已编码块的局部解码图像,一边实施针对由块分割单元分割出的块的预测处理,生成预测图像;差分图像生成单元,生成由块分割单元分割出的块与由预测图像生成单元生成的预测图像的差分图像;图像压缩单元,对由差分图像生成单元生成的差分图像进行压缩,输出该差分图像的压缩数据;局部解码图像生成单元,对由图像压缩单元压缩的差分图像进行解压缩,将解压缩后的差分图像和由预测图像生成单元生成的预测图像进行相加而生成局部解码图像;失真去除单元,实施针对由局部解码图像生成单元生成的局部解码图像的滤波处理,去除该局部解码图像的块失真;以及编码单元,对从图像压缩单元输出的压缩数据以及由编码模式决定单元决定的编码模式进行编码,生成复用了该压缩数据以及编码模式的编码数据的比特流,失真去除单元在去除局部解码图像的块失真时,与由编码模式决定单元决定的编码模式相应地,按信号分量设定去除块失真的滤波的强度,所以具有能够提高块失真的去除精度来改善编码图像的质量的效果。According to the present invention, the present invention is configured to include: a block division unit that divides an input image into blocks that serve as processing units when performing prediction processing; a coding mode determination unit that determines a coding mode for the blocks divided by the block division unit; a prediction image generation unit that performs prediction processing on the blocks divided by the block division unit while referring to a local decoded image of an already coded block in accordance with the coding mode determined by the coding mode determination unit, thereby generating a prediction image; a difference image generation unit that generates a difference image between the blocks divided by the block division unit and the prediction image generated by the prediction image generation unit; an image compression unit that compresses the difference image generated by the difference image generation unit and outputs compressed data of the difference image; and a local decoded image generation unit that generates a difference image compressed by the image compression unit. Decompression is performed, and the decompressed differential image and the predicted image generated by the predicted image generating unit are added to generate a local decoded image; a distortion removal unit performs filtering processing on the local decoded image generated by the local decoded image generating unit to remove block distortion of the local decoded image; and an encoding unit encodes the compressed data output from the image compression unit and the encoding mode determined by the encoding mode determining unit to generate a bit stream of encoded data that multiplexes the compressed data and the encoding mode. When removing block distortion from the local decoded image, the distortion removal unit sets the strength of the filter for removing block distortion according to the signal component in accordance with the encoding mode determined by the encoding mode determining unit, thereby having the effect of improving the accuracy of removing block distortion and thus improving the quality of the encoded image.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是示出本发明的实施方式1的图像编码装置的结构图。FIG1 is a diagram showing the structure of an image encoding apparatus according to Embodiment 1 of the present invention.

图2是示出本发明的实施方式1的图像编码装置的处理内容的流程图。FIG2 is a flowchart showing the processing contents of the image encoding apparatus according to the first embodiment of the present invention.

图3是示出本发明的实施方式1的图像解码装置的结构图。FIG3 is a diagram showing the structure of the image decoding apparatus according to Embodiment 1 of the present invention.

图4是示出本发明的实施方式1的图像解码装置的处理内容的流程图。FIG4 is a flowchart showing the processing contents of the image decoding apparatus according to Embodiment 1 of the present invention.

图5是示出最大大小的编码块被分层地分割为多个编码块的情况的说明图。FIG. 5 is an explanatory diagram showing a case where a coding block of a maximum size is hierarchically divided into a plurality of coding blocks.

图6(a)是示出分割后的分区的分布的图,(b)是通过四叉树图表表示对层次分割后的分区分配编码模式m(Bn)的状况的说明图。FIG6(a) is a diagram showing the distribution of partitions after division, and FIG6(b) is an explanatory diagram showing, by a quadtree graph, the allocation of coding modes m( Bn ) to partitions after hierarchical division.

图7是示出编码块内的滤波应用像素的位置的说明图。FIG. 7 is an explanatory diagram showing the positions of filter-applied pixels within a coding block.

图8是示出环路滤波器部11的处理内容的流程图。FIG. 8 is a flowchart showing the processing contents of the loop filter unit 11 .

图9是示出滤波强度的判定方法的流程图。FIG9 is a flowchart illustrating a method for determining filter strength.

图10是示出边缘位置与像素位置的关系的说明图。FIG. 10 is an explanatory diagram showing the relationship between edge positions and pixel positions.

图11是示出针对垂直边缘的滤波处理的单位的说明图。FIG. 11 is an explanatory diagram showing a unit of filtering processing for a vertical edge.

图12是示出针对水平边缘的滤波处理的单位的说明图。FIG. 12 is an explanatory diagram showing a unit of filtering processing for a horizontal edge.

图13是示出Q(亮度的qP值)与参数β、Tc的对应关系的说明图。FIG. 13 is an explanatory diagram showing the correspondence relationship between Q (the qP value of brightness) and the parameters β and Tc.

图14是示出由可变长编码部13生成的比特流的说明图。FIG14 is an explanatory diagram showing a bit stream generated by the variable-length coding unit 13. In FIG14 , as shown in FIG14 , a bit stream is ...

图15是示出编码块Bn的大小是Ln=kMn的例子的说明图。FIG15 is an explanatory diagram showing an example in which the size of the coding block Bn is Ln = kMn .

图16是示出非专利文献1公开的图像编码装置的结构图。FIG16 is a diagram showing the structure of the image encoding device disclosed in Non-Patent Document 1. In FIG.

代码说明Code Description

1:编码控制部(编码模式决定单元);2:块分割部(块分割单元);3:切换开关(预测图像生成单元);4:帧内部预测部(预测图像生成单元);5:运动补偿预测部(预测图像生成单元);6:减法部(差分图像生成单元);7:变换/量化部(图像压缩单元);8:逆量化/逆变换部(局部解码图像);9:加法部(局部解码图像);10:帧内部预测用存储器;11:环路滤波器部(失真去除单元);12:运动补偿预测帧存储器;13:可变长编码部(编码单元);21:可变长解码部(解码单元);22:切换开关(预测图像生成单元);23:帧内部预测部(预测图像生成单元);24:运动补偿部(预测图像生成单元);25:逆量化/逆变换部(差分图像生成单元);26:加法部(解码图像生成单元);27:帧内部预测用存储器;28:环路滤波器部(失真去除单元);29:运动补偿预测帧存储器;101:块分割部;102:预测部;103:压缩部;104:局部解码部;105:加法器;106:环路滤波器;107:存储器;108:可变长编码部。1: Coding control unit (coding mode determination unit); 2: Block division unit (block division unit); 3: Switch (prediction image generation unit); 4: Intra-frame prediction unit (prediction image generation unit); 5: Motion compensation prediction unit (prediction image generation unit); 6: Subtraction unit (differential image generation unit); 7: Transformation/quantization unit (image compression unit); 8: Inverse quantization/inverse transformation unit (local decoded image); 9: Addition unit (local decoded image); 10: Memory for intra-frame prediction; 11: Loop filter unit (distortion removal unit); 12: Motion compensation prediction frame memory; 13: Variable length coding unit (coding unit); 21: Variable length decoding Coding unit (decoding unit); 22: switching switch (prediction image generation unit); 23: intra-frame prediction unit (prediction image generation unit); 24: motion compensation unit (prediction image generation unit); 25: inverse quantization/inverse transform unit (differential image generation unit); 26: adding unit (decoded image generation unit); 27: memory for intra-frame prediction; 28: loop filter unit (distortion removal unit); 29: motion compensation prediction frame memory; 101: block division unit; 102: prediction unit; 103: compression unit; 104: local decoding unit; 105: adder; 106: loop filter; 107: memory; 108: variable length coding unit.

具体实施方式DETAILED DESCRIPTION

以下,为了更详细地说明本发明,依照附图,说明用于实施该发明的方式。Hereinafter, in order to explain the present invention in more detail, embodiments of the present invention will be described with reference to the accompanying drawings.

实施方式1.Implementation method 1.

在该实施方式1中,说明:图像编码装置,该图像编码装置输入影像的各帧图像,并针对通过在接近帧间实施运动补偿预测而得到的预测差分信号进行基于正交变换、量化的压缩处理之后,进行可变长编码来生成比特流;和图像解码装置,该图像解码装置对从该图像编码装置输出的比特流进行解码。In this embodiment 1, there is described: an image encoding device that inputs each frame image of an image, performs compression processing based on orthogonal transformation and quantization on the predicted differential signal obtained by performing motion compensation prediction between adjacent frames, and then performs variable-length encoding to generate a bit stream; and an image decoding device that decodes the bit stream output from the image encoding device.

该实施方式1的图像编码装置的特征在于,适应于影像信号的空间/时间方向的局部的变化,将影像信号分割为各种大小的区域来进行帧内/帧间自适应编码。The image encoding apparatus of this first embodiment is characterized in that it divides the image signal into regions of various sizes to perform intra-frame/inter-frame adaptive encoding in response to local changes in the spatial and temporal directions of the image signal.

一般情况下,影像信号具有在空间/时间上信号的复杂度局部地变化的特性。在空间上观察时,在某特定的影像帧上,既有如天空、壁等那样的在比较宽的图像区域中具有均匀的信号特性的图样,又混合存在人物、具有细致的纹理的绘画等在小的图像区域内具有复杂的纹理图案的图样。In general, image signals exhibit locally varying signal complexity across space and time. When viewed spatially, within a given image frame, there are patterns with uniform signal characteristics across relatively wide image regions, such as the sky and walls, but also patterns with complex textures within smaller image regions, such as figures and paintings with detailed textures.

在时间上观察也是,关于天空、壁,局部上时间方向的图样的变化小,但关于活动的人物、物体,其轮廓在时间上进行刚体/非刚体的运动,所以时间上的变化大。When observing over time, the local changes in the time direction of the sky and walls are small, but the outlines of moving people and objects undergo rigid/non-rigid motion over time, so the changes over time are large.

在编码处理中,通过时间/空间上的预测而生成信号功率、熵小的预测差分信号,从而削减整体的代码量,但如果能够将用于预测的参数均匀地应用于尽可能大的图像信号区域,则能够减小该参数的代码量。In the encoding process, a predicted differential signal with low signal power and entropy is generated through temporal/spatial prediction, thereby reducing the overall amount of code. However, if the parameters used for prediction can be evenly applied to the largest possible image signal area, the amount of code for the parameter can be reduced.

另一方面,如果针对时间/空间上变化大的图像信号图案应用同一预测参数,则预测的错误增加,所以无法削减预测差分信号的代码量。On the other hand, if the same prediction parameters are applied to an image signal pattern that varies greatly in time and space, the prediction error increases, and thus the code amount of the prediction difference signal cannot be reduced.

因此,期望如下:针对时间/空间上变化大的图像信号图案,减小预测对象的区域,由此虽然增加用于预测的参数的数据量,但降低预测差分信号的功率/熵。Therefore, it is desirable to reduce the area of the prediction target for image signal patterns that vary greatly in time and space, thereby increasing the amount of parameter data used for prediction but reducing the power and entropy of the prediction difference signal.

为了进行这样的适合于影像信号的一般的性质的编码,在该实施方式1的图像编码装置中,从规定的最大块大小起分层地分割影像信号的区域,并针对每个分割区域实施预测处理、预测差分的编码处理。In order to perform such encoding suitable for the general properties of image signals, the image encoding device of embodiment 1 divides the image signal region into layers starting from a predetermined maximum block size, and performs prediction processing and prediction difference encoding processing on each divided region.

该实施方式1的图像编码装置作为处理对象的影像信号除了是由亮度信号和2个色差信号构成的YUV信号、从数字摄像元件输出的RGB信号等任意的颜色空间的彩色影像信号以外,还是单色图像信号、红外线图像信号等影像帧由水平/垂直二维的数字采样(像素)列构成的任意的影像信号。The image encoding device of this embodiment 1 processes image signals of arbitrary color spaces such as YUV signals composed of a luminance signal and two color difference signals, and RGB signals output from a digital imaging element, as well as arbitrary image signals such as monochrome image signals and infrared image signals whose image frames are composed of horizontal/vertical two-dimensional columns of digital samples (pixels).

各像素的灰度既可以是8比特,也可以是10比特、12比特等灰度。The grayscale of each pixel can be 8 bits, 10 bits, 12 bits, etc.

但是,在以下的说明中,只要没有特别说明,则设为输入的影像信号是YUV信号。而且,设为是2个色差分量U、V相对亮度分量Y被子采样的4:2:0格式的信号。However, in the following description, unless otherwise specified, the input video signal is assumed to be a YUV signal, and is assumed to be a 4:2:0 format signal in which the two color difference components U and V are subsampled relative to the luminance component Y.

另外,将与影像的各帧对应的处理数据单位称为“图片”,在该实施方式1中,将“图片”作为被逐行扫描(progressive scan)的影像帧的信号而进行说明。但是,在影像信号是隔行扫描信号的情况下,“图片”也可以是作为构成影像帧的单位的场图像信号。另外,在以后的说明中,有时将空间上连续的编码块的群组记载为“切片”。The unit of processed data corresponding to each image frame is called a "picture." In this first embodiment, a "picture" is described as a signal of a progressively scanned image frame. However, if the image signal is an interlaced signal, a "picture" may also be a field image signal that constitutes a video frame. In the following description, a group of spatially continuous coding blocks may be referred to as a "slice."

图1是示出本发明的实施方式1的图像编码装置的结构图。FIG1 is a diagram showing the structure of an image encoding apparatus according to Embodiment 1 of the present invention.

在图1中,编码控制部1实施如下处理:决定成为实施运动补偿预测处理(帧间预测处理)或者帧内部预测处理(帧内预测处理)时的处理单位的编码块的最大大小,并且决定最大大小的编码块被分层地分割时的上限的层次数。In Figure 1, the encoding control unit 1 implements the following processing: determines the maximum size of the coding block that serves as the processing unit when performing motion compensation prediction processing (inter-frame prediction processing) or intra-frame prediction processing (intra-frame prediction processing), and determines the upper limit of the number of layers when the maximum-sized coding block is hierarchically divided.

另外,编码控制部1实施如下处理:从可利用的1个以上的编码模式(1个以上的帧内部编码模式、1个以上的帧之间编码模式)中,选择适合于分层地分割的各个编码块的编码模式。另外,编码控制部1构成了编码模式决定单元。The coding control unit 1 also performs processing to select a coding mode suitable for each hierarchically divided coding block from one or more available coding modes (one or more intra-frame coding modes and one or more inter-frame coding modes). Furthermore, the coding control unit 1 constitutes a coding mode determination unit.

块分割部2实施如下处理:如果输入了表示输入图像的影像信号,则将该影像信号表示的输入图像分割为由编码控制部1决定的最大大小的编码块,并且直至达到由编码控制部1决定的上限的层次数为止,对该编码块分层地进行分割。另外,块分割部2构成了块分割单元。The block division unit 2 performs the following processing: when a video signal representing an input image is input, the input image represented by the video signal is divided into coding blocks of the maximum size determined by the coding control unit 1, and the coding blocks are divided hierarchically until the upper limit of the number of layers determined by the coding control unit 1 is reached. The block division unit 2 also constitutes a block division unit.

切换开关3实施如下处理:如果由编码控制部1选择的编码模式是帧内部编码模式,则将由块分割部2分割的编码块输出到帧内部预测部4,如果由编码控制部1选择的编码模式是帧之间编码模式,则将由块分割部2分割的编码块输出到运动补偿预测部5。The switching switch 3 implements the following processing: if the coding mode selected by the coding control unit 1 is the intra-frame coding mode, the coding blocks divided by the block division unit 2 are output to the intra-frame prediction unit 4; if the coding mode selected by the coding control unit 1 is the inter-frame coding mode, the coding blocks divided by the block division unit 2 are output to the motion compensation prediction unit 5.

帧内部预测部4实施如下处理:如果从切换开关3接收到由块分割部2分割的编码块,则一边参照由帧内部预测用存储器10保存的已编码块的局部解码图像(参照图像),一边使用从编码控制部1输出的帧内部预测参数,实施针对该编码块的帧内部预测处理,生成预测图像。The intra-frame prediction unit 4 performs the following processing: if a coding block divided by the block division unit 2 is received from the switching switch 3, it performs intra-frame prediction processing on the coding block while referring to the local decoded image (reference image) of the coded block stored in the intra-frame prediction memory 10, and uses the intra-frame prediction parameters output from the encoding control unit 1 to generate a predicted image.

运动补偿预测部5实施如下处理:如果从切换开关3接收到由块分割部2分割的编码块,则通过比较该编码块和由运动补偿预测帧存储器12保存的已编码块的局部解码图像(参照图像)来实施运动搜索并计算运动矢量,使用该运动矢量和从编码控制部1输出的帧之间预测参数,实施针对该编码块的帧之间预测处理(运动补偿预测处理),生成预测图像。The motion compensation prediction unit 5 performs the following processing: if a coding block divided by the block division unit 2 is received from the switching switch 3, motion search is performed and a motion vector is calculated by comparing the coding block with the local decoded image (reference image) of the coded block stored in the motion compensation prediction frame memory 12, and the inter-frame prediction processing (motion compensation prediction processing) is performed on the coding block using the motion vector and the inter-frame prediction parameters output from the encoding control unit 1 to generate a predicted image.

另外,由切换开关3、帧内部预测部4以及运动补偿预测部5构成了预测图像生成单元。Furthermore, the switch 3 , the intra prediction unit 4 , and the motion compensation prediction unit 5 constitute a predicted image generation unit.

减法部6实施如下处理:通过从由块分割部2分割的编码块减去由帧内部预测部4或者运动补偿预测部5生成的预测图像,生成差分图像(=编码块-预测图像)。另外,减法部6构成了差分图像生成单元。The subtraction unit 6 generates a difference image (= coded block - predicted image) by subtracting the predicted image generated by the intra prediction unit 4 or the motion compensation prediction unit 5 from the coded block divided by the block division unit 2. The subtraction unit 6 constitutes a difference image generation unit.

变换/量化部7实施如下处理:按照从编码控制部1输出的预测差分编码参数中包含的变换块大小单位,实施由减法部6生成的差分图像的变换处理(例如DCT(离散余弦变换)、预先对特定的学习系列进行了基础设计的KL变换等正交变换处理),并且使用该预测差分编码参数中包含的量化参数,对该差分图像的变换系数进行量化,从而将量化后的变换系数作为差分图像的压缩数据输出。另外,变换/量化部7构成了图像压缩单元。The transform/quantization unit 7 performs a transform process (e.g., a DCT (discrete cosine transform) or an orthogonal transform such as a KL transform pre-designed based on a specific learning sequence) on the difference image generated by the subtraction unit 6 in units of the transform block size included in the predicted difference coding parameters output from the coding control unit 1. Furthermore, the transform coefficients of the difference image are quantized using the quantization parameters included in the predicted difference coding parameters, and the quantized transform coefficients are output as compressed data of the difference image. Furthermore, the transform/quantization unit 7 constitutes image compression means.

逆量化/逆变换部8实施如下处理:使用从编码控制部1输出的预测差分编码参数中包含的量化参数,对从变换/量化部7输出的压缩数据进行逆量化,按照该预测差分编码参数中包含的变换块大小单位,实施逆量化后的压缩数据的逆变换处理(例如逆DCT(逆离散余弦变换)、逆KL变换等逆变换处理),从而将逆变换处理后的压缩数据作为局部解码预测差分信号(表示解压缩后的差分图像的数据)输出。The inverse quantization/inverse transform unit 8 performs the following processing: using the quantization parameter included in the predicted differential coding parameter output from the encoding control unit 1, the compressed data output from the transform/quantization unit 7 is inverse quantized, and according to the transform block size unit included in the predicted differential coding parameter, the inverse transform processing (such as inverse DCT (inverse discrete cosine transform), inverse KL transform and other inverse transform processing) of the inversely quantized compressed data is performed, thereby outputting the compressed data after the inverse transform processing as a locally decoded predicted differential signal (data representing the decompressed differential image).

加法部9实施如下处理:通过将从逆量化/逆变换部8输出的局部解码预测差分信号和表示由帧内部预测部4或者运动补偿预测部5生成的预测图像的预测信号进行相加,生成表示局部解码图像的局部解码图像信号。The adding unit 9 performs the following processing: by adding the local decoded prediction differential signal output from the inverse quantization/inverse transform unit 8 and the prediction signal representing the predicted image generated by the intra-frame prediction unit 4 or the motion compensation prediction unit 5, a local decoded image signal representing the local decoded image is generated.

另外,由逆量化/逆变换部8以及加法部9构成了局部解码图像生成单元。Furthermore, the inverse quantization/inverse transformation unit 8 and the addition unit 9 constitute a local decoded image generation unit.

帧内部预测用存储器10是将由加法部9生成的局部解码图像信号表示的局部解码图像作为通过帧内部预测部4在下次的帧内部预测处理中使用的图像保存的RAM等记录介质。The intra prediction memory 10 is a recording medium such as RAM that stores the local decoded image represented by the local decoded image signal generated by the adder 9 as an image to be used in the next intra prediction process by the intra prediction unit 4 .

环路滤波器部11实施如下处理:通过实施针对由加法部9生成的局部解码图像信号的滤波处理(环路滤波处理),去除在块边界中发生的失真(块失真)。The loop filter unit 11 performs a process of removing distortion (block distortion) occurring at a block boundary by performing a filtering process (loop filtering process) on the local decoded image signal generated by the adding unit 9 .

环路滤波器部11在去除局部解码图像的块失真时,与由编码控制部1选择的编码模式(帧内部编码模式、帧之间编码模式)相应地,按信号分量(亮度信号分量、色差信号分量)设定去除块失真的滤波的强度。When removing block distortion from a local decoded image, the loop filter unit 11 sets the intensity of the filter for removing block distortion for each signal component (luminance signal component, color difference signal component) according to the coding mode (intra-frame coding mode, inter-frame coding mode) selected by the coding control unit 1.

另外,环路滤波器部11构成了失真去除单元。In addition, the loop filter unit 11 constitutes a distortion removal unit.

运动补偿预测帧存储器12是将由环路滤波器部11进行了滤波处理后的局部解码图像作为通过运动补偿预测部5在下次的运动补偿预测处理中使用的参照图像保存的RAM等记录介质。The motion-compensated prediction frame memory 12 is a recording medium such as RAM that stores the local decoded image filtered by the loop filter unit 11 as a reference image to be used in the next motion-compensated prediction process by the motion-compensated prediction unit 5 .

可变长编码部13实施如下处理:对从变换/量化部7输出的压缩数据、从编码控制部1输出的编码模式以及预测差分编码参数、以及从帧内部预测部4输出的帧内部预测参数或者从运动补偿预测部5输出的帧之间预测参数(包括运动矢量)进行可变长编码,生成复用了该压缩数据、编码模式、预测差分编码参数、帧内部预测参数/帧之间预测参数的编码数据的比特流。另外,可变长编码部13构成了编码单元。The variable-length coding unit 13 performs variable-length coding on the compressed data output from the transform/quantization unit 7, the coding mode and prediction difference coding parameters output from the coding control unit 1, and the intra-frame prediction parameters output from the intra-frame prediction unit 4 or the inter-frame prediction parameters (including motion vectors) output from the motion-compensated prediction unit 5, thereby generating a bitstream of coded data multiplexed with the compressed data, coding mode, prediction difference coding parameters, and intra-frame prediction parameters/inter-frame prediction parameters. The variable-length coding unit 13 constitutes a coding unit.

在图1中,设想了作为图像编码装置的构成要素的编码控制部1、块分割部2、切换开关3、帧内部预测部4、运动补偿预测部5、减法部6、变换/量化部7、逆量化/逆变换部8、加法部9、环路滤波器部11以及可变长编码部13分别由专用的硬件(例如安装了CPU的半导体集成电路、或者单片微型计算机等)构成的例子,但在图像编码装置由计算机构成的情况下,也可以将描述了编码控制部1、块分割部2、切换开关3、帧内部预测部4、运动补偿预测部5、减法部6、变换/量化部7、逆量化/逆变换部8、加法部9、环路滤波器部11以及可变长编码部13的处理内容的程序保存到该计算机的存储器中,该计算机的CPU执行该存储器中保存的程序。In FIG1 , an example is assumed in which the components of the image coding apparatus, namely, the coding control unit 1, the block division unit 2, the switch 3, the intra-frame prediction unit 4, the motion-compensated prediction unit 5, the subtraction unit 6, the transform/quantization unit 7, the inverse quantization/inverse transform unit 8, the addition unit 9, the loop filter unit 11, and the variable-length coding unit 13, are each configured by dedicated hardware (e.g., a semiconductor integrated circuit or a single-chip microcomputer having a CPU mounted thereon). However, if the image coding apparatus is configured by a computer, a program describing the processing contents of the coding control unit 1, the block division unit 2, the switch 3, the intra-frame prediction unit 4, the motion-compensated prediction unit 5, the subtraction unit 6, the transform/quantization unit 7, the inverse quantization/inverse transform unit 8, the addition unit 9, the loop filter unit 11, and the variable-length coding unit 13 may be stored in a memory of the computer, and the CPU of the computer may execute the program stored in the memory.

图2是示出本发明的实施方式1的图像编码装置的处理内容的流程图。FIG2 is a flowchart showing the processing contents of the image encoding apparatus according to the first embodiment of the present invention.

图3是示出本发明的实施方式1的图像解码装置的结构图。FIG3 is a diagram showing the structure of the image decoding apparatus according to Embodiment 1 of the present invention.

在图3中,可变长解码部21实施如下处理:从复用在比特流中的编码数据,可变长解码出与分层地分割的各个编码块有关的压缩数据、编码模式、预测差分编码参数、帧内部预测参数/帧之间预测参数(包括运动矢量),将该压缩数据以及预测差分编码参数输出到逆量化/逆变换部25,并且将该编码模式以及帧内部预测参数/帧之间预测参数输出到切换开关22,而且,将该编码模式输出到环路滤波器部28。另外,可变长解码部21构成了解码单元。In FIG3 , the variable length decoding unit 21 performs the following processing: variable length decoding is performed from the coded data multiplexed in the bit stream to obtain compressed data, coding mode, prediction difference coding parameters, intra-frame prediction parameters/inter-frame prediction parameters (including motion vectors) related to each hierarchically divided coding block, and the compressed data and prediction difference coding parameters are output to the inverse quantization/inverse transform unit 25. The coding mode and intra-frame prediction parameters/inter-frame prediction parameters are output to the switch 22, and the coding mode is output to the loop filter unit 28. The variable length decoding unit 21 constitutes a decoding unit.

切换开关22实施如下处理:在从可变长解码部21输出的与编码块有关的编码模式是帧内部编码模式的情况下,将从可变长解码部21输出的帧内部预测参数输出到帧内部预测部23,在该编码模式是帧之间编码模式的情况下,将从可变长解码部21输出的帧之间预测参数输出到运动补偿部24。The switching switch 22 implements the following processing: when the coding mode related to the coding block output from the variable length decoding unit 21 is the intra-frame coding mode, the intra-frame prediction parameters output from the variable length decoding unit 21 are output to the intra-frame prediction unit 23; when the coding mode is the inter-frame coding mode, the inter-frame prediction parameters output from the variable length decoding unit 21 are output to the motion compensation unit 24.

帧内部预测部23实施如下处理:一边参照由帧内部预测用存储器27保存的已解码块的解码图像(参照图像),一边使用从切换开关22输出的帧内部预测参数,实施针对该编码块的帧内部预测处理,生成预测图像。The intra-frame prediction unit 23 performs the following processing: while referring to the decoded image (reference image) of the decoded block stored in the intra-frame prediction memory 27, it uses the intra-frame prediction parameters output from the switching switch 22 to perform intra-frame prediction processing on the coded block to generate a predicted image.

运动补偿部24实施如下处理:使用从切换开关22输出的帧之间预测参数中包含的运动矢量和由运动补偿预测帧存储器29保存的已解码块的解码图像(参照图像),实施针对该编码块的帧之间预测处理,生成预测图像。The motion compensation unit 24 performs the following processing: using the motion vector included in the inter-frame prediction parameters output from the switching switch 22 and the decoded image (reference image) of the decoded block stored in the motion compensation prediction frame memory 29, it performs inter-frame prediction processing on the coded block to generate a predicted image.

另外,由切换开关22、帧内部预测部23以及运动补偿部24构成了预测图像生成单元。The switch 22 , the intra prediction unit 23 , and the motion compensation unit 24 constitute a predicted image generation unit.

逆量化/逆变换部25实施如下处理:使用从可变长解码部21输出的预测差分编码参数中包含的量化参数,对从可变长解码部21输出的压缩数据进行逆量化,按照该预测差分编码参数中包含的变换块大小单位,实施逆量化后的压缩数据的逆变换处理(例如逆DCT(逆离散余弦变换)、逆KL变换等逆变换处理),从而将逆变换处理后的压缩数据作为解码预测差分信号(表示压缩前的差分图像的信号)输出。另外,逆量化/逆变换部25构成了差分图像生成单元。The inverse quantization/inverse transform unit 25 performs the following processing: using the quantization parameter included in the prediction difference coding parameter output from the variable length decoding unit 21, it inversely quantizes the compressed data output from the variable length decoding unit 21, and performs inverse transform processing (e.g., inverse DCT (inverse discrete cosine transform) or inverse KL transform) on the inversely quantized compressed data in units of transform block size included in the prediction difference coding parameter, thereby outputting the inversely transformed compressed data as a decoded prediction difference signal (a signal representing the difference image before compression). The inverse quantization/inverse transform unit 25 also constitutes a difference image generation unit.

加法部26实施如下处理:通过将从逆量化/逆变换部25输出的解码预测差分信号和表示由帧内部预测部23或者运动补偿部24生成的预测图像的预测信号进行相加,生成表示解码图像的解码图像信号。另外,加法部26构成了解码图像生成单元。The addition unit 26 generates a decoded image signal representing a decoded image by adding the decoded prediction difference signal output from the inverse quantization/inverse transform unit 25 and a prediction signal representing a predicted image generated by the intra-frame prediction unit 23 or the motion compensation unit 24. The addition unit 26 constitutes a decoded image generation unit.

帧内部预测用存储器27是将由加法部26生成的解码图像信号表示的解码图像作为通过帧内部预测部23在下次的帧内部预测处理中使用的图像保存的RAM等记录介质。The intra prediction memory 27 is a recording medium such as RAM that stores the decoded image represented by the decoded image signal generated by the adder 26 as an image to be used in the next intra prediction process by the intra prediction unit 23 .

环路滤波器部28实施如下处理:通过实施针对由加法部26生成的解码图像信号的滤波处理(环路滤波处理),来去除在块边界中发生的失真(块失真)。The loop filter unit 28 performs a process of removing distortion (block distortion) occurring at a block boundary by performing a filtering process (loop filtering process) on the decoded image signal generated by the adding unit 26 .

环路滤波器部28在去除解码图像的块失真时,与从可变长解码部21输出的编码模式(帧内部编码模式、帧之间编码模式)相应地,按信号分量(亮度信号分量、色差信号分量)设定去除块失真的滤波的强度。When removing block distortion from a decoded image, the loop filter unit 28 sets the intensity of the filter for removing block distortion according to the signal component (luminance signal component, color difference signal component) in accordance with the coding mode (intra-frame coding mode, inter-frame coding mode) output from the variable length decoding unit 21.

另外,环路滤波器部28构成了失真去除单元。In addition, the loop filter unit 28 constitutes a distortion removal unit.

运动补偿预测帧存储器29是将由环路滤波器部28执行了滤波处理后的解码图像作为通过运动补偿部24在下次的运动补偿预测处理中使用的参照图像保存的RAM等记录介质。The motion compensation prediction frame memory 29 is a recording medium such as RAM that stores the decoded image filtered by the loop filter unit 28 as a reference image to be used in the next motion compensation prediction process by the motion compensation unit 24 .

在图3中,设想了作为图像解码装置的构成要素的可变长解码部21、切换开关22、帧内部预测部23、运动补偿部24、逆量化/逆变换部25、加法部26以及环路滤波器部28分别由专用的硬件(例如安装了CPU的半导体集成电路、或者单片微型计算机等)构成的例子,但在图像解码装置由计算机构成的情况下,也可以将描述了可变长解码部21、切换开关22、帧内部预测部23、运动补偿部24、逆量化/逆变换部25、加法部26以及环路滤波器部28的处理内容的程序保存到该计算机的存储器中,该计算机的CPU执行该存储器中保存的程序。In FIG3 , an example is illustrated in which the variable length decoding unit 21, the switch 22, the intra-frame prediction unit 23, the motion compensation unit 24, the inverse quantization/inverse transform unit 25, the addition unit 26, and the loop filter unit 28, which are components of the image decoding device, are each configured by dedicated hardware (e.g., a semiconductor integrated circuit or a single-chip microcomputer having a CPU mounted thereon). However, if the image decoding device is configured by a computer, a program describing the processing contents of the variable length decoding unit 21, the switch 22, the intra-frame prediction unit 23, the motion compensation unit 24, the inverse quantization/inverse transform unit 25, the addition unit 26, and the loop filter unit 28 may be stored in a memory of the computer, and the CPU of the computer may execute the program stored in the memory.

图4是示出本发明的实施方式1的图像解码装置的处理内容的流程图。FIG4 is a flowchart showing the processing contents of the image decoding apparatus according to Embodiment 1 of the present invention.

接下来,说明动作。Next, the operation will be explained.

最初,说明图1的图像编码装置的处理内容。First, the processing contents of the image encoding apparatus in FIG1 will be described.

首先,编码控制部1决定成为实施运动补偿预测处理(帧间预测处理)或者帧内部预测处理(帧内预测处理)时的处理单位的编码块的最大大小,并且决定最大大小的编码块被分层地分割时的上限的层次数(图2的步骤ST1)。First, the encoding control unit 1 determines the maximum size of the coding block that serves as the processing unit when performing motion compensation prediction processing (inter-frame prediction processing) or intra-frame prediction processing (intra-frame prediction processing), and determines the upper limit number of layers when the maximum-sized coding block is divided into layers (step ST1 of Figure 2).

作为编码块的最大大小的决定方法,例如考虑针对所有图片决定为与输入图像的分辨率对应的大小的方法。As a method for determining the maximum size of a coding block, for example, a method of determining a size corresponding to the resolution of an input image for all pictures may be considered.

另外,考虑如下方法等:将输入图像的局部运动的复杂度的差异作为参数进行定量化,在运动剧烈的图片中将最大大小决定为小的值,在运动少的图片中将最大大小决定为大的值。Another possible method is to quantify the difference in complexity of local motion in the input image as a parameter, and determine the maximum size to be a small value in a picture with intense motion and a large value in a picture with less motion.

关于上限的层次数,例如考虑设定成为如下的方法:输入图像的运动越剧烈,使层次数越深,以能够检测更细的运动,如果输入图像的运动少,则抑制层次数。Regarding the upper limit of the number of layers, for example, a method of setting the number of layers may be considered such that the more intense the motion of the input image is, the deeper the number of layers is to detect finer motion, and the lower the number of layers is when the motion of the input image is small.

另外,编码控制部1从可利用的1个以上的编码模式(M种帧内部编码模式、N种帧之间编码模式)中,选择适合于分层地分割的各个编码块的编码模式(步骤ST2)。Furthermore, the encoding control unit 1 selects an encoding mode suitable for each hierarchically divided encoding block from one or more available encoding modes (M types of intra-frame encoding modes and N types of inter-frame encoding modes) (step ST2).

由编码控制部1进行的编码模式的选择方法是公知的技术,所以省略详细的说明,但例如有如下方法等:使用可利用的任意的编码模式,实施针对编码块的编码处理来验证编码效率,在可利用的多个编码模式中,选择编码效率最佳的编码模式。The method for selecting the coding mode performed by the coding control unit 1 is a well-known technology, so detailed description is omitted, but for example, there is the following method: using any available coding mode, implementing coding processing on the coding block to verify the coding efficiency, and selecting the coding mode with the best coding efficiency from the multiple available coding modes.

在块分割部2中,如果输入了表示输入图像的影像信号,则将该影像信号表示的输入图像分割为由编码控制部1决定的最大大小的编码块,并且直至达到由编码控制部1决定的上限的层次数为止,对该编码块分层地进行分割(步骤ST3)。In the block division unit 2, if an image signal representing an input image is input, the input image represented by the image signal is divided into coding blocks of the maximum size determined by the coding control unit 1, and the coding blocks are divided hierarchically until the upper limit of the number of layers determined by the coding control unit 1 is reached (step ST3).

此处,图5是示出最大大小的编码块被分层地分割为多个编码块的情况的说明图。Here, FIG5 is an explanatory diagram showing a case where a coding block of a maximum size is hierarchically divided into a plurality of coding blocks.

在图5的例子中,最大大小的编码块是第0层次的编码块B0,在亮度分量上具有(L0,M0)的大小。In the example of FIG5 , the coding block of the largest size is the coding block B 0 of the 0th layer, which has a size of (L 0 , M 0 ) in terms of the luminance component.

另外,在图5的例子中,以最大大小的编码块B0为出发点,通过四叉树构造,分层地进行分割直至另行决定的规定的深度为止,从而得到编码块BnIn the example of FIG. 5 , the maximum-sized coding block B 0 is used as a starting point, and hierarchical division is performed to a predetermined depth determined separately using a quadtree structure, thereby obtaining coding blocks B n .

在深度n下,编码块Bn是大小为(Ln,Mn)的图像区域。At depth n, a coding block Bn is an image region of size ( Ln , Mn ).

其中,Ln和Mn既可以相同也可以不同,但在图5的例子中示出了Ln=Mn的情形。 Ln and Mn may be the same or different, but the example in FIG5 shows a case where Ln = Mn .

以后,将编码块Bn的大小定义为编码块Bn的亮度分量中的大小(Ln,Mn)。Hereinafter, the size of the coding block Bn is defined as the size ( Ln , Mn ) in the luma component of the coding block Bn .

块分割部2进行四叉树分割,所以(Ln+1,Mn+1)=(Ln/2,Mn/2)始终成立。Since the block dividing unit 2 performs quadtree division, (Ln +1 , Mn +1 ) = ( Ln /2, Mn /2) always holds.

但是,在如RGB信号等那样所有颜色分量具有同一采样数的彩色影像信号(4:4:4格式)中,所有颜色分量的大小为(Ln,Mn),但在处理4:2:0格式的情况下,对应的色差分量的编码块的大小是(Ln/2,Mn/2)。However, in a color video signal (4:4:4 format) such as an RGB signal where all color components have the same number of samples, the size of all color components is ( Ln , Mn ). However, when processing the 4:2:0 format, the size of the coding block of the corresponding color difference component is ( Ln /2, Mn /2).

以后,将在第n层次的编码块Bn中可选择的编码模式记载为m(Bn)。Hereinafter, the coding mode selectable in the coding block Bn of the nth layer will be expressed as m( Bn ).

在由多个颜色分量构成的彩色影像信号的情况下,编码模式m(Bn)可以构成为针对各颜色分量分别使用各自的模式,但以后只要没有特别说明,则设为指针对YUV信号4:2:0格式的编码块的亮度分量的编码模式来进行说明。In the case of a color video signal composed of multiple color components, the coding mode m( Bn ) may be configured to use a separate mode for each color component. However, unless otherwise specified, the coding mode m(Bn) is described below as referring to the coding mode for the luminance component of a coding block in the YUV signal 4:2:0 format.

在编码模式m(Bn)中,有一个或者多个帧内部编码模式(总称为“INTRA”)、一个或者多个帧之间编码模式(总称为“INTER”),编码控制部1如上所述,从在该图片中可利用的所有编码模式或者其子集中,选择针对编码块Bn编码效率最佳的编码模式。Among the coding modes m( Bn ), there are one or more intra-frame coding modes (collectively referred to as "INTRA") and one or more inter-frame coding modes (collectively referred to as "INTER"). As described above, the coding control unit 1 selects the coding mode with the best coding efficiency for the coding block Bn from all coding modes available for the picture or a subset thereof.

编码块Bn如图5所示,被进一步分割为一个或者多个预测处理单位(分区(partition))。As shown in FIG5 , the coding block Bn is further divided into one or more prediction processing units (partitions).

以后,将属于编码块Bn的分区记载为Pi n(i:第n层次中的分区编号)。Hereinafter, the partitions belonging to the coding block Bn are referred to as Pin ( i: partition number in the nth layer).

关于属于编码块Bn的分区Pi n的分割是被如何进行的,作为信息包括在编码模式m(Bn)中。How the partition P in the coding block B n is divided is included as information in the coding mode m(B n ).

关于分区Pi n,全部依照编码模式m(Bn)进行预测处理,但能够针对每个分区Pi n,选择各自的预测参数。Regarding all partitions P i n , prediction processing is performed according to the coding mode m(B n ), but individual prediction parameters can be selected for each partition P i n .

编码控制部1针对最大大小的编码块,例如生成图6所示那样的块分割状态,确定编码块BnThe encoding control unit 1 generates a block division state as shown in FIG. 6 , for example, for the maximum-sized encoding block, and determines the encoding block B n .

图6(a)的画网线的部分表示分割后的分区的分布,而且,在图6(b)中通过四叉树图表表示对层次分割后的分区分配编码模式m(Bn)的状况。The hatched portion of FIG6(a) shows the distribution of partitions after division, and FIG6(b) shows the allocation of coding modes m( Bn ) to partitions after hierarchical division using a quadtree diagram.

在图6(b)中,用□包围的节点表示被分配了编码模式m(Bn)的节点(编码块Bn)。In FIG6(b), the nodes surrounded by □ represent nodes (coding blocks Bn ) to which coding mode m( Bn ) is assigned.

当编码控制部1针对各个编码块Bn的分区Pi n选择最佳的编码模式m(Bn)时,如果该编码模式m(Bn)是帧内部编码模式(步骤ST4),则切换开关3将由块分割部2分割的编码块Bn的分区Pi n输出到帧内部预测部4。When the encoding control unit 1 selects the optimal encoding mode m( Bn ) for each partition P in the encoding block Bn , if the encoding mode m( Bn ) is an intra-frame encoding mode (step ST4), the switching switch 3 outputs the partition P in the encoding block Bn divided by the block division unit 2 to the intra-frame prediction unit 4.

另一方面,如果该编码模式m(Bn)是帧之间编码模式(步骤ST4),则将由块分割部2分割的编码块Bn的分区Pi n输出到运动补偿预测部5。On the other hand, if the coding mode m(B n ) is the inter-frame coding mode (step ST4 ), the partitions P in of the coding block B n divided by the block dividing unit 2 are output to the motion compensation prediction unit 5 .

帧内部预测部4如果从切换开关3接收到编码块Bn的分区Pi n,则一边参照由帧内部预测用存储器10保存的已编码块的局部解码图像,一边使用与由编码控制部1选择的编码模式m(Bn)对应的帧内部预测参数,实施针对该编码块Bn的分区Pi n的帧内部预测处理,生成帧内部预测图像Pi n(步骤ST5)。Upon receiving the partition Pin of the coding block Bn from the switch 3, the intra-frame prediction unit 4 performs intra-frame prediction processing on the partition Pin of the coding block Bn using the intra-frame prediction parameters corresponding to the coding mode m( Bn ) selected by the coding control unit 1, while referring to the local decoded image of the coded block stored in the intra-frame prediction memory 10, thereby generating an intra-frame prediction image Pin (step ST5).

帧内部预测部4如果生成了帧内部预测图像Pi n,则将该帧内部预测图像Pi n输出到减法部6以及加法部9,但为了使得在图3的图像解码装置中也能够生成相同的帧内部预测图像Pi n,将该帧内部预测参数输出到可变长编码部13。After generating the intra-frame prediction image Pin , the intra-frame prediction unit 4 outputs the intra-frame prediction image Pin to the subtraction unit 6 and the addition unit 9. However, in order to enable the image decoding apparatus in FIG. 3 to also generate the same intra-frame prediction image Pin , the intra-frame prediction parameters are output to the variable-length coding unit 13.

另外,帧内部预测部4的帧内部预测处理依照例如AVC/H.264标准(ISO/IEC14496-10)中制定的算法,但不限于该算法。The intra prediction process performed by the intra prediction unit 4 complies with, for example, an algorithm defined in the AVC/H.264 standard (ISO/IEC 14496-10), but is not limited to this algorithm.

运动补偿预测部5如果从切换开关3接收到编码块Bn的分区Pi n,则通过比较该编码块Bn的分区Pi n和由运动补偿预测帧存储器12保存的已编码块的局部解码图像来实施运动搜索并计算运动矢量,使用该运动矢量和从编码控制部1输出的帧之间预测参数,实施针对该编码块的帧之间预测处理,生成帧之间预测图像Pi n(步骤ST6)。Upon receiving the partition Pin of the coding block Bn from the switching switch 3, the motion-compensated prediction unit 5 performs a motion search and calculates a motion vector by comparing the partition Pin of the coding block Bn with the local decoded image of the coded block stored in the motion-compensated prediction frame memory 12. Then, the motion vector and the inter-frame prediction parameters output from the encoding control unit 1 are used to perform inter-frame prediction processing on the coding block, thereby generating an inter-frame prediction image Pin (step ST6).

运动补偿预测部5如果生成了帧之间预测图像Pi n,则将该帧之间预测图像Pi n输出到减法部6以及加法部9,但为了使得在图3的图像解码装置中也能够生成相同的帧之间预测图像Pi n,将该帧之间预测参数输出到可变长编码部13。After the motion-compensated prediction unit 5 generates the inter-frame prediction image Pin , it outputs the inter-frame prediction image Pin to the subtraction unit 6 and the addition unit 9. However, in order to enable the image decoding apparatus in FIG. 3 to also generate the same inter-frame prediction image Pin , the inter-frame prediction parameters are output to the variable - length coding unit 13.

另外,在帧之间预测参数中,包括下述信息。In addition, the inter-frame prediction parameters include the following information.

(1)描述了编码块Bn内的分区Pi n的分割状况的模式信息(1) Mode information describing the partitioning status of the partition P in the coding block Bn

(2)分区Pi n的运动矢量(2) Motion vector of partition Pin

(3)在由运动补偿预测帧存储器12保存了多个局部解码图像(参照图像)的情况下,表示使用哪一个参照图像来实施帧之间预测处理的参照图像的指示索引信息(3) When a plurality of local decoded images (reference images) are stored in the motion compensation prediction frame memory 12, reference image index information indicating which reference image is used to perform inter-frame prediction processing

(4)在有多个运动矢量的预测值候补的情况下,表示选择哪一个运动矢量的预测值来使用的索引信息(4) Index information indicating which motion vector prediction value is selected to be used when there are multiple motion vector prediction value candidates.

(5)在有多个运动补偿内插滤波器的情况下,表示选择哪一个滤波器来使用的索引信息(5) In the case of multiple motion compensation interpolation filters, index information indicating which filter to use

(6)在分区Pi n的运动矢量能够表示多个像素精度(半像素、1/4像素、1/8像素等)的情况下,表示使用哪一个像素精度的选择信息(6) When the motion vector of the partition Pin can represent multiple pixel precisions (half pixel, 1/4 pixel, 1/8 pixel, etc.), the selection information indicating which pixel precision to use

如果帧内部预测部4或者运动补偿预测部5生成了预测图像(帧内部预测图像Pi n、帧之间预测图像Pi n),则减法部6从由块分割部2分割的编码块Bn的分区Pi n,减去由帧内部预测部4或者运动补偿预测部5生成的预测图像(帧内部预测图像Pi n、帧之间预测图像Pi n),从而生成差分图像,将表示该差分图像的预测差分信号ei n输出到变换/量化部7(步骤ST7)。If the intra-frame prediction unit 4 or the motion-compensated prediction unit 5 generates a predicted image ( intra -frame predicted image Pin , inter-frame predicted image Pin ), the subtraction unit 6 subtracts the predicted image (intra-frame predicted image Pin , inter-frame predicted image Pin ) generated by the intra-frame prediction unit 4 or the motion-compensated prediction unit 5 from the partition Pin of the coding block Bn divided by the block division unit 2 , thereby generating a difference image, and outputs a predicted difference signal ein representing the difference image to the transform/quantization unit 7 (step ST7).

变换/量化部7如果从减法部6接收到表示差分图像的预测差分信号ei n,则按照从编码控制部1输出的预测差分编码参数中包含的变换块大小单位,实施该差分图像的变换处理(例如DCT(离散余弦变换)、预先对特定的学习系列进行了基础设计的KL变换等正交变换处理),并且使用该预测差分编码参数中包含的量化参数,对该差分图像的变换系数进行量化,从而将量化后的变换系数作为差分图像的压缩数据输出到逆量化/逆变换部8以及可变长编码部13(步骤ST8)。Upon receiving the predicted differential signal e indicative of the differential image from the subtraction unit 6, the transform/quantization unit 7 performs a transform process (e.g., a DCT (discrete cosine transform), an orthogonal transform such as a KL transform pre-designed based on a specific learning series) on the differential image in units of a transform block size included in the predicted differential coding parameters output from the encoding control unit 1, and quantizes the transform coefficients of the differential image using the quantization parameters included in the predicted differential coding parameters, thereby outputting the quantized transform coefficients as compressed data of the differential image to the inverse quantization/inverse transform unit 8 and the variable-length coding unit 13 (step ST8).

逆量化/逆变换部8如果从变换/量化部7接收到差分图像的压缩数据,则使用从编码控制部1输出的预测差分编码参数中包含的量化参数,对该差分图像的压缩数据进行逆量化,按照该预测差分编码参数中包含的变换块大小单位,实施逆量化后的压缩数据的逆变换处理(例如逆DCT(逆离散余弦变换)、逆KL变换等逆变换处理),从而将逆变换处理后的压缩数据作为局部解码预测差分信号输出到加法部9(步骤ST9)。If the inverse quantization/inverse transform unit 8 receives the compressed data of the differential image from the transform/quantization unit 7, it uses the quantization parameter included in the predicted differential coding parameter output from the encoding control unit 1 to inverse quantize the compressed data of the differential image, and performs inverse transform processing (such as inverse DCT (inverse discrete cosine transform), inverse KL transform, and other inverse transform processing) on the inversely quantized compressed data according to the transform block size unit included in the predicted differential coding parameter, thereby outputting the compressed data after the inverse transform processing as a local decoding predicted differential signal to the addition unit 9 (step ST9).

加法部9如果从逆量化/逆变换部8接收到局部解码预测差分信号,则将该局部解码预测差分信号、和表示由帧内部预测部4或者运动补偿预测部5生成的预测图像(帧内部预测图像Pi n、帧之间预测图像Pi n)的预测信号进行相加,从而生成局部解码分区图像、或者作为其集合的局部解码块图像即局部解码图像(步骤ST10)。Upon receiving the local decoded prediction difference signal from the inverse quantization/inverse transform unit 8, the adder 9 adds the local decoded prediction difference signal to a prediction signal representing a prediction image (intra-frame prediction image Pin , inter-frame prediction image Pin ) generated by the intra-frame prediction unit 4 or the motion compensation prediction unit 5 , thereby generating a local decoded partition image or a local decoded block image as a collection thereof, i.e., a local decoded image (step ST10).

在加法部9中,如果生成了局部解码图像,则将表示该局部解码图像的局部解码图像信号保存到帧内部预测用存储器10中,并且将该局部解码图像信号输出到环路滤波器部11。When a local decoded image is generated in the adder 9 , a local decoded image signal representing the local decoded image is stored in the intra-frame prediction memory 10 , and the local decoded image signal is output to the loop filter 11 .

环路滤波器部11如果从加法部9接收到局部解码图像信号,则实施针对该局部解码图像信号的滤波处理,从而去除在块边界中发生的失真(块失真)(步骤ST11)。Upon receiving the local decoded image signal from the adding unit 9 , the loop filter unit 11 performs filtering processing on the local decoded image signal to remove distortion (block distortion) occurring at block boundaries (step ST11 ).

环路滤波器部11中的处理内容的详细内容后述,但在去除局部解码图像的块失真时,与由编码控制部1选择的编码模式(帧内部编码模式、帧之间编码模式)相应地,按信号分量(亮度信号分量、色差信号分量)设定去除块失真的滤波的强度。The details of the processing content in the loop filter unit 11 will be described later. However, when removing block distortion of the local decoded image, the intensity of the filter for removing block distortion is set according to the signal component (luminance signal component, color difference signal component) in accordance with the coding mode (intra-frame coding mode, inter-frame coding mode) selected by the coding control unit 1.

另外,关于环路滤波器部11的滤波处理,既可以按照从加法部9输出的局部解码图像信号的最大编码块或者各个编码块单位进行,也可以在输出了与1个画面量的宏块相当的局部解码图像信号之后集中1个画面量来进行。In addition, the filtering processing of the loop filter unit 11 can be performed according to the maximum coding block or each coding block unit of the local decoded image signal output from the addition unit 9, or it can be performed concentratedly on one picture after the local decoded image signal equivalent to the macroblock of one picture is output.

反复实施步骤ST4~ST10的处理直至针对被分层地分割的所有编码块Bn的处理完成为止,如果针对所有编码块Bn的处理完成,则转移到步骤ST13的处理(步骤ST12)。The processes of steps ST4 to ST10 are repeatedly performed until the processes for all the hierarchically divided coding blocks Bn are completed. When the processes for all the coding blocks Bn are completed, the process proceeds to step ST13 (step ST12).

可变长编码部13对从变换/量化部7输出的压缩数据、从编码控制部1输出的编码模式(包括表示编码块的分割状态的信息)以及预测差分编码参数、以及从帧内部预测部4输出的帧内部预测参数或者从运动补偿预测部5输出的帧之间预测参数(包括运动矢量)进行熵编码。The variable length coding unit 13 performs entropy coding on the compressed data output from the transform/quantization unit 7, the coding mode (including information indicating the segmentation status of the coding block) and the predicted differential coding parameters output from the coding control unit 1, and the intra-frame prediction parameters output from the intra-frame prediction unit 4 or the inter-frame prediction parameters (including motion vectors) output from the motion compensation prediction unit 5.

可变长编码部13复用作为熵编码的编码结果的压缩数据、编码模式、预测差分编码参数、帧内部预测参数/帧之间预测参数的编码数据来生成比特流(步骤ST13)。The variable-length coding unit 13 multiplexes the compressed data, which is the encoding result of the entropy encoding, the encoding mode, the prediction difference encoding parameter, and the encoded data of the intra-frame prediction parameter/inter-frame prediction parameter to generate a bit stream (step ST13).

以下,具体说明环路滤波器部11的滤波处理。The filtering process performed by the loop filter unit 11 will be described in detail below.

环路滤波器部11是使在作为上述预测处理单位的分区与变换块的边界中发生的块噪声降低的非线性平滑化滤波器。The loop filter unit 11 is a nonlinear smoothing filter that reduces block noise generated at the boundary between the partition, which is the prediction processing unit, and the transform block.

图7是示出编码块内的滤波应用像素的位置的说明图。FIG. 7 is an explanatory diagram showing the positions of filter-applied pixels within a coding block.

在图7中,垂直边缘以及水平边缘、和分区或者变换块的块边界重叠的位置成为滤波处理的对象。In FIG. 7 , vertical edges and horizontal edges, and positions overlapping with block boundaries of partitions or transform blocks are targets of filtering.

在图7中,用K×K像素栅格表示垂直边缘以及水平边缘。K的值既可以确定为固定值,也可以根据编码块的最大大小、分区/变换块的最大大小等设定。In Figure 7, a KxK pixel grid is used to represent vertical and horizontal edges. The value of K can be fixed or set based on the maximum size of a coding block, the maximum size of a partition/transform block, etc.

图8是示出环路滤波器部11的处理内容的流程图。FIG. 8 is a flowchart showing the processing contents of the loop filter unit 11 .

针对每个编码块执行环路滤波器部11的滤波处理。The filtering process of the loop filter unit 11 is performed for each coding block.

首先,环路滤波器部11判定垂直边缘以及水平边缘是否与分区或者变换块的边界一致(步骤ST41)。First, the loop filter unit 11 determines whether a vertical edge and a horizontal edge coincide with a boundary between partitions or transform blocks (step ST41 ).

在存在与分区或者变换块的边界一致的垂直边缘或者水平边缘的情况下,环路滤波器部11进行与边界一致的部位的滤波强度判定(步骤ST42、ST43)。滤波强度的判定方法将后述。When there is a vertical edge or a horizontal edge that coincides with a boundary between partitions or transform blocks, the loop filter unit 11 determines the filter strength of the portion that coincides with the boundary (steps ST42 and ST43). The method of determining the filter strength will be described later.

在环路滤波器部11中,如果进行了滤波强度判定,则根据该滤波强度的判定结果、实际上成为滤波处理的对象的像素值的变化量,一边变更最终的滤波的强度一边进行滤波处理(步骤ST44、ST45)。滤波处理的方法将后述。Once the filter strength is determined in the loop filter unit 11, filtering is performed while changing the final filter strength based on the filter strength determination result and the actual change in the pixel value to be filtered (steps ST44 and ST45). The filtering method will be described later.

环路滤波器部11反复实施步骤ST41~45的处理直至针对图片内的所有编码块的处理完成为止(步骤ST46)。The loop filter unit 11 repeatedly performs the processing of steps ST41 to 45 until the processing is completed for all coding blocks in the picture (step ST46 ).

另外,设为在切片头中复用是否对切片内的所有编码块进行本环路滤波的处理的识别信息,图像编码装置构成为根据状况决定该识别信息的值并传送到图像解码装置。Furthermore, identification information indicating whether or not to perform the loop filtering process on all coding blocks in a slice is multiplexed in the slice header, and the image encoding device is configured to determine the value of the identification information according to the situation and transmit the result to the image decoding device.

接下来,说明环路滤波器部11的滤波强度的判定处理。Next, the process of determining the filter strength of the loop filter unit 11 will be described.

图9是示出滤波强度的判定方法的流程图。FIG9 is a flowchart illustrating a method for determining filter strength.

环路滤波器部11针对与垂直边缘和水平边缘邻接的所有像素,按照下述条件求出滤波强度bS(步骤ST51)。The loop filter unit 11 obtains the filter strength bS for all pixels adjacent to vertical edges and horizontal edges according to the following conditions (step ST51 ).

以下的说明中,用pi(i=0,1,2,3)、qj(j=0,1,2,3)的记号表示了边缘附近的像素,但边缘位置和像素位置的关系如图10那样定义。In the following description, pixels near an edge are represented by symbols p i (i=0, 1, 2, 3) and q j (j=0, 1, 2, 3). However, the relationship between the edge position and the pixel position is defined as shown in FIG10 .

在编码块中,包括亮度信号分量的块和色差信号分量的块,但在环路滤波器部11中,按照以下的条件,进行滤波强度的判定。The coding block includes a block of a luminance signal component and a block of a color difference signal component. However, the loop filter unit 11 determines the filter strength according to the following conditions.

(1)滤波处理对象的编码块的编码模式是帧内部编码模式、还是帧之间编码模式(1) Whether the coding mode of the coding block to be filtered is intra-frame coding mode or inter-frame coding mode

(2)进行滤波处理的信号分量是亮度信号分量、还是色差信号分量(2) Is the signal component to be filtered a luminance signal component or a color difference signal component?

(3)在包括滤波处理对象的像素的变换块内,是否包括非零的变换系数(3) Whether the transform block including the pixel to be filtered contains non-zero transform coefficients

(4)包括滤波处理对象的像素的分区中的运动参数的状态(4) Status of motion parameters in a partition including pixels to be filtered

环路滤波器部11通过以下的过程进行滤波强度的判定。The loop filter unit 11 determines the filter strength through the following procedure.

(过程1)(Process 1)

在是位于编码块的边界的边缘、且包括p0的编码块或者包括q0的编码块的编码模式是“帧内部编码模式”的情况下,决定为如下:If the coding mode is "intra coding mode" and the coding block includes p 0 or q 0 , the decision is as follows:

处理对象信号分量为亮度信号分量→bS=2The signal component to be processed is the luminance signal component → bS = 2

处理对象信号分量为色差信号分量→bS=4。The signal component to be processed is the color difference signal component → bS=4.

(过程2)(Process 2)

在不符合过程1中的条件的情况下,If the conditions in step 1 are not met,

在包括p0的编码块、或者包括q0的编码块的编码模式是“帧内部编码模式”的情况下,决定为如下:When the coding mode of the coding block including p 0 or the coding block including q 0 is "intra coding mode", the decision is as follows:

处理对象信号分量为亮度信号分量→bS=1The signal component to be processed is the luminance signal component → bS = 1

处理对象信号分量为色差信号分量→bS=3。The signal component to be processed is the color difference signal component → bS=3.

(过程3)(Process 3)

在不符合过程1、2中的条件的情况下,If the conditions in steps 1 and 2 are not met,

在p0或者q0属于具有非零正交变换系数的变换块的情况下,决定为如下:In the case where p0 or q0 belongs to a transform block with non-zero orthogonal transform coefficients, the decision is as follows:

处理对象信号分量为亮度信号分量→bS=2The signal component to be processed is the luminance signal component → bS = 2

处理对象信号分量为色差信号分量→bS=2。The signal component to be processed is the color difference signal component → bS=2.

(过程4)(Process 4)

在不符合过程1~3中的条件的情况下,在满足以下的任一条件的情况下,决定为如下:If the conditions in steps 1 to 3 are not met, but any of the following conditions are met, the decision is as follows:

处理对象信号分量为亮度信号分量→bS=1The signal component to be processed is the luminance signal component → bS = 1

处理对象信号分量为色差信号分量→bS=1。The signal component to be processed is the color difference signal component → bS=1.

[条件][condition]

·包括p0的分区和包括q0的分区具有不同的参照图片、或者具有不同数量的运动矢量The partition including p 0 and the partition including q 0 have different reference pictures or different numbers of motion vectors

·在包括p0的分区和包括q0的分区中,分别使用1个运动矢量,双方的运动矢量的水平分量或者垂直分量的差分绝对值在1/4像素精度下是4以上In the partition including p 0 and the partition including q 0 , one motion vector is used, and the absolute value of the difference between the horizontal component or vertical component of the two motion vectors is greater than 4 at 1/4 pixel accuracy.

·在包括p0的分区和包括q0的分区中,分别使用2个运动矢量,在指相同的参照图片的运动矢量对(p0中的运动矢量、和q0中的运动矢量的对)的至少1组中,双方的运动矢量的水平分量或者垂直分量的差分绝对值在1/4像素精度下是4以上In each of the partitions including p0 and q0 , two motion vectors are used, and in at least one pair of motion vectors referring to the same reference picture (a motion vector in p0 and a motion vector in q0 ), the absolute value of the difference between the horizontal or vertical components of the two motion vectors is 4 or more at 1/4 pixel accuracy.

(过程5)(Process 5)

在不符合过程1~4中的条件的情况下(分区/变换块的边界以外的边缘也符合本条件),决定为如下:If the conditions in steps 1 to 4 are not met (even if the edges other than the partition/transform block boundaries meet these conditions), the decision is as follows:

处理对象信号分量为亮度信号分量→bS=0The signal component to be processed is the luminance signal component → bS = 0

处理对象信号分量为色差信号分量→bS=0。The signal component to be processed is the color difference signal component → bS=0.

在处理对象的编码块的编码模式是帧内部编码模式的情况下,相比于利用帧之间预测的帧间预测的情况,亮度信号和色差信号的预测残差功率都大,被量化的变换系数的分布针对每个信号分量大幅不同的概率变高。When the coding mode of the coding block of the processing object is the intra-frame coding mode, compared with the case of inter-frame prediction using prediction between frames, the prediction residual power of the luminance signal and the color difference signal are large, and the probability that the distribution of the quantized transform coefficients is significantly different for each signal component becomes higher.

块失真的程度受到由于量化而有效的变换系数主观上会消失多少的影响,因此特别是在帧内部编码中,优选能够通过亮度和色差来调整作为测量块失真的程度的尺度的滤波强度的值。The degree of block distortion is affected by how much effective transform coefficients are subjectively lost due to quantization. Therefore, in intra-frame coding in particular, it is preferable to be able to adjust the value of the filter strength as a measure of the degree of block distortion using luminance and chrominance.

在以往的环路滤波器106(参照图16)中,色差信号分量的滤波强度始终被设定为与亮度信号分量的滤波强度相同的值,但在该实施方式1中,根据条件按信号分量(亮度信号分量、色差信号分量)设定了滤波强度,所以得到比以往更有助于画质的改善的滤波强度。In the previous loop filter 106 (refer to Figure 16), the filtering strength of the color difference signal component is always set to the same value as the filtering strength of the luminance signal component, but in this embodiment 1, the filtering strength is set according to the signal component (luminance signal component, color difference signal component) according to the conditions, so that the filtering strength that helps improve the image quality more than before is obtained.

在环路滤波器部11中,如果进行了滤波强度判定,则根据滤波强度的判定结果,按照垂直边缘、水平边缘的顺序进行滤波处理。In the loop filter unit 11 , when the filter strength is determined, filtering processing is performed in the order of vertical edges and horizontal edges based on the result of the filter strength determination.

首先,环路滤波器部11针对垂直边缘,针对每K行求出滤波强度bS的最大值,将该最大值设为bSVer。First, the loop filter unit 11 obtains the maximum value of the filter strength bS for every K lines for vertical edges, and defines the maximum value as bSVer.

环路滤波器部11根据最大值bSVer,进行针对该K行的边缘附近像素的滤波处理。The loop filter unit 11 performs filtering processing on the K rows of pixels near the edge based on the maximum value bSVer.

图11是示出针对垂直边缘的滤波处理的单位的说明图。以垂直边缘为中心的K×K像素成为相同的bSVer。对各像素应用的最终的滤波强度bS是由最大值bSVer和各像素位置处的像素值的变化量来决定的。Figure 11 illustrates the unit of filtering for vertical edges. K×K pixels centered on a vertical edge have the same bSVer. The final filter strength bS applied to each pixel is determined by the maximum bSVer and the change in pixel value at each pixel position.

图12示出针对水平边缘的滤波处理的单位。除了处理的方向从垂直变化为水平以外,与垂直边缘相同。Figure 12 shows the units of filtering processing for horizontal edges, which are the same as for vertical edges, except that the direction of processing changes from vertical to horizontal.

以下,说明针对处理对象像素的滤波处理。The following describes the filtering process performed on the processing target pixel.

环路滤波器部11针对亮度信号分量的垂直边缘方向,按照以下的过程进行滤波处理。针对亮度信号分量的水平边缘方向的滤波处理也是相同的过程,但代替最大值bSVer,使用针对水平边缘的每K行的滤波强度bS的最大值bSHor。The loop filter unit 11 performs filtering on the vertical edge direction of the luminance signal component according to the following procedure. The filtering on the horizontal edge direction of the luminance signal component is performed in the same manner, but instead of the maximum value bSVer, the maximum value bSHor of the filter strength bS for each K lines of horizontal edges is used.

[a]bSVer=0的情况[a] When bSVer = 0

不进行滤波处理。No filtering is performed.

[b]bSVer≤2的情况[b]bSVer≤2

(1)在图13中,求出设为Q=(亮度的qP值)时的参数β、Tc。(1) In FIG13 , the parameters β and Tc are determined when Q=(qP value of brightness).

图13是示出Q(亮度的qP值)与参数β、Tc的对应关系的说明图。FIG. 13 is an explanatory diagram showing the correspondence relationship between Q (the qP value of brightness) and the parameters β and Tc.

(2)求出d=|p2-2*p1+p0|+|q2-2*q1+q0|+|p2-2*p1+p0|+|q2-2*q1+q0|,(2) Find d=|p 2 -2*p 1 +p 0 |+|q 2 -2*q 1 +q 0 |+|p 2 -2*p 1 +p 0 |+|q 2 -2*q 1 +q 0 |,

根据以下的条件,进行滤波运算。Perform filtering operations according to the following conditions.

·在d小于(β>>2),并且|p3-p0|+|q0-q3|小于(β>>2),并且|p0-q0|小于((5*tc+1))>>1)的情况下,When d is smaller than (β>>2), |p 3 - p 0 |+|q 0 - q 3 | is smaller than (β>>2), and |p 0 - q 0 | is smaller than ((5*t c +1))>>1),

p0’=CliplY((p2+2*p1+2*p0+2*q0+q1+4)>>3)p 0 '=Clipl Y ((p 2 +2*p 1 +2*p 0 +2*q 0 +q 1 +4)>>3)

p1’=CliplY((p2+p1+p0+q0+2)>>2)p 1 '=Clipl Y ((p 2 +p 1 +p 0 +q 0 +2)>>2)

p2’=CliplY((2*p3+3*p2+p1+p0+q0+4)>>3)p 2 '=Clipl Y ((2*p 3 +3*p 2 +p 1 +p 0 +q 0 +4)>>3)

q0’=C1iplY((p1+2*p0+2*q0+2*q1+q2+4)>>3)q 0 '=C1ipl Y ((p 1 +2*p 0 +2*q 0 +2*q 1 +q 2 +4)>>3)

q1’=CliplY((p0+q0+q1+q2+2)>>2)q 1 '=Clip Y ((p 0 +q 0 +q 1 +q 2 +2)>>2)

q2’=CliplY((p0+q0+q1+3*q2+2*q3+4)>>3)q 2 '=Clipl Y ((p 0 +q 0 +q 1 +3*q 2 +2*q 3 +4)>>3)

·在其他情况下,In other cases,

Δ=Clip3(-tC,tC,(13*(q0-p0)+4*(q1-p1)-5*(q2-p0)+16)>>5)Δ=Clip3(-t C , t C , (13*(q 0 -p 0 )+4*(q 1 -p 1 )-5*(q 2 -p 0 )+16)>>5)

p0’=CliplY(p0+Δ)p 0 '=Clipl Y (p 0 +Δ)

q0’=CliplY(q0-Δ)q 0 '=Clipl Y (q 0 -Δ)

p1’=CliplY(p1+Δ/2)p 1 '=Clipl Y (p 1 +Δ/2)

q1’=CliplY(q1-Δ/2)q 1 '=Clipl Y (q 1 -Δ/2)

(3)将所求出的p0’~p2’、q0’~q2’置换为p0~p2、q0~q2的各像素值,将置换后的图像作为解码图像,输出到后级的运动补偿预测帧存储器12。(3) The obtained p 0 ' to p 2 ' and q 0 ' to q 2 ' are replaced with the pixel values of p 0 to p 2 and q 0 to q 2 , and the replaced image is output as a decoded image to the motion compensation prediction frame memory 12 at the subsequent stage.

[c]bSVer>2的情况[c] bSVer>2

在图13中,求出设为Q=(亮度的qP值)时的参数β、和设为Q=(亮度的qP值+4)时的参数Tc。以后的处理与bSVer≤2的情况相同。13 , the parameter β is obtained when Q = (the qP value of luminance) and the parameter Tc is obtained when Q = (the qP value of luminance + 4). The subsequent processing is the same as that in the case of bSVer≤2.

环路滤波器部11针对色差信号分量的垂直边缘方向,按照以下的过程进行滤波处理。针对色差信号分量的水平边缘方向的滤波处理也是相同的过程,但代替最大值bSVer,使用最大值bSHor。bSVer和bSVer是用同一位置的亮度计算的值。The loop filter unit 11 performs filtering processing on the vertical edges of the color difference signal components according to the following procedure. The filtering processing on the horizontal edges of the color difference signal components is the same, but the maximum value bSHor is used instead of the maximum value bSVer. bSVer and bSVer are values calculated using the luminance at the same position.

[a]bSVer>2的情况[a] bSVer>2

(1)进行以下的滤波运算。(1) Perform the following filtering operation.

Δ=Clip3(-tC,tC,((((q0-p0)<<2)+p1-q1+4)>>3))Δ=Clip3(-t C , t C , ((((q 0 -p 0 )<<2)+p 1 -q 1 +4)>>3))

p0’=CliplC(p0+Δ)p 0 '=Clipl C (p 0 +Δ)

q0’=CliplC(q0-Δ)q 0 '=Clipl C (q 0 -Δ)

(2)将所求出的p0’、q0’置换为p0、q0的各像素值,将置换后的图像作为解码图像,输出到后级的运动补偿预测帧存储器12。(2) The obtained p 0 ′ and q 0 ′ are replaced with the pixel values of p 0 and q 0 , and the replaced image is output as a decoded image to the motion compensation prediction frame memory 12 at the subsequent stage.

[b]bSVer≤2的情况[b]bSVer≤2

不进行滤波处理。No filtering is performed.

图像编码装置的环路滤波器部11和图像解码装置的环路滤波器部28进行共同的处理,但也可以构成为图像编码装置的环路滤波器部11关于滤波强度的判定设置控制用的参数。The loop filter unit 11 of the image encoding device and the loop filter unit 28 of the image decoding device perform common processing, but the loop filter unit 11 of the image encoding device may be configured to set a control parameter for determining the filter strength.

例如,也可以构成为通过复用表示是否以切片等级对滤波强度bS的值进行信号化(signalling)的识别信息,从而能够针对每个切片变更滤波强度bS的设定值。For example, identification information indicating whether or not the value of the filter strength bS is signaled at a slice level may be multiplexed, thereby enabling the set value of the filter strength bS to be changed for each slice.

关于此时的变更,既可以设为仅变更亮度信号分量,而固定色差信号分量,也可以相反地构成为能够固定亮度信号分量,而仅变更色差信号分量。Regarding the change at this time, only the luminance signal component may be changed while the color difference signal component is fixed, or conversely, the luminance signal component may be fixed while only the color difference signal component is changed.

关于设定值的信号化,既可以是值本身,也可以是将滤波强度bS设为默认值的偏移值的形式。也可以将色差信号分量的滤波强度表现为亮度信号分量的滤波强度的偏移值。The setting value may be expressed as a signal, either as the value itself or as an offset from the default value of the filter strength bS. Alternatively, the filter strength of the color difference signal component may be expressed as an offset from the filter strength of the luminance signal component.

另外,还能够构成为特别是将编码模式为帧内部编码模式的情况下的滤波强度bS的设定值信号化为值本身或者偏移值。例如,环路滤波器部11能够构成为按照以下的过程进行滤波强度的判定。In particular, when the coding mode is the intra-frame coding mode, the setting value of the filter strength bS can be signaled as the value itself or an offset value. For example, the loop filter unit 11 can be configured to determine the filter strength according to the following procedure.

关于以帧内部编码模式被编码的编码块,将针对亮度分量的滤波强度值设为bSL,将针对色差分量的滤波强度值设为bSC,将bSL和bSC作为图片等级的头、切片头等语法信息复用到比特流,从而使得能够在编码装置和解码化装置中共享。此时,For coding blocks encoded in intra-frame coding mode, the filter strength value for the luma component is set to bSL, and the filter strength value for the chroma component is set to bSC. bSL and bSC are multiplexed into the bitstream as syntax information such as picture-level headers and slice headers, so that they can be shared between the encoding device and the decoding device. In this case,

(过程1)(Process 1)

在是位于编码块的边界的边缘、且包括po的编码块或者包括qo的编码块的编码模式是“帧内部编码模式”的情况下,决定为如下:If the coding mode of the coding block including po or the coding block including qo is "intra coding mode" and the block is located at the edge of the coding block boundary, the following is determined:

处理对象信号分量为亮度信号分量→bS=max(4-bSL、0)The signal component to be processed is the luminance signal component → bS = max(4-bSL, 0)

处理对象信号分量为色差信号分量→bS=max(4-bSC、0)The signal component to be processed is the color difference signal component → bS = max(4-bSC, 0)

此处,max(A,B)是输出A和B中的大的一方的值的函数。Here, max(A, B) is a function that outputs the larger value of A and B.

(过程2)(Process 2)

在不符合过程1中的条件的情况下,If the conditions in step 1 are not met,

在包括po的编码块或者包括qo的编码块的编码模式是“帧内部编码模式”的情况下,决定为如下:When the coding mode of the coding block including po or the coding block including qo is "intra coding mode", the decision is as follows:

处理对象信号分量为亮度信号分量→bS=max(3-bSL、0)The signal component to be processed is the luminance signal component → bS = max(3-bSL, 0)

处理对象信号分量为色差信号分量→bS=max(3-bSC、0)。The signal component to be processed is the color difference signal component → bS = max(3 - bSC, 0).

在编码模式是帧内部编码模式的情况下,存在如下情况:在压缩处理过程中运动预测无法有效地发挥功能,不得已而进行帧内部编码的情况;以及以错误抗性、随机访问的观点周期性地、有意图地使帧内部编码发生的情况。When the coding mode is the intra-frame coding mode, there are the following situations: the situation where motion prediction cannot function effectively during the compression process and intra-frame coding is performed as a last resort; and the situation where intra-frame coding is performed periodically and intentionally from the perspective of error resistance and random access.

在不得已而进行帧内部编码的情况下,失真会与编码的难易度对应地重叠,相对于此,在周期性地、有意图地使帧内部编码发生的情况下,由于不直接与编码的难易度相关地使用帧内部编码,所以各个块失真的发生方式产生差异。When intra-frame coding is performed as a last resort, distortion will overlap in accordance with the difficulty of coding. In contrast, when intra-frame coding is performed periodically and intentionally, since intra-frame coding is not used directly in relation to the difficulty of coding, the way in which distortion occurs in each block will differ.

在以往的环路滤波器中,没有判别上述情况来控制滤波强度的手段。Conventional loop filters do not have a means of determining the above situation and controlling the filtering strength.

由于按照切片、图片的单位执行周期帧内部插入,所以通过按照这些单位根据用途控制滤波强度,从而能够更良好地抑制块失真。Since periodic intra-frame interpolation is performed in units of slices or pictures, by controlling the filter strength in accordance with the application in these units, block distortion can be suppressed more effectively.

另外,相反地,也可以构成为对编码模式为帧之间编码模式的情况下的滤波强度bS的设定值进行信号化。Furthermore, conversely, a configuration may be adopted in which the setting value of the filter strength bS when the coding mode is the inter-frame coding mode is signaled.

此处,图14是示出由可变长编码部13生成的比特流的说明图。Here, FIG14 is an explanatory diagram showing a bit stream generated by the variable-length coding unit 13. In FIG14 , as shown in FIG14 , a bit stream generated by the variable-length coding unit 13 is generated.

在图14的例子中,示出了切片编码数据由切片头、和接着该切片头的与切片内的个数相当的最大编码块编码数据构成的情况。The example of FIG. 14 shows a case where slice coded data is composed of a slice header and maximum coded block coded data corresponding to the number of blocks in the slice following the slice header.

各最大编码块编码数据包括编码模式。虽然未图示,但在最大编码块编码数据中,针对每个编码块,包括分区单位的运动矢量等预测参数、变换块大小等预测差分编码参数、预测差分编码数据(已量化变换系数)。Each maximum coding block's coded data includes a coding mode. Although not shown, the coded data for each maximum coding block includes prediction parameters such as motion vectors for each partition, prediction differential coding parameters such as transform block size, and prediction differential coding data (quantized transform coefficients).

在切片头中,包括:环路滤波ON/OFF标志,该环路滤波ON/OFF标志为是否对切片内的所有编码块进行本环路滤波的处理的识别信息;滤波强度信息复用标志,该滤波强度信息复用标志为表示是否对滤波强度bS的设定值进行信号化的标志;滤波强度信息,在滤波强度信息复用标志是“1”的情况下复用该滤波强度信息。The slice header includes: a loop filter ON/OFF flag, which is identification information of whether to perform loop filtering on all coding blocks in the slice; a filter strength information multiplexing flag, which is a flag indicating whether the set value of the filter strength bS is signaled; and filter strength information, which is multiplexed when the filter strength information multiplexing flag is "1".

滤波强度信息复用标志以及滤波强度信息也可以构成为复用到按照图片、序列、GOP(Group Of Pictures,图片组)等单位定义的头信息区域中。The filter strength information multiplexing flag and the filter strength information may be configured to be multiplexed in a header information area defined in units such as pictures, sequences, and GOPs (Group of Pictures).

接下来,说明图3的图像解码装置的处理内容。Next, the processing contents of the image decoding apparatus in FIG3 will be described.

可变长解码部21如果输入了从图1的图像编码装置输出的比特流,则实施针对该比特流的可变长解码处理(图4的步骤ST21),解码出按照由1帧以上的图片构成的序列单位或者图片单位规定图片大小(水平像素数/垂直行数)的信息。If the variable length decoding unit 21 inputs the bit stream output from the image encoding device of Figure 1, it implements variable length decoding processing on the bit stream (step ST21 of Figure 4) to decode the information of the picture size (horizontal pixel number/vertical line number) specified according to the sequence unit or picture unit composed of more than one frame of pictures.

可变长解码部21按照与图1的编码控制部1同样的过程,决定成为实施运动补偿预测处理(帧间预测处理)或者帧内部预测处理(帧内预测处理)时的处理单位的编码块的最大大小,并且决定最大大小的编码块被分层地分割时的上限的层次数(步骤ST22)。The variable length decoding unit 21 determines the maximum size of the coding block that serves as the processing unit when performing motion compensation prediction processing (inter-frame prediction processing) or intra-frame prediction processing (intra-frame prediction processing) in the same process as the encoding control unit 1 in Figure 1, and determines the upper limit number of layers when the maximum-sized coding block is hierarchically divided (step ST22).

例如,在图像编码装置中根据输入图像的分辨率决定了编码块的最大大小的情况下,根据之前解码出的帧大小决定编码块的最大大小。For example, when the maximum size of a coding block is determined according to the resolution of an input image in an image coding apparatus, the maximum size of the coding block is determined according to the previously decoded frame size.

另外,在比特流中复用有表示编码块的最大大小以及上限的层次数的信息的情况下,参照从该比特流解码出的信息。Furthermore, when information indicating the maximum size of a coding block and the upper limit of the number of layers is multiplexed in the bitstream, the information decoded from the bitstream is referenced.

在比特流的结构是图14的结构的情况下,可变长解码部21在最大编码块等级的解码之前,从切片头解码出环路滤波ON/OFF标志。When the bitstream structure is the structure shown in FIG. 14 , the variable length decoding unit 21 decodes the loop filter ON/OFF flag from the slice header before decoding the maximum coding block level.

在比特流上复用的最大大小的编码块B0的编码模式m(B0)中包括表示最大大小的编码块B0的分割状态的信息,所以可变长解码部21解码出比特流上复用的最大大小的编码块B0的编码模式m(B0),确定被分层地分割的各个编码块Bn(步骤ST23)。The coding mode m(B 0 ) of the maximum-sized coding block B 0 multiplexed on the bitstream includes information indicating the division state of the maximum-sized coding block B 0. Therefore, the variable-length decoding unit 21 decodes the coding mode m(B 0 ) of the maximum-sized coding block B 0 multiplexed on the bitstream and determines the hierarchically divided coding blocks B n (step ST23).

在可变长解码部21中,如果确定了各个编码块Bn,则对该编码块Bn的编码模式m(Bn)进行解码,根据属于该编码模式m(Bn)的分区Pi n的信息,确定属于编码块Bn的分区Pi nIn the variable length decoding unit 21, once each coding block Bn is determined, the coding mode m( Bn ) of the coding block Bn is decoded, and the partition P in belonging to the coding block Bn is determined based on the information of the partition P belonging to the coding mode m( Bn ) .

在可变长解码部21中,如果确定了属于编码块Bn的分区Pi n,则针对每个分区Pi n,解码出压缩数据、编码模式、预测差分编码参数、帧内部预测参数/帧之间预测参数(包括运动矢量)(步骤ST24)。In the variable length decoding unit 21, once the partition Pin belonging to the coding block Bn is determined, the compressed data, coding mode, prediction difference coding parameters, intra-frame prediction parameters/inter-frame prediction parameters (including motion vectors) are decoded for each partition Pin (step ST24).

在属于从可变长解码部21输出的编码块Bn的分区Pi n的编码模式m(Bn)是帧内部编码模式的情况下(步骤ST25),切换开关22将从可变长解码部21输出的帧内部预测参数输出到帧内部预测部23。When the coding mode m( Bn ) of the partition Pin of the coding block Bn output from the variable length decoding unit 21 is the intra coding mode (step ST25), the switch 22 outputs the intra prediction parameters output from the variable length decoding unit 21 to the intra prediction unit 23.

另一方面,在分区Pi n的编码模式m(Bn)是帧之间编码模式的情况下(步骤ST25),将从可变长解码部21输出的帧之间预测参数输出到运动补偿预测部24。On the other hand, when the coding mode m(B n ) of the partition Pin is the inter coding mode (step ST25 ), the inter prediction parameters output from the variable length decoding unit 21 are output to the motion compensation prediction unit 24 .

帧内部预测部23如果从切换开关22接收到帧内部预测参数,则一边参照由帧内部预测用存储器27保存的已解码块的解码图像(参照图像),一边使用该帧内部预测参数,实施针对该编码块Bn的分区Pi n的帧内部预测处理,生成帧内部预测图像Pi n(步骤ST26)。Upon receiving the intra-frame prediction parameters from the switch 22, the intra-frame prediction unit 23 performs intra-frame prediction processing on the partition Pin of the coding block Bn using the intra-frame prediction parameters while referring to the decoded image (reference image) of the decoded block stored in the intra-frame prediction memory 27 , thereby generating an intra-frame prediction image Pin ( step ST26).

运动补偿部24如果接收到从切换开关22输出的帧之间预测参数,则使用该帧之间预测参数中包含的运动矢量和由运动补偿预测帧存储器29保存的已解码块的解码图像(参照图像),实施针对该编码块的帧之间预测处理,生成帧内部预测图像Pi n(步骤ST27)。Upon receiving the inter-frame prediction parameters output from the switching switch 22, the motion compensation unit 24 performs inter-frame prediction processing on the coded block using the motion vector included in the inter-frame prediction parameters and the decoded image (reference image) of the decoded block stored in the motion compensation prediction frame memory 29, thereby generating an intra-frame prediction image Pin (step ST27).

逆量化/逆变换部25使用从可变长解码部21输出的预测差分编码参数中包含的量化参数,对从可变长解码部21输出的压缩数据进行逆量化,按照该预测差分编码参数中包含的变换块大小单位,实施逆量化后的压缩数据的逆变换处理(例如逆DCT(逆离散余弦变换)、逆KL变换等逆变换处理),从而将逆变换处理后的压缩数据作为解码预测差分信号(表示压缩前的差分图像的信号)输出到加法部26(步骤ST28)。The inverse quantization/inverse transformation unit 25 uses the quantization parameter included in the predicted differential coding parameter output from the variable length decoding unit 21 to inverse quantize the compressed data output from the variable length decoding unit 21, and performs inverse transformation processing (such as inverse DCT (inverse discrete cosine transform), inverse KL transform, and other inverse transformation processing) on the inversely quantized compressed data according to the transformation block size unit included in the predicted differential coding parameter, thereby outputting the compressed data after the inverse transformation processing as a decoded predicted differential signal (a signal representing the differential image before compression) to the addition unit 26 (step ST28).

加法部26如果从逆量化/逆变换部25接收到解码预测差分信号,则将该解码预测差分信号和表示由帧内部预测部23或者运动补偿部24生成的预测图像的预测信号进行相加,从而生成解码图像,将表示该解码图像的解码图像信号保存到帧内部预测用存储器27中,并且将该解码图像信号输出到环路滤波器部28(步骤ST29)。If the adding unit 26 receives the decoded prediction differential signal from the inverse quantization/inverse transform unit 25, it adds the decoded prediction differential signal and the prediction signal representing the predicted image generated by the intra-frame prediction unit 23 or the motion compensation unit 24 to generate a decoded image, saves the decoded image signal representing the decoded image into the intra-frame prediction memory 27, and outputs the decoded image signal to the loop filter unit 28 (step ST29).

反复实施步骤ST23~ST29的处理直至针对被分层地分割的所有编码块Bn的处理完成为止(步骤ST30)。The processes of steps ST23 to ST29 are repeatedly performed until the processes for all the hierarchically divided coding blocks Bn are completed (step ST30).

环路滤波器部28如果从加法部26接收到解码图像信号,则实施针对该解码图像信号的滤波处理,从而去除在块边界中发生的失真(块失真),将失真去除后的解码图像信号表示的解码图像保存到运动补偿预测帧存储器29中。If the loop filter unit 28 receives the decoded image signal from the addition unit 26, it performs filtering processing on the decoded image signal to remove the distortion (block distortion) occurring at the block boundary, and saves the decoded image represented by the decoded image signal after the distortion is removed into the motion compensation prediction frame memory 29.

环路滤波器部28中的滤波处理与图1的环路滤波器部11中的滤波处理相同,在去除该解码图像的块失真时,与从可变长解码部21输出的编码模式(帧内部编码模式、帧之间编码模式)相应地,按信号分量(亮度信号分量、色差信号分量)设定去除块失真的滤波的强度。The filtering process in the loop filter unit 28 is the same as the filtering process in the loop filter unit 11 of Figure 1. When removing block distortion of the decoded image, the intensity of the filtering for removing block distortion is set according to the signal component (luminance signal component, color difference signal component) in accordance with the coding mode (intra-frame coding mode, inter-frame coding mode) output from the variable-length decoding unit 21.

另外,在通过可变长解码部21从切片头解码出滤波强度信息复用标志以及滤波强度信息的情况下,用该滤波强度信息表示的滤波强度bS执行滤波处理。Furthermore, when the filter strength information multiplexing flag and the filter strength information are decoded from the slice header by the variable length decoding unit 21, filtering processing is performed using the filter strength bS indicated by the filter strength information.

如以上说明可知,根据该实施方式1,构成为图像解码装置的环路滤波器部28在去除解码图像的块失真时,与从可变长解码部21输出的编码模式(帧内部编码模式、帧之间编码模式)相应地,按信号分量(亮度信号分量、色差信号分量)设定去除块失真的滤波的强度,所以起到能够提高块失真的去除精度、改善解码图像的质量的效果。As can be seen from the above description, according to this first embodiment, when removing block distortion from a decoded image, the loop filter unit 28 configured as an image decoding device sets the intensity of the filtering for removing block distortion according to the signal component (luminance signal component, color difference signal component) in accordance with the coding mode (intra-frame coding mode, inter-frame coding mode) output from the variable-length decoding unit 21. This has the effect of improving the accuracy of removing block distortion and the quality of the decoded image.

在以上的说明中,示出了实施帧间运动补偿预测处理(帧之间预测处理)的图像编码装置以及图像解码装置的例子,但即使是针对所有帧实施帧内预测处理(帧内部预测处理)的图像编码装置以及图像解码装置,也可以构成为由环路滤波器部11、28去除块失真。In the above description, an example of an image encoding device and an image decoding device that implement inter-frame motion compensation prediction processing (inter-frame prediction processing) is shown. However, even an image encoding device and an image decoding device that implement intra-frame prediction processing (intra-frame prediction processing) for all frames can be configured to remove block distortion by the loop filter units 11 and 28.

在组合帧内预测处理(帧内部预测处理)和帧间运动补偿预测处理(帧之间预测处理)来实施的图像编码装置以及图像解码装置中,在设定为通过帧内部预测处理对所有帧进行编码时,还能够控制为不利用环路滤波器部11、28的动作。In an image encoding device and an image decoding device that implement a combination of intra-frame prediction processing (intra-frame prediction processing) and inter-frame motion compensation prediction processing (inter-frame prediction processing), when it is set to encode all frames through intra-frame prediction processing, it is also possible to control the operation of the loop filter units 11 and 28 not to be used.

在该实施方式1中,示出了如图5所示编码块Bn的大小是Ln=Mn的例子,但也可以是编码块Bn的大小为Ln≠MnIn this first embodiment, an example is shown in which the size of the coding block Bn is Ln = Mn as shown in FIG5 . However, the size of the coding block Bn may be LnMn .

例如,如图15所示,考虑编码块Bn的大小为Ln=kMn的情况。For example, as shown in FIG15 , consider the case where the size of the coding block Bn is Ln = kMn .

在接下来的分割中,成为(Ln+1,Mn+1)=(Ln,Mn),以后的分割既可以进行与图5同样的分割,也可以如(Ln+1,Mn+1)=(Ln/2,Mn/2)那样进行分割。In the next division, (Ln +1 , Mn +1 ) = ( Ln , Mn ). Subsequent divisions may be similar to those shown in FIG5 or may be such that (Ln +1 , Mn+1 ) = ( Ln /2, Mn /2).

通过这样的结构,例如设为M0=16,从而能够定义MPEG-2(ISO/IEC13818-2)、MPEG-4AVC/H.264(ISO/IEC 14496-10)那样的将由16×16像素构成的宏块横向连结的结构的最大编码块,具有易于构成维持了与已有方式的互换性的图像编码装置这样的效果。By setting M 0 = 16, for example, such a structure can define a maximum coding block that is a structure of horizontally concatenating macroblocks composed of 16×16 pixels, as in MPEG-2 (ISO/IEC 13818-2) and MPEG-4 AVC/H.264 (ISO/IEC 14496-10), which has the effect of facilitating the construction of an image coding device that maintains compatibility with existing methods.

另外,即使在并非Ln=kMn而如kLn=Mn那样纵向连结的情况下,当然也可以按照同样的思路进行分割。Furthermore, even when Ln = kMn is not Ln=kMn but the system is vertically connected as in kLn = Mn , it is of course possible to perform division according to the same concept.

另外,本申请发明能够在该发明的范围内,实现实施方式的任意的构成要素的变形、或者实施方式的任意的构成要素的省略。Furthermore, the present invention can realize modifications of arbitrary components of the embodiments or omissions of arbitrary components of the embodiments within the scope of the invention.

产业上的可利用性Industrial applicability

本发明的图像编码装置、图像解码装置、图像编码方法以及图像解码方法具备与编码模式相应地按信号分量设定滤波的强度的手段,能够提高块失真的去除精度,改善编码图像的质量,所以能够应用于MPEG、ITU-TH.26x等国际标准影像编码方式。The image encoding device, image decoding device, image encoding method and image decoding method of the present invention have means for setting the intensity of filtering according to the signal component in accordance with the encoding mode, which can improve the accuracy of removing block distortion and improve the quality of the encoded image, so they can be applied to international standard image encoding methods such as MPEG and ITU-TH.26x.

Claims (2)

1.一种图像编码装置,对输入图像实施编码块单位的编码处理,其特征在于,所述图像编码装置具备:1. An image encoding apparatus for performing block-level encoding processing on an input image, characterized in that the image encoding apparatus comprises: 失真去除单元,该失真去除单元针对将对压缩作为与所述编码块有关的所述输入图像与预测图像的差分的差分图像而得到的压缩数据进行解压缩而得到的解码差分图像和所述预测图像相加而得到的解码图像实施滤波处理,去除在所述解码图像的邻接的用于变换所述差分图像的变换块的边界中产生的块失真,The distortion removal unit performs filtering processing on a decoded image obtained by adding the predicted image to a decoded differential image obtained by decompressing compressed data (which is a difference between the input image and the predicted image related to the coded block), and removes block distortion generated in the boundaries of adjacent transform blocks used to transform the differential image in the decoded image. 所述失真去除单元在去除所述解码图像的块失真时,判定垂直边缘以及水平边缘是否与分区或者变换块的边界一致,根据所述判定的结果、所述编码块的编码模式的信息是帧内部编码模式还是帧之间编码模式以及进行滤波处理的信号分量是亮度信号分量还是色差信号分量来进行滤波处理,其中,滤波的强度是与所述编码块的编码模式相应地,按信号分量独立地被设定的。When removing block distortion from the decoded image, the distortion removal unit determines whether the vertical and horizontal edges are consistent with the boundaries of the partition or transform block. Based on the determination result, the information of the encoding mode of the encoding block (whether it is an intra-frame encoding mode or an inter-frame encoding mode) and whether the signal component to be filtered is a luminance signal component or a chrominance signal component, the filtering process is performed. The filtering intensity is set independently for each signal component, corresponding to the encoding mode of the encoding block. 2.一种图像编码方法,对输入图像实施编码块单位的编码处理,其特征在于,所述图像编码方法具备:2. An image encoding method, which performs encoding processing on an input image in block units, characterized in that the image encoding method comprises: 失真去除处理步骤,在该失真去除处理步骤中,针对将对压缩作为与所述编码块有关的所述输入图像与预测图像的差分的差分图像而得到的压缩数据进行解压缩而得到的解码差分图像和所述预测图像相加而得到的解码图像实施滤波处理,去除在所述解码图像的邻接的用于变换所述差分图像的变换块的边界中产生的块失真,The distortion removal process involves filtering the decoded image obtained by decompressing compressed data (obtained by compressing the input image and the prediction image as a difference related to the coded block) and the predicted image to remove block distortion generated at the boundaries of adjacent transform blocks used to transform the difference image in the decoded image. 在所述失真去除处理步骤中,在去除所述解码图像的块失真时,判定垂直边缘以及水平边缘是否与分区或者变换块的边界一致,根据所述判定的结果、所述编码块的编码模式的信息是帧内部编码模式还是帧之间编码模式以及进行滤波处理的信号分量是亮度信号分量还是色差信号分量来进行滤波处理,其中,滤波的强度是与所述编码块的编码模式相应地,按信号分量独立地被设定的。In the distortion removal process, when removing block distortion from the decoded image, it is determined whether the vertical and horizontal edges are consistent with the boundaries of the partition or transform block. Based on the determination result, the information of the encoding mode of the encoding block (whether it is an intra-frame encoding mode or an inter-frame encoding mode) and whether the signal component to be filtered is a luminance signal component or a chrominance signal component, filtering is performed. The filtering intensity is set independently for each signal component, corresponding to the encoding mode of the encoding block.
HK17106459.2A 2011-06-30 2017-06-28 Image encoding device and image encoding method HK1233402B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011-145612 2011-06-30

Publications (3)

Publication Number Publication Date
HK1233402A HK1233402A (en) 2018-01-26
HK1233402A1 HK1233402A1 (en) 2018-01-26
HK1233402B true HK1233402B (en) 2021-03-12

Family

ID=

Similar Documents

Publication Publication Date Title
JP6863669B2 (en) Image coding device, image coding method, image decoding device and image decoding method
HK1233402B (en) Image encoding device and image encoding method
HK1235946B (en) Image coding device and method, image decoding device and method
HK1234567B (en) Image coding device and method, image decoding device and method
HK1233813B (en) Image encoding device and method, and image decoding device and method
HK1235948B (en) Image coding device and method, image decoding device and method
HK1233402A1 (en) Image encoding device and image encoding method
HK1233402A (en) Image encoding device and image encoding method
HK1235946A1 (en) Image coding device and method, image decoding device and method
HK1235946A (en) Image coding device and method, image decoding device and method
HK1234567A1 (en) Image encoding device and method, and image decoding device and method
HK1234567A (en) Image encoding device and method, and image decoding device and method
HK1233813A1 (en) Image encoding device and method, and image decoding device and method
HK1233813A (en) Image encoding device and method, and image decoding device and method
HK1235948A (en) Image coding device and method, image decoding device and method
HK1235948A1 (en) Image coding device and method, image decoding device and method
HK1192674A (en) Image decoding device and image decoding method
HK1192674B (en) Image decoding device and image decoding method