JP5100689B2 - Video encoding apparatus and video decoding apparatus - Google Patents

Video encoding apparatus and video decoding apparatus Download PDF

Info

Publication number
JP5100689B2
JP5100689B2 JP2009057907A JP2009057907A JP5100689B2 JP 5100689 B2 JP5100689 B2 JP 5100689B2 JP 2009057907 A JP2009057907 A JP 2009057907A JP 2009057907 A JP2009057907 A JP 2009057907A JP 5100689 B2 JP5100689 B2 JP 5100689B2
Authority
JP
Japan
Prior art keywords
block
unit
quantization
output
signal
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.)
Expired - Fee Related
Application number
JP2009057907A
Other languages
Japanese (ja)
Other versions
JP2010213063A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2009057907A priority Critical patent/JP5100689B2/en
Publication of JP2010213063A publication Critical patent/JP2010213063A/en
Application granted granted Critical
Publication of JP5100689B2 publication Critical patent/JP5100689B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、インタレース形式の動画像信号を符号化する動画像符号化装置と、インタレース形式の動画像信号が符号化されている符号化データを復号する動画像復号装置とに関するものである。   The present invention relates to a moving image encoding device that encodes an interlaced moving image signal and a moving image decoding device that decodes encoded data in which the interlaced moving image signal is encoded. .

動画像信号には、プログレッシブ信号とインタレース信号の2種類がある。
プログレッシブ信号は、「順次走査」と呼ばれているものであり、PCモニタなどに使用されている走査線を上から下に1ラインずつ走査していくものである。
一方、インタレース信号は、「飛び越し走査」と呼ばれているものであり、1フレームを2つのフィールドに分割し、それぞれのフィールドが互いに重ならない1ライン置きに走査していくものである。
There are two types of moving image signals, progressive signals and interlace signals.
The progressive signal is called “sequential scanning”, and scans a scanning line used for a PC monitor or the like line by line from top to bottom.
On the other hand, the interlaced signal is called “interlaced scanning”, in which one frame is divided into two fields, and scanning is performed every other line where the fields do not overlap each other.

インタレース信号は、プログレッシブ信号と比べて、半分の走査線で1つのフィールドを構成することができるため、同じ信号量であっても、見かけ上2倍の動き(フレームレート)を表現することができる。
このインタレース信号を効率よく符号化処理する国際標準方式として、以下の非特許文献1に開示されている「MPEG−2」や、非特許文献2に開示されている「AVC」などがある。
Since an interlace signal can form one field with half the number of scanning lines compared to a progressive signal, even if the signal amount is the same, an apparently double motion (frame rate) can be expressed. it can.
As an international standard system for efficiently encoding the interlaced signal, there are “MPEG-2” disclosed in the following Non-Patent Document 1, “AVC” disclosed in Non-Patent Document 2, and the like.

図6はMPEG−2で符号化処理を実施する一般的な動画像符号化装置を示す構成図である。
MPEG−2では、輝度信号が16画素×16ラインの画素数で構成されるマクロブロックを一単位として符号化処理を行う。
動画像信号がインタレース信号の場合、図7の斜線が施されていないフィールドの信号(以下、「トップフィールド」と称する)16画素×8ライン分と、斜線が施されているフィールドの信号(以下、「ボトムフィールド」と称する)16画素×8ライン分とが組み合わされた16画素×16ラインの信号でマクロブロックが構成される。
FIG. 6 is a block diagram showing a general moving image encoding apparatus that performs encoding processing in MPEG-2.
In MPEG-2, encoding processing is performed using a macroblock having a luminance signal of 16 pixels × 16 lines as a unit.
When the moving image signal is an interlaced signal, a signal in a field not shaded in FIG. 7 (hereinafter referred to as “top field”) 16 pixels × 8 lines, and a signal in a field shaded ( A macroblock is composed of a signal of 16 pixels × 16 lines combined with 16 pixels × 8 lines (hereinafter referred to as “bottom field”).

MPEG−2では、DCTを用いて、インタレース信号を8×8サイズのブロック単位で符号化処理を実施する際、ブロック化部が、1ビットのフラグである「dct_type」が“0”であれば、図8に示すように、インタレース信号のトップフィールドとボトムフィールドを交互に配置することでフレームブロックを構成する。
一方、「dct_type」が“1”であれば、図9に示すように、インタレース信号のトップフィールドとボトムフィールドを分離して配置することでフィールドブロックを構成する。
In MPEG-2, when DCT is used to encode an interlaced signal in units of 8 × 8 size blocks, the blocking unit should have a 1-bit flag “dct_type” of “0”. For example, as shown in FIG. 8, a frame block is configured by alternately arranging a top field and a bottom field of an interlace signal.
On the other hand, if “dct_type” is “1”, as shown in FIG. 9, the field block is configured by separately arranging the top field and the bottom field of the interlace signal.

このように、ブロック化部では、フレームブロック又はフィールドブロックのいずれか一方を構成するが、通常、動画像信号が静止状態の場合(動画像信号の動きが小さく、その動き量が基準値に満たない場合)にはフレームブロックを構成し、動画像信号が動きのある状態の場合(動画像信号の動きが大きく、その動き量が基準値以上である場合)にはフィールドブロックを構成する。
即ち、動画像信号が静止状態の場合、トップフィールドとボトムフィールドの間の信号には時間的な変化がないため、フィールドに分けることなく、空間距離の近い信号を使用した方が高い符号化効率が得られる。そのため、動画像信号が静止状態の場合には、フレームブロックを構成する。
逆に、動画像信号が動きのある状態の場合、2つのフィールドの間には時間的な変化が生じるため、空間距離の近さよりも、それぞれのフィールドに分けて時間距離の近い信号を使用した方が高い符号化効率が得られる。そのため、動画像信号が動きのある状態の場合には、フィールドブロックを構成する。
In this way, the blocking unit constitutes either a frame block or a field block. Usually, when the moving image signal is stationary (the moving amount of the moving image signal is small and the amount of movement satisfies the reference value). If not, a frame block is formed. If the moving image signal is in a moving state (when the moving image signal has a large movement and the amount of movement is equal to or greater than a reference value), a field block is formed.
In other words, when the video signal is stationary, there is no temporal change in the signal between the top field and the bottom field, so it is better to use a signal with a close spatial distance without dividing it into fields. Is obtained. Therefore, a frame block is formed when the moving image signal is in a still state.
Conversely, when the moving image signal is in a state of motion, a temporal change occurs between the two fields. Therefore, a signal with a short time distance is used for each field rather than a close spatial distance. The higher encoding efficiency is obtained. Therefore, when the moving image signal is in a state of motion, a field block is configured.

DCT部では、ブロック化部がフレームブロック又はフィールドブロックを構成すると、そのフレームブロック又はフィールドブロックにDCTを施して、DCT係数を算出する。
量子化部では、予め用意されている量子化マトリクスを用いて、DCT部により算出されたDCT係数を量子化して、量子化インデックスを算出する。
可変長符号化部では、量子化部により算出された量子化インデックスを可変長符号化して符号化データを生成する。
In the DCT unit, when the blocking unit forms a frame block or a field block, DCT is performed on the frame block or field block to calculate a DCT coefficient.
The quantization unit quantizes the DCT coefficient calculated by the DCT unit using a prepared quantization matrix to calculate a quantization index.
The variable length encoding unit generates encoded data by variable length encoding the quantization index calculated by the quantization unit.

ISO/IEC 13818−2「Information technology - Generic coding of moving pictures and associated audio information -- Part 2: Video」ISO / IEC 13818-2 “Information technology-Generic coding of moving pictures and associated audio information-Part 2: Video” ISO/IEC 14496−10「Information technology -- Coding of audio-visual objects -- Part 10: Advanced video coding」ISO / IEC 14496-10 “Information technology-Coding of audio-visual objects-Part 10: Advanced video coding”

従来の動画像符号化装置は以上のように構成されているので、予め用意されている量子化マトリクスを用いて、DCT部により算出されたDCT係数を量子化して、量子化インデックスを算出する。しかし、ブロック化部により構成されているブロックの種類が、フレームブロックであるのか、フィールドブロックであるのかにかかわらず、常に、同一の量子化マトリクスを用いているため、必ずしもフレームブロックやフィールドブロックに適する量子化処理を行うことができず、効率的な符号化処理を実現することができないなどの課題があった。   Since the conventional moving image encoding apparatus is configured as described above, the quantization index is calculated by quantizing the DCT coefficient calculated by the DCT unit using a quantization matrix prepared in advance. However, since the same quantization matrix is always used regardless of whether the block type configured by the blocking unit is a frame block or a field block, it is not necessarily used for a frame block or a field block. There is a problem that a suitable quantization process cannot be performed and an efficient encoding process cannot be realized.

ここで、効率的な符号化処理を実現することができないことを具体的に説明する。
図10(A)のように、マクロブロックの中に4つの円が並んでいるインタレース信号を符号化する場合を考える。
このようなインタレース信号からフレームブロックを構成する場合、図10(B)に示すように、一つのブロック内に一つの円が入るため、水平方向の信号の状態と垂直方向の信号の状態とに差がなく等しくなる。そのため、DCT係数も水平方向と垂直方向の値が等しくなる。
一方、フィールドブロックを構成する場合、1ラインおきの信号を用いてブロックが構成されるため、一つのブロックが画面上に占める面積がフレームブロックと比べて垂直方向で2倍となる。そのため、図10(C)に示すように、一つのブロック内に二つの円が入るので、水平方向の信号と比べて垂直方向の信号が2倍の密度になる。したがって、DCT係数も垂直方向の値が水平方向の値と比べて2倍大きくなる。
このようにフレームブロックとフィールドブロックとでは、DCT係数の分布(特に垂直方向の分布)が異なる傾向があるにもかかわらず、従来の動画像符号化装置では、1種類の量子化マトリクスしか用意されていないため、効率のよい符号化処理を実現することができない。
Here, it will be specifically described that an efficient encoding process cannot be realized.
Consider the case of encoding an interlaced signal in which four circles are arranged in a macroblock as shown in FIG.
When a frame block is composed of such interlaced signals, as shown in FIG. 10B, since one circle is included in one block, the horizontal signal state and the vertical signal state Are equal without any difference. For this reason, the DCT coefficient also has the same value in the horizontal direction and the vertical direction.
On the other hand, when configuring a field block, since the block is configured using signals every other line, the area occupied by one block on the screen is doubled in the vertical direction as compared with the frame block. Therefore, as shown in FIG. 10C, two circles are included in one block, so that the signal in the vertical direction is twice as dense as the signal in the horizontal direction. Therefore, the DCT coefficient is twice as large in the vertical direction as compared with the horizontal value.
As described above, although the distribution of DCT coefficients (particularly the distribution in the vertical direction) tends to be different between the frame block and the field block, only one type of quantization matrix is prepared in the conventional moving picture coding apparatus. Therefore, an efficient encoding process cannot be realized.

この発明は上記のような課題を解決するためになされたもので、フレームブロック又はフィールドブロックのいずれを構成する場合でも、効率的な符号化処理を実現することができる動画像符号化装置を得ることを目的とする。
また、この発明は、上記の動画像符号化装置によりインタレース形式の動画像信号が符号化されている符号化データを効率的に復号して、復号画像を出力することができる動画像復号装置を得ることを目的とする。
The present invention has been made to solve the above-described problems, and provides a moving picture coding apparatus capable of realizing efficient coding processing regardless of whether a frame block or a field block is configured. For the purpose.
The present invention also provides a moving picture decoding apparatus capable of efficiently decoding encoded data obtained by encoding an interlaced moving picture signal by the moving picture encoding apparatus and outputting a decoded picture. The purpose is to obtain.

この発明に係る動画像符号化装置は、量子化マトリクスを選択する際に動画像信号を構成する画素のアスペクト比を示す指標信号を参照するとともに、ブロック構成手段により構成されたブロックの種類がフレームブロックであれば、そのフレームブロックに対応する量子化マトリクスを用いて、離散コサイン変換手段の変換結果を量子化することで量子化インデックスを算出し、ブロック構成手段により構成されたブロックの種類がフィールドブロックであれば、そのフィールドブロックに対応する量子化マトリクスを用いて、離散コサイン変換手段の変換結果を量子化することで量子化インデックスを算出する量子化手段と、動画像信号を構成する画素のアスペクト比を示す指標信号と、量子化手段により算出された量子化インデックス及び上記ブロック構成手段により構成されたブロックの種類を示すブロックタイプ信号を可変長符号化して符号化データを出力する可変長符号化手段とを備えるようにしたものである。 The moving picture coding apparatus according to the present invention refers to an index signal indicating an aspect ratio of pixels constituting a moving picture signal when selecting a quantization matrix, and the type of block constituted by the block constituting means is a frame. If it is a block, the quantization matrix corresponding to the frame block is used to calculate the quantization index by quantizing the transform result of the discrete cosine transform unit, and the type of block configured by the block configuration unit is the field. If the block is a block, the quantization matrix corresponding to the field block is used to quantize the conversion result of the discrete cosine transform unit, thereby calculating a quantization index, and the pixels constituting the moving image signal. An index signal indicating the aspect ratio and a quantization index calculated by the quantization means The block type signal indicating the type of configuration block by fine said block means and variable length coding is obtained by a so that a variable-length coding means for outputting coded data.

この発明によれば、量子化マトリクスを選択する際に動画像信号を構成する画素のアスペクト比を示す指標信号を参照するとともに、ブロック構成手段により構成されたブロックの種類がフレームブロックであれば、そのフレームブロックに対応する量子化マトリクスを用いて、離散コサイン変換手段の変換結果を量子化することで量子化インデックスを算出し、ブロック構成手段により構成されたブロックの種類がフィールドブロックであれば、そのフィールドブロックに対応する量子化マトリクスを用いて、離散コサイン変換手段の変換結果を量子化することで量子化インデックスを算出する量子化手段と、動画像信号を構成する画素のアスペクト比を示す指標信号と、量子化手段により算出された量子化インデックス及び上記ブロック構成手段により構成されたブロックの種類を示すブロックタイプ信号を可変長符号化して符号化データを出力する可変長符号化手段とを備えるように構成したので、フレームブロック又はフィールドブロックのいずれを構成する場合でも、効率的な符号化処理を実現することができる効果がある。 According to the present invention, when the quantization matrix is selected, the index signal indicating the aspect ratio of the pixels constituting the moving image signal is referred to, and if the type of the block configured by the block configuration unit is a frame block, Using the quantization matrix corresponding to the frame block, the quantization index is calculated by quantizing the conversion result of the discrete cosine transform unit, and if the type of block configured by the block configuration unit is a field block, Quantization means for calculating a quantization index by quantizing the conversion result of the discrete cosine transform means using a quantization matrix corresponding to the field block, and an index indicating the aspect ratio of the pixels constituting the moving image signal Signal, quantization index calculated by the quantization means, and the block Since it is configured to so that a variable-length coding means for variable length coding and outputs the encoded data block type signal indicating the type of configuration block by forming means, constituting any frame block or field block Even if it does, there exists an effect which can implement | achieve an efficient encoding process.

この発明の実施の形態1による動画像符号化装置を示す構成図である。It is a block diagram which shows the moving image encoder by Embodiment 1 of this invention. フレームブロックに対応する量子化マトリクスとフィールドブロックに対応する量子化マトリクスの一例を示す説明図である。It is explanatory drawing which shows an example of the quantization matrix corresponding to a frame block, and the quantization matrix corresponding to a field block. この発明の実施の形態2による動画像符号化装置を示す構成図である。It is a block diagram which shows the moving image encoder by Embodiment 2 of this invention. この発明の実施の形態3による動画像復号装置を示す構成図である。It is a block diagram which shows the moving image decoding apparatus by Embodiment 3 of this invention. この発明の実施の形態4による動画像復号装置を示す構成図である。It is a block diagram which shows the moving image decoding apparatus by Embodiment 4 of this invention. MPEG−2で符号化処理を実施する一般的な動画像符号化装置を示す構成図である。It is a block diagram which shows the general moving image encoding apparatus which implements an encoding process by MPEG-2. インタレース信号のマクロブロックを示す説明図である。It is explanatory drawing which shows the macroblock of an interlace signal. フレームブロックを示す説明図である。It is explanatory drawing which shows a frame block. フィールドブロックを示す説明図である。It is explanatory drawing which shows a field block. 同じインタレース信号から構成されるフレームブロックとフィールドブロックの一例を示す説明図である。It is explanatory drawing which shows an example of the frame block and field block which are comprised from the same interlace signal.

実施の形態1.
図1はこの発明の実施の形態1による動画像符号化装置を示す構成図である。
図1において、画面並べ替え部1はインタレース形式の動画像信号(Iピクチャ、Pピクチャ、Bピクチャ)であるインタレース信号を入力すると、符号化順にピクチャの並び替えを行うとともに、そのインタレース信号をマクロブロック単位に分割する処理を実施する。
減算器2は画面並べ替え部1から出力されたマクロブロック単位のインタレース信号と動き補償部14により生成された予測画像の画像信号との差分を求め、その差分を示す差分信号を出力する処理を実施する。
Embodiment 1 FIG.
1 is a block diagram showing a moving picture coding apparatus according to Embodiment 1 of the present invention.
In FIG. 1, when a screen rearrangement unit 1 inputs an interlace signal which is an interlaced moving image signal (I picture, P picture, B picture), the screen rearrangement unit 1 rearranges the pictures in the encoding order and A process of dividing the signal into macroblock units is performed.
The subtracter 2 obtains a difference between the macroblock unit interlace signal output from the screen rearrangement unit 1 and the image signal of the predicted image generated by the motion compensation unit 14, and outputs a difference signal indicating the difference. To implement.

モード判定部3は画面並べ替え部1から出力されたマクロブロック単位のインタレース信号と、減算器2から出力された差分信号とを入力し、符号化処理方式としてフレーム内符号化処理を採用する場合、符号化対象信号として、そのインタレース信号をブロック化部4に出力し、符号化処理方式としてフレーム間符号化処理を採用する場合、符号化対象信号として、その差分信号をブロック化部4に出力する処理を実施する。   The mode determination unit 3 inputs the macroblock unit interlaced signal output from the screen rearrangement unit 1 and the difference signal output from the subtracter 2 and adopts intraframe encoding processing as the encoding processing method. In this case, when the interlaced signal is output to the blocking unit 4 as the encoding target signal and the interframe encoding process is adopted as the encoding processing method, the difference signal is output as the encoding target signal to the blocking unit 4. Execute the process to output to.

ブロック化部4はモード判定部3から出力された符号化対象信号が、動きの無い信号(動きが小さな信号)であれば、その符号化対象信号のトップフィールドとボトムフィールドを交互に配置することでフレームブロック(図8を参照)を構成し、動きのある信号(動きが大きな信号)であれば、そのトップフィールドとボトムフィールドを分離して配置することでフィールドブロック(図9を参照)を構成する処理を実施する。
また、ブロック化部4は構成したブロックの種類がフレームブロックであるのか、フィールドブロックであるのかを示すdct_type(ブロックタイプ信号)を出力する処理を実施する。
なお、ブロック化部4はブロック構成手段を構成している。
この実施の形態1では、符号化対象信号の動きが小さく、その動き量が基準値に満たない場合、その符号化対象信号を「動きの無い信号」と称し、符号化対象信号の動きが大きく、その動き量が基準値以上である場合、その符号化対象信号を「動きのある信号」と称する。
If the encoding target signal output from the mode determination unit 3 is a signal with no motion (a signal with small motion), the blocking unit 4 alternately arranges the top field and the bottom field of the encoding target signal. A frame block (see FIG. 8) is configured, and if the signal has a motion (a signal with a large motion), the field block (see FIG. 9) is separated by arranging the top field and the bottom field separately. Implement the process to configure.
Further, the blocking unit 4 performs a process of outputting dct_type (block type signal) indicating whether the type of the configured block is a frame block or a field block.
The blocking unit 4 constitutes a block constituting unit.
In the first embodiment, when the motion of the signal to be encoded is small and the amount of motion is less than the reference value, the signal to be encoded is referred to as a “no-motion signal” and the motion of the signal to be encoded is large. When the amount of motion is greater than or equal to the reference value, the signal to be encoded is referred to as a “motion signal”.

DCT部5はブロック化部4により構成されたフレームブロック又はフィールドブロックにDCT(離散コサイン変換)を施してDCT係数を出力する処理を実施する。なお、DCT部5は離散コサイン変換手段を構成している。
量子化部6は予めフレームブロックに対応する量子化マトリクスとフィールドブロックに対応する量子化マトリクスを用意しており、ブロック化部4から出力されたdct_typeが「フレームブロック」である旨を示す場合、フレームブロックに対応する量子化マトリクスを用いて、DCT部5から出力されたDCT係数を量子化することで量子化インデックスを算出し、そのdct_typeが「フィールドブロック」である旨を示す場合、フィールドブロックに対応する量子化マトリクスを用いて、DCT部5から出力されたDCT係数を量子化することで量子化インデックスを算出する処理を実施する。なお、量子化部6は量子化手段を構成している。
The DCT unit 5 performs DCT (Discrete Cosine Transform) on the frame block or field block configured by the blocking unit 4 and outputs DCT coefficients. The DCT unit 5 constitutes a discrete cosine transform unit.
When the quantization unit 6 prepares a quantization matrix corresponding to the frame block and a quantization matrix corresponding to the field block in advance, and the dct_type output from the blocking unit 4 indicates that it is a “frame block”, When a quantization index is calculated by quantizing the DCT coefficient output from the DCT unit 5 using the quantization matrix corresponding to the frame block, and the dct_type indicates “field block”, the field block A process for calculating a quantization index is performed by quantizing the DCT coefficient output from the DCT unit 5 using a quantization matrix corresponding to. The quantization unit 6 constitutes a quantization means.

逆量子化部7は予めフレームブロックに対応する量子化マトリクスとフィールドブロックに対応する量子化マトリクスを用意しており、ブロック化部4から出力されたdct_typeが「フレームブロック」である旨を示す場合、フレームブロックに対応する量子化マトリクスを用いて、量子化部6により算出された量子化インデックスを逆量子化してDCT係数を出力し、そのdct_typeが「フィールドブロック」である旨を示す場合、フィールドブロックに対応する量子化マトリクスを用いて、量子化部6により算出された量子化インデックスを逆量子化してDCT係数を出力する処理を実施する。
IDCT部8は逆量子化部7から出力されたDCT係数にIDCT(逆離散コサイン変換)を施して、局部復号信号であるフレームブロック又はフィールドブロックを出力する処理を実施する。
The inverse quantization unit 7 prepares in advance a quantization matrix corresponding to a frame block and a quantization matrix corresponding to a field block, and the dct_type output from the blocking unit 4 indicates that it is a “frame block” If the quantization index calculated by the quantization unit 6 is dequantized using the quantization matrix corresponding to the frame block and a DCT coefficient is output, and the dct_type indicates “field block”, Using the quantization matrix corresponding to the block, a process of dequantizing the quantization index calculated by the quantization unit 6 and outputting a DCT coefficient is performed.
The IDCT unit 8 performs IDCT (Inverse Discrete Cosine Transform) on the DCT coefficient output from the inverse quantization unit 7 and outputs a frame block or field block that is a local decoded signal.

スイッチ9はモード判定部3により符号化処理方式としてフレーム内符号化処理が採用された場合、予測画像の画像信号として零値を加算器10に出力し、符号化処理方式としてフレーム間符号化処理が採用された場合、動き補償部14により生成された予測画像の画像信号を加算器10に出力する処理を実施する。
加算器10はスイッチ9から出力された予測画像の画像信号とIDCT部8から出力された局部復号信号を加算して、予測用参照画像の画像信号を出力する処理を実施する。
The switch 9 outputs a zero value to the adder 10 as the image signal of the predicted image when the mode determination unit 3 adopts the intra-frame encoding process as the encoding process method, and the inter-frame encoding process as the encoding process method. Is employed, a process of outputting the image signal of the predicted image generated by the motion compensation unit 14 to the adder 10 is performed.
The adder 10 performs a process of adding the image signal of the prediction image output from the switch 9 and the local decoded signal output from the IDCT unit 8 to output the image signal of the reference image for prediction.

スイッチ11は符号化対象のピクチャに応じて、加算器10から出力された予測用参照画像の画像信号を格納するフレームメモリ12を切り替える処理を実施する。
フレームメモリ12はスイッチ11から出力された予測用参照画像の画像信号を格納するメモリである。
動き検出部13は画面並べ替え部1から出力されたマクロブロック単位のインタレース信号とフレームメモリ12により格納されている予測用参照画像の画像信号との間で動きベクトルを検出する処理を実施する。
The switch 11 performs a process of switching the frame memory 12 that stores the image signal of the prediction reference image output from the adder 10 in accordance with the picture to be encoded.
The frame memory 12 is a memory for storing the image signal of the prediction reference image output from the switch 11.
The motion detection unit 13 performs a process of detecting a motion vector between the interlace signal in units of macroblocks output from the screen rearrangement unit 1 and the image signal of the reference image for prediction stored in the frame memory 12. .

動き補償部14は動き検出部13により検出された動きベクトルを用いて、フレームメモリ12により格納されている予測用参照画像の画像信号の動き補償を実施して、予測画像の画像信号を生成する処理を実施する。
可変長符号化部15は量子化部6により算出された量子化インデックス、ブロック化部4から出力されたdct_type及び動き検出部13により検出された動きベクトルなどを可変長符号化して符号化データを出力する処理を実施する。なお、可変長符号化部15は可変長符号化手段を構成している。
The motion compensation unit 14 performs motion compensation of the image signal of the prediction reference image stored in the frame memory 12 using the motion vector detected by the motion detection unit 13, and generates an image signal of the prediction image. Perform the process.
The variable length encoding unit 15 performs variable length encoding on the quantization index calculated by the quantization unit 6, the dct_type output from the blocking unit 4, the motion vector detected by the motion detection unit 13, and the like, thereby encoding the encoded data. Perform the output process. The variable length encoding unit 15 constitutes variable length encoding means.

次に動作について説明する。
画面並べ替え部1は、インタレース形式の動画像信号であるインタレース信号を入力すると、符号化順にピクチャの並び替えを行うとともに、そのインタレース信号をマクロブロック単位に分割する。
減算器2は、画面並べ替え部1からマクロブロック単位のインタレース信号を受けると、そのインタレース信号と動き補償部14により生成された予測画像の画像信号との差分を求め、その差分を示す差分信号をモード判定部3に出力する。
Next, the operation will be described.
When the screen rearrangement unit 1 receives an interlace signal that is an interlaced moving image signal, the screen rearrangement unit 1 rearranges the pictures in the encoding order and divides the interlace signal into units of macroblocks.
When the subtractor 2 receives the interlace signal in units of macroblocks from the screen rearrangement unit 1, it obtains the difference between the interlace signal and the image signal of the predicted image generated by the motion compensation unit 14, and indicates the difference. The difference signal is output to the mode determination unit 3.

モード判定部3は、画面並べ替え部1から出力されたマクロブロック単位のインタレース信号と、減算器2から出力された差分信号とを入力し、符号化処理方式としてフレーム内符号化処理を採用する場合、符号化対象信号として、そのインタレース信号をブロック化部4に出力し、符号化処理方式としてフレーム間符号化処理を採用する場合、符号化対象信号として、その差分信号をブロック化部4に出力する。
なお、モード判定部3は、採用する符号化処理方式を決定するに際して、例えば、フレーム内符号化処理で符号化した場合の符号化効率と、フレーム間符号化処理で符号化した場合の符号化効率とを比較し、符号化効率が高い方の符号化処理方式を選択する。
The mode determination unit 3 inputs the macroblock-unit interlace signal output from the screen rearrangement unit 1 and the difference signal output from the subtracter 2 and adopts intraframe encoding processing as the encoding processing method. In this case, the interlaced signal is output to the blocking unit 4 as the encoding target signal, and when the interframe encoding processing is adopted as the encoding processing method, the difference signal is used as the encoding target signal. 4 is output.
Note that when determining the encoding processing method to be employed, the mode determination unit 3 performs, for example, encoding efficiency when encoding is performed using intra-frame encoding processing, and encoding when encoding is performed using inter-frame encoding processing. Compare the efficiency and select the encoding processing method with the higher encoding efficiency.

ブロック化部4は、モード判定部3から符号化対象信号を受けると、その符号化対象信号の動きの有無(動きの大小)を判定する。動きの有無を判定する手法は公知の技術を使用すればよいので、ここでは詳細な説明を省略する。
ブロック化部4は、符号化対象信号の動きの有無を判定して、動きの無い信号であれば、図8に示すように、その符号化対象信号のトップフィールドとボトムフィールドを交互に配置することでフレームブロックを構成し、そのフレームブロックをDCT部5に出力する。
一方、動きのある信号であれば、図9に示すように、そのトップフィールドとボトムフィールドを分離して配置することでフィールドブロックを構成し、そのフィールドブロックをDCT部5に出力する。
ブロック化部4は、フレームブロック又はフィールドブロックを構成すると、構成したブロックの種類を示すdct_typeを量子化部6,逆量子化部7及び可変長符号化部15に出力する。
When receiving the encoding target signal from the mode determination unit 3, the blocking unit 4 determines whether or not the encoding target signal is moving (the magnitude of the motion). Since a known technique may be used as a method for determining the presence or absence of movement, detailed description thereof is omitted here.
The blocking unit 4 determines the presence / absence of motion of the encoding target signal. If the signal is not moving, the blocking unit 4 alternately arranges the top field and the bottom field of the encoding target signal as shown in FIG. Thus, a frame block is configured, and the frame block is output to the DCT unit 5.
On the other hand, if the signal has motion, as shown in FIG. 9, the top field and the bottom field are separately arranged to form a field block, and the field block is output to the DCT unit 5.
When configuring the frame block or the field block, the blocking unit 4 outputs dct_type indicating the type of the configured block to the quantization unit 6, the inverse quantization unit 7 and the variable length coding unit 15.

DCT部5は、ブロック化部4からフレームブロック又はフィールドブロックを受けると、そのフレームブロック又はフィールドブロックにDCTを施してDCT係数を量子化部6に出力する。   When the DCT unit 5 receives the frame block or field block from the blocking unit 4, the DCT unit 5 performs DCT on the frame block or field block and outputs the DCT coefficient to the quantization unit 6.

量子化部6は、予め、フレームブロックに対応する量子化マトリクスと、フィールドブロックに対応する量子化マトリクスとを用意している。
ここで、図2はフレームブロックに対応する量子化マトリクスとフィールドブロックに対応する量子化マトリクスの一例を示す説明図である。
フレームブロックの信号は、図10(B)に示すように、水平方向と垂直方向の信号の状態が等しいため、方向に関係なく等しく量子化処理を実施することができるようにするために、量子化マトリクスの値についても、図2(A)に示すように、水平方向と垂直方向が同じ傾向を有しているものを用意している。
一方、フィールドブロックの信号は、図10(C)に示すように、水平方向と比べて垂直方向の信号の状態が2倍の密度になるため、図2(B)に示すように、量子化マトリクスの値が垂直方向に対して水平方向が2倍になるようにしている。
これにより、垂直方向のDCT係数の量子化誤差が水平方向のDCT係数の量子化誤差と比べて2分の1に小さくできるため、垂直方向の信号の状態をより性能よく符号化処理することが可能となる。
The quantization unit 6 prepares in advance a quantization matrix corresponding to a frame block and a quantization matrix corresponding to a field block.
Here, FIG. 2 is an explanatory diagram showing an example of a quantization matrix corresponding to a frame block and a quantization matrix corresponding to a field block.
As shown in FIG. 10B, the signal of the frame block has the same signal state in the horizontal direction and the vertical direction, so that the quantization process can be performed equally regardless of the direction. As shown in FIG. 2 (A), the values of the conversion matrix are prepared such that the horizontal direction and the vertical direction have the same tendency.
On the other hand, as shown in FIG. 10C, the signal in the field block has twice the density of the signal in the vertical direction as compared with the horizontal direction. The matrix value is set to be double in the horizontal direction with respect to the vertical direction.
As a result, the quantization error of the DCT coefficient in the vertical direction can be reduced by a factor of two compared to the quantization error of the DCT coefficient in the horizontal direction, so that the state of the signal in the vertical direction can be encoded with higher performance. It becomes possible.

量子化部6は、ブロック化部4から出力されたdct_typeが「フレームブロック」である旨を示す場合、フレームブロックに対応する図2(A)の量子化マトリクスを用いて、DCT部5から出力されたDCT係数を量子化することで量子化インデックスを算出する。
一方、そのdct_typeが「フィールドブロック」である旨を示す場合、フィールドブロックに対応する図2(B)の量子化マトリクスを用いて、DCT部5から出力されたDCT係数を量子化することで量子化インデックスを算出する。
When the dct_type output from the blocking unit 4 indicates “frame block”, the quantizing unit 6 outputs from the DCT unit 5 using the quantization matrix of FIG. 2A corresponding to the frame block. The quantization index is calculated by quantizing the DCT coefficient.
On the other hand, when the dct_type indicates “field block”, the quantization matrix of FIG. 2B corresponding to the field block is used to quantize the DCT coefficient output from the DCT unit 5 to quantize. Calculate the index.

逆量子化部7は、量子化部6と同様に、2種類の量子化マトリクス(図2(A)(B)の量子化マトリクス)を用意しており、ブロック化部4から出力されたdct_typeが「フレームブロック」である旨を示す場合、フレームブロックに対応する図2(A)の量子化マトリクスを用いて、量子化部6により算出された量子化インデックスを逆量子化してDCT係数をIDCT部8に出力する。
一方、そのdct_typeが「フィールドブロック」である旨を示す場合、フィールドブロックに対応する図2(B)の量子化マトリクスを用いて、量子化部6により算出された量子化インデックスを逆量子化してDCT係数をIDCT部8に出力する。
IDCT部8は、逆量子化部7からDCT係数を受けると、そのDCT係数にIDCTを施して、局部復号信号であるフレームブロック又はフィールドブロックを加算器10に出力する。
Similar to the quantization unit 6, the inverse quantization unit 7 prepares two types of quantization matrices (quantization matrices in FIGS. 2A and 2B), and the dct_type output from the blocking unit 4. 2 indicates that it is a “frame block”, the quantization index calculated by the quantization unit 6 is inversely quantized using the quantization matrix of FIG. 2A corresponding to the frame block, and the DCT coefficient is IDCT. Output to unit 8.
On the other hand, when the dct_type indicates “field block”, the quantization index calculated by the quantization unit 6 is inversely quantized using the quantization matrix of FIG. 2B corresponding to the field block. The DCT coefficient is output to the IDCT unit 8.
When receiving the DCT coefficient from the inverse quantization unit 7, the IDCT unit 8 performs IDCT on the DCT coefficient and outputs a frame block or a field block that is a local decoded signal to the adder 10.

スイッチ9は、モード判定部3により符号化処理方式としてフレーム内符号化処理が採用された場合、予測画像の画像信号として零値を加算器10に出力し、符号化処理方式としてフレーム間符号化処理が採用された場合、動き補償部14から出力された予測画像の画像信号を加算器10に出力する。
加算器10は、スイッチ9から出力された予測画像の画像信号とIDCT部8から出力された局部復号信号を加算して、予測用参照画像の画像信号をスイッチ11に出力する。
スイッチ11は、加算器10から出力された予測用参照画像の画像信号をフレームメモリ12に格納する。
The switch 9 outputs a zero value as an image signal of the predicted image to the adder 10 when the mode determination unit 3 adopts the intra-frame encoding process as the encoding process method, and the inter-frame encoding as the encoding process method. When the process is employed, the image signal of the predicted image output from the motion compensation unit 14 is output to the adder 10.
The adder 10 adds the image signal of the predicted image output from the switch 9 and the local decoded signal output from the IDCT unit 8, and outputs the image signal of the reference image for prediction to the switch 11.
The switch 11 stores the image signal of the prediction reference image output from the adder 10 in the frame memory 12.

動き検出部13は、画面並べ替え部1からマクロブロック単位のインタレース信号を受けると、そのインタレース信号とフレームメモリ12により格納されている予測用参照画像の画像信号との間で動きベクトルを検出する。
動き補償部14は、動き検出部13が動きベクトルを検出すると、その動きベクトルを用いて、フレームメモリ12により格納されている予測用参照画像の画像信号の動き補償を実施して、予測画像の画像信号を生成する。
可変長符号化部15は、量子化部6により算出された量子化インデックス、ブロック化部4から出力されたdct_type、動き検出部13により検出された動きベクトルや、符号化方式情報(符号化処理方式としてフレーム内符号化処理が採用されているのか、フレーム間符号化処理が採用されているのかを示す情報)などを可変長符号化して符号化データを出力する。
When the motion detection unit 13 receives an interlace signal in units of macroblocks from the screen rearrangement unit 1, the motion detection unit 13 calculates a motion vector between the interlace signal and the image signal of the prediction reference image stored in the frame memory 12. To detect.
When the motion detection unit 13 detects a motion vector, the motion compensation unit 14 performs motion compensation of the image signal of the prediction reference image stored in the frame memory 12 using the motion vector, and An image signal is generated.
The variable length encoding unit 15 includes a quantization index calculated by the quantization unit 6, a dct_type output from the blocking unit 4, a motion vector detected by the motion detection unit 13, and encoding scheme information (encoding process). Information indicating whether intra-frame coding processing or inter-frame coding processing is adopted as a method) is variable-length coded, and encoded data is output.

以上で明らかなように、この実施の形態1によれば、ブロック化部4から出力されたdct_typeが「フレームブロック」である旨を示す場合、フレームブロックに対応する図2(A)の量子化マトリクスを用いて、DCT部5から出力されたDCT係数を量子化することで量子化インデックスを算出し、ブロック化部4から出力されたdct_typeが「フィールドブロック」である旨を示す場合、フィールドブロックに対応する図2(B)の量子化マトリクスを用いて、DCT部5から出力されたDCT係数を量子化することで量子化インデックスを算出する量子化部6を設けるように構成したので、フレームブロック又はフィールドブロックのいずれを構成する場合でも、効率的な符号化処理を実現することができる効果を奏する。
なお、この実施の形態1では、動きの有る/無しでブロック化部4が構成するブロックを切り替えるものについて示したが、動きの有る/無しに関わらず両方のブロックを構成して、両方のブロックの符号化処理を実施し、符号量の少ない方のブロック、あるいは、符号化処理によって発生する符号化雑音が小さい方のブロック、あるいは、符号量と符号化雑音のバランスが良い方のブロックを選択するようにしてもよい。
このような構成にすることにより、符号化効率を高めることができる効果が得られる。
As is apparent from the above, according to the first embodiment, when the dct_type output from the blocking unit 4 indicates “frame block”, the quantization of FIG. 2A corresponding to the frame block is performed. When the quantization index is calculated by quantizing the DCT coefficient output from the DCT unit 5 using the matrix and the dct_type output from the blocking unit 4 indicates “field block”, the field block 2B, the quantization unit 6 that calculates the quantization index by quantizing the DCT coefficient output from the DCT unit 5 is provided. Regardless of whether a block or a field block is configured, an effective encoding process can be realized. .
In the first embodiment, the block that the block forming unit 4 switches with / without motion is shown. However, both blocks are configured regardless of whether there is motion or not. And then select the block with the smaller code amount, the block with the smaller coding noise generated by the coding process, or the block with the better balance between the code amount and the coding noise. You may make it do.
With such a configuration, an effect of improving the encoding efficiency can be obtained.

実施の形態2.
図3はこの発明の実施の形態2による動画像符号化装置を示す構成図であり、図において、図1と同一符号は同一又は相当部分を示すので説明を省略する。
モード判定部21は図1のモード判定部3と同様にして、符号化対象信号をブロック化部4に出力する処理を実施するほか、量子化マトリクスの選択に用いる指標信号として、符号化処理方式がフレーム内符号化処理であるのか、フレーム間符号化処理であるのかを示すフラグ「mtx_flag」を量子化部22に出力する処理を実施する。
Embodiment 2. FIG.
FIG. 3 is a block diagram showing a moving picture coding apparatus according to Embodiment 2 of the present invention. In the figure, the same reference numerals as those in FIG.
The mode determination unit 21 performs the process of outputting the encoding target signal to the blocking unit 4 in the same manner as the mode determination unit 3 of FIG. 1 and also uses an encoding processing method as an index signal used to select a quantization matrix. A process of outputting a flag “mtx_flag” indicating whether or not is an intra-frame encoding process or an inter-frame encoding process to the quantization unit 22 is performed.

量子化部22は予めフレームブロックに対応する量子化マトリクスとフィールドブロックに対応する量子化マトリクスをそれぞれ複数個用意しており、ブロック化部4から出力されたdct_typeが「フレームブロック」である旨を示す場合、モード判定部21から出力されたフラグ「mtx_flag」を参照して、フレームブロックに対応する複数の量子化マトリクスの中から量子化に用いる量子化マトリクスを選択し、その量子化マトリクスを用いて、DCT部5から出力されたDCT係数を量子化することで量子化インデックスを算出する。一方、そのdct_typeが「フィールドブロック」である旨を示す場合、モード判定部21から出力されたフラグ「mtx_flag」を参照して、フィールドブロックに対応する複数の量子化マトリクスの中から量子化に用いる量子化マトリクスを選択し、その量子化マトリクスを用いて、DCT部5から出力されたDCT係数を量子化することで量子化インデックスを算出する処理を実施する。なお、量子化部22は量子化手段を構成している。   The quantization unit 22 prepares in advance a plurality of quantization matrices corresponding to frame blocks and a plurality of quantization matrices corresponding to field blocks, respectively, and indicates that the dct_type output from the blocking unit 4 is a “frame block”. In the case of showing, referring to the flag “mtx_flag” output from the mode determination unit 21, a quantization matrix used for quantization is selected from a plurality of quantization matrices corresponding to the frame block, and the quantization matrix is used. Then, the quantization index is calculated by quantizing the DCT coefficient output from the DCT unit 5. On the other hand, when the dct_type indicates that it is a “field block”, the flag “mtx_flag” output from the mode determination unit 21 is used for quantization among a plurality of quantization matrices corresponding to the field block. A process of calculating a quantization index by selecting a quantization matrix and quantizing the DCT coefficient output from the DCT unit 5 using the quantization matrix is performed. The quantization unit 22 constitutes a quantization means.

逆量子化部23は予めフレームブロックに対応する量子化マトリクスとフィールドブロックに対応する量子化マトリクスをそれぞれ複数個用意しており、ブロック化部4から出力されたdct_typeが「フレームブロック」である旨を示す場合、モード判定部21から出力されたフラグ「mtx_flag」を参照して、フレームブロックに対応する複数の量子化マトリクスの中から量子化に用いる量子化マトリクスを選択し、その量子化マトリクスを用いて、量子化部22により算出された量子化インデックスを逆量子化してDCT係数を出力する。一方、そのdct_typeが「フィールドブロック」である旨を示す場合、モード判定部21から出力されたフラグ「mtx_flag」を参照して、フィールドブロックに対応する複数の量子化マトリクスの中から量子化に用いる量子化マトリクスを選択し、その量子化マトリクスを用いて、量子化部22により算出された量子化インデックスを逆量子化してDCT係数を出力する処理を実施する。   The inverse quantization unit 23 prepares in advance a plurality of quantization matrices corresponding to the frame blocks and a plurality of quantization matrices corresponding to the field blocks, respectively, and the fact that the dct_type output from the blocking unit 4 is “frame block”. , Referring to the flag “mtx_flag” output from the mode determination unit 21, a quantization matrix used for quantization is selected from a plurality of quantization matrices corresponding to the frame block, and the quantization matrix is selected. The quantization index calculated by the quantization unit 22 is inversely quantized and a DCT coefficient is output. On the other hand, when the dct_type indicates that it is a “field block”, the flag “mtx_flag” output from the mode determination unit 21 is used for quantization among a plurality of quantization matrices corresponding to the field block. A process of selecting a quantization matrix, dequantizing the quantization index calculated by the quantization unit 22 using the quantization matrix, and outputting a DCT coefficient is performed.

可変長符号化部24は量子化部22により算出された量子化インデックス、ブロック化部4から出力されたdct_type、モード判定部21から出力されたフラグ「mtx_flag」及び動き検出部13により検出された動きベクトルなどを可変長符号化して符号化データを出力する処理を実施する。なお、可変長符号化部24は可変長符号化手段を構成している。   The variable length coding unit 24 detects the quantization index calculated by the quantization unit 22, the dct_type output from the blocking unit 4, the flag “mtx_flag” output from the mode determination unit 21, and the motion detection unit 13. A process of variable-length coding a motion vector or the like and outputting encoded data is performed. The variable length coding unit 24 constitutes variable length coding means.

次に動作について説明する。
モード判定部21は、画面並べ替え部1から出力されたマクロブロック単位のインタレース信号と、減算器2から出力された差分信号とを入力すると、図1のモード判定部3と同様に、符号化対象信号として、そのインタレース信号又は差分信号をブロック化部4に出力する。
また、モード判定部21は、量子化マトリクスの選択に用いる指標信号として、符号化処理方式がフレーム内符号化処理であるのか、フレーム間符号化処理であるのかを示すフラグ「mtx_flag」を量子化部22、逆量子化部23及び可変長符号化部24に出力する。
Next, the operation will be described.
When the mode determination unit 21 receives the macroblock-unit interlace signal output from the screen rearrangement unit 1 and the difference signal output from the subtractor 2, the mode determination unit 21 encodes the code as in the mode determination unit 3 of FIG. The interlaced signal or the difference signal is output to the blocking unit 4 as the signal to be converted.
Further, the mode determination unit 21 quantizes the flag “mtx_flag” indicating whether the encoding processing method is intra-frame encoding processing or inter-frame encoding processing as an index signal used for selecting a quantization matrix. Output to the unit 22, the inverse quantization unit 23, and the variable length coding unit 24.

量子化部22は、予め、フレームブロックに対応する量子化マトリクスを2種類以上用意し、また、フィールドブロックに対応する量子化マトリクスを2種類用意している。
量子化部22は、ブロック化部4から出力されたdct_typeが「フレームブロック」である旨を示す場合、モード判定部21から出力されたフラグ「mtx_flag」を参照して、フレームブロックに対応する複数の量子化マトリクスの中から量子化に用いる量子化マトリクスを選択する。
フレームブロックに対応する複数の量子化マトリクスのうち、例えば、フラグ「mtx_flag」がフレーム内符号化処理を採用する旨を示している場合、フレーム内符号化処理に適している量子化マトリクスを選択し(例えば、AC係数を細かく量子化することが可能な量子化マトリクス)、フラグ「mtx_flag」がフレーム間符号化処理を採用する旨を示している場合、フレーム間符号化処理に適している量子化マトリクスを選択する(例えば、AC係数を粗く量子化することが可能な量子化マトリクス)。
The quantization unit 22 prepares in advance two or more types of quantization matrices corresponding to frame blocks, and prepares two types of quantization matrices corresponding to field blocks.
When the quantization unit 22 indicates that the dct_type output from the blocking unit 4 is a “frame block”, the quantization unit 22 refers to the flag “mtx_flag” output from the mode determination unit 21 and corresponds to the plurality of frame blocks. A quantization matrix used for quantization is selected from the quantization matrices.
For example, when the flag “mtx_flag” indicates that the intra-frame encoding process is to be adopted, a quantization matrix suitable for the intra-frame encoding process is selected from the plurality of quantization matrices corresponding to the frame block. (E.g., a quantization matrix capable of finely quantizing AC coefficients), if the flag "mtx_flag" indicates that interframe coding processing is adopted, quantization suitable for interframe coding processing A matrix is selected (for example, a quantization matrix capable of coarsely quantizing AC coefficients).

一方、ブロック化部4から出力されたdct_typeが「フィールドブロック」である旨を示す場合、モード判定部21から出力されたフラグ「mtx_flag」を参照して、フィールドブロックに対応する複数の量子化マトリクスの中から量子化に用いる量子化マトリクスを選択する。
フィールドブロックに対応する複数の量子化マトリクスのうち、例えば、フラグ「mtx_flag」がフレーム内符号化処理を採用する旨を示している場合、フレーム内符号化処理に適している量子化マトリクスを選択し(例えば、AC係数を細かく量子化することが可能な量子化マトリクス)、フラグ「mtx_flag」がフレーム間符号化処理を採用する旨を示している場合、フレーム間符号化処理に適している量子化マトリクスを選択する(例えば、AC係数を粗く量子化することが可能な量子化マトリクス)。
量子化部22は、量子化に用いる量子化マトリクスを選択すると、その量子化マトリクスを用いて、DCT部5から出力されたDCT係数を量子化することで量子化インデックスを算出する。
On the other hand, when the dct_type output from the blocking unit 4 indicates “field block”, a plurality of quantization matrices corresponding to the field block are referred to with reference to the flag “mtx_flag” output from the mode determination unit 21. A quantization matrix to be used for quantization is selected from the list.
For example, when the flag “mtx_flag” indicates that the intra-frame encoding process is to be adopted, a quantization matrix suitable for the intra-frame encoding process is selected from a plurality of quantization matrices corresponding to the field block. (E.g., a quantization matrix capable of finely quantizing AC coefficients), if the flag "mtx_flag" indicates that interframe coding processing is adopted, quantization suitable for interframe coding processing A matrix is selected (for example, a quantization matrix capable of coarsely quantizing AC coefficients).
When the quantization unit 22 selects a quantization matrix used for quantization, the quantization unit 22 calculates a quantization index by quantizing the DCT coefficient output from the DCT unit 5 using the quantization matrix.

逆量子化部23は、量子化部22と同様に、フレームブロックに対応する量子化マトリクスを2種類以上用意し、また、フィールドブロックに対応する量子化マトリクスを2種類用意している。
逆量子化部23は、量子化部22と同様の方法で、逆量子化に用いる量子化マトリクスを選択し、その量子化マトリクスを用いて、量子化部22により算出された量子化インデックスを逆量子化してDCT係数をIDCT部8に出力する。
Similar to the quantization unit 22, the inverse quantization unit 23 prepares two or more types of quantization matrices corresponding to frame blocks, and prepares two types of quantization matrices corresponding to field blocks.
The inverse quantization unit 23 selects a quantization matrix used for inverse quantization in the same manner as the quantization unit 22, and uses the quantization matrix to reverse the quantization index calculated by the quantization unit 22. The quantization is performed and the DCT coefficient is output to the IDCT unit 8.

可変長符号化部24は、量子化部22により算出された量子化インデックス、ブロック化部4から出力されたdct_type、モード判定部21から出力されたフラグ「mtx_flag」、動き検出部13により検出された動きベクトルや、符号化方式情報などを可変長符号化して符号化データを出力する。
ただし、可変長符号化部24において、符号化方式情報が可変長符号化されるので、モード判定部21から出力されたフラグ「mtx_flag」については必ずしも可変長符号化する必要がない。
The variable length encoding unit 24 is detected by the quantization index calculated by the quantization unit 22, dct_type output from the blocking unit 4, the flag “mtx_flag” output from the mode determination unit 21, and the motion detection unit 13. The motion vector, the encoding method information, and the like are subjected to variable length encoding to output encoded data.
However, since the variable length encoding unit 24 performs variable length encoding on the encoding scheme information, the flag “mtx_flag” output from the mode determination unit 21 does not necessarily need to be variable length encoded.

以上で明らかなように、この実施の形態2によれば、量子化部22が、ブロック化部4から出力されたdct_typeが「フレームブロック」である旨を示す場合、モード判定部21から出力されたフラグ「mtx_flag」を参照して、フレームブロックに対応する複数の量子化マトリクスの中から量子化に用いる量子化マトリクスを選択し、そのdct_typeが「フィールドブロック」である旨を示す場合、モード判定部21から出力されたフラグ「mtx_flag」を参照して、フィールドブロックに対応する複数の量子化マトリクスの中から量子化に用いる量子化マトリクスを選択するように構成したので、上記実施の形態1よりも更に、量子化に用いる量子化マトリクスの適正化が図られ、更に効率的な符号化処理を実現することができる効果を奏する。   As apparent from the above, according to the second embodiment, when the quantizing unit 22 indicates that the dct_type output from the blocking unit 4 is a “frame block”, it is output from the mode determining unit 21. If the quantization matrix used for quantization is selected from a plurality of quantization matrices corresponding to the frame block with reference to the flag “mtx_flag”, and the dct_type indicates “field block”, the mode is determined. With reference to the flag “mtx_flag” output from the unit 21, the quantization matrix used for quantization is selected from the plurality of quantization matrices corresponding to the field block. In addition, the quantization matrix used for quantization is optimized and more efficient encoding processing is implemented. An effect that can be.

なお、この実施の形態2では、モード判定部21が、量子化マトリクスの選択に用いる指標信号として、符号化処理方式がフレーム内符号化処理であるのか、フレーム間符号化処理であるのかを示すフラグ「mtx_flag」を量子化部22、逆量子化部23及び可変長符号化部24に出力するものについて示したが、量子化マトリクスの選択に用いる指標信号として、インタレース信号を構成する画素のアスペクト比(1画素が画面内に占める割合の縦方向と横方向の比)が量子化部22、逆量子化部23及び可変長符号化部24に与えられるようにしてもよい。
この場合、量子化部22及び逆量子化部23は、画素のアスペクト比が縦長の場合、図10(C)に示すように、垂直方向の信号の密度が多くなるので、図2(B)のフィールドブロック用の量子化マトリクスのような傾向を示す量子化マトリクスを選択する。一方、画素のアスペクト比が水平方向と垂直方向で等しい場合、図10(B)に示すような信号の状態になるので、図2(A)のフレームブロック用の量子化マトリクスのような傾向を示す量子化マトリクスを選択する。
In the second embodiment, the mode determination unit 21 indicates whether the encoding processing method is an intra-frame encoding process or an inter-frame encoding process as an index signal used for selecting a quantization matrix. Although the flag “mtx_flag” is output to the quantization unit 22, the inverse quantization unit 23, and the variable length coding unit 24, as an index signal used for selecting a quantization matrix, the pixel of the interlace signal is displayed. The aspect ratio (ratio between the vertical direction and the horizontal direction in which one pixel occupies the screen) may be given to the quantization unit 22, the inverse quantization unit 23, and the variable length coding unit 24.
In this case, the quantization unit 22 and the inverse quantization unit 23 increase the signal density in the vertical direction as shown in FIG. 10C when the aspect ratio of the pixel is vertically long. A quantization matrix having a tendency like the quantization matrix for the field block is selected. On the other hand, when the aspect ratio of the pixel is the same in the horizontal direction and the vertical direction, the signal state as shown in FIG. 10 (B) is obtained, so that the tendency like the quantization matrix for the frame block in FIG. Select the quantization matrix to be shown.

また、量子化マトリクスの選択に用いる指標信号として、DCT部5から出力されたDCT係数の分布が量子化部22、逆量子化部23及び可変長符号化部24に与えられるようにしてもよい。
この場合、量子化部22及び逆量子化部23は、例えば、垂直方向に大きな値を有するDCT係数が多ければ、図2(B)のフィールドブロック用の量子化マトリクスのような傾向を示す量子化マトリクスを選択する。一方、垂直方向のDCT係数と水平方向のDCT係数との間に特に偏りがなければ、図2(A)のフレームブロック用の量子化マトリクスのような傾向を示す量子化マトリクスを選択する。
Further, as an index signal used for selecting a quantization matrix, the distribution of DCT coefficients output from the DCT unit 5 may be provided to the quantization unit 22, the inverse quantization unit 23, and the variable length coding unit 24. .
In this case, the quantizing unit 22 and the inverse quantizing unit 23, for example, if there are a large number of DCT coefficients having a large value in the vertical direction, the quantum indicating a tendency like the quantization matrix for the field block in FIG. Select the optimization matrix. On the other hand, if there is no particular bias between the DCT coefficients in the vertical direction and the DCT coefficients in the horizontal direction, a quantization matrix showing a tendency like the quantization matrix for the frame block in FIG. 2A is selected.

実施の形態3.
図4はこの発明の実施の形態3による動画像復号装置を示す構成図である。
図4において、可変長復号部31は図1の動画像符号化装置から出力された符号化データを可変長復号して、量子化インデックスを逆量子化部32に出力し、dct_type(ブロックタイプ信号)を逆量子化部32及びマクロブロック化部34に出力し、動きベクトルを動き補償部38に出力する処理を実施する。なお、可変長復号部31は可変長復号手段を構成している。
Embodiment 3 FIG.
4 is a block diagram showing a moving picture decoding apparatus according to Embodiment 3 of the present invention.
In FIG. 4, a variable length decoding unit 31 performs variable length decoding on the encoded data output from the moving picture encoding apparatus of FIG. 1, outputs a quantization index to the inverse quantization unit 32, and outputs dct_type (block type signal). ) Is output to the inverse quantization unit 32 and the macroblocking unit 34, and the process of outputting the motion vector to the motion compensation unit 38 is performed. The variable length decoding unit 31 constitutes a variable length decoding unit.

逆量子化部32は予めフレームブロックに対応する量子化マトリクスとフィールドブロックに対応する量子化マトリクスを用意しており、可変長復号部31から出力されたdct_typeが「フレームブロック」である旨を示す場合、フレームブロックに対応する量子化マトリクスを用いて、可変長復号部31から出力された量子化インデックスを逆量子化してDCT係数を出力し、そのdct_typeが「フィールドブロック」である旨を示す場合、フィールドブロックに対応する量子化マトリクスを用いて、可変長復号部31から出力された量子化インデックスを逆量子化してDCT係数を出力する処理を実施する。なお、逆量子化部32は逆量子化手段を構成している。   The inverse quantization unit 32 prepares a quantization matrix corresponding to the frame block and a quantization matrix corresponding to the field block in advance, and indicates that the dct_type output from the variable length decoding unit 31 is a “frame block”. In this case, the quantization index output from the variable length decoding unit 31 is inversely quantized using a quantization matrix corresponding to the frame block, and a DCT coefficient is output, indicating that the dct_type is “field block”. Using the quantization matrix corresponding to the field block, a process of dequantizing the quantization index output from the variable length decoding unit 31 and outputting a DCT coefficient is performed. Note that the inverse quantization unit 32 constitutes an inverse quantization means.

IDCT部33は逆量子化部32から出力されたDCT係数にIDCTを施して、フレームブロック又はフィールドブロックを出力する処理を実施する。なお、IDCT部33は逆離散コサイン変換手段を構成している。
マクロブロック化部34は可変長復号部31から出力されたdct_typeが「フレームブロック」である旨を示す場合、IDCT部33から出力されたフレームブロック内のフィールドを並び替えて元のマクロブロックを構成し、可変長復号部31から出力されたdct_typeが「フィールドブロック」である旨を示す場合、IDCT部33から出力されたフィールドブロック内のフィールドを並び替えて元のマクロブロックを構成する処理を実施する。なお、マクロブロック化部34はマクロブロック構成手段を構成している。
The IDCT unit 33 performs IDCT on the DCT coefficient output from the inverse quantization unit 32 and outputs a frame block or a field block. The IDCT unit 33 constitutes an inverse discrete cosine transform unit.
When the dct_type output from the variable length decoding unit 31 indicates “frame block”, the macroblock forming unit 34 rearranges the fields in the frame block output from the IDCT unit 33 to form the original macroblock. If the dct_type output from the variable length decoding unit 31 indicates “field block”, the process of rearranging the fields in the field block output from the IDCT unit 33 to configure the original macroblock is performed. To do. The macroblock forming unit 34 constitutes a macroblock forming unit.

加算器35はマクロブロック化部34から出力されたマクロブロックの信号(図1のモード判定部3から出力された符号化対象信号(マクロブロック単位のインタレース信号、または、差分信号)に相当する信号)と動き補償部38から出力された予測画像の画像信号を加算して、復号画像の画像信号を生成する処理を実施する。
スイッチ36は復号画像のピクチャに応じて、加算器35から出力された復号画像の画像信号を格納するフレームメモリ37を切り替える処理を実施する。
フレームメモリ37は復号画像の画像信号を格納するメモリである。
動き補償部38は可変長復号部31から出力された動きベクトルを用いて、フレームメモリ37により格納されている復号画像の画像信号の動き補償を実施して、予測画像の画像信号を生成する処理を実施する。
The adder 35 corresponds to a macroblock signal output from the macroblocking unit 34 (an encoding target signal (interlaced signal or difference signal in units of macroblocks) output from the mode determination unit 3 in FIG. 1). Signal) and the image signal of the predicted image output from the motion compensation unit 38 are added to generate a decoded image signal.
The switch 36 performs a process of switching the frame memory 37 that stores the image signal of the decoded image output from the adder 35 in accordance with the picture of the decoded image.
The frame memory 37 is a memory for storing the image signal of the decoded image.
The motion compensation unit 38 performs motion compensation of the image signal of the decoded image stored in the frame memory 37 using the motion vector output from the variable length decoding unit 31, and generates an image signal of the predicted image To implement.

次に動作について説明する。
可変長復号部31は、図1の動画像符号化装置から出力された符号化データを入力すると、その符号化データを可変長復号して、量子化インデックスを逆量子化部32に出力し、dct_typeを逆量子化部32及びマクロブロック化部34に出力する。また、動きベクトルを動き補償部38に出力する。
Next, the operation will be described.
When the variable length decoding unit 31 receives the encoded data output from the moving image encoding apparatus in FIG. 1, the variable length decoding unit 31 performs variable length decoding on the encoded data and outputs the quantization index to the inverse quantization unit 32. dct_type is output to the inverse quantization unit 32 and the macroblocking unit 34. The motion vector is output to the motion compensation unit 38.

逆量子化部32は、図1の量子化部6と同じ2種類の量子化マトリクス(図2(A)(B)の量子化マトリクス)を用意しており、可変長復号部31から出力されたdct_typeが「フレームブロック」である旨を示す場合、フレームブロックに対応する図2(A)の量子化マトリクスを用いて、可変長復号部31から出力された量子化インデックスを逆量子化してDCT係数をIDCT部33に出力する。
一方、そのdct_typeが「フィールドブロック」である旨を示す場合、フィールドブロックに対応する図2(B)の量子化マトリクスを用いて、可変長復号部31から出力された量子化インデックスを逆量子化してDCT係数をIDCT部33に出力する。
IDCT部33は、逆量子化部32からDCT係数を受けると、そのDCT係数にIDCTを施して、フレームブロック又はフィールドブロックをマクロブロック化部34に出力する。
The inverse quantization unit 32 prepares the same two types of quantization matrices as the quantization unit 6 of FIG. 1 (quantization matrices of FIGS. 2A and 2B), and is output from the variable length decoding unit 31. When the dct_type indicates “frame block”, the quantization index output from the variable-length decoding unit 31 is inversely quantized using the quantization matrix of FIG. The coefficient is output to the IDCT unit 33.
On the other hand, when the dct_type indicates that it is a “field block”, the quantization index output from the variable length decoding unit 31 is dequantized using the quantization matrix of FIG. 2B corresponding to the field block. The DCT coefficient is output to the IDCT unit 33.
Upon receiving the DCT coefficient from the inverse quantization unit 32, the IDCT unit 33 performs IDCT on the DCT coefficient and outputs a frame block or a field block to the macroblock conversion unit 34.

マクロブロック化部34は、可変長復号部31から出力されたdct_typeが「フレームブロック」である旨を示す場合、IDCT部33から出力されたフレームブロック内のフィールドを並び替えることで(図1のブロック化部4と逆の処理)、元のマクロブロックを構成して、そのマクロブロックを加算器35に出力する。
一方、そのdct_typeが「フィールドブロック」である旨を示す場合、IDCT部33から出力されたフィールドブロック内のフィールドを並び替えることで(図1のブロック化部4と逆の処理)、元のマクロブロックを構成して、そのマクロブロックを加算器35に出力する。
なお、ここでは、元のマクロブロックの並べ方については、本発明に影響を及ぼさないため言及しない。例えば、元のマクロブロックの状態として、二つのフィールドを組み合わせたフレームの状態(図7の状態)であってもよいし、それぞれのフィールドを分離した状態であってもよいし、その他の並べ方であってもよい。
When the dct_type output from the variable length decoding unit 31 indicates “frame block”, the macroblocking unit 34 rearranges the fields in the frame block output from the IDCT unit 33 (see FIG. 1). The original macroblock is configured and the macroblock is output to the adder 35.
On the other hand, when the dct_type indicates that it is a “field block”, the original macro is obtained by rearranging the fields in the field block output from the IDCT unit 33 (the reverse process of the blocking unit 4 in FIG. 1). A block is configured, and the macroblock is output to the adder 35.
Here, the original arrangement of macroblocks is not mentioned because it does not affect the present invention. For example, the state of the original macroblock may be a frame state (a state shown in FIG. 7) in which two fields are combined, a state where each field is separated, or other arrangements. There may be.

加算器35は、マクロブロック化部34からマクロブロックの信号を受けると、そのマクロブロックの信号と動き補償部38から出力された予測画像の画像信号を加算して、復号画像の画像信号を生成する。
スイッチ36は、加算器35により生成された復号画像の画像信号をフレームメモリ37に格納する。
動き補償部38は、可変長復号部31から出力された動きベクトルを用いて、フレームメモリ37により格納されている復号画像の画像信号の動き補償を実施して、予測画像の画像信号を生成し、その予測画像の画像信号を加算器35に出力する。
When the adder 35 receives the macroblock signal from the macroblocking unit 34, the adder 35 adds the macroblock signal and the image signal of the predicted image output from the motion compensation unit 38 to generate an image signal of the decoded image. To do.
The switch 36 stores the image signal of the decoded image generated by the adder 35 in the frame memory 37.
The motion compensation unit 38 performs motion compensation of the image signal of the decoded image stored in the frame memory 37 using the motion vector output from the variable length decoding unit 31, and generates an image signal of the predicted image. The image signal of the predicted image is output to the adder 35.

以上で明らかなように、この実施の形態3によれば、逆量子化部32が、可変長復号部31から出力されたdct_typeが「フレームブロック」である旨を示す場合、フレームブロックに対応する量子化マトリクスを用いて、可変長復号部31から出力された量子化インデックスを逆量子化してDCT係数を出力し、そのdct_typeが「フィールドブロック」である旨を示す場合、フィールドブロックに対応する量子化マトリクスを用いて、可変長復号部31から出力された量子化インデックスを逆量子化してDCT係数を出力するように構成したので、図1の動画像符号化装置によりインタレース信号が符号化されている符号化データを効率的に復号して、復号画像を出力することができる効果を奏する。   As apparent from the above, according to the third embodiment, when the inverse quantization unit 32 indicates that the dct_type output from the variable length decoding unit 31 is a “frame block”, it corresponds to the frame block. When the quantization index output from the variable length decoding unit 31 is inversely quantized using the quantization matrix and a DCT coefficient is output, and the dct_type indicates “field block”, the quantum corresponding to the field block Since the quantization index output from the variable-length decoding unit 31 is inversely quantized using the quantization matrix and the DCT coefficient is output, the interlace signal is encoded by the moving image encoding apparatus of FIG. It is possible to efficiently decode the encoded data and output a decoded image.

実施の形態4.
図5はこの発明の実施の形態4による動画像復号装置を示す構成図であり、図において、図4と同一符号は同一又は相当部分を示すので説明を省略する。
可変長復号部41は図3の動画像符号化装置から出力された符号化データを可変長復号して、量子化インデックス及びフラグ「mtx_flag」を逆量子化部42に出力し、dct_type(ブロックタイプ信号)を逆量子化部42及びマクロブロック化部34に出力し、動きベクトルを動き補償部38に出力する処理を実施する。なお、可変長復号部41は可変長復号手段を構成している。
Embodiment 4 FIG.
5 is a block diagram showing a moving picture decoding apparatus according to Embodiment 4 of the present invention. In the figure, the same reference numerals as those in FIG.
The variable length decoding unit 41 performs variable length decoding on the encoded data output from the moving image encoding apparatus in FIG. 3, outputs the quantization index and the flag “mtx_flag” to the inverse quantization unit 42, and sets dct_type (block type). Signal) is output to the inverse quantization unit 42 and the macroblocking unit 34, and the motion vector is output to the motion compensation unit 38. The variable length decoding unit 41 constitutes variable length decoding means.

逆量子化部42は予めフレームブロックに対応する量子化マトリクスとフィールドブロックに対応する量子化マトリクスをそれぞれ複数個用意しており、可変長復号部41から出力されたdct_typeが「フレームブロック」である旨を示す場合、可変長復号部41から出力されたフラグ「mtx_flag」を参照して、フレームブロックに対応する複数の量子化マトリクスの中から逆量子化に用いる量子化マトリクスを選択し、その量子化マトリクスを用いて、可変長復号部41から出力された量子化インデックスを逆量子化してDCT係数を出力する。一方、そのdct_typeが「フィールドブロック」である旨を示す場合、可変長復号部41から出力されたフラグ「mtx_flag」を参照して、フィールドブロックに対応する複数の量子化マトリクスの中から逆量子化に用いる量子化マトリクスを選択し、その量子化マトリクスを用いて、可変長復号部41から出力された量子化インデックスを逆量子化してDCT係数を出力する処理を実施する。なお、逆量子化部42は逆量子化手段を構成している。   The inverse quantization unit 42 prepares in advance a plurality of quantization matrices corresponding to frame blocks and a quantization matrix corresponding to field blocks, and the dct_type output from the variable length decoding unit 41 is a “frame block”. When indicating that, the quantization matrix used for the inverse quantization is selected from the plurality of quantization matrices corresponding to the frame block with reference to the flag “mtx_flag” output from the variable length decoding unit 41, and the quantum Using the quantization matrix, the quantization index output from the variable length decoding unit 41 is inversely quantized to output a DCT coefficient. On the other hand, when the dct_type indicates “field block”, the dequantization is performed from among a plurality of quantization matrices corresponding to the field block with reference to the flag “mtx_flag” output from the variable length decoding unit 41. A quantization matrix to be used is selected, and a quantization index output from the variable length decoding unit 41 is inversely quantized using the quantization matrix to output a DCT coefficient. The inverse quantization unit 42 constitutes inverse quantization means.

次に動作について説明する。
可変長復号部41及び逆量子化部42以外は、上記実施の形態3と同じである。
可変長復号部41は、図3の動画像符号化装置から出力された符号化データを入力すると、その符号化データを可変長復号して、量子化インデックス及びフラグ「mtx_flag」を逆量子化部42に出力し、dct_typeを逆量子化部42及びマクロブロック化部34に出力する。また、動きベクトルを動き補償部38に出力する。
Next, the operation will be described.
Except for the variable length decoding unit 41 and the inverse quantization unit 42, the present embodiment is the same as the third embodiment.
When the variable length decoding unit 41 receives the encoded data output from the moving image encoding apparatus in FIG. 3, the variable length decoding unit 41 performs variable length decoding on the encoded data, and dequantizes the quantization index and the flag “mtx_flag”. 42, and dct_type is output to the inverse quantization unit 42 and the macroblocking unit 34. The motion vector is output to the motion compensation unit 38.

逆量子化部42は、図3の量子化部22と同様に、フレームブロックに対応する量子化マトリクスとフィールドブロックに対応する量子化マトリクスをそれぞれ複数個用意している。
逆量子化部42は、可変長復号部41から出力されたdct_typeが「フレームブロック」である旨を示す場合、可変長復号部41から出力されたフラグ「mtx_flag」を参照して、フレームブロックに対応する複数の量子化マトリクスの中から逆量子化に用いる量子化マトリクスを選択し、その量子化マトリクスを用いて、可変長復号部41から出力された量子化インデックスを逆量子化してDCT係数を出力する。
一方、そのdct_typeが「フィールドブロック」である旨を示す場合、可変長復号部41から出力されたフラグ「mtx_flag」を参照して、フィールドブロックに対応する複数の量子化マトリクスの中から逆量子化に用いる量子化マトリクスを選択し、その量子化マトリクスを用いて、可変長復号部41から出力された量子化インデックスを逆量子化してDCT係数を出力する。
Similar to the quantization unit 22 of FIG. 3, the inverse quantization unit 42 prepares a plurality of quantization matrices corresponding to frame blocks and a plurality of quantization matrices corresponding to field blocks.
When the inverse quantization unit 42 indicates that the dct_type output from the variable length decoding unit 41 is a “frame block”, the inverse quantization unit 42 refers to the flag “mtx_flag” output from the variable length decoding unit 41 to convert the frame block into a frame block. A quantization matrix to be used for inverse quantization is selected from a plurality of corresponding quantization matrices, and the quantization index output from the variable length decoding unit 41 is inversely quantized using the quantization matrix to obtain a DCT coefficient. Output.
On the other hand, when the dct_type indicates “field block”, the dequantization is performed from among a plurality of quantization matrices corresponding to the field block with reference to the flag “mtx_flag” output from the variable length decoding unit 41. A quantization matrix to be used is selected, and the quantization index output from the variable length decoding unit 41 is inversely quantized using the quantization matrix to output a DCT coefficient.

以上で明らかなように、この実施の形態4によれば、逆量子化部42が、可変長復号部41から出力されたdct_typeが「フレームブロック」である旨を示す場合、可変長復号部41から出力されたフラグ「mtx_flag」を参照して、フレームブロックに対応する複数の量子化マトリクスの中から逆量子化に用いる量子化マトリクスを選択し、そのdct_typeが「フィールドブロック」である旨を示す場合、可変長復号部41から出力されたフラグ「mtx_flag」を参照して、フィールドブロックに対応する複数の量子化マトリクスの中から逆量子化に用いる量子化マトリクスを選択するように構成したので、上記実施の形態3よりも更に、逆量子化に用いる量子化マトリクスの適正化が図られ、更に効率的な復号処理を実現することができる効果を奏する。   As is apparent from the above, according to the fourth embodiment, when the inverse quantization unit 42 indicates that the dct_type output from the variable length decoding unit 41 is a “frame block”, the variable length decoding unit 41 Referring to the flag “mtx_flag” output from, a quantization matrix used for inverse quantization is selected from a plurality of quantization matrices corresponding to the frame block, and indicates that the dct_type is a “field block” In this case, with reference to the flag “mtx_flag” output from the variable length decoding unit 41, the quantization matrix used for inverse quantization is selected from a plurality of quantization matrices corresponding to the field block. In addition to the third embodiment, the quantization matrix used for inverse quantization is optimized, and more efficient decoding is achieved. An effect that can be achieved sense.

なお、上記実施の形態1〜4では、動画像符号化装置もしくは動画像復号装置が、2つ以上の量子化マトリクスをあらかじめ持っておくものとして説明を行ったが、動画像符号化装置が量子化マトリクスを生成し、例えば、その量子化マトリクスの情報を符号化データの一部に含めて動画像復号装置に出力することによって、量子化マトリクスを都度切り替えることも可能である。
このような構成にすることによって、動画像符号化装置に入力される画像信号の状態や、動画像符号化装置で設定されたビットレートなどのパラメータに応じて、最適な量子化マトリクスを設計し、これを用いて符号化処理を行うことが可能となる。
In the first to fourth embodiments, the description has been made assuming that the moving image encoding device or the moving image decoding device has two or more quantization matrices in advance. It is also possible to switch the quantization matrix each time, for example, by generating a quantization matrix and including the quantization matrix information in a part of the encoded data and outputting it to the video decoding device.
With this configuration, an optimal quantization matrix is designed according to the state of the image signal input to the video encoding device and the parameters such as the bit rate set by the video encoding device. Using this, it becomes possible to perform the encoding process.

1 画面並べ替え部、2 減算器、3 モード判定部、4 ブロック化部(ブロック構成手段)、5 DCT部(離散コサイン変換手段)、6 量子化部(量子化手段)、7 逆量子化部、8 IDCT部、9 スイッチ、10 加算器、11 スイッチ、12 フレームメモリ、13 動き検出部、14 動き補償部、15 可変長符号化部(可変長符号化手段)、21 モード判定部、22 量子化部(量子化手段)、23 逆量子化部、24 可変長符号化部(可変長符号化手段)、31 可変長復号部(可変長復号手段)、32 逆量子化部(逆量子化手段)、33 IDCT部(逆離散コサイン変換手段)、34 マクロブロック化部(マクロブロック構成手段)、35 加算器、36 スイッチ、37 フレームメモリ、38 動き補償部、41 可変長復号部(可変長復号手段)、42 逆量子化部(逆量子化手段)。   DESCRIPTION OF SYMBOLS 1 Screen rearrangement part, 2 Subtractor, 3 Mode determination part, 4 Blocking part (block formation means), 5 DCT part (discrete cosine transformation means), 6 Quantization part (quantization means), 7 Inverse quantization part , 8 IDCT section, 9 switch, 10 adder, 11 switch, 12 frame memory, 13 motion detection section, 14 motion compensation section, 15 variable length coding section (variable length coding means), 21 mode determination section, 22 quantum Quantization unit (quantization means), 23 inverse quantization unit, 24 variable length coding unit (variable length coding unit), 31 variable length decoding unit (variable length decoding unit), 32 inverse quantization unit (inverse quantization unit) ), 33 IDCT unit (inverse discrete cosine transform unit), 34 Macroblock unit (macroblock configuration unit), 35 Adder, 36 switch, 37 frame memory, 38 motion compensation unit, 41 Variable-length decoding section (variable length decoding means), 42 inverse quantization unit (inverse quantization means).

Claims (2)

マクロブロック内のインタレース形式の動画像信号のトップフィールドとボトムフィールドを交互に配置するフレームブロック又は上記動画像信号のトップフィールドとボトムフィールドを分離して配置するフィールドブロックを構成するブロック構成手段と、
上記ブロック構成手段により構成されたフレームブロック又はフィールドブロックを離散コサイン変換する離散コサイン変換手段と、
量子化マトリクスを選択する際に動画像信号を構成する画素のアスペクト比を示す指標信号を参照するとともに、上記ブロック構成手段により構成されたブロックの種類がフレームブロックであれば、上記フレームブロックに対応する量子化マトリクスを用いて、上記離散コサイン変換手段の変換結果を量子化することで量子化インデックスを算出し、上記ブロック構成手段により構成されたブロックの種類がフィールドブロックであれば、上記フィールドブロックに対応する量子化マトリクスを用いて、上記離散コサイン変換手段の変換結果を量子化することで量子化インデックスを算出する量子化手段と、
上記動画像信号を構成する画素のアスペクト比を示す指標信号と、上記量子化手段により算出された量子化インデックス及び上記ブロック構成手段により構成されたブロックの種類を示すブロックタイプ信号を可変長符号化して符号化データを出力する可変長符号化手段とを備えた動画像符号化装置。
A block configuration means for configuring a frame block in which top and bottom fields of an interlaced video signal in a macro block are alternately arranged or a field block in which the top field and bottom field of the video signal are separately arranged; ,
Discrete cosine transform means for performing discrete cosine transform on the frame block or field block configured by the block configuration means;
When the quantization matrix is selected, the index signal indicating the aspect ratio of the pixels constituting the moving image signal is referred to, and if the type of block configured by the block configuration means is a frame block, it corresponds to the frame block. The quantization index is calculated by quantizing the conversion result of the discrete cosine transform unit using the quantization matrix to be processed, and if the type of the block configured by the block configuration unit is a field block, the field block A quantization means for calculating a quantization index by quantizing the conversion result of the discrete cosine transform means using a quantization matrix corresponding to
The index signal indicating the aspect ratio of the pixels constituting the moving image signal, the quantization index calculated by the quantizing unit, and the block type signal indicating the type of block configured by the block forming unit are variable-length encoded. And a variable-length encoding means for outputting encoded data.
符号化データを可変長復号して、画素のアスペクト比を示す指標信号と量子化インデックスとブロックタイプ信号を出力する可変長復号手段と、Variable-length decoding means for variable-length decoding encoded data and outputting an index signal indicating a pixel aspect ratio, a quantization index, and a block type signal;
量子化マトリクスを選択する際に上記画素のアスペクト比を示す指標信号を参照するとともに、上記可変長復号手段から出力されたブロックタイプ信号が示すブロックの種類がフレームブロックである場合、上記フレームブロックに対応する量子化マトリクスを用いて、上記可変長復号手段から出力された量子化インデックスを逆量子化し、上記可変長復号手段から出力されたブロックタイプ信号が示すブロックの種類がフィールドブロックである場合、上記フィールドブロックに対応する量子化マトリクスを用いて、上記可変長復号手段から出力された量子化インデックスを逆量子化する逆量子化手段と、When an index signal indicating the aspect ratio of the pixel is selected when selecting a quantization matrix, and the block type indicated by the block type signal output from the variable-length decoding unit is a frame block, When the quantization index output from the variable length decoding unit is inversely quantized using a corresponding quantization matrix, and the block type indicated by the block type signal output from the variable length decoding unit is a field block, Dequantizing means for dequantizing the quantization index output from the variable length decoding means, using a quantization matrix corresponding to the field block;
上記逆量子化手段の逆量子化結果を逆離散コサイン変換することでフレームブロック又はフィールドブロックを出力する逆離散コサイン変換手段と、An inverse discrete cosine transform unit that outputs a frame block or a field block by performing an inverse discrete cosine transform on the inverse quantization result of the inverse quantization unit;
上記逆離散コサイン変換手段から出力されたフレームブロック又はフィールドブロック内のフィールドを並び替えて元のマクロブロックを構成するマクロブロック構成手段とを備えた動画像復号装置。A moving picture decoding apparatus comprising: a macroblock configuration unit configured to rearrange fields in a frame block or a field block output from the inverse discrete cosine transform unit to configure an original macroblock.
JP2009057907A 2009-03-11 2009-03-11 Video encoding apparatus and video decoding apparatus Expired - Fee Related JP5100689B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009057907A JP5100689B2 (en) 2009-03-11 2009-03-11 Video encoding apparatus and video decoding apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009057907A JP5100689B2 (en) 2009-03-11 2009-03-11 Video encoding apparatus and video decoding apparatus

Publications (2)

Publication Number Publication Date
JP2010213063A JP2010213063A (en) 2010-09-24
JP5100689B2 true JP5100689B2 (en) 2012-12-19

Family

ID=42972776

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009057907A Expired - Fee Related JP5100689B2 (en) 2009-03-11 2009-03-11 Video encoding apparatus and video decoding apparatus

Country Status (1)

Country Link
JP (1) JP5100689B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EA021750B1 (en) 2009-10-30 2015-08-31 Панасоник Интеллекчуал Проперти Корпорэйшн оф Америка Decoding method, decoder apparatus, encoding method, and encoder apparatus
WO2012096156A1 (en) * 2011-01-12 2012-07-19 パナソニック株式会社 Image encoding method, image decoding method, image encoding device, and image decoding device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2876258B2 (en) * 1991-01-23 1999-03-31 株式会社リコー Digital electronic still camera
US5227878A (en) * 1991-11-15 1993-07-13 At&T Bell Laboratories Adaptive coding and decoding of frames and fields of video
KR100297830B1 (en) * 1996-11-09 2001-08-07 윤종용 Device and method for controlling bit generation amount per object
US6831947B2 (en) * 2001-03-23 2004-12-14 Sharp Laboratories Of America, Inc. Adaptive quantization based on bit rate prediction and prediction error energy

Also Published As

Publication number Publication date
JP2010213063A (en) 2010-09-24

Similar Documents

Publication Publication Date Title
JP6681758B2 (en) Adaptive frame / field coding at macroblock level for digital video content
JP6618439B2 (en) Moving picture coding apparatus, moving picture coding method, moving picture decoding apparatus, and moving picture decoding method
US7099515B2 (en) Bitplane coding and decoding for AC prediction status information
JP4921971B2 (en) Innovations in encoding and decoding macroblocks and motion information for interlaced and progressive video
US7092576B2 (en) Bitplane coding for macroblock field/frame coding type information
US20170374380A1 (en) Image encoding method and image decoding method
US7426308B2 (en) Intraframe and interframe interlace coding and decoding
EP2685739B1 (en) Real-time encoding system of multiple spatially scaled video based on shared video coding information
JP5036884B2 (en) Interlaced video encoding and decoding
JP2020114013A (en) Encoding device, decoding device, encoding method, decoding method, and program
KR101502611B1 (en) Real-time video coding system of multiple temporally scaled video and of multiple profile and standards based on shared video coding information
KR20140089584A (en) Image coding apparatus, image coding method, image decoding apparatus, image decoding method, and storage medium
JP2008154155A (en) Moving image encoding apparatus
TW201631967A (en) Gradual updating using transform coefficients for encoding and decoding
JP2011166592A (en) Image encoding device, and image decoding device
JP5100689B2 (en) Video encoding apparatus and video decoding apparatus
JP5031763B2 (en) Method for predicting motion and texture data
KR20180041833A (en) Video coding method and apparatus using most probable mode list of intra

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110920

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120604

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120612

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120810

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: 20120828

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120925

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151005

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees