[go: up one dir, main page]

HK1237161B - Image decoding method and image processing apparatus - Google Patents

Image decoding method and image processing apparatus Download PDF

Info

Publication number
HK1237161B
HK1237161B HK17110738.7A HK17110738A HK1237161B HK 1237161 B HK1237161 B HK 1237161B HK 17110738 A HK17110738 A HK 17110738A HK 1237161 B HK1237161 B HK 1237161B
Authority
HK
Hong Kong
Prior art keywords
unit
quantization parameter
image
block
quantization
Prior art date
Application number
HK17110738.7A
Other languages
Chinese (zh)
Other versions
HK1237161A (en
HK1237161A1 (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 HK1237161A publication Critical patent/HK1237161A/en
Publication of HK1237161A1 publication Critical patent/HK1237161A1/en
Publication of HK1237161B publication Critical patent/HK1237161B/en

Links

Description

图像解码方法和图像处理设备Image decoding method and image processing device

本申请是申请日为2012年1月12日、发明名称为“图像解码装置、图像编码装置及其方法”以及申请号为201280005652.3的发明专利申请的分案申请。This application is a divisional application of the invention patent application with the application date of January 12, 2012, the invention name of the invention and the application number of 201280005652.3.

技术领域Technical Field

本技术涉及图像解码装置、图像编码装置及其方法。更具体地,提高了量化参数的编码效率。The present technology relates to an image decoding device, an image encoding device, and a method thereof, and more specifically, improves the encoding efficiency of a quantization parameter.

背景技术Background Art

近年来,将图像信息处理成数字的以便在下述情况下进行高效信息传输和存储的装置在广播和一般家用二者中都得到广泛使用:例如,适用如MPEG等的格式以通过正交变换(如离散余弦变换等)和运动补偿来压缩图像。In recent years, devices that process image information into digital form for efficient information transmission and storage in the following situations have become widely used in both broadcasting and general home use: for example, formats such as MPEG are used to compress images through orthogonal transforms (such as discrete cosine transforms) and motion compensation.

具体地,MPEG2(ISO/IEC 13818-2)被定义为通用图像编码格式,并且现在广泛用于专业用途和消费者用途的广泛应用范围。通过应用MPEG2压缩格式,在具有例如720×480像素的标准分辨率的隔行扫描图像的情况下,分配4至8Mbps的代码量(比特率),从而可以实现高压缩和好的图像质量。此外,在具有例如1920×1088像素的高分辨率的隔行扫描图像的情况下,分配18至22Mbps的代码量(比特率),从而可以实现高压缩和好的图像质量。Specifically, MPEG2 (ISO/IEC 13818-2) is defined as a general-purpose image coding format and is currently widely used in a wide range of applications for both professional and consumer use. By applying the MPEG2 compression format, for interlaced images with a standard resolution of, for example, 720×480 pixels, a code size (bit rate) of 4 to 8 Mbps is allocated, thereby achieving high compression and good image quality. Furthermore, for interlaced images with a high resolution of, for example, 1920×1088 pixels, a code size (bit rate) of 18 to 22 Mbps is allocated, thereby achieving high compression and good image quality.

此外,标准化被执行作为增强的压缩视频编码的联合模型(Joint Model ofEnhanced-Compression Video Coding),虽然对增强的压缩视频编码的联合模型进行编码和解码需要较大的计算量,但是它可以实现较高的编码效率,并且增强的压缩视频编码的联合模型成为了被称为H.264和MPEG-4Part 10的国际标准(在下文中被写为“H.264/AVC(高级视频编码)”)。In addition, standardization was carried out as the Joint Model of Enhanced-Compression Video Coding, and although encoding and decoding the Joint Model of Enhanced-Compression Video Coding requires a large amount of computation, it can achieve higher coding efficiency, and the Joint Model of Enhanced-Compression Video Coding became an international standard called H.264 and MPEG-4 Part 10 (hereinafter written as "H.264/AVC (Advanced Video Coding)").

关于该MPEG和H.264/AVC,在量化宏块时,可以改变量化步长的尺寸,以使得压缩率恒定。此外,关于MPEG,使用与量化步长成比例的量化参数,并且关于H.264/AVC,使用其中当量化步长加倍时参数值增加“6”的量化参数。在MPEG和H.264/AVC中,编码量化参数(参见专利文献1)。MPEG and H.264/AVC use a quantization parameter proportional to the quantization step size when quantizing macroblocks to maintain a constant compression rate. MPEG uses a quantization parameter proportional to the quantization step size, while H.264/AVC uses a quantization parameter whose value increases by "6" when the quantization step size doubles. In MPEG and H.264/AVC, the quantization parameter is encoded (see Patent Document 1).

引用列表Reference List

专利文献Patent Literature

专利文献1:日本未审查专利申请公开No.2006-094081Patent Document 1: Japanese Unexamined Patent Application Publication No. 2006-094081

发明内容Summary of the Invention

技术问题Technical issues

现在,关于量化参数的编码处理,在解码顺序例如为如图1所示的光栅扫描(raster scan)顺序的情况下,具有初始值的量化参数SliceQPY被用于片的头宏块。随后,按由箭头所指示的解码顺序进行处理,并且关于位于左侧的宏块(mb_qp_delta),该宏块的量化参数由量化参数的差值来更新。因此,存在下述情况:当解码顺序从右边缘处的块转变到左边缘处的块时,由于图像是不同的,所以差值变得很大,并且编码效率变差。此外,在关于位于左侧的宏块的差值也很大的情况下,编码效率变差。Now, regarding the encoding process of the quantization parameter, when the decoding order is, for example, the raster scan order as shown in FIG1 , the quantization parameter SliceQPY having an initial value is used for the header macroblock of the slice. Subsequently, processing proceeds in the decoding order indicated by the arrow, and for the macroblock located on the left (mb_qp_delta), the quantization parameter of that macroblock is updated by the difference in quantization parameters. Therefore, when the decoding order changes from the block at the right edge to the block at the left edge, the difference in images becomes large, and encoding efficiency may deteriorate. Furthermore, if the difference in the macroblock located on the left is also large, encoding efficiency may deteriorate.

此外,关于图像压缩技术,正在针对实现比H.264/AVC格式更高的编码效率的HEVC(高效视频编码)的标准化进行研究。关于该HDVC,被称为编码单元(CU:编码单元)的基本单元是宏块的概念的扩展。在图2中所示的每个块是编码单元的情况下,解码顺序是其编号从“0”依次增加的块的顺序。在解码顺序以这种方式不是光栅扫描顺序的情况下,由于空间距离大,所以例如从块“7”至块“8”移动或者从块“15”至块“16”移动可以想象会导致较大的差值。In addition, regarding image compression technology, research is being conducted on the standardization of HEVC (High Efficiency Video Coding) that achieves higher coding efficiency than the H.264/AVC format. With regard to this HDVC, a basic unit called a coding unit (CU: Coding Unit) is an extension of the concept of a macroblock. In the case where each block shown in FIG2 is a coding unit, the decoding order is the order of blocks whose numbers increase sequentially from "0". In the case where the decoding order is not a raster scan order in this way, since the spatial distance is large, it is conceivable that moving from block "7" to block "8" or from block "15" to block "16" will result in a large difference.

因此,本技术的目的是提高量化参数的编码效率。Therefore, the purpose of this technology is to improve the coding efficiency of quantization parameters.

解决方案Solution

根据本公开的一方面,提供了一种图像解码方法,包括:如果与当前块左侧相邻的块的量化参数和与当前块上方相邻的块的量化参数能够被使用,则设置从与左侧相邻的块的量化参数和与上方相邻的块的量化参数的平均值得到的预测量化参数;如果与左侧相邻的块的量化参数和与上方相邻的块的量化参数不能够被使用,则设置从片的量化参数的初始值得到的预测量化参数;以及基于从预测量化参数和差得到的当前块的量化参数来进行逆量化,该差是从比特流得到的、当前块的量化参数与预测量化参数之间的差。According to an aspect of the present disclosure, there is provided an image decoding method, comprising: setting a predicted quantization parameter obtained from an average value of the quantization parameters of the block adjacent to the left and the block adjacent to the top of the current block if the quantization parameters of the block adjacent to the left and the quantization parameters of the block adjacent to the top can be used; setting a predicted quantization parameter obtained from an initial value of the quantization parameter of a slice if the quantization parameters of the block adjacent to the left and the quantization parameters of the block adjacent to the top cannot be used; and performing inverse quantization based on a quantization parameter of the current block obtained from the predicted quantization parameter and a difference, the difference being a difference between the quantization parameter of the current block obtained from a bitstream and the predicted quantization parameter.

根据本公开的另一方面,还提供了一种图像处理设备,包括电路,该电路被配置成:如果与当前块左侧相邻的块的量化参数和与当前块上方相邻的块的量化参数能够被使用,则设置从与左侧相邻的块的量化参数和与上方相邻的块的量化参数的平均值得到的预测量化参数;如果与左侧相邻的块的量化参数和与上方相邻的块的量化参数不能够被使用,则设置从片的量化参数的初始值得到的预测量化参数;以及基于从预测量化参数和差得到的当前块的量化参数来进行逆量化,该差是从比特流得到的、当前块的量化参数与预测量化参数之间的差。According to another aspect of the present disclosure, an image processing device is also provided, including a circuit configured to: if the quantization parameter of the block adjacent to the left of the current block and the quantization parameter of the block adjacent to the top of the current block can be used, set a predicted quantization parameter obtained from the average value of the quantization parameter of the block adjacent to the left and the quantization parameter of the block adjacent to the top; if the quantization parameter of the block adjacent to the left and the quantization parameter of the block adjacent to the top cannot be used, set a predicted quantization parameter obtained from the initial value of the quantization parameter of the slice; and perform inverse quantization based on the quantization parameter of the current block obtained from the predicted quantization parameter and a difference, where the difference is the difference between the quantization parameter of the current block obtained from the bitstream and the predicted quantization parameter.

根据本公开的又一方面,还提供了一种图像处理设备,包括:用于如果与当前块左侧相邻的块的量化参数和与当前块上方相邻的块的量化参数能够被使用,则设置从与左侧相邻的块的量化参数和与上方相邻的块的量化参数的平均值得到的预测量化参数的装置;用于如果与左侧相邻的块的量化参数和与上方相邻的块的量化参数不能够被使用,则设置从片的量化参数的初始值得到的预测量化参数的装置;以及用于基于从预测量化参数和差得到的当前块的量化参数来进行逆量化的装置,该差是从比特流得到的、当前块的量化参数与预测量化参数之间的差。According to another aspect of the present disclosure, an image processing device is provided, including: a device for setting a predicted quantization parameter obtained from the average value of the quantization parameter of the block adjacent to the left and the quantization parameter of the block adjacent to the top of the current block if the quantization parameter of the block adjacent to the left and the quantization parameter of the block adjacent to the top of the current block can be used; a device for setting a predicted quantization parameter obtained from the initial value of the quantization parameter of the slice if the quantization parameter of the block adjacent to the left and the quantization parameter of the block adjacent to the top cannot be used; and a device for performing inverse quantization based on the quantization parameter of the current block obtained from the predicted quantization parameter and a difference, where the difference is the difference between the quantization parameter of the current block obtained from the bitstream and the predicted quantization parameter.

根据本公开的又一方面,还提供了一种非暂态计算机可读介质,该非暂态计算机可读介质具有程序,该程序当由计算机执行时使得计算机执行方法,该方法包括:如果与当前块左侧相邻的块的量化参数和与当前块上方相邻的块的量化参数能够被使用,则设置从与左侧相邻的块的量化参数和与上方相邻的块的量化参数的平均值得到的预测量化参数;如果与左侧相邻的块的量化参数和与上方相邻的块的量化参数不能够被使用,则设置从片的量化参数的初始值得到的预测量化参数;以及基于从预测量化参数和差得到的当前块的量化参数来进行逆量化,该差是从比特流得到的、当前块的量化参数与预测量化参数之间的差。According to another aspect of the present disclosure, a non-transitory computer-readable medium is provided, which has a program that, when executed by a computer, causes the computer to execute a method, the method including: if the quantization parameter of the block adjacent to the left of the current block and the quantization parameter of the block adjacent to the top of the current block can be used, setting a predicted quantization parameter obtained from the average value of the quantization parameter of the block adjacent to the left and the quantization parameter of the block adjacent to the top; if the quantization parameter of the block adjacent to the left and the quantization parameter of the block adjacent to the top cannot be used, setting a predicted quantization parameter obtained from the initial value of the quantization parameter of the slice; and performing inverse quantization based on the quantization parameter of the current block obtained from the predicted quantization parameter and a difference, the difference being the difference between the quantization parameter of the current block obtained from the bitstream and the predicted quantization parameter.

该技术的第一方面是一种图像解码装置,所述图像解码装置包括:信息获取单元,被配置成将与待解码的块在空间上或时间上相邻的经解码的块的量化参数作为选择候选,并且从流信息中提取用于指示关于从选择候选中选择的预测量化参数的差的差信息;以及量化参数计算单元,被配置成根据预测量化参数和差信息来计算待解码的块的量化参数。A first aspect of the technology is an image decoding device, comprising: an information acquisition unit configured to use a quantization parameter of a decoded block that is spatially or temporally adjacent to a block to be decoded as a selection candidate, and extract difference information indicating a difference with respect to a predicted quantization parameter selected from the selection candidate from stream information; and a quantization parameter calculation unit configured to calculate the quantization parameter of the block to be decoded based on the predicted quantization parameter and the difference information.

关于该技术,从流信息中提取用于指示关于从选择候选中所选择的预测量化参数的差的差信息,该选择候选是与待解码的块在空间上或时间上相邻的经解码的块的量化参数。此外,关于图像解码装置,从与待解码的块在空间上或时间上相邻的经解码的块的量化参数中排除至少其中量化参数是冗余的块或其中不进行使用量化参数的逆量化的块,并且获取选择候选。例如,关于具有预定顺序的相邻的经解码的块,针对预测量化参数的设定,按照由流信息中所包括的标识信息所指示的顺序来选择量化参数。可替选地,按照提前设定的顺序对选择候选进行确定,并且基于确定结果来对预测量化参数进行设定。可替选地,基于流信息中所包括的确定结果来选择下述处理中的一个处理或另一个处理:按照由流信息中包括的标识信息所指示的顺序,将量化参数设定成预测量化参数的处理,以及按提前设定的顺序对选择候选进行确定并且对预测量化参数进行设定的处理。此外,关于图像解码装置,通过将差信息指示的差添加到预测量化参数,来计算待解码的块的量化参数。此外,在没有选择候选的情况下,将片中初始值的量化参数作为预测量化参数。此外,还将最近更新的量化参数包括在选择候选中。This technology extracts difference information indicating a difference between a predicted quantization parameter selected from selection candidates, which are quantization parameters of decoded blocks spatially or temporally adjacent to a block to be decoded. Furthermore, an image decoding device excludes at least blocks for which quantization parameters are redundant or blocks for which inverse quantization using the quantization parameters is not performed from the quantization parameters of decoded blocks spatially or temporally adjacent to the block to be decoded, and obtains selection candidates. For example, for adjacent decoded blocks in a predetermined order, quantization parameters are selected for setting the predicted quantization parameter in an order indicated by identification information included in the stream information. Alternatively, selection candidates are identified in a pre-set order, and the predicted quantization parameter is set based on the identification result. Alternatively, one or the other of the following processes is selected based on the identification result included in the stream information: setting the quantization parameter to the predicted quantization parameter in the order indicated by the identification information included in the stream information; and determining selection candidates and setting the predicted quantization parameter in a pre-set order. Furthermore, the image decoding apparatus calculates the quantization parameter for the block to be decoded by adding the difference indicated by the difference information to the predicted quantization parameter. Furthermore, if no candidate is selected, the quantization parameter of the initial value in the slice is used as the predicted quantization parameter. Furthermore, the most recently updated quantization parameter is included in the selection candidate.

该技术的第二方面是一种图像解码方法,该图像解码方法包括:将与待解码的块在空间上或时间上相邻的经解码的块的量化参数作为选择候选,并且从流信息中提取用于指示关于从选择候选中选择的预测量化参数的差的差信息的处理;以及根据预测量化参数和差信息来计算待解码的块的量化参数的处理。A second aspect of the technology is an image decoding method, which includes: taking the quantization parameter of a decoded block that is spatially or temporally adjacent to the block to be decoded as a selection candidate, and extracting difference information indicating the difference with respect to the predicted quantization parameter selected from the selection candidate from stream information; and calculating the quantization parameter of the block to be decoded based on the predicted quantization parameter and the difference information.

该技术的第三方面是一种图像编码装置,该图像编码装置包括:控制单元,被配置成针对待编码的块设定量化参数;信息生成单元,被配置成将与待编码的块在空间上或时间上相邻的经编码的块的量化参数作为选择候选,根据所设定的量化参数从选择候选中选择预测量化参数,并且生成用于指示预测量化参数与所设定的量化参数之间的差的差信息;以及编码单元,被配置成将差信息包括在通过使用所设定的量化参数对待编码的块进行编码处理而生成的流信息中。A third aspect of the technology is an image encoding device, which includes: a control unit configured to set a quantization parameter for a block to be encoded; an information generating unit configured to use the quantization parameters of encoded blocks that are spatially or temporally adjacent to the block to be encoded as selection candidates, select a predicted quantization parameter from the selection candidates based on the set quantization parameter, and generate difference information indicating the difference between the predicted quantization parameter and the set quantization parameter; and an encoding unit configured to include the difference information in stream information generated by encoding the block to be encoded using the set quantization parameter.

关于该技术,从与待编码的块在空间上或时间上相邻的经编码的块的量化参数中,排除至少其中量化参数是冗余的块或其中不进行使用量化参数的量化的块,并且获取选择候选。此外,选择候选中还包括最近更新的量化参数等。将其对于根据这些选择候选而设定的量化参数的差为最小的量化参数选择作为预测量化参数,并且生成用于从选择候选中选择预测量化参数的标识信息。例如,标识信息是在相邻的经编码的块为预定顺序的情况下、与所选择的量化参数对应的块的顺序。此外,预定阵列是其中将优先权给予与左侧相邻的经编码的块、与上方相邻的经编码的块以及在时间上相邻的经编码的块中之一的阵列的顺序。此外,可以切换相邻的经编码的块的阵列的顺序。此外,在所选择的量化参数的顺序作为标识信息的情况下,可以根据参数值来记录在时间上相邻的经编码的块的量化参数。此外,在预测量化参数基于预定结果被选择出来的情况下,可以以提前设定的顺序对选择候选进行确定。此外,关于图像编码装置,生成了用于指示预测量化参数和设定的量化参数之差的差信息。此外,在没有选择候选的情况下,生成了用于指示片中初始值的量化参数与设定的量化参数之差的差信息。此外,可以在下述处理之间进行选择,所述处理是将其关于设定的量化参数的差为最小的量化参数设定为预测量化参数的处理,以及以提前设定的顺序对选择候选进行确定并且基于确定结果选择预测量化参数的处理,并且生成指示所选择的处理的确定信息。所生成的差信息、标识信息和确定信息包括在通过使用设定的量化参数对待编码的块进行编码处理而生成的流信息中。This technology excludes at least blocks whose quantization parameters are redundant or whose quantization parameters are not used from the quantization parameters of coded blocks spatially or temporally adjacent to the block to be coded, and obtains selection candidates. The selection candidates also include the most recently updated quantization parameter. The quantization parameter with the smallest difference from the quantization parameter set based on these selection candidates is selected as the predicted quantization parameter, and identification information for selecting the predicted quantization parameter from the selection candidates is generated. For example, the identification information may be the order of the blocks corresponding to the selected quantization parameters, when adjacent coded blocks are in a predetermined order. Furthermore, the predetermined order may be an order in which priority is given to one of the coded blocks adjacent to the left, adjacent to the top, and adjacent to the temporally adjacent coded blocks. Furthermore, the order of the arrays of adjacent coded blocks may be switched. Furthermore, when the order of the selected quantization parameters is used as identification information, the quantization parameters of temporally adjacent coded blocks may be recorded based on the parameter values. In addition, when a predicted quantization parameter is selected based on a predetermined result, selection candidates can be determined in a pre-set order. In addition, with respect to the image encoding device, difference information indicating the difference between the predicted quantization parameter and the set quantization parameter is generated. In addition, when no candidate is selected, difference information indicating the difference between the quantization parameter of the initial value in the slice and the set quantization parameter is generated. In addition, it is possible to select between the following processing: a processing of setting the quantization parameter whose difference with the set quantization parameter is the smallest as the predicted quantization parameter, and a processing of determining the selection candidates in a pre-set order and selecting the predicted quantization parameter based on the determination result, and generating determination information indicating the selected processing. The generated difference information, identification information, and determination information are included in the stream information generated by performing encoding processing on the block to be encoded using the set quantization parameter.

该技术的第四方面是一种图像编码方法,所述图像编码方法包括:针对待编码的块设定量化参数的处理;将与待编码的块在空间上或时间上相邻的经编码的块的量化参数作为选择候选,根据所设定的量化参数从所述选择候选中选择预测量化参数,并且生成用于指示所述预测量化参数与所设定的量化参数之间的差的差信息的处理;以及将所述差信息包括在通过使用所设定的量化参数对所述待编码的块进行编码处理而生成的流信息中的处理。A fourth aspect of the technology is an image encoding method, which includes: setting a quantization parameter for a block to be encoded; taking the quantization parameters of encoded blocks that are spatially or temporally adjacent to the block to be encoded as selection candidates, selecting a predicted quantization parameter from the selection candidates based on the set quantization parameter, and generating difference information indicating the difference between the predicted quantization parameter and the set quantization parameter; and including the difference information in stream information generated by encoding the block to be encoded using the set quantization parameter.

发明的有益效果Advantageous Effects of the Invention

根据该技术,将与待编码的块在空间上或时间上相邻的经编码的块的量化参数作为选择候选,并且根据设定给待编码的块的量化参数从选择候选中选择预测量化参数。生成用于指示预测量化参数与设定给待编码的块的量化参数之间的差的差信息。因此,可以防止量化参数的差变成很大的值,并且可以提高量化参数的编码效率。This technology uses the quantization parameters of previously encoded blocks that are spatially or temporally adjacent to the block to be encoded as selection candidates, and selects a predicted quantization parameter from the selection candidates based on the quantization parameter set for the block to be encoded. Difference information is generated indicating the difference between the predicted quantization parameter and the quantization parameter set for the block to be encoded. This prevents the difference in quantization parameters from becoming excessively large, and improves quantization parameter encoding efficiency.

此外,在对其中包括有差信息的流信息进行解码的情况下,从与待解码的块在空间上或时间上相邻的经解码的块的量化参数中选择预测量化参数,并且根据预测量化参数和差信息计算待解码的块的量化参数。因此,即使流信息在量化参数的编码效率提高的情况下生成,也可以在解码该流信息时,基于预测量化参数和差信息来恢复量化参数,并且可以正确地进行解码处理。Furthermore, when decoding stream information including difference information, a predicted quantization parameter is selected from the quantization parameters of decoded blocks that are spatially or temporally adjacent to the block to be decoded, and the quantization parameter of the block to be decoded is calculated based on the predicted quantization parameter and the difference information. Therefore, even if stream information is generated with increased coding efficiency for the quantization parameter, the quantization parameter can be restored based on the predicted quantization parameter and the difference information when decoding the stream information, allowing for accurate decoding.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是示出了解码顺序是光栅扫描顺序的情况的图。FIG. 1 is a diagram showing a case where the decoding order is the raster scan order.

图2是示出了解码顺序不是光栅扫描顺序的情况的图。FIG. 2 is a diagram showing a case where the decoding order is not the raster scan order.

图3是示出了图像编码装置的配置的图。FIG3 is a diagram showing the configuration of an image encoding device.

图4是示出了信息生成单元的配置的图。FIG4 is a diagram showing the configuration of an information generating unit.

图5是示例性地示出了编码单元的层次结构的图。FIG5 is a diagram exemplarily showing a hierarchical structure of coding units.

图6是示出了图像编码装置的操作的流程图。FIG6 is a flowchart showing the operation of the image encoding device.

图7是示出了预测处理的流程图。FIG7 is a flowchart showing the prediction process.

图8是示出了帧内预测处理的流程图。FIG8 is a flowchart showing the intra prediction process.

图9是示出了帧间预测处理的流程图。FIG9 is a flowchart showing the inter-frame prediction process.

图10是用于描述信息生成单元的操作的图。FIG10 is a diagram for describing the operation of the information generating unit.

图11是示例性地示出了信息生成单元的操作的图。FIG. 11 is a diagram exemplarily showing the operation of the information generating unit.

图12是示出了编码中关于量化参数的处理的流程图。FIG12 is a flowchart showing processing regarding quantization parameters in encoding.

图13是示例性地示出了序列参数集的图。FIG13 is a diagram exemplarily showing a sequence parameter set.

图14是示出了帧编码处理的流程图。FIG14 is a flowchart showing a frame encoding process.

图15是示例性地示出了图片参数集的图。FIG15 is a diagram exemplarily showing a picture parameter set.

图16是示例性地示出了片头的图。FIG. 16 is a diagram exemplarily showing a slice header.

图17是示出了片编码处理的流程图。FIG17 is a flowchart showing the slice encoding process.

图18是示出了图像解码装置的配置的图。FIG18 is a diagram showing the configuration of an image decoding device.

图19是示出了量化参数计算单元的配置的图。FIG19 is a diagram showing the configuration of a quantization parameter calculation unit.

图20是示出了图像解码装置的操作的流程图。FIG20 is a flowchart showing the operation of the image decoding device.

图21是示出了预测图像生成处理的流程图。FIG21 is a flowchart showing the predicted image generation process.

图22是示出了解码中关于量化参数的处理的流程图。FIG22 is a flowchart showing processing regarding quantization parameters in decoding.

图23是用于描述图像编码装置的其他操作的流程图。FIG23 is a flowchart for describing other operations of the image encoding device.

图24是示出了在对量化参数进行隐式预测的情况下的操作实例的图。FIG. 24 is a diagram showing an operation example in the case of implicitly predicting a quantization parameter.

图25是对量化参数进行隐式预测的情况的流程图实例。FIG. 25 is an example of a flowchart for the case where the quantization parameter is implicitly predicted.

图26示出了在对量化参数进行隐式预测的情况下的另一个操作实例。FIG. 26 shows another operation example in the case of implicitly predicting the quantization parameter.

图27是示例性地示出了程序的图。FIG27 is a diagram exemplarily showing a procedure.

图28是用于描述图像解码装置的其他操作的流程图。FIG28 is a flowchart for describing other operations of the image decoding device.

图29是例示了计算机装置的示意性配置的图。FIG29 is a diagram illustrating a schematic configuration of a computer device.

图30是例示了电视接收器的示意性配置的图。FIG30 is a diagram illustrating a schematic configuration of a television receiver.

图31是例示了蜂窝电话的示意性配置的图。FIG31 is a diagram illustrating a schematic configuration of a cellular phone.

图32是例示了记录/重放装置的示意性配置的图。FIG32 is a diagram illustrating a schematic configuration of a recording/playback apparatus.

图33是例示了成像设备的示意性配置的图。FIG. 33 is a diagram illustrating a schematic configuration of an imaging apparatus.

具体实施方式DETAILED DESCRIPTION

在下文中,将对本发明的实施方式进行描述。注意,描述将按下述顺序进行。Hereinafter, embodiments of the present invention will be described. Note that the description will be made in the following order.

1.图像编码装置的配置1. Configuration of Image Coding Apparatus

2.图像编码装置的操作2. Operation of Image Coding Apparatus

3.基于量化参数的标识信息和差信息的生成操作3. Generation of identification information and difference information based on quantization parameters

4.图像解码装置的配置4. Configuration of Image Decoding Device

5.图像解码装置的操作5. Operation of Image Decoding Device

6.图像编码装置和图像解码装置的其他操作6. Other Operations of the Image Coding and Decoding Devices

7.软件处理的实例7. Examples of software processing

8.电子设备的应用的实例8. Examples of applications in electronic devices

<1.图像编码装置的配置><1. Configuration of Image Coding Apparatus>

图3示出了图像编码装置的配置。图像编码装置10包括模拟/数字转换单元(A/D转换单元)11、画面重置缓冲器12、减法单元13、正交变换单元14、量化单元15、无损编码单元16、存储缓冲器17和速率控制单元18。此外,图像编码装置10还包括逆量化单元21、逆正交变换单元22、加法单元23、去块滤波器24、帧存储器26、帧内预测单元31、运动预测/补偿单元32和预测图像/最佳模式选择单元33。3 shows the configuration of an image encoding device. The image encoding device 10 includes an analog/digital conversion unit (A/D conversion unit) 11, a picture reordering buffer 12, a subtraction unit 13, an orthogonal transform unit 14, a quantization unit 15, a lossless encoding unit 16, a storage buffer 17, and a rate control unit 18. In addition, the image encoding device 10 also includes an inverse quantization unit 21, an inverse orthogonal transform unit 22, an addition unit 23, a deblocking filter 24, a frame memory 26, an intra-frame prediction unit 31, a motion prediction/compensation unit 32, and a predicted image/optimal mode selection unit 33.

A/D转换单元11将模拟图像信号转换成数字图像数据并且将经转换的数字图像数据输出到画面重置缓冲器12。The A/D conversion unit 11 converts an analog image signal into digital image data and outputs the converted digital image data to the screen rearrangement buffer 12 .

画面重置缓冲器12对于由A/D转换单元11输出的图像数据的帧进行重置。画面重置缓冲器12根据与编码处理相关的GOP(画面组)结构对帧进行重置,并且将重置之后的图像数据输出到减法单元13、速率控制单元18、帧内预测单元31和运动预测/补偿单元32。The picture resetting buffer 12 resetting the frames of the image data outputted from the A/D conversion unit 11. The picture resetting buffer 12 resetting the frames according to the GOP (Group of Pictures) structure related to the encoding process, and outputs the image data after resetting to the subtraction unit 13, the rate control unit 18, the intra prediction unit 31, and the motion prediction/compensation unit 32.

由画面重置缓冲器12输出的图像数据和在稍后描述的预测图像/最佳模式选择单元33处选择的预测图像数据被提供给减法单元13。减法单元13计算预测误差数据并将其输出到正交变换单元14,该预测误差数据是由画面重置缓冲器12输出的图像数据与由预测图像/最佳模式选择单元33提供的预测图像数据之间的差。The image data output by the picture rearrangement buffer 12 and the predicted image data selected at the predicted image/optimal mode selection unit 33 described later are supplied to the subtraction unit 13. The subtraction unit 13 calculates prediction error data, which is the difference between the image data output by the picture rearrangement buffer 12 and the predicted image data supplied by the predicted image/optimal mode selection unit 33, and outputs it to the orthogonal transform unit 14.

正交变换单元14对于由减法单元13输出的预测误差数据进行正交变换处理,例如离散余弦变换(DCT:离散余弦变换)、Karhunen-Loéve变换等。正交变换单元14将通过进行正交变换处理所获得的变换系数数据输出到量化单元15。The orthogonal transform unit 14 performs orthogonal transform processing such as discrete cosine transform (DCT) or Karhunen-Loéve transform on the prediction error data output by the subtraction unit 13 . The orthogonal transform unit 14 outputs transform coefficient data obtained by performing the orthogonal transform processing to the quantization unit 15 .

由正交变换单元14输出的变换系数数据和来自稍后描述的信息生成单元19的量化参数(量化比例)被提供给量化单元15。量化单元15对变换系数数据进行量化并且将经量化的数据输出到无损编码单元16和逆量化单元21。此外,量化单元15基于在速率控制单元18设定的量化参数来改变经量化的数据的比特率。The transform coefficient data output by the orthogonal transform unit 14 and the quantization parameter (quantization scale) from the information generating unit 19 described later are supplied to the quantization unit 15. The quantization unit 15 quantizes the transform coefficient data and outputs the quantized data to the lossless encoding unit 16 and the inverse quantization unit 21. In addition, the quantization unit 15 changes the bit rate of the quantized data based on the quantization parameter set in the rate control unit 18.

由量化单元15输出的经量化的数据、来自稍后描述的信息生成单元19的标识信息和差信息、来自帧内预测单元31的预测模式信息以及来自运动预测/补偿单元32的预测模式信息和差运动向量信息等被提供给无损编码单元16。此外,用于指示最佳模式是帧内预测还是帧间预测的信息由预测图像/最佳模式选择单元33提供。注意,根据是帧内预测还是帧间预测,预测模式信息包括运动预测单元的块尺寸信息和预测模式等等。The quantized data output by the quantization unit 15, the identification information and difference information from the information generation unit 19 described later, the prediction mode information from the intra prediction unit 31, and the prediction mode information and difference motion vector information from the motion prediction/compensation unit 32, etc. are supplied to the lossless encoding unit 16. In addition, information indicating whether the optimal mode is intra prediction or inter prediction is supplied by the predicted image/optimal mode selection unit 33. Note that the prediction mode information includes block size information and prediction mode of the motion prediction unit, etc., depending on whether it is intra prediction or inter prediction.

无损编码单元16例如通过使用可变长度编码、算术编码等来对经量化的数据进行无损编码处理,以生成流信息并且将流信息输出到存储缓冲器17。此外,在最佳模式是帧内预测的情况下,无损编码单元16对由帧内预测单元31提供的预测模式信息进行无损编码。此外,在最佳模式是帧间预测的情况下,无损编码单元16对由运动预测/补偿单元32提供的预测模式信息和差运动向量等进行无损编码。此外,无损编码单元16例如对与量化参数相关的信息(如差信息)进行无损编码。无损编码单元16将无损编码后的信息包括在流信息中。The lossless encoding unit 16 performs lossless encoding processing on the quantized data, for example, by using variable length coding, arithmetic coding, etc., to generate stream information and output the stream information to the storage buffer 17. In addition, when the optimal mode is intra-frame prediction, the lossless encoding unit 16 losslessly encodes the prediction mode information provided by the intra-frame prediction unit 31. In addition, when the optimal mode is inter-frame prediction, the lossless encoding unit 16 losslessly encodes the prediction mode information and difference motion vector provided by the motion prediction/compensation unit 32. In addition, the lossless encoding unit 16 losslessly encodes, for example, information related to the quantization parameter (such as difference information). The lossless encoding unit 16 includes the losslessly encoded information in the stream information.

存储缓冲器17存储来自无损编码单元16的经编码的流。此外,存储缓冲器17以根据传输路径的传输速度输出所存储的经编码的流。The storage buffer 17 stores the encoded stream from the lossless encoding unit 16. Furthermore, the storage buffer 17 outputs the stored encoded stream at a transmission speed according to a transmission path.

速率控制单元18对存储缓冲器17的可用容量进行监测,并且设定量化参数,使得在有很小的可用容量的情况下,经量化的数据的比特率下降,而在有足够的容量的情况下,经量化的数据的比特率上升。此外,速率控制单元18通过使用由画面重置缓冲器12提供的图像数据来检测图像的复杂度,例如作为用于指示像素值的变化的信息的活动度。速率控制单元18基于对图像的复杂度的检测结果来设定量化参数,使得例如针对其中像素的变化值小的图像部分实现粗量化并且针对其他部分实现细量化。速率控制单元18将已经被设定的量化参数输出到信息生成单元19。The rate control unit 18 monitors the available capacity of the storage buffer 17 and sets a quantization parameter so that the bit rate of the quantized data decreases when there is little available capacity, and increases when there is sufficient capacity. Furthermore, the rate control unit 18 uses the image data provided by the picture resetting buffer 12 to detect the complexity of the image, such as activity, which is information indicating changes in pixel values. Based on the result of the detection of the image complexity, the rate control unit 18 sets the quantization parameter so that, for example, coarse quantization is achieved for image portions where pixel change values are small, and fine quantization is achieved for other portions. The rate control unit 18 outputs the set quantization parameter to the information generation unit 19.

信息生成单元19将由速率控制单元18提供的量化参数输出到量化单元15。信息生成单元19还将与待编码的块在空间上或时间上相邻的经编码的块的量化参数作为选择候选。信息生成单元19根据在速率控制单元18设定的量化参数从选择候选中选择量化参数,并且将其作为预测量化参数。此外,信息生成单元19生成与所选择的量化参数对应的标识信息(即用于从选择候选中选择预测量化参数的标识信息)和用于指示预测量化参数与所设定的量化参数之间的差的差信息。The information generation unit 19 outputs the quantization parameter provided by the rate control unit 18 to the quantization unit 15. The information generation unit 19 also uses the quantization parameters of previously encoded blocks that are spatially or temporally adjacent to the block to be encoded as selection candidates. The information generation unit 19 selects a quantization parameter from the selection candidates based on the quantization parameter set in the rate control unit 18 and uses it as the predicted quantization parameter. Furthermore, the information generation unit 19 generates identification information corresponding to the selected quantization parameter (i.e., identification information for selecting the predicted quantization parameter from the selection candidates) and difference information indicating the difference between the predicted quantization parameter and the set quantization parameter.

图4示出了信息生成单元的配置。信息生成单元19具有量化参数存储器单元191和差计算单元192。信息生成单元19将由速率控制单元18提供的量化参数输出到量化单元15。此外,信息生成单元19将由速率控制单元18提供的量化参数提供给量化参数存储器单元191和差计算单元192。4 shows the configuration of the information generating unit. The information generating unit 19 includes a quantization parameter memory unit 191 and a difference calculating unit 192. The information generating unit 19 outputs the quantization parameter provided by the rate control unit 18 to the quantization unit 15. In addition, the information generating unit 19 provides the quantization parameter provided by the rate control unit 18 to the quantization parameter memory unit 191 and the difference calculating unit 192.

量化参数存储器单元191存储所提供的量化参数。差计算单元192从量化参数存储器单元191中所存储的经编码的块的量化参数中读出与待编码的块在空间上或时间上相邻的经编码的块的量化参数作为选择候选。此外,从选择候选中排除至少其中量化参数是冗余的块和其中不进行使用量化参数的量化的块,例如其中待在量化单元15量化的变换系数数据全都为“0”的块。此外,差计算单元192从选择候选中排除下述块,所述块是基于来自稍后描述的运动预测/补偿单元32和预测图像/最佳模式选择单元33的信息确定对于其进行跳过处理的块(下文中被称为“跳过块”)。The quantization parameter memory unit 191 stores the supplied quantization parameters. The difference calculation unit 192 reads out the quantization parameters of coded blocks that are spatially or temporally adjacent to the block to be coded as selection candidates from the quantization parameters of the coded blocks stored in the quantization parameter memory unit 191. Furthermore, at least blocks in which the quantization parameters are redundant and blocks in which quantization using the quantization parameters is not performed, such as blocks in which all the transform coefficient data to be quantized by the quantization unit 15 is "0," are excluded from the selection candidates. Furthermore, the difference calculation unit 192 excludes blocks (hereinafter referred to as "skipped blocks") that are determined to be skipped based on information from the motion prediction/compensation unit 32 and the predicted image/optimal mode selection unit 33, described later, from the selection candidates.

差计算单元192根据待编码的块的量化参数(即由速率控制单元18提供的量化参数),从量化参数中选择作为预测量化参数的量化参数。差计算单元192还生成了用于指示用于从选择候选中选择预测量化参数的标识信息与待编码的块的量化参数之间的差的差信息,并且将该差信息输出到无损编码单元16。The difference calculation unit 192 selects a quantization parameter as a predicted quantization parameter from the quantization parameters based on the quantization parameter of the block to be encoded (i.e., the quantization parameter provided by the rate control unit 18). The difference calculation unit 192 also generates difference information indicating the difference between the identification information used to select the predicted quantization parameter from the selection candidates and the quantization parameter of the block to be encoded, and outputs the difference information to the lossless encoding unit 16.

返回图3,逆量化单元21对由量化单元15提供的经量化的数据进行逆量化处理。逆量化单元21将通过进行逆量化处理所获得的变换系数数据输出到逆正交变换单元22。3 , the inverse quantization unit 21 performs inverse quantization processing on the quantized data supplied from the quantization unit 15. The inverse quantization unit 21 outputs the transform coefficient data obtained by performing the inverse quantization processing to the inverse orthogonal transform unit 22.

逆正交变换单元22对由逆量化单元21提供的变换系数数据进行逆变换处理,并且将所获得的数据输出到加法单元23。The inverse orthogonal transform unit 22 performs inverse transform processing on the transform coefficient data supplied from the inverse quantization unit 21 , and outputs the obtained data to the addition unit 23 .

加法单元23将由逆正交变换单元22提供的数据与由预测图像/最佳模式选择单元33提供的预测图像数据相加以生成经解码的图像数据,并且将经解码的图像数据输出到去块滤波器24和帧存储器26。注意,经解码的图像数据被用作为参考图像的图像数据。The addition unit 23 adds the data supplied from the inverse orthogonal transform unit 22 and the predicted image data supplied from the predicted image/optimal mode selection unit 33 to generate decoded image data, and outputs the decoded image data to the deblocking filter 24 and the frame memory 26. Note that the decoded image data is used as image data of a reference image.

去块滤波器24进行滤波处理以减少在图像编码时出现的块失真。去块滤波器24进行滤波处理以从由加法单元23提供的经解码的图像数据中去除块失真,并且将滤波处理之后的经解码的图像数据输出在帧存储器26中。The deblocking filter 24 performs filtering processing to reduce block distortion that occurs when encoding an image. The deblocking filter 24 performs filtering processing to remove block distortion from the decoded image data supplied from the addition unit 23 and outputs the decoded image data after filtering processing to the frame memory 26.

帧存储器26保存由去块效应滤波器24提供的滤波处理之后的经解码的图像数据。帧存储器26中保存的经解码的图像数据被提供给运动预测/补偿单元32作为参考图像数据。The frame memory 26 stores the decoded image data after the filtering process provided by the deblocking filter 24. The decoded image data stored in the frame memory 26 is supplied to the motion prediction/compensation unit 32 as reference image data.

帧内预测单元31通过使用由画面重置缓冲器12提供的、待编码的图像的输入的图像数据和由加法单元23提供的参考图像数据,以所有候选帧内预测模式中的帧内预测处理来进行预测,并且确定最佳帧内预测模式。帧内预测单元31例如针对每种帧内预测模式计算成本函数值,并且基于所计算的成本函数值,将其中编码效率最好的帧内预测模式作为最佳帧内预测模式。帧内预测单元31将以最佳帧内预测模式生成的预测图像数据和最佳帧内预测模式的成本函数值输出到预测图像/最佳模式选择单元33。此外,帧内预测单元31将指示帧内预测模式的预测模式信息输出到无损编码单元16。The intra-frame prediction unit 31 uses the input image data of the image to be encoded, which is provided by the screen re-arrangement buffer 12, and the reference image data, which is provided by the addition unit 23, to perform prediction using the intra-frame prediction process among all candidate intra-frame prediction modes, and determines the optimal intra-frame prediction mode. The intra-frame prediction unit 31 calculates a cost function value for each intra-frame prediction mode, and based on the calculated cost function value, selects the intra-frame prediction mode with the best encoding efficiency as the optimal intra-frame prediction mode. The intra-frame prediction unit 31 outputs the predicted image data generated in the optimal intra-frame prediction mode and the cost function value of the optimal intra-frame prediction mode to the predicted image/optimal mode selection unit 33. In addition, the intra-frame prediction unit 31 outputs prediction mode information indicating the intra-frame prediction mode to the lossless encoding unit 16.

运动预测/补偿单元32通过使用由画面重置缓冲器12提供的、待编码的图像的输入的图像数据和由帧存储器26提供的参考图像数据,以所有候选帧间预测模式进行预测,并且决定最佳帧间预测模式。运动预测/补偿单元32计算例如每种帧间预测模式的成本函数值,并且基于所计算的成本函数值,将其中编码效率最好的帧间预测模式作为最佳帧间预测模式。运动预测/补偿单元32将以最佳帧间预测模式生成的预测图像数据和最佳帧间预测模式的成本函数值输出到预测图像/最佳模式选择单元33。此外,运动预测/补偿单元32将与最佳帧间预测模式相关的预测模式信息输出到无损编码单元16和信息生成单元19。The motion prediction/compensation unit 32 uses the input image data of the image to be encoded, provided by the screen re-alignment buffer 12, and the reference image data provided by the frame memory 26 to perform predictions using all candidate inter-frame prediction modes and determine the optimal inter-frame prediction mode. The motion prediction/compensation unit 32 calculates, for example, a cost function value for each inter-frame prediction mode and, based on the calculated cost function value, selects the inter-frame prediction mode with the highest encoding efficiency as the optimal inter-frame prediction mode. The motion prediction/compensation unit 32 outputs the predicted image data generated using the optimal inter-frame prediction mode and the cost function value of the optimal inter-frame prediction mode to the predicted image/optimal mode selection unit 33. Furthermore, the motion prediction/compensation unit 32 outputs prediction mode information related to the optimal inter-frame prediction mode to the lossless encoding unit 16 and the information generation unit 19.

预测图像/最佳模式选择单元33将帧内预测单元31提供的成本函数值与由运动预测/补偿单元32提供的成本函数值比较,并且选择其成本函数值小于另外的成本函数值的模式作为其中编码效率是最好的最佳模式。此外,预测图像/最佳模式选择单元33将以最佳模式所生成的预测图像数据输出到减法单元13和加法单元23。此外,预测图像/最佳模式选择单元33将用于指示最佳模式是帧内预测模式还是帧间预测模式的信息输出到无损编码单元16和信息生成单元19。注意,预测图像/最佳模式选择单元33以片为单位进行帧内预测或帧间预测的切换。The predicted image/optimal mode selection unit 33 compares the cost function value provided by the intra-frame prediction unit 31 with the cost function value provided by the motion prediction/compensation unit 32, and selects the mode whose cost function value is smaller than the other cost function value as the optimal mode in which the encoding efficiency is the best. In addition, the predicted image/optimal mode selection unit 33 outputs the predicted image data generated in the optimal mode to the subtraction unit 13 and the addition unit 23. In addition, the predicted image/optimal mode selection unit 33 outputs information indicating whether the optimal mode is the intra-frame prediction mode or the inter-frame prediction mode to the lossless encoding unit 16 and the information generation unit 19. Note that the predicted image/optimal mode selection unit 33 switches between intra-frame prediction and inter-frame prediction in units of slices.

<2.图像编码装置的操作><2. Operation of Image Coding Device>

关于图像编码装置,例如以这样的宏块尺寸进行编码处理:该宏块尺寸扩展超过H.264/AVC格式的宏块尺寸。图5示例性地示出了编码单元的层次结构。注意,图5示出了其中最大尺寸为128像素×128像素并且层次深度(深度)为“5”的情况。例如,在层次深度为“0”的情况下,2N×2N(N=64像素)块为编码单元CU0。此外,当拆分标记=1时,编码单元CU0被划分成四个独立的N×N块,其中N×N块是一个较低层次水平中的块。换言之,层次深度为“1”,并且2N×2N(N=32像素)块为编码单元CU1。同样地,当拆分标记=1时,该编码单元CU1被划分成四个独立块。此外,当深度为最深的层次水平“4”时,2N×2N(N=4像素)块为编码单元CU4,并且8像素×8像素是针对编码单元CU的最小的尺寸。此外,关于HEVC,定义了作为用于划分编码单元和预测的基本单元的预测单元(PU:预测单元)以及作为用于变换和量化的基本单元的变换单元(TU:变换单元)。Regarding the image encoding device, for example, encoding processing is performed with a macroblock size that extends beyond the macroblock size of the H.264/AVC format. FIG5 exemplarily shows a hierarchical structure of coding units. Note that FIG5 shows a case where the maximum size is 128 pixels × 128 pixels and the hierarchical depth (depth) is "5". For example, when the hierarchical depth is "0", a 2N × 2N (N = 64 pixels) block is coding unit CU0. In addition, when the split flag = 1, coding unit CU0 is divided into four independent N × N blocks, where the N × N block is a block in a lower hierarchical level. In other words, the hierarchical depth is "1", and a 2N × 2N (N = 32 pixels) block is coding unit CU1. Similarly, when the split flag = 1, coding unit CU1 is divided into four independent blocks. In addition, when the depth is the deepest hierarchical level "4", a 2N × 2N (N = 4 pixels) block is coding unit CU4, and 8 pixels × 8 pixels is the minimum size for coding unit CU. Also, with HEVC, a prediction unit (PU: Prediction Unit) which is a basic unit for dividing a coding unit and prediction, and a transform unit (TU: Transform Unit) which is a basic unit for transform and quantization are defined.

接下来,将参考图6中的流程图来描述图像编码装置的操作。在步骤ST11中,A/D转换单元11对输入图像信号进行A/D转换。Next, the operation of the image encoding device will be described with reference to the flowchart in Fig. 6. In step ST11, the A/D conversion unit 11 performs A/D conversion on an input image signal.

在步骤ST12中,画面重置缓冲器12进行图像重置。画面重置缓冲器12存储由A/D转换单元11提供的图像数据并且进行从用于显示图片的顺序到用于编码的顺序的重置。In step ST12, the picture rearrangement buffer 12 performs image rearrangement. The picture rearrangement buffer 12 stores the image data supplied from the A/D conversion unit 11 and performs rearrangement from the order for displaying pictures to the order for encoding.

在步骤ST13中,减法单元13生成预测误差数据。减法单元13计算在步骤ST12中重置的图像的图像数据与在预测图像/最佳模式选择单元33选择的预测图像数据之间的差以生成预测误差数据。预测误差数据的数据量小于原始图像数据的数据量。因此,与按照原样对图像进行编码的情况相比,可以压缩数据量。In step ST13, the subtraction unit 13 generates prediction error data. The subtraction unit 13 calculates the difference between the image data of the image reset in step ST12 and the predicted image data selected by the predicted image/optimal mode selection unit 33 to generate the prediction error data. The amount of prediction error data is smaller than the amount of original image data. Therefore, the amount of data can be compressed compared to the case where the image is encoded as is.

在步骤ST14中,正交变换单元14进行正交变换处理。正交变换单元14对由减法单元13提供的预测误差数据进行正交变换。具体地,但对于预测误差数据进行如离散余弦变换、Karhunen-Loéve变换等的正交变换,以输出变换系数数据。In step ST14, the orthogonal transform unit 14 performs an orthogonal transform process. The orthogonal transform unit 14 performs an orthogonal transform on the prediction error data supplied from the subtraction unit 13. Specifically, the orthogonal transform unit 14 performs an orthogonal transform such as a discrete cosine transform or a Karhunen-Loéve transform on the prediction error data to output transform coefficient data.

在步骤ST15中,量化单元15进行量化处理。量化单元15对变换系数数据进行量化。在量化时进行在稍后描述的步骤ST25中的处理中所示的速率控制。In step ST15, the quantization unit 15 performs quantization processing. The quantization unit 15 quantizes the transform coefficient data. Rate control shown in the processing in step ST25 described later is performed at the time of quantization.

在步骤ST16中,逆量化单元21进行逆量化处理。逆量化单元21以与量化单元15的性质相对应的性质对由量化单元15量化的变换系数数据进行逆量化。In step ST16 , the inverse quantization unit 21 performs inverse quantization processing. The inverse quantization unit 21 inversely quantizes the transform coefficient data quantized by the quantization unit 15 in a property corresponding to the property of the quantization unit 15 .

在步骤ST17中,逆正交变换单元22进行逆正交变换处理。逆正交变换单元22以与正交变换单元14的性质相对应的性质,对受到逆量化单元21的逆量化的变换系数数据进行逆正交变换。In step ST17 , the inverse orthogonal transform unit 22 performs inverse orthogonal transform processing. The inverse orthogonal transform unit 22 performs inverse orthogonal transform on the transform coefficient data inversely quantized by the inverse quantization unit 21 , with properties corresponding to those of the orthogonal transform unit 14 .

在步骤ST18中,加法单元23生成参考图像数据。加法单元23将由预测图像/最佳模式选择单元33提供的预测图像数据与在相应于该预测图像的位置的逆正交变换之后的数据相加,以生成经解码的数据(参考图像数据)。In step ST18, the addition unit 23 generates reference image data. The addition unit 23 adds the predicted image data supplied from the predicted image/optimal mode selection unit 33 to the data after inverse orthogonal transformation at the position corresponding to the predicted image to generate decoded data (reference image data).

在步骤ST19中,去块滤波器24进行滤波处理。去块滤波器24对由加法单元23输出的经解码的图像数据进行滤波并且去除块失真。In step ST19, the deblocking filter 24 performs filtering processing. The deblocking filter 24 filters the decoded image data output by the adding unit 23 and removes block distortion.

在步骤ST20中,帧存储器26存储参考图像数据。帧存储器26存储滤波处理之后的经解码的图像数据(参考图像数据)。In step ST20, the frame memory 26 stores the reference image data. The frame memory 26 stores the decoded image data (reference image data) after the filtering process.

在步骤ST21中,帧内预测单元31和运动预测/补偿单元32分别进行预测处理。换言之,帧内预测单元31进行帧内预测模式的帧内预测处理,而运动预测/补偿单元32进行帧间预测模式的运动预测/补偿处理。下面将参考图7对预测处理进行描述,其中,分别进行所有候选预测模式的预测处理,并且通过该处理分别计算所有候选预测模式的成本函数值。此外,基于所计算的成本函数值,选择最佳帧内预测模式和最佳帧间预测模式,并且将以所选择的预测模式生成的预测图像和成本函数以及预测模式信息提供给预测图像/最佳模式选择单元33。In step ST21, the intra-frame prediction unit 31 and the motion prediction/compensation unit 32 each perform prediction processing. In other words, the intra-frame prediction unit 31 performs intra-frame prediction processing for the intra-frame prediction mode, while the motion prediction/compensation unit 32 performs motion prediction/compensation processing for the inter-frame prediction mode. The prediction processing will be described below with reference to FIG. 7 , in which prediction processing is performed for each candidate prediction mode, and cost function values are calculated for each candidate prediction mode. Furthermore, based on the calculated cost function values, the optimal intra-frame prediction mode and the optimal inter-frame prediction mode are selected, and the predicted image and cost function generated in the selected prediction mode, as well as the prediction mode information, are provided to the predicted image/optimal mode selection unit 33.

在步骤ST22中,预测图像/最佳模式选择单元33选择预测图像数据。预测图像/最佳模式选择单元33基于由帧内预测单元31和运动预测/补偿单元32输出的各个成本函数值决定其编码效率为最好的最佳模式。也就是说,预测图像/最佳模式选择单元33决定:例如图5中所示出的层次水平的每一个层次水平中编码效率最好的编码单元、在该编码单元中预测单元的块尺寸、以及进行帧内预测和帧间预测中的哪一个。此外,预测图像/最佳模式选择单元33将所决定的最佳模式的预测图像数据输出到减法单元13和加法单元23。如上所述,该预测图像数据被用于步骤ST13和步骤ST18的计算。In step ST22, the predicted image/optimal mode selection unit 33 selects predicted image data. Based on the cost function values output by the intra-frame prediction unit 31 and the motion prediction/compensation unit 32, the predicted image/optimal mode selection unit 33 determines the optimal mode with the highest coding efficiency. Specifically, the predicted image/optimal mode selection unit 33 determines, for example, the coding unit with the highest coding efficiency at each hierarchical level shown in FIG. 5 , the block size of the prediction unit in that coding unit, and whether to perform intra-frame prediction or inter-frame prediction. Furthermore, the predicted image/optimal mode selection unit 33 outputs the predicted image data of the determined optimal mode to the subtraction unit 13 and the addition unit 23. As described above, this predicted image data is used for the calculations in steps ST13 and ST18.

在步骤ST23中,无损编码单元16进行无损编码处理。无损编码单元16对由量化单元15输出的量化数据进行无损编码。换言之,关于待进行数据压缩的量化数据进行如可变长编码或算术编码的无损编码。此外,无损编码单元16对与步骤ST22中所选择的预测图像数据对应的预测模式信息等进行无损编码,并且将如预测模式信息等经无损编码的数据包括在通过对量化数据进行无损编码所生成的流信息中。In step ST23, the lossless encoding unit 16 performs lossless encoding. The lossless encoding unit 16 performs lossless encoding on the quantized data output by the quantization unit 15. In other words, lossless encoding such as variable-length encoding or arithmetic encoding is performed on the quantized data to be compressed. In addition, the lossless encoding unit 16 performs lossless encoding on the prediction mode information corresponding to the predicted image data selected in step ST22, and includes the lossless encoded data such as the prediction mode information in the stream information generated by the lossless encoding of the quantized data.

在步骤ST24中,存储缓冲器17进行存储处理。存储缓冲器17存储由无损编码单元16输出的流信息。存储在该存储缓冲器17中的流信息被适当读出并且经由传输路径被传输到解码侧。In step ST24, the storage buffer 17 performs storage processing. The storage buffer 17 stores the stream information output by the lossless encoding unit 16. The stream information stored in this storage buffer 17 is appropriately read out and transmitted to the decoding side via the transmission path.

在步骤ST25中,速率控制单元18进行速率控制。速率控制单元18在将流信息存储在缓冲器17中的情况下控制量化单元15的量化操作的速率,以使得在存储缓冲器17中不出现上溢或下溢。In step ST25, the rate control unit 18 performs rate control. The rate control unit 18 controls the rate of the quantization operation of the quantization unit 15 while storing the stream information in the buffer 17 so that overflow or underflow does not occur in the storage buffer 17.

接下来,将参考图7中的流程图来描述图6中步骤ST21中的预测处理。Next, the prediction process in step ST21 in FIG. 6 will be described with reference to the flowchart in FIG. 7 .

在步骤ST31中,帧内预测单元31进行帧内预测处理。帧内预测单元31以所有候选帧内预测模式、对待编码的预测单元的图像进行帧内预测。注意,针对帧内预测中参考的经解码的图像的图像数据,使用在受到去块滤波器24的去块滤波处理之前的经解码的图像数据。由于该帧内预测处理,帧内预测以所有候选帧内预测模式进行,并且针对所有候选帧内预测模式计算成本函数值。然后,基于所计算的成本函数值从所有帧内预测模式中选择其编码效率为最好的一个帧内预测模式。In step ST31, the intra-frame prediction unit 31 performs intra-frame prediction processing. The intra-frame prediction unit 31 performs intra-frame prediction on the image of the prediction unit to be encoded in all candidate intra-frame prediction modes. Note that the decoded image data referenced in the intra-frame prediction uses the decoded image data before being subjected to the deblocking filtering process by the deblocking filter 24. Due to this intra-frame prediction processing, intra-frame prediction is performed in all candidate intra-frame prediction modes, and cost function values are calculated for all candidate intra-frame prediction modes. Then, based on the calculated cost function values, one intra-frame prediction mode with the best encoding efficiency is selected from all intra-frame prediction modes.

在步骤ST32中,运动预测/补偿单元32进行帧间预测处理。运动预测/补偿单元32通过使用存储在帧存储器26中的在去块滤波处理之后的经解码的图像数据来进行所有候选帧间预测模式的帧间预测处理。由于该帧间预测处理,预测处理以所有候选帧间预测模式进行,并且针对所有候选帧间预测模式计算成本函数值。然后,基于所计算的成本函数值从所有帧间预测模式中选择其编码效率为最好的一个帧间预测模式。In step ST32, the motion prediction/compensation unit 32 performs inter-frame prediction processing. The motion prediction/compensation unit 32 performs inter-frame prediction processing for all candidate inter-frame prediction modes using the decoded image data after deblocking filtering stored in the frame memory 26. Due to this inter-frame prediction processing, prediction processing is performed for all candidate inter-frame prediction modes, and cost function values are calculated for all candidate inter-frame prediction modes. Then, based on the calculated cost function value, one inter-frame prediction mode with the best encoding efficiency is selected from all inter-frame prediction modes.

将参考图8中的流程图来描述图7中步骤ST31中的帧内预测处理。The intra prediction process in step ST31 in FIG. 7 will be described with reference to the flowchart in FIG. 8 .

在步骤ST41中,帧内预测单元31进行每种预测模式的帧内预测。帧内预测单元31通过使用块滤波处理之前和块滤波处理之后的经解码的图像数据,来生成每种帧内预测模式的预测图像数据。In step ST41, the intra prediction unit 31 performs intra prediction for each prediction mode. The intra prediction unit 31 generates predicted image data for each intra prediction mode by using the decoded image data before and after the block filtering process.

在步骤ST42中,帧内预测单元31以每种预测模式计算成本函数值。如作为以H.264/AVC格式的参考软件的JM(联合模型)中所规定的那样,基于高复杂度模式或低复杂度模式的技术来计算成本函数值。In step ST42, the intra prediction unit 31 calculates a cost function value in each prediction mode. As specified in JM (Joint Model) which is reference software in the H.264/AVC format, the cost function value is calculated based on a technique in High Complexity Mode or Low Complexity Mode.

换言之,在高复杂度模式中,直到对于所有候选预测模式试验性地进行了无损编码处理,并且对于每种预测模式计算由下述表达式(1)表示的成本函数值。In other words, in the High Complexity Mode, lossless encoding processing is tentatively performed for all candidate prediction modes, and a cost function value represented by the following Expression (1) is calculated for each prediction mode.

Cost(Mode∈Ω)=D+λ·R...(1)Cost(Mode∈Ω)=D+λ·R...(1)

Ω表示编码该预测单元的图像的候选预测模式的全集。D表示在以预测模式进行编码的情况下经解码的图像与输入图像之间的差能量(失真)。R是包括正交变换系数、预测模式信息等的所生成的代码量,而λ是作为量化参数QP的函数给出的拉格朗日乘数。换言之,在高复杂度模式中,如步骤ST42的处理那样,直到针对所有候选预测模式试验性地进行了无损编码处理,并且针对每种预测模式计算由上述表达式(1)表示的成本函数值。Ω represents the entire set of candidate prediction modes for encoding the image of the prediction unit. D represents the difference energy (distortion) between the decoded image and the input image when encoding is performed in the prediction mode. R is the amount of generated code including orthogonal transform coefficients, prediction mode information, etc., and λ is the Lagrange multiplier given as a function of the quantization parameter QP. In other words, in the high complexity mode, as in the process of step ST42, lossless encoding processing is experimentally performed for all candidate prediction modes, and the cost function value represented by the above expression (1) is calculated for each prediction mode.

另一方面,在低复杂度模式中,针对所有候选预测模式生成预测图像并且生成包括不同的运动向量和预测模式信息等的头比特,并且计算由下述表达式(2)表示的成本函数值。On the other hand, in the low complexity mode, prediction images are generated for all candidate prediction modes and header bits including different motion vectors and prediction mode information and the like are generated, and a cost function value represented by the following expression (2) is calculated.

Cost(Mode∈Ω)=D+QP2Quant(QP)·Header_Bit...(2)Cost(Mode∈Ω)=D+QP2Quant(QP)·Header_Bit...(2)

Ω表示编码该预测单元的图像的候选预测模式的全集。D表示在以预测模式进行编码的情况下经解码的图像与输入图像之间的差能量(失真)。Header_Bit是针对预测模式的头比特,而QP2Quant是作为量化参数QP的函数而给出的函数。换言之,在低复杂度模式中,如步骤ST42的处理那样,通过使用生成预测图像和如运动向量以及预测模式信息等的头比特,针对每个预测模式计算由上述表达式(2)表示的成本函数值。Ω represents the entire set of candidate prediction modes for encoding the image of the prediction unit. D represents the difference energy (distortion) between the decoded image and the input image when encoding is performed in the prediction mode. Header_Bit is the header bit for the prediction mode, and QP2Quant is a function given as a function of the quantization parameter QP. In other words, in Low Complexity Mode, as in the process of step ST42, by using the generated prediction image and header bits such as motion vectors and prediction mode information, the cost function value represented by the above expression (2) is calculated for each prediction mode.

在步骤ST43中,帧内预测单元31决定最佳帧内预测模式。帧内预测单元31基于在步骤ST42中计算的成本函数值来选择其成本函数值为最小的帧内预测模式,所选择的帧内预测模式被决定成最佳预测模式。In step ST43, the intra prediction unit 31 determines the optimal intra prediction mode. The intra prediction unit 31 selects the intra prediction mode with the smallest cost function value based on the cost function value calculated in step ST42, and the selected intra prediction mode is determined as the optimal prediction mode.

接下来,将参考图9中的流程图来描述图7中步骤ST32的帧间预测处理。Next, the inter prediction process of step ST32 in FIG. 7 will be described with reference to the flowchart in FIG. 9 .

在步骤ST51中,运动预测/补偿单元32进行运动检测处理。运动预测/补偿单元32检测运动向量并且前进到步骤ST52。In step ST51, the motion prediction/compensation unit 32 performs motion detection processing. The motion prediction/compensation unit 32 detects a motion vector and proceeds to step ST52.

在步骤ST52中,运动预测/补偿单元32进行运动补偿处理。运动预测/补偿单元32基于在步骤ST51中检测到的运动向量、通过使用参考图像数据来进行运动补偿,并且生成预测图像数据。In step ST52, the motion prediction/compensation unit 32 performs motion compensation processing. The motion prediction/compensation unit 32 performs motion compensation by using the reference image data based on the motion vector detected in step ST51, and generates predicted image data.

在步骤ST53中,运动预测/补偿单元32对成本函数值进行计算。运动预测/补偿单元32通过使用待编码的预测图像的输入图像数据以及在步骤ST52中生成的预测图像数据等,来如上所述地计算成本函数值,并且前进到步骤ST54。In step ST53, the motion prediction/compensation unit 32 calculates the cost function value. The motion prediction/compensation unit 32 calculates the cost function value as described above by using the input image data of the predicted image to be encoded and the predicted image data generated in step ST52, and the like, and proceeds to step ST54.

运动预测/补偿单元32决定最佳帧间预测模式。运动预测/补偿单元32针对每种帧间预测模式进行从步骤ST51到步骤ST53的处理。运动预测/补偿单元32辨别其中针对每种预测模式所计算的成本函数值为最小值的参考索引、编码单元的块尺寸以及在该编码单元中预测单元的块尺寸,并且解码最佳帧间预测模式。注意,针对其中成本函数值为最小的模式的决定,还使用了以跳过模式进行了帧间预测的情况下的成本函数值。The motion prediction/compensation unit 32 determines the optimal inter-frame prediction mode. The motion prediction/compensation unit 32 performs the processing from step ST51 to step ST53 for each inter-frame prediction mode. The motion prediction/compensation unit 32 identifies the reference index, the block size of the coding unit, and the block size of the prediction unit in the coding unit for which the cost function value calculated for each prediction mode is the minimum, and decodes the optimal inter-frame prediction mode. Note that the cost function value when inter-frame prediction is performed in skip mode is also used to determine the mode for which the cost function value is the minimum.

此外,在预测图像/最佳模式选择单元33已经选择了最佳帧间预测模式作为最佳预测模式的情况下,运动预测/补偿单元32生成预测图像数据,使得最佳帧间预测模式的预测图像数据可以被提供给减法单元13和加法单元23。In addition, when the prediction image/optimal mode selection unit 33 has selected the optimal inter-frame prediction mode as the optimal prediction mode, the motion prediction/compensation unit 32 generates prediction image data so that the prediction image data of the optimal inter-frame prediction mode can be provided to the subtraction unit 13 and the addition unit 23.

<3.基于量化参数的标识信息和差信息的生成操作><3. Generation Operation of Identification Information and Difference Information Based on Quantization Parameter>

在上述图像编码处理中,图像编码装置10设定量化参数以使得根据图像的复杂度对于每个块进行合适的量化。此外,图像编码装置10生成标识信息和差信息,并且将这些信息包括在流信息中,以提高步骤ST15的量化处理中所使用的量化参数的编码效率。In the above-described image encoding process, the image encoding device 10 sets a quantization parameter so that appropriate quantization is performed for each block according to the complexity of the image. Furthermore, the image encoding device 10 generates identification information and difference information and includes this information in the stream information to improve the encoding efficiency of the quantization parameter used in the quantization process of step ST15.

接下来,将针对标识信息和差信息的生成进行描述。速率控制单元18通过使用例如由MPEG2中的TM5规定的代码量控制格式来设定量化参数。Next, description will be made with respect to generation of identification information and difference information. The rate control unit 18 sets a quantization parameter by using, for example, a code amount control format prescribed by TM5 in MPEG2.

关于由MPEG2中的TM5规定的代码量控制格式,示出了步骤1到步骤3的处理。Regarding the code amount control format specified by TM5 in MPEG2, the processing of steps 1 to 3 is shown.

在步骤1中,待分配给GOP(画面组)中的每个图片的代码量基于分配比特数量R被分布给包括用于分配的图片的未编码的图片。该分布以GOP中的经编码的图片的顺序被重复。此时,使用下述两个假定来给每个图片分配代码量。In step 1, the amount of code to be allocated to each picture in a GOP (Group of Pictures) is distributed to uncoded pictures including the picture to be allocated based on the number of allocated bits R. This distribution is repeated in the order of the coded pictures in the GOP. At this time, the amount of code to be allocated to each picture is allocated using the following two assumptions.

第一假定为:在编码每个图片时所使用的平均量化比例代码(quantizationscale code)与所生成的代码量的乘积对于每种图片类型来说将是恒定的,除非画面改变。The first assumption is that the product of the average quantization scale code used when encoding each picture and the amount of code generated will be constant for each picture type unless the scene changes.

因此,在编码每个图片后,表示画面的复杂度的参数XI、XP和XB(全局复杂度量度)通过表达式(3)至表达式(5)更新。量化比例代码与所生成的代码量之间的关系可以由这些参数来估计。Therefore, after encoding each picture, parameters Xi , XP , and XB (global complexity measure) representing the complexity of the picture are updated by Expressions (3) to (5). The relationship between the quantization scale code and the amount of generated code can be estimated by these parameters.

XI=SI·QI...(3)X I = S I · Q I ...(3)

XP=SP·QP...(4) XP = SP ·Q P ...(4)

XB=SB·QB...(5)X B = S B · Q B ...(5)

此处,SI,SP和SB是图片编码时所生成的代码比特,而QI、Qp和QB是图片编码时的平均量化比例代码。此外,初始值是通过使用作为目标代码量的bit_rate[bits/sec(比特/秒)],由下述表达式(6),(7)和(8)所示出的值。Here, S I , S P , and S B are code bits generated when encoding a picture, and Q I , Q P , and Q B are average quantization scale codes when encoding a picture. Furthermore, the initial value is the value expressed by the following expressions (6), (7), and (8) using bit_rate [bits/sec] as the target code amount.

XI=160×bit_rate/115...(6)X I =160×bit_rate/115...(6)

XP=160×bit_rate/115...(7)X P =160×bit_rate/115...(7)

XB=160×bit_rate/115...(8)X B =160×bit_rate/115...(8)

第二假定为:在以I图片的量化比例代码作为参考的情况下,针对P图片和B图片的量化比例代码的比率KP和KB例如是表达式(9)中所规定的情况下,总体图像质量将恒定地被最优化的。The second assumption is that, with the quantization scale code of the I picture as a reference, the overall image quality will be constantly optimized when the ratios KP and KB of the quantization scale codes for the P picture and the B picture are, for example, as specified in Expression (9).

KP=1.0;KB=1.4...(9)K P = 1.0; K B = 1.4...(9)

换言之,B图片的量化比例代码被恒定地设定成I图片和P图片的量化比例代码的1.4倍。这假定:通过使待量化的B图片与I图片和P图片相比在一定程度上更粗糙并且由此将由B图片节约的代码量添加给I图片和P图片,将提高I图片和P图片的图像质量,并且还将提高参考这些图片的B图片的图像质量。In other words, the quantization scale code of the B picture is constantly set to 1.4 times the quantization scale code of the I picture and the P picture. This assumes that by making the B picture to be quantized somewhat coarser than the I picture and the P picture and thereby adding the code amount saved by the B picture to the I picture and the P picture, the image quality of the I picture and the P picture will be improved, and the image quality of the B picture that refers to these pictures will also be improved.

根据上述两个假定,关于GOP中的每个图片所分配的代码量(TI,TP,TB)是表达式(10)、(11)和(12)中所指示的值。注意,picture_rate指示在该序列中每秒所显示的图片的数目。Based on the above two assumptions, the code amount ( TI , TP , TB ) allocated to each picture in a GOP is the value indicated in Expressions (10), (11), and (12). Note that picture_rate indicates the number of pictures displayed per second in the sequence.

【数学式1】【Mathematical formula 1】

现在,NP、NB是GOP中未编码的P图片和B图片的数目。换言之,在上述的图像质量最优化条件下,关于待进行分配的图片以及不同图片类型的那些图片,对GOP中的未编码的图片进行下述估计,所述估计是关于由那些图片生成的代码量将是用于分配的图片的所生成的代码量的多少倍。接下来,多少待编码的图片相当于下述代码量被获得,所述代码量相当于全部未编码的图片生成的估计出的所生成的代码量。例如,作为在与TI相关的表达式中的第一自变量的分母的第二项的NPXP/XIKP表示GOP中的NP个未被编码的图片相当于多少个I图片。此外,这通过将由I图片的所生成的代码量关于P图片的所生成的代码量的分数SP/SI乘以NP并且如上所述由XI、XP和XB来表示而获得。Now, NP and NB are the number of uncoded P and B pictures in a GOP. In other words, under the above-mentioned image quality optimization conditions, the following estimation is made for the uncoded pictures in the GOP regarding the number of times the amount of code generated by the pictures to be allocated and those pictures of different picture types: the number of times the amount of code generated by the pictures to be allocated will be the same as the amount of code generated for the pictures to be allocated. Next, the number of pictures to be coded is calculated to be equivalent to the estimated amount of code generated by all uncoded pictures. For example, NP, NP /XI, KP , which is the second term in the denominator of the first argument in the expression related to TI, indicates how many I pictures are equivalent to the NP uncoded pictures in the GOP. Furthermore, this is obtained by multiplying NP by the fraction SP /SI of the amount of code generated by an I picture relative to the amount of code generated by a P picture, and expressing it as described above by XI , XP , and XB .

关于用于分配的图片的比特量是通过将关于未编码的图片的分配代码量R除以图片的数目而获得的。注意,然而,考虑到关于头的开销代码量等,对该值设定较低的限制。The bit amount for the allocated picture is obtained by dividing the allocated code amount R for the uncoded picture by the number of pictures. Note that, however, a lower limit is set for this value in consideration of the overhead code amount for the header and the like.

基于由此所获得的分配代码量,每次每个图片遵循步骤1和步骤2被编码时,待分配给GOP中的未编码的图片的代码量R通过表达式(13)更新。Based on the allocated code amount thus obtained, each time each picture is encoded following steps 1 and 2, the code amount R to be allocated to the unencoded pictures in the GOP is updated by expression (13).

R=R-SI,P,B...(13)R=RS I,P,B ...(13)

此外,在编码GOP的第一图片时,R通过以下表达式(14)更新。Furthermore, when encoding the first picture of a GOP, R is updated by the following expression (14).

【数学式2】【Mathematical formula 2】

其中,N是GOP中的图片的数目。此外,在序列的开始处R的初始值为0。Where N is the number of pictures in a GOP. In addition, the initial value of R is 0 at the beginning of the sequence.

接下来,将关于步骤2进行描述。在步骤2中,获得用于实际上将步骤1中所获得的关于每个图片的分配代码量(TI,TP,TB)与实际的代码量相匹配的量化比例代码。量化比例代码基于独立构建的虚拟缓冲器的三种类型的容量通过对于每个图片类型以宏块为单位进行反馈控制而获得。Next, step 2 will be described. In step 2, a quantization scale code is obtained for actually matching the allocated code amount ( TI , TP , TB ) for each picture obtained in step 1 with the actual code amount. The quantization scale code is obtained by performing feedback control in units of macroblocks for each picture type based on the capacities of the three types of independently constructed virtual buffers.

首先,在对第j个宏块编码之前,虚拟缓冲器的占用量通过表达式(15)至表达式(17)而获得。First, before encoding the j-th macroblock, the occupancy of the virtual buffer is obtained by Expression (15) to Expression (17).

【数学式3】【Mathematical formula 3】

d0 I、d0 P和d0 B是虚拟缓冲器的初始占用量,Bj是从图片的头到第j个宏块所生成的比特量,而MBcnt是单个图片中的宏块的数目。d 0 I , d 0 P and d 0 B are the initial occupancies of the virtual buffer, B j is the amount of bits generated from the head of the picture to the j-th macroblock, and MB cnt is the number of macroblocks in a single picture.

在结束对每个图片的编码时虚拟缓冲器的占用量(dMBcnt I,dMBcnt P,dMBcnt B)被分别用作同一图片类型的下一个图片的虚拟缓冲器占用量的初始值(d0 I,d0 P,d0 B)。The virtual buffer occupancies (dMB cnt I , dMB cnt P , dMB cnt B ) at the end of encoding of each picture are used as initial values (d 0 I , d 0 P , d 0 B ) of the virtual buffer occupancies of the next picture of the same picture type, respectively.

接下来,通过表达式(18)计算第j个宏块的参考量化比例代码QjNext, the reference quantization scale code Q j of the j-th macroblock is calculated by Expression (18).

【数学式4】【Mathematical formula 4】

r是控制反馈群的响应速度的参数,被称为反应参数,并且是通过表达式(19)而获得的。r is a parameter that controls the response speed of the feedback group, is called a reaction parameter, and is obtained by expression (19).

【数学式5】【Mathematical formula 5】

注意,在序列的开始处虚拟缓冲器的初始值通过表达式(20)而获得。Note that the initial value of the virtual buffer at the beginning of the sequence is obtained by expression (20).

【数学式6】【Mathematical formula 6】

接下来,将描述步骤3。活动度通过使用原始图像的亮度信号像素值,例如,通过使用帧DCT模式的四个8×8块和域DCT编码模式的四个8×8块的总共八个块的像素值,根据表达式(21)至表达式(23)而获得。Next, step 3 will be described. The activity is obtained according to Expression (21) to Expression (23) by using the luminance signal pixel value of the original image, for example, by using the pixel values of a total of eight blocks of four 8×8 blocks of the frame DCT mode and four 8×8 blocks of the field DCT coding mode.

【数学式7】【Mathematical formula 7】

表达式(21)中的var_sblk是每个像素的图像数据与其平均值之间的差的平方和,因此,这些8×8块的图像越复杂,该值越大。表达式(22)和(23)中的Pk是原始图像的亮度信号的块中像素值(in-block pixel value)。在表达式(22)中假定最小值(min)的原因是使得在即使16×16宏块中存在局部平滑的部分的情况下量化更精细。此外,其值在0.5至2的范围内的归一化的活动度Nactj通过表达式(24)而获得。var_sblk in expression (21) is the sum of the squares of the differences between the image data of each pixel and its average value, so the more complex the images of these 8×8 blocks, the larger the value. Pk in expressions (22) and (23) is the in-block pixel value of the luminance signal of the original image. The reason for assuming the minimum value (min) in expression (22) is to make quantization finer even when there is a locally smooth portion in the 16×16 macroblock. In addition, the normalized activity Nactj whose value is in the range of 0.5 to 2 is obtained by expression (24).

【数学式8】【Mathematical formula 8】

avg_act是直到紧接在前被编码的图片的活动度的平均值。量化比例代码基于参考量化比例代码Qj、通过表达式(25)获得考虑了视觉性质的量化比例代码mquantjavg_act is the average value of the activity of the picture encoded immediately before. Quantization scale code mquant j considering visual properties is obtained by expression (25) based on the reference quantization scale code Q j .

【数学式9】【Mathematical formula 9】

mquantj=Qj×Nactj…(25)mquant j =Q j ×Nact j …(25)

速率控制单元18输出如上所述计算的量化比例代码mquantj作为量化参数。此外,针对位于片边界处的宏块,以与位于不同于片边界处的宏块相同的方式,用相同的技术来生成量化参数。注意,量化参数不限于基于如上所述的活动度而决定的情况,还可以以使成本函数值更小的方式决定。The rate control unit 18 outputs the quantization scale code mquant j calculated as described above as a quantization parameter. Furthermore, for macroblocks located at slice boundaries, the quantization parameter is generated using the same technique as for macroblocks located at locations other than slice boundaries. Note that the quantization parameter is not limited to being determined based on the activity as described above, and may be determined to minimize the cost function value.

注意,关于上面所描述的由MPEG2中的TM5所规定的速率控制方法的描述,描述了其中以宏块为单位进行处理的情况。因此,通过进行以其量化参数可以被切换的块为单位的类似处理,可以针对关于其量化参数可以被切换的块中的每一个块设定量化参数。Note that the rate control method specified in TM5 of MPEG2 described above describes a case where processing is performed in units of macroblocks. Therefore, by performing similar processing in units of blocks whose quantization parameters can be switched, it is possible to set a quantization parameter for each of the blocks whose quantization parameters can be switched.

接下来,将对关于用于提高量化参数的编码效率的信息的生成操作进行描述。信息生成单元19将与待编码的块在空间上或时间上相邻的经编码的量化参数作为选择候选。信息生成单元19还根据针对待编码的块所设定的量化参数从选择候选中选择量化参数,并且将所选择的量化参数作为预测量化参数。信息生成单元19还生成用于从选择候选中选择预测量化参数的标识信息,和用于指示预测量化参数与为待编码的块设定的量化参数之间的差的差信息。Next, the operation of generating information for improving the encoding efficiency of the quantization parameter will be described. The information generation unit 19 selects quantization parameters that are spatially or temporally adjacent to the block to be encoded as selection candidates. The information generation unit 19 also selects a quantization parameter from the selection candidates based on the quantization parameter set for the block to be encoded, and uses the selected quantization parameter as the predicted quantization parameter. The information generation unit 19 also generates identification information for selecting the predicted quantization parameter from the selection candidates, and difference information indicating the difference between the predicted quantization parameter and the quantization parameter set for the block to be encoded.

图10是用于描述信息生成单元的操作的图,示出了待编码的帧和按显示顺序在时间上最靠近的经编码的帧。待编码的帧中的待编码的块的量化参数例如是“QP_0”。此外,与左侧相邻的块的量化参数例如是“QP_A”。同样,与上方相邻、与右上方相邻、与左上方相邻以及与左下方相邻的块的量化参数例如是“QP_B”、“QP_C”、“QP_D”和“QP_E”。此外,在时间上相邻的块的量化参数是“QP_T”。注意,当对待编码的帧中的待编码的块进行编码时,将量化参数“QP_A”到“QP_E”以及“QP_T”存储在量化参数存储器单元191中。此外,每个块是关于其量化参数可以被改变的最小单位块。Figure 10 is a diagram for describing the operation of the information generation unit, showing a frame to be encoded and an encoded frame that is temporally closest in display order. The quantization parameter of the block to be encoded in the frame to be encoded is, for example, "QP_0." In addition, the quantization parameter of the block adjacent to the left is, for example, "QP_A." Similarly, the quantization parameters of the blocks adjacent to the top, to the upper right, to the upper left, and to the lower left are, for example, "QP_B," "QP_C," "QP_D," and "QP_E." In addition, the quantization parameter of the temporally adjacent blocks is "QP_T." Note that when encoding the block to be encoded in the frame to be encoded, the quantization parameters "QP_A" to "QP_E" and "QP_T" are stored in the quantization parameter memory unit 191. In addition, each block is the minimum unit block with respect to which the quantization parameter can be changed.

差计算单元192将与待编码的块相邻的经编码的块的量化参数作为选择候选,从选择候选中选择相对于为待编码的块设定的量化参数来说其差最小的量化参数,并且将所选择的量化参数作为预测量化参数。差计算单元192生成用于从选择候选中选择预测参数的标识信息,和用于指示预测量化参数与待编码的块的量化参数之间的差的差信息。The difference calculation unit 192 selects the quantization parameters of the coded blocks adjacent to the block to be coded as selection candidates, selects the quantization parameter with the smallest difference from the quantization parameter set for the block to be coded from the selection candidates, and uses the selected quantization parameter as the predicted quantization parameter. The difference calculation unit 192 generates identification information for selecting the predicted parameter from the selection candidates and difference information indicating the difference between the predicted quantization parameter and the quantization parameter of the block to be coded.

图11是示出了信息生成单元的操作实例的图。注意,由于块为跳过块或者不具有残差信息而没有被设定量化参数的块的情况由“-”来指示。Fig. 11 is a diagram showing an operation example of the information generating unit. Note that a case where a quantization parameter is not set for a block because the block is a skip block or has no residual information is indicated by "-".

在待编码的块为块BK0的情况下,经编码的块的量化参数是“QP_A=32”,“QP_B=40”,“QP_C=40”,“QP_D=35”,“QP_E=-”和“QP_T=31”。此处,信息生成单元19从候选中排除由于其为跳过块或者不具有残差信息的块而没有被设定量化参数的块和其中量化参数冗余的块。因此,选择候选是量化参数为“QP_A=32”,“QP_B=40”,“QP_D=35”和“QP_T=31”的经编码的块。此外,信息生成单元19提前为选择候选设定标识信息,例如索引号。可以仅仅为相邻的经编码的块设定标识信息,或者可以为相邻的经编码的块的量化参数设定标识信息。When the block to be encoded is block BK0, the quantization parameters of the encoded block are "QP_A=32", "QP_B=40", "QP_C=40", "QP_D=35", "QP_E=-", and "QP_T=31". Here, the information generation unit 19 excludes blocks for which quantization parameters are not set due to being skip blocks or blocks without residual information, and blocks for which quantization parameters are redundant from the candidates. Therefore, the selection candidates are encoded blocks with quantization parameters of "QP_A=32", "QP_B=40", "QP_D=35", and "QP_T=31". In addition, the information generation unit 19 sets identification information, such as an index number, for the selection candidates in advance. The identification information may be set only for adjacent encoded blocks, or the identification information may be set for the quantization parameters of adjacent encoded blocks.

在将标识信息设定给相邻的经编码的块的情况下,信息生成单元19在相邻的经编码的块为预定的排列顺序下,按照排列的顺序来设定索引号。预定的排列顺序例如是其中与左侧相邻的经编码的块、在上方相邻的经编码的块和在时间上相邻的经编码的块中之一被给予优先权的阵列的顺序。此外,信息生成单元19能够切换阵列的顺序。在能够切换阵列的顺序的情况下,用于指示哪种阵列顺序的信息被包括在流信息中。此外,无损编码单元16和信息生成单元19对标识信息进行设定和无损编码,使得在编码被给予优先权的块的标识信息时有较少的代码量。When setting identification information to adjacent coded blocks, the information generation unit 19 sets index numbers in the order of arrangement when the adjacent coded blocks are in a predetermined arrangement order. The predetermined arrangement order is, for example, an array order in which priority is given to one of the coded blocks adjacent to the left, the coded blocks adjacent above, and the coded blocks adjacent in time. In addition, the information generation unit 19 is capable of switching the order of the arrays. In the case where the order of the arrays can be switched, information indicating which array order is included in the stream information. In addition, the lossless encoding unit 16 and the information generation unit 19 set and losslessly encode the identification information so that a smaller amount of code is used when encoding the identification information of the blocks given priority.

差计算单元192从选择候选中选择其对于待编码的块的量化参数的差最小的候选,并且使用设定给所选择的候选的标识信息,从而生成用于从选择候选中选择预测量化参数的标识信息。此外,差计算单元192还生成用于指示作为所选择的候选量化参数的预测量化参数与待编码的块的量化参数之间的差的差信息。例如,在将优先权给予图11中的与左侧相邻的经编码的块的情况下,信息生成单元19设定“0(索引号):QP_A的块”、“1:QP_B的块”、“2:QP_D的块”和“3:QP_T的块”。此外,如果待编码的块的量化参数例如是“33”,那么差计算单元192将其对于待编码的块的量化参数的差为最小的块的索引号设定为标识信息“0(索引号)”。此外,差计算单元192生成用于指示预测量化参数与待编码的块的量化参数之差的差信息“1(=33-32)”。The difference calculation unit 192 selects the candidate with the smallest difference with the quantization parameter of the block to be encoded from the selection candidates, and uses the identification information set for the selected candidate to generate identification information for selecting a predicted quantization parameter from the selection candidates. Furthermore, the difference calculation unit 192 generates difference information indicating the difference between the predicted quantization parameter, which is the selected candidate quantization parameter, and the quantization parameter of the block to be encoded. For example, when giving priority to the encoded blocks adjacent to the left in FIG. 11 , the information generation unit 19 sets "0 (index number): block with QP_A," "1: block with QP_B," "2: block with QP_D," and "3: block with QP_T." Furthermore, if the quantization parameter of the block to be encoded is "33," for example, the difference calculation unit 192 sets the index number of the block with the smallest difference with the quantization parameter of the block to be encoded as the identification information "0 (index number)." Furthermore, the difference calculation unit 192 generates difference information “1 (=33−32)” indicating the difference between the predicted quantization parameter and the quantization parameter of the block to be encoded.

通过以这种方式给待编码的块设定标识信息,可以提高量化参数的编码效率。例如,如果在左侧的块被给予优先权并且块顺序是量化参数“QP_A”、“QP_B”、“QP_C”、“QP_D”、“QP_E”、“QP_T”,那么对于其中存在与左侧的块的图像相似的更多待编码的块的图像,数据量是少的。此外,如果上方的块被给予优先权并且块顺序是量化参数“QP_B”、“QP_A”、“QP_C”、“QP_D”、“QP_E”、“QP_T”,那么关于其中存在与上方的块的图像相似的更多待编码的块的图像,数据量会是少的。此外,如果在时间上相邻的块被给予优先权并且块顺序是量化参数“QP_T”、“QP_A”、“QP_B”、“QP_C”、“QP_D”、“QP_E”,那么关于其中存在与在时间上相邻的图像相似的更多待编码的块的图像(即更多静止对象),数据量会是少的。By assigning identification information to the blocks to be encoded in this manner, the encoding efficiency of the quantization parameter can be improved. For example, if the left block is given priority and the block order is quantization parameters "QP_A," "QP_B," "QP_C," "QP_D," "QP_E," and "QP_T," the amount of data for an image in which there are more blocks to be encoded that are similar to the image of the left block is small. Furthermore, if the upper block is given priority and the block order is quantization parameters "QP_B," "QP_A," "QP_C," "QP_D," "QP_E," and "QP_T," the amount of data for an image in which there are more blocks to be encoded that are similar to the image of the upper block is small. Furthermore, if temporally adjacent blocks are given priority and the block order is quantization parameters "QP_T," "QP_A," "QP_B," "QP_C," "QP_D," and "QP_E," the amount of data for an image in which there are more blocks to be encoded that are similar to the temporally adjacent image (i.e., more stationary objects) is small.

在关于相邻的经编码的块的量化参数来设定标识信息的情况下,信息生成单元19以预定的阵列顺序关于相邻的经编码的块设定索引号。例如,信息生成单元19按具有小的参数值的量化参数的顺序设定索引号。换言之,在图11的情况下,信息生成单元19设定索引号例如“0(索引号):32(量化参数)”、“1:40”、“2:35”、“3:31”。When setting identification information for the quantization parameters of adjacent coded blocks, information generation unit 19 sets index numbers for the adjacent coded blocks in a predetermined array order. For example, information generation unit 19 sets index numbers in the order of quantization parameters with smaller parameter values. In other words, in the example shown in FIG11 , information generation unit 19 sets index numbers such as "0 (index number): 32 (quantization parameter)", "1:40", "2:35", and "3:31".

差计算单元192从选择候选中选择其对于待编码的块的量化参数的差为最小的候选,并且使用设定给所选择的候选的标识信息,从而生成用于从选择候选中选择预测量化参数的标识信息。此外,差计算单元192生成用于指示预测量化参数与待编码的块的量化参数之间的差的差信息。例如,如果待编码的块的量化参数例如是“33”,那么差计算单元192生成差信息“1(=33-32)”作为标识信息。The difference calculation unit 192 selects the candidate with the smallest difference with the quantization parameter of the block to be encoded from the selection candidates, and uses the identification information set for the selected candidate to generate identification information for selecting the predicted quantization parameter from the selection candidates. Furthermore, the difference calculation unit 192 generates difference information indicating the difference between the predicted quantization parameter and the quantization parameter of the block to be encoded. For example, if the quantization parameter of the block to be encoded is "33," the difference calculation unit 192 generates difference information "1 (=33-32)" as identification information.

此外,在不存在选择候选的情况下,信息生成单元19生成用于指示片中初始值的量化参数SliceQPY与所设定的量化参数之差的差信息。Furthermore, in a case where there is no selection candidate, the information generating unit 19 generates difference information indicating a difference between the quantization parameter SliceQPY of the initial value in the slice and the set quantization parameter.

图12是示出了编码中关于量化参数的处理的流程图。在步骤ST61中,图像编码装置10生成用于获得量化参数单元最小尺寸(MinQpUnitSize)的信息。量化参数单元最小尺寸是其中量化参数可以被适应地切换的最小的尺寸。12 is a flowchart showing the processing of the quantization parameter in encoding. In step ST61, the image encoding device 10 generates information for obtaining the minimum size of the quantization parameter unit (MinQpUnitSize). The minimum size of the quantization parameter unit is the minimum size in which the quantization parameter can be adaptively switched.

图像编码装置10使用例如关于变换单元最小尺寸(MinTransformUnitSize)的差作为用于获得量化参数单元最小尺寸(MinQpUnitSize)的信息。The image encoding device 10 uses, for example, a difference regarding the transform unit minimum size (MinTransformUnitSize) as information for obtaining the quantization parameter unit minimum size (MinQpUnitSize).

量化参数单元最小尺寸(MinQpUnitSize)由表达式(26)确定。The minimum quantization parameter unit size (MinQpUnitSize) is determined by Expression (26).

MinQpUnitSize=1<<(log2_min_transform_unit_size_minus2+log2_min_qp_unit_size_offset+2)...(26)MinQpUnitSize=1<<(log2_min_transform_unit_size_minus2+log2_min_qp_unit_size_offset+2)...(26)

注意,“log2_min_transform_unit_size_minus2”是用于决定变换单元最小尺寸(MinTransformUnitSize)的参数。Note that “log2_min_transform_unit_size_minus2” is a parameter for determining the minimum size of a transform unit (MinTransformUnitSize).

变换单元最小尺寸(MinTransformUnitSize)由表达式(27)决定。The minimum transform unit size (MinTransformUnitSize) is determined by expression (27).

MinTransformUnitSize=1<<(log2_min_transform_unit_size_minus2+2)...(27)MinTransformUnitSize=1<<(log2_min_transform_unit_size_minus2+2)...(27)

如可以根据表达式(26)和(27)清楚地被理解的那样,量化参数单元最小尺寸(MinQpUnitSize)与变换单元最小尺寸(MinTransformUnitSize)之差等于“log2_min_qp_unit_size_offset”。注意,量化参数用于变换单元(TU)的单位中。换言之,量化参数在变换单元中是不变的。As can be clearly understood from Expressions (26) and (27), the difference between the minimum quantization parameter unit size (MinQpUnitSize) and the minimum transform unit size (MinTransformUnitSize) is equal to "log2_min_qp_unit_size_offset". Note that the quantization parameter is used in units of transform units (TUs). In other words, the quantization parameter is constant within a transform unit.

此外,量化参数单元最小尺寸(MinQpUnitSize)可以根据编码单元尺寸而决定。在这种情况下,图像编码装置10使用例如用于规定编码单元CU的最小尺寸(log2_min_coding_block_size_minus3)和编码单元CU的最大尺寸(log2_diff_max_min_coding_block_size)的信息。注意,编码单元CU的最大尺寸“log2MaxCUSize”如表达式(28)中所示出的那样。Furthermore, the minimum quantization parameter unit size (MinQpUnitSize) may be determined based on the coding unit size. In this case, the image encoding device 10 uses, for example, information specifying the minimum size of the coding unit CU (log2_min_coding_block_size_minus3) and the maximum size of the coding unit CU (log2_diff_max_min_coding_block_size). Note that the maximum size of the coding unit CU, "log2MaxCUSize," is as shown in Expression (28).

log2MaxCUSize=log2_min_coding_block_size_minus 3+3+log2_diff_max_min_coding_block_size...(28)log2MaxCUSize=log2_min_coding_block_size_minus 3+3+log2_diff_max_min_coding_block_size...(28)

量化参数单元最小尺寸的对数值(log2MinQpUnitSize)由表达式(29)决定。The logarithmic value of the minimum size of the quantization parameter unit (log2MinQpUnitSize) is determined by Expression (29).

log2MinQpUnitSize=log2_min_coding_block_size_minus 3+3+log2_diff_max_min_coding_block_size-log2_min_qp_unit_size_offset...(29)log2MinQpUnitSize=log2_min_coding_block_size_minus 3+3+log2_diff_max_min_coding_block_size-log2_min_qp_unit_size_offset...(29)

因此,将“log2_min_qp_unit_size_offset”设定得更大,以便使量化参数单元最小尺寸更小。例如,在编码单元CU的最小尺寸是“8×8”并且最大尺寸是“64×64”的情况下,将“log2_min_qp_unit_size_offset”设定成“1”使量化参数单元最小尺寸为“32×32”。此外,将“log2_min_qp_unit_size_offset”设定成“2”使量化参数单元最小尺寸为“16×16”。Therefore, "log2_min_qp_unit_size_offset" is set to a larger value to reduce the minimum size of the quantization parameter unit. For example, if the minimum size of the coding unit CU is "8×8" and the maximum size is "64×64", setting "log2_min_qp_unit_size_offset" to "1" makes the minimum size of the quantization parameter unit "32×32". In addition, setting "log2_min_qp_unit_size_offset" to "2" makes the minimum size of the quantization parameter unit "16×16".

在步骤ST62中,图像编码装置10进行将所生成的信息包括在流信息中的处理。图像编码装置10将“log2_min_qp_unit_size_offset”和作为决定变换单元最小尺寸(MinTransformUnitSize)的参数的“log2_min_qp_unit_size_offset”包括在流信息中,并且前进到步骤ST63。此外,在根据编码单元尺寸决定量化参数单元最小尺寸的情况下,“log2_min_coding_block_size_minus3”、“log2_diff_max_min_coding_block_size”和“log2_min_qp_unit_size_offset”被包括在流信息中。图像编码装置10将所生成的信息包括在例如被定义为RBSP(原始字节序列有效载荷)的句法的序列参数集(SPS:序列参数集)中。注意,图13示例性地示出了序列参数集。In step ST62, the image encoding device 10 performs a process of including the generated information in the stream information. The image encoding device 10 includes "log2_min_qp_unit_size_offset" and "log2_min_qp_unit_size_offset" as a parameter that determines the minimum size of the transform unit (MinTransformUnitSize) in the stream information, and proceeds to step ST63. In addition, in the case where the minimum size of the quantization parameter unit is determined according to the coding unit size, "log2_min_coding_block_size_minus3", "log2_diff_max_min_coding_block_size", and "log2_min_qp_unit_size_offset" are included in the stream information. The image encoding device 10 includes the generated information in a sequence parameter set (SPS: Sequence Parameter Set) whose syntax is defined as, for example, RBSP (Raw Byte Sequence Payload). Note that FIG13 exemplarily shows a sequence parameter set.

在步骤ST63中,图像编码装置10确定是否存在待编码的帧。在存在待编码的帧的情况下,图像编码装置10前进到步骤ST64并且进行图14中所示的帧编码处理,如果不存在待编码的帧,则结束编码处理。In step ST63, the image encoding device 10 determines whether there is a frame to be encoded. If there is a frame to be encoded, the image encoding device 10 proceeds to step ST64 and performs the frame encoding process shown in Figure 14. If there is no frame to be encoded, the encoding process is ended.

在图14的帧编码处理中,在步骤ST71中,图像编码装置10确定是否存在待编码的片。在存在待编码的片的情况下,图像编码装置10前进到步骤ST72,如果不存在待编码的片,则结束对帧的编码处理。In the frame encoding process of Figure 14, in step ST71, the image encoding device 10 determines whether there is a slice to be encoded. If there is a slice to be encoded, the image encoding device 10 proceeds to step ST72. If there is no slice to be encoded, the encoding process of the frame is ended.

在步骤ST72中,图像编码装置10决定待编码的片的量化参数。图像编码装置10在尺寸上决定初始值的量化参数以作为目标代码量,并且前进到步骤ST73。In step ST72, the image encoding device 10 decides the quantization parameter of the slice to be encoded. The image encoding device 10 decides the quantization parameter of the initial value in size as the target code amount, and proceeds to step ST73.

在步骤ST73中,图像编码装置10计算“slice_qp_delta”。片中初始值的量化参数SliceQPY与提前由用户等设定的“pic_init_qp_minus26”具有表达式(30)中所示的关系。因此,图像编码装置10计算“slice_qp_delta”以作为步骤ST72中所决定的量化参数,并且前进到步骤ST74。In step ST73, the image encoding device 10 calculates "slice_qp_delta." The quantization parameter SliceQPY, which is the initial value in the slice, and "pic_init_qp_minus26" set in advance by the user or the like have the relationship shown in Expression (30). Therefore, the image encoding device 10 calculates "slice_qp_delta" as the quantization parameter decided in step ST72 and proceeds to step ST74.

SliceQPY=26+pic_init_qp_minus26+slice_qp_delta...(30)SliceQPY=26+pic_init_qp_minus26+slice_qp_delta...(30)

在步骤ST74中,图像编码装置10将“slice_qp_delta”和“pic_init_qp_minus26”包括在流信息中。图像编码装置10将所计算的“slice_qp_delta”包括在流信息的例如头部片中。此外,图像编码装置10将设定的“pic_init_qp_minus26”包括在流信息的例如图片参数集中。通过如此将“slice_qp_delta”和“pic_init_qp_minus26”包括在流信息中,对流信息进行解码的图像解码装置可以通过进行表达式(30)的计算来计算片中初始值的量化参数SliceQPY。注意,图15示例性地示出了序列参数集,而图16示出了片头部。In step ST74, the image encoding device 10 includes "slice_qp_delta" and "pic_init_qp_minus26" in the stream information. The image encoding device 10 includes the calculated "slice_qp_delta" in, for example, a header slice of the stream information. Furthermore, the image encoding device 10 includes the set "pic_init_qp_minus26" in, for example, a picture parameter set of the stream information. By including "slice_qp_delta" and "pic_init_qp_minus26" in the stream information in this way, the image decoding device that decodes the stream information can calculate the quantization parameter SliceQPY of the initial value in the slice by performing the calculation of Expression (30). Note that FIG. 15 exemplarily shows a sequence parameter set, and FIG. 16 shows a slice header.

在步骤ST75中,图像编码装置10进行片编码处理。图17是示出进行片编码处理的流程图。In step ST75, the image encoding device 10 performs a slice encoding process. Fig. 17 is a flowchart showing the slice encoding process.

在图17的步骤ST81中,图像编码装置10确定是否存在待编码的编码单元CU。在待编码的片中存在还未关于其进行编码处理的编码单元的情况下,图像编码装置10前进到步骤ST82。此外,在对于片中所有编码单元完成了编码处理的情况下,图像编码装置10结束片编码处理。In step ST81 of FIG17 , the image encoding device 10 determines whether there is a coding unit CU to be encoded. If there is a coding unit for which encoding processing has not yet been performed in the slice to be encoded, the image encoding device 10 proceeds to step ST82. If encoding processing is completed for all coding units in the slice, the image encoding device 10 ends the slice encoding process.

在步骤ST82中,图像编码装置10确定在待编码的编码单元CU中是否存在变换单元TU。在存在变换单元的情况下,图像编码装置10前进到步骤ST83,而在不存在变换单元的情况下,图像编码装置10前进到步骤ST87。例如,在待使用量化参数量化的所有系数为“0”的情况下,或者在跳过块的情况下,流程前进到步骤ST87。In step ST82, the image encoding device 10 determines whether a transform unit TU exists in the coding unit CU to be encoded. If a transform unit exists, the image encoding device 10 proceeds to step ST83, and if not, the image encoding device 10 proceeds to step ST87. For example, if all coefficients to be quantized using the quantization parameter are "0" or if a block is skipped, the process proceeds to step ST87.

在步骤ST83中,图像编码装置10决定待编码的编码单元CU的量化参数。图像编码装置10的速率控制单元18根据如上所述的编码单元的图像的复杂度来决定量化参数,或者图像编码装置10的速率控制单元18决定量化参数以使得成本函数值是小的,并且前进到步骤ST84。In step ST83, the image encoding device 10 determines the quantization parameter of the coding unit CU to be encoded. The rate control unit 18 of the image encoding device 10 determines the quantization parameter according to the complexity of the image of the coding unit as described above, or the rate control unit 18 of the image encoding device 10 determines the quantization parameter so that the cost function value is small, and proceeds to step ST84.

在步骤ST84中,图像编码装置10将标识信息设定给选择候选。图像编码装置10的信息生成单元19将与待编码的编码单元在空间上或时间上相邻的经编码的编码的量化参数作为选择候选。此外,在由于是跳过块或不具有残差信息而没有被设定量化参数的块的情况下,或者在量化参数等于另一个候选的情况下,信息生成单元19从选择候选中排除这些量化参数。图像编码装置10将标识信息(例如索引(ref_qp_block_index))设定给选择候选,并且前进到步骤ST85。In step ST84, the image coding device 10 sets identification information to the selection candidate. The information generation unit 19 of the image coding device 10 selects the quantization parameters of the encoded blocks that are spatially or temporally adjacent to the coding unit to be encoded as selection candidates. Furthermore, in the case of blocks for which no quantization parameters are set due to being skipped blocks or having no residual information, or in the case of blocks whose quantization parameters are equal to those of another candidate, the information generation unit 19 excludes these quantization parameters from the selection candidates. The image coding device 10 sets identification information (e.g., index (ref_qp_block_index)) to the selection candidate and proceeds to step ST85.

在步骤ST85中,图像编码装置10生成标识信息和差信息。图像编码装置10的信息生成单元19从选择候选中选择其对于待编码的编码单元的量化参数的差为最小的候选,并且将其作为预测量化参数。信息生成单元19通过使用所选择的候选的索引(ref_qp_block_index)来生成标识信息,作为用于从选择候选中选择预测量化参数的标识信息。此外,信息生成单元19把预测量化参数与待编码的编码单元的量化参数之差(qb_qp_delta)作为差信息,并且前进到步骤ST86。现在,关于由所确定的候选的索引(ref_qp_block_index)指示的预测量化参数作为“ref_qp(ref_qp_block_index)”,待编码的编码单元的量化参数(CurrentQP)呈现表达式(31)中所指示的关系。In step ST85, the image encoding device 10 generates identification information and difference information. The information generation unit 19 of the image encoding device 10 selects the candidate whose difference with the quantization parameter of the coding unit to be encoded is the smallest from the selection candidates, and uses it as the predicted quantization parameter. The information generation unit 19 generates identification information as identification information for selecting the predicted quantization parameter from the selection candidates by using the index (ref_qp_block_index) of the selected candidate. In addition, the information generation unit 19 uses the difference (qb_qp_delta) between the predicted quantization parameter and the quantization parameter of the coding unit to be encoded as the difference information, and proceeds to step ST86. Now, with respect to the predicted quantization parameter indicated by the index (ref_qp_block_index) of the determined candidate as "ref_qp (ref_qp_block_index)", the quantization parameter (CurrentQP) of the coding unit to be encoded presents the relationship indicated in Expression (31).

CurrentQP=qb_qp_delta+ref_qp(ref_qp_block_index)...(31)CurrentQP=qb_qp_delta+ref_qp(ref_qp_block_index)...(31)

在步骤ST86中,图像编码装置10将标识信息和差信息包括在流信息中。图像编码装置10的无损编码单元16对在信息生成单元19生成的标识信息和差信息进行无损编码,将其包括在流信息中,并且前进到步骤ST87。In step ST86, the image encoding device 10 includes the identification information and the difference information in the stream information. The lossless encoding unit 16 of the image encoding device 10 losslessly encodes the identification information and the difference information generated by the information generating unit 19, includes them in the stream information, and proceeds to step ST87.

在步骤ST87中,图像编码装置10使用所决定的量化参数由量化单元15对编码单元进行量化,并且返回到步骤ST81。In step ST87 , the image encoding device 10 quantizes the coding unit using the decided quantization parameter by the quantization unit 15 , and returns to step ST81 .

如此,图像编码装置10从与待编码的块在空间上或时间上相邻的经编码的块的量化参数中,选择其对于待编码的块的量化参数的差为最小的候选作为预测量化参数。此外,图像编码装置10生成与所选择的量化参数对应的标识信息。此外,图像编码装置10生成用于指示预测量化参数与待编码的块的量化参数之差的差信息。图像编码装置10将所生成的标识信息和差信息包括在流信息中。因此,由于其中差最小的候选被选择作为预测量化参数,所以可以防止预测量化参数与待编码的块的量化参数之差变成大的值。因此,图像编码装置10可以提高量化参数的编码效率。In this manner, the image coding device 10 selects, from among the quantization parameters of previously encoded blocks spatially or temporally adjacent to the block to be encoded, the candidate with the smallest difference from the quantization parameter of the block to be encoded as the predicted quantization parameter. Furthermore, the image coding device 10 generates identification information corresponding to the selected quantization parameter. Furthermore, the image coding device 10 generates difference information indicating the difference between the predicted quantization parameter and the quantization parameter of the block to be encoded. The image coding device 10 includes the generated identification information and difference information in the stream information. Therefore, since the candidate with the smallest difference is selected as the predicted quantization parameter, the difference between the predicted quantization parameter and the quantization parameter of the block to be encoded can be prevented from becoming excessive. Consequently, the image coding device 10 can improve the encoding efficiency of the quantization parameters.

<4.图像解码装置的配置><4. Configuration of Image Decoding Device>

接下来,将描述对由图像编码装置输出的流信息进行解码处理的图像解码装置。通过对输入图像进行编码所生成的经编码的流经由预定传输路径、记录介质等被提供给图像解码装置并且被解码。Next, an image decoding device that performs decoding processing on stream information output by the image encoding device will be described. The encoded stream generated by encoding the input image is supplied to the image decoding device via a predetermined transmission path, recording medium, etc. and decoded.

图18示出了对流信息进行解码处理的图像解码装置的配置。图像解码装置50包括存储缓冲器51、无损解码单元52、逆量化单元53、逆正交变换单元54、加法单元55、去块滤波器56、画面重置缓冲器57和数字/模拟转换单元(D/A转换单元)58。此外,图像解码装置50还包括量化参数计算单元59、帧存储器61、帧内预测单元71、运动补偿单元72和选择器73。FIG18 shows the configuration of an image decoding device that performs a decoding process on stream information. The image decoding device 50 includes a storage buffer 51, a lossless decoding unit 52, an inverse quantization unit 53, an inverse orthogonal transform unit 54, an addition unit 55, a deblocking filter 56, a picture re-alignment buffer 57, and a digital/analog conversion unit (D/A conversion unit) 58. The image decoding device 50 also includes a quantization parameter calculation unit 59, a frame memory 61, an intra-frame prediction unit 71, a motion compensation unit 72, and a selector 73.

存储缓冲器51存储被传输的流信息。无损解码单元52通过与图3中的无损编码单元16的编码格式对应的格式,来解码由存储缓冲器51提供的流信息。The storage buffer 51 stores the transmitted stream information. The lossless decoding unit 52 decodes the stream information supplied from the storage buffer 51 by a format corresponding to the encoding format of the lossless encoding unit 16 in FIG. 3 .

无损解码单元52作为信息获取单元工作并且从流信息中获取各种类型的信息。例如,无损解码单元52将通过解码流信息而获得的预测模式信息输出到帧内预测单元71和运动补偿单元72。此外,无损解码单元52将通过解码流信息而获得的差运动向量、阈值或阈值生成信息输出到运动补偿单元72。此外,无损解码单元52将与通过解码流信息而获得的量化参数相关的信息(例如差信息等)输出到量化参数计算单元59。此外,无损解码单元52将通过解码流信息而获得的量化数据输出到逆量化单元53。The lossless decoding unit 52 functions as an information acquisition unit and acquires various types of information from the stream information. For example, the lossless decoding unit 52 outputs the prediction mode information obtained by decoding the stream information to the intra-frame prediction unit 71 and the motion compensation unit 72. Furthermore, the lossless decoding unit 52 outputs the difference motion vector, threshold value, or threshold value generation information obtained by decoding the stream information to the motion compensation unit 72. Furthermore, the lossless decoding unit 52 outputs information related to the quantization parameter obtained by decoding the stream information (e.g., difference information, etc.) to the quantization parameter calculation unit 59. Furthermore, the lossless decoding unit 52 outputs the quantized data obtained by decoding the stream information to the inverse quantization unit 53.

逆量化单元53以与图3中量化单元15的量化格式对应的格式对在无损解码单元52处被解码的量化数据进行逆量化。逆正交变换单元54以与图3中正交变换单元14的正交变换格式对应的格式,对逆量化单元53的输出进行逆正交变换并且将其输出到加法单元55。The inverse quantization unit 53 inversely quantizes the quantized data decoded at the lossless decoding unit 52 in a format corresponding to the quantization format of the quantization unit 15 in FIG 3. The inverse orthogonal transform unit 54 inversely orthogonally transforms the output of the inverse quantization unit 53 in a format corresponding to the orthogonal transform format of the orthogonal transform unit 14 in FIG 3 and outputs it to the addition unit 55.

加法单元55将在逆正交变换之后的数据添加给由选择器73提供的预测图像数据,以生成经解码的图像数据并且将其输出到去块滤波器56和帧内预测单元71。The addition unit 55 adds the data after the inverse orthogonal transform to the predicted image data supplied from the selector 73 to generate decoded image data and outputs it to the deblocking filter 56 and the intra prediction unit 71 .

去块效应滤波器56关于由加法单元55提供的经解码的图像数据进行滤波处理,去除块失真,然后提供到并且存储在帧存储器61,并且将其输出到画面重置缓冲器57。The deblocking filter 56 performs filter processing on the decoded image data supplied from the addition unit 55 , removes block distortion, supplies to and stores in the frame memory 61 , and outputs it to the screen rearrangement buffer 57 .

画面重置缓冲器57对图像进行重置。换言之,按照用于由图3中的画面重置缓冲器12进行编码的顺序所重置的帧的顺序被重置成用于显示的原始顺序并且被输出到D/A转换单元58。The picture rearrangement buffer 57 rearranges the image. In other words, the order of the frames rearranged in the order for encoding by the picture rearrangement buffer 12 in FIG. 3 is rearranged into the original order for display and output to the D/A conversion unit 58.

D/A转换单元58对由画面重置缓冲器57提供的图像数据进行D/A转换,以便通过输出到未示出的显示器来显示图像。The D/A conversion unit 58 D/A-converts the image data supplied from the screen rearrangement buffer 57 to display an image by outputting to a display not shown.

量化参数计算单元59基于由无损解码单元52提供的信息来恢复量化参数,并且将其输出到逆量化单元53。图19示出了具有计算单元591和量化参数存储器单元592的量化参数计算单元的配置。The quantization parameter calculation unit 59 restores the quantization parameter based on the information supplied from the lossless decoding unit 52, and outputs it to the inverse quantization unit 53. FIG19 shows a configuration of a quantization parameter calculation unit having a calculation unit 591 and a quantization parameter memory unit 592. As shown in FIG.

计算单元591使用由无损解码单元52提供的信息和存储在量化参数存储器单元592中的量化参数来恢复用于在待解码的块受到的编码处理中的量化的量化参数,并且将其输出到逆量化单元53。计算单元591还将待解码的块的量化参数存储在量化参数存储器单元592中。The calculation unit 591 uses the information provided by the lossless decoding unit 52 and the quantization parameter stored in the quantization parameter memory unit 592 to restore the quantization parameter used for quantization in the encoding process to which the block to be decoded is subjected, and outputs it to the inverse quantization unit 53. The calculation unit 591 also stores the quantization parameter of the block to be decoded in the quantization parameter memory unit 592.

计算单元591使用例如从参数集提取的“pic_init_qp_minus26”和从片头部提取的“slice_qp_delta”来进行表达式(30)的计算,计算量化参数SliceQPY,并且输出到逆量化单元53。The calculation unit 591 performs calculation of Expression (30) using, for example, “pic_init_qp_minus26” extracted from the parameter set and “slice_qp_delta” extracted from the slice header, calculates the quantization parameter SliceQPY, and outputs to the inverse quantization unit 53 .

计算单元591还使用由无损解码单元52提供的标识信息和差信息以及存储在量化参数存储器单元592中的经解码的块的量化参数,并且计算待解码的块的量化参数。计算单元591将所计算的量化参数输出到逆量化单元53。在这种情况下,计算单元591从存储在量化参数存储器单元592中的经解码的块的量化参数中读出与待解码的块在空间上或时间上相邻的经解码的块的量化参数。计算单元591以与差计算单元192相同的方式设定选择候选。例如,计算单元591排除了至少其中量化参数冗余的块或其中未进行使用量化参数的逆量化的块,并且作为选择候选。此外,计算单元591以与差计算单元192相同的方式,关于候选中的每一个候选的量化参数设定标识信息,即索引(ref_qp_block_index)。换言之,计算单元591按照预定的阵列顺序、关于相邻的经解码的块设定索引(ref_qp_block_index)。计算单元591通过使用与由无损解码单元52提供的标识信息(即预测量化参数)以及由无损解码单元52提供的差信息所指示的差(qb_qp_delta)对应的量化参数“ref_qp(ref_qp_block_index)”来进行表达式(31)的计算。计算单元591将所计算的量化参数(CurrentQP)输出到逆量化单元53作为待解码的量化参数。此外,在不存在选择候选的情况下,计算单元591将片中初始值的量化参数输出到逆量化单元53。The calculation unit 591 also uses the identification information and difference information provided by the lossless decoding unit 52, as well as the quantization parameters of the decoded blocks stored in the quantization parameter memory unit 592, to calculate the quantization parameters for the block to be decoded. The calculation unit 591 outputs the calculated quantization parameters to the inverse quantization unit 53. In this case, the calculation unit 591 reads the quantization parameters of decoded blocks that are spatially or temporally adjacent to the block to be decoded from the quantization parameters of the decoded blocks stored in the quantization parameter memory unit 592. The calculation unit 591 sets selection candidates in the same manner as the difference calculation unit 192. For example, the calculation unit 591 excludes blocks in which at least the quantization parameters are redundant or in which inverse quantization using the quantization parameters has not been performed, and excludes them as selection candidates. Furthermore, the calculation unit 591 sets identification information, i.e., an index (ref_qp_block_index), for the quantization parameters of each candidate in the same manner as the difference calculation unit 192. In other words, the calculation unit 591 sets the index (ref_qp_block_index) for the adjacent decoded blocks in a predetermined array order. The calculation unit 591 calculates Expression (31) by using the quantization parameter "ref_qp (ref_qp_block_index)" corresponding to the identification information (i.e., predicted quantization parameter) provided by the lossless decoding unit 52 and the difference (qb_qp_delta) indicated by the difference information provided by the lossless decoding unit 52. The calculation unit 591 outputs the calculated quantization parameter (CurrentQP) to the inverse quantization unit 53 as the quantization parameter to be decoded. In addition, if there is no selection candidate, the calculation unit 591 outputs the quantization parameter of the initial value in the slice to the inverse quantization unit 53.

此外,在从流信息中提取了用于指定块的阵列顺序的信息的情况下,计算单元591对于具有所指定的阵列顺序的经解码的块设定索引(ref_qp_block_index)。因此,即使在图像编码装置10改变了阵列顺序,也可以恢复在图像编码装置10处所使用的量化参数。Furthermore, when information specifying the array order of blocks is extracted from the stream information, the calculation unit 591 sets an index (ref_qp_block_index) for the decoded block having the specified array order. Therefore, even if the array order is changed by the image encoding device 10, the quantization parameter used by the image encoding device 10 can be restored.

返回参考图18,帧存储器61保存由去块滤波器56提供的、滤波处理之后的经解码的图像数据。Referring back to FIG. 18 , the frame memory 61 stores the decoded image data after the filtering process provided by the deblocking filter 56 .

帧内预测单元71基于由无损解码单元52提供的预测模式信息和由加法单元55提供的经解码的图像数据来生成预测图像数据,并且将所生成的预测图像数据输出到选择器73。The intra prediction unit 71 generates predicted image data based on the prediction mode information supplied from the lossless decoding unit 52 and the decoded image data supplied from the addition unit 55 , and outputs the generated predicted image data to the selector 73 .

运动补偿单元72基于由无损解码单元52提供的预测模式信息和运动向量从帧存储器61中读出参考图像数据,并且进行运动补偿,以生成预测图像数据。运动补偿单元72将所生成的预测图像数据输出到选择器73。此外,运动补偿单元72在根据运动向量的大小来切换滤波性质的同时生成预测图像数据。The motion compensation unit 72 reads the reference image data from the frame memory 61 based on the prediction mode information and the motion vector supplied from the lossless decoding unit 52, and performs motion compensation to generate predicted image data. The motion compensation unit 72 outputs the generated predicted image data to the selector 73. In addition, the motion compensation unit 72 generates the predicted image data while switching the filtering properties according to the size of the motion vector.

选择器73基于由无损解码单元52提供的预测模式信息在帧内预测的情况下选择帧内预测单元71并且在帧间预测的情况下选择运动补偿单元72。选择器73将在所选择的帧内预测单元71或运动补偿单元72生成的预测图像数据输出到加法单元55。The selector 73 selects the intra prediction unit 71 in the case of intra prediction and selects the motion compensation unit 72 in the case of inter prediction based on the prediction mode information supplied from the lossless decoding unit 52. The selector 73 outputs the predicted image data generated by the selected intra prediction unit 71 or motion compensation unit 72 to the addition unit 55.

选择器73基于由无损解码单元52提供的预测模式信息,在帧内预测的情况下选择帧内预测单元71并且在帧间预测的情况下选择运动补偿单元72。选择器73将在所选择的帧内预测单元71或运动补偿单元72所生成的预测图像数据输出到加法单元55。The selector 73 selects the intra prediction unit 71 in the case of intra prediction and selects the motion compensation unit 72 in the case of inter prediction based on the prediction mode information supplied from the lossless decoding unit 52. The selector 73 outputs the predicted image data generated by the selected intra prediction unit 71 or motion compensation unit 72 to the addition unit 55.

<5.图像解码装置的操作><5. Operation of Image Decoding Device>

接下来,将参考图20中的流程图来描述图像解码装置50的操作。Next, the operation of the image decoding device 50 will be described with reference to the flowchart in FIG. 20 .

在步骤ST91中,存储缓冲器51存储被提供给它的流信息。在步骤ST92中,无损解码单元52进行无损解码处理。无损解码单元52解码由存储缓冲器51提供的流信息。换言之,获取通过图3中的无损编码单元16编码的、每个图片的量化数据。此外,无损解码单元52对包括在流信息中的预测模式信息进行无损编码,并且在所获取的预测模式信息是与帧内预测模式相关的信息的情况下,将预测模式信息输出到帧内预测单元71。此外,在预测模式信息是与帧间预测模式相关的信息的情况下,无损解码单元52将预测模式信息输出到运动补偿单元72。此外,无损解码单元52将通过解码流信息而获得的差运动向量、阈值或阈值生成信息输出到运动补偿单元72。In step ST91, the storage buffer 51 stores the stream information supplied thereto. In step ST92, the lossless decoding unit 52 performs lossless decoding processing. The lossless decoding unit 52 decodes the stream information supplied by the storage buffer 51. In other words, it obtains the quantized data for each picture encoded by the lossless encoding unit 16 in FIG. 3 . Furthermore, the lossless decoding unit 52 losslessly encodes the prediction mode information included in the stream information, and if the obtained prediction mode information is information related to the intra-frame prediction mode, it outputs the prediction mode information to the intra-frame prediction unit 71. Furthermore, if the prediction mode information is information related to the inter-frame prediction mode, the lossless decoding unit 52 outputs the prediction mode information to the motion compensation unit 72. Furthermore, the lossless decoding unit 52 outputs the difference motion vector, threshold value, or threshold value generation information obtained by decoding the stream information to the motion compensation unit 72.

在步骤ST93中,逆量化单元53进行逆量化处理。逆量化单元53以与图3中的量化单元15的性质对应的性质,对由逆解码单元52解码的量化数据进行逆量化。In step ST93, the inverse quantization unit 53 performs inverse quantization processing. The inverse quantization unit 53 inversely quantizes the quantized data decoded by the inverse decoding unit 52 with properties corresponding to those of the quantization unit 15 in FIG3 .

在步骤ST94中,逆正交变换单元54进行逆正交变换处理。逆正交变换单元54以与图3中的正交变换单元14的性质对应的性质,对受到逆量化单元53的逆量化的变换系数数据进行逆正交变换。In step ST94, the inverse orthogonal transform unit 54 performs inverse orthogonal transform processing. The inverse orthogonal transform unit 54 performs inverse orthogonal transform on the transform coefficient data inversely quantized by the inverse quantization unit 53, with properties corresponding to those of the orthogonal transform unit 14 in FIG.

在步骤ST95中,加法单元55生成经解码的图像数据。加法单元55将通过进行逆正交变换处理而获得的数据添加到稍后描述的步骤ST99中所选择的预测图像数据,并且生成经解码的图像数据。从而,解码了原始图像。In step ST95, the addition unit 55 generates decoded image data. The addition unit 55 adds the data obtained by performing the inverse orthogonal transform process to the predicted image data selected in step ST99 described later, and generates decoded image data. Thus, the original image is decoded.

在步骤ST96中,去块滤波器56进行滤波处理。去块滤波器56对由加法单元55输出的经解码的图像数据进行滤波处理,并且去除包括在经解码的图像中的块失真。In step ST96, the deblocking filter 56 performs filtering processing. The deblocking filter 56 performs filtering processing on the decoded image data output by the adding unit 55, and removes block distortion included in the decoded image.

在步骤ST97中,帧存储器61对经解码的图像数据进行存储处理。注意,存储在帧存储器61中的经解码的图像数据和由加法单元55输出的经解码的图像数据用作为参考图像数据来生成预测图像数据。In step ST97, the frame memory 61 performs storage processing on the decoded image data. Note that the decoded image data stored in the frame memory 61 and the decoded image data output by the addition unit 55 are used as reference image data to generate predicted image data.

在步骤ST98中,帧内预测单元71和运动补偿单元72进行预测处理。帧内预测单元71和运动补偿单元72分别进行与由无损解码单元52提供的预测模式信息对应的预测处理。In step ST98 , the intra prediction unit 71 and the motion compensation unit 72 perform prediction processing. The intra prediction unit 71 and the motion compensation unit 72 each perform prediction processing corresponding to the prediction mode information supplied from the lossless decoding unit 52 .

换言之,当由无损解码单元52提供帧内预测的预测模式信息时,帧内预测单元71基于预测模式信息来进行帧内预测处理并且生成预测图像数据。此外,在由无损解码单元52提供帧间预测的预测模式信息时,运动补偿单元72基于预测模式信息来进行运动补偿并且生成预测图像数据。In other words, when prediction mode information of intra prediction is supplied from the lossless decoding unit 52, the intra prediction unit 71 performs intra prediction processing based on the prediction mode information and generates predicted image data. Furthermore, when prediction mode information of inter prediction is supplied from the lossless decoding unit 52, the motion compensation unit 72 performs motion compensation based on the prediction mode information and generates predicted image data.

在步骤ST99中,选择器73选择预测图像数据。选择器73选择由帧内预测单元71提供的预测图像和由运动补偿单元72提供的预测图像数据,并且将所选择的预测图像数据提供给加法单元55,以便添加到如上所述的步骤ST95中逆正交变换单元54的输出。In step ST99, the selector 73 selects the predicted image data. The selector 73 selects the predicted image supplied by the intra-prediction unit 71 and the predicted image data supplied by the motion compensation unit 72, and supplies the selected predicted image data to the addition unit 55 so as to be added to the output of the inverse orthogonal transform unit 54 in step ST95 as described above.

在步骤ST100中,画面重置缓冲器57进行图像重置。换言之,在画面重置缓冲器57中,用于为由图3中的图像编码装置10的画面重置缓冲器12进行编码而重置的帧的顺序被重置成用于显示的原始顺序。In step ST100, the picture rearrangement buffer 57 performs image rearrangement. In other words, in the picture rearrangement buffer 57, the order of frames rearranged for encoding by the picture rearrangement buffer 12 of the image encoding device 10 in FIG. 3 is rearranged to the original order for display.

在步骤ST101中,D/A转换单元58对来自画面重置缓冲器57的图像数据进行D/A转换。该图像被输出到未示出的显示器并且该图像被显示。In step ST101, the D/A conversion unit 58 D/A converts the image data from the screen rearrangement buffer 57. The image is output to a display not shown and the image is displayed.

接下来,将参考图21中的流程图来描述图20中步骤ST98中的预测图像生成出来。Next, the generation of the predicted image in step ST98 in FIG. 20 will be described with reference to the flowchart in FIG. 21 .

在步骤ST111中,无损解码单元52确定当前块是否被帧内编码了。在通过进行无损编码而获得的预测模式信息是帧内预测模式信息的情况下,无损解码单元52将预测模式信息提供到帧内预测单元71并且前进到步骤ST112。此外,在预测模式信息不是帧内预测模式信息的情况下,无损解码单元52将预测模式信息提供到运动补偿单元72,并且前进到步骤ST113。In step ST111, the lossless decoding unit 52 determines whether the current block is intra-coded. If the prediction mode information obtained by performing lossless coding is intra-frame prediction mode information, the lossless decoding unit 52 supplies the prediction mode information to the intra-frame prediction unit 71 and proceeds to step ST112. If the prediction mode information is not intra-frame prediction mode information, the lossless decoding unit 52 supplies the prediction mode information to the motion compensation unit 72 and proceeds to step ST113.

在步骤ST112中,帧内预测单元71进行帧内预测处理。帧内预测单元71通过使用在进行去块滤波处理之前的经解码的图像数据和由加法单元55提供的预测模式信息来进行帧内预测,并且生成预测图像数据。In step ST112, the intra prediction unit 71 performs intra prediction processing. The intra prediction unit 71 performs intra prediction by using the decoded image data before the deblocking filtering processing and the prediction mode information supplied from the addition unit 55, and generates predicted image data.

在步骤ST113中,运动补偿单元72进行帧间预测图像生成处理。运动补偿单元72基于由无损解码单元52提供的信息(如预测模式信息等),从帧存储器61读出参考图像数据并且生成预测图像数据。In step ST113, the motion compensation unit 72 performs inter-prediction image generation processing. The motion compensation unit 72 reads out reference image data from the frame memory 61 based on information (such as prediction mode information) supplied from the lossless decoding unit 52 and generates prediction image data.

图22是示出了解码中与量化参数相关的处理的流程图。在步骤ST121中,图像解码装置50提取用于获得量化参数单元最小尺寸的信息。图像解码装置50从流信息中提取用于获得量化参数单元最小尺寸,例如“log2_min_qp_unit_size_offset”,并且前进到步骤ST122。FIG22 is a flowchart illustrating the processing related to quantization parameters during decoding. In step ST121, the image decoding device 50 extracts information for obtaining the minimum size of the quantization parameter unit. The image decoding device 50 extracts information for obtaining the minimum size of the quantization parameter unit, such as "log2_min_qp_unit_size_offset," from the stream information and proceeds to step ST122.

在步骤ST122中,图像解码装置50计算量化参数单元最小尺寸。图像解码装置50通过使用“log2_min_qp_unit_size_offset”和决定变换单元最小尺寸(MinTransformUnitSize)的参数“log2_min_transform_unit_size_minus2”来进行表达式(26)的计算,并且计算量化参数单元最小尺寸(MinQpUnitSize)。此外,图像解码装置50可以通过表达式(29)的计算来计算量化参数单元最小尺寸(MinQpUnitSize)。In step ST122, the image decoding device 50 calculates the minimum quantization parameter unit size. The image decoding device 50 calculates Expression (26) by using "log2_min_qp_unit_size_offset" and the parameter "log2_min_transform_unit_size_minus2" that determines the minimum transform unit size (MinTransformUnitSize), and calculates the minimum quantization parameter unit size (MinQpUnitSize). Furthermore, the image decoding device 50 can calculate the minimum quantization parameter unit size (MinQpUnitSize) by calculating Expression (29).

在步骤ST123中,图像解码装置50确定是否存在待解码的帧。在存在待解码的帧的情况下,图像解码装置50前进到步骤ST124,而在不存在待解码的帧的情况下,结束此处理。In step ST123, the image decoding device 50 determines whether there is a frame to be decoded. If there is a frame to be decoded, the image decoding device 50 proceeds to step ST124, and if there is no frame to be decoded, ends this process.

在步骤ST124中,图像解码装置50确定是否存在待解码的片。在存在待解码的片的情况下,图像解码装置50前进到步骤ST125,而在不存在待解码的片的情况下,返回到步骤ST123。In step ST124, the image decoding device 50 determines whether there is a slice to be decoded. If there is a slice to be decoded, the image decoding device 50 proceeds to step ST125, and if there is no slice to be decoded, returns to step ST123.

在步骤ST125中,图像解码装置50提取用于获得片中的初始值的量化参数的信息。图像解码装置50的无损解码单元52从图片参数集(PPS:图片参数集)中提取例如“pic_init_qp_minus26”。此外,从片头部中提取“slice_qp_delta”,并且前进到步骤ST126。In step ST125, the image decoding device 50 extracts information about the quantization parameter used to obtain the initial value in the slice. The lossless decoding unit 52 of the image decoding device 50 extracts, for example, "pic_init_qp_minus26" from the picture parameter set (PPS). Furthermore, it extracts "slice_qp_delta" from the slice header and proceeds to step ST126.

在步骤ST126中,图像解码装置50计算片中初始值的量化参数。图像解码装置50的量化参数计算单元59通过使用“pic_init_qp_minus26”和“slice_qp_delta”来进行表达式(30)的计算,计算量化参数SliceQPY,并且前进到步骤ST127。In step ST126, the image decoding device 50 calculates the quantization parameter of the initial value in the slice. The quantization parameter calculation unit 59 of the image decoding device 50 calculates the quantization parameter SliceQPY by performing calculation of Expression (30) using "pic_init_qp_minus26" and "slice_qp_delta", and proceeds to step ST127.

在步骤ST127中,图像解码装置50确定是否存在待解码的编码单元CU。在存在待解码的编码单元的情况下,图像解码装置50前进到步骤ST128,而在不存在待解码的编码单元的情况下,返回到步骤ST124。In step ST127, the image decoding device 50 determines whether there is a coding unit CU to be decoded. If there is a coding unit to be decoded, the image decoding device 50 proceeds to step ST128, and if there is no coding unit to be decoded, returns to step ST124.

在步骤ST128中,图像解码装置50将标识信息设定给选择候选。图像解码装置50的量化参数计算单元59以与图像编码装置10的信息生成单元19相同的方式将标识信息设定给选择候选。换言之,量化参数计算单元59将与待解码的编码单元在空间上或时间上相邻的经解码的编码单元的量化参数作为选择候选。此外,在由于是跳过块或不具有残差信息而没有设定量化参数的情况下,或者在量化参数等于另一个候选的情况下,从选择候选中排除它们。量化参数计算单元59将与图像编码装置10相同的标识信息(例如索引(ref_qp_block_index))设定给候选的量化参数,并前进到步骤ST129。In step ST128, the image decoding device 50 sets identification information to the selection candidate. The quantization parameter calculation unit 59 of the image decoding device 50 sets identification information to the selection candidate in the same manner as the information generation unit 19 of the image encoding device 10. In other words, the quantization parameter calculation unit 59 uses the quantization parameters of decoded coding units that are spatially or temporally adjacent to the coding unit to be decoded as selection candidates. In addition, if the quantization parameter is not set due to being a skip block or having no residual information, or if the quantization parameter is equal to another candidate, it is excluded from the selection candidate. The quantization parameter calculation unit 59 sets the same identification information (e.g., index (ref_qp_block_index)) as the image encoding device 10 to the quantization parameter of the candidate and proceeds to step ST129.

在步骤ST129中,图像解码装置50获得标识信息和差信息。图像解码装置50的无损解码单元52提取在图像编码装置10处被包括在流信息中的标识信息和差信息,即索引(ref_qp_block_index)和差(qb_qp_delta)。无损解码单元52将所提取的标识信息和差信息提供给量化参数计算单元59并且前进到步骤ST130。In step ST129, the image decoding device 50 obtains the identification information and the difference information. The lossless decoding unit 52 of the image decoding device 50 extracts the identification information and the difference information, namely, the index (ref_qp_block_index) and the difference (qb_qp_delta), included in the stream information at the image encoding device 10. The lossless decoding unit 52 provides the extracted identification information and difference information to the quantization parameter calculation unit 59 and proceeds to step ST130.

在步骤ST130中,图像解码装置50使用标识信息和差信息来计算量化参数。图像解码装置50的量化参数计算单元59通过使用与作为标识信息的索引(ref_qp_block_index)对应的量化参数“ref_qp(ref_qp_block_index”和作为差信息的(qb_qp_delta),来进行表达式(31)的计算。换言之,通过将差添加到预测量化参数,来计算待解码的编码单元的量化参数。量化参数计算单元59将待解码的编码单元的量化参数(CurrentQP)输出到逆量化单元53,并且返回到步骤ST124。In step ST130, the image decoding device 50 calculates a quantization parameter using the identification information and the difference information. The quantization parameter calculation unit 59 of the image decoding device 50 calculates Expression (31) by using the quantization parameter "ref_qp (ref_qp_block_index)" corresponding to the index (ref_qp_block_index) as the identification information and (qb_qp_delta) as the difference information. In other words, the quantization parameter of the coding unit to be decoded is calculated by adding the difference to the predicted quantization parameter. The quantization parameter calculation unit 59 outputs the quantization parameter (CurrentQP) of the coding unit to be decoded to the inverse quantization unit 53, and returns to step ST124.

因此,通过使用包括在流信息中的标识信息和差信息,与待解码的块相关的量化参数可以被恢复,即使块中的每一个块的量化参数都不包括在流信息中。换言之,即使在图像编码装置10处通过使用标识信息和差信息提高了量化参数的编码效率,与块中的每一个块相关的量化参数也可以被恢复并且解码处理也可以被正确地进行以在图像解码装置50生成经解码的图像。Therefore, by using the identification information and difference information included in the stream information, the quantization parameter associated with the block to be decoded can be restored even if the quantization parameter for each block in the block is not included in the stream information. In other words, even if the encoding efficiency of the quantization parameter is improved by using the identification information and difference information at the image encoding device 10, the quantization parameter associated with each block in the block can be restored and the decoding process can be correctly performed to generate a decoded image at the image decoding device 50.

<6.图像编码装置和图像解码装置的其他操作><6. Other Operations of the Image Encoding Device and the Image Decoding Device>

通过图像编码装置和图像解码装置的上述操作,与待编码的块在空间上或时间上相邻的经编码的块的量化参数被作为选择候选。此外,根据关于待编码的块所设定的量化参数而从选择候选中所选择的量化参数被作为预测量化参数。此外,通过在流信息中包括用于从选择候选中选择预测量化参数的标识信息和用于指示预测量化参数与为待编码的块所设定的量化参数之差的差信息,提高了量化参数的编码效率。Through the above-described operations of the image encoding and decoding devices, the quantization parameters of previously encoded blocks that are spatially or temporally adjacent to the block to be encoded are selected as selection candidates. Furthermore, a quantization parameter selected from the selection candidates based on the quantization parameter set for the block to be encoded is used as a predicted quantization parameter. Furthermore, by including identification information for selecting the predicted quantization parameter from the selection candidates and difference information indicating the difference between the predicted quantization parameter and the quantization parameter set for the block to be encoded in the stream information, the coding efficiency of the quantization parameter is improved.

然而,选择候选不限于与待编码的块在空间上或时间上相邻的经编码的块的量化参数,并且最近更新的量化参数可以包括在选择候选中。如稍后所描述的,即使与经编码的块在空间上或时间上相邻的块不涉及逆量化,在邻近待编码的块的位置处的块的量化参数也可以被设定为预测量化参数。此外,量化参数可以是选择候选的、显式或隐式预测的量化参数,并且可以生成用于指示预测量化参数与待编码的块的量化参数之差的差信息。However, the selection candidates are not limited to the quantization parameters of coded blocks that are spatially or temporally adjacent to the block to be coded, and the most recently updated quantization parameters may be included in the selection candidates. As described later, even if the blocks that are spatially or temporally adjacent to the coded block are not involved in inverse quantization, the quantization parameter of a block located adjacent to the block to be coded may be set as the predicted quantization parameter. Furthermore, the quantization parameter may be a quantization parameter that is explicitly or implicitly predicted as a selection candidate, and difference information indicating the difference between the predicted quantization parameter and the quantization parameter of the block to be coded may be generated.

接下来,将描述下述情况作为图像编码装置和图像解码装置的另一操作,所述情况是关于根据编码单元尺寸来决定量化参数单元最小尺寸(MinQpUnitSize)并且从选择候选的量化参数中显式或隐式地选择预测量化参数。注意,下面将关于与上述的图像编码装置和图像解码装置不同的部分进行描述。Next, as another operation of the image encoding device and the image decoding device, the following case will be described, in which the minimum quantization parameter unit size (MinQpUnitSize) is determined according to the coding unit size and a predicted quantization parameter is explicitly or implicitly selected from candidate quantization parameters. Note that the following description will focus on parts that differ from the above-described image encoding device and image decoding device.

在从选择候选的量化参数中显示或隐式地选择预测量化参数的情况下,图像编码装置包括用于指示是显式还是隐式决定量化参数的辨别信息“qp_explicit_flag”。此外,可以对于其中是显式决定还是隐式决定量化参数被提前解码的图像编码装置和图像解码装置进行布置。When selecting a predicted quantization parameter explicitly or implicitly from candidate quantization parameters, the image encoding device includes "qp_explicit_flag" information to distinguish whether the quantization parameter is determined explicitly or implicitly. Furthermore, an image encoding device and an image decoding device can be configured in which whether the quantization parameter is determined explicitly or implicitly is decoded in advance.

隐式决定量化参数意指在图像解码装置可以选择与图像编码装置相等的预测量化参数,而不从图像编码装置向图像解码装置提供用于从选择候选中选择预测量化参数的标识信息。具体地,存在下述方法:基于提前决定的优先权顺序从选择候选中选择量化参数并且决定预测量化参数的方法,将选择候选的量化参数的随机值作为预测量化参数的方法,根据距当前块的距离来加权选择候选的量化参数的方法,以及将所加权的量化参数的随机值作为预测量化参数的方法等。Implicitly determining a quantization parameter means that the image decoding device can select a predicted quantization parameter equivalent to that of the image encoding device, without providing identification information for selecting a predicted quantization parameter from selection candidates to the image decoding device from the image encoding device. Specifically, there are methods such as selecting a quantization parameter from selection candidates based on a predetermined priority order and determining the predicted quantization parameter, using a random value of the quantization parameter of the selection candidate as the predicted quantization parameter, weighting the quantization parameter of the selection candidate according to the distance from the current block, and using a random value of the weighted quantization parameter as the predicted quantization parameter.

显式决定量化参数意指可以通过从图像编码装置向图像解码装置提供用于从选择候选中选择预测量化参数的标识信息,来在图像解码装置处选择与图像编码装置相等的预测量化参数。具体地,存在下述方法:在图像编码装置处计算用于指定选择候选的索引信息并且将所计算的索引信息包括在流信息中、并且在图像解码装置处使用索引信息中所指示的选择候选的量化参数作为预测量化参数的方法,索引信息不包括在关于其不进行量化的块中的方法等。Explicitly determining the quantization parameter means that by providing identification information for selecting a predicted quantization parameter from selection candidates from the image encoding device to the image decoding device, the image decoding device can select the same predicted quantization parameter as that of the image encoding device. Specifically, there are methods such as a method in which the image encoding device calculates index information for specifying the selection candidate, includes the calculated index information in stream information, and uses the quantization parameter of the selection candidate indicated in the index information as the predicted quantization parameter at the image decoding device; a method in which the index information is not included for blocks for which quantization is not performed; and the like.

图23是用于描述图像编码装置的另一个操作的流程图,示出了片编码处理。在步骤ST141中,图像编码装置10确定是否存在待编码的编码单元CU。在待编码处理的片中存在还未受到编码处理的编码单元的情况下,图像编码装置10前进到步骤ST142。在对于片中所有编码单元完成了编码处理的情况下,图像编码装置10结束片编码处理。FIG23 is a flowchart for describing another operation of the image encoding device, illustrating the slice encoding process. In step ST141, the image encoding device 10 determines whether there are coding units (CUs) to be encoded. If there are coding units in the slice to be encoded that have not yet been encoded, the image encoding device 10 proceeds to step ST142. If the encoding process is complete for all coding units in the slice, the image encoding device 10 ends the slice encoding process.

在步骤ST142中,图像编码装置10拆分编码单元CU。图像编码装置10如图5中所示的那样拆分编码单元CU,决定其中成本函数值小的编码单元的尺寸,并且前进到步骤ST143。此外,为了能够确定其中成本函数值小的编码单元的尺寸,图像编码装置10将例如“编码树句法(Coding tree syntax)”、相当于图5中的拆分标记的“split_coding_unit_flag”包括在流信息中。In step ST142, the image coding device 10 splits the coding unit CU. The image coding device 10 splits the coding unit CU as shown in FIG5 , determines the size of the coding unit with the smallest cost function value, and proceeds to step ST143. Furthermore, in order to determine the size of the coding unit with the smallest cost function value, the image coding device 10 includes, for example, "split_coding_unit_flag," a "coding tree syntax" equivalent to the split flag in FIG5 , in the stream information.

在步骤ST143中,图像编码装置10确定待编码的编码单元是否涉及逆量化。在待编码的编码单元CU是不需要通过使用量化参数的逆量化来进行解码的模式的块,例如跳过模式或I_PCM模式或直接模式(CBP(编码区块样式)=0)的块的情况下,图像编码装置10返回到步骤ST141,并且在其中进行逆量化的块的情况下,前进到步骤ST144。In step ST143, the image encoding device 10 determines whether the coding unit to be encoded involves inverse quantization. If the coding unit CU to be encoded is a block in a mode that does not require decoding by inverse quantization using a quantization parameter, such as a block in skip mode, I_PCM mode, or direct mode (CBP (Coding Block Pattern) = 0), the image encoding device 10 returns to step ST141, and in the case of a block in which inverse quantization is performed, proceeds to step ST144.

在步骤ST144中,图像编码装置10确定编码单元CU的尺寸是否是“log2MinQpUnitSize”或更大。在编码单元CU的尺寸是“log2MinQpUnitSize”或更大的情况下,图像编码装置10前进到步骤ST145。此外,在编码单元CU的尺寸不是“log2MinQpUnitSize”或更大的情况下,图像编码装置10前进到步骤ST152。In step ST144, the image encoding device 10 determines whether the size of the coding unit CU is "log2MinQpUnitSize" or larger. If the size of the coding unit CU is "log2MinQpUnitSize" or larger, the image encoding device 10 proceeds to step ST145. In addition, if the size of the coding unit CU is not "log2MinQpUnitSize" or larger, the image encoding device 10 proceeds to step ST152.

在步骤ST145中,图像编码装置10决定用于待编码的编码单元CU的量化参数QP。图像编码装置10的速率控制单元18根据如上所述的编码单元的图像的复杂度来决定量化参数,或者决定量化参数以使得成本函数值是小的,并且前进到步骤ST146。In step ST145, the image encoding device 10 determines the quantization parameter QP for the coding unit CU to be encoded. The rate control unit 18 of the image encoding device 10 determines the quantization parameter according to the complexity of the image of the coding unit as described above, or determines the quantization parameter so that the cost function value is small, and proceeds to step ST146.

在步骤ST146中,图像编码装置10确定辨别信息“qp_explicit_flag”是否为“1”,所述辨别信息能够对量化参数要被隐式还是显式地预测进行标识。在该辨别信息“qp_explicit_flag”为“1”并且量化参数要被显式预测的情况下,图像编码装置10前进到步骤ST147。此外,在该辨别信息“qp_explicit_flag”为“0”并且量化参数要被隐式预测的情况下,图像编码装置10前进到步骤ST149。图像编码装置10例如将辨别信息“qp_explicit_flag”被设定成“1”的情况下的成本函数值与辨别信息“qp_explicit_flag”被设定成“0”的情况下的成本函数值进行比较。图像编码装置10基于比较结果来设定辨别信息“qp_explicit_flag”的值,使得编码效率更高。此外,在辨别信息“qp_explicit_flag”可以由用户设定的情况下,图像编码装置10根据用户指令来设定辨别信息“qp_explicit_flag”。In step ST146, the image coding device 10 determines whether the discrimination information "qp_explicit_flag" is "1," which identifies whether the quantization parameter is to be predicted implicitly or explicitly. If the discrimination information "qp_explicit_flag" is "1" and the quantization parameter is to be predicted explicitly, the image coding device 10 proceeds to step ST147. Alternatively, if the discrimination information "qp_explicit_flag" is "0" and the quantization parameter is to be predicted implicitly, the image coding device 10 proceeds to step ST149. The image coding device 10 compares the cost function value when the discrimination information "qp_explicit_flag" is set to "1" with the cost function value when the discrimination information "qp_explicit_flag" is set to "0," for example. Based on the comparison result, the image coding device 10 sets the value of the discrimination information "qp_explicit_flag" to achieve higher encoding efficiency. In addition, in a case where the identification information “qp_explicit_flag” can be set by the user, the image encoding device 10 sets the identification information “qp_explicit_flag” according to a user instruction.

在步骤ST147中,图像编码装置10生成标识信息。图像编码装置10从选择候选中选择候选,使得如上所述的那样在信息生成单元19处关于待编码的编码单元的量化参数的差最小,并且将其作为预测量化参数。图像编码装置10将例如与待编码的块在空间上或时间上相邻的经编码的块的量化参数、最后更新的量化参数和在片的头部块处设定的处理程序作为选择候选。图像编码装置10从其关于待编码的编码单元的量化参数的差为最小的选择候选中选择候选,并且将其作为预测量化参数。此外,信息生成单元19将所选择的候选的索引(ref_qp_block_index)作为用于从选择候选中选择预测量化参数的标识信息,并且前进到步骤ST148。In step ST147, the image encoding device 10 generates identification information. The image encoding device 10 selects a candidate from the selection candidates so that the difference in quantization parameters for the coding unit to be encoded at the information generation unit 19 as described above is minimized, and uses it as the predicted quantization parameter. The image encoding device 10 uses, for example, the quantization parameters of encoded blocks spatially or temporally adjacent to the block to be encoded, the most recently updated quantization parameters, and the processing procedures set at the header block of the slice as selection candidates. The image encoding device 10 selects a candidate from the selection candidates whose difference in quantization parameters for the coding unit to be encoded is minimized, and uses it as the predicted quantization parameter. In addition, the information generation unit 19 uses the index (ref_qp_block_index) of the selected candidate as identification information for selecting the predicted quantization parameter from the selection candidates and proceeds to step ST148.

在步骤ST148中,图像编码装置10在流信息中包括标识信息。图像编码装置10包括在步骤ST147中所生成的标识信息,并且前进到步骤ST150。In step ST148, the image encoding device 10 includes the identification information in the stream information. The image encoding device 10 includes the identification information generated in step ST147, and proceeds to step ST150.

在步骤ST149中,图像编码装置10隐式决定预测量化参数dQP。换言之,图像编码装置10用与图像解码装置50相同的方法来预测量化参数。至于用于预测量化参数的方法,例如基于提前决定的优先权顺序来解码预测量化参数。此外,多个候选量化参数的随机值可以被作为预测量化参数。此外,可以使用下述方法:根据距当前块的距离来加权选择候选的量化参数,并且将所加权的量化参数的随机值作为预测量化参数等。图像编码装置10计算预测量化参数并且前进到步骤ST150。In step ST149, the image encoding device 10 implicitly determines the predicted quantization parameter dQP. In other words, the image encoding device 10 predicts the quantization parameter using the same method as the image decoding device 50. The method used to predict the quantization parameter includes, for example, decoding the predicted quantization parameter based on a priority order determined in advance. Furthermore, a random value of a plurality of candidate quantization parameters may be used as the predicted quantization parameter. Furthermore, a method may be used in which the candidate quantization parameters are weighted and selected based on the distance from the current block, and the random value of the weighted quantization parameter is used as the predicted quantization parameter. The image encoding device 10 calculates the predicted quantization parameter and proceeds to step ST150.

在步骤ST150中,图像编码装置10生成差信息。图像编码装置10计算由步骤ST147中所生成的标识信息指示的预测量化参数与步骤ST145中所决定的量化参数之间的差,或者计算步骤ST149中所决定预测量化参数与步骤ST145中所决定的量化参数之间的差。图像编码装置10生成用于指示所计算的差的差信息并且前进到步骤ST151。In step ST150, the image encoding device 10 generates difference information. The image encoding device 10 calculates the difference between the predicted quantization parameter indicated by the identification information generated in step ST147 and the quantization parameter decided in step ST145, or calculates the difference between the predicted quantization parameter decided in step ST149 and the quantization parameter decided in step ST145. The image encoding device 10 generates difference information indicating the calculated difference and proceeds to step ST151.

在步骤ST151中,图像编码装置10在流信息中包括差信息和辨别信息。图像编码装置10在流信息中包括步骤ST151中所生成的差信息和步骤ST146中所使用的辨别信息“qp_explicit_flag”。图像编码装置10在例如序列参数集、图片参数集、片头部等之一中包括辨别信息,并且前进到步骤ST152。In step ST151, the image encoding device 10 includes the difference information and the identification information in the stream information. The image encoding device 10 includes the difference information generated in step ST151 and the identification information "qp_explicit_flag" used in step ST146 in the stream information. The image encoding device 10 includes the identification information in one of the sequence parameter set, picture parameter set, slice header, etc., and proceeds to step ST152.

在步骤ST152中,图像编码装置10对编码单元CU进行量化。图像编码装置10通过使用所决定的量化参数来对编码单元进行量化,并且返回到步骤ST141。In step ST152, the image encoding device 10 quantizes the coding unit CU. The image encoding device 10 quantizes the coding unit CU using the decided quantization parameter and returns to step ST141.

图24是在对量化参数进行隐式预测的情况下的操作实例,图25是在显式预测量化参数的情况下的流程图实例。注意,三个选择候选的情况被示出以便于描述。Fig. 24 is an example of operation in the case of implicitly predicting the quantization parameter, and Fig. 25 is an example of a flowchart in the case of explicitly predicting the quantization parameter. Note that the case of three selection candidates is shown for ease of description.

如图24中的(A)所示,待编码的帧中待编码的块的量化参数例如是“QP_0”。此外,三个候选是与左侧相邻的经编码的块的量化参数“QP_A”、相邻的经编码的块的量化参数“QP_B”和经解码的编码单元的量化参数“QP_LS”。As shown in (A) of FIG24 , the quantization parameter of the block to be encoded in the frame to be encoded is, for example, "QP_0." Furthermore, three candidates are the quantization parameter "QP_A" of the coded block adjacent to the left, the quantization parameter "QP_B" of the adjacent coded block, and the quantization parameter "QP_LS" of the decoded coding unit.

在图25中,在步骤ST161中,图像编码装置10确定量化参数“QP_A”、“QP_B”是否可以被参考。与左侧相邻的经编码的块和与上方相邻的经编码的块不是这样的模式下的块:该模式不需要使用量化参数进行逆量化而进行解码,例如跳过模式或I_PCM模式或直接模式(CBP(编码区块样式)=0)的块的情况下,图像编码装置10确定可以做参考并且前进到步骤ST162。此外,在量化参数“QP_A”和量化参数“QP_B”中至少之一是不需要逆量化的模式的情况下,前进到步骤ST163。In FIG25 , in step ST161, the image encoding device 10 determines whether the quantization parameters "QP_A" and "QP_B" can be referenced. If the coded block adjacent to the left and the coded block adjacent to the top are not blocks in a mode that does not require inverse quantization using quantization parameters for decoding, such as blocks in skip mode, I_PCM mode, or direct mode (CBP (Coded Block Pattern) = 0), the image encoding device 10 determines that reference can be made and proceeds to step ST162. Furthermore, if at least one of the quantization parameters "QP_A" and "QP_B" is in a mode that does not require inverse quantization, the process proceeds to step ST163.

在步骤ST162中,图像编码装置10把量化参数“QP_A”、“QP_B”的平均值作为预测量化参数dQP。换言之,如图24中的(B)所示,在量化参数“QP_A”、“QP_B”可以被参考的情况下,量化参数“QP_A”、“QP_B”的平均值“(QP_A+QP_B+1)/2”被作为预测量化参数dQP。In step ST162, the image encoding device 10 uses the average value of the quantization parameters "QP_A" and "QP_B" as the predicted quantization parameter dQP. In other words, as shown in FIG24(B), when the quantization parameters "QP_A" and "QP_B" can be used as a reference, the average value "(QP_A+QP_B+1)/2" of the quantization parameters "QP_A" and "QP_B" is used as the predicted quantization parameter dQP.

在步骤ST163中,图像编码装置10确定量化参数“QP_A”是否可以被参考。在与左侧相邻的经编码的块不是其中不需要进行逆量化的模式的情况下,图像编码装置10确定该块可以被参考,并且前进到步骤ST164。此外,在左侧相邻的经编码的块是其中不需要进行逆量化的模式的情况下,图像编码装置10确定该块不可以被参考,并且前进到步骤ST165。In step ST163, the image encoding device 10 determines whether the quantization parameter "QP_A" can be referenced. If the coded block adjacent to the left is not in a mode in which inverse quantization is not required, the image encoding device 10 determines that the block can be referenced and proceeds to step ST164. If the coded block adjacent to the left is in a mode in which inverse quantization is not required, the image encoding device 10 determines that the block cannot be referenced and proceeds to step ST165.

在步骤ST164中,图像编码装置10将量化参数“QP_A”作为预测量化参数dQP。换言之,在量化参数“QP_A”可以被参考而量化参数“QP_B”不可以被参考的情况下,如图24中的(C)所示,将量化参数“QP_A”作为预测量化参数dQP。注意,在图24和稍后描述的图26中,通过阴影来指示不需要逆量化的模式的块,即不可以被参考的块,。In step ST164, the image encoding device 10 uses the quantization parameter "QP_A" as the predicted quantization parameter dQP. In other words, when the quantization parameter "QP_A" can be referenced but the quantization parameter "QP_B" cannot be referenced, as shown in (C) of FIG. 24 , the quantization parameter "QP_A" is used as the predicted quantization parameter dQP. Note that in FIG. 24 and FIG. 26 described later, blocks in a mode that does not require inverse quantization, that is, blocks that cannot be referenced, are indicated by shading.

在步骤ST165中,图像编码装置10确定量化参数“QP_B”是否可以被参考。在与上方相邻的经编码的块不是其中不需要进行逆量化的模式的情况下,图像编码装置10确定该块可以被参考,并且前进到步骤ST166。此外,在与上方相邻的经编码的块是其中不需要进行逆量化的模式的情况下,图像编码装置10确定该块不可以被参考,并且前进到步骤ST167。In step ST165, the image encoding device 10 determines whether the quantization parameter "QP_B" can be referenced. If the coded block adjacent to the upper side is not in a mode in which inverse quantization is not required, the image encoding device 10 determines that the block can be referenced and proceeds to step ST166. If the coded block adjacent to the upper side is in a mode in which inverse quantization is not required, the image encoding device 10 determines that the block cannot be referenced and proceeds to step ST167.

在步骤ST166中,图像编码装置10把量化参数“QP_B”作为预测量化参数dQP。换言之,在量化参数“QP_B”可以被参考而量化参数“QP_A”不可以被参考的情况下,如图24中的(D)所示,量化参数“QP_B”被作为预测量化参数dQP。In step ST166, the image encoding device 10 uses the quantization parameter "QP_B" as the predicted quantization parameter dQP. In other words, when the quantization parameter "QP_B" can be referenced but the quantization parameter "QP_A" cannot be referenced, as shown in (D) of FIG. 24 , the quantization parameter "QP_B" is used as the predicted quantization parameter dQP.

在步骤ST167中,图像编码装置10把量化参数“QP_LS”作为预测量化参数dQP。如图24中的(E)所示,在与左侧相邻的经编码的块和与上方相邻的经编码的块是不需要进行逆量化的模式的情况下,量化参数“QP_LS”被作为预测量化参数dQP。In step ST167, the image encoding device 10 uses the quantization parameter "QP_LS" as the predicted quantization parameter dQP. As shown in (E) of FIG. 24 , when the coded block adjacent to the left and the coded block adjacent to the top are in a mode that does not require inverse quantization, the quantization parameter "QP_LS" is used as the predicted quantization parameter dQP.

图26示出了对量化参数进行隐式预测的情况的另一个操作实例。例如,如图24中的(E)所示,与左侧相邻的经编码的块和与上方相邻的经编码的块是不需要进行逆量化的模式的情况下,预定的量化参数可以通过增加选择候选的数目而生成。例如,如图26中的(A)所示,与右上方相邻的经编码的块的量化参数“QP_C”、与左上方相邻的经编码的块的量化参数“QP_D”和与左下方相邻的经编码的块的量化参数“QP_E”被添加到选择候选。FIG26 shows another operation example of implicitly predicting a quantization parameter. For example, as shown in FIG24 (E), when the coded block adjacent to the left and the coded block adjacent to the top are in a mode that does not require inverse quantization, a predetermined quantization parameter can be generated by increasing the number of selection candidates. For example, as shown in FIG26 (A), the quantization parameter "QP_C" of the coded block adjacent to the top right, the quantization parameter "QP_D" of the coded block adjacent to the top left, and the quantization parameter "QP_E" of the coded block adjacent to the bottom left are added to the selection candidates.

在如图26中的(B)所示、量化参数“QP_C”、“QP_D”和“QP_E”可以被参考的情况下,图像编码装置10将量化参数“QP_C”和“QP_D”的平均值“(QP_C+QP_D+1)/2”或中位数(Median)作为预测量化参数dQP。In the case where the quantization parameters "QP_C", "QP_D" and "QP_E" can be referenced as shown in (B) in Figure 26, the image encoding device 10 uses the average value "(QP_C+QP_D+1)/2" or median (Median) of the quantization parameters "QP_C" and "QP_D" as the predicted quantization parameter dQP.

在如图26中的(C)所示、量化参数“QP_C”和“QP_D”可以被参考的情况下,图像编码装置10将量化参数“QP_C”和“QP_D”的平均值“(QP_C+QP_D+1)/2”作为预测量化参数dQP。In the case where quantization parameters “QP_C” and “QP_D” can be referenced as shown in (C) of FIG. 26 , the image encoding device 10 uses the average value “(QP_C+QP_D+1)/2” of the quantization parameters “QP_C” and “QP_D” as the predicted quantization parameter dQP.

在如图26中的(D)所示、量化参数“QP_D”和“QP_E”可以被参考的情况下,图像编码装置10把量化参数“QP_D”和“QP_E”的平均值“(QP_D+QP_E+1)/2”作为预测量化参数dQP。In the case where the quantization parameters “QP_D” and “QP_E” can be referenced as shown in (D) of FIG. 26 , the image encoding device 10 uses the average value “(QP_D+QP_E+1)/2” of the quantization parameters “QP_D” and “QP_E” as the predicted quantization parameter dQP.

在如图26中的(E)所示、量化参数“QP_C”和“QP_E”可以被参考的情况下,图像编码装置10将量化参数“QP_C”和“QP_E”的平均值“(QP_C+QP_E+1)/2”作为预测量化参数dQP。In the case where quantization parameters “QP_C” and “QP_E” can be referenced as shown in (E) of FIG. 26 , the image encoding device 10 uses the average value “(QP_C+QP_E+1)/2” of the quantization parameters “QP_C” and “QP_E” as the predicted quantization parameter dQP.

在如图26中的(F)所示、量化参数“QP_C”、“QP_D”和“QP_E”不可以被参考的情况下,图像编码装置10将量化参数“QP_LS”作为预测量化参数dQP。注意,图27示出了用于进行图24中的(B)到(D)和图26中的(B)到(F)的操作的程序。In the case where the quantization parameters "QP_C", "QP_D", and "QP_E" cannot be referenced as shown in (F) of FIG. 26 , the image encoding device 10 uses the quantization parameter "QP_LS" as the predicted quantization parameter dQP. Note that FIG. 27 shows a procedure for performing the operations of (B) to (D) of FIG. 24 and (B) to (F) of FIG. 26 .

此外,在可以参考的量化参数的数目为一的情况下,如图26中的(G)到(I)所示,可以将该可以被参考的量化参数用作预测量化参数dQP。Furthermore, in the case where the number of quantization parameters that can be referenced is one, as shown in (G) to (I) in FIG. 26 , the quantization parameter that can be referenced can be used as the predicted quantization parameter dQP.

因此,图像编码装置10把量化参数(如与待编码的块在空间上或时间上相邻的经编码的块的)作为选择候选,并且根据所设定的量化参数从选择候选中选择预测量化参数。此外,图像编码装置10生成用于从选择候选中选择预测量化参数的标识信息。此外,图像编码装置10生成用于指示预测量化参数与为待编码的块设定的量化参数之差的差信息。图像编码装置10将所生成的标识信息和差信息包括在流信息中。通过进行这样的处理,可以防止待编码的块的量化参数与预测量化参数之差变成大的值。因此,图像编码装置10可以提高量化参数的编码效率。Therefore, the image coding device 10 considers quantization parameters (e.g., those of previously encoded blocks spatially or temporally adjacent to the block to be coded) as selection candidates and selects a predicted quantization parameter from the selection candidates based on the set quantization parameter. Furthermore, the image coding device 10 generates identification information for selecting the predicted quantization parameter from the selection candidates. Furthermore, the image coding device 10 generates difference information indicating the difference between the predicted quantization parameter and the quantization parameter set for the block to be coded. The image coding device 10 includes the generated identification information and difference information in the stream information. By performing this process, the difference between the quantization parameter of the block to be coded and the predicted quantization parameter can be prevented from becoming excessively large. Consequently, the image coding device 10 can improve the coding efficiency of the quantization parameter.

此外,在对量化参数进行隐式预测的情况下,可以在图像解码装置50使用与图像编码装置10相同的预测量化参数,而不在流信息中包括用于从选择候选中选择预测量化参数的标识信息。此外,通过在流信息中包括辨别信息,可以适应地对预测量化参数的显式预测和对预测量化参数的隐式预测进行切换。Furthermore, when the quantization parameter is implicitly predicted, the image decoding device 50 can use the same predicted quantization parameter as the image encoding device 10 without including identification information for selecting the predicted quantization parameter from the selection candidates in the stream information. Furthermore, by including identification information in the stream information, it is possible to adaptively switch between explicit prediction of the predicted quantization parameter and implicit prediction of the predicted quantization parameter.

图28是用于描述图像解码装置的其他操作的流程图。在图22中的步骤ST127中,在做出了存在待解码的编码单元的确定的情况下,图像解码装置50进行从步骤ST171开始的处理,并且对编码单元进行解码。Fig. 28 is a flowchart for describing other operations of the image decoding device. In step ST127 in Fig. 22 , when it is determined that there is a coding unit to be decoded, the image decoding device 50 performs the processing starting from step ST171 and decodes the coding unit.

在步骤ST171中,图像解码装置50提取信息。图像解码装置50从流信息中提取信息以用于对编码单元的解码。例如,提取了能够确定编码单元的尺寸的信息“编码树句法(Coding tree syntax)”、能够确定量化参数单元最小尺寸的信息“log2_min_qp_unit_size_offset”、辨别信息“qp_explicit_flag”等,并且前进到步骤ST172。In step ST171, the image decoding device 50 extracts information. The image decoding device 50 extracts information from the stream information for decoding the coding unit. For example, the image decoding device 50 extracts information such as "coding tree syntax" that can determine the size of the coding unit, "log2_min_qp_unit_size_offset" that can determine the minimum size of the quantization parameter unit, and "qp_explicit_flag" identification information, and then proceeds to step ST172.

在步骤ST172中,图像解码装置50拆分编码单元CU。图像解码装置50基于包括在流信息中的“split_coding_unit_flag”等来拆分编码单元CU,并且前进到步骤ST173。In step ST172, the image decoding device 50 splits the coding unit CU. The image decoding device 50 splits the coding unit CU based on "split_coding_unit_flag" and the like included in the stream information, and proceeds to step ST173.

在步骤ST173中,图像解码装置50确定待解码的编码单元CU是否涉及逆量化。在待解码的编码单元CU是其中使用量化参数进行逆量化的模式的情况下,图像解码装置50前进到步骤ST174,而在其中使用量化参数的逆量化是不必要的块的情况下,解码处理结束。In step ST173, the image decoding device 50 determines whether the coding unit CU to be decoded involves inverse quantization. If the coding unit CU to be decoded is in a mode in which inverse quantization is performed using a quantization parameter, the image decoding device 50 proceeds to step ST174, and if inverse quantization using a quantization parameter is unnecessary for a block, the decoding process ends.

在步骤ST174中,图像解码装置50确定编码单元CU的尺寸是否是“log2MinQpUnitSize”或更大。在编码单元CU的尺寸是“log2MinQpUnitSize”或更大的情况下,图像解码装置50前进到步骤ST175。此外,在编码单元CU的尺寸不是“log2MinQpUnitSize”或更大的情况下,图像解码装置50前进到步骤ST180。In step ST174, the image decoding device 50 determines whether the size of the coding unit CU is "log2MinQpUnitSize" or larger. If the size of the coding unit CU is "log2MinQpUnitSize" or larger, the image decoding device 50 proceeds to step ST175. In addition, if the size of the coding unit CU is not "log2MinQpUnitSize" or larger, the image decoding device 50 proceeds to step ST180.

在步骤ST175中,图像解码装置50确定辨别信息“qp_explicit_flag”是否为“1”。在包括在流信息中的辨别信息“qp_explicit_flag”为“1”并且量化参数要被显式预测的情况下,图像解码装置50前进到步骤ST176。此外,在辨别信息“qp_explicit_flag”为“0”并且量化参数要被隐式预测的情况下,图像解码装置50前进到步骤ST178。In step ST175, the image decoding device 50 determines whether the identification information "qp_explicit_flag" is "1". If the identification information "qp_explicit_flag" included in the stream information is "1" and the quantization parameter is to be explicitly predicted, the image decoding device 50 proceeds to step ST176. On the other hand, if the identification information "qp_explicit_flag" is "0" and the quantization parameter is to be implicitly predicted, the image decoding device 50 proceeds to step ST178.

在步骤ST176中,图像解码装置50从流信息中提取索引(ref_qp_block_index)并且前进到步骤ST177。In step ST176 , the image decoding device 50 extracts the index (ref_qp_block_index) from the stream information and proceeds to step ST177 .

在步骤ST177中,图像解码装置50决定预测量化参数dQP。图像解码装置50基于索引(ref_qp_block_index)从选择候选的量化参数中选择与图像编码装置10相同的量化参数,决定所选择的量化参数为预测量化参数dQP,并且前进到步骤ST179。In step ST177 , the image decoding device 50 determines the predicted quantization parameter dQP. The image decoding device 50 selects the same quantization parameter as the image encoding device 10 from the selection candidate quantization parameters based on the index (ref_qp_block_index), determines the selected quantization parameter as the predicted quantization parameter dQP, and proceeds to step ST179 .

在步骤ST178中,图像解码装置50对预测量化参数dQP进行隐式决定。图像解码装置50用与图像编码装置10相同的方法来预测量化参数。至于用于预测量化参数的方法,例如可以基于提前决定的优先权的顺序来决定量化参数。此外,可以将选择候选的量化参数的随机值作为预测量化参数。此外,可以使用下述方法:根据距当前块的距离对选择候选的量化参数进行加权,并且将所加权的量化参数的随机值作为预测量化参数等。图像解码装置50预测量化参数并且前进到步骤ST179。In step ST178, the image decoding device 50 implicitly determines the predicted quantization parameter dQP. The image decoding device 50 predicts the quantization parameter using the same method as the image encoding device 10. The method used to predict the quantization parameter can, for example, be based on a previously determined order of priority. Alternatively, a random value of a candidate quantization parameter can be selected as the predicted quantization parameter. Alternatively, a method can be used in which the candidate quantization parameters are weighted according to the distance from the current block and the weighted random value of the quantization parameter is used as the predicted quantization parameter. The image decoding device 50 predicts the quantization parameter and proceeds to step ST179.

在步骤ST179中,图像解码装置50计算当前编码单元CU的量化参数QP。图像解码装置50从流信息中获得差信息“qb_qp_delta”,将该差信息添加到预测量化参数dQP,计算待解码的编码单元的量化参数,并且前进到步骤ST180。In step ST179, the image decoding device 50 calculates the quantization parameter QP of the current coding unit CU. The image decoding device 50 obtains the difference information "qb_qp_delta" from the stream information, adds the difference information to the predicted quantization parameter dQP, calculates the quantization parameter of the coding unit to be decoded, and proceeds to step ST180.

在步骤ST180中,图像解码装置50对编码单元进行逆量化。图像解码装置50通过使用经解码的量化参数来对编码单元进行逆量化。In step ST180, the image decoding device 50 inversely quantizes the coding unit. The image decoding device 50 inversely quantizes the coding unit by using the decoded quantization parameter.

因此,图像解码装置50可以通过使用与由图像编码装置使用的量化参数相同的量化参数来对图像进行解码。Therefore, the image decoding device 50 can decode the image by using the same quantization parameter as that used by the image encoding device.

<7.软件处理的案例><7. Software Processing Examples>

上面所述的一系列处理可以通过硬件、软件或二者的组合的配置来进行。在由软件进行处理的情况下,其中记录有处理序列的程序被安装在构建到专用硬件中的计算机内部的存储器中,并且被执行。可替代地,程序可以被安装在借助于其可以进行各种类型的处理的通用计算机中。The series of processing described above can be performed by configuring hardware, software, or a combination of the two. In the case of processing by software, a program in which the processing sequence is recorded is installed in a memory inside a computer built into dedicated hardware and executed. Alternatively, the program can be installed in a general-purpose computer with which various types of processing can be performed.

图29是例示了借助程序执行上述系列处理的计算机装置的示意性配置的图。计算机装置80的CPU 801根据存储在ROM 802中的或记录在记录单元808中的程序来执行各种类型的处理。29 is a diagram illustrating a schematic configuration of a computer device that executes the above-described series of processes by means of a program. A CPU 801 of the computer device 80 executes various types of processes according to a program stored in a ROM 802 or recorded in a recording unit 808.

CPU 801执行的程序、数据等视情况被存储在RAM 803中。CPU 801、ROM 802和RAM803经由总线804相互连接。Programs executed by the CPU 801, data, and the like are stored as appropriate in the RAM 803. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804.

输入/输出接口805也经由总线804连接到CPU 801。如触摸屏、键盘、鼠标、麦克风等的输入单元806和由显示器等组成的输出单元807也连接到CPU 801。CPU 801根据由输入单元806输入的命令来执行各种类型的处理。然后,CPU 801将处理的结果输出到输出单元807。An input/output interface 805 is also connected to the CPU 801 via the bus 804. An input unit 806 such as a touch screen, keyboard, mouse, microphone, etc. and an output unit 807 composed of a display, etc. are also connected to the CPU 801. The CPU 801 performs various types of processing according to commands input by the input unit 806. Then, the CPU 801 outputs the results of the processing to the output unit 807.

连接到输入/输出接口805的记录单元808例如由硬盘组成,并且记录CPU 801执行的程序和各种类型的数据。通信单元809经由电缆或无线通信介质(如像互联网或局域网的网络或数字广播等)与外部装置进行通信。此外,计算机装置80可以经由通信单元809来获取程序并且记录在ROM 802或记录单元808中。The recording unit 808 connected to the input/output interface 805 is composed of, for example, a hard disk, and records programs executed by the CPU 801 and various types of data. The communication unit 809 communicates with external devices via a cable or wireless communication medium (such as a network such as the Internet or a local area network or digital broadcasting). In addition, the computer device 80 can acquire a program via the communication unit 809 and record it in the ROM 802 or the recording unit 808.

在如磁盘、光盘、磁光盘或半导体存储器等的可移动介质85被安装在驱动器810的情况下,这些可移动介质被驱动,并且获得了记录在其中的程序、数据等。所获得的程序和数据根据需要被转移到ROM 802或RAM 803或记录单元808。When a removable medium 85 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory is mounted on the drive 810, the removable medium is driven and the programs, data, etc. recorded therein are obtained. The obtained programs and data are transferred to the ROM 802 or the RAM 803 or the recording unit 808 as needed.

CPU 801读出并且执行用于进行上述的系列处理的程序,并且对记录在记录单元808或可移动介质85中的图像信号或者经由通信单元809所提供的图像信号进行编码处理,或者对流信息进行解码处理。The CPU 801 reads out and executes a program for performing the series of processes described above, and performs encoding processing on an image signal recorded in the recording unit 808 or the removable medium 85 or an image signal supplied via the communication unit 809 , or performs decoding processing on stream information.

<8.电子设备的应用的情况><8. Application of electronic equipment>

此外,在以上所述中,H.264/AVC格式用作为编码格式/解码格式,但是本技术还被应用于使用进行其他运动预测/补偿处理的编码格式/解码格式的图像编码装置/图像解码装置。Furthermore, in the above description, the H.264/AVC format is used as the encoding format/decoding format, but the present technology is also applicable to image encoding devices/image decoding devices using encoding formats/decoding formats that perform other motion prediction/compensation processing.

此外,本技术可以被应用于在经由网络介质(如卫星广播、电缆TV(电视)、互联网、蜂窝电话等)接收通过进行编码处理所获得的、如具有MPEG、H.26x等的流信息时所使用的图像编码装置和图像解码装置,或者在如光盘或磁盘和闪存的存储介质上处理时所使用的图像编码装置和图像解码装置。In addition, the present technology can be applied to image encoding devices and image decoding devices used when receiving stream information such as MPEG, H.26x, etc. obtained by encoding processing via a network medium (such as satellite broadcasting, cable TV (television), the Internet, cellular phones, etc.), or image encoding devices and image decoding devices used when processing on storage media such as optical disks or magnetic disks and flash memories.

接下来,将关于上述的图像编码装置10和图像解码装置50被应用于的电子装置进行描述。Next, description will be made regarding electronic devices to which the above-described image encoding device 10 and image decoding device 50 are applied.

图30示例性地示出了本技术被应用于的电视设备的示意性配置。电视设备90具有天线901、调谐器902、解复用器903、解码器904、视频信号处理单元905、显示单元906、音频信号处理单元907、扬声器908和外部接口单元909。此外,电视设备90具有控制单元910、用户接口单元911等。30 exemplarily shows a schematic configuration of a television device to which the present technology is applied. The television device 90 includes an antenna 901, a tuner 902, a demultiplexer 903, a decoder 904, a video signal processing unit 905, a display unit 906, an audio signal processing unit 907, a speaker 908, and an external interface unit 909. In addition, the television device 90 includes a control unit 910, a user interface unit 911, and the like.

调谐器902通过从天线901接收的广播信号中选择想要的频道来进行解调,并且将所获得的流输出到解复用器903。The tuner 902 performs demodulation by selecting a desired channel from the broadcast signal received by the antenna 901 , and outputs the obtained stream to the demultiplexer 903 .

解复用器903从流中提取待观看的节目的视频和音频的分组并且将所提取的包的数据输出到解码器904。此外,解复用器903将诸如EPG(电子节目菜单)的数据分组提供给控制单元910。注意,在已经进行了加扰的情况下,在解复用器等处进行解扰。The demultiplexer 903 extracts packets of video and audio of a program to be viewed from the stream and outputs the data of the extracted packets to the decoder 904. In addition, the demultiplexer 903 supplies data packets such as an EPG (Electronic Program Guide) to the control unit 910. Note that if scrambling has been performed, descrambling is performed at the demultiplexer or the like.

解码器904对分组进行解码处理,并且将通过受到解码处理而生成的视频数据输出到视频信号处理单元905并且将音频信号输出到音频信号处理单元907。The decoder 904 performs a decoding process on the packet, and outputs the video data generated by being subjected to the decoding process to the video signal processing unit 905 and outputs the audio signal to the audio signal processing unit 907 .

视频信号处理单元905根据降噪和用户设定对视频数据进行视频处理。视频信号处理单元905根据处理、基于通过网络所提供的应用来生成用于在显示单元906上显示节目的视频数据和图像数据。此外,视频信号处理单元905生成视频数据以显示如用于对项目进行选择的菜单画面等,并且将其叠加到节目的视频数据上。视频信号处理单元905基于以这种方式所生成的视频数据来生成驱动信号并且驱动显示单元906。The video signal processing unit 905 performs video processing on the video data based on noise reduction and user settings. Based on the processing and an application provided via the network, the video signal processing unit 905 generates video data and image data for displaying the program on the display unit 906. Furthermore, the video signal processing unit 905 generates video data for displaying, for example, a menu screen for selecting items, and superimposes it on the program video data. Based on the video data generated in this manner, the video signal processing unit 905 generates a drive signal and drives the display unit 906.

显示单元906基于来自视频信号处理单元905的驱动信号来驱动显示装置(例如,液晶显示装置)使得显示节目的视频。The display unit 906 drives a display device (for example, a liquid crystal display device) based on the driving signal from the video signal processing unit 905 so that the video of the program is displayed.

音频信号处理单元907使音频数据受到预定的处理(如降噪),并且通过在该处理之后对音频数据进行D/A转换处理和放大处理以及提供给扬声器908来进行音频输出。The audio signal processing unit 907 subjects the audio data to predetermined processing such as noise reduction, and performs audio output by performing D/A conversion processing and amplification processing on the audio data after the processing and supplying to the speaker 908 .

外部接口单元909是待连接到外部设备或网络的接口,并且对例如视频数据或音频数据进行数据发送和接收。The external interface unit 909 is an interface to be connected to an external device or a network, and performs data transmission and reception of, for example, video data or audio data.

用户接口单元911连接到控制单元910。用户接口单元911被配置有操作开关或远程控制信号接收器等,并且根据用户操作将操作信号提供给控制单元910。The user interface unit 911 is connected to the control unit 910. The user interface unit 911 is configured with an operation switch or a remote control signal receiver or the like, and supplies an operation signal to the control unit 910 according to a user operation.

通过使用CPU(中央处理单元)、存储器等来配置控制单元910。存储器存储待被CPU执行的程序,和对于CPU执行处理所必需的各种数据、EPG数据、经由网络所获得的数据等。存储在存储器中的程序在预定定时(例如在启动电视设备90时)被CPU读出并且被执行。CPU控制每个部件,以使得电视设备90根据用户操作、通过执行程序来工作。The control unit 910 is configured using a CPU (Central Processing Unit), a memory, and the like. The memory stores programs to be executed by the CPU, various data necessary for the CPU to execute processing, EPG data, data obtained via a network, and the like. The programs stored in the memory are read out and executed by the CPU at a predetermined timing (for example, when the television device 90 is activated). The CPU controls each component so that the television device 90 operates by executing the programs according to user operations.

注意,对于电视设备90,总线912被设置成连接调谐器902、解复用器903、视频信号处理单元905、音频信号处理单元907、外部接口单元909和控制单元910。Note that, with the television apparatus 90 , the bus 912 is provided to connect the tuner 902 , the demultiplexer 903 , the video signal processing unit 905 , the audio signal processing unit 907 , the external interface unit 909 , and the control unit 910 .

对于如此配置的电视设备,本申请的图像解码装置的功能(图像解码方法)被设置给解码器904。因此,即使在广播电台侧处在图像编码处理中进行了处理来减少用于发送量化参数所必需的编码的量,电视装置也可以正确地恢复量化参数并且生成经解码的图像。With the television apparatus thus configured, the function of the image decoding device (image decoding method) of the present application is provided to the decoder 904. Therefore, even if processing is performed in the image encoding process on the broadcast station side to reduce the amount of encoding required for transmitting the quantization parameter, the television apparatus can correctly restore the quantization parameter and generate a decoded image.

图31示例性地示出了本技术被应用的蜂窝电话的示意性配置。蜂窝电话92具有通信单元922、音频编解码器923、相机单元926、图像处理单元927、多路分离单元928、记录再现单元929、显示单元930和控制单元931。这些通过总线933彼此连接。FIG31 exemplarily shows a schematic configuration of a cellular phone to which the present technology is applied. The cellular phone 92 includes a communication unit 922, an audio codec 923, a camera unit 926, an image processing unit 927, a demultiplexing unit 928, a recording and reproduction unit 929, a display unit 930, and a control unit 931. These are connected to each other via a bus 933.

此外,天线921连接到通信单元922,而扬声器924和麦克风925连接到音频编解码器923。此外,操作单元932连接到控制单元931。Furthermore, the antenna 921 is connected to the communication unit 922, and the speaker 924 and the microphone 925 are connected to the audio codec 923. Furthermore, an operation unit 932 is connected to the control unit 931.

蜂窝电话92执行各种操作,例如以各种模式(如音频呼叫模式或数据通信模式)对音频信号进行发送和接收、对电子邮件和图像数据进行发送和接收、图像拍摄、数据记录等。The cellular phone 92 performs various operations such as transmission and reception of audio signals in various modes such as an audio call mode or a data communication mode, transmission and reception of electronic mail and image data, image capturing, data recording, and the like.

在音频呼叫模式中,麦克风925处所生成的音频信号被转换成音频数据并和音频编解码器923处的数据压缩并且被提供给通信单元922。通信单元922对音频数据进行解调处理并且对音频数据进行转换处理以生成传输信号。此外,通信单元922将传输信号提供给天线921,以使得被传输到未示出的基站。此外,通信单元922对天线921处所接收的接收信号进行放大、频率转换处理和解调处理,并且将所获得的音频数据提供给音频编解码器923。音频编解码器923对音频数据进行数据解压缩并且转换成模拟音频信号并且输出到扬声器924。In audio call mode, the audio signal generated by the microphone 925 is converted into audio data and compressed with data by the audio codec 923, and then provided to the communication unit 922. The communication unit 922 demodulates the audio data and converts the audio data to generate a transmission signal. In addition, the communication unit 922 provides the transmission signal to the antenna 921 for transmission to a base station (not shown). In addition, the communication unit 922 amplifies, frequency converts, and demodulates the received signal received by the antenna 921, and provides the obtained audio data to the audio codec 923. The audio codec 923 decompresses the audio data, converts it into an analog audio signal, and outputs it to the speaker 924.

此外,在数据通信模式中,在进行电子邮件传输的情况下,控制单元931接收通过对操作单元932的操作而输入的文本数据并且将所输入的文本显示到显示单元930。此外,控制单元931基于操作单元932处的用户指令来生成电子邮件数据并且提供给通信单元922。通信单元922对电子邮件数据进行调制处理、频率转换处理等,并且由天线921来发送所获得的发送信号。此外,通信单元922对用天线921所接收的接收信号进行放大、频率转换处理和解调处理,并且恢复电子邮件数据。该电子邮件数据被提供给显示单元930以显示电子邮件的内容。Furthermore, in data communication mode, when performing email transmission, the control unit 931 receives text data input by operating the operation unit 932 and displays the input text on the display unit 930. Furthermore, the control unit 931 generates email data based on user instructions at the operation unit 932 and provides it to the communication unit 922. The communication unit 922 performs modulation processing, frequency conversion processing, and the like on the email data, and transmits the resulting transmission signal via the antenna 921. Furthermore, the communication unit 922 amplifies, frequency converts, and demodulates the received signal received by the antenna 921, and recovers the email data. This email data is provided to the display unit 930 to display the contents of the email.

注意,蜂窝电话92可以在记录/再现单元929中的存储介质中存储所接收的电子邮件数据。存储介质是可读/可写的任何存储介质。例如,存储介质为如RAM或内置闪存的半导体存储器,如硬盘、磁盘、MO盘、光盘、USB存储器、存储卡的可移动介质等。Note that the cellular phone 92 can store received e-mail data in a storage medium in the recording/reproducing unit 929. The storage medium is any readable/writable storage medium. For example, the storage medium is a semiconductor memory such as RAM or built-in flash memory, a removable medium such as a hard disk, a magnetic disk, an MO disk, an optical disk, a USB memory, a memory card, or the like.

在图像数据以数据通信模式被发射的情况下,相机单元926处所生成的图像数据被提供给图像处理单元927。图像处理单元927对图像数据进行编码处理并且生成流信息。In the case where image data is transmitted in the data communication mode, the image data generated at the camera unit 926 is supplied to the image processing unit 927. The image processing unit 927 performs encoding processing on the image data and generates stream information.

多路分离单元928借助于预定格式对图像处理单元927处所生成的流信息和由音频编解码器923提供的音频数据进行多路复用并且将其提供给通信单元922。通信单元922对经多路复用的数据进行解调处理、频率转换处理等,并且由天线921发送所获得的发送信号。此外,通信单元922对天线921接收的接收信号进行放大、频率转换处理、解调处理等,并且恢复经多路复用的数据。该经多路复用的数据被提供给多路分离单元928。多路分离单元928对经多路复用的数据进行分离,并且将流信息提供给图像处理单元927且将音频数据提供给音频编解码器923。The demultiplexing unit 928 multiplexes the stream information generated by the image processing unit 927 and the audio data provided by the audio codec 923 according to a predetermined format and supplies the multiplexed data to the communication unit 922. The communication unit 922 performs demodulation processing, frequency conversion processing, and the like on the multiplexed data, and transmits the resulting transmission signal via the antenna 921. Furthermore, the communication unit 922 performs amplification, frequency conversion processing, demodulation processing, and the like on the received signal received by the antenna 921, and restores the multiplexed data. This multiplexed data is supplied to the demultiplexing unit 928. The demultiplexing unit 928 demultiplexes the multiplexed data, supplies the stream information to the image processing unit 927, and supplies the audio data to the audio codec 923.

图像处理单元927对经编码的数据进行解码处理,并且生成图像数据。该图像数据被提供给显示单元930以显示所接收的图像。音频编解码器923将音频数据转换成模拟音频信号并且将其提供给扬声器924以输出所接收的音频。The image processing unit 927 decodes the encoded data and generates image data. The image data is provided to the display unit 930 to display the received image. The audio codec 923 converts the audio data into an analog audio signal and provides it to the speaker 924 to output the received audio.

关于如此配置的蜂窝电话,图像处理单元927具有本技术的功能。因此,例如在对图像进行编码处理和发送时可以减少数据。此外,在对所接收的图像进行解码处理时,可以恢复量化参数并且可以生成经解码的图像。In the cellular phone thus configured, the image processing unit 927 includes the functions of the present technology. Therefore, for example, when encoding and transmitting images, data can be reduced. Furthermore, when decoding received images, quantization parameters can be restored, and decoded images can be generated.

图32示例性地示出了本技术被应用于的记录再现装置的示意性配置。记录/再现装置94将例如所接收的广播节目的音频数据和视频数据记录到记录介质,并且根据用户指令的定时将所接收的数据提供给用户。此外,进行下述布置,所述布置是记录/再现装置94可以获取例如来自其他装置的音频数据和视频数据,以便记录到记录介质。此外,进行下述布置,所述布置是记录/再现装置94可以通过对记录介质中所记录的音频数据和视频数据进行解码以在监视器装置上输出图像显示和音频输出。FIG32 exemplarily illustrates a schematic configuration of a recording and playback device to which the present technology is applied. The recording/playback device 94 records, for example, the audio and video data of a received broadcast program onto a recording medium, and provides the received data to the user according to the timing of a user instruction. Furthermore, an arrangement is provided such that the recording/playback device 94 can acquire, for example, audio and video data from another device for recording onto a recording medium. Furthermore, an arrangement is provided such that the recording/playback device 94 can decode the audio and video data recorded on the recording medium to output an image display and audio output on a monitor device.

记录/再现装置94具有调谐器941、外部接口单元942、编码器943、HDD(硬盘驱动器)单元944、盘驱动器945、选择器946、解码器947、OSD(屏幕显示器)单元948、控制单元949和用户接口单元950。The recording/reproducing device 94 has a tuner 941, an external interface unit 942, an encoder 943, an HDD (hard disk drive) unit 944, a disk drive 945, a selector 946, a decoder 947, an OSD (on screen display) unit 948, a control unit 949 and a user interface unit 950.

调谐器941从未示出的天线所接收的广播信号中选择想要的频道的站。调谐器941将通过对想要的频道的接收信号进行解调而获得的经编码的流输出到选择器946。The tuner 941 selects a station of a desired channel from a broadcast signal received by an antenna (not shown), and outputs an encoded stream obtained by demodulating the received signal of the desired channel to the selector 946 .

外部接口单元942被配置有IEEE1394接口、网络接口单元、USB接口、闪存接口等中的至少任一个。外部接口单元942是连接到外部装置、网络、存储卡等的接口,并且对例如视频数据和音频数据进行数据接收以记录。The external interface unit 942 is configured with at least any one of an IEEE1394 interface, a network interface unit, a USB interface, a flash memory interface, etc. The external interface unit 942 is an interface connected to an external device, a network, a memory card, etc., and receives data such as video data and audio data for recording.

编码器943在由外部接口单元942提供的视频数据和音频数据不以预定格式被编码的情况下进行编码处理并且将流信息输出到选择器946。The encoder 943 performs encoding processing if the video data and the audio data supplied from the external interface unit 942 are not encoded in a predetermined format and outputs stream information to the selector 946 .

HDD单元944在内置硬盘中记录如视频或音频、各种节目、其他数据等的内容数据,并且还在再现时从硬盘中读出这些内容数据。The HDD unit 944 records content data such as video or audio, various programs, other data, and the like in a built-in hard disk, and also reads out the content data from the hard disk at the time of reproduction.

磁盘驱动器945将信号记录或再现到所安装的光盘。光盘例如是DVD盘(DVD-视频、DVD-RAM、DVD-R、DVD-RW、DVD+R、DVD+RW等)或蓝光盘等。The disk drive 945 records or reproduces signals on a mounted optical disk, such as a DVD disk (DVD-Video, DVD-RAM, DVD-R, DVD-RW, DVD+R, DVD+RW, etc.) or a Blu-ray disk.

选择器946在记录视频和音频时从调谐器941或者编码器943选择流,并且提供给HDD单元944和盘驱动器945中的任一个。此外,选择器946在再现视频和音频时将由HDD单元944或盘驱动器945输出的流提供给解码器947。The selector 946 selects a stream from the tuner 941 or the encoder 943 when recording video and audio, and supplies it to either the HDD unit 944 or the disk drive 945. In addition, the selector 946 supplies the stream output by the HDD unit 944 or the disk drive 945 to the decoder 947 when reproducing video and audio.

解码器947对流进行解码处理。解码器947通过进行解码处理将所生成的视频数据提供给OSD单元948。此外,解码器947通过进行解码处理输出所生成的音频数据。The decoder 947 performs decoding processing on the stream. The decoder 947 supplies the generated video data by performing the decoding processing to the OSD unit 948. In addition, the decoder 947 outputs the generated audio data by performing the decoding processing.

OSD单元948生成视频数据来显示如用于对项目进行选择的菜单画面等并将其叠加到由解码器947输出的视频数据上,并且输出。The OSD unit 948 generates video data to display, for example, a menu screen for selecting an item, and superimposes it on the video data output by the decoder 947 , and outputs it.

用户接口单元950连接到控制单元949。用户接口单元950被配置有操作开关或遥控信号接收器等并且根据用户操作将操作信号提供给控制单元949。The user interface unit 950 is connected to the control unit 949. The user interface unit 950 is configured with an operation switch, a remote control signal receiver, or the like and supplies an operation signal to the control unit 949 according to a user operation.

通过使用CPU或存储器来配置控制单元949。存储器存储由CPU执行的程序和CPU进行处理时所必需的各种数据。存储在存储器中的程序在预定定时(如在启动记录/再现装置94时)由CPU读出并执行。CPU控制每个部件使得记录/再现装置94根据用户操作、通过执行程序来工作。The control unit 949 is configured using a CPU or a memory. The memory stores programs executed by the CPU and various data necessary for the CPU to perform processing. The program stored in the memory is read out and executed by the CPU at a predetermined timing (such as when the recording/reproducing device 94 is activated). The CPU controls each component so that the recording/reproducing device 94 operates by executing the program according to user operations.

对于如此配置的记录/再现装置,本申请的功能被设置给编码器943。因此,例如在对图像进行编码处理和记录时可以减少数据量。此外,在对所记录的图像进行解码处理时,可以恢复量化参数并且可以生成经解码的图像。In the recording/reproducing apparatus thus configured, the functions of the present application are provided to the encoder 943. Therefore, for example, when encoding and recording an image, the amount of data can be reduced. Furthermore, when decoding the recorded image, the quantization parameter can be restored, and a decoded image can be generated.

图33示例性地示出了本技术被应用的成像设备的示意性配置。成像设备96使对象成像,以便在显示单元上显示对象的图像,并且将其记录在记录介质中作为图像数据。33 exemplarily shows a schematic configuration of an imaging device to which the present technology is applied. The imaging device 96 images a subject to display an image of the subject on a display unit and to record it in a recording medium as image data.

成像设备96具有光学块961、成像单元962、相机信号处理单元963、图像数据处理单元964、显示单元965、外部接口单元966、存储器单元967、介质驱动器968、OSD单元969和控制单元970。此外,用户接口单元971连接到控制单元970。此外,图像数据处理单元964与外部接口单元966、存储器单元967、介质驱动器968、OSD单元969和控制单元970等经由总线972相连接。The imaging device 96 includes an optical block 961, an imaging unit 962, a camera signal processing unit 963, an image data processing unit 964, a display unit 965, an external interface unit 966, a memory unit 967, a media drive 968, an OSD unit 969, and a control unit 970. In addition, a user interface unit 971 is connected to the control unit 970. In addition, the image data processing unit 964 is connected to the external interface unit 966, the memory unit 967, the media drive 968, the OSD unit 969, the control unit 970, and the like via a bus 972.

光学块961被配置有聚焦透镜、薄膜机制等。光学块961使对象的光学图像在成像单元962的成像面上成像。成像单元962通过使用CCD或CMOS图像传感器被配置,并且与光学图像对应的电信号通过光电转换而生成并被提供给相机信号处理单元963。The optical block 961 is configured with a focusing lens, a film mechanism, etc. The optical block 961 forms an optical image of a subject on an imaging surface of the imaging unit 962. The imaging unit 962 is configured by using a CCD or CMOS image sensor, and an electric signal corresponding to the optical image is generated by photoelectric conversion and supplied to the camera signal processing unit 963.

相机信号处理单元963对由成像单元962提供的电信号进行各种相机信号处理,例如KNEE校正和格玛校正、颜色校正等。相机信号处理单元963将相机处处理之后的图像数据提供给图像数据处理单元964。The camera signal processing unit 963 performs various camera signal processing on the electrical signal provided by the imaging unit 962 , such as KNEE correction, Gamma correction, color correction, etc. The camera signal processing unit 963 provides the image data processed by the camera to the image data processing unit 964 .

图像数据处理单元964对由相机信号处理单元963提供的图像数据进行编码处理。图像数据处理单元964将通过进行编码处理所生成的流信息提供给外部接口单元966和介质驱动器968。此外,图像数据处理单元964对由外部接口单元966和介质驱动器968提供的流信息进行解码处理。图像数据处理单元964通过进行解码处理将所生成的图像数据提供给显示单元965。此外,图像数据处理单元964进行处理以将由相机信号处理单元963提供的图像数据提供给显示单元965,并且进行处理以将从OSD单元969获取的用于显示的数据叠加到图像数据上并将其提供给显示单元965。The image data processing unit 964 performs encoding processing on the image data supplied by the camera signal processing unit 963. The image data processing unit 964 supplies the stream information generated by the encoding processing to the external interface unit 966 and the media drive 968. Furthermore, the image data processing unit 964 performs decoding processing on the stream information supplied by the external interface unit 966 and the media drive 968. The image data processing unit 964 supplies the generated image data by performing the decoding processing to the display unit 965. Furthermore, the image data processing unit 964 performs processing to supply the image data supplied by the camera signal processing unit 963 to the display unit 965, and performs processing to superimpose the data for display acquired from the OSD unit 969 on the image data and supplies it to the display unit 965.

OSD单元969生成用于显示的数据,如菜单画面或由符号、文本或形状形成的图标,并且将其输出到图像数据处理单元964。The OSD unit 969 generates data for display, such as a menu screen or an icon formed of a symbol, text, or shape, and outputs it to the image data processing unit 964 .

例如,外部接口单元966被配置有USB输入和输出端子,并且在对图像进行打印的情况下,连接到打印机。此外,根据需要将驱动器连接到外部接口单元966,视情况安装如磁盘、光盘等的可移动介质,并且根据需要安装从可移动介质中读出的程序。此外,外部接口单元966具有连接到预定网络(如LAN或互联网)的网络接口。例如,根据来自用户接口单元971指令,控制单元970从存储器单元967读出流信息,以便经网络从自外部接口单元966提供给所连接的其他装置。此外,控制单元970通过外部接口单元966、经由网络获取由其他装置提供的流信息和图像数据,以便将其提供给图像数据处理单元964。For example, the external interface unit 966 is configured with USB input and output terminals and, in the case of printing an image, is connected to a printer. Furthermore, a drive is connected to the external interface unit 966 as needed, removable media such as a magnetic disk or optical disk is installed as appropriate, and programs read from the removable media are installed as needed. Furthermore, the external interface unit 966 has a network interface for connecting to a predetermined network (such as a LAN or the Internet). For example, based on instructions from the user interface unit 971, the control unit 970 reads stream information from the memory unit 967 so that it can be provided to other connected devices from the external interface unit 966 via the network. Furthermore, the control unit 970 obtains stream information and image data provided by other devices via the network through the external interface unit 966 and provides them to the image data processing unit 964.

例如,至于由介质驱动器968驱动的记录介质,可以使用可读且可写的任何可移动介质,例如磁盘、MO盘、光盘和半导体存储器。此外,关于记录介质,可移动介质的种类也是可选的,并且可以是磁带装置,可以是磁盘或者可以是存储卡。当然,这可以是非接触式IC卡等。For example, as for the recording medium driven by the media drive 968, any removable medium that is readable and writable, such as a magnetic disk, an MO disk, an optical disk, and a semiconductor memory, can be used. In addition, regarding the recording medium, the type of removable medium is also optional, and it can be a magnetic tape device, a magnetic disk, or a memory card. Of course, this can also be a contactless IC card or the like.

此外,进行下述布置:介质驱动器968和记录介质被组合并且例如被配置有非便携式存储介质,如内置型硬盘驱动器或SSD(固态驱动器)等。Furthermore, an arrangement is made in which the media drive 968 and the recording medium are combined and configured with, for example, a non-portable storage medium such as a built-in type hard disk drive or an SSD (Solid State Drive) or the like.

使用CPU存储器来配置控制单元970。存储器存储待被CPU存储的程序,和用于CPU进行处理所必需的各种类型的数据。存储在存储器中的程序在预定定时(如在启动成像装置96时)被CPU读出并且执行。CPU控制每个部件,以使得通过执行程序对成像装置96的操作与用户操作相对应。The control unit 970 is configured using a CPU memory. The memory stores programs to be stored by the CPU and various types of data necessary for the CPU to perform processing. The program stored in the memory is read out and executed by the CPU at a predetermined timing (such as when the imaging device 96 is activated). The CPU controls each component so that the operation of the imaging device 96 by executing the program corresponds to the user's operation.

对于如此配置的成像装置,图像数据处理单元964被设置有本申请的功能。因此,在编码和在存储器单元967或记录介质中记录所成像的图像时,可以减少待记录的数据量。此外,在对所记录的图像进行解码处理时,可以恢复量化参数并且可以生成经解码的图像。With this configuration, the image data processing unit 964 is equipped with the functions of the present invention. Therefore, when encoding and recording the imaged image in the memory unit 967 or a recording medium, the amount of data to be recorded can be reduced. Furthermore, when decoding the recorded image, the quantization parameter can be restored, and a decoded image can be generated.

此外,本技术不被解释为限制于上述实施方式。实施方式被示例性地公开,并且清楚理解的是,本领域技术人员能够在不脱离本技术的本质的情况下完成对实施方式的变型和替代。换言之,权利要求应该被考虑成确定本技术的本质。Furthermore, the present technology is not to be construed as being limited to the above-described embodiments. The embodiments are disclosed illustratively, and it is clearly understood that those skilled in the art can make variations and substitutions to the embodiments without departing from the essence of the present technology. In other words, the claims should be considered to determine the essence of the present technology.

此外,根据本技术的图像解码装置和图像编码装置可以假定下述配置。Furthermore, the image decoding device and the image encoding device according to the present technology can assume the following configurations.

(1)一种图像解码装置,包括:(1) An image decoding device comprising:

信息获取单元,被配置成将与待解码的块在空间上或时间上相邻的经解码的块的量化参数作为选择候选,并且从流信息中提取用于指示关于从选择候选中选择的预测量化参数的差的差信息;以及an information acquisition unit configured to take quantization parameters of decoded blocks spatially or temporally adjacent to the block to be decoded as selection candidates, and extract difference information indicating a difference with respect to predicted quantization parameters selected from the selection candidates from the stream information; and

量化参数计算单元,被配置成根据预测量化参数和差信息来计算待解码的块的量化参数。The quantization parameter calculation unit is configured to calculate the quantization parameter of the block to be decoded according to the predicted quantization parameter and the difference information.

(2)根据(1)所述的图像解码装置,其中,量化参数计算单元在相邻的经解码的块为预定顺序的情况下,将按照由流信息中包括的标识信息所指示的顺序的量化参数设定成预测量化参数。(2) The image decoding device according to (1), wherein the quantization parameter calculation unit sets the quantization parameters in the order indicated by the identification information included in the stream information as the predicted quantization parameters when adjacent decoded blocks are in a predetermined order.

(3)根据(1)所述的图像解码装置,其中,量化参数计算单元按照提前设定的顺序对选择候选进行确定,并且基于确定结果来设定预测量化参数。(3) The image decoding device according to (1), wherein the quantization parameter calculation unit determines the selection candidates in an order set in advance, and sets the predicted quantization parameter based on the determination result.

(4)根据(1)所述的图像解码装置,其中,量化参数计算单元基于流信息中包括的确定信息来选择进行下述处理中的一个处理或另一个处理:将按照由流信息中包括的标识信息所指示的顺序的量化参数设定成预测量化参数的处理,以及按照提前设定的顺序对选择候选进行确定并且基于确定结果来设定预测量化参数的处理。(4) An image decoding device according to (1), wherein the quantization parameter calculation unit selects one or the other of the following processes based on the determination information included in the stream information: a process of setting the quantization parameters in the order indicated by the identification information included in the stream information as predicted quantization parameters, and a process of determining the selection candidates in the order set in advance and setting the predicted quantization parameters based on the determination result.

(5)根据(1)至(4)中任一项所述的图像解码装置,其中,量化参数计算单元通过从相邻的经解码的块中排除至少其中量化参数是冗余的块或其中未进行使用量化参数的逆量化的块,来获取选择候选。(5) An image decoding device according to any one of (1) to (4), wherein the quantization parameter calculation unit obtains selection candidates by excluding at least a block in which the quantization parameter is redundant or a block in which inverse quantization using the quantization parameter is not performed from adjacent decoded blocks.

(6)根据(1)至(5)中任一项所述的图像解码装置,其中,在不存在选择候选的情况下,量化参数计算单元将片中初始值的量化参数作为预测量化参数。(6) The image decoding device according to any one of (1) to (5), wherein, when there is no selection candidate, the quantization parameter calculation unit uses the quantization parameter of the initial value in the slice as the predicted quantization parameter.

(7)根据(1)至(6)中任一项所述的图像解码装置,其中,量化参数计算单元将最近更新的量化参数包括在所述选择候选中。(7) The image decoding device according to any one of (1) to (6), wherein the quantization parameter calculation unit includes a most recently updated quantization parameter in the selection candidates.

(8)根据(1)至(7)中任一项所述的图像解码装置,其中,量化参数计算单元通过将差信息指示的差添加到预测量化参数来计算待解码的块的量化参数。(8) The image decoding device according to any one of (1) to (7), wherein the quantization parameter calculation unit calculates the quantization parameter of the block to be decoded by adding the difference indicated by the difference information to the predicted quantization parameter.

(9)一种图像解码方法,包括:(9) An image decoding method comprising:

将与待解码的块在空间上或时间上相邻的经解码的块的量化参数作为选择候选,并且从流信息中提取用于指示关于从所述选择候选中选择的预测量化参数的差的差信息的处理;以及A process of taking quantization parameters of decoded blocks spatially or temporally adjacent to a block to be decoded as selection candidates and extracting difference information indicating a difference between predicted quantization parameters selected from the selection candidates from stream information; and

根据所述预测量化参数和所述差信息来计算所述待解码的块的量化参数的处理。The process of calculating the quantization parameter of the block to be decoded according to the predicted quantization parameter and the difference information.

(10)一种图像编码装置,包括:(10) An image encoding device comprising:

控制单元,被配置成针对待编码的块设定量化参数;a control unit configured to set a quantization parameter for a block to be encoded;

信息生成单元,被配置成将与待编码的块在空间上或时间上相邻的经编码的块的量化参数作为选择候选,根据所设定的量化参数从选择候选中选择预测量化参数,并且生成用于指示预测量化参数与所设定的量化参数之的差信息;以及an information generating unit configured to use quantization parameters of encoded blocks spatially or temporally adjacent to the block to be encoded as selection candidates, select a predicted quantization parameter from the selection candidates according to the set quantization parameter, and generate difference information indicating a difference between the predicted quantization parameter and the set quantization parameter; and

编码单元,被配置成将差信息包括在通过使用所设定的量化参数对待编码的块进行编码处理而生成的流信息中。The encoding unit is configured to include the difference information in stream information generated by performing an encoding process on a block to be encoded using the set quantization parameter.

(11)根据(10)所述的图像编码装置,其中,信息生成单元选择对于所设定的量化参数的差为最小的量化参数作为预测量化参数。(11) The image encoding device according to (10), wherein the information generating unit selects a quantization parameter with a minimum difference with respect to the set quantization parameter as the predicted quantization parameter.

(12)根据(11)所述的图像编码装置,其中,信息生成单元在相邻的经编码的块为预定顺序的情况下,生成用于指示与所选择的量化参数对应的块的顺序的标识信息;(12) The image encoding device according to (11), wherein the information generating unit generates identification information indicating the order of blocks corresponding to the selected quantization parameter when adjacent encoded blocks are in a predetermined order;

并且其中,编码单元将标识信息包括在流信息中。And wherein the encoding unit includes the identification information in the stream information.

(13)根据(12)所述的图像编码装置,其中,信息生成单元采取如下排列顺序:其中,优先权被赋予与左侧相邻的经编码的块、与上方相邻的经编码的块和在时间上相邻的经编码的块中的一个块。(13) The image encoding device according to (12), wherein the information generation unit adopts the following arrangement order: wherein priority is given to one block among the encoded block adjacent to the left, the encoded block adjacent to the top, and the encoded block adjacent in time.

(14)根据(12)或(13)中任一项所述的图像编码装置,其中,信息生成单元能够切换相邻的经编码的块的排列顺序。(14) The image encoding device according to any one of (12) or (13), wherein the information generating unit is capable of switching the arrangement order of adjacent encoded blocks.

(15)根据(10)所述的图像编码装置,其中,信息生成单元按照提前设定的顺序对选择候选进行确定,并且基于确定结果来选择所述预测量化参数。(15) The image encoding device according to (10), wherein the information generating unit determines the selection candidates in an order set in advance, and selects the predicted quantization parameter based on a determination result.

(16)根据(10)所述的图像编码装置,其中,信息生成单元能够在下述处理之间进行选择并且生成用于指示所选择的处理的确定信息:选择对于所设定的量化参数的差为最小的量化参数作为预测量化参数的处理;以及按照提前设定的顺序对选择候选进行确定并且基于确定结果来选择预测量化参数的处理;(16) The image encoding device according to (10), wherein the information generating unit is capable of selecting between the following processes and generating determination information indicating the selected process: a process of selecting a quantization parameter having a minimum difference with respect to the set quantization parameter as the predicted quantization parameter; and a process of determining selection candidates in an order set in advance and selecting the predicted quantization parameter based on the determination result.

并且其中,编码单元将确定信息包括在流信息中。And wherein the encoding unit includes the determination information in the stream information.

(17)根据(10)至(16)中任一项所述的图像编码装置,其中,信息生成单元通过从相邻的经编码的块中排除至少其中量化参数为冗余的块或其中不进行使用量化参数的量化的块,来获取选择候选。(17) An image encoding device according to any one of (10) to (16), wherein the information generation unit obtains selection candidates by excluding at least a block in which a quantization parameter is redundant or a block in which quantization using the quantization parameter is not performed from adjacent encoded blocks.

(18)根据(10)至(17)中任一项所述的图像编码装置,其中,在不存在选择候选的情况下,信息生成单元生成用于指示片中初始值的量化参数与所设定的量化参数之差的差信息。(18) An image encoding device according to any one of (10) to (17), wherein, when there is no selection candidate, the information generation unit generates difference information indicating the difference between the quantization parameter of the initial value in the slice and the set quantization parameter.

(19)根据(10)至(18)中任一项所述的图像编码装置,其中,信息生成单元将最近更新的量化参数包括在选择候选中。(19) The image encoding device according to any one of (10) to (18), wherein the information generating unit includes a most recently updated quantization parameter in the selection candidates.

(20)一种图像编码方法,包括:(20) An image encoding method comprising:

针对待编码的块设定量化参数的处理;A process for setting quantization parameters for a block to be encoded;

将与待编码的块在空间上或时间上相邻的经编码的块的量化参数作为选择候选,根据所设定的量化参数从所述选择候选中选择预测量化参数,并且生成用于指示所述预测量化参数与所设定的量化参数之差的差信息的处理;以及A process of selecting quantization parameters of coded blocks spatially or temporally adjacent to the block to be coded as selection candidates, selecting a predicted quantization parameter from the selection candidates according to the set quantization parameter, and generating difference information indicating a difference between the predicted quantization parameter and the set quantization parameter; and

将所述差信息包括在通过使用所设定的量化参数对所述待编码的块进行编码处理而生成的流信息中的处理。A process of including the difference information in stream information generated by performing an encoding process on the block to be encoded using the set quantization parameter.

工业适用性Industrial Applicability

关于图像解码装置、图像编码装置及其方法,根据本技术,将与待编码的块在空间上或时间上相邻的经编码的块的量化参数作为选择候选,并且根据设定的量化参数从选择候选中选择预测量化参数。用于指示预测量化参数与针对待编码的块设定的量化参数之差的差信息被生成。因此,可以防止量化参数的差变成大的值,并且可以提高量化参数的编码效率。此外,在对其中包括有差信息的流信息进行解码的情况下,从与待解码的块在空间上或时间上相邻的经解码的块的量化参数中选择预测量化参数,并且根据预测量化参数和差信息计算待解码的块的量化参数。因此,即使流信息在量化参数的编码效率提高的情况下生成,在对该流信息进行解码的情况下,也可以基于预测量化参数和差信息来恢复量化参数,并且也可以正确地进行解码处理。因此,本技术适合于经由网络介质(如卫星广播、电缆TV、互联网、蜂窝电话等)发射/接收通过以块为单位进行编码而获得的流信息的设备和在存储介质如光盘、磁盘闪存等上实现本技术的设备。According to the present technology, an image decoding device, an image encoding device, and a method thereof use quantization parameters of previously encoded blocks spatially or temporally adjacent to a block to be encoded as selection candidates, and select a predicted quantization parameter from among the selection candidates based on the set quantization parameter. Difference information indicating the difference between the predicted quantization parameter and the quantization parameter set for the block to be encoded is generated. This prevents the difference in quantization parameters from becoming excessively large, and improves quantization parameter encoding efficiency. Furthermore, when decoding stream information including difference information, a predicted quantization parameter is selected from the quantization parameters of previously decoded blocks spatially or temporally adjacent to the block to be decoded, and the quantization parameter for the block to be decoded is calculated based on the predicted quantization parameter and the difference information. Therefore, even if stream information is generated with improved quantization parameter encoding efficiency, when decoding the stream information, the quantization parameter can be restored based on the predicted quantization parameter and the difference information, allowing for accurate decoding. Therefore, the present technology is suitable for devices that transmit/receive stream information obtained by encoding in block units via network media (such as satellite broadcasting, cable TV, the Internet, cellular phones, etc.) and devices that implement the present technology on storage media such as optical disks, disk flash memories, etc.

附图标记列表Reference Signs List

10 图像编码装置10 Image Coding Device

11 A/D转换单元11 A/D conversion unit

12、57 画面重置缓冲器12, 57 screen reset buffer

13 减法单元13 Subtraction Unit

14 正交变换单元14 Orthogonal Transformation Unit

15 量化单元15 Quantization Unit

16 无损编码单元16 lossless coding units

17、51 存储缓冲器17, 51 Storage Buffer

18 速率控制单元18 Rate Control Unit

19 信息生成单元19 Information Generation Unit

21、53 逆量化单元21, 53 Inverse quantization unit

22、54 逆正交变换单元22, 54 Inverse orthogonal transform unit

23、55 加法单元23, 55 Addition unit

24、56 去块滤波器24, 56 Deblocking filter

26、61 帧存储器26, 61 frame memory

31、71 帧内预测单元31, 71 intra prediction unit

32 运动预测/补偿单元32 Motion prediction/compensation units

33 预测图像/最佳模式选择单元33 Prediction image/optimal mode selection unit

50 图像解码装置50 Image decoding device

52 无损解码单元52 Lossless Decoding Unit

58 D/A转换单元58 D/A conversion units

59 量化参数计算单元59 Quantization parameter calculation unit

62、73 选择器62, 73 selectors

72 运动补偿单元72 Motion Compensation Unit

80 计算机装置80 Computer devices

90 电视设备90 TV equipment

92 蜂窝电话92 cellular phones

94 记录/再现装置94 Recording/reproducing device

96 成像设备96 Imaging Equipment

191 量化参数存储器单元191 Quantization parameter memory unit

192 差计算单元192 Difference calculation unit

591 计算单元591 computing units

592 量化参数存储器单元592 quantization parameter memory cells

Claims (19)

1.一种图像解码方法,包括:1. An image decoding method, comprising: 如果与当前块左侧相邻的块的量化参数和与所述当前块上方相邻的块的量化参数能够被使用,则设置从与所述左侧相邻的块的量化参数和与所述上方相邻的块的量化参数的平均值得到的预测量化参数;If the quantization parameters of the block adjacent to the left of the current block and the quantization parameters of the block adjacent above the current block are available, then set the predicted quantization parameter obtained from the average of the quantization parameters of the block adjacent to the left and the block adjacent above. 如果与所述左侧相邻的块的量化参数和与所述上方相邻的块的量化参数不能够被使用,则设置从片的量化参数的初始值得到的预测量化参数;以及If the quantization parameters of the block adjacent to the left and the block adjacent to the top cannot be used, then set the predicted quantization parameters obtained from the initial values of the slice's quantization parameters; and 基于从所述预测量化参数和差得到的所述当前块的量化参数来进行逆量化,所述差是从比特流得到的、所述当前块的量化参数与所述预测量化参数之间的差。Inverse quantization is performed based on the quantization parameters of the current block obtained from the predicted quantization parameters and the difference between the quantization parameters of the current block and the predicted quantization parameters, which are obtained from the bit stream. 2.根据权利要求1所述的图像解码方法,其中,当与所述左侧相邻的块和与所述上方相邻的块不能够被使用时,得到在前块的量化参数,以设置所述预测量化参数。2. The image decoding method according to claim 1, wherein when the block adjacent to the left and the block adjacent to the top cannot be used, the quantization parameters of the preceding block are obtained to set the prediction quantization parameters. 3.根据权利要求1所述的图像解码方法,其中,所述块是编码单元,并且所述编码单元具有由层次深度定义的层次结构。3. The image decoding method according to claim 1, wherein the block is an encoding unit, and the encoding unit has a hierarchical structure defined by the hierarchical depth. 4.根据权利要求3所述的图像解码方法,其中,基于所述当前块的量化参数,通过包括在所述编码单元中的变换单元进行所述逆量化。4. The image decoding method according to claim 3, wherein the inverse quantization is performed by a transform unit included in the encoding unit based on the quantization parameters of the current block. 5.一种图像处理设备,包括:5. An image processing apparatus, comprising: 电路,所述电路被配置成:The circuit is configured to: 如果与当前块左侧相邻的块的量化参数和与所述当前块上方相邻的块的量化参数能够被使用,则设置从与所述左侧相邻的块的量化参数和与所述上方相邻的块的量化参数的平均值得到的预测量化参数;If the quantization parameters of the block adjacent to the left of the current block and the quantization parameters of the block adjacent above the current block are available, then set the predicted quantization parameter obtained from the average of the quantization parameters of the block adjacent to the left and the block adjacent above. 如果与所述左侧相邻的块的量化参数和与所述上方相邻的块的量化参数不能够被使用,则设置从片的量化参数的初始值得到的预测量化参数;以及If the quantization parameters of the block adjacent to the left and the block adjacent to the top cannot be used, then set the predicted quantization parameters obtained from the initial values of the slice's quantization parameters; and 基于从所述预测量化参数和差得到的所述当前块的量化参数来进行逆量化,所述差是从比特流得到的、所述当前块的量化参数与所述预测量化参数之间的差。Inverse quantization is performed based on the quantization parameters of the current block obtained from the predicted quantization parameters and the difference between the quantization parameters of the current block and the predicted quantization parameters, which are obtained from the bit stream. 6.根据权利要求5所述的图像处理设备,其中,当与所述左侧相邻的块和与所述上方相邻的块不能够被使用时,得到在前块的量化参数,以设置所述预测量化参数。6. The image processing apparatus according to claim 5, wherein when the block adjacent to the left and the block adjacent to the top cannot be used, the quantization parameters of the preceding block are obtained to set the predictive quantization parameters. 7.根据权利要求5所述的图像处理设备,其中,所述块是编码单元,并且所述编码单元具有由层次深度定义的层次结构。7. The image processing apparatus of claim 5, wherein the block is a coding unit, and the coding unit has a hierarchical structure defined by a hierarchical depth. 8.根据权利要求7所述的图像处理设备,其中,所述电路还被配置成:基于所述当前块的量化参数,通过包括在所述编码单元中的变换单元进行逆量化。8. The image processing apparatus of claim 7, wherein the circuit is further configured to: perform inverse quantization based on the quantization parameters of the current block by means of a transform unit included in the encoding unit. 9.根据权利要求5所述的图像处理设备,其中,所述电路包括视频信号处理电路,9. The image processing apparatus according to claim 5, wherein the circuit includes a video signal processing circuit. 其中,所述电路还被配置成根据所述当前块的量化参数解码所述当前块,并且获取视频数据,以及The circuit is further configured to decode the current block according to the quantization parameters of the current block, and to acquire video data. 其中,所述视频信号处理电路被配置成对所述视频数据进行视频处理。The video signal processing circuit is configured to perform video processing on the video data. 10.根据权利要求9所述的图像处理设备,其中,对所述视频数据进行的所述视频处理包括对所述视频数据的降噪。10. The image processing apparatus according to claim 9, wherein the video processing performed on the video data includes noise reduction of the video data. 11.根据权利要求10所述的图像处理设备,其中,所述电路还包括显示电路,所述显示电路被配置成驱动显示装置以显示所述视频数据。11. The image processing apparatus of claim 10, wherein the circuit further comprises a display circuit configured to drive a display device to display the video data. 12.根据权利要求9所述的图像处理设备,其中,所述电路还包括显示电路,所述显示电路被配置成驱动显示装置以显示所述视频数据。12. The image processing apparatus of claim 9, wherein the circuit further comprises a display circuit configured to drive a display device to display the video data. 13.根据权利要求5所述的图像处理设备,其中,所述电路包括解复用器电路,所述解复用器电路被配置成从所述比特流中提取经编码的视频数据和经编码的音频数据,其中,所述经编码的视频数据包括关于所述当前块的量化参数与所述预测量化参数之间的差的比特流信息。13. The image processing apparatus of claim 5, wherein the circuitry includes a demultiplexer circuitry configured to extract encoded video data and encoded audio data from the bitstream, wherein the encoded video data includes bitstream information about the difference between a quantization parameter of the current block and a predicted quantization parameter. 14.根据权利要求13所述的图像处理设备,其中,所述电路还包括调谐器电路,所述调谐器电路被配置成通过从在天线处接收到的广播波信号中选择期望的频道来进行解调,并且获得包括所述经编码的视频数据和所述经编码的音频数据的比特流。14. The image processing apparatus of claim 13, wherein the circuit further comprises a tuner circuit configured to demodulate by selecting a desired channel from a broadcast signal received at the antenna, and to obtain a bitstream comprising the encoded video data and the encoded audio data. 15.根据权利要求13所述的图像处理设备,其中,所述电路还包括音频信号处理电路,所述音频信号处理电路被配置成对通过解码所述经编码的音频数据而获得的音频数据进行预定处理。15. The image processing apparatus of claim 13, wherein the circuit further comprises an audio signal processing circuit configured to perform predetermined processing on audio data obtained by decoding the encoded audio data. 16.根据权利要求15所述的图像处理设备,其中,所述音频信号处理电路对所述音频数据进行的所述预定处理包括对所述音频数据的降噪。16. The image processing apparatus of claim 15, wherein the predetermined processing performed on the audio data by the audio signal processing circuit includes noise reduction of the audio data. 17.根据权利要求16所述的图像处理设备,其中,所述电路还包括音频编解码器电路,所述音频编解码器电路被配置成将所述音频数据转换为模拟音频信号。17. The image processing apparatus of claim 16, wherein the circuit further comprises an audio codec circuit configured to convert the audio data into an analog audio signal. 18.根据权利要求15所述的图像处理设备,其中,所述电路还包括音频编解码器电路,所述音频编解码器电路被配置成将所述音频数据转换为模拟音频信号。18. The image processing apparatus of claim 15, wherein the circuit further comprises an audio codec circuit configured to convert the audio data into an analog audio signal. 19.一种图像处理设备,包括:19. An image processing apparatus, comprising: 用于如果与当前块左侧相邻的块的量化参数和与所述当前块上方相邻的块的量化参数能够被使用,则设置从与左侧相邻的块的量化参数和与上方相邻的块的量化参数的平均值得到的预测量化参数的装置;An apparatus for setting a predicted quantization parameter obtained from the average of the quantization parameters of the block adjacent to the left and the block adjacent to the top if the quantization parameters of the block adjacent to the left and the block adjacent to the top are available. 用于如果与所述左侧相邻的块的量化参数和与所述上方相邻的块的量化参数不能够被使用,则设置从片的量化参数的初始值得到的预测量化参数的装置;以及A means for setting predicted quantization parameters derived from the initial values of the quantization parameters of a slice if the quantization parameters of the block adjacent to the left and the block adjacent to the top cannot be used; and 用于基于从所述预测量化参数和差得到的所述当前块的量化参数来进行逆量化的装置,所述差是从比特流获得的、所述当前块的量化参数与所述预测量化参数之间的差。A means for performing inverse quantization based on the quantization parameters of the current block obtained from the predicted quantization parameters and the difference between the quantization parameters of the current block and the predicted quantization parameters, obtained from the bit stream.
HK17110738.7A 2011-01-24 2017-10-23 Image decoding method and image processing apparatus HK1237161B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2011-011861 2011-01-24
JP2011-153183 2011-07-11

Publications (3)

Publication Number Publication Date
HK1237161A HK1237161A (en) 2018-04-06
HK1237161A1 HK1237161A1 (en) 2018-04-06
HK1237161B true HK1237161B (en) 2020-11-27

Family

ID=

Similar Documents

Publication Publication Date Title
AU2020203010B2 (en) Image decoding device, image encoding device, and method thereof
KR20140043758A (en) Image processing device and image processing method
WO2012063878A1 (en) Image processing device, and image processing method
JP2018191334A (en) Image coding apparatus, image coding method, and program
HK1240733B (en) Image encoding device, image encoding method and image decoding device
HK1237161B (en) Image decoding method and image processing apparatus
HK1237161A (en) Image decoding method and image processing apparatus
HK1237161A1 (en) Image decoding method and image processing apparatus
HK1240733A1 (en) Image encoding device, image encoding method and image decoding device