JP6256572B2 - Image decoding apparatus, image decoding method, and image decoding program - Google Patents

Image decoding apparatus, image decoding method, and image decoding program Download PDF

Info

Publication number
JP6256572B2
JP6256572B2 JP2016215762A JP2016215762A JP6256572B2 JP 6256572 B2 JP6256572 B2 JP 6256572B2 JP 2016215762 A JP2016215762 A JP 2016215762A JP 2016215762 A JP2016215762 A JP 2016215762A JP 6256572 B2 JP6256572 B2 JP 6256572B2
Authority
JP
Japan
Prior art keywords
quantization
quantization parameter
block
decoding
coding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016215762A
Other languages
Japanese (ja)
Other versions
JP2017055429A (en
Inventor
福島 茂
茂 福島
博哉 中村
博哉 中村
西谷 勝義
勝義 西谷
上田 基晴
基晴 上田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JVCKenwood Corp
Original Assignee
JVCKenwood Corp
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 JVCKenwood Corp filed Critical JVCKenwood Corp
Priority to JP2016215762A priority Critical patent/JP6256572B2/en
Publication of JP2017055429A publication Critical patent/JP2017055429A/en
Application granted granted Critical
Publication of JP6256572B2 publication Critical patent/JP6256572B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像の復号技術に関し、特に量子化パラメータの予測符号化を利用した画像の復号技術に関する。   The present invention relates to an image decoding technique, and more particularly to an image decoding technique using predictive coding of quantization parameters.

MPEG−2 Part2(以下MPEG−2と呼ぶ)やMPEG−4 Part10/H.264(以下AVCと呼ぶ)等のデジタル動画像符号化では、画像を所定の大きさのブロックに分割して符号化を行い、予測誤差信号(又は単に画像信号)に対する量子化の粗さを示す量子化パラメータを伝送する。符号化側でこの量子化パラメータを所定ブロック単位で可変制御することにより、符号量を制御することや主観画質を向上させることが可能である。   MPEG-2 Part 2 (hereinafter referred to as MPEG-2) and MPEG-4 Part 10 / H. In digital video coding such as H.264 (hereinafter referred to as AVC), an image is divided into blocks of a predetermined size and coded to indicate the roughness of quantization for a prediction error signal (or simply an image signal). Transmit quantization parameters. By variably controlling the quantization parameter in units of predetermined blocks on the encoding side, it is possible to control the code amount and improve the subjective image quality.

主観画質を向上させる量子化パラメータの制御としては、Adaptive Quantization(適応量子化)が度々用いられる。適応量子化では、視覚的に劣化の目立ちやすい平坦部ではより細かく量子化され、劣化の比較的目立ちにくい絵柄の複雑な部分でより粗く量子化されるように、各マクロブロックのアクティビティによって変化させる。即ち、符号化されたときの割り当てビット量が大きくなりやすいアクティビティの高いマクロブロックにおいては、大きい量子化スケールが設定されるように、量子化パラメータを変化させ、その結果、符号化された画像のデータにおいてビット数が出来るだけ少なくなるように制御しながら、主観画質を向上させることになる。   As a control of the quantization parameter for improving the subjective image quality, Adaptive Quantization (adaptive quantization) is often used. In adaptive quantization, it is changed according to the activity of each macroblock so that it is quantized more finely in the flat part that is visually noticeable, and coarser in the complicated part of the pattern that is relatively inconspicuous. . That is, in a macroblock with a high activity that tends to have a large allocated bit amount when encoded, the quantization parameter is changed so that a large quantization scale is set. Subjective image quality is improved while controlling the number of bits to be as small as possible in the data.

MPEG−2では符号化/復号する順序で1つ前のブロックの量子化パラメータと符号化対象のブロックの量子化パラメータが同一であるかどうかを判断し、同一でない場合には量子化パラメータを伝送する。AVCでは符号化/復号する順序で1つ前のブロックの量子化パラメータを予測値として、符号化対象のブロックの量子化パラメータを差分符号化する。これは、一般的に符号量制御は符号化順に行うため、符号化順で1つ前のブロックの量子化パラメータが最も符号化ブロックの量子化パラメータに近いということに基づいており、伝送する量子化パラメータの情報量を抑制することを狙っている。   In MPEG-2, it is determined whether the quantization parameter of the previous block and the quantization parameter of the block to be encoded are the same in the encoding / decoding order, and if not, the quantization parameter is transmitted. To do. In AVC, the quantization parameter of the previous block in the encoding / decoding order is used as a prediction value, and the quantization parameter of the encoding target block is differentially encoded. This is based on the fact that since the code amount control is generally performed in the coding order, the quantization parameter of the previous block in the coding order is closest to the quantization parameter of the coding block. It aims to suppress the amount of information of the conversion parameter.

特開2011−91772号公報JP 2011-91772 A

従来の量子化パラメータの制御では、符号化済みの直前のブロックの量子化パラメータを予測量子化パラメータとして、符号化対象のブロックの量子化パラメータとの差分を算出し、算出された差分量子化パラメータを符号化することで、量子化パラメータの符号量を削減した。しかしながら、直前のブロックの量子化パラメータを予測量子化パラメータとすると、適応量子化による量子化パラメータ制御を施した場合、差分量子化パラメータが大きくなり、符号量が増加する課題があった。   In the conventional quantization parameter control, the difference between the quantization parameter of the block to be encoded is calculated using the quantization parameter of the immediately preceding block as the prediction quantization parameter, and the calculated difference quantization parameter. The amount of code of the quantization parameter was reduced by encoding. However, assuming that the quantization parameter of the immediately preceding block is the predicted quantization parameter, there is a problem that when the quantization parameter control by adaptive quantization is performed, the differential quantization parameter becomes large and the code amount increases.

本発明はこうした状況に鑑みてなされたものであり、その目的は、量子化パラメータの符号量を削減して、符号化効率を向上させる技術を提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to provide a technique for improving the coding efficiency by reducing the code amount of the quantization parameter.

画像を復号すると共に、前記画像を分割した量子化パラメータの管理単位である量子化復号ブロック単位で差分量子化パラメータが符号化されたビットストリームを復号する画像復号装置であって、前記ビットストリームを前記量子化復号ブロック単位で復号して復号対象の量子化復号ブロックの差分量子化パラメータを抽出する復号部と、前記復号対象の量子化復号ブロックの予測量子化パラメータを導出する予測量子化パラメータ導出部と、前記復号対象の量子化復号ブロックの差分量子化パラメータと前記予測量子化パラメータとの加算により前記復号対象の量子化復号ブロックの量子化パラメータを導出する量子化パラメータ導出部とを備え、前記予測量子化パラメータ導出部は、前記復号対象の量子化復号ブロックに対して復号順で直前の2つの量子化復号ブロックの量子化パラメータを用いて前記予測量子化パラメータを導出し、前記2つの量子化復号ブロックの量子化パラメータの平均値を前記予測量子化パラメータとすることを特徴とする画像復号装置を提供する。
画像を復号すると共に、前記画像を分割した量子化パラメータの管理単位である量子化復号ブロック単位で差分量子化パラメータが符号化されたビットストリームを復号する画像復号方法であって、前記ビットストリームを前記量子化復号ブロック単位で復号して復号対象の量子化復号ブロックの差分量子化パラメータを抽出する復号ステップと、前記復号対象の量子化復号ブロックの予測量子化パラメータを導出する予測量子化パラメータ導出ステップと、前記復号対象の量子化復号ブロックの差分量子化パラメータと前記予測量子化パラメータとの加算により前記復号対象の量子化復号ブロックの量子化パラメータを導出する量子化パラメータ導出ステップとを有し、前記予測量子化パラメータ導出ステップは、前記復号対象の量子化復号ブロックに対して復号順で直前の2つの量子化復号ブロックの量子化パラメータを用いて前記予測量子化パラメータを導出し、前記2つの量子化復号ブロックの量子化パラメータの平均値を前記予測量子化パラメータとすることを特徴とする画像復号方法を提供する。
画像を復号すると共に、前記画像を分割した量子化パラメータの管理単位である量子化復号ブロック単位で差分量子化パラメータが符号化されたビットストリームを復号する画像復号プログラムであって、前記ビットストリームを前記量子化復号ブロック単位で復号して復号対象の量子化復号ブロックの差分量子化パラメータを抽出する復号ステップと、前記復号対象の量子化復号ブロックの予測量子化パラメータを導出する予測量子化パラメータ導出ステップと、前記復号対象の量子化復号ブロックの差分量子化パラメータと前記予測量子化パラメータとの加算により前記復号対象の量子化復号ブロックの量子化パラメータを導出する量子化パラメータ導出ステップとをコンピュータに実行させ、前記予測量子化パラメータ導出ステップは、前記復号対象の量子化復号ブロックに対して復号順で直前の2つの量子化復号ブロックの量子化パラメータを用いて前記予測量子化パラメータを導出し、前記2つの量子化復号ブロックの量子化パラメータの平均値を前記予測量子化パラメータとすることを特徴とする画像復号プログラムを提供する。
An image decoding apparatus for decoding a bitstream in which a differential quantization parameter is encoded in units of a quantization decoding block, which is a unit for managing a quantization parameter obtained by dividing the image, the image decoding apparatus comprising: A decoding unit that performs decoding in units of the quantized decoding block and extracts a differential quantization parameter of the quantization decoding block to be decoded; and a prediction quantization parameter derivation that derives a prediction quantization parameter of the quantization decoding block to be decoded A quantization parameter derivation unit that derives a quantization parameter of the quantization decoding block to be decoded by adding the difference quantization parameter of the quantization decoding block to be decoded and the prediction quantization parameter, The predictive quantization parameter deriving unit performs decoding order on the quantization decoding block to be decoded. The prediction quantization parameter is derived using the quantization parameters of the immediately preceding two quantization decoding blocks, and an average value of the quantization parameters of the two quantization decoding blocks is used as the prediction quantization parameter, An image decoding apparatus is provided.
An image decoding method for decoding a bitstream in which a differential quantization parameter is encoded in units of a quantization decoding block, which is a quantization parameter management unit obtained by dividing the image, wherein the bitstream is decoded A decoding step of decoding in units of the quantized decoding block and extracting a differential quantization parameter of the quantization decoding block to be decoded; and a prediction quantization parameter derivation of deriving a prediction quantization parameter of the quantization decoding block to be decoded And a quantization parameter derivation step for deriving the quantization parameter of the quantization decoding block to be decoded by adding the difference quantization parameter of the quantization decoding block to be decoded and the prediction quantization parameter. The predictive quantization parameter derivation step includes the decoding target quantization decoding. The prediction quantization parameter is derived using the quantization parameters of the two previous quantization decoding blocks in decoding order with respect to the block, and an average value of the quantization parameters of the two quantization decoding blocks is calculated by the prediction quantization Provided is an image decoding method characterized by being a parameter.
An image decoding program that decodes a bitstream in which a differential quantization parameter is encoded in units of a quantization decoding block that is a quantization parameter management unit obtained by dividing the image. A decoding step of decoding in units of the quantized decoding block and extracting a differential quantization parameter of the quantization decoding block to be decoded; and a prediction quantization parameter derivation of deriving a prediction quantization parameter of the quantization decoding block to be decoded And a quantization parameter deriving step of deriving a quantization parameter of the quantization decoding block to be decoded by adding the difference quantization parameter of the quantization decoding block to be decoded and the prediction quantization parameter to the computer Executing the predictive quantization parameter derivation step, The prediction quantization parameter is derived using the quantization parameters of the two previous quantization decoding blocks in the decoding order with respect to the quantization decoding block to be decoded, and the quantization parameters of the two quantization decoding blocks are calculated. An image decoding program characterized by using an average value as the predicted quantization parameter is provided.

なお、以上の構成要素の任意の組合せ、本発明の表現を方法、装置、システム、記録媒体、コンピュータプログラムなどの間で変換したものもまた、本発明の態様として有効である。   It should be noted that any combination of the above-described constituent elements and a conversion of the expression of the present invention between a method, an apparatus, a system, a recording medium, a computer program, etc. are also effective as an aspect of the present invention.

本発明によれば、量子化パラメータの符号量を削減して、符号化効率を向上させることができる。   According to the present invention, it is possible to improve the coding efficiency by reducing the code amount of the quantization parameter.

実施の形態に係る予測量子化パラメータの導出方法を具備した動画像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the moving image encoder which comprised the derivation | leading-out method of the prediction quantization parameter which concerns on embodiment. 実施の形態に係る予測量子化パラメータの導出方法を具備した動画像復号装置の構成を示すブロック図である。It is a block diagram which shows the structure of the moving image decoding apparatus provided with the derivation method of the prediction quantization parameter which concerns on embodiment. MPEG−2 TM5の画面内の符号量制御を説明する図である。It is a figure explaining the code amount control in the screen of MPEG-2 TM5. AVCの量子化パラメータ予測方法を示す図である。It is a figure which shows the quantization parameter prediction method of AVC. 階層ツリー符号化を使用した場合の符号化処理順の一例を示す図である。It is a figure which shows an example of the encoding process order at the time of using hierarchy tree encoding. 階層ツリー符号化により分割されたツリーブロック内部の左上の量子化符号化ブロックの量子化パラメータの予測の一例を示す図である。It is a figure which shows an example of the prediction of the quantization parameter of the quantization coding block at the upper left inside the tree block divided | segmented by hierarchy tree coding. 階層ツリー符号化により分割されたツリーブロック内部の左下の量子化符号化ブロックの量子化パラメータの予測の一例を示す図である。It is a figure which shows an example of the prediction of the quantization parameter of the lower left quantization coding block inside the tree block divided | segmented by hierarchy tree coding. 階層ツリー符号化により分割されたツリーブロック内部の左上の量子化符号化ブロックの量子化パラメータの予測の一例を示す図である。It is a figure which shows an example of the prediction of the quantization parameter of the quantization coding block at the upper left inside the tree block divided | segmented by hierarchy tree coding. MPEG−2 TM5の画面内の符号量制御において、上下で隣接する符号化ブロックの位置を説明する図である。In the code amount control in the screen of MPEG-2 TM5, it is a figure explaining the position of the encoding block adjacent up and down. 差分量子化パラメータの符号化テーブルの一例を表す図である。It is a figure showing an example of the encoding table of a difference quantization parameter. 符号化対象ツリーブロックと符号化済みツリーブロックとの関係を示す図である。It is a figure which shows the relationship between an encoding object tree block and an encoded tree block. 階層ツリー符号化により分割されたツリーブロック内部の左上の量子化符号化ブロックの予測元を示す図である。It is a figure which shows the prediction origin of the quantization coding block at the upper left inside the tree block divided | segmented by hierarchy tree coding. 階層ツリー符号化により分割されたツリーブロック内部の右上の量子化符号化ブロックの予測元を示す図である。It is a figure which shows the prediction origin of the quantization coding block of the upper right inside the tree block divided | segmented by hierarchy tree coding. 階層ツリー符号化により分割されたツリーブロック内部の左下の量子化符号化ブロックの予測元を示す図である。It is a figure which shows the prediction origin of the quantization coding block of the lower left inside the tree block divided | segmented by hierarchy tree coding. 階層ツリー符号化により分割されたツリーブロック内部の右下の量子化符号化ブロックの予測元を示す図である。It is a figure which shows the prediction origin of the quantization coding block of the lower right inside the tree block divided | segmented by hierarchy tree coding. 予測量子化パラメータ導出のフローチャートである。It is a flowchart of prediction quantization parameter derivation. 予測量子化パラメータの演算処理の例を示す図である。It is a figure which shows the example of the calculation process of a prediction quantization parameter. 量子化符号化ブロックの一例を説明する図である。It is a figure explaining an example of a quantization coding block. 空間的に隣接する量子化符号化ブロックとツリーブロックの関係を表す図である。It is a figure showing the relationship between the quantization encoding block and tree block which adjoin spatially.

本発明の実施の形態は、ピクチャを所定サイズの矩形ブロックに分割し、更にそのブロックを量子化パラメータを管理する単位である1つ或いは複数の量子化符号化ブロックに分割し、量子化符号化ブロック単位に差分量子化パラメータの伝送を行う画像符号化において、処理対象のブロックの量子化パラメータの符号量を削減するために、複数の符号化済みブロックの符号化情報から最適な予測量子化パラメータを導出し、予測量子化パラメータとの差分を算出して、符号化する符号量制御技術を提供する。   The embodiment of the present invention divides a picture into rectangular blocks of a predetermined size, further divides the block into one or a plurality of quantization coding blocks that are units for managing quantization parameters, and performs quantization coding. In image coding in which differential quantization parameters are transmitted in units of blocks, in order to reduce the amount of coding of the quantization parameters of the block to be processed, the optimal prediction quantization parameter is determined from the coding information of a plurality of coded blocks. The code amount control technique for calculating and calculating the difference from the prediction quantization parameter is provided.

(実施の形態1)
本発明を実施する好適な動画像符号化装置100及び動画像復号装置200について説明する。図1は本発明を実施する動画像符号化装置100の構成を示すブロック図であり、画像メモリ101、残差信号生成部102、直交変換・量子化部103、第2の符号化ビット列生成部104、逆量子化・逆直交変換部105、復号画像信号重畳部106、復号画像メモリ107、予測画像生成部108、アクティビティ算出部109、量子化パラメータ算出部110、差分量子化パラメータ生成部111、第1の符号化ビット列生成部112、符号化情報格納メモリ113、予測量子化パラメータ導出部114及び符号化ビット列多重化部115から構成される。尚、各ブロック間を結ぶ太実線の矢印はピクチャの画像信号、細実線の矢印は符号化を制御するパラメータ信号の流れを表すものである。
(Embodiment 1)
A preferred moving image encoding apparatus 100 and moving image decoding apparatus 200 that implement the present invention will be described. FIG. 1 is a block diagram showing the configuration of a moving picture coding apparatus 100 that implements the present invention, in which an image memory 101, a residual signal generation unit 102, an orthogonal transform / quantization unit 103, and a second encoded bit string generation unit. 104, an inverse quantization / inverse orthogonal transform unit 105, a decoded image signal superimposing unit 106, a decoded image memory 107, a predicted image generation unit 108, an activity calculation unit 109, a quantization parameter calculation unit 110, a differential quantization parameter generation unit 111, A first encoded bit string generation unit 112, an encoded information storage memory 113, a predicted quantization parameter derivation unit 114, and an encoded bit string multiplexing unit 115 are configured. The thick solid arrows connecting the blocks represent picture image signals, and the thin solid arrows represent the flow of parameter signals for controlling encoding.

画像メモリ101は、撮影/表示時間順に供給された符号化対象の画像信号を一時格納する。画像メモリ101は、格納された符号化対象の画像信号を、所定の画素ブロック単位で、残差信号生成部102、予測画像生成部108及びアクティビティ算出部109に供給する。その際、撮影/表示時間順に格納された画像は、符号化順序に並べ替えられて、画素ブロック単位で、画像メモリ101から出力される。   The image memory 101 temporarily stores image signals to be encoded supplied in the order of shooting / display time. The image memory 101 supplies the stored image signal to be encoded to the residual signal generation unit 102, the predicted image generation unit 108, and the activity calculation unit 109 in units of predetermined pixel blocks. At this time, the images stored in the order of shooting / display time are rearranged in the encoding order and output from the image memory 101 in units of pixel blocks.

残差信号生成部102は、符号化する画像信号と予測画像生成部108にて生成された予測信号との減算を行い残差信号を生成し、直交変換・量子化部103に供給する。   The residual signal generation unit 102 subtracts the image signal to be encoded from the prediction signal generated by the prediction image generation unit 108 to generate a residual signal, and supplies the residual signal to the orthogonal transform / quantization unit 103.

直交変換・量子化部103は、量子化パラメータ算出部110で算出された量子化パラメータを用いて残差信号に対して直交変換及び量子化を行い、直交変換・量子化された残差信号を生成し、第2の符号化ビット列生成部104と逆量子化・逆直交変換部105に供給する。   The orthogonal transform / quantization unit 103 performs orthogonal transform and quantization on the residual signal using the quantization parameter calculated by the quantization parameter calculation unit 110, and converts the residual signal that has been orthogonally transformed / quantized into the residual signal. It is generated and supplied to the second encoded bit string generation unit 104 and the inverse quantization / inverse orthogonal transform unit 105.

第2の符号化ビット列生成部104は、直交変換及び量子化された残差信号を規定のシンタックス規則に従ってエントロピー符号化して第2の符号化ビット列を生成し、符号化ビット列多重化部115に供給する。   The second encoded bit sequence generation unit 104 generates a second encoded bit sequence by entropy encoding the orthogonally transformed and quantized residual signal according to a prescribed syntax rule, and the encoded bit sequence multiplexing unit 115 Supply.

逆量子化・逆直交変換部105は、量子化パラメータ算出部110で算出された量子化パラメータを用いて直交変換・量子化部103から供給された直交変換・量子化された残差信号を逆量子化及び逆直交変換して残差信号を算出し、復号画像信号重畳部106に供給する。   The inverse quantization / inverse orthogonal transform unit 105 reverses the orthogonal transform / quantized residual signal supplied from the orthogonal transform / quantization unit 103 using the quantization parameter calculated by the quantization parameter calculation unit 110. A residual signal is calculated by performing quantization and inverse orthogonal transform, and supplied to the decoded image signal superimposing unit 106.

復号画像信号重畳部106は、予測画像生成部108により生成された予測画像信号と逆量子化・逆直交変換部105で逆量子化及び逆直交変換された残差信号を重畳して復号画像を生成し、復号画像メモリ107に格納する。尚、復号画像に対して符号化によるブロック歪等の歪を減少させるフィルタリング処理を施して、復号画像メモリ107に格納されることもあり、その場合、必要に応じてデブロッキングフィルタ等のポストフィルタの情報を識別するフラグ等の予測された符号化情報を符号化情報格納メモリ113に格納する。   The decoded image signal superimposing unit 106 superimposes the predicted image signal generated by the predicted image generating unit 108 and the residual signal subjected to inverse quantization and inverse orthogonal transform by the inverse quantization / inverse orthogonal transform unit 105 to generate a decoded image. It is generated and stored in the decoded image memory 107. The decoded image may be subjected to a filtering process for reducing distortion such as block distortion due to encoding, and may be stored in the decoded image memory 107. In that case, a post filter such as a deblocking filter may be used as necessary. Predicted encoded information such as a flag for identifying the information is stored in the encoded information storage memory 113.

予測画像生成部108は、画像メモリ101から供給される画像信号と復号画像メモリ107から供給される復号画像信号から、予測モードを基にピクチャ内予測(イントラ予測)或いはピクチャ間予測(インター予測)を行い、予測画像信号を生成する。イントラ予測は、画像メモリ101から供給される画像信号を所定のブロック単位で分割された符号化対象のブロックと、復号画像メモリ107から供給される符号化対象のブロックと同じピクチャ内に存在する符号化対象のブロックに隣接する周囲の符号化済みブロックの画素信号を用いて予測画像信号を生成する。インター予測は、画像メモリ101から供給される画像信号を所定のブロック単位で分割された符号化対象のブロックのピクチャ(符号化ピクチャ)の時系列で前または後ろにある復号画像メモリ107に格納されている符号化済みピクチャを参照ピクチャとし、符号化ピクチャと参照ピクチャとの間でブロックマッチングを行い、動き量を示す動きベクトルを求め、この動き量を基に参照ピクチャから動き補償を行い、予測画像信号を生成する。こうして生成された予測画像信号を残差信号生成部102に供給する。予測画像生成部108にて得られた動きベクトル等の符号化情報は、必要に応じて符号化情報格納メモリ113に格納する。更に、予測画像生成部108では、複数の予測モードの選択が可能である場合、生成された予測画像信号と元の画像信号との間の歪量等を評価することにより、最適な予測モードを決定し、決定された予測モードによる予測により生成された予測画像信号を選択し、残差信号生成部102に供給するとともに、予測モードがイントラ予測である場合はイントラ予測モードを符号化情報格納メモリ113及び第1の符号化ビット列生成部に供給する。   The predicted image generation unit 108 uses an image signal supplied from the image memory 101 and a decoded image signal supplied from the decoded image memory 107, based on a prediction mode, intra-picture prediction (intra prediction) or inter-picture prediction (inter prediction). To generate a predicted image signal. Intra prediction is a coding target block obtained by dividing an image signal supplied from the image memory 101 in units of a predetermined block and a coding target block supplied from the decoded image memory 107 in the same picture. A prediction image signal is generated using pixel signals of surrounding encoded blocks adjacent to the conversion target block. The inter prediction is stored in the decoded image memory 107 that precedes or follows the time series of the picture (encoded picture) of the block to be encoded obtained by dividing the image signal supplied from the image memory 101 in a predetermined block unit. The coded picture is used as a reference picture, block matching is performed between the coded picture and the reference picture, a motion vector indicating the amount of motion is obtained, motion compensation is performed from the reference picture based on this amount of motion, and prediction is performed. An image signal is generated. The predicted image signal generated in this way is supplied to the residual signal generation unit 102. Coding information such as a motion vector obtained by the predicted image generation unit 108 is stored in the coding information storage memory 113 as necessary. Furthermore, when a plurality of prediction modes can be selected, the prediction image generation unit 108 evaluates the distortion amount between the generated prediction image signal and the original image signal, and thereby selects an optimum prediction mode. The prediction image signal generated by the prediction in the determined prediction mode is selected and supplied to the residual signal generation unit 102. When the prediction mode is intra prediction, the intra prediction mode is selected as the encoded information storage memory. 113 and the first encoded bit string generator.

アクティビティ算出部109は、画像メモリ101から供給される符号化対象のブロックの画像の複雑さや滑らかさを示す係数であるアクティビティが計算され、量子化パラメータ算出部110に供給する。アクティビティ算出部109の詳細な構成と動作は、後述する。   The activity calculation unit 109 calculates an activity that is a coefficient indicating the complexity and smoothness of the image of the encoding target block supplied from the image memory 101, and supplies it to the quantization parameter calculation unit 110. The detailed configuration and operation of the activity calculation unit 109 will be described later.

量子化パラメータ算出部110は、アクティビティ算出部109にて算出されたアクティビティによって、符号化対象のブロックの量子化パラメータを算出し、差分量子化パラメータ生成部111及び符号化情報格納メモリ113に供給する。量子化パラメータ算出部110の詳細な構成と動作は、後述する。   The quantization parameter calculation unit 110 calculates the quantization parameter of the block to be encoded based on the activity calculated by the activity calculation unit 109, and supplies the quantization parameter to the differential quantization parameter generation unit 111 and the encoded information storage memory 113. . The detailed configuration and operation of the quantization parameter calculation unit 110 will be described later.

差分量子化パラメータ生成部111は、量子化パラメータ算出部110にて算出された量子化パラメータに対して、予測量子化パラメータ導出部114にて導出された予測量子化パラメータと減算を行い、差分量子化パラメータを算出し、第1の符号化ビット列生成部112に供給する。   The difference quantization parameter generation unit 111 performs subtraction on the quantization parameter calculated by the quantization parameter calculation unit 110 and the prediction quantization parameter derived by the prediction quantization parameter derivation unit 114, thereby obtaining a difference quantum. The calculation parameter is calculated and supplied to the first encoded bit string generation unit 112.

第1の符号化ビット列生成部112は、差分量子化パラメータ生成部111によって算出された差分量子化パラメータを規定のシンタックス規則に従って符号化して第1の符号化ビット列を生成し、符号化ビット列多重化部115に供給する。   The first encoded bit sequence generation unit 112 generates a first encoded bit sequence by encoding the differential quantization parameter calculated by the differential quantization parameter generation unit 111 according to a specified syntax rule, and generates an encoded bit sequence multiplexed To the conversion unit 115.

符号化情報格納メモリ113は、符号化が終了したブロックの量子化パラメータを格納する。また、図1に結線を図示していないが、予測画像生成部108にて生成される予測モードや動きベクトル等の符号化情報も、次の符号化対象のブロックを符号化に必要な情報として格納する。更に、ピクチャやスライス単位で生成される符号化情報も必要に応じて格納する。   The encoding information storage memory 113 stores the quantization parameter of the block that has been encoded. Although the connection is not shown in FIG. 1, the encoding information such as the prediction mode and the motion vector generated by the prediction image generation unit 108 is also used as information necessary for encoding the next encoding target block. Store. Furthermore, encoded information generated in units of pictures and slices is also stored as necessary.

予測量子化パラメータ導出部114は、既符号化済みの量子化符号化ブロックの量子化パラメータや符号化情報を用いて、量子化符号化対象ブロックの予測量子化パラメータを導出し、差分量子化パラメータ生成部111に供給する。予測量子化パラメータ導出部114の詳細な構成と動作は、後述する。   The prediction quantization parameter deriving unit 114 derives the prediction quantization parameter of the quantization coding target block using the quantization parameter and coding information of the already coded quantization coding block, and calculates the difference quantization parameter. This is supplied to the generation unit 111. The detailed configuration and operation of the predicted quantization parameter deriving unit 114 will be described later.

符号化ビット列多重化部115は、第1の符号化ビット列と第2の符号化ビット列を規定のシンタックス規則に従って多重化し、ビットストリームを出力する。   The encoded bit string multiplexing unit 115 multiplexes the first encoded bit string and the second encoded bit string in accordance with a specified syntax rule, and outputs a bit stream.

図2は図1の動画像符号化装置100に対応した実施の形態に係る動画像復号装置200の構成を示すブロック図である。実施の形態の動画像復号装置200は、ビット列分離部201、第1符号化ビット列復号部202、量子化パラメータ生成部203、符号化情報格納メモリ204、予測量子化パラメータ導出部205、第2符号化ビット列復号部206、逆量子化・逆直交変換部207、復号画像信号重畳部208、予測画像生成部209及び復号画像メモリ210を備える。尚、図1の動画像符号化装置100と同様に、各ブロック間を結ぶ太実線の矢印はピクチャの画像信号、細実線の矢印は符号化を制御するパラメータ信号の流れを表すものである。   FIG. 2 is a block diagram showing a configuration of a moving picture decoding apparatus 200 according to an embodiment corresponding to the moving picture encoding apparatus 100 of FIG. The moving picture decoding apparatus 200 according to the embodiment includes a bit string separation unit 201, a first encoded bit string decoding unit 202, a quantization parameter generation unit 203, an encoded information storage memory 204, a predicted quantization parameter derivation unit 205, and a second code. A decoded bit string decoding unit 206, an inverse quantization / inverse orthogonal transform unit 207, a decoded image signal superimposing unit 208, a predicted image generating unit 209, and a decoded image memory 210. As in the moving picture encoding apparatus 100 of FIG. 1, the thick solid line arrows connecting the blocks represent picture image signals, and the thin solid line arrows represent the flow of parameter signals for controlling encoding.

図2の動画像復号装置200の復号処理は、図1の動画像符号化装置100の内部に設けられている復号処理に対応するものであるから、図2の逆量子化・逆直交変換部207、復号画像信号重畳部208、予測画像生成部209、復号画像メモリ210及び符号化情報格納メモリ204の各構成は、図1の動画像符号化装置100の逆量子化・逆直交変換部105、復号画像信号重畳部106、予測画像生成部108、復号画像メモリ107及び符号化情報格納メモリ113の各構成とそれぞれ対応する機能を有する。ただし、予測画像生成部209は図1の動画像符号化装置の予測画像生成部108動きベクトル検出機能及び予測モードの選択機能は含まない。   The decoding process of the moving picture decoding apparatus 200 in FIG. 2 corresponds to the decoding process provided in the moving picture encoding apparatus 100 in FIG. 1, and therefore the inverse quantization / inverse orthogonal transform unit in FIG. 2. 207, the decoded image signal superimposing unit 208, the predicted image generating unit 209, the decoded image memory 210, and the encoded information storage memory 204 are configured by the inverse quantization / inverse orthogonal transform unit 105 of the moving image encoding apparatus 100 in FIG. , The decoded image signal superimposing unit 106, the predicted image generating unit 108, the decoded image memory 107, and the encoded information storage memory 113. However, the predicted image generation unit 209 does not include the motion vector detection function and the prediction mode selection function of the predicted image generation unit 108 of the moving image encoding device in FIG.

ビット列分離部201に供給されるビットストリームは規定のシンタックスの規則に従って分離し、分離された符号化ビット列が第1符号化ビット列復号部202、第2符号化ビット列復号部206に供給される。   The bit stream supplied to the bit string separation unit 201 is separated according to a rule of a prescribed syntax, and the separated encoded bit string is supplied to the first encoded bit string decoding unit 202 and the second encoded bit string decoding unit 206.

第1符号化ビット列復号部202は、供給された符号化ビット列を復号して予測モード、動きベクトル、差分量子化パラメータ等に関する符号化情報を出力し、差分量子化パラメータを量子化パラメータ生成部203に与えるとともに、符号化情報を符号化情報格納メモリ204に格納する。   The first encoded bit string decoding unit 202 decodes the supplied encoded bit string, outputs encoding information related to the prediction mode, motion vector, differential quantization parameter, and the like, and converts the differential quantization parameter to the quantization parameter generation unit 203. And the encoded information is stored in the encoded information storage memory 204.

量子化パラメータ生成部203は、第1符号化ビット列復号部202から供給される差分量子化パラメータと予測量子化パラメータ導出部205にて導出される量子化パラメータとを加算して量子化パラメータを算出し、逆量子化・逆直交変換部207及び符号化情報格納メモリ204に供給する。   The quantization parameter generation unit 203 adds the difference quantization parameter supplied from the first encoded bit string decoding unit 202 and the quantization parameter derived by the prediction quantization parameter deriving unit 205 to calculate the quantization parameter. And supplied to the inverse quantization / inverse orthogonal transform unit 207 and the encoded information storage memory 204.

符号化情報格納メモリ204は、復号が終了した量子化符号化ブロックの量子化パラメータを格納する。更に、第1符号化ビット列復号部202にて復号されたブロック単位の符号化情報だけでなく、ピクチャやスライス単位で生成される符号化情報も必要に応じて格納する。また、図2に結線を図示していないが、復号された予測モードや動きベクトル等の符号化情報を予測画像生成部209に供給する。   The encoded information storage memory 204 stores the quantization parameter of the quantized encoded block that has been decoded. Furthermore, not only the block unit encoded information decoded by the first encoded bit string decoding unit 202 but also the encoded information generated in units of pictures and slices are stored as necessary. Although not shown in FIG. 2, the encoded information such as the decoded prediction mode and motion vector is supplied to the prediction image generation unit 209.

予測量子化パラメータ導出部205は、既復号済みの量子化符号化ブロックの量子化パラメータを用いて、予測量子化パラメータを導出し、量子化パラメータ生成部203に供給する。予測量子化パラメータ導出部205は動画像符号化装置100の予測量子化パラメータ導出部114と同等の機能を有しており、詳細な構成と動作は後述する。   The prediction quantization parameter deriving unit 205 derives a prediction quantization parameter using the quantization parameter of the already-decoded quantization coding block, and supplies the prediction quantization parameter to the quantization parameter generation unit 203. The predicted quantization parameter derivation unit 205 has a function equivalent to that of the predicted quantization parameter derivation unit 114 of the video encoding device 100, and a detailed configuration and operation will be described later.

第2符号化ビット列復号部206は、供給された符号化ビット列を復号して直交変換・量子化された残差信号を算出し、直交変換・量子化された残差信号を逆量子化・逆直交変換部207に与える。   The second encoded bit string decoding unit 206 decodes the supplied encoded bit string to calculate an orthogonally transformed / quantized residual signal, and dequantizes / inverts the orthogonally transformed / quantized residual signal. This is given to the orthogonal transform unit 207.

逆量子化・逆直交変換部207は、第2符号化ビット列復号部206で復号された直交変換・量子化された残差信号に対して、量子化パラメータ生成部203にて生成された量子化パラメータを用いて、逆直交変換及び逆量子化を行い、逆直交変換・逆量子化された残差信号を得る。   The inverse quantization / inverse orthogonal transform unit 207 generates a quantization signal generated by the quantization parameter generation unit 203 for the orthogonal transform / quantized residual signal decoded by the second encoded bit string decoding unit 206. Using the parameters, inverse orthogonal transform and inverse quantization are performed to obtain a residual signal subjected to inverse orthogonal transform and inverse quantization.

復号画像信号重畳部208は、予測画像生成部209で生成された予測画像信号と、逆量子化・逆直交変換部207により逆直交変換・逆量子化された残差信号とを重畳することにより、復号画像信号を生成し、出力するとともに復号画像メモリ210に格納する。復号画像メモリ210に格納する際には、復号画像に対して符号化によるブロック歪等を減少させるフィルタリング処理を施して、復号画像メモリ210に格納されることもある。   The decoded image signal superimposing unit 208 superimposes the predicted image signal generated by the predicted image generating unit 209 and the residual signal subjected to inverse orthogonal transform / inverse quantization by the inverse quantization / inverse orthogonal transform unit 207. The decoded image signal is generated, output, and stored in the decoded image memory 210. When stored in the decoded image memory 210, the decoded image may be stored in the decoded image memory 210 after filtering processing for reducing block distortion or the like due to encoding is performed on the decoded image.

予測画像生成部209は、第2符号化ビット列復号部206で復号される予測モードや動きベクトル等の符号化情報、更に符号化情報格納メモリ204から符号化情報を基にして、復号画像メモリ210から供給される復号画像信号から予測画像信号を生成し、復号画像信号重畳部208に供給する。   The predicted image generation unit 209 uses the decoded image memory 210 based on the encoded information such as the prediction mode and motion vector decoded by the second encoded bit string decoding unit 206 and the encoded information from the encoded information storage memory 204. A predicted image signal is generated from the decoded image signal supplied from, and supplied to the decoded image signal superimposing unit 208.

次に、動画像符号化装置100の中で太点線に囲まれた諸部120、特に予測量子化パラメータ導出部114と、動画像復号装置200の中で太点線に囲まれた諸部220、特に予測量子化パラメータ導出部205とで共通に実施される予測量子化パラメータを導出する方法の詳細について説明する。   Next, various parts 120 surrounded by a thick dotted line in the moving picture coding apparatus 100, in particular, a predictive quantization parameter deriving part 114, and various parts 220 surrounded by a thick dotted line in the moving picture decoding apparatus 200, In particular, details of a method for deriving a predictive quantization parameter that is commonly performed by the predictive quantization parameter deriving unit 205 will be described.

まず、本実施の形態の動画像符号化装置100の中で太点線で囲まれた諸部120の各部の動作について説明する。諸部120では、画像メモリ101から供給される所定画素サイズ単位の画素ブロックを量子化符号化ブロックとし、その量子化符号化ブロックを量子化する為の量子化パラメータを決定する。量子化パラメータは主に符号量制御と適応量子化のアルゴリズムによって符号化側で決定され、量子化パラメータ予測処理を行い復号側に伝送される。最初にアクティビティ算出部109における適応量子化の手法について説明する。   First, the operation of each section of the sections 120 surrounded by the thick dotted line in the moving picture coding apparatus 100 according to the present embodiment will be described. The units 120 use a pixel block of a predetermined pixel size unit supplied from the image memory 101 as a quantization coding block, and determine a quantization parameter for quantizing the quantization coding block. The quantization parameter is determined on the encoding side mainly by a code amount control and adaptive quantization algorithm, and is transmitted to the decoding side after performing a quantization parameter prediction process. First, an adaptive quantization method in the activity calculation unit 109 will be described.

アクティビティ算出部109では、一般に人間の視覚特性はエッジの少ない低周波成分に敏感である為、視覚的に劣化の目立ちやすい平坦部ではより細かく量子化し、劣化の比較的目立ちにくい絵柄の複雑な部分でより粗く量子化するように、所定量子化符号化ブロック単位に画像の複雑さや滑らかさを表現するアクティビティを算出する。ただし、アクティビティを算出は符号化装置側のみの機能であり復号装置側には含まれないため、アクティビティ算出単位は量子化符号化ブロック単位であるとは限らず、複雑度を考慮して符号化側で自由に決定できる。   In the activity calculation unit 109, since human visual characteristics are generally sensitive to low-frequency components with few edges, a more complex portion of a pattern that is quantized more finely on a flat part that is visually conspicuous and is relatively inconspicuous. Then, an activity expressing the complexity and smoothness of the image is calculated for each predetermined quantized coding block unit so as to perform coarser quantization. However, since activity calculation is a function only on the encoding device side and is not included on the decoding device side, the activity calculation unit is not necessarily a quantization coding block unit, and encoding is performed in consideration of complexity. You can decide freely on the side.

アクティビティの一例として、MPEG−2 TestModel5(TM5)に記載される符号化ブロック内の画素の分散値による算出が挙げられる。分散値はブロック内の画像を構成する画素の平均からの散らばりの度合いを示す値であり、ブロック内に画像が平坦である(輝度変化が小さい)程小さく、複雑な絵柄である(輝度変化が大きい)もの程値が大きくなるので、ブロックのアクティビティとして利用する。ブロック内の画素値をp(x,y)で表すと、ブロックのアクティビティactは次式で算出される。   As an example of the activity, there is a calculation based on a variance value of pixels in a coding block described in MPEG-2 TestModel 5 (TM5). The variance value is a value indicating the degree of dispersion from the average of the pixels constituting the image in the block. The flatter the image in the block (the smaller the luminance change), the smaller the value, and the more complex the image (the luminance change is). The larger the value, the larger the value, so use it as a block activity. When the pixel value in the block is represented by p (x, y), the activity act of the block is calculated by the following equation.

Figure 0006256572
Figure 0006256572

ここで、BLKは量子化符号化ブロックの画素総数であり、p_meanはブロック内の画素の平均値である。   Here, BLK is the total number of pixels in the quantization coding block, and p_mean is the average value of the pixels in the block.

また、以上のような分散に限らず、量子化符号化ブロック内の画素に対して、水平方向及び垂直方向で隣接する画素との差分絶対値をとり、ブロック内で総和をとっても良い。この場合でも、画像が平坦である場合は小さく、エッジが多い複雑な絵柄部分では大きい値となり、アクティビティとして利用可能である。次式により算出される。   Further, the present invention is not limited to the above variance, and the absolute value of the difference between the pixels in the quantization coding block and the adjacent pixels in the horizontal direction and the vertical direction may be taken, and the sum total may be taken in the block. Even in this case, it is small when the image is flat, and a large value is obtained in a complicated picture portion having many edges, and can be used as an activity. It is calculated by the following formula.

Figure 0006256572
Figure 0006256572

こうして算出されたアクティビティactは量子化パラメータ算出部110に供給される。   The activity act calculated in this way is supplied to the quantization parameter calculation unit 110.

次に、符号量制御について説明する。本実施の形態の動画像符号化装置100では、特に符号量制御を実現する部を設けていないが、符号量制御では発生符号量に基づき符号化ブロックの量子化パラメータを決定する為、量子化パラメータ算出部110の中にその機能を包含することとして説明する。   Next, code amount control will be described. The moving image coding apparatus 100 according to the present embodiment does not particularly include a unit that realizes the code amount control. However, in the code amount control, the quantization parameter of the coding block is determined based on the generated code amount. It is assumed that the function is included in the parameter calculation unit 110.

符号量制御はピクチャやスライス等の所定単位の発生符号量を目標符号量付近に合わせることを目的としており、符号化済ブロックの発生符号量が目標符号量よりも多いと判断した場合には以降に量子化パラメータを符号化する量子化符号化ブロックに相対的に粗い量子化を適用し、符号化済ブロックの発生符号量が目標符号量よりも少ないと判断した場合には以降に符号化するブロックに相対的に細かい量子化を適用するものである。   The code amount control is intended to match the generated code amount of a predetermined unit such as a picture or a slice to the vicinity of the target code amount, and when it is determined that the generated code amount of the encoded block is larger than the target code amount. Apply relatively coarse quantization to the quantization coding block that encodes the quantization parameter, and if it is determined that the generated code amount of the encoded block is less than the target code amount, encoding is performed thereafter. A relatively fine quantization is applied to the block.

具体的な符号量制御のアルゴリズムについて、図3を用いて説明する。   A specific code amount control algorithm will be described with reference to FIG.

まず、ピクチャ毎に目標符号量(T)を決定する。一般的にはIピクチャ>Pピクチャ>参照Bピクチャ>非参照BピクチャとなるようにTを決定する。例えば、動画像の目標ビットレートが5Mbpsであり、1秒間にIピクチャが1枚、Pピクチャが3枚、参照Bピクチャが11枚、非参照Bピクチャが15枚ある場合において、ピクチャタイプ別の目標符号量をTi、Tp、Tbr、Tbとすると、Ti:Tp:Tbr:Tb=4:3:2:1の比率となるように目標符号量を制御したい場合、Ti=400kbit、Tp=300kbit、Tbr=200kbit、Tb=100kbitとなる。但し、ピクチャタイプ別の割当符号量は本発明の本質には影響しない。   First, a target code amount (T) is determined for each picture. In general, T is determined so that I picture> P picture> reference B picture> non-reference B picture. For example, when the target bit rate of a moving image is 5 Mbps, there are 1 I picture, 3 P pictures, 11 reference B pictures, and 15 non-reference B pictures per second, Assuming that the target code amount is Ti, Tp, Tbr, Tb, when it is desired to control the target code amount so that the ratio of Ti: Tp: Tbr: Tb = 4: 3: 2: 1, Ti = 400 kbit, Tp = 300 kbit. , Tbr = 200 kbit, Tb = 100 kbit. However, the allocated code amount for each picture type does not affect the essence of the present invention.

次に、ピクチャ内の符号量制御について説明する。量子化パラメータを決定する単位であるブロックの数をN、発生符号量をB、目標符号量との差分ビットをDとすると、

Figure 0006256572
となる。ここで、jは量子化符号化ブロックの符号化処理順カウント番号である。D(0)は目標符号量差分の初期値である。 Next, code amount control in a picture will be described. If the number of blocks, which are units for determining the quantization parameter, is N, the generated code amount is B, and the difference bit from the target code amount is D,
Figure 0006256572
It becomes. Here, j is an encoding processing order count number of the quantized encoding block. D (0) is an initial value of the target code amount difference.

符号量制御による量子化パラメータbQPは以下のように決定される。

Figure 0006256572
The quantization parameter bQP by code amount control is determined as follows.
Figure 0006256572

ここで、rは目標符号量差分を量子化パラメータに変換する比例係数である。この比例係数rは使用可能な量子化パラメータに応じて決定される。   Here, r is a proportional coefficient for converting the target code amount difference into a quantization parameter. The proportional coefficient r is determined according to the available quantization parameter.

量子化パラメータ算出部110は、量子化符号化ブロック毎にアクティビティ算出部109で算出されたアクティビティactを使って、符号量制御にて算出された符号化ブロックの量子化パラメータを変化させる。以下では、量子化符号化ブロック毎に算出するので、符号量制御による量子化パラメータの符号化処理順カウント番号を削除し、bQPで表すものとする。   The quantization parameter calculation unit 110 changes the quantization parameter of the coding block calculated by the code amount control using the activity act calculated by the activity calculation unit 109 for each quantization coding block. In the following, since the calculation is performed for each quantization coding block, the coding process order count number of the quantization parameter by the code amount control is deleted and represented by bQP.

量子化パラメータ算出部110は、直前に符号化したピクチャ内の平均アクティビティをavg_actとして記録しておき、符号化ブロックの正規化アクティビティNactを次式により算出する。   The quantization parameter calculation unit 110 records the average activity in the picture encoded immediately before as avg_act, and calculates the normalized activity Nact of the encoded block by the following equation.

Figure 0006256572
Figure 0006256572

ここで、上式の係数"2"は量子化パラメータのダイナミックレンジを表す値であり、0.5〜2.0の範囲をとる正規化アクティビティNactが算出される。ただし、量子化パラメータの係数は2に限らず、画像の特性等に応じて他の値にしても良い。   Here, the coefficient “2” in the above equation is a value representing the dynamic range of the quantization parameter, and a normalized activity Nact having a range of 0.5 to 2.0 is calculated. However, the coefficient of the quantization parameter is not limited to 2, and may be other values depending on the characteristics of the image.

尚、avg_actは、符号化過程の前に、予めピクチャ内の全てのブロックに対してアクティビティを算出し、その平均値をavg_actとしてもよい。更に、avc_actは符号化情報格納メモリ113に格納しておいてもよく、必要に応じて量子化パラメータ算出部110が符号化情報格納メモリ113からavg_actを取得してもよい。   Note that avg_act may be calculated in advance for all blocks in the picture before the encoding process, and the average value may be avg_act. Furthermore, avc_act may be stored in the encoded information storage memory 113, and the quantization parameter calculation unit 110 may acquire avg_act from the encoded information storage memory 113 as necessary.

算出された正規化アクティビティNactを基準となる量子化パラメータbQPと次式の如く乗算を行い、符号化ブロックの量子化パラメータQPを得る。   The calculated normalization activity Nact is multiplied by the reference quantization parameter bQP as in the following equation to obtain the quantization parameter QP of the coding block.

Figure 0006256572
Figure 0006256572

こうして算出された符号化ブロックの量子化パラメータは、符号化情報格納メモリ113及び差分量子化パラメータ生成部111に供給される。   The quantization parameter of the coding block calculated in this way is supplied to the coding information storage memory 113 and the differential quantization parameter generation unit 111.

符号化情報格納メモリ113は、量子化パラメータ算出部110にて算出された量子化パラメータや既に符号化が終了した過去の量子化符号化ブロックの量子化パラメータが格納されるだけでなく、符号化ブロックの動きベクトルや予測モード等の符号化情報も格納され、必要に応じて各部が符号化情報を取得する。   The encoded information storage memory 113 not only stores the quantization parameter calculated by the quantization parameter calculation unit 110 and the quantization parameter of the past quantization encoded block that has already been encoded, Coding information such as block motion vectors and prediction modes is also stored, and each unit obtains coding information as necessary.

予測量子化パラメータ導出部114は、符号化情報格納メモリ113から既符号化済みの量子化パラメータを用いて、符号化ブロックの量子化パラメータを効率良く符号化、伝送する為の予測量子化パラメータを導出する。   The predicted quantization parameter derivation unit 114 uses the already encoded quantization parameter from the encoded information storage memory 113 to calculate the predicted quantization parameter for efficiently encoding and transmitting the quantization parameter of the encoded block. To derive.

量子化パラメータを効率良く符号化、伝送する為には、量子化パラメータをそのまま符号化するよりも、既符号化済みの量子化符号化ブロックの量子化パラメータから予測された予測量子化パラメータとの差分(差分量子化パラメータ)をとって、その差分量子化パラメータを符号化、伝送する方が効率が良い。符号量制御の観点から見れば、符号化処理順で直前の符号化済みブロックの量子化パラメータを予測量子化パラメータとすると伝送する差分量子化パラメータの値が小さくなり符号量は小さくなる。一方、適応量子化の観点から見れば、量子化符号化ブロックと近接する量子化符号化ブロックとは似た絵柄となることが多いので、量子化符号化ブロックに近接する量子化符号化ブロックのアクティビティは符号化ブロックのアクティビティと近い値となり、近接する量子化符号化ブロックの量子化パラメータを予測量子化パラメータとすると伝送する差分量子化パラメータの値が小さくなり、符号量は小さくなる。その為、AVCでは、図4で示されるように、量子化パラメータを伝送する単位がマクロブロック(16x16画素群)で固定されており、ラスタスキャン順に符号化ブロックの直前に符号化をした左隣に隣接するブロックの量子化パラメータを予測量子化パラメータとし、符号化ブロックの量子化パラメータと予測量子化パラメータとの差分をとり、差分量子化パラメータを符号化、伝送する方法が採用されている。つまり、AVCでは符号量制御を想定した量子化パラメータの予測に最適化されている。但し、AVCは後述する階層ツリー符号化を行わないので、画像の左端以外は、直前のブロックが左ブロックである為、隣接ブロックの量子化パラメータを予測量子化パラメータとして使用することになり、適応量子化を想定した予測にもほぼ最適化されていると言える。その為、AVCのように、量子化パラメータを伝送する単位が固定され、階層ツリー符号化を行わないような構成の場合には、量子化パラメータの予測は直前の符号化済みブロックが最適だと言える。   In order to efficiently encode and transmit the quantization parameter, rather than encoding the quantization parameter as it is, the predicted quantization parameter predicted from the quantization parameter of the already-encoded quantization coding block is used. It is more efficient to take the difference (difference quantization parameter) and encode and transmit the difference quantization parameter. From the viewpoint of code amount control, if the quantization parameter of the previous encoded block in the encoding processing order is the predicted quantization parameter, the value of the differential quantization parameter to be transmitted becomes small and the code amount becomes small. On the other hand, from the viewpoint of adaptive quantization, the quantization coding block and the quantization coding block adjacent to the quantization coding block often have a similar pattern, so that the quantization coding block adjacent to the quantization coding block The activity has a value close to the activity of the coding block. If the quantization parameter of the adjacent quantization coding block is the prediction quantization parameter, the value of the differential quantization parameter to be transmitted is small, and the code amount is small. Therefore, in AVC, as shown in FIG. 4, the unit for transmitting the quantization parameter is fixed in a macro block (16 × 16 pixel group), and the left adjacent to the coded block immediately before the coded block in the raster scan order. A method is adopted in which the quantization parameter of the block adjacent to the block is used as the prediction quantization parameter, the difference between the quantization parameter of the coding block and the prediction quantization parameter is taken, and the difference quantization parameter is encoded and transmitted. That is, AVC is optimized for prediction of quantization parameters assuming code amount control. However, since AVC does not perform hierarchical tree coding, which will be described later, since the immediately preceding block is the left block except for the left end of the image, the quantization parameter of the adjacent block is used as the prediction quantization parameter. It can be said that it is almost optimized for prediction assuming quantization. Therefore, as in AVC, when the unit for transmitting the quantization parameter is fixed and the hierarchical tree coding is not performed, the prediction of the quantization parameter is optimal for the immediately preceding coded block. I can say that.

しかしながら、階層ツリー符号化を行う場合、AVCと同様に直前のブロックの量子化パラメータを予測量子化パラメータとして使用すると、符号量制御には最適化されるが、適応量子化を用いて量子化パラメータを伝送する場合、最適な予測値とはならず、差分量子化パラメータの符号量が増大してしまうという課題が生じる。   However, when hierarchical tree coding is performed, if the quantization parameter of the immediately preceding block is used as a predictive quantization parameter as in AVC, the quantization parameter is optimized, but adaptive quantization is used to quantize the quantization parameter. Is not an optimal prediction value, and there is a problem that the code amount of the differential quantization parameter increases.

ここで、階層ツリー符号化について説明する。ここで言う階層ツリー符号化とは、ツリーブロック単位(ここでは64x64ブロックとする)でそれぞれ符号化単位を表すdepthを決定し、決定されたdepthで符号化ブロック単位の量子化符号化を行う。これにより、画像の精細度に依存した最適なdepthを決定して量子化符号化を行うことができ、符号化効率を大幅に向上する。   Here, hierarchical tree coding will be described. In the hierarchical tree coding referred to here, a depth representing a coding unit is determined for each tree block (here, 64 × 64 blocks), and quantization coding is performed for each coding block using the determined depth. As a result, the optimum depth depending on the definition of the image can be determined and quantization coding can be performed, and the coding efficiency is greatly improved.

図5に階層ツリー符号化構造の符号化処理順序を示す。図5の上図に示されるように、画面内を所定の同一サイズの正方の矩形の単位にて均等分割する。この単位をツリーブロックと呼び、画像内での符号化/復号ブロックを特定するためのアドレス管理の基本単位とする。ツリーブロックは画像内のテクスチャ等に応じて、符号化処理を最適にすべく、必要に応じてツリーブロック内を階層的に4分割して、ブロックサイズの小さいブロックにすることが出来る。このように小さなブロックに分割して構成される階層的なブロック構造をツリーブロック構造と呼び、この分割されたブロックを符号化ブロック(CU:Coding Unit)と呼び、符号化及び復号を行う際の処理の基本単位とする。図5の下図はツリーブロックを4分割してできた各CUのうち、左下を除く3つのCUさらに4分割した例である。本実施例においては、CUと量子化符号化ブロックを同一の単位と設定し、つまり、CU単位で量子化パラメータを設定するものとする。ツリーブロックは最大サイズの符号化ブロックでもある。ただし、量子化符号化ブロックの単位をCUと同一でなく、独立した所定単位を設定することも可能である。つまり、量子化符号化ブロックは、CUの大きさに依存せず、16x16ブロック単位固定であるとすることも可能である。量子化符号化ブロックの単位をCUと同一にしない場合の例について後述する。   FIG. 5 shows the encoding processing order of the hierarchical tree encoding structure. As shown in the upper diagram of FIG. 5, the inside of the screen is equally divided in units of square rectangles having a predetermined same size. This unit is called a tree block, and is a basic unit of address management for specifying an encoding / decoding block in an image. The tree block can be divided into four hierarchical blocks as necessary to make the block smaller in size in order to optimize the encoding process according to the texture in the image. Such a hierarchical block structure divided into small blocks is called a tree block structure, and this divided block is called a coding block (CU: Coding Unit) for encoding and decoding. The basic unit of processing. The lower diagram of FIG. 5 shows an example in which three CUs except the lower left are further divided into four CUs obtained by dividing the tree block into four. In this embodiment, the CU and the quantized coding block are set as the same unit, that is, the quantization parameter is set in CU unit. The tree block is also the maximum size coding block. However, the unit of the quantization coding block is not the same as that of the CU, and an independent predetermined unit can be set. In other words, the quantization coding block can be fixed to a 16 × 16 block unit without depending on the size of the CU. An example in which the unit of the quantized coding block is not the same as that of the CU will be described later.

このような階層ツリー符号化では、符号化順序は図4のAVCのようなラスタスキャン順(左〜右)と異なる為、量子化パラメータが直前の符号化済みブロックと左の隣接ブロックとで等しくならない場合が多々ある。例えば階層ツリー符号化の一例として、図6で示されるように、符号化対象とするツリーブロックの中の左上の量子化符号化ブロック(図6中の斜線部の矩形)は、左に隣接するツリーブロックの中で分割されたブロックのうち、最後に符号化された右下の符号化済みブロック(図6中の灰色部の矩形)の量子化パラメータを予測に用いる。また、図7に示されるように、符号化対象とするツリーブロックの中の左下の量子化符号化ブロック(図7中の斜線部の矩形)は、同じツリーブロックの中で分割され、直前に量子化符号化されたブロック(図7中の灰色部の矩形)の量子化パラメータを予測に用いることになる。その為、直前の符号化済みブロックから量子化パラメータを予測するだけでは、符号量制御に最適化された予測は行うことが出来ても、分割によってブロック間の距離を隔てる為に、適応量子化に適した予測を行うことが出来ないので、差分量子化パラメータの符号量が増大し、符号化効率を低減させてしまう。   In such hierarchical tree coding, since the coding order is different from the raster scan order (left to right) as in AVC in FIG. 4, the quantization parameter is the same in the immediately preceding coded block and the left adjacent block. There are many cases where this is not possible. For example, as an example of hierarchical tree coding, as shown in FIG. 6, the upper left quantization coding block (the rectangle in the shaded area in FIG. 6) in the tree block to be coded is adjacent to the left. Among the blocks divided in the tree block, the quantization parameter of the lower right encoded block (rectangle in gray in FIG. 6) encoded last is used for prediction. In addition, as shown in FIG. 7, the lower left quantization coding block (the shaded rectangle in FIG. 7) in the tree block to be coded is divided in the same tree block and immediately before The quantization parameter of the quantized block (gray rectangle in FIG. 7) is used for prediction. Therefore, even if the prediction optimized for the code amount control can be performed only by predicting the quantization parameter from the previous coded block, adaptive quantization is used to separate the distance between the blocks by division. Therefore, the code amount of the differential quantization parameter increases, and the coding efficiency is reduced.

また、一意に左隣の量子化符号化ブロックの量子化パラメータを予測量子化パラメータとすると、図8のようにツリーブロック内の左上の量子化符号化ブロックの予測量子化パラメータは、1つ前のツリーブロックの量子化符号化ブロックが多く分割されているほど、符号化順で離れた量子化パラメータとなっている。そのため、符号化順で近い量子化符号化ブロックからの量子化パラメータ予測が効率の良い符号量制御の観点では、符号化効率が低下してしまう。   Also, assuming that the quantization parameter of the quantization coding block on the left adjacent to the left is the prediction quantization parameter, the prediction quantization parameter of the quantization coding block at the upper left in the tree block is the previous one as shown in FIG. The more quantization coding blocks of the tree block are divided, the more the quantization parameters are separated in the coding order. Therefore, in terms of code amount control in which quantization parameter prediction from a quantization coding block that is close in coding order is efficient, coding efficiency decreases.

つまり、空間的に近接する量子化符号化ブロックから量子化パラメータを予測する場合、量子化符号化ブロックよりも遠い過去の時点で算出された量子化パラメータを用いる場合があるため、図19に示されるように、量子化符号化ブロックの処理順jに対して、空間的に隣接する量子化符号化ブロックの処理順iは、量子化符号化ブロックとして空間的に隣接していても、符号量制御の観点から見れば、図9に示すように、符号化処理順ではi<<jとなるので、隣接する量子化符号化ブロックの量子化パラメータは相関性が高いとは言えない。また、空間的に近接する量子化符号化ブロックの中から、符号化処理順が近い量子化符号化ブロックからのみ量子化パラメータ予測を行う場合、空間的に隣接する量子化符号化ブロックがツリーブロック外であるかどうかを判定し、ツリーブロック外である場合には、符号化処理順が遠い量子化符号化ブロックであると判断し、ツリーブロック内の量子化パラメータのみ予測に用いことで、符号量制御の観点で不適な量子化パラメータの導出を回避することができる。しかし、量子化パラメータの予測を行う単位で、空間的に隣接する量子化符号化ブロックがツリーブロック外であるかどうかを判定する処理が必要になることや、ツリーブロック内であっても符号化処理順が近くない量子化符号化ブロックが存在するなど、符号量制御の観点からは必ずしも最適な処理であるとは言えない場合もある。   That is, when predicting a quantization parameter from a quantization coding block that is spatially close, a quantization parameter calculated at a past time point farther than the quantization coding block may be used. As shown in the figure, the processing order i of the quantization coding blocks spatially adjacent to the processing order j of the quantization coding block is the code amount even if spatially adjacent as the quantization coding block. From the viewpoint of control, as shown in FIG. 9, since i << j in the encoding processing order, it cannot be said that the quantization parameters of adjacent quantization coding blocks are highly correlated. In addition, when performing quantization parameter prediction only from quantization coding blocks that are close in spatial order among the quantization coding blocks that are spatially close, the spatially adjacent quantization coding blocks are tree blocks. If it is outside the tree block, it is determined that the coding processing block is far from the coding processing order, and only the quantization parameter in the tree block is used for prediction. Derivation of quantization parameters that are inappropriate in terms of quantity control can be avoided. However, it is necessary to determine whether the quantization coding block spatially adjacent is outside the tree block in the unit for predicting the quantization parameter, or even within the tree block. In some cases, the processing is not necessarily optimal from the viewpoint of code amount control, for example, there is a quantized coding block whose processing order is not close.

そこで、本発明の実施の形態に係る予測量子化パラメータ導出部114は、直前の複数の量子化符号化ブロックの量子化パラメータを用いて予測量子化パラメータを導出することで、符号量制御の観点での予測効率の高い符号化順で近い量子化パラメータを用いつつ、適応量子化の観点での予測効率の高い空間的に近接する量子化符号化ブロックからの量子化パラメータの予測を可能と方法を実現する。また、空間的に近接する量子化パラメータを取得するための量子化パラメータの保存を最小限に抑制することで、少ないメモリ量での量子化パラメータの予測を実現する。予測量子化パラメータ導出部114の詳細は後述する。   Therefore, the predictive quantization parameter deriving unit 114 according to the embodiment of the present invention derives the predictive quantization parameter using the quantization parameters of the immediately preceding plurality of quantized coding blocks, so that it is possible to control the amount of code. Enables prediction of quantization parameters from spatially adjacent quantized coding blocks with high prediction efficiency from the viewpoint of adaptive quantization, while using quantization parameters close in encoding order with high prediction efficiency Is realized. In addition, prediction of the quantization parameter with a small amount of memory is realized by minimizing the storage of the quantization parameter for obtaining the quantization parameter that is spatially close. Details of the predicted quantization parameter deriving unit 114 will be described later.

差分量子化パラメータ生成部111は、量子化パラメータ算出部110にて算出された量子化符号化ブロックの量子化パラメータに対して、予測量子化パラメータ導出部114にて導出された予測量子化パラメータと減算を行い、差分量子化パラメータを算出する。予測量子化パラメータは復号時にも復号済みの量子化符号化ブロックから符号化時と同様に導出されるので、差分符号化パラメータを符号化対象とすることで、符号化と復号で矛盾が生じず、量子化パラメータの符号量を削減することが可能となる。算出された差分量子化パラメータは第1の符号化ビット列生成部112に供給される。   The differential quantization parameter generation unit 111 performs the prediction quantization parameter derived by the prediction quantization parameter deriving unit 114 on the quantization parameter of the quantization coding block calculated by the quantization parameter calculation unit 110, and Subtraction is performed to calculate a difference quantization parameter. Predictive quantization parameters are derived from decoded quantized blocks in the same way as at the time of encoding at the time of decoding, so there is no contradiction between encoding and decoding by making the differential encoding parameter to be encoded. Thus, it is possible to reduce the code amount of the quantization parameter. The calculated difference quantization parameter is supplied to the first encoded bit string generation unit 112.

第1の符号化ビット列生成部112は、差分量子化パラメータ生成部111によって算出された差分量子化パラメータを規定のシンタックス規則に従ってエントロピー符号化して第1の符号化ビット列を生成する。図10に差分量子化パラメータのエントロピー符号化に使用される符号化変換テーブルの一例を示す。まず、最も出現しやすい差分量子化パラメータが0であることを1ビット目で表現し、続いて2ビット目では正負のフラグ、3ビット目では差分量子化パラメータの絶対値が1であるかどうか、4ビット目では差分量子化パラメータの絶対値が2であるかどうか…と続く。このような差分量子化パラメータの符号化では、差分量子化パラメータの絶対値が小さい程短い符号長を与えつつ、ビット長で差分量子化パラメータの絶対値がわかるようになっている。そのため、複雑でない構成で且つ差分量子化パラメータの発生符号量を抑制することができる。また、図10は差分量子化パラメータの絶対値に比例してビット長が長くなる符号化テーブルであるため、小さい差分量子化パラメータの伝送時に発生符号量が非常に小さくなり、大きな差分量子化パラメータの伝送時には発生符号量が比較的大きくなる傾向を持つ。図10のような符号化テーブルを用いた差分量子化パラメータの符号化を行う場合、差分量子化パラメータが0になる確率を向上させるだけでなく、値の大きな差分量子化パラメータができるだけ発生させないような予測量子化パラメータの導出が重要となる。第1の符号化ビット列生成部112は、差分量子化パラメータに対応する符号ビット列を図10のテーブルから抽出し、その符号ビット列を符号化ビット列多重化部115に供給する。   The first encoded bit string generation unit 112 generates a first encoded bit string by entropy encoding the differential quantization parameter calculated by the differential quantization parameter generation unit 111 according to a specified syntax rule. FIG. 10 shows an example of a coding conversion table used for entropy coding of the differential quantization parameter. First, the first bit indicates that the differential quantization parameter that is most likely to appear is 0, then the second bit is a positive / negative flag, and the third bit is whether the absolute value of the differential quantization parameter is 1 or not. In the fourth bit, whether or not the absolute value of the differential quantization parameter is 2 continues. In such encoding of the differential quantization parameter, the smaller the absolute value of the differential quantization parameter is, the shorter the code length is given, and the absolute value of the differential quantization parameter is known by the bit length. Therefore, it is possible to suppress the generated code amount of the differential quantization parameter with a non-complex configuration. FIG. 10 is an encoding table in which the bit length is increased in proportion to the absolute value of the differential quantization parameter. Therefore, the generated code amount becomes very small when a small differential quantization parameter is transmitted, and a large differential quantization parameter is obtained. During transmission, the amount of generated codes tends to be relatively large. When the differential quantization parameter is encoded using the encoding table as shown in FIG. 10, not only the probability that the differential quantization parameter becomes 0 but also the differential quantization parameter having a large value is not generated as much as possible. It is important to derive a predictive quantization parameter. The first encoded bit string generation unit 112 extracts a code bit string corresponding to the differential quantization parameter from the table of FIG. 10 and supplies the code bit string to the encoded bit string multiplexing unit 115.

上述した本実施例の動画像符号化装置100に対応する動画像復号装置200の中で太点線で囲まれた諸部220の各部の動作について説明する。   The operation of each unit of the units 220 surrounded by the thick dotted line in the video decoding device 200 corresponding to the video encoding device 100 of the above-described embodiment will be described.

諸部220では、最初に第1符号化ビット列復号部202にて復号された差分量子化パラメータが量子化パラメータ生成部203に供給される。また、差分量子化パラメータ以外の符号化情報が必要に応じて符号化情報格納メモリ204に格納される。   In the units 220, the differential quantization parameter first decoded by the first encoded bit string decoding unit 202 is supplied to the quantization parameter generation unit 203. Also, encoded information other than the differential quantization parameter is stored in the encoded information storage memory 204 as necessary.

量子化パラメータ生成部203では、第1符号化ビット列復号部202から供給される差分量子化パラメータと予測量子化パラメータ導出部205にて導出される量子化パラメータとを加算して、復号ブロックの量子化パラメータを算出し、逆量子化・逆直交変換部207及び符号化情報格納メモリ204に供給する。   The quantization parameter generation unit 203 adds the differential quantization parameter supplied from the first encoded bit string decoding unit 202 and the quantization parameter derived by the prediction quantization parameter deriving unit 205 to obtain the quantization of the decoded block. The quantization parameter is calculated and supplied to the inverse quantization / inverse orthogonal transform unit 207 and the encoded information storage memory 204.

符号化情報格納メモリ204は、復号が終了した量子化符号化ブロックの量子化パラメータが格納される。更に、第1符号化ビット列復号部202にて復号されたブロック単位の符号化情報だけでなく、ピクチャやスライス単位で生成される符号化情報も必要に応じて格納される。   The encoded information storage memory 204 stores the quantization parameter of the quantized encoded block that has been decoded. Furthermore, not only the block unit encoded information decoded by the first encoded bit string decoding unit 202 but also the encoded information generated in units of pictures and slices are stored as necessary.

予測量子化パラメータ導出部205は、既復号済みのブロックの量子化パラメータを用いて、予測量子化パラメータを導出し、量子化パラメータ生成部203に供給する。量子化パラメータ生成部203で算出された量子化パラメータは符号化情報格納メモリ204に格納され、以降に復号する量子化符号化ブロックの予測量子化パラメータの導出時に使用される。こうして得られる復号済みの量子化パラメータは、動画像符号化装置100の予測量子化パラメータ導出部114が符号化情報格納メモリ113から取得する量子化パラメータと同一である。予測量子化パラメータ導出部205は動画像符号化装置100の予測量子化パラメータ導出部114と同等の機能を有しているので、符号化情報格納メモリ204から供給される量子化パラメータが同じであれば、符号化時と同一の予測量子化パラメータが導出される。   The predicted quantization parameter deriving unit 205 derives a predicted quantization parameter using the quantization parameter of the already decoded block, and supplies the predicted quantization parameter to the quantization parameter generating unit 203. The quantization parameter calculated by the quantization parameter generation unit 203 is stored in the encoding information storage memory 204, and is used when deriving the predicted quantization parameter of the quantization coding block to be decoded later. The decoded quantization parameter obtained in this way is the same as the quantization parameter acquired from the encoded information storage memory 113 by the predictive quantization parameter deriving unit 114 of the video encoding device 100. Since the predictive quantization parameter deriving unit 205 has the same function as the predictive quantization parameter deriving unit 114 of the video encoding device 100, the quantization parameter supplied from the encoded information storage memory 204 is the same. For example, the same prediction quantization parameter as that at the time of encoding is derived.

こうして符号化側で導出された予測量子化パラメータが、復号側でも矛盾無く導出されることになる。   Thus, the predicted quantization parameter derived on the encoding side is derived on the decoding side without any contradiction.

以下、予測量子化パラメータ導出部114及び205で共通に実施される予測量子化パラメータを導出する方法の詳細について説明する。   Hereinafter, the details of the method for deriving the predicted quantization parameter that is commonly performed by the predicted quantization parameter deriving units 114 and 205 will be described.

予測量子化パラメータ導出部114の詳細な動作について説明する。図11に示されるように、符号化はツリーブロック単位に画面の左上から右下に向かってラスタスキャン順に行われる。今、符号化対象ツリーブロックを図11中の斜線矩形で表すと、符号化済みのツリーブロックは図11中の灰色部分で表される。ツリーブロック内部では符号化条件に応じて、階層ツリー符号化がなされることから、符号化ブロックはツリーブロック以下のサイズに分割にされるので、符号化対象ツリーブロック内部の符号化ブロックと上のツリーブロック内部の符号化済みブロックとは隣接しているものの、符号化処理順では大きく離れていることになる。その為、符号量制御により算出される量子化パラメータは、符号化処理順で算出されるので、符号化ブロックの量子化パラメータと上のツリーブロック内部の符号化済みブロックの量子化パラメータが近い値になるとは言えない。そこで、直前の複数の量子化符号化ブロックの量子化パラメータを用いて予測量子化パラメータを符号化する。   The detailed operation of the predicted quantization parameter deriving unit 114 will be described. As shown in FIG. 11, encoding is performed in the order of raster scan from the upper left to the lower right of the screen in units of tree blocks. If the encoding target tree block is represented by a hatched rectangle in FIG. 11, the encoded tree block is represented by a gray portion in FIG. Since hierarchical tree coding is performed in the tree block according to the coding conditions, the coding block is divided into a size equal to or smaller than the tree block. Although it is adjacent to the encoded block inside the tree block, it is far away in the encoding processing order. Therefore, since the quantization parameter calculated by the code amount control is calculated in the order of encoding processing, the quantization parameter of the encoding block is close to the quantization parameter of the encoded block in the upper tree block. I can't say. Therefore, the prediction quantization parameter is encoded using the quantization parameters of the immediately preceding plurality of quantization coding blocks.

図12〜図15は、階層ツリー符号化により分割されたツリーブロック内部のそれぞれ、左上、右上、左下、右下における量子化符号化ブロックの予測元を示す図である。   12 to 15 are diagrams illustrating prediction sources of the quantized coded blocks in the upper left, upper right, lower left, and lower right inside the tree block divided by the hierarchical tree coding, respectively.

図12のツリーブロック内部の左上の量子化符号化ブロックでは、1つ前のツリーブロック内の2つの量子化符号化から、それぞれ符号化順で1つ前の量子化符号化ブロックの量子化パラメータprevQP1、及び符号化順で2つ前の量子化符号化ブロックの量子化パラメータprevQP2が導出される。   In the quantization coding block at the upper left inside the tree block in FIG. 12, the quantization parameter of the previous quantization coding block in the coding order from the two quantization codings in the previous tree block. prevQP1 and the quantization parameter prevQP2 of the quantization coding block two before in the coding order are derived.

図13のツリーブロック内部の右の量子化符号化ブロックでは、1つ前のツリーブロック内の量子化符号化から1つ、同一ツリーブロック内の左側の量子化符号化ブロックから、それぞれ符号化順で1つ前の量子化符号化ブロックの量子化パラメータprevQP1、及び符号化順で2つ前の量子化符号化ブロックの量子化パラメータprevQP2が導出される。   In the right quantization coding block in the tree block of FIG. 13, the coding order is one from the quantization coding in the previous tree block, and from the left quantization coding block in the same tree block. Thus, the quantization parameter prevQP1 of the previous quantization coding block and the quantization parameter prevQP2 of the second quantization coding block in the coding order are derived.

図14のツリーブロック内部の左下の量子化符号化ブロックでは、同一ツリーブロック内の上側の量子化符号化ブロック及び右上の量子化符号化ブロックから、それぞれ符号化順で1つ前の量子化符号化ブロックの量子化パラメータprevQP1、及び符号化順で2つ前の量子化符号化ブロックの量子化パラメータprevQP2が導出される。   In the lower left quantization coding block in the tree block of FIG. 14, the previous quantization code in the coding order from the upper quantization coding block and the upper right quantization coding block in the same tree block, respectively. The quantization parameter prevQP1 of the quantization block and the quantization parameter prevQP2 of the quantization coding block two before in the coding order are derived.

図15のツリーブロック内部の右下の量子化符号化ブロックでは、同一ツリーブロック内の左側の量子化符号化ブロック及び上側の量子化符号化ブロックから、それぞれ符号化順で1つ前の量子化符号化ブロックの量子化パラメータprevQP1、及び符号化順で2つ前の量子化符号化ブロックの量子化パラメータprevQP2が導出される。   In the lower right quantization coding block in the tree block of FIG. 15, the quantization quantization one previous in the coding order from the left quantization coding block and the upper quantization coding block in the same tree block, respectively. The quantization parameter prevQP1 of the coding block and the quantization parameter prevQP2 of the quantization coding block two before in the coding order are derived.

予測量子化パラメータは、prevQP1及びprevQP2の平均値によって決定する。   The predicted quantization parameter is determined by the average value of prevQP1 and prevQP2.

Figure 0006256572
Figure 0006256572

図12、図13の例の場合には、空間的に離れた量子化符号化ブロックが量子化パラメータの予測元となるが、予測量子化パラメータの平均値をとるため、prevQP1が突発で信頼性の低い量子化パラメータになった場合でも、誤差が平均化され、量子化パラメータの予測効率が向上する。空間的に離れた量子化符号化ブロックを用いても複数の予測量子化パラメータの平均値を用いることは、図10の差分量子化パラメータの符号化テーブルを用いた場合、値の大きな差分量子化パラメータができるだけ発生させないような予測量子化パラメータの導出が重要となるため、誤差の平均化の効果が特に顕著になる。   In the case of the examples of FIGS. 12 and 13, the quantized coding blocks that are spatially separated serve as the prediction source of the quantization parameter, but since the average value of the prediction quantization parameter is taken, prevQP1 is unexpectedly reliable. Even when the quantization parameter becomes low, the error is averaged, and the prediction efficiency of the quantization parameter is improved. Even if spatially separated quantized coding blocks are used, the average value of a plurality of predictive quantization parameters is used when the difference quantization parameter coding table of FIG. 10 is used. Since it is important to derive a predictive quantization parameter that generates as few parameters as possible, the effect of error averaging becomes particularly significant.

図14、図15の例の場合には、空間的に近接した量子化符号化ブロックが量子化パラメータの予測元となるため、量子化パラメータの予測効率の向上が特に顕著である。つまり、符号化順的にも空間的にも近い量子化符号化ブロックからの量子化パラメータの予測が可能となり、符号量制御と適応量子化の双方に適した量子化パラメータの予測が行えるためである。   In the example of FIGS. 14 and 15, since the quantized coding blocks that are spatially close to each other serve as a quantization parameter prediction source, the improvement in quantization parameter prediction efficiency is particularly remarkable. In other words, it is possible to predict quantization parameters from quantization coding blocks that are close in coding order and spatially, and can predict quantization parameters suitable for both code amount control and adaptive quantization. is there.

このように、直前の複数の量子化符号化ブロックの量子化パラメータを用いて予測量子化パラメータを導出することで、符号量制御の観点での予測効率の高い符号化順で近い量子化パラメータを用いつつ、適応量子化の観点での予測効率の高い空間的に近接する量子化符号化ブロックからの量子化パラメータの予測を可能にすることで、差分量子化パラメータの符号量が抑制され、符号化効率が向上する。   In this way, by deriving the prediction quantization parameter using the quantization parameters of the immediately preceding plurality of quantization coding blocks, the quantization parameter close in the coding order with high prediction efficiency in terms of code amount control can be obtained. While enabling the prediction of quantization parameters from spatially adjacent quantization coding blocks with high prediction efficiency in terms of adaptive quantization, the code amount of differential quantization parameters is suppressed, Efficiency.

図16は予測量子化パラメータ導出のフローチャートである。まず、符号化・復号順で直前の量子化符号化ブロックの量子化パラメータprevQPを取得する(S1000)。次に、1つ前の量子化符号化ブロックの量子化パラメータの値が格納されているprevQP1を2つ前の量子化符号化ブロックの量子化パラメータの値を格納するprevQP2に代入する(S1001)。次に、S100で取得した直前の量子化符号化ブロックの量子化パラメータprevQPを1つ前の量子化符号化ブロックの量子化パラメータの値を格納するprevQP1に代入する(S1002)。最後に、prevQP1とprevQP2の平均値を演算し、予測量子化パラメータとする(S1003)。   FIG. 16 is a flowchart for deriving the predicted quantization parameter. First, the quantization parameter prevQP of the immediately preceding quantization coding block in the coding / decoding order is acquired (S1000). Next, prevQP1 in which the quantization parameter value of the previous quantization coding block is stored is substituted into prevQP2 in which the quantization parameter value of the previous quantization coding block is stored (S1001). . Next, the quantization parameter prevQP of the previous quantization coding block acquired in S100 is substituted into prevQP1 that stores the value of the quantization parameter of the previous quantization coding block (S1002). Finally, the average value of prevQP1 and prevQP2 is calculated and used as the predicted quantization parameter (S1003).

なお、ピクチャやスライスの先頭では、prevQP1及びprevQP2はスライスヘッダ等に記述されているスライスQPで初期化する。   Note that at the head of the picture or slice, prevQP1 and prevQP2 are initialized with the slice QP described in the slice header or the like.

図17は予測量子化パラメータの演算処理の例を示す図である。実際の量子化パラメータの予測処理では、量子化符号化ブロックが切り替わる時に、prevQP1の値をprevQP2のバッファにコピーして、prevQP1を保存するバッファに直前の量子化符号化ブロックの量子化パラメータをロードする。平均値演算は常に、prevQP1バッファ及びprevQP2バッファに対して施される。これにより、量子化パラメータの保存を最小限に抑制することで、少ないメモリ量での量子化パラメータの予測を実現できる。また、空間的に隣接する量子化符号化ブロックのアドレス計算及び空間的に隣接する量子化符号化ブロックがツリーブロック内であるかどうか等の条件判断を行わずに、符号化順・復号化順で直前の量子化パラメータ群を用いて、空間的に近接した量子化符号化ブロックから量子化パラメータの予測を行うことができるため、処理量が少なく符号量制御及び適応量子化の双方に適した量子化パラメータの予測を行うことができる。   FIG. 17 is a diagram illustrating an example of predictive quantization parameter calculation processing. In the actual quantization parameter prediction process, when the quantization coding block is switched, the value of prevQP1 is copied to the buffer of prevQP2, and the quantization parameter of the previous quantization coding block is loaded to the buffer storing prevQP1. To do. The average value calculation is always applied to the prevQP1 buffer and the prevQP2 buffer. Thereby, the prediction of the quantization parameter with a small amount of memory can be realized by suppressing the storage of the quantization parameter to the minimum. In addition, without calculating the address of spatially adjacent quantized coding blocks and determining whether or not the spatially adjacent quantized coded blocks are in a tree block, the coding order and decoding order Since the quantization parameter can be predicted from the quantization coding blocks spatially close by using the immediately preceding quantization parameter group, the processing amount is small and suitable for both code amount control and adaptive quantization. Quantization parameters can be predicted.

また、符号化順で3つ前の量子化符号化ブロックの量子化パラメータprevQP3や4つ前の量子化符号化ブロックの量子化パラメータprevQP4を用いて、平均値を量子化パラメータとしてももちろん良い。予測元の量子化パラメータを増やした場合、適応量子化に適した量子化パラメータの予測が可能となる。   Of course, the average value may be used as the quantization parameter by using the quantization parameter prevQP3 of the quantization coding block three before in the coding order and the quantization parameter prevQP4 of the quantization coding block four before. When the quantization parameter of the prediction source is increased, it is possible to predict a quantization parameter suitable for adaptive quantization.

(実施の形態2)
実施の形態2では、1つ前に符号化した量子化符号化ブロックの量子化パラメータと、2つ前に符号化した量子化符号化ブロックの量子化パラメータの平均値ではなく、重みづけ平均値を取ることのみが実施の形態1と異なる。prevQP1とprevQP2は符号量制御の観点ではprevQP1の方が信頼度が高く、適応量子化の観点でもprevQP1の方が信頼度が高いため、prevQP1に高い重みづけ係数とする。
(Embodiment 2)
In the second embodiment, the weighted average value is not the average value of the quantization parameter of the quantization coding block coded one time ago and the quantization parameter of the quantization coding block coded two times before. The only difference is from the first embodiment. PrevQP1 and prevQP2 have higher reliability in terms of code amount control, and prevQP1 has higher reliability in terms of adaptive quantization. Therefore, prevQP1 has a higher weighting coefficient.

Figure 0006256572
Figure 0006256572

ただし、重みづけ係数は3:1としたが、他の比率にしてももちろん良い。これにより、予測量子化パラメータの信頼度がさらに向上し、差分量子化パラメータの符号量が抑制され、符号化効率が向上する。   However, although the weighting coefficient is 3: 1, other ratios may be used. Thereby, the reliability of a prediction quantization parameter further improves, the code amount of a difference quantization parameter is suppressed, and encoding efficiency improves.

本実施の形態の動画像符号化装置によれば、符号化対象のブロック毎に符号化される量子化パラメータを、符号化済みのブロックの量子化パラメータを用いて、最適な予測量子化パラメータを予測して導出し、量子化パラメータと予測量子化パラメータとの差分をとり符号化することで、量子化パラメータの符号量を削減して、符号化効率を向上させることが出来る。   According to the moving picture encoding apparatus of the present embodiment, the optimal predictive quantization parameter is determined by using the quantization parameter of the encoded block as the quantization parameter encoded for each block to be encoded. By predicting and deriving and encoding by taking the difference between the quantization parameter and the predicted quantization parameter, the coding amount of the quantization parameter can be reduced and the encoding efficiency can be improved.

尚、上述の説明では、量子化符号化ブロックと符号化ブロックを同一単位として量子化パラメータの予測を行ったが、量子化パラメータを符号化、伝送する単位である量子化符号化ブロックを符号化ブロックと異なる単位として量子化パラメータの予測を行うことにしてもよい。   In the above description, the quantization parameter is predicted using the quantization coding block and the coding block as the same unit, but the quantization parameter is encoded and transmitted. The quantization parameter may be predicted as a unit different from the block.

例えば、量子化符号化ブロックの単位を固定とし、量子化符号化ブロックサイズnをビットストリーム内に符号化して伝送してもよい。そのサイズはツリーブロックのブロックの辺の長さに1/2倍(nは0以上の整数)を乗じた値で表される。即ち、ツリーブロックのブロックの辺の長さをnビット右にシフトした値が量子化符号化ブロックの辺の長さとなる。この値はツリーブロック構造と同じようにブロックサイズが決定されるので、ツリーブロックとの親和性が高い。また、ツリーブロック内を均等サイズで分割されるので、符号化情報格納メモリ113及び204に記憶される量子化パラメータの管理や読み出しを簡便化することが出来る。 For example, the unit of the quantization coding block may be fixed, and the quantization coding block size n may be encoded and transmitted in the bitstream. The size is represented by a value obtained by multiplying the length of the side of the block of the tree block by 1/2 n times (n is an integer of 0 or more). That is, a value obtained by shifting the length of the side of the block of the tree block to the right by n bits becomes the length of the side of the quantization coding block. Since this value determines the block size in the same manner as the tree block structure, it has a high affinity with the tree block. Further, since the tree block is divided into equal sizes, management and readout of the quantization parameters stored in the encoded information storage memories 113 and 204 can be simplified.

図18はツリーブロック内部をツリーブロック構造で分割した一例を示す。ツリーブロックのブロックサイズは64×64とし、ツリーブロック内部を階層的に4分割し、1回目の分割で32×32ブロック(図18中の点線矩形)、2回目の分割で16×16ブロック(図18中の斜線矩形)、3回目の分割で8×8ブロック(図18中の白抜き矩形)の符号化ブロックに分割される。ここで、量子化符号化ブロックを16×16の矩形ブロックとすると、量子化符号化ブロックは図18の太点線で表され、量子化符号化ブロック単位に量子化パラメータの予測を行う。   FIG. 18 shows an example in which the inside of a tree block is divided by a tree block structure. The block size of the tree block is 64 × 64, the inside of the tree block is hierarchically divided into four, 32 × 32 blocks (dotted rectangle in FIG. 18) in the first division, and 16 × 16 blocks in the second division ( A hatched rectangle in FIG. 18) is divided into encoded blocks of 8 × 8 blocks (white rectangles in FIG. 18) in the third division. Here, if the quantization coding block is a 16 × 16 rectangular block, the quantization coding block is represented by a thick dotted line in FIG. 18, and the quantization parameter is predicted for each quantization coding block.

符号化対象の符号化ブロックが量子化符号化ブロックブロックサイズよりも大きい場合(32×32ブロック)、例えば図18の点描矩形で表される符号化ブロックの内部は量子化符号化ブロックで4つに分割される。この場合、量子化符号化ブロックにより4分割されているものの、この符号化ブロックに必要な量子化パラメータは1つであるので、符号化ブロックのサイズが量子化符号化ブロックのサイズより大きい場合は、符号化ブロックの量子化パラメータの予測後の差分量子化パラメータを符号化、伝送し、4つに分割された量子化符号化ブロックそれぞれに対応する符号化情報格納メモリ113及び204のメモリ領域に同じ量子化パラメータを記憶する。メモリ内部で量子化パラメータが重複することになるが、量子化パラメータの予測での周囲の符号化済みブロックの量子化パラメータのアクセスしやすくなる。   When the coding block to be coded is larger than the quantization coding block block size (32 × 32 blocks), for example, the inside of the coding block represented by the dotted rectangle in FIG. 18 is four quantization coding blocks. It is divided into. In this case, although it is divided into four by the quantization coding block, since the quantization parameter required for this coding block is one, when the size of the coding block is larger than the size of the quantization coding block, Then, the differential quantization parameter after the prediction of the quantization parameter of the coding block is coded and transmitted, and the coded information storage memories 113 and 204 corresponding to each of the quantization coding blocks divided into four are stored in the memory areas. Store the same quantization parameter. Although the quantization parameter overlaps in the memory, it becomes easy to access the quantization parameter of the surrounding encoded block in the prediction of the quantization parameter.

符号化対象の符号化ブロックが量子化符号化ブロックのブロックサイズと同じ場合(16×16ブロック)、上述した符号化ブロック単位での量子化パラメータの予測の場合と同じである。   When the coding block to be coded is the same as the block size of the quantization coding block (16 × 16 blocks), the same as the case of the prediction of the quantization parameter for each coding block described above.

符号化対象の符号化ブロックが量子化符号化ブロックのブロックサイズより小さい場合(8×8ブロック)、例えば図18の白抜き矩形で表される符号化ブロックであり、量子化符号化ブロックの中に4つの符号化ブロックが収納されるので、量子化符号化ブロックの中の符号化ブロックは個々で量子化パラメータを備えるのではなく、量子化符号化ブロック内で1つの量子化パラメータを備え、その量子化パラメータで個々の符号化ブロックを符号化することとする。   When the coding block to be coded is smaller than the block size of the quantization coding block (8 × 8 blocks), for example, it is a coding block represented by a white rectangle in FIG. Since four coding blocks are accommodated in the coding block, the coding blocks in the quantization coding block do not have quantization parameters individually, but have one quantization parameter in the quantization coding block, It is assumed that each encoded block is encoded with the quantization parameter.

尚、量子化符号化ブロックのブロックサイズは、ビットストリームのヘッダー情報にブロックサイズを直接記述しても良いし、ツリーブロックサイズの1/2倍(nは0以上の整数)にするかを表すビットシフト量を記述しても良い。また、特にビットストリームに記述せずに、符号化と復号で暗黙に量子化グループのサイズを決めておいても良い。 Note that the block size of the quantized coding block may be described directly in the header information of the bitstream, or whether the block size is 1/2 n times the tree block size (n is an integer of 0 or more). The bit shift amount to be expressed may be described. In addition, the quantization group size may be determined implicitly by encoding and decoding without being described in the bitstream.

以上述べた実施の形態の動画像符号化装置が出力する動画像の符号化ストリームは、実施の形態で用いられた符号化方法に応じて復号することができるように特定のデータフォーマットを有しており、動画像符号化装置に対応する動画像復号装置がこの特定のデータフォーマットの符号化ストリームを復号することができる。   The moving image encoded stream output from the moving image encoding apparatus of the embodiment described above has a specific data format so that it can be decoded according to the encoding method used in the embodiment. Therefore, the moving picture decoding apparatus corresponding to the moving picture encoding apparatus can decode the encoded stream of this specific data format.

動画像符号化装置と動画像復号装置の間で符号化ストリームをやりとりするために、有線または無線のネットワークが用いられる場合、符号化ストリームを通信路の伝送形態に適したデータ形式に変換して伝送してもよい。その場合、動画像符号化装置が出力する符号化ストリームを通信路の伝送形態に適したデータ形式の符号化データに変換してネットワークに送信する動画像送信装置と、ネットワークから符号化データを受信して符号化ストリームに復元して動画像復号装置に供給する動画像受信装置とが設けられる。   When a wired or wireless network is used to exchange an encoded stream between a moving image encoding device and a moving image decoding device, the encoded stream is converted into a data format suitable for the transmission form of the communication path. It may be transmitted. In that case, a video transmission apparatus that converts the encoded stream output from the video encoding apparatus into encoded data in a data format suitable for the transmission form of the communication channel and transmits the encoded data to the network, and receives the encoded data from the network Then, a moving image receiving apparatus that restores the encoded stream and supplies the encoded stream to the moving image decoding apparatus is provided.

動画像送信装置は、動画像符号化装置が出力する符号化ストリームをバッファするメモリと、符号化ストリームをパケット化するパケット処理部と、パケット化された符号化データをネットワークを介して送信する送信部とを含む。動画像受信装置は、パケット化された符号化データをネットワークを介して受信する受信部と、受信された符号化データをバッファするメモリと、符号化データをパケット処理して符号化ストリームを生成し、動画像復号装置に提供するパケット処理部とを含む。   The moving image transmitting apparatus is a memory that buffers the encoded stream output from the moving image encoding apparatus, a packet processing unit that packetizes the encoded stream, and transmission that transmits the packetized encoded data via the network. Part. The moving image receiving apparatus generates a coded stream by packetizing the received data, a receiving unit that receives the packetized coded data via a network, a memory that buffers the received coded data, and packet processing. And a packet processing unit provided to the video decoding device.

以上の符号化及び復号に関する処理は、ハードウェアを用いた伝送、蓄積、受信装置として実現することができるのは勿論のこと、ROM(リード・オンリ・メモリ)やフラッシュメモリ等に記憶されているファームウェアや、コンピュータ等のソフトウェアによっても実現することができる。そのファームウェアプログラム、ソフトウェアプログラムをコンピュータ等で読み取り可能な記録媒体に記録して提供することも、有線あるいは無線のネットワークを通してサーバから提供することも、地上波あるいは衛星ディジタル放送のデータ放送として提供することも可能である。   The above processing relating to encoding and decoding can be realized as a transmission, storage, and reception device using hardware, and is stored in a ROM (Read Only Memory), a flash memory, or the like. It can also be realized by firmware or software such as a computer. The firmware program and software program can be recorded on a computer-readable recording medium, provided from a server through a wired or wireless network, or provided as a data broadcast of terrestrial or satellite digital broadcasting Is also possible.

以上、本発明を実施の形態をもとに説明した。実施の形態は例示であり、それらの各構成要素や各処理プロセスの組合せにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。   The present invention has been described based on the embodiments. The embodiments are exemplifications, and it will be understood by those skilled in the art that various modifications can be made to combinations of the respective constituent elements and processing processes, and such modifications are within the scope of the present invention. .

100 動画像符号化装置、 101 画像メモリ、 102 残差信号生成部、 103 直交変換・量子化部、 104 第2の符号化ビット列生成部、 105 逆量子化・逆直交変換部、 106 復号画像信号重畳部、 107 復号画像メモリ、 108 予測画像生成部、 109 アクティビティ算出部、 110 量子化パラメータ算出部、 111 差分量子化パラメータ生成部、 112 第1の符号化ビット列生成部、 113 符号化情報格納メモリ、 114 予測量子化パラメータ導出部、 115 符号化ビット列多重化部、 200 動画像復号装置、 201 ビット列分離部、 202 第1符号化ビット列復号部、 203 量子化パラメータ生成部、 204 符号化情報格納メモリ、 205 予測量子化パラメータ導出部、 206 第2符号化ビット列復号部、 207 逆量子化・逆直交変換部、 208 復号画像信号重畳部、 209 予測画像生成部、 210 復号画像メモリ。   DESCRIPTION OF SYMBOLS 100 Moving image encoding apparatus, 101 Image memory, 102 Residual signal generation part, 103 Orthogonal transformation / quantization part, 104 2nd encoding bit stream production | generation part, 105 Dequantization / inverse orthogonal transformation part, 106 Decoded image signal Superimposition unit, 107 decoded image memory, 108 predicted image generation unit, 109 activity calculation unit, 110 quantization parameter calculation unit, 111 differential quantization parameter generation unit, 112 first encoded bit string generation unit, 113 encoded information storage memory 114 Predictive quantization parameter deriving unit, 115 Encoded bit stream multiplexing unit, 200 Moving picture decoding device, 201 Bit sequence separating unit, 202 First encoded bit sequence decoding unit, 203 Quantization parameter generating unit, 204 Encoding information storage memory 205 Prediction quantization parameter deriving unit 206 second coded bit stream decoding unit, 207 inverse quantization and inverse orthogonal transform unit, 208 decoded image signal superimposing unit, 209 predicted image generation unit, 210 decoded image memory.

Claims (3)

画像を復号すると共に、前記画像を分割した量子化パラメータの管理単位である量子化復号ブロック単位で差分量子化パラメータが符号化されたビットストリームを復号する画像復号装置であって、
前記ビットストリームを前記量子化復号ブロック単位で復号して復号対象の量子化復号ブロックの差分量子化パラメータを抽出する復号部と、
前記復号対象の量子化復号ブロックの予測量子化パラメータを導出する予測量子化パラメータ導出部と、
前記復号対象の量子化復号ブロックの差分量子化パラメータと前記予測量子化パラメータとの加算により前記復号対象の量子化復号ブロックの量子化パラメータを導出する量子化パラメータ導出部と
を備え、
前記予測量子化パラメータ導出部は、前記復号対象の量子化復号ブロックに対して復号順で直前の2つの量子化復号ブロックの量子化パラメータを用いて前記予測量子化パラメータを導出し、
前記2つの量子化復号ブロックの量子化パラメータの平均値を前記予測量子化パラメータとする、
ことを特徴とする画像復号装置。
An image decoding apparatus that decodes a bitstream in which a differential quantization parameter is encoded in units of a quantization decoding block that is a unit for managing quantization parameters obtained by dividing the image,
A decoding unit that decodes the bitstream in units of the quantized decoding block and extracts a differential quantization parameter of a quantization decoding block to be decoded;
A predictive quantization parameter derivation unit for deriving a predictive quantization parameter of the quantization decoding block to be decoded;
A quantization parameter deriving unit for deriving a quantization parameter of the quantization decoding block to be decoded by adding the difference quantization parameter of the quantization decoding block to be decoded and the prediction quantization parameter;
The predictive quantization parameter derivation unit derives the predictive quantization parameter using the quantization parameters of the two preceding quantized decoding blocks in the decoding order with respect to the quantization decoding block to be decoded,
An average value of quantization parameters of the two quantized decoding blocks is set as the predicted quantization parameter.
An image decoding apparatus characterized by that.
画像を復号すると共に、前記画像を分割した量子化パラメータの管理単位である量子化復号ブロック単位で差分量子化パラメータが符号化されたビットストリームを復号する画像復号方法であって、
前記ビットストリームを前記量子化復号ブロック単位で復号して復号対象の量子化復号ブロックの差分量子化パラメータを抽出する復号ステップと、
前記復号対象の量子化復号ブロックの予測量子化パラメータを導出する予測量子化パラメータ導出ステップと、
前記復号対象の量子化復号ブロックの差分量子化パラメータと前記予測量子化パラメータとの加算により前記復号対象の量子化復号ブロックの量子化パラメータを導出する量子化パラメータ導出ステップと
を有し、
前記予測量子化パラメータ導出ステップは、前記復号対象の量子化復号ブロックに対して復号順で直前の2つの量子化復号ブロックの量子化パラメータを用いて前記予測量子化パラメータを導出し、
前記2つの量子化復号ブロックの量子化パラメータの平均値を前記予測量子化パラメータとする、
ことを特徴とする画像復号方法。
An image decoding method for decoding a bitstream in which a differential quantization parameter is encoded in units of a quantization decoding block, which is a quantization parameter management unit obtained by dividing the image,
A decoding step of decoding the bit stream in units of the quantized decoding block and extracting a differential quantization parameter of a quantization decoding block to be decoded;
A predictive quantization parameter derivation step for deriving a predictive quantization parameter of the quantization decoding block to be decoded;
A quantization parameter deriving step for deriving a quantization parameter of the quantization decoding block to be decoded by adding the difference quantization parameter of the quantization decoding block to be decoded and the prediction quantization parameter;
The predictive quantization parameter derivation step derives the predictive quantization parameter using the quantization parameters of the two preceding quantized decoding blocks in the decoding order with respect to the quantization decoding block to be decoded,
An average value of quantization parameters of the two quantized decoding blocks is set as the predicted quantization parameter.
An image decoding method characterized by the above.
画像を復号すると共に、前記画像を分割した量子化パラメータの管理単位である量子化復号ブロック単位で差分量子化パラメータが符号化されたビットストリームを復号する画像復号プログラムであって、
前記ビットストリームを前記量子化復号ブロック単位で復号して復号対象の量子化復号ブロックの差分量子化パラメータを抽出する復号ステップと、
前記復号対象の量子化復号ブロックの予測量子化パラメータを導出する予測量子化パラメータ導出ステップと、
前記復号対象の量子化復号ブロックの差分量子化パラメータと前記予測量子化パラメータとの加算により前記復号対象の量子化復号ブロックの量子化パラメータを導出する量子化パラメータ導出ステップと
をコンピュータに実行させ、
前記予測量子化パラメータ導出ステップは、前記復号対象の量子化復号ブロックに対して復号順で直前の2つの量子化復号ブロックの量子化パラメータを用いて前記予測量子化パラメータを導出し、
前記2つの量子化復号ブロックの量子化パラメータの平均値を前記予測量子化パラメータとする、
ことを特徴とする画像復号プログラム。
An image decoding program for decoding a bitstream in which a differential quantization parameter is encoded in units of a quantization decoding block, which is a quantization parameter management unit obtained by dividing the image,
A decoding step of decoding the bit stream in units of the quantized decoding block and extracting a differential quantization parameter of a quantization decoding block to be decoded;
A predictive quantization parameter derivation step for deriving a predictive quantization parameter of the quantization decoding block to be decoded;
Causing the computer to execute a quantization parameter deriving step of deriving a quantization parameter of the quantization decoding block to be decoded by adding the differential quantization parameter of the quantization decoding block to be decoded and the prediction quantization parameter;
The predictive quantization parameter derivation step derives the predictive quantization parameter using the quantization parameters of the two preceding quantized decoding blocks in the decoding order with respect to the quantization decoding block to be decoded,
An average value of quantization parameters of the two quantized decoding blocks is set as the predicted quantization parameter.
An image decoding program characterized by the above.
JP2016215762A 2016-11-04 2016-11-04 Image decoding apparatus, image decoding method, and image decoding program Active JP6256572B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016215762A JP6256572B2 (en) 2016-11-04 2016-11-04 Image decoding apparatus, image decoding method, and image decoding program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016215762A JP6256572B2 (en) 2016-11-04 2016-11-04 Image decoding apparatus, image decoding method, and image decoding program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016107244A Division JP6128265B2 (en) 2016-05-30 2016-05-30 Image decoding apparatus, image decoding method, and image decoding program, and receiving apparatus, receiving method, and receiving program

Publications (2)

Publication Number Publication Date
JP2017055429A JP2017055429A (en) 2017-03-16
JP6256572B2 true JP6256572B2 (en) 2018-01-10

Family

ID=58317873

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016215762A Active JP6256572B2 (en) 2016-11-04 2016-11-04 Image decoding apparatus, image decoding method, and image decoding program

Country Status (1)

Country Link
JP (1) JP6256572B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019050300A1 (en) * 2017-09-06 2019-03-14 가온미디어 주식회사 Method and device for image encoding/decoding based on effective transmission of differential quantization parameter

Also Published As

Publication number Publication date
JP2017055429A (en) 2017-03-16

Similar Documents

Publication Publication Date Title
WO2013145642A1 (en) Image encoding device, image encoding method, image encoding program, transmission device, transmission method, transmission program, image decoding device, image decoding method, image decoding program, reception device, reception method, and reception program
JP5664747B2 (en) Moving picture decoding apparatus, moving picture decoding method, moving picture decoding program, receiving apparatus, receiving method, and receiving program
JP6256572B2 (en) Image decoding apparatus, image decoding method, and image decoding program
JP5954514B1 (en) Image decoding apparatus, image decoding method, and image decoding program, and receiving apparatus, receiving method, and receiving program
JP6256565B2 (en) Image encoding apparatus, image encoding method, and image encoding program
JP5928073B2 (en) Image encoding device, image encoding method, image encoding program, transmission device, transmission method, and transmission program
JP5664584B2 (en) Image decoding apparatus, image decoding method, image decoding program, receiving apparatus, receiving method, and receiving program
JP6264428B2 (en) Image decoding apparatus, image decoding method, and image decoding program
JP6128264B2 (en) Image encoding device, image encoding method, image encoding program, transmission device, transmission method, and transmission program
JP6128265B2 (en) Image decoding apparatus, image decoding method, and image decoding program, and receiving apparatus, receiving method, and receiving program
JP5954513B1 (en) Image encoding device, image encoding method, image encoding program, transmission device, transmission method, and transmission program
JP6256566B2 (en) Image encoding apparatus, image encoding method, and image encoding program
JP6070875B2 (en) Moving picture encoding apparatus, moving picture encoding method, moving picture encoding program, transmission apparatus, transmission method, and transmission program
JP2015080231A (en) Image decoding device, image decoding method, image decoding program, receiving device, receiving method and receiving program
JP2013219680A (en) Video decoder, video decoding method and video decoding program
JP2013219679A (en) Video encoder, video encoding method and video encoding program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171031

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20171107

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171120

R150 Certificate of patent or registration of utility model

Ref document number: 6256572

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250