JP2007520948A - Image encoding method, image decoding method, image encoding device, image decoding device, and program - Google Patents

Image encoding method, image decoding method, image encoding device, image decoding device, and program Download PDF

Info

Publication number
JP2007520948A
JP2007520948A JP2006549708A JP2006549708A JP2007520948A JP 2007520948 A JP2007520948 A JP 2007520948A JP 2006549708 A JP2006549708 A JP 2006549708A JP 2006549708 A JP2006549708 A JP 2006549708A JP 2007520948 A JP2007520948 A JP 2007520948A
Authority
JP
Japan
Prior art keywords
frequency component
difference value
image
encoding
code
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.)
Granted
Application number
JP2006549708A
Other languages
Japanese (ja)
Other versions
JP2007520948A5 (en
JP4705921B2 (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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Publication of JP2007520948A publication Critical patent/JP2007520948A/en
Publication of JP2007520948A5 publication Critical patent/JP2007520948A5/ja
Application granted granted Critical
Publication of JP4705921B2 publication Critical patent/JP4705921B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • H04N19/126Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/196Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/463Embedding additional information in the video signal during the compression process by compressing encoding parameters before transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding

Abstract

本発明の画像符号化方法は、画像をブロック単位の直交変換および量子化によって符号化するとともに、直交変換係数の各周波数に応じた量子化ステップを導出するための量子化マトリクスを符号化する画像符号化方法であって、前記量子化マトリクスの周波数成分毎に、周波数成分とその周波数成分に応じた所定値との差分値を求め、前記差分値を可変長符号に符号化し、前記可変長符号は、前記差分値が小さいほど短いか同じ長さの符号長を有する。  The image encoding method according to the present invention encodes a quantization matrix for encoding an image by orthogonal transform and quantization in block units and deriving a quantization step corresponding to each frequency of the orthogonal transform coefficient. In the encoding method, for each frequency component of the quantization matrix, a difference value between a frequency component and a predetermined value corresponding to the frequency component is obtained, the difference value is encoded into a variable length code, and the variable length code Has a code length that is shorter or the same as the difference value is smaller.

Description

本発明は、動画像を効率良く圧縮する画像符号化方法とそれを正しく復号化する画像復号化方法、画像符号化装置、画像復号化装置およびプログラムに関する。   The present invention relates to an image encoding method for efficiently compressing a moving image, an image decoding method for correctly decoding the image, an image encoding device, an image decoding device, and a program.

近年、音声、画像、その他の画素値を統合的に扱うマルチメディア時代を迎え、従来からの情報メディア,つまり新聞,雑誌,テレビ,ラジオ,電話等の情報を人に伝達する手段がマルチメディアの対象として取り上げられるようになってきた。一般に、マルチメディアとは、文字だけでなく、図形、音声、特に画像等を同時に関連づけて表すことをいうが、上記従来の情報メディアをマルチメディアの対象とするには、その情報をディジタル形式にして表すことが必須条件となる。   In recent years, with the era of multimedia that handles voice, images, and other pixel values in an integrated manner, conventional information media, that is, means for transmitting information such as newspapers, magazines, televisions, radios, and telephones to humans have been developed. It has come to be taken up as a target. In general, multimedia refers to not only characters but also figures, sounds, especially images, etc. that are associated with each other at the same time. It is an essential condition.

ところが、上記各情報メディアの持つ情報量をディジタル情報量として見積もってみると、文字の場合1文字当たりの情報量は1〜2バイトであるのに対し、音声の場合1秒当たり64Kbits(電話品質)、さらに動画については1秒当たり100Mbits(現行テレビ受信品質)以上の情報量が必要となり、上記情報メディアでその膨大な情報をディジタル形式でそのまま扱うことは現実的では無い。例えば、テレビ電話は、64Kbit/s〜1.5Mbit/sの伝送速度を持つサービス総合ディジタル網(ISDN : Integrated Services Digital Network)によってすでに実用化されているが、テレビ・カメラの映像をそのままISDNで送ることは不可能である。   However, when the amount of information possessed by each information medium is estimated as the amount of digital information, the amount of information per character in the case of characters is 1 to 2 bytes, whereas in the case of speech, 64 Kbits (phone quality) In addition, for a moving image, an information amount of 100 Mbits (current television reception quality) or more per second is required, and it is not realistic to handle the enormous amount of information in the digital format as it is with the information medium. For example, videophones have already been put into practical use by the Integrated Services Digital Network (ISDN) with a transmission speed of 64 Kbit / s to 1.5 Mbit / s, but the video from the TV camera is sent as it is via ISDN. It is impossible.

そこで、必要となってくるのが情報の圧縮技術であり、例えば、テレビ電話の場合、ITU-T(国際電気通信連合 電気通信標準化部門)で勧告されたH.261やH.263規格の動画圧縮技術が用いられている。また、MPEG-1規格の情報圧縮技術によると、通常の音楽用CD(コンパクト・ディスク)に音声情報とともに画像情報を入れることも可能となる。   Therefore, what is needed is information compression technology. For example, in the case of videophones, videos of H.261 and H.263 standards recommended by the ITU-T (International Telecommunication Union Telecommunication Standardization Sector) Compression techniques are used. Further, according to the MPEG-1 standard information compression technology, it is possible to put image information together with audio information on a normal music CD (compact disc).

ここで、MPEG(Moving Picture Experts Group)とは、ISO/IEC(国際標準化機構 国際電気標準会議)で標準化された動画像信号圧縮の国際規格であり、MPEG-1は、動画像信号を1.5Mbit/sまで、つまりテレビ信号の情報を約100分の1にまで圧縮する規格である。また、MPEG-1規格では対象とする品質を伝送速度が主として約1.5Mbit/sで実現できる程度の中程度の品質としたことから、さらなる高画質化の要求をみたすべく規格化されたMPEG-2では、動画像信号を2〜15Mbit/sでTV放送品質を実現する。さらに現状では、MPEG-1,MPEG-2と標準化を進めてきた作業グループ(ISO/IEC JTC1/SC29/WG11) によって、MPEG-1,MPEG-2を上回る圧縮率を達成し、更に物体単位で符号化・復号化・操作を可能とし、マルチメディア時代に必要な新しい機能を実現するMPEG-4が規格化された。MPEG-4では、当初、低ビットレートの符号化方法の標準化を目指して進められたが、現在はインタレース画像も含む高ビットレートも含む、より汎用的な符号化に拡張されている。更に、現在は、ISO/IECとITU-Tが共同でより高圧縮率の次世代画像符号化方式として、MPEG-4AVCおよびITU H.264 の標準化活動が進んでいる。2002年8月の時点で、次世代画像符号化方式はコミッティー・ドラフト(CD)と呼ばれるものが発行されている。   Here, MPEG (Moving Picture Experts Group) is an international standard of moving picture signal compression standardized by ISO / IEC (International Electrotechnical Commission International Electrotechnical Commission). It is a standard for compressing information of TV signals up to 5 Mbit / s, that is, about 1/100. In addition, the MPEG-1 standard sets the target quality to a medium quality that can be realized mainly at a transmission speed of about 1.5 Mbit / s, so that the MPEG standardized to meet the demand for higher image quality. -2 realizes TV broadcast quality at 2-15 Mbit / s for moving image signals. Furthermore, at present, the working group (ISO / IEC JTC1 / SC29 / WG11), which has been standardizing with MPEG-1 and MPEG-2, has achieved a compression ratio that exceeds MPEG-1 and MPEG-2, and further, on a per-object basis. MPEG-4, which enables encoding / decoding / operation and realizes new functions required in the multimedia era, has been standardized. In MPEG-4, it was originally aimed at standardizing a low bit rate encoding method, but now it has been extended to a more general purpose encoding including a high bit rate including interlaced images. Furthermore, at present, standardization activities of MPEG-4 AVC and ITU H.264 are advancing as a next-generation image encoding method with a higher compression rate jointly by ISO / IEC and ITU-T. As of August 2002, a so-called committee draft (CD) has been issued as a next-generation image coding system.

一般に動画像の符号化では、時間方向および空間方向の冗長性を削減することによって情報量の圧縮を行う。そこで時間的な冗長性の削減を目的とする画面間予測符号化では、前方または後方のピクチャを参照してブロック単位で動きの検出および予測画像の作成を行い、得られた予測画像と符号化対象ピクチャとの差分値に対して符号化を行う。ここで、ピクチャとは1枚の画面を表す用語であり、プログレッシブ画像ではフレームを意味し、インタレース画像ではフレームもしくはフィールドを意味する。ここで、インタレース画像とは、1つのフレームが時刻の異なる2つのフィールドから構成される画像である。インタレース画像の符号化や復号化処理においては、1つのフレームをフレームのまま処理したり、2つのフィールドとして処理したり、フレーム内のブロック毎にフレーム構造またはフィールド構造として処理したりすることができる。   In general, in encoding of moving images, the amount of information is compressed by reducing redundancy in the time direction and the spatial direction. Therefore, in inter-picture predictive coding for the purpose of reducing temporal redundancy, motion is detected and a predicted image is created in units of blocks with reference to the forward or backward picture, and the resulting predicted image and the encoded image are encoded. Encoding is performed on the difference value from the target picture. Here, a picture is a term representing a single screen, which means a frame in a progressive image and a frame or field in an interlaced image. Here, an interlaced image is an image in which one frame is composed of two fields having different times. In interlaced image encoding and decoding processing, one frame may be processed as a frame, processed as two fields, or processed as a frame structure or a field structure for each block in the frame. it can.

参照画像を用いずに画面内予測符号化を行うピクチャをIピクチャと呼ぶ。また、1枚のピクチャのみを参照し画面間予測符号化を行うピクチャをPピクチャと呼ぶ。また、同時に2枚のピクチャを参照して画面間予測符号化を行うことのできるピクチャをBピクチャと呼ぶ。Bピクチャは表示時間が前方もしくは後方から任意の組み合わせとして2枚のピクチャを参照することが可能である。参照画像(参照ピクチャ)は符号化および復号化の基本単位であるブロックごとに指定することができるが、符号化を行ったビットストリーム中に先に記述される方の参照ピクチャを第1参照ピクチャ、後に記述される方を第2参照ピクチャとして区別する。ただし、これらのピクチャを符号化および復号化する場合の条件として、参照するピクチャが既に符号化および復号化されている必要がある。   A picture that is subjected to intra prediction encoding without using a reference picture is called an I picture. A picture for which inter-picture prediction coding is performed with reference to only one picture is called a P picture. In addition, a picture that can be subjected to inter-frame predictive coding with reference to two pictures at the same time is called a B picture. The B picture can refer to two pictures as an arbitrary combination of display times from the front or the rear. A reference picture (reference picture) can be specified for each block which is a basic unit of encoding and decoding. The reference picture described earlier in the encoded bitstream is designated as the first reference picture. The one described later is distinguished as the second reference picture. However, as a condition for encoding and decoding these pictures, the picture to be referenced needs to be already encoded and decoded.

PピクチャまたはBピクチャの符号化には、動き補償画面間予測符号化が用いられている。動き補償画面間予測符号化とは、画面間予測符号化に動き補償を適用した符号化方式である。動き補償とは、単純に参照フレームの画素値から予測するのではなく、ピクチャ内の各部の動き量(以下、これを動きベクトルと呼ぶ)を検出し、当該動き量を考慮した予測を行うことにより予測精度を向上すると共に、データ量を減らす方式である。例えば、符号化対象ピクチャの動きベクトルを検出し、その動きベクトルの分だけシフトした予測値と符号化対象ピクチャとの予測残差を符号化することによりデータ量を減している。この方式の場合には、復号化の際に動きベクトルの情報が必要になるため、動きベクトルも符号化されて記録又は伝送される。   Motion compensation inter-picture prediction coding is used for coding a P picture or a B picture. The motion compensation inter-picture prediction encoding is an encoding method in which motion compensation is applied to inter-picture prediction encoding. Motion compensation is not simply predicting from the pixel value of the reference frame, but detecting the amount of motion of each part in the picture (hereinafter referred to as a motion vector) and performing prediction in consideration of the amount of motion. This improves the prediction accuracy and reduces the amount of data. For example, the amount of data is reduced by detecting the motion vector of the encoding target picture and encoding the prediction residual between the prediction value shifted by the motion vector and the encoding target picture. In the case of this method, since motion vector information is required at the time of decoding, the motion vector is also encoded and recorded or transmitted.

動きベクトルはマクロブロック単位で検出されており、具体的には、符号化対象ピクチャ側のマクロブロックを固定しておき、参照ピクチャ側のマクロブロックを探索範囲内で移動させ、基準ブロックと最も似通った参照ブロックの位置を見つけることにより、動きベクトルが検出される。   The motion vector is detected in units of macroblocks. Specifically, the macroblock on the encoding target picture side is fixed, the macroblock on the reference picture side is moved within the search range, and is most similar to the reference block. The motion vector is detected by finding the position of the reference block.

図1はビットストリームのデータ構造の例を示した説明図である。図1に示すようにビットストリームは以下のような階層構造を有している。ビットストリーム(Stream)は複数のグループ・オブ・ピクチャ(Group Of Picture)から構成される。グループ・オブ・ピクチャを符号化処理の基本単位とすることで動画像の編集やランダムアクセスが可能になっている。グループ・オブ・ピクチャは、複数のピクチャから構成され、各ピクチャは、Iピクチャ、PピクチャまたはBピクチャがある。各ピクチャはさらに複数のスライスから構成されている。スライスは、各ピクチャ内の帯状の領域であり、複数のマクロブロックから構成されている。ストリーム、GOP、ピクチャおよびスライスはさらにそれぞれの単位の区切りを示す同期信号(sync)と当該単位に共通のデータであるヘッダ(header)から構成されている。   FIG. 1 is an explanatory diagram showing an example of the data structure of a bitstream. As shown in FIG. 1, the bit stream has the following hierarchical structure. The bit stream (Stream) is composed of a plurality of group of pictures. By using the group of pictures as the basic unit of encoding processing, editing of moving images and random access are possible. The group of pictures is composed of a plurality of pictures, and each picture includes an I picture, a P picture, or a B picture. Each picture is further composed of a plurality of slices. A slice is a band-like area in each picture, and is composed of a plurality of macroblocks. Streams, GOPs, pictures, and slices are further composed of a synchronization signal (sync) indicating the division of each unit and a header that is data common to the unit.

また、ストリームが連続したビットストリームでなく、細切れのデータの単位であるパケット等で伝送する場合はヘッダ部とヘッダ以外のデータ部を分離して別に伝送してもよい。その場合は、図1のようにヘッダ部とデータ部が1つのビットストリームとなることはない。しかしながら、パケットの場合は、ヘッダ部とデータ部の伝送する順序が連続しなくても、対応するデータ部に対応するヘッダ部が別のパケットで伝送されるだけであり、1つのビットストリームとなっていなくても、概念は図1で説明した符号化ビットストリームの場合と同じである。   In addition, when the stream is transmitted not by a continuous bit stream but by a packet or the like which is a unit of chopped data, the header part and the data part other than the header may be separated and transmitted separately. In that case, the header part and the data part do not become one bit stream as shown in FIG. However, in the case of a packet, even if the transmission order of the header part and the data part is not continuous, only the header part corresponding to the corresponding data part is transmitted in another packet, and it becomes one bit stream. Even if not, the concept is the same as that of the encoded bit stream described in FIG.

一般に人間の視覚特性は画像中の低周波数成分に敏感であり、高周波数成分は低周波数成分ほど感度が高くないといわれている。更に、画像信号は低周波数成分のエネルギーが高周波数成分のエネルギーよりも大きいことから、画像符号化は低周波数成分から高周波数成分の順序で行われる。その結果、低周波数成分の符号化に必要なビット数よりも高周波数成分の符号化に必要なビット数の方が多くなる。   In general, human visual characteristics are sensitive to low frequency components in an image, and high frequency components are said to be less sensitive than low frequency components. Furthermore, since the energy of the low frequency component of the image signal is larger than the energy of the high frequency component, the image encoding is performed in the order of the low frequency component to the high frequency component. As a result, the number of bits required for encoding the high frequency component is larger than the number of bits required for encoding the low frequency component.

以上の観点から、従来の符号化方法では、直交変換により得られる周波数毎の変換係数の量子化において、低周波数成分よりも高周波数成分に対応する量子化ステップを粗くしている。これにより、主観画質の劣化はわずかでありながら大幅に圧縮率を向上する方法が従来採用されている。   From the above viewpoint, in the conventional encoding method, in the quantization of the transform coefficient for each frequency obtained by orthogonal transform, the quantization step corresponding to the high frequency component is made rougher than the low frequency component. As a result, a method has been conventionally employed in which the compression rate is greatly improved while the subjective image quality is hardly deteriorated.

さて、低周波数成分に対して高周波数成分の量子化ステップをどの程度粗くするかについては画像信号に依存するため、画像に応じて各周波数成分の量子化ステップの大きさを変更する手法が採用されている。各周波数成分の量子化ステップを導出するために量子化マトリクスが用いられる。量子化マトリクスの例を図2に示す。図2の量子化マトリクスの例において、左上がDC成分、右方が水平高周波数成分、下方が垂直高周波数成分に対応する。また、数値が大きいほど量子化ステップが粗くなることを示す。量子化マトリクスは、通常各ピクチャ単位で変更可能となっている。各周波数成分の量子化ステップの大きさを示す値が固定長で符号化される。なお、量子化マトリクスの各成分と量子化ステップの値はほぼ比例関係にあるのが一般的であるが、必ずしもこれにこだわる必要は無く、両者の対応が明確に規定されていれば良い。   The degree of coarsening of the high frequency component quantization step relative to the low frequency component depends on the image signal. Therefore, a method is adopted in which the size of each frequency component quantization step is changed according to the image. Has been. A quantization matrix is used to derive the quantization step for each frequency component. An example of the quantization matrix is shown in FIG. In the example of the quantization matrix in FIG. 2, the upper left corresponds to the DC component, the right corresponds to the horizontal high frequency component, and the lower portion corresponds to the vertical high frequency component. Moreover, it shows that a quantization step becomes coarse, so that a numerical value is large. The quantization matrix can usually be changed for each picture. A value indicating the magnitude of the quantization step of each frequency component is encoded with a fixed length. Note that each component of the quantization matrix and the value of the quantization step are generally in a proportional relationship, but it is not always necessary to stick to this, and it is sufficient that the correspondence between the two is clearly defined.

しかしながら、量子化マトリクスの各周波数成分の値は一定の範囲に集中していることから単純に固定長符号化を行うと符号化効率がよくないという問題がある。   However, since the value of each frequency component of the quantization matrix is concentrated in a certain range, there is a problem that the encoding efficiency is not good if the fixed length encoding is simply performed.

本発明の目的は、量子化マトリクスの符号化効率を向上させた画像符号化方法、画像復号化方法、画像符号化装置、画像復号化装置およびプログラムを提供することを目的とする。   An object of the present invention is to provide an image encoding method, an image decoding method, an image encoding device, an image decoding device, and a program that improve the encoding efficiency of a quantization matrix.

上記目的を達成するため本発明の画像符号化方法は、画像をブロック単位の直交変換および量子化によって符号化するとともに、直交変換係数の各周波数に応じた量子化ステップを導出するための量子化マトリクスを符号化する画像符号化方法であって、前記量子化マトリクスの周波数成分毎に、周波数成分とその周波数成分に応じた所定値との差分値を求め、前記差分値を可変長符号に符号化し、前記可変長符号は、前記差分値が小さいほど短いか同じ長さの符号長を有する。ここで、所定値は、例えば最も出現頻度の高い周波数成分の値でもよいし、周波数成分の平均的な値を示す定数でもよいし、周波数成分毎に予め定められた値でもよい。   In order to achieve the above object, the image encoding method of the present invention encodes an image by orthogonal transform and quantization in units of blocks, and performs quantization to derive a quantization step corresponding to each frequency of the orthogonal transform coefficient. An image encoding method for encoding a matrix, wherein a difference value between a frequency component and a predetermined value corresponding to the frequency component is obtained for each frequency component of the quantization matrix, and the difference value is encoded into a variable length code. In other words, the variable length code has a code length that is shorter or the same as the difference value is smaller. Here, the predetermined value may be, for example, the value of the frequency component having the highest appearance frequency, a constant indicating the average value of the frequency components, or a value determined in advance for each frequency component.

この構成によれば、周波数成分と所定値との差分値をとるので差分値は周波数成分よりも小さい値になり、周波数成分そのものを符号化するのではなく、差分値を符号化するので、可変長符号の符号長を短くし符号化効率を向上させることができる。   According to this configuration, since the difference value between the frequency component and the predetermined value is taken, the difference value is smaller than the frequency component, and the difference value is encoded instead of encoding the frequency component itself. It is possible to shorten the code length of the long code and improve the coding efficiency.

ここで、前記所定値は、直前に求められた差分値に対応する周波数成分の値としてもよい。   Here, the predetermined value may be a value of a frequency component corresponding to the difference value obtained immediately before.

この構成によれば、周波数成分と直前の周波数成分とは通常は相関関係があるので、各差分値をより小さい値にすることができ、さらに符号化効率を向上させることができる。   According to this configuration, since the frequency component and the immediately preceding frequency component are usually correlated, each difference value can be made smaller, and the encoding efficiency can be further improved.

ここで、前記差分値は、前記量子化マトリクスに含まれる周波数成分の低周波数から高周波数の順に求めてもよい。   Here, the difference value may be obtained in order from a low frequency to a high frequency of frequency components included in the quantization matrix.

この構成によれば、低周波数から高周波数の順に周波数成分が符号化されるので、周波数成分と直前の周波数成分とは同じくらいの値をとる確率が高く、より確実に各差分値を小さい値にすることができ、より一層符号化効率を向上させることができる。   According to this configuration, since frequency components are encoded in order from low frequency to high frequency, there is a high probability that the frequency component and the immediately preceding frequency component have the same value, and each difference value is more reliably reduced. Encoding efficiency can be further improved.

ここで、前記差分値は、2のk乗(kは定数)で除算した剰余として求めてもよい。   Here, the difference value may be obtained as a remainder obtained by dividing by 2 to the power of k (k is a constant).

この構成によれば、例えば、2の8乗(k=8)で割った剰余として差分値が表現される場合には、差分値を実質的に8ビットで表現できる値に小さくすることができ、さらに可変長符号のビット数を減らすことができる。   According to this configuration, for example, when the difference value is expressed as a remainder divided by 2 to the 8th power (k = 8), the difference value can be reduced to a value that can be substantially expressed by 8 bits. Further, the number of bits of the variable length code can be reduced.

ここで、前記画像符号化方法は、さらに、連続する差分値0が量子化マトリクスの末尾に存在するかどうかを判定し、連続する差分値0が存在すると判定された場合に、前記連続する差分値0を可変長符号化しないようにしてもよい。   Here, the image encoding method further determines whether or not a continuous difference value 0 exists at the end of the quantization matrix, and determines that the continuous difference value 0 exists, and determines that the continuous difference value 0 exists. The value 0 may not be variable length encoded.

ここで、前記符号化方法は、さらに、前記可変長符号化した最後に終了符号を付加し、それ以降が符号化されていない連続する差分値0であることを示すようにしてもよい。   Here, in the encoding method, an end code may be added at the end of the variable length encoding to indicate that the subsequent difference values are 0 that are not encoded.

この構成によれば、同じ値をもつ複数の周波数成分が量子化マトリクスの末尾に連続している場合に、同じビット列をもつ複数の可変長符号を生成するのではなく、複数の周波数成分に対して可変長符号が1つだけ生成されるので、符号化効率をさらに向上させることができる。また、この場合、終了符号を付加することにより、画像復号化装置の復号処理の効率を向上させることができる。   According to this configuration, when a plurality of frequency components having the same value are continuous at the end of the quantization matrix, a plurality of variable length codes having the same bit string are not generated, but a plurality of frequency components are generated. Since only one variable length code is generated, the encoding efficiency can be further improved. In this case, the efficiency of the decoding process of the image decoding apparatus can be improved by adding the end code.

また、記目的を達成するため本発明の画像復号化方法は、符号化された画像をブロック単位に逆量子化および逆直交変換によって復号化するとともに、符号化された量子化マトリクスを復号化する画像復号化方法であって、可変長符号化された量子化マトリクスを、周波数成分毎の差分値に可変長復号し、前記差分値と、周波数成分に応じた所定値とを加算することにより、量子化マトリクスの周波数成分を求め、前記可変長符号は、前記差分値が小さいほど短いか同じ長さの符号長を有する。   In order to achieve the above object, the image decoding method of the present invention decodes an encoded image by inverse quantization and inverse orthogonal transform in units of blocks, and decodes an encoded quantization matrix. An image decoding method, wherein a variable-length-encoded quantization matrix is variable-length decoded into a difference value for each frequency component, and the difference value and a predetermined value corresponding to the frequency component are added, The frequency component of the quantization matrix is obtained, and the variable length code has a code length that is shorter or the same as the difference value is smaller.

ここで、前記所定値は、直前の加算により求められた周波数成分の値としてもよい。   Here, the predetermined value may be a value of a frequency component obtained by the previous addition.

ここで、前記加算の順序は、周波数成分の低周波数から高周波数の順としてもよい。   Here, the order of the addition may be from the low frequency to the high frequency of the frequency component.

ここで、前記周波数成分は、2のk乗(kは定数)で除算した剰余として求めてもよい。   Here, the frequency component may be obtained as a remainder divided by 2 to the power of k (k is a constant).

この構成によれば、上記符号化方法によって符号化効率を向上させた可変長符号列を容易に復号化することができる。   According to this configuration, it is possible to easily decode a variable-length code string whose encoding efficiency has been improved by the above encoding method.

ここで、前記画像復号化方法において、可変長符号化された量子化マトリクスから終了符号が検出された場合に、それ以降に後続する各周波数成分の値として、終了符号の直前の周波数成分と同じ値を出力してもよい。   Here, in the image decoding method, when the end code is detected from the variable-length-coded quantization matrix, the value of each subsequent frequency component is the same as the frequency component immediately before the end code. A value may be output.

この構成によれば、同じ値をもつ複数の周波数成分が量子化マトリクスの末尾に連続している場合に、1つの可変長符号から複数の周波数成分を復号化することができる。また、同じ値をもつ複数の周波数成分が量子化マトリクスの末尾に連続していることを、終了符号によって容易に判別することができる。   According to this configuration, when a plurality of frequency components having the same value are continuous at the end of the quantization matrix, the plurality of frequency components can be decoded from one variable length code. Further, it can be easily determined by the end code that a plurality of frequency components having the same value are continuous at the end of the quantization matrix.

また、本発明の画像符号化装置、画像復号化装置、プログラムについても上記と同様の構成および効果を有する。   Also, the image encoding device, the image decoding device, and the program of the present invention have the same configuration and effect as described above.

以下、本発明の実施の形態1について、図3から図17を用いて説明する。   Hereinafter, Embodiment 1 of the present invention will be described with reference to FIGS.

図3は実施の形態1における画像符号化装置の構成を示すブロック図である。   FIG. 3 is a block diagram showing the configuration of the image coding apparatus according to the first embodiment.

動画像符号化装置1は、入力される画像信号Vin を圧縮符号化して可変長符号等のビットストリームに変換した画像符号化信号Str を出力する装置であり、動き検出ユニットME、動き補償ユニットMC、減算ユニットSub、直交変換ユニットT、量子化ユニットQ、逆量子化ユニットIQ、逆直交変換ユニットIT、加算ユニットAdd、ピクチャメモリPicMem、スイッチSW、および可変長符号化ユニットVLCを備えている。   The moving image encoding apparatus 1 is an apparatus that outputs an image encoded signal Str obtained by compressing and encoding an input image signal Vin into a bit stream such as a variable length code, and includes a motion detection unit ME and a motion compensation unit MC. A subtracting unit Sub, an orthogonal transform unit T, a quantization unit Q, an inverse quantization unit IQ, an inverse orthogonal transform unit IT, an addition unit Add, a picture memory PicMem, a switch SW, and a variable length coding unit VLC.

画像信号Vin は、減算ユニットSubおよび動き検出ユニットMEに入力される。減算ユニットSubは、入力された画像信号Vin と予測画像の差分値を計算し、直交変換ユニットTに出力する。直交変換ユニットTは、差分値を周波数係数に変換し、量子化ユニットQに出力する。   The image signal Vin is input to the subtraction unit Sub and the motion detection unit ME. The subtraction unit Sub calculates a difference value between the input image signal Vin and the predicted image and outputs the difference value to the orthogonal transform unit T. The orthogonal transform unit T converts the difference value into a frequency coefficient and outputs it to the quantization unit Q.

量子化ユニットQは、減算ユニットSub入力されたブロック単位の周波数係数を外部から入力された量子化マトリクスWMを参照して導出した量子化ステップで量子化し、量子化値Qcoefを可変長符号化ユニットに出力する。   The quantization unit Q quantizes the block-unit frequency coefficient input to the subtraction unit Sub in a quantization step derived with reference to the quantization matrix WM input from the outside, and the quantized value Qcoef to the variable-length encoding unit. Output to.

逆量子化ユニットIQは、量子化マトリクスWMを参照して導出した量子化ステップで量子化値Qcoefを逆量子化して周波数係数に復元し、逆直交変換ユニットITに出力する。   The inverse quantization unit IQ inversely quantizes the quantized value Qcoef in a quantization step derived with reference to the quantization matrix WM, restores it to a frequency coefficient, and outputs it to the inverse orthogonal transform unit IT.

逆直交変換ユニットITは、周波数係数から画素差分値に逆周波数変換し、加算ユニットAddに出力する。加算ユニットAddは、画素差分値と動き補償ユニットMCから出力される予測画像とを加算して復号化画像とする。スイッチSWは、当該復号化画像の保存が指示された場合にONになり、復号化画像はピクチャメモリPicMemに保存される。   The inverse orthogonal transform unit IT performs inverse frequency conversion from the frequency coefficient to the pixel difference value, and outputs the result to the addition unit Add. The addition unit Add adds the pixel difference value and the predicted image output from the motion compensation unit MC to obtain a decoded image. The switch SW is turned ON when an instruction to store the decoded image is given, and the decoded image is stored in the picture memory PicMem.

一方、画像信号Vin がマクロブロック単位で入力された動き検出ユニットMEは、ピクチャメモリPicMemに格納されている復号化画像を探索対象とし、最も入力画像信号に近い画像領域を検出することによってその位置を指し示す動きベクトルMVを決定する。動きベクトル検出はマクロブロックをさらに分割したブロック単位で行われる。このとき、複数のピクチャを参照ピクチャとして使用することができるため、参照するピクチャを指定するための識別番号(参照インデックスIndex)がブロックごとに必要となる。参照インデックスIndexによって、ピクチャメモリPicMem中の各ピクチャが有するピクチャ番号との対応を取ることにより参照ピクチャを指定することが可能となる。   On the other hand, the motion detection unit ME to which the image signal Vin is input in units of macroblocks uses the decoded image stored in the picture memory PicMem as a search target and detects the position by detecting the image region closest to the input image signal. Is determined. Motion vector detection is performed in units of blocks obtained by further dividing a macroblock. At this time, since a plurality of pictures can be used as reference pictures, an identification number (reference index Index) for designating a picture to be referenced is required for each block. The reference picture can be specified by taking correspondence with the picture number of each picture in the picture memory PicMem by the reference index Index.

動き補償ユニットMCでは、上記処理によって検出された動きベクトルおよび参照インデックスIndexを用いて、ピクチャメモリPicMemに格納されている復号化画像から予測画像に最適な画像領域を取り出す。   In the motion compensation unit MC, using the motion vector detected by the above process and the reference index Index, an image region optimal for the predicted image is extracted from the decoded image stored in the picture memory PicMem.

可変長符号化ユニットVLCは、量子化マトリクスWM、量子化値Qcoef、参照インデックスIndexおよび動きベクトルMVを可変長符号化して符号化ストリームStrとする。そのため、可変長符号化ユニットVLCは、第1符号化部と第2符号化部とを内部に有する。第1符号化部(以下WM符号化部と呼ぶ。)は、量子化マトリクスWMを可変長符号化する。第2符号化部は、量子化マトリクスWM以外の、量子化値Qcoef、参照インデックスIndexおよび動きベクトルMV等を可変長符号化する。WM符号化部は、前記量子化マトリクスの周波数成分毎に、周波数成分とその周波数成分に応じた所定値との差分値を求め、前記差分値を可変長符号に符号化する。この可変長符号は、一部を除いて前記差分値が小さいほど短い符号長を有している。   The variable length coding unit VLC performs variable length coding on the quantization matrix WM, the quantized value Qcoef, the reference index Index, and the motion vector MV to obtain a coded stream Str. Therefore, the variable length coding unit VLC has a first coding unit and a second coding unit inside. A first encoding unit (hereinafter referred to as a WM encoding unit) performs variable length encoding on the quantization matrix WM. The second encoding unit performs variable-length encoding on the quantization value Qcoef, the reference index Index, the motion vector MV, and the like other than the quantization matrix WM. The WM encoding unit obtains a difference value between the frequency component and a predetermined value corresponding to the frequency component for each frequency component of the quantization matrix, and encodes the difference value into a variable length code. This variable length code has a shorter code length as the difference value is smaller except for a part.

図4は、WM符号化部の構成を示すブロック図である。同図のようにWM符号化部は、減算器41、Wバッファ42、オフセット決定部43、加算器44、ブロックバッファ45、個数判定部46、終了符号保持部47、スイッチ48、可変長符号化部49を備える。   FIG. 4 is a block diagram illustrating a configuration of the WM encoding unit. As shown in the figure, the WM encoding unit includes a subtracter 41, a W buffer 42, an offset determination unit 43, an adder 44, a block buffer 45, a number determination unit 46, an end code holding unit 47, a switch 48, and a variable length encoding. A portion 49 is provided.

減算器41は、前記量子化マトリクスの周波数成分毎に、周波数成分とその周波数成分に応じた所定値との差分値を求める。所定値は、例えば最も出現頻度の高い周波数成分の値でもよいし、周波数成分の平均的な値を示す定数でもよいし、周波数成分毎に予め定められた値でもよい。本実施の形態では、所定値は、直前に求められた差分値に対応する周波数成分の値である。この場合、減算器41は、外部から入力された現在の周波数成分W[i]と、Wバッファ42に保持された直前の周波数成分W[i-1]との差分値を求める。周波数成分W[i]と直前の周波数成分W[i-1]とは通常は相関関係があるので、各差分値をより小さい値とすることができる。なお、W[i]は符号化順序がi番目の周波数成分を表す。   The subtractor 41 obtains a difference value between the frequency component and a predetermined value corresponding to the frequency component for each frequency component of the quantization matrix. The predetermined value may be, for example, the value of the frequency component having the highest appearance frequency, a constant indicating the average value of the frequency components, or a value predetermined for each frequency component. In the present embodiment, the predetermined value is the value of the frequency component corresponding to the difference value obtained immediately before. In this case, the subtractor 41 obtains a difference value between the current frequency component W [i] input from the outside and the previous frequency component W [i−1] held in the W buffer 42. Since the frequency component W [i] and the immediately preceding frequency component W [i-1] are normally correlated, each difference value can be set to a smaller value. W [i] represents the i-th frequency component in the coding order.

図5A〜図5Dは、減算器41に入力される量子化マトリクスの周波数成分の順序例を示す図である。この順序は、減算器41に入力される量子化マトリクスのスキャン順序である。画像符号化の直交変換では、4x4画素単位と8x8画素単位の2通りが最もよく使用される。そこで、図5Aと図5Bに4x4画素単位の例、図5Cと図5Dに8x8画素単位の例を示す。本実施の形態では量子化マトリクスの各成分を個別に図8A〜図8Cの何れかで符号化することから、図5Aや図5Cのように低周波数成分から高周波数成分の順番に符号化したとしても、図5Bや図5Bのように単純に水平順序で符号化したとしても符号化効率に差は無い。   5A to 5D are diagrams illustrating an example of the order of the frequency components of the quantization matrix input to the subtractor 41. FIG. This order is the scan order of the quantization matrix input to the subtracter 41. In the orthogonal transform of image coding, two types of 4 × 4 pixel units and 8 × 8 pixel units are most often used. 5A and 5B show an example of a 4 × 4 pixel unit, and FIGS. 5C and 5D show an example of an 8 × 8 pixel unit. In this embodiment, each component of the quantization matrix is individually encoded in any of FIGS. 8A to 8C, so that the components are encoded in the order of low frequency components to high frequency components as shown in FIGS. 5A and 5C. However, there is no difference in encoding efficiency even if encoding is simply performed in the horizontal order as shown in FIGS. 5B and 5B.

図6Aは、減算器41に入力される量子化マトリクスの周波数成分の一部を示す。同図のW[0]、W[1]、W[2]、W[3]、・・・は図5Bの符号化順序に従っている。   FIG. 6A shows a part of the frequency component of the quantization matrix input to the subtractor 41. W [0], W [1], W [2], W [3],... In FIG.

Wバッファ42は、直前の周波数成分W[i-1]を保持するバッファである。符号化開始前に、Wバッファ42は、DC成分として最も取り得る代表的な値を初期値W[−1]として保持している。本実施形態では初期値W[−1]は8とする。なお、Wバッファ42は、直前の周波数成分W[i-1]を保持する代わりに、周波数成分に応じた所定値Kを予め保持するようにしてもよい。   The W buffer 42 is a buffer that holds the immediately preceding frequency component W [i-1]. Before the start of encoding, the W buffer 42 holds a typical value that can be taken most as a DC component as an initial value W [−1]. In the present embodiment, the initial value W [−1] is 8. Note that the W buffer 42 may hold a predetermined value K corresponding to the frequency component in advance instead of holding the immediately preceding frequency component W [i−1].

オフセット決定部43は、減算器41からの差分(W[i]−W[i-1])を2のk乗(ここではk=8)で除算した剰余に変換するためのオフセット値を決定する。すなわち、(W[i]−W[i-1])にオフセットを加算した結果が-128から127までの値となるように、-256、0もしくは256のいずれかの値を出力する。   The offset determining unit 43 determines an offset value for converting the difference (W [i] −W [i−1]) from the subtractor 41 into a remainder obtained by dividing the difference by 2 to the power of k (here, k = 8). To do. That is, a value of −256, 0, or 256 is output so that the result of adding the offset to (W [i] −W [i−1]) becomes a value from −128 to 127.

加算器44は、減算器41からの差分値(W[i]−W[i-1])とオフセット決定部43からのオフセット値とを加算することにより差分値D[i]を算出する。なお、D[i]は符号化順序がi番目の差分値を表す。   The adder 44 calculates the difference value D [i] by adding the difference value (W [i] −W [i−1]) from the subtractor 41 and the offset value from the offset determination unit 43. Note that D [i] represents the i-th difference value in the encoding order.

図6Bは、加算器44により算出された差分値D[i]の一例を示す。同図の差分値D[0]、D[1]、D[2]、D[3]・・・は、図6Aの周波数成分W[0]、W[1]、W[2]、W[3]・・・に対応する例である。   FIG. 6B shows an example of the difference value D [i] calculated by the adder 44. Difference values D [0], D [1], D [2], D [3]... In FIG. 6 are the frequency components W [0], W [1], W [2], W in FIG. [3] is an example corresponding to.

ブロックバッファ45は、加算器44から入力される差分値D[i]を1ブロック分(1量子化マトリクス分)保持するバッファである。   The block buffer 45 is a buffer that holds the difference value D [i] input from the adder 44 for one block (one quantization matrix).

個数判定部46は、スキャン順序の最後(ブロックの最後)に連続して存在する差分値0(W[i]−W[i-1]=0)の個数をカウントし、ブロックバッファ45に保持されたD[0]〜D[M]を出力させるように48を制御する。ここで、D[M]は、上記連続して存在する差分値0の先頭の差分値0の直前の差分値である。   The number determination unit 46 counts the number of difference values 0 (W [i] −W [i−1] = 0) continuously present at the end of the scan order (the end of the block), and holds it in the block buffer 45. 48 is controlled to output D [0] to D [M]. Here, D [M] is a difference value immediately before the first difference value 0 of the continuously existing difference value 0.

終了符号保持部47は、量子化マトリクスの可変長符号の終端を示す終了符号を保持する。終了符号は、差分値D[i]がとり得ない値であればよい。   The end code holding unit 47 holds an end code indicating the end of the variable length code of the quantization matrix. The end code may be a value that cannot be taken by the difference value D [i].

スイッチ48は、ブロックバッファ45に保持されたD[0]〜D[M]を出力させるようにブロックバッファ45出力を選択した後、1個の終了符号を出力させるように終了符号保持部47出力を選択する。つまり、スイッチ48の出力は、量子化マトリクスの先頭に対応する差分値D[0]から最後に連続して存在する差分値0の直前の差分値D[M]までと、1つの終了符号である。なお、個数判定部46でカウントされた、スキャン順序の最後(ブロックの最後)に連続して存在する差分値0(W[i]−W[i-1]=0)の個数が0の場合には、スイッチ48は終了符号を出力しない。   The switch 48 selects the output of the block buffer 45 so as to output D [0] to D [M] held in the block buffer 45, and then outputs the end code holding unit 47 so as to output one end code. Select. That is, the output of the switch 48 is one end code from the difference value D [0] corresponding to the head of the quantization matrix to the difference value D [M] immediately before the difference value 0 that is continuously present last. is there. When the number of difference values 0 (W [i] −W [i−1] = 0) continuously present at the end of the scan order (the end of the block) counted by the number determination unit 46 is 0. In this case, the switch 48 does not output an end code.

可変長符号化部49は、ブロックバッファ45からスイッチ48を介して入力される差分値と、終了符号とを、差分値が小さいほど短いか同じ長さの符号長となるように可変長符号化する。   The variable length coding unit 49 performs variable length coding on the difference value input from the block buffer 45 via the switch 48 and the end code so that the smaller the difference value, the shorter or the same code length. To do.

図6Cは、可変長符号化部49により図8Cの符号を用いて符号化された符号の具体例を示す。同図において、W[0]〜W[4]、D[0]〜D[4]は図6A、図6Bに対応している。可変長符号化部49による符号は、例えば、差分値が0のとき符号長が1ビットであり、差分値が1のとき符号長が3ビットである。このように、可変長符号化部49による可変長符号は、差分値が小さいほど短い符号長となっている。また、周波数成分W[30]〜W[63]まではいずれも同じ値64となっている。この場合、差分値D[30]〜D[63]は連続して0になる。この場合、差分値D[30]〜D[63]は符号化されない。差分値D[30]の0に対する符号”1”の代わりに終了符号が可変長符号化されることになる。   FIG. 6C shows a specific example of a code encoded by the variable length encoding unit 49 using the code of FIG. 8C. In the figure, W [0] to W [4] and D [0] to D [4] correspond to FIGS. 6A and 6B. The code by the variable length encoding unit 49 is, for example, a code length of 1 bit when the difference value is 0, and a code length of 3 bits when the difference value is 1. Thus, the variable length code by the variable length encoding unit 49 has a shorter code length as the difference value is smaller. The frequency components W [30] to W [63] all have the same value 64. In this case, the difference values D [30] to D [63] are continuously 0. In this case, the difference values D [30] to D [63] are not encoded. Instead of the code “1” for 0 of the difference value D [30], the end code is variable-length encoded.

図7は、WM符号化部における量子化マトリクスの詳細な符号化処理を示すフローチャートである。同図においてNumは量子化マトリクス中の周波数成分の個数(16、64など)、i、jはそれぞれ0から(Num-1)までをカウントするための変数である。   FIG. 7 is a flowchart showing detailed encoding processing of the quantization matrix in the WM encoding unit. In the figure, Num is the number of frequency components (16, 64, etc.) in the quantization matrix, and i and j are variables for counting from 0 to (Num-1), respectively.

WM符号化部は、まず、Wバッファ42に初期値W[−1](例えば8)を保持させ(S71)、ループ1に示す処理(S72〜S77)で量子化マトリクスの各周波数成分について差分値を求めてブロックバッファ45に格納し、その後ループ2(S78〜S81)に示す処理で差分値の可変長符号化を行う。   The WM encoding unit first holds the initial value W [−1] (for example, 8) in the W buffer 42 (S71), and performs a difference for each frequency component of the quantization matrix in the process shown in loop 1 (S72 to S77). A value is obtained and stored in the block buffer 45, and then variable length coding of the difference value is performed by the processing shown in loop 2 (S78 to S81).

ループ1において、減算器41は、外部から入力された現在の周波数成分W[i]と、Wバッファ42に保持された直前の周波数成分W[i-1]との差分値Dを求める(S73)。オフセット決定部43は、減算器41からの差分Dを2のk乗(ここではk=8)をで除算した剰余に変換するためのオフセット値を決定する(S74)。例えばW[i]が−256〜+254の値を取り得る場合、オフセット決定部43は、Dが128以上の場合にオフセット値は−256、Dが−128よりも小さいときオフセット値は256、Dがそれ以外のときオフセット値は0と決定する。これにより、オフセット値加算後のD(つまりD[i])は、−128〜+127の範囲内の、正の値だけでなく負の値も含めた剰余となる。これにより、差分値D[i]の取り得る値が小さくなるので、図8Cの符号を用いて符号化した場合のD[i]の可変長符号も短くなる。   In the loop 1, the subtractor 41 obtains a difference value D between the current frequency component W [i] input from the outside and the previous frequency component W [i-1] held in the W buffer 42 (S73). ). The offset determination unit 43 determines an offset value for converting the difference D from the subtractor 41 into a remainder obtained by dividing 2 by the k power (here, k = 8) (S74). For example, when W [i] can take a value of −256 to +254, the offset determining unit 43 sets the offset value to −256 when D is 128 or more, and the offset value is 256 and D when D is less than −128. Otherwise, the offset value is determined to be 0. Thereby, D after adding the offset value (that is, D [i]) becomes a remainder including not only a positive value but also a negative value within a range of −128 to +127. As a result, the value that can be taken by the difference value D [i] is reduced, so that the variable length code of D [i] when encoded using the code of FIG.

加算器44は、減算器41からの差分値D(=W[i]−W[i-1])とオフセット決定部43からのオフセット値とを加算することにより差分値D[i]を算出する(S75〜76)。   The adder 44 calculates the difference value D [i] by adding the difference value D (= W [i] −W [i−1]) from the subtractor 41 and the offset value from the offset determination unit 43. (S75-76).

ループ2において、個数判定部46は、D[i]列の最後に連続して存在する差分値0の個数を判定し(S79)、その連続する差分値0の直前の差分値D[M]までをスイッチ48をブロックバッファ45出力に接続し、その後終了符号保持部47出力に接続する。   In the loop 2, the number determination unit 46 determines the number of difference values 0 that are continuously present at the end of the D [i] column (S79), and the difference value D [M] immediately before the consecutive difference value 0 is determined. The switch 48 is connected to the output of the block buffer 45 and then connected to the output of the end code holding unit 47.

可変長符号化部49は、ブロックバッファ45からスイッチ48を介して入力される差分値D[i]と、終了符号保持部47からスイッチ48から入力される終了符号を符号化する(S82)。終了符号を、D[i]の取り得ない値であればよく、ここでは−W[M]つまりW[M]=0としている。量子化マトリクスの周波数成分は正数であるため、W[M]が0であることを終了符号として識別できるのである。   The variable length encoding unit 49 encodes the difference value D [i] input from the block buffer 45 via the switch 48 and the end code input from the end code holding unit 47 from the switch 48 (S82). The end code may be any value that cannot be taken by D [i]. Here, -W [M], that is, W [M] = 0. Since the frequency component of the quantization matrix is a positive number, the fact that W [M] is 0 can be identified as an end code.

図8A〜図8Cは可変長符号化部49における可変長符号化の例を示す説明図である。いずれも指数ゴロム符号(Exponential Golom code)を利用している。   8A to 8C are explanatory diagrams illustrating an example of variable length coding in the variable length coding unit 49. Both use Exponential Golom code.

図8Aは、可変長符号の第1の例を示す。同図では、符号語(code)と、符号化前の差分値(value)の関係を示す。この例は、差分値が取り得る値が正数である場合に利用可能である。大きな差分値ほど生起頻度が小さく符号長が長い。従って小さな差分値には短い符号語が割り当てられている。符号語と各成分の値との変換は図8Aに示す算術式で容易に導出できる。例えば、差分値valueが7の場合、7=4+3=(2の2乗+二進数”11” )と表現される。これに対する符号語codeは、”000(3個の0)”と”1”と”11”を並べたビット列になる。図8AにおけるNはvalueを超えない直近の2のべき乗のべき数である。X012・・・XN-1は、valueから直近の2のべき乗を減じた値を示すビット列である。 FIG. 8A shows a first example of a variable length code. In the same figure, the relationship between a code word (code) and the difference value (value) before encoding is shown. This example can be used when the value that the difference value can take is a positive number. The larger the difference value, the lower the occurrence frequency and the longer the code length. Therefore, a short code word is assigned to a small difference value. The conversion between the code word and the value of each component can be easily derived by the arithmetic expression shown in FIG. 8A. For example, when the difference value is 7, it is expressed as 7 = 4 + 3 = (square of 2 + binary number “11”). The code word code corresponding to this is a bit string in which “000 (three 0s)”, “1”, and “11” are arranged. N in FIG. 8A is the nearest power of 2 that does not exceed value. X 0 X 1 X 2 ... X N-1 is a bit string indicating a value obtained by subtracting the nearest power of 2 from value.

図8Bは、可変長符号の第2の例を示す。同図では、value欄に量子化マトリクスの周波数成分W[i](つまり、所定値K+差分値)を記してある。量子化マトリクスの成分W[i]の値が所定値Kを最も取りやすい場合に適している。所定値Kの生起頻度が高いことから成分の値がKの場合に符号長が最短になり、成分の値がKから離れると符号長が長くなる。所定値Kは例えばW[i-1]でよいが、予め定められた定数でもよい。   FIG. 8B shows a second example of the variable length code. In the figure, the frequency column W [i] (that is, the predetermined value K + difference value) of the quantization matrix is written in the value column. This is suitable when the value of the component W [i] of the quantization matrix is most likely to take the predetermined value K. Since the occurrence frequency of the predetermined value K is high, the code length is the shortest when the component value is K, and the code length is long when the component value is away from K. The predetermined value K may be W [i-1], for example, but may be a predetermined constant.

図8Cは、可変長符号化の第3の例を示す。同図では、符号語(code)と、符号化前の差分値(value)の関係を示す。この例は、差分値が取り得る値が正数だけでなく負数である場合に利用可能である。図5A〜図5Dに示した順序で量子化マトリクスの各成分を符号化する際に、隣接する周波数成分W[i-1]の値は相関が大きい。従って、図5A〜図5Dの何れか順序で符号化する際に、直前に符号化した成分の値W[i-1]との差分値を符号化することで、差分値が0近傍に集中する。その結果、図8Cに示すように0近傍の値の符号化には短い符号長で0から離れた値は長い符号長の符号語を用いることで、可変長符号のビット数が更に削減できる。   FIG. 8C shows a third example of variable length coding. In the same figure, the relationship between a code word (code) and the difference value (value) before encoding is shown. This example can be used when the possible value of the difference value is not only a positive number but also a negative number. When the components of the quantization matrix are encoded in the order shown in FIGS. 5A to 5D, the values of the adjacent frequency components W [i−1] have a large correlation. Therefore, when encoding in any order of FIGS. 5A to 5D, the difference value is concentrated in the vicinity of 0 by encoding the difference value with the value W [i−1] of the component encoded immediately before. To do. As a result, as shown in FIG. 8C, the number of bits of the variable-length code can be further reduced by using a codeword having a short code length and a code code having a long code length for encoding values near 0.

図9A〜図9Cは、量子化マトリクスおよびストリーム中に符号化された量子化マトリクスのデータ構造を示す図である。同図において、Headerは図1のStream、GOP、もしくはピクチャのヘッダに相当する。図9Aは量子化マトリクスの周波数成分の配列を示す図である。Wi,jはi行j列の量子化マトリクスの成分を表している。図9Bと図9Cは量子化マトリクスの各成分の符号化されたデータがヘッダ部にどのように配置されているかを示している。量子化マトリクスを符号化したビットストリームがWeightingMatrixである。図9Bが図5Cの順序で符号化されたストリームであり、図9Cが図5Dの順序で符号化されたストリームである。なお、図9Bと図9Cのストリーム中でWi,jと記載されているのはWi,jに相当する符号化された可変長符号という意味である。   9A to 9C are diagrams illustrating a data structure of a quantization matrix and a quantization matrix encoded in a stream. In the figure, Header corresponds to the stream, GOP, or picture header of FIG. FIG. 9A is a diagram illustrating an arrangement of frequency components of the quantization matrix. Wi, j represents a component of a quantization matrix of i rows and j columns. 9B and 9C show how the encoded data of each component of the quantization matrix is arranged in the header portion. A bit stream obtained by encoding a quantization matrix is WeightingMatrix. FIG. 9B shows a stream encoded in the order of FIG. 5C, and FIG. 9C shows a stream encoded in the order of FIG. 5D. Note that “Wi, j” in the streams of FIGS. 9B and 9C means an encoded variable-length code corresponding to Wi, j.

以上説明してきたように本実施の形態におけるWM符号化部によれば、周波数成分W[i]と所定値Kとの差分値D[i]をとるので、差分値D[i]は周波数成分W[i]よりも小さい値になる。W符号化部は、周波数成分W[i]そのものを符号化するのではなく、差分値D[i]を符号化するので、可変長符号の符号長を短くし符号化効率を向上させることができる。   As described above, according to the WM encoding unit in the present embodiment, since the difference value D [i] between the frequency component W [i] and the predetermined value K is taken, the difference value D [i] is the frequency component. A value smaller than W [i]. Since the W encoding unit encodes the difference value D [i] rather than encoding the frequency component W [i] itself, it is possible to shorten the code length of the variable length code and improve the encoding efficiency. it can.

また、所定値Kとして直前の周波数成分W[i-1]を用いることにより、各差分値D[i]をより小さい値にすることができ、さらに符号化効率を向上させることができる。周波数成分W[i]と直前の周波数成分W[i-1]とは通常は相関関係があるからである。   Further, by using the immediately preceding frequency component W [i-1] as the predetermined value K, each difference value D [i] can be made smaller, and the encoding efficiency can be further improved. This is because the frequency component W [i] and the immediately preceding frequency component W [i-1] are usually correlated.

また、周波数成分W[i]は、低周波数から高周波数の順に周波数成分が符号化されるので、周波数成分W[i]と直前の周波数成分W[i-1]とは同じくらいの値をとる確率が高く、より確実に各差分値D[i]を小さい値にすることができ、より一層符号化効率を向上させることができる。   Further, since the frequency component W [i] is encoded in order from the low frequency to the high frequency, the frequency component W [i] and the immediately preceding frequency component W [i-1] have the same value. Therefore, each difference value D [i] can be more reliably reduced and the encoding efficiency can be further improved.

さらに、差分値D[i]が2の8乗(k=8)で割った剰余として表現される場合には、差分値を実質的に8ビットで表現できる値に小さくすることができ、さらに可変長符号のビット数を減らすことができる。   Further, when the difference value D [i] is expressed as a remainder obtained by dividing by 2 to the 8th power (k = 8), the difference value can be reduced to a value that can be expressed substantially by 8 bits. The number of bits of the variable length code can be reduced.

また、同じ値をもつ複数の周波数成分が量子化マトリクスの末尾に連続している場合に、同じビット列をもつ複数の可変長符号を生成するのではなく、複数の周波数成分に対して可変長符号が1つも生成されないので、符号化効率をさらに向上させることができる。また、この場合、終了符号を付加することにより、画像復号化装置の復号処理の効率を向上させることができる。   Also, when multiple frequency components with the same value are consecutive at the end of the quantization matrix, instead of generating multiple variable length codes with the same bit string, variable length codes for multiple frequency components Is not generated, the encoding efficiency can be further improved. In this case, the efficiency of the decoding process of the image decoding apparatus can be improved by adding the end code.

図10は本実施の形態1における画像復号化装置のブロック図である。同図において、図3の画像符号化装置のブロック図と同じ動作をするユニットは同じ番号を付し、説明を省略する。   FIG. 10 is a block diagram of the image decoding apparatus according to the first embodiment. In the figure, units that perform the same operations as those in the block diagram of the image coding apparatus in FIG.

可変長復号化ユニットVLDは、符号化ストリームStrを復号化し、量子化マトリクスWM、量子化値Qcoef、参照インデックスIndexおよび動きベクトルMVを出力する。   The variable length decoding unit VLD decodes the encoded stream Str, and outputs a quantization matrix WM, a quantization value Qcoef, a reference index Index, and a motion vector MV.

そのため、可変長復号ユニットVLDは、第1復号化部と第2復号化部とを内部に有する。第1復号化部(以下WM復号化部と呼ぶ。)は、符号化された量子化マトリクスWMを可変長復号化する。第2復号化部は、符号化された量子化マトリクスWM以外の、符号化された量子化値Qcoef、参照インデックスIndexおよび動きベクトルMV等を可変長復号化する。WM復号化部は、可変長符号化された量子化マトリクスを、周波数成分毎の差分値に可変長復号し、前記差分値と周波数成分に応じた所定値とを加算することにより、量子化マトリクスの周波数成分を求める。   Therefore, the variable length decoding unit VLD includes a first decoding unit and a second decoding unit inside. A first decoding unit (hereinafter referred to as WM decoding unit) performs variable length decoding on the encoded quantization matrix WM. The second decoding unit performs variable-length decoding on the encoded quantization value Qcoef, the reference index Index, the motion vector MV, and the like other than the encoded quantization matrix WM. The WM decoding unit variable-length-decodes the variable-length-encoded quantization matrix to a difference value for each frequency component, and adds the difference value and a predetermined value corresponding to the frequency component to obtain a quantization matrix Is obtained.

量子化マトリクスQM、量子化値Qcoef、参照インデックスIndexおよび動きベクトルMVは、ピクチャメモリPicMem、動き補償ユニットMCおよび逆量子化ユニットIQに入力され復号化処理が行われるが、その動作は図3の画像復号化装置のブロック図で説明済みである。   The quantization matrix QM, the quantization value Qcoef, the reference index Index, and the motion vector MV are input to the picture memory PicMem, the motion compensation unit MC, and the inverse quantization unit IQ, and the decoding process is performed. This has already been described in the block diagram of the image decoding apparatus.

図11は、WM復号化部の構成を示すブロック図である。WM復号化部は、可変長復号化部51、加算器52、乗余計算部53、スイッチ54、Wバッファ55、スイッチ56、最終係数判定部57を備える。   FIG. 11 is a block diagram illustrating a configuration of the WM decoding unit. The WM decoding unit includes a variable length decoding unit 51, an adder 52, a remainder calculation unit 53, a switch 54, a W buffer 55, a switch 56, and a final coefficient determination unit 57.

可変長復号化部51は、可変長符号化された周波数成分の可変長符号を、周波数成分毎の差分値D[i]に復号化する。   The variable length decoding unit 51 decodes the variable length code of the variable length encoded frequency component into a difference value D [i] for each frequency component.

加算器52は、可変長復号化部51からの差分値D[i]と、Wバッファ55からの直前の周波数成分W[i-1]の値とを加算する。   The adder 52 adds the difference value D [i] from the variable length decoding unit 51 and the value of the previous frequency component W [i−1] from the W buffer 55.

乗余計算部53は、加算器52からの加算結果に2のk乗を加算し、さらに2のk乗の剰余を算出することにより、周波数成分W[i]を求める。具体的には、乗余計算部53は、(D[i]+W[i-1]+256)%256を算出する。ここで、%は(256で)除算した剰余を得る演算を示す。   The multiplier calculation unit 53 adds the 2k power to the addition result from the adder 52, and calculates the remainder of the 2k power to obtain the frequency component W [i]. Specifically, the multiplier calculation unit 53 calculates (D [i] + W [i-1] +256)% 256. Here,% indicates an operation for obtaining a remainder obtained by division (by 256).

スイッチ54は、乗余計算部53から終了符号が出力されていない間はオン、終了符号が出力されるとオフする。   The switch 54 is turned on while the end code is not output from the remainder calculation unit 53, and is turned off when the end code is output.

Wバッファ55は、乗余計算部53からスイッチ54を介して入力される周波数成分W[i]を保持し、次のサイクルで周波数成分W[i-1]として加算器52に出力する。また、Wバッファ55は初期値としてW[i-1](例えば8)を保持している。   The W buffer 55 holds the frequency component W [i] input from the remainder calculation unit 53 via the switch 54, and outputs it to the adder 52 as the frequency component W [i-1] in the next cycle. The W buffer 55 holds W [i−1] (for example, 8) as an initial value.

スイッチ56は、乗余計算部53から終了符号が出力されていない間は、乗余計算部53からスイッチ54を介して入力される周波数成分W[i]を選択し、終了符号が出力された後は、Wバッファ55を選択する。   The switch 56 selects the frequency component W [i] input from the multiplier calculation unit 53 via the switch 54 while the end code is not output from the multiplier calculation unit 53, and the end code is output. After that, the W buffer 55 is selected.

最終係数判定部57は、乗余計算部53から終了符号が出力されたか否かを判定し、判定結果に応じてスイッチ54およびスイッチ56を制御する。   The final coefficient determination unit 57 determines whether an end code is output from the multiplier calculation unit 53 and controls the switch 54 and the switch 56 according to the determination result.

以上のようにして、全ての周波数成分に対応W[i]を復号できる。なお、終了符号が検出されなくても、ブロックに含まれる全ての周波数成分と同数の差分値D[i]を復号化した場合にはその時点で量子化マトリクスの復号化を終了する。   As described above, W [i] corresponding to all frequency components can be decoded. Even if the end code is not detected, if the same number of difference values D [i] as all frequency components included in the block are decoded, the decoding of the quantization matrix is ended at that point.

図12は、WM復号化部におけるWM復号化処理を示すフローチャートである。同図においてNumは量子化マトリクス中の周波数成分の個数(16、64など)、iは0から(Num-1)までをカウントするための変数、jはiから(Num-1)までをカウントするための変数である。同図のように、WM復号化部は、まず初期値W[i-1]をWバッファ55に保持させ(S121)、ループ1(S122〜127)において可変長復号および出力し、終了符号が検出された後はループ2(S128〜130)において同じ値をもつ連続する周波数係数を出力する。   FIG. 12 is a flowchart showing the WM decoding process in the WM decoding unit. In the figure, Num is the number of frequency components in the quantization matrix (16, 64, etc.), i is a variable for counting from 0 to (Num-1), and j is counted from i to (Num-1). It is a variable to do. As shown in the figure, the WM decoding unit first holds the initial value W [i-1] in the W buffer 55 (S121), performs variable-length decoding and output in the loop 1 (S122 to 127), and the end code is After detection, continuous frequency coefficients having the same value are output in loop 2 (S128 to 130).

ループ1において、可変長復号化部51は入力された可変長符号を差分値D[i]に復号化する(S123)。さらに、加算器52は可変長復号化部51からの差分値と、Wバッファ55からの直前の周波数成分とを加算し、乗余計算部53は、剰余W=(D[i]+W[i-1]+256)%256 を算出する(S124)。最終係数判定部57は、この剰余Wが終了符号であるか否か(ここでは正であるか否か)を判定する(S125)。終了符号でないと判定された場合には、剰余Wは周波数成分W[i-1]として乗余計算部53からスイッチ56を介して出力され、同時にスイッチ54を介してWバッファ55に保持される(S126)。終了符号であると判定された場合には、ループ2の処理が実行される。   In the loop 1, the variable length decoding unit 51 decodes the input variable length code into the difference value D [i] (S123). Further, the adder 52 adds the difference value from the variable length decoding unit 51 and the immediately preceding frequency component from the W buffer 55, and the remainder calculation unit 53 calculates the remainder W = (D [i] + W [i -1] +256)% 256 is calculated (S124). The final coefficient determination unit 57 determines whether or not the remainder W is an end code (here, whether or not it is positive) (S125). If it is determined that the code is not an end code, the remainder W is output as a frequency component W [i−1] from the multiplier calculation unit 53 via the switch 56 and is simultaneously held in the W buffer 55 via the switch 54. (S126). If it is determined that it is an end code, the process of loop 2 is executed.

ループ2では、同じ値をもつ複数の周波数成分が量子化マトリクスの末尾に連続している場合に、周波数成分W[i-1]を周波数成分W[i]として連続して出力する。すなわち、後続する各周波数成分W[i]〜W[Num-1]として、Wバッファ55に保持されたW[i-1]をスイッチ56を介して出力する(S129)。   In the loop 2, when a plurality of frequency components having the same value are continuous at the end of the quantization matrix, the frequency component W [i-1] is continuously output as the frequency component W [i]. That is, W [i-1] held in the W buffer 55 is output via the switch 56 as each subsequent frequency component W [i] to W [Num-1] (S129).

以上説明してきたように本実施の形態におけるWM復号化部によれば、WM符号化部によって差分符号化された可変長符号を正しく復号する。さらに、同じ値をもつ複数の周波数成分が量子化マトリクスの末尾に連続している場合に、WM復号化部は、その複数の周波数成分を1つの可変長符号から復号化することができる。その際、同じ値をもつ複数の周波数成分が量子化マトリクスの末尾に連続していることを、終了符号によって容易に判別することができる。   As described above, according to the WM decoding unit in the present embodiment, the variable length code differentially encoded by the WM encoding unit is correctly decoded. Furthermore, when a plurality of frequency components having the same value are continuous at the end of the quantization matrix, the WM decoding unit can decode the plurality of frequency components from one variable length code. At that time, it can be easily determined by the end code that a plurality of frequency components having the same value are continuous at the end of the quantization matrix.

さらに、上記各実施の形態で示した画像符号化方法および画像復号化方法を実現するためのプログラムを、フレキシブルディスク等の記録媒体に記録するようにすることにより、上記各実施の形態で示した処理を、独立したコンピュータシステムにおいて簡単に実施することが可能となる。   Furthermore, the program for realizing the image encoding method and the image decoding method shown in each of the above embodiments is recorded on a recording medium such as a flexible disk, so that the program shown in each of the above embodiments is shown. Processing can be easily performed in an independent computer system.

図13A〜Cは、上記各実施の形態の画像符号化方法および画像復号化方法を、フレキシブルディスク等の記録媒体に記録されたプログラムを用いて、コンピュータシステムにより実施する場合の説明図である。   FIGS. 13A to 13C are explanatory diagrams when the image coding method and the image decoding method according to each of the above embodiments are implemented by a computer system using a program recorded on a recording medium such as a flexible disk.

図13Bは、フレキシブルディスクの正面からみた外観、断面構造、及びフレキシブルディスクを示し、図13Aは、記録媒体本体であるフレキシブルディスクの物理フォーマットの例を示している。フレキシブルディスクFDはケースF内に内蔵され、該ディスクの表面には、同心円状に外周からは内周に向かって複数のトラックTrが形成され、各トラックは角度方向に16のセクタSeに分割されている。従って、上記プログラムを格納したフレキシブルディスクでは、上記フレキシブルディスクFD上に割り当てられた領域に、上記プログラムが記録されている。   FIG. 13B shows an appearance, a cross-sectional structure, and a flexible disk as viewed from the front of the flexible disk, and FIG. 13A shows an example of a physical format of the flexible disk that is a recording medium body. The flexible disk FD is built in the case F, and on the surface of the disk, a plurality of tracks Tr are formed concentrically from the outer periphery toward the inner periphery, and each track is divided into 16 sectors Se in the angular direction. ing. Therefore, in the flexible disk storing the program, the program is recorded in an area allocated on the flexible disk FD.

また、図13Cは、フレキシブルディスクFDに上記プログラムの記録再生を行うための構成を示す。画像符号化方法および画像復号化方法を実現する上記プログラムをフレキシブルディスクFDに記録する場合は、コンピュータシステムCsから上記プログラムをフレキシブルディスクドライブを介して書き込む。また、フレキシブルディスク内のプログラムにより画像符号化方法および画像復号化方法を実現する上記画像符号化方法および画像復号化方法をコンピュータシステム中に構築する場合は、フレキシブルディスクドライブによりプログラムをフレキシブルディスクから読み出し、コンピュータシステムに転送する。   FIG. 13C shows a configuration for recording and reproducing the program on the flexible disk FD. When the program for realizing the image encoding method and the image decoding method is recorded on the flexible disk FD, the program is written from the computer system Cs via the flexible disk drive. When the image encoding method and the image decoding method for realizing the image encoding method and the image decoding method by the program in the flexible disk are built in the computer system, the program is read from the flexible disk by the flexible disk drive. Transfer to computer system.

なお、上記説明では、記録媒体としてフレキシブルディスクを用いて説明を行ったが、光ディスクを用いても同様に行うことができる。また、記録媒体はこれに限らず、ICカード、ROMカセット等、プログラムを記録できるものであれば同様に実施することができる。   In the above description, a flexible disk is used as the recording medium, but the same can be done using an optical disk. Further, the recording medium is not limited to this, and any recording medium such as an IC card or a ROM cassette capable of recording a program can be similarly implemented.

さらにここで、上記実施の形態で示した画像符号化方法および画像復号化方法の応用例とそれを用いたシステムを説明する。   Furthermore, application examples of the image coding method and the image decoding method shown in the above embodiment and a system using the same will be described.

図14は、コンテンツ配信サービスを実現するコンテンツ供給システムex100の全体構成を示すブロック図である。通信サービスの提供エリアを所望の大きさに分割し、各セル内にそれぞれ固定無線局である基地局ex107〜ex110が設置されている。   FIG. 14 is a block diagram showing an overall configuration of a content supply system ex100 that implements a content distribution service. The communication service providing area is divided into desired sizes, and base stations ex107 to ex110, which are fixed radio stations, are installed in each cell.

このコンテンツ供給システムex100は、例えば、インターネットex101にインターネットサービスプロバイダex102および電話網ex104、および基地局ex107〜ex110を介して、コンピュータex111、PDA(personal digital assistant)ex112、カメラex113、携帯電話ex114、カメラ付きの携帯電話ex115などの各機器が接続される。   The content supply system ex100 includes, for example, a computer ex111, a PDA (personal digital assistant) ex112, a camera ex113, a mobile phone ex114, a camera via the Internet ex101, the Internet service provider ex102, the telephone network ex104, and the base stations ex107 to ex110. Each device such as the attached mobile phone ex115 is connected.

しかし、コンテンツ供給システムex100は図14のような組合せに限定されず、いずれかを組み合わせて接続するようにしてもよい。また、固定無線局である基地局ex107〜ex110を介さずに、各機器が電話網ex104に直接接続されてもよい。   However, the content supply system ex100 is not limited to the combination as shown in FIG. 14, and any of the combinations may be connected. Further, each device may be directly connected to the telephone network ex104 without going through the base stations ex107 to ex110 which are fixed wireless stations.

カメラex113はデジタルビデオカメラ等の動画撮影が可能な機器である。また、携帯電話は、PDC(Personal Digital Communications)方式、CDMA(Code Division Multiple Access)方式、W−CDMA(Wideband-Code Division Multiple Access)方式、若しくはGSM(Global System for Mobile Communications)方式の携帯電話機、またはPHS(Personal Handyphone System)等であり、いずれでも構わない。   The camera ex113 is a device capable of shooting a moving image such as a digital video camera. The mobile phone is a PDC (Personal Digital Communications) system, a CDMA (Code Division Multiple Access) system, a W-CDMA (Wideband-Code Division Multiple Access) system, or a GSM (Global System for Mobile Communications) system mobile phone, Alternatively, PHS (Personal Handyphone System) or the like may be used.

また、ストリーミングサーバex103は、カメラex113から基地局ex109、電話網ex104を通じて接続されており、カメラex113を用いてユーザが送信する符号化処理されたデータに基づいたライブ配信等が可能になる。撮影したデータの符号化処理はカメラex113で行っても、データの送信処理をするサーバ等で行ってもよい。また、カメラ116で撮影した動画データはコンピュータex111を介してストリーミングサーバex103に送信されてもよい。カメラex116はデジタルカメラ等の静止画、動画が撮影可能な機器である。この場合、動画データの符号化はカメラex116で行ってもコンピュータex111で行ってもどちらでもよい。また、符号化処理はコンピュータex111やカメラex116が有するLSIex117において処理することになる。なお、画像符号化・復号化用のソフトウェアをコンピュータex111等で読み取り可能な記録媒体である何らかの蓄積メディア(CD−ROM、フレキシブルディスク、ハードディスクなど)に組み込んでもよい。さらに、カメラ付きの携帯電話ex115で動画データを送信してもよい。このときの動画データは携帯電話ex115が有するLSIで符号化処理されたデータである。   Further, the streaming server ex103 is connected from the camera ex113 through the base station ex109 and the telephone network ex104, and live distribution based on the encoded data transmitted by the user using the camera ex113 can be performed. The encoded processing of the captured data may be performed by the camera ex113 or may be performed by a server or the like that performs data transmission processing. The moving image data shot by the camera 116 may be transmitted to the streaming server ex103 via the computer ex111. The camera ex116 is a device that can shoot still images and moving images, such as a digital camera. In this case, the encoding of the moving image data may be performed by the camera ex116 or the computer ex111. The encoding process is performed in the LSI ex117 included in the computer ex111 and the camera ex116. Note that image encoding / decoding software may be incorporated in some storage medium (CD-ROM, flexible disk, hard disk, etc.) that is a recording medium readable by the computer ex111 or the like. Furthermore, you may transmit moving image data with the mobile telephone ex115 with a camera. The moving image data at this time is data encoded by the LSI included in the mobile phone ex115.

このコンテンツ供給システムex100では、ユーザがカメラex113、カメラex116等で撮影しているコンテンツ(例えば、音楽ライブを撮影した映像等)を上記実施の形態同様に符号化処理してストリーミングサーバex103に送信する一方で、ストリーミングサーバex103は要求のあったクライアントに対して上記コンテンツデータをストリーム配信する。クライアントとしては、上記符号化処理されたデータを復号化することが可能な、コンピュータex111、PDAex112、カメラex113、携帯電話ex114等がある。このようにすることでコンテンツ供給システムex100は、符号化されたデータをクライアントにおいて受信して再生することができ、さらにクライアントにおいてリアルタイムで受信して復号化し、再生することにより、個人放送をも実現可能になるシステムである。   In this content supply system ex100, the content (for example, video shot of music live) captured by the user with the camera ex113, camera ex116, etc. is encoded and transmitted to the streaming server ex103 as in the above embodiment. On the other hand, the streaming server ex103 distributes the content data to the requested client. Examples of the client include a computer ex111, a PDA ex112, a camera ex113, a mobile phone ex114, and the like that can decode the encoded data. In this way, the content supply system ex100 can receive and reproduce the encoded data at the client, and also realize personal broadcasting by receiving, decoding, and reproducing in real time at the client. It is a system that becomes possible.

このシステムを構成する各機器の符号化、復号化には上記各実施の形態で示した画像符号化装置あるいは画像復号化装置を用いるようにすればよい。   The image encoding device or the image decoding device described in the above embodiments may be used for encoding and decoding of each device constituting this system.

その一例として携帯電話について説明する。   A mobile phone will be described as an example.

図15は、上記実施の形態で説明した画像符号化方法および画像復号化方法を用いた携帯電話ex115を示す図である。携帯電話ex115は、基地局ex110との間で電波を送受信するためのアンテナex201、CCDカメラ等の映像、静止画を撮ることが可能なカメラ部ex203、カメラ部ex203で撮影した映像、アンテナex201で受信した映像等が復号化されたデータを表示する液晶ディスプレイ等の表示部ex202、操作キーex204群から構成される本体部、音声出力をするためのスピーカ等の音声出力部ex208、音声入力をするためのマイク等の音声入力部ex205、撮影した動画もしくは静止画のデータ、受信したメールのデータ、動画のデータもしくは静止画のデータ等、符号化されたデータまたは復号化されたデータを保存するための記録メディアex207、携帯電話ex115に記録メディアex207を装着可能とするためのスロット部ex206を有している。記録メディアex207はSDカード等のプラスチックケース内に電気的に書換えや消去が可能な不揮発性メモリであるEEPROM(Electrically Erasable and Programmable Read Only Memory)の一種であるフラッシュメモリ素子を格納したものである。   FIG. 15 is a diagram showing a mobile phone ex115 using the image coding method and the image decoding method described in the above embodiment. The cellular phone ex115 includes an antenna ex201 for transmitting and receiving radio waves to and from the base station ex110, a camera such as a CCD camera, a camera unit ex203 capable of taking a still image, a video shot by the camera unit ex203, and an antenna ex201. A display unit ex202 such as a liquid crystal display for displaying data obtained by decoding received video and the like, a main body unit composed of a group of operation keys ex204, an audio output unit ex208 such as a speaker for audio output, and audio input To store encoded data or decoded data such as a voice input unit ex205 such as a microphone, captured video or still image data, received mail data, video data or still image data, etc. Recording medium ex207, and slot portion ex206 for enabling the recording medium ex207 to be attached to the mobile phone ex115. Have. The recording medium ex207 stores a flash memory element which is a kind of EEPROM (Electrically Erasable and Programmable Read Only Memory) which is a nonvolatile memory that can be electrically rewritten and erased in a plastic case such as an SD card.

さらに、携帯電話ex115について図16を用いて説明する。携帯電話ex115は表示部ex202及び操作キーex204を備えた本体部の各部を統括的に制御するようになされた主制御部ex311に対して、電源回路部ex310、操作入力制御部ex304、画像符号化部ex312、カメラインターフェース部ex303、LCD(Liquid Crystal Display)制御部ex302、画像復号化部ex309、多重分離部ex308、記録再生部ex307、変復調回路部ex306及び音声処理部ex305が同期バスex313を介して互いに接続されている。   Further, the cellular phone ex115 will be described with reference to FIG. The mobile phone ex115 controls the power supply circuit ex310, the operation input control unit ex304, and the image encoding for the main control unit ex311 configured to control the respective units of the main body unit including the display unit ex202 and the operation key ex204. Unit ex312, camera interface unit ex303, LCD (Liquid Crystal Display) control unit ex302, image decoding unit ex309, demultiplexing unit ex308, recording / reproducing unit ex307, modulation / demodulation circuit unit ex306, and audio processing unit ex305 via a synchronization bus ex313 Are connected to each other.

電源回路部ex310は、ユーザの操作により終話及び電源キーがオン状態にされると、バッテリパックから各部に対して電力を供給することによりカメラ付ディジタル携帯電話ex115を動作可能な状態に起動する。   When the end call and power key are turned on by a user operation, the power supply circuit ex310 activates the camera-equipped digital mobile phone ex115 by supplying power from the battery pack to each unit. .

携帯電話ex115は、CPU、ROM及びRAM等でなる主制御部ex311の制御に基づいて、音声通話モード時に音声入力部ex205で集音した音声信号を音声処理部ex305によってディジタル音声データに変換し、これを変復調回路部ex306でスペクトラム拡散処理し、送受信回路部ex301でディジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex201を介して送信する。また携帯電話機ex115は、音声通話モード時にアンテナex201で受信した受信信号を増幅して周波数変換処理及びアナログディジタル変換処理を施し、変復調回路部ex306でスペクトラム逆拡散処理し、音声処理部ex305によってアナログ音声信号に変換した後、これを音声出力部ex208を介して出力する。   The mobile phone ex115 converts the voice signal collected by the voice input unit ex205 in the voice call mode into digital voice data by the voice processing unit ex305 based on the control of the main control unit ex311 including a CPU, a ROM, a RAM, and the like. The modulation / demodulation circuit unit ex306 performs spread spectrum processing, the transmission / reception circuit unit ex301 performs digital analog conversion processing and frequency conversion processing, and then transmits the result via the antenna ex201. In addition, the cellular phone ex115 amplifies the received signal received by the antenna ex201 in the voice call mode, performs frequency conversion processing and analog-digital conversion processing, performs spectrum despreading processing by the modulation / demodulation circuit unit ex306, and analog audio by the voice processing unit ex305. After being converted to a signal, this is output via the audio output unit ex208.

さらに、データ通信モード時に電子メールを送信する場合、本体部の操作キーex204の操作によって入力された電子メールのテキストデータは操作入力制御部ex304を介して主制御部ex311に送出される。主制御部ex311は、テキストデータを変復調回路部ex306でスペクトラム拡散処理し、送受信回路部ex301でディジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex201を介して基地局ex110へ送信する。   Further, when an e-mail is transmitted in the data communication mode, text data of the e-mail input by operating the operation key ex204 on the main body is sent to the main control unit ex311 via the operation input control unit ex304. The main control unit ex311 performs spread spectrum processing on the text data in the modulation / demodulation circuit unit ex306, performs digital analog conversion processing and frequency conversion processing in the transmission / reception circuit unit ex301, and then transmits the text data to the base station ex110 via the antenna ex201.

データ通信モード時に画像データを送信する場合、カメラ部ex203で撮像された画像データをカメラインターフェース部ex303を介して画像符号化部ex312に供給する。また、画像データを送信しない場合には、カメラ部ex203で撮像した画像データをカメラインターフェース部ex303及びLCD制御部ex302を介して表示部ex202に直接表示することも可能である。   When transmitting image data in the data communication mode, the image data captured by the camera unit ex203 is supplied to the image encoding unit ex312 via the camera interface unit ex303. When image data is not transmitted, the image data captured by the camera unit ex203 can be directly displayed on the display unit ex202 via the camera interface unit ex303 and the LCD control unit ex302.

画像符号化部ex312は、本願発明で説明した画像符号化装置を備えた構成であり、カメラ部ex203から供給された画像データを上記実施の形態で示した画像符号化装置に用いた符号化方法によって圧縮符号化することにより符号化画像データに変換し、これを多重分離部ex308に送出する。また、このとき同時に携帯電話機ex115は、カメラ部ex203で撮像中に音声入力部ex205で集音した音声を音声処理部ex305を介してディジタルの音声データとして多重分離部ex308に送出する。   The image encoding unit ex312 has a configuration including the image encoding device described in the present invention, and an encoding method using the image data supplied from the camera unit ex203 in the image encoding device described in the above embodiment. The encoded image data is converted into encoded image data by compression encoding, and sent to the demultiplexing unit ex308. At the same time, the cellular phone ex115 sends the sound collected by the audio input unit ex205 during imaging by the camera unit ex203 to the demultiplexing unit ex308 as digital audio data via the audio processing unit ex305.

多重分離部ex308は、画像符号化部ex312から供給された符号化画像データと音声処理部ex305から供給された音声データとを所定の方式で多重化し、その結果得られる多重化データを変復調回路部ex306でスペクトラム拡散処理し、送受信回路部ex301でディジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex201を介して送信する。   The demultiplexing unit ex308 multiplexes the encoded image data supplied from the image encoding unit ex312 and the audio data supplied from the audio processing unit ex305 by a predetermined method, and the multiplexed data obtained as a result is a modulation / demodulation circuit unit A spectrum spread process is performed at ex306, a digital-analog conversion process and a frequency conversion process are performed at the transmission / reception circuit unit ex301, and then transmitted through the antenna ex201.

データ通信モード時にホームページ等にリンクされた動画像ファイルのデータを受信する場合、アンテナex201を介して基地局ex110から受信した受信信号を変復調回路部ex306でスペクトラム逆拡散処理し、その結果得られる多重化データを多重分離部ex308に送出する。   When receiving data of a moving image file linked to a home page or the like in the data communication mode, the received signal received from the base station ex110 via the antenna ex201 is subjected to spectrum despreading processing by the modulation / demodulation circuit unit ex306, and the resulting multiplexing is obtained. Is sent to the demultiplexing unit ex308.

また、アンテナex201を介して受信された多重化データを復号化するには、多重分離部ex308は、多重化データを分離することにより画像データの符号化ビットストリームと音声データの符号化ビットストリームとに分け、同期バスex313を介して当該符号化画像データを画像復号化部ex309に供給すると共に当該音声データを音声処理部ex305に供給する。   In addition, in order to decode the multiplexed data received via the antenna ex201, the demultiplexing unit ex308 separates the multiplexed data, thereby encoding the encoded bit stream of the image data and the encoded bit stream of the audio data. The encoded image data is supplied to the image decoding unit ex309 via the synchronization bus ex313, and the audio data is supplied to the audio processing unit ex305.

次に、画像復号化部ex309は、本願発明で説明した画像復号化装置を備えた構成であり、画像データの符号化ビットストリームを上記実施の形態で示した符号化方法に対応した復号化方法で復号することにより再生動画像データを生成し、これをLCD制御部ex302を介して表示部ex202に供給し、これにより、例えばホームページにリンクされた動画像ファイルに含まれる動画データが表示される。このとき同時に音声処理部ex305は、音声データをアナログ音声信号に変換した後、これを音声出力部ex208に供給し、これにより、例えばホームページにリンクされた動画像ファイルに含まる音声データが再生される。   Next, the image decoding unit ex309 is configured to include the image decoding device described in the present invention, and a decoding method corresponding to the encoding method described in the above embodiment for an encoded bit stream of image data. To generate playback moving image data, which is supplied to the display unit ex202 via the LCD control unit ex302, thereby displaying, for example, moving image data included in the moving image file linked to the homepage . At the same time, the audio processing unit ex305 converts the audio data into an analog audio signal, and then supplies the analog audio signal to the audio output unit ex208. Thus, for example, the audio data included in the moving image file linked to the home page is reproduced. The

なお、上記システムの例に限られず、最近は衛星、地上波によるディジタル放送が話題となっており、図17に示すようにディジタル放送用システムにも上記実施の形態の少なくとも画像符号化装置または画像復号化装置のいずれかを組み込むことができる。具体的には、放送局ex409では映像情報の符号化ビットストリームが電波を介して通信または放送衛星ex410に伝送される。これを受けた放送衛星ex410は、放送用の電波を発信し、この電波を衛星放送受信設備をもつ家庭のアンテナex406で受信し、テレビ(受信機)ex401またはセットトップボックス(STB)ex407などの装置により符号化ビットストリームを復号化してこれを再生する。また、記録媒体であるCDやDVD等の蓄積メディアex402に記録した符号化ビットストリームを読み取り、復号化する再生装置ex403にも上記実施の形態で示した画像復号化装置を実装することが可能である。この場合、再生された映像信号はモニタex404に表示される。また、ケーブルテレビ用のケーブルex405または衛星/地上波放送のアンテナex406に接続されたセットトップボックスex407内に画像復号化装置を実装し、これをテレビのモニタex408で再生する構成も考えられる。このときセットトップボックスではなく、テレビ内に画像復号化装置を組み込んでも良い。また、アンテナex411を有する車ex412で衛星ex410からまたは基地局ex107等から信号を受信し、車ex412が有するカーナビゲーションex413等の表示装置に動画を再生することも可能である。   It should be noted that the present invention is not limited to the above-described system, and recently, digital broadcasting using satellites and terrestrial waves has become a hot topic. As shown in FIG. Any of the decoding devices can be incorporated. Specifically, in the broadcasting station ex409, the encoded bit stream of the video information is transmitted to the communication or broadcasting satellite ex410 via radio waves. Receiving this, the broadcasting satellite ex410 transmits a radio wave for broadcasting, and receives the radio wave with a home antenna ex406 having a satellite broadcasting receiving facility, such as a television (receiver) ex401 or a set top box (STB) ex407. The device decodes the encoded bit stream and reproduces it. In addition, the image decoding apparatus described in the above embodiment can also be implemented in a playback apparatus ex403 that reads and decodes an encoded bitstream recorded on a storage medium ex402 such as a CD or DVD as a recording medium. is there. In this case, the reproduced video signal is displayed on the monitor ex404. Further, a configuration in which an image decoding device is mounted in a set-top box ex407 connected to a cable ex405 for cable television or an antenna ex406 for satellite / terrestrial broadcasting, and this is reproduced on the monitor ex408 of the television is also conceivable. At this time, the image decoding apparatus may be incorporated in the television instead of the set top box. It is also possible to receive a signal from the satellite ex410 or the base station ex107 by the car ex412 having the antenna ex411 and reproduce the moving image on a display device such as the car navigation ex413 that the car ex412 has.

更に、画像信号を上記実施の形態で示した画像符号化装置で符号化し、記録媒体に記録することもできる。具体例としては、DVDディスクex421に画像信号を記録するDVDレコーダや、ハードディスクに記録するディスクレコーダなどのレコーダex420がある。更にSDカードex422に記録することもできる。レコーダex420が上記実施の形態で示した画像復号化装置を備えていれば、DVDディスクex421やSDカードex422に記録した画像信号を再生し、モニタex408で表示することができる。
なお、カーナビゲーションex413の構成は例えば図16に示す構成のうち、カメラ部ex203とカメラインターフェース部ex303、画像符号化部ex312を除いた構成が考えられ、同様なことがコンピュータex111やテレビ(受信機)ex401等でも考えられる。
Further, the image signal can be encoded by the image encoding device shown in the above embodiment and recorded on a recording medium. Specific examples include a recorder ex420 such as a DVD recorder that records image signals on a DVD disk ex421 and a disk recorder that records on a hard disk. Further, it can be recorded on the SD card ex422. If the recorder ex420 includes the image decoding device described in the above embodiment, the image signal recorded on the DVD disc ex421 or the SD card ex422 can be reproduced and displayed on the monitor ex408.
For example, the configuration of the car navigation ex413 may be a configuration excluding the camera unit ex203, the camera interface unit ex303, and the image encoding unit ex312 in the configuration illustrated in FIG. 16, and the same applies to the computer ex111 and the television (receiver). ) Ex401 can also be considered.

また、上記携帯電話ex114等の端末は、符号化器・復号化器を両方持つ送受信型の端末の他に、符号化器のみの送信端末、復号化器のみの受信端末の3通りの実装形式が考えられる。   In addition to the transmission / reception type terminal having both the encoder and the decoder, the terminal such as the mobile phone ex114 has three mounting formats: a transmitting terminal having only an encoder and a receiving terminal having only a decoder. Can be considered.

なお、図3、図4、図10、図11に示したブロック図の各機能ブロックは典型的には集積回路装置であるLSIとして実現される。このLSIは1チップ化されても良いし、複数チップ化されても良い。(例えばメモリ以外の機能ブロックが1チップ化されていても良い。)ここでは、LSIとしたが、集積度の違いにより、IC、システムLSI、スーパーLSI、ウルトラLSIと呼称されることもある。   Each of the functional blocks in the block diagrams shown in FIGS. 3, 4, 10, and 11 is typically realized as an LSI that is an integrated circuit device. This LSI may be made into one chip or a plurality of chips. (For example, the functional blocks other than the memory may be integrated into one chip.) Although the LSI is used here, it may be referred to as an IC, a system LSI, a super LSI, or an ultra LSI depending on the degree of integration.

集積回路化の手法はLSIに限るものではなく、専用回路又は汎用プロセサで実現してもよい。LSI製造後に、プログラムすることが可能なFPGA(Field Programmable Gate Array)や、LSI内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサを利用しても良い。   The method of circuit integration is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. An FPGA (Field Programmable Gate Array) that can be programmed after manufacturing the LSI or a reconfigurable processor that can reconfigure the connection and setting of circuit cells inside the LSI may be used.

さらには、半導体技術の進歩又は派生する別技術によりLSIに置き換わる集積回路化の技術が登場すれば、当然、その技術を用いて機能ブロックの集積化を行ってもよい。バイオ技術の適応等が可能性としてありえる。   Further, if integrated circuit technology comes out to replace LSI's as a result of the advancement of semiconductor technology or a derivative other technology, it is naturally also possible to carry out function block integration using this technology. Biotechnology can be applied.

また、各機能ブロックのうち、データを格納するユニットだけ1チップ化せずに、本実施形態の記録媒体115のように別構成としても良い。   Further, among the functional blocks, only the unit for storing data may be configured separately as in the recording medium 115 of the present embodiment, without being integrated into one chip.

なお、図3、図4、図10、図11に示したブロック図の各機能ブロックおよび図7、図12に示したフローチャートにおいて、中心的な部分はプロセッサおよびプログラムによっても実現される。   In the functional blocks of the block diagrams shown in FIGS. 3, 4, 10, and 11 and the flowcharts shown in FIGS. 7 and 12, the central part is also realized by a processor and a program.

このように、上記実施の形態で示した画像符号化方法および画像復号化方法を上述したいずれの機器・システムに用いることは可能であり、そうすることで、上記実施の形態で説明した効果を得ることができる。   As described above, the image encoding method and the image decoding method described in the above embodiment can be used in any of the above-described devices / systems, and by doing so, the effects described in the above embodiment can be obtained. Obtainable.

以下では、本発明の実施の形態2について説明する。   Hereinafter, Embodiment 2 of the present invention will be described.

本発明は、画面内予測を用いる動画像符号化システムにおけるマトリクスの量子化を可能にするものであり、量子化したマトリクスの表現を可能にするものである。特に、符号付き指数ゴロム符号に適した巡回差分値の生成に関する。   The present invention enables quantization of a matrix in a moving picture coding system using intra prediction, and enables expression of a quantized matrix. In particular, the present invention relates to generation of cyclic difference values suitable for signed exponential Golomb codes.

従来、動画像符号化において量子化マトリクスが用いられており、Exp-Golomb符号が適用できることも知られている。また従来から、動画像の圧縮処理において、動画像符号は対応するセマンティクスとともに階層構造を持つシンタクス構造で表現され、ロッシー符号化およびロスレス符号化、または可変長符号化を用いている。さらに、変換ドメイン量子化も知られており活用されてきた。   Conventionally, quantization matrices have been used in moving picture coding, and it is also known that Exp-Golomb codes can be applied. Conventionally, in moving picture compression processing, a moving picture code is represented by a syntax structure having a hierarchical structure with corresponding semantics, and uses lossy coding and lossless coding, or variable length coding. Furthermore, transform domain quantization is also known and has been utilized.

ここでは量子化重み付けマトリクスを用いて動画像圧縮を表現、実行し、可能にする方法およびプログラムについて説明する。本発明の特徴は以下に挙げるとおりである。   Here, a method and program for expressing, executing, and enabling moving image compression using a quantization weighting matrix will be described. The features of the present invention are as follows.

1. 画面内符号化を用いる動画像符号化システムにおいて量子化マトリクスを伝送し、表現することを可能にする。   1. It is possible to transmit and represent a quantization matrix in a moving picture coding system using intra-picture coding.

2. 整数に基づき、かつ除算を必要としない演算によって実現される量子化重み付けマトリクスを定義し、実行する。   2. Define and execute a quantization weighting matrix based on integers and realized by operations that do not require division.

3. 量子化マトリクスを、符号化効率を上げることが可能な巡回差分符号および指数ゴロム符号化する。   3. The quantization matrix is subjected to cyclic differential code and exponential Golomb coding that can increase the coding efficiency.

4. 冗長な重み付け値を通信伝送データで伝送せず、デコーダ側で導出できるような量子化マトリクスとして表現する。   4. A redundant weight value is not transmitted as communication transmission data, but is expressed as a quantization matrix that can be derived on the decoder side.

0. 量子化マトリクスの差分符号化とは
量子化マトリクスの各成分を符号化するため、まずマトリクス成分を1次元の配列にマップさせる。このマッピングでは、MPEG-4 Part 10 (MPEG-2およびMPEG-4 Part 2にも同様の定義がある)に記述されているジグザグパターンを用いる。図5(a)および図5(b)にジグザグパターンの例を示す。変換により得られた1次元の配列は、8×8の量子化マトリクスの場合64個の要素を含み、4×4の量子化マトリクスの場合16個の要素を含む。上記規格の定義によれば、含まれる要素は1以上255以下の正の整数である。
0. Difference encoding of quantization matrix In order to encode each component of the quantization matrix, the matrix component is first mapped to a one-dimensional array. This mapping uses a zigzag pattern described in MPEG-4 Part 10 (MPEG-2 and MPEG-4 Part 2 have similar definitions). Examples of zigzag patterns are shown in FIGS. The one-dimensional array obtained by the transformation includes 64 elements for an 8 × 8 quantization matrix and 16 elements for a 4 × 4 quantization matrix. According to the definition of the above standard, the included element is a positive integer between 1 and 255.

従来の差分符号化では、1次元の各配列要素から当該各配列要素の直前の要素の値を減算することで差分符号を求める。ただし、先頭の配列要素からは8を減算する(先頭の要素の値はDCの重みであり、通常8の値をとるからである)。続いて各差分符号は、MPEG-4 Part 10. (lSO/IEC JTC1/SC29WG11, 14496-10)に定義されるように、さらにExp-Golomb符号を用いて符号化される。   In conventional differential encoding, a differential code is obtained by subtracting the value of the element immediately preceding each array element from each one-dimensional array element. However, 8 is subtracted from the head array element (because the value of the head element is a DC weight and usually takes a value of 8). Subsequently, each differential code is further encoded using an Exp-Golomb code as defined in MPEG-4 Part 10. (lSO / IEC JTC1 / SC29WG11, 14496-10).

従来の量子化マトリクスの差分符号化方法は以下のような問題を持つ。   The conventional differential encoding method of the quantization matrix has the following problems.

1. 量子化マトリクスにおける各値と当該値の直前の値との差分は、-254〜+254の範囲内の値となる。差分値が取りうる値の範囲が大きくなると、Exp-Golombを用いた可変長符号化の効率が悪くなる。   1. The difference between each value in the quantization matrix and the value immediately before the value is a value in the range of -254 to +254. When the range of values that can be taken by the difference value increases, the efficiency of variable length coding using Exp-Golomb becomes worse.

2.符号化の対象のマトリクスの値の数を抑えるために"切捨て"を行う場合、一連のデータの終りを通知するために用いられる特別な値は、適切な値である必要がある。さもなければ"切捨て"方法は不適切となる。   2. When “truncating” is performed in order to reduce the number of matrix values to be encoded, a special value used to notify the end of a series of data needs to be an appropriate value. Otherwise, the “truncated” method is inappropriate.

本発明では、差分がとりうる値の範囲が-128〜+128となるように巡回差分値を生成することで上記問題を解決する。これによって、符号付きExp-Golomb符号により適した符号化を行うことができる。また本発明は、"切捨て"方法を用いる場合の符号配列の終りの通知に関する問題も解決することができる。   In the present invention, the above problem is solved by generating a cyclic difference value so that a range of values that can be taken is −128 to +128. This makes it possible to perform encoding more suitable for signed Exp-Golomb codes. The present invention can also solve the problem with the end of code sequence notification when using the “truncate” method.

本発明では、"切捨て"方法を用いながらも連続する符号の終りを通知するためのメカニズムを改善するため、終りを通知するために必要となるビット数を9ビット以下にする。これを実現するため、複数の信号を用いて連続する符号を押さえるさせる。これは、64個の要素を持つ符号配列に適用可能であるが、16個の要素を持つ符号配列にも適用できるかもしれない。   In the present invention, in order to improve the mechanism for notifying the end of consecutive codes while using the “truncated” method, the number of bits required for notifying the end is set to 9 bits or less. In order to realize this, a continuous code is suppressed using a plurality of signals. This is applicable to code arrays with 64 elements, but may also be applied to code arrays with 16 elements.

1. 巡回差分符号化の逆処理
本処理では、D[i]を入力としW[i]を出力とする。ここで、D[i]は差分符号を表わし、W[i]はジグザグスキャンでサンプリングされた量子化マトリクスの各値を表わす。
1. Inverse processing of cyclic differential encoding In this processing, D [i] is input and W [i] is output. Here, D [i] represents a differential code, and W [i] represents each value of the quantization matrix sampled by the zigzag scan.

入力されたW[i]に対し、以下の演算を行う。   The following calculation is performed on the input W [i].

Define: M=16, for 4x4 block; M=64, for 8x8 block
Define M=16, for 4x4 matrix or M=64, for 8x8 matrix
W[0] = (D[0] + 8+256)%256
k=0;
for(i=1; (i<M)&&(W[i-1] + D[i] +256) % 256>0;i++)
[
W[i] = (W[i-1] + D[i] +256)%256
]
for(j =I;j<M;j++)[
W[j] = W[i-1]
]
Define: M = 16, for 4x4 block; M = 64, for 8x8 block
Define M = 16, for 4x4 matrix or M = 64, for 8x8 matrix
W [0] = (D [0] + 8 + 256)% 256
k = 0;
for (i = 1; (i <M) && (W [i-1] + D [i] +256)% 256>0; i ++)
[
W [i] = (W [i-1] + D [i] +256)% 256
]
for (j = I; j <M; j ++) [
W [j] = W [i-1]
]

2. 差分符号生成処理
本処理では、W[i]を入力としD[i]を出力とする。ここで、W[i]はジグザグスキャンでサンプリングされた量子化マトリクスの各値を表わし、D[i]はW[i]から求められた差分符号を表わす。
2. Differential code generation process In this process, W [i] is input and D [i] is output. Here, W [i] represents each value of the quantization matrix sampled by the zigzag scan, and D [i] represents a differential code obtained from W [i].

入力されたW[i]に対し、以下の演算を行う。   The following calculation is performed on the input W [i].

Define M=16, for 4x4 matrix or M=64, for 8x8 matrix
D[0] =W[0]-8
k=M;
for(i=1; i<M; i++)
[
D[i] = W[i] -W[i-1]
if( D[i]>128)
D[i] = D[i]-256
else if (D[i]<-128)
D[i] = D[i] +256
else if(D[i]== 0) && (k== M)
k=i
else if(D[i]!=0)
k=M
]
// これはW[k]=0を満たす終り信号D[k]の挿入を目的とする
if(k!=M)[
if (W[k-1]>128)
D[k] = 256-W[k-1]
else
D[k] = -W[k-1]
]
// これは最適化を目的とする
if(Length_of-ExpGlomb_code (D[k]) > M-k-i ) [
for(i=k; i<M; i++)
D[k]=0
]
Define M = 16, for 4x4 matrix or M = 64, for 8x8 matrix
D [0] = W [0] -8
k = M;
for (i = 1; i <M; i ++)
[
D [i] = W [i] -W [i-1]
if (D [i]> 128)
D [i] = D [i] -256
else if (D [i] <-128)
D [i] = D [i] +256
else if (D [i] == 0) && (k == M)
k = i
else if (D [i]! = 0)
k = M
]
// This is intended to insert an end signal D [k] that satisfies W [k] = 0
if (k! = M) [
if (W [k-1]> 128)
D [k] = 256-W [k-1]
else
D [k] = -W [k-1]
]
// This is for optimization purposes
if (Length_of-ExpGlomb_code (D [k])> Mki) [
for (i = k; i <M; i ++)
D [k] = 0
]

上記演算により、差分符号列の終りを示す値も含め、絶対値が128以下となる差分値D[i]が生成される。よって、上記演算により求められる差分符号は、符号付きExp-Golomb符号化により適したものとなる。   Through the above calculation, a difference value D [i] having an absolute value of 128 or less is generated including a value indicating the end of the difference code string. Therefore, the differential code obtained by the above calculation is more suitable for signed Exp-Golomb coding.

3.差分符号列の終りを通知するためのメカニズム
差分符号列の終りを示すためにWやDといった信号値を用いる代わりに、本発明では2つ以上の符号を用い、出力すべき符号をその中からエンコーダに選択させる。
3. Mechanism for notifying the end of the differential code sequence Instead of using signal values such as W and D to indicate the end of the differential code sequence, the present invention uses two or more codes, Let the encoder choose from the inside.

符号列の終りを通知するため、エンコーダは以下の設定を行うことができる。ここで、デコーダはエンコーダが行った設定を認識できる必要がある。   In order to notify the end of the code string, the encoder can make the following settings. Here, the decoder needs to be able to recognize the settings made by the encoder.

符号化対象となる符号列の終りがkにある(すなわち、W[k] = W[k-1])と仮定する(ここで、W[i]は0〜Mの値をとる。またMは、4×4変換ブロックの場合16であり、8×8変換ブロックの場合64である)。   Assume that the end of the code string to be encoded is at k (that is, W [k] = W [k−1]) (W [i] takes a value from 0 to M. M Is 16 for 4 × 4 transform blocks and 64 for 8 × 8 transform blocks).

− W[k]の値を0に設定する。これは差分値D[k]に対応する。D[k]の絶対値は128以下である。   − Set the value of W [k] to 0. This corresponds to the difference value D [k]. The absolute value of D [k] is 128 or less.

− D[k]の値を255を超える値、もしくは-255より小さい値に設定する。これにより、最初の9ビットが0になる符号付きExp-Golomb符号0000000001xxxxxxxxxが生成される。エンコーダは最初の10ビットのみを出力すればよい(ここで、"1"を出力せずに9ビットだけを出力することもできる)。復号処理後、デコーダは符号付きGolomb符号として255を超える値を得る。デコーダが不正なGolomb符号に対応可能な場合、連続する9ビットの0を出力するだけでよい。   − Set the value of D [k] to a value greater than 255 or less than -255. As a result, a signed Exp-Golomb code 0000000001xxxxxxxxx in which the first 9 bits are 0 is generated. The encoder need only output the first 10 bits (here, it is also possible to output only 9 bits without outputting “1”). After the decoding process, the decoder obtains a value exceeding 255 as a signed Golomb code. If the decoder is capable of handling an illegal Golomb code, it is only necessary to output 9 consecutive 0s.

これに対応して、復号処理は以下の手順で行われる。(以下に挙げる擬似符号では、D[k]が+255〜−255の値をとるか否かをチェックする代わりに、D[k]が適切な範囲内の値となっているかを単にチェックする。D[k]が適切な範囲内の値をとらない場合、D[k]が連続する符号の終りであると判断する。いずれの場合もチェックは必要であるため、条件付き演算を2つ省略することができる。)   Corresponding to this, the decoding process is performed in the following procedure. (In the pseudo code given below, instead of checking whether D [k] takes a value of +255 to −255, it simply checks whether D [k] is a value within an appropriate range. If D [k] does not take a value within the appropriate range, it is determined that D [k] is the end of a continuous code.In each case, a check is necessary, so two conditional operations are omitted. can do.)

Define: M=16, for 4x4 block; M=64, for 8x8 block
Define M=16, for 4x4 matrix or M=64, for 8x8 matrix
D[0] = (W[0] + 8+256)%256
k=0;
for (i=1; (i<M) &&(Golombcode Legal) && (-129<D[i]<129) && (W[i-1] +256) % 256>0; i++)
W[i] = (W[i-1] + D[i] +256)%256
[
for(j = i;j<M;j++)[
W[j] = W[i-1]
]
Define: M = 16, for 4x4 block; M = 64, for 8x8 block
Define M = 16, for 4x4 matrix or M = 64, for 8x8 matrix
D [0] = (W [0] + 8 + 256)% 256
k = 0;
for (i = 1; (i <M) && (Golombcode Legal) && (-129 <D [i] <129) && (W [i-1] +256)% 256>0; i ++)
W [i] = (W [i-1] + D [i] +256)% 256
[
for (j = i; j <M; j ++) [
W [j] = W [i-1]
]

4. まとめ
符号化効率を向上させるため、必要に応じて固定長符号とExp-Golomb符号とを組み合わせて用いる。
4. Summary In order to improve coding efficiency, a fixed-length code and an Exp-Golomb code are used in combination as necessary.

− 巡回差分の生成
− 固定長符号を用いた2ビット (もしくは4ビット)のLSB
− Exp-Golomb符号を用いた6ビット (もしくは4ビット)のMSB
これらを用いることで、ビット数全体をさらに削減することができる。
− Generation of cyclic difference − 2-bit (or 4-bit) LSB with fixed-length code
− 6-bit (or 4-bit) MSB using Exp-Golomb code
By using these, the total number of bits can be further reduced.

なお、上記"1. 巡回差分符号化の逆処理"を以下のような量子化重み付けマトリクス導出処理として表現することもできる。   The above "1. Inverse processing of cyclic differential encoding" can also be expressed as a quantization weighting matrix derivation process as follows.

本処理では、Exp−Golomb符号化された連続する量子化重み付けマトリクスの値を入力とし、2次元配列として表現された量子化重み付けマトリクスの値を出力とする。   In this process, the value of the continuous quantization weighting matrix subjected to Exp-Golomb encoding is input, and the value of the quantization weighting matrix expressed as a two-dimensional array is output.

− 指数ゴロム符号化された連続する量子化重み付けマトリクスの値を復号するため、復号処理を呼び出す。   -Invoking the decoding process to decode the values of the exponential Golomb coded successive quantization weighting matrix.

− 復号化値d(i)を用いて量子化重み付けマトリクスの各成分W(i)を導出する。その際、以下に示す数式を用いて処理を行う。以下の数式で、Mは4×4変換ブロックの場合16であり、8×8変換ブロックの場合64である。   Deriving each component W (i) of the quantization weighting matrix using the decoded value d (i). At that time, processing is performed using the following mathematical formula. In the following equation, M is 16 for a 4 × 4 transform block and 64 for an 8 × 8 transform block.

W(0)=d(0)+8
If ((d(i)<128) && (d(i)>-128) && ((W(i-1) + d(i)+256)%256!=0))
・W(i)=(W(i-1) + d(i)+256)%256, for 0<i<M
それ以外の場合
・W(i)=W(k-1), for i=k, …<M, where D(k)>128 or D(k)<-128, or W(k)=0, and 0<i, k<M
[W[I] は0の値をとることができない]
W (0) = d (0) +8
If ((d (i) <128) && (d (i)>-128) && ((W (i-1) + d (i) +256)% 256! = 0))
・ W (i) = (W (i-1) + d (i) +256)% 256, for 0 <i <M
Otherwise ・ W (i) = W (k-1), for i = k,… <M, where D (k)> 128 or D (k) <-128, or W (k) = 0, and 0 <i, k <M
[W [I] cannot be 0]

− 量子化重み付けマトリクスW(i, j)は、逆ブロックスキャン処理を用いてW(i)から求められる。4×4変換ブロックでのスキャン順序を図5(a)に、8×8変換ブロックでのスキャン順序を図5(b)に示す。   The quantization weighting matrix W (i, j) is determined from W (i) using an inverse block scan process. FIG. 5A shows the scan order in the 4 × 4 transform block, and FIG. 5B shows the scan order in the 8 × 8 transform block.

さらに、上記"1. 巡回差分符号化の逆処理"は以下のような量子化重み付けマトリクス導出処理として実現することも可能である。ここで "ScalingList"は量子化マトリクスWMを示し、 "lastScale"はW[i-1]を示し、 "delta_scaling"はD[i]を示している。   Furthermore, the above "1. Inverse processing of cyclic difference encoding" can be realized as the following quantization weighting matrix derivation processing. Here, “ScalingList” indicates a quantization matrix WM, “lastScale” indicates W [i−1], and “delta_scaling” indicates D [i].

scaling_list( scalingList, sizeOfScalingList, useDefaultScalingMatrixFlag ) [
lastScale = 8
nextScale = 8
for( j = 0; j < sizeOfScalingList; j++ ) [
if( nextScale != 0 ) [
delta_scale
nextScale = ( lastScale + delta_scale + 256 ) % 256
useDefaultScalingMatrixFlag = ( j = = 0 && nextScale = = 0 )
]
scalingList[ j ] = ( nextScale = = 0 ) ? lastScale : nextScale
lastScale = scalingList[ j ]
]
]
scaling_list (scalingList, sizeOfScalingList, useDefaultScalingMatrixFlag) [
lastScale = 8
nextScale = 8
for (j = 0; j <sizeOfScalingList; j ++) [
if (nextScale! = 0) [
delta_scale
nextScale = (lastScale + delta_scale + 256)% 256
useDefaultScalingMatrixFlag = (j = = 0 && nextScale = = 0)
]
scalingList [j] = (nextScale = = 0)? lastScale: nextScale
lastScale = scalingList [j]
]
]

本発明は、画像を符号化又は復号化するする符号化装置、復号化装置に適しており、動画配信するウェブサーバー、それを受信するネットワーク端末、動画の記録再生可能なデジタルカメラ、カメラ付き携帯電話機、DVD録画/再生機、PDA、パーソナルコンピュータ等に適している。   INDUSTRIAL APPLICABILITY The present invention is suitable for an encoding device that encodes or decodes an image, a decoding device, a web server that distributes a moving image, a network terminal that receives the moving image, a digital camera capable of recording and reproducing moving images, and a mobile phone with a camera Suitable for telephones, DVD recorders / players, PDAs, personal computers, etc.

図1は、ビットストリームのデータ構造の例を示した説明図である。FIG. 1 is an explanatory diagram showing an example of the data structure of a bitstream. 図2は、量子化マトリクスの例を示す図である。FIG. 2 is a diagram illustrating an example of a quantization matrix. 図3は、画像符号化装置の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of the image encoding device. 図4は、WM符号化部のブロック図である。FIG. 4 is a block diagram of the WM encoding unit. 図5Aは、量子化マトリクスの符号化順序を示す図である。FIG. 5A is a diagram illustrating an encoding order of a quantization matrix. 図5Bは、量子化マトリクスの符号化順序を示す図である。FIG. 5B is a diagram illustrating the coding order of the quantization matrix. 図5Cは、量子化マトリクスの符号化順序を示す図である。FIG. 5C is a diagram illustrating an encoding order of a quantization matrix. 図5Dは、量子化マトリクスの符号化順序を示す図である。FIG. 5D is a diagram illustrating an encoding order of a quantization matrix. 図6Aは、量子化マトリクスの成分値の具体例を示す図である。FIG. 6A is a diagram illustrating a specific example of component values of a quantization matrix. 図6Bは、量子化マトリクスの符号化過程における差分値の具体例を示す図である。FIG. 6B is a diagram illustrating a specific example of the difference value in the quantization matrix encoding process. 図6Cは、周波数成分値から差分値および可変長符号までの符号化過程の具体例を示す図である。FIG. 6C is a diagram illustrating a specific example of an encoding process from a frequency component value to a difference value and a variable length code. 図7は、WM符号化部におけるWM符号化処理を示すフローチャートである。FIG. 7 is a flowchart showing the WM encoding process in the WM encoding unit. 図8Aは、正数の場合の可変長符号化の具体例を示す図である。FIG. 8A is a diagram illustrating a specific example of variable length coding in the case of a positive number. 図8Bは、符号付きの場合の可変長符号化の具体例を示す図である。FIG. 8B is a diagram illustrating a specific example of variable length coding in the case of being signed. 図8Cは、可変長符号化の具体例を示す図である。FIG. 8C is a diagram illustrating a specific example of variable length coding. 図9Aは、量子化マトリクスの周波数成分の配列を示す図である。FIG. 9A is a diagram illustrating an arrangement of frequency components of a quantization matrix. 図9Bは、量子化マトリクスの各成分の符号化されたデータがヘッダ部にどのように配置されているかを示す図である。FIG. 9B is a diagram showing how the encoded data of each component of the quantization matrix is arranged in the header part. 図9Cは、量子化マトリクスの各成分の符号化されたデータがヘッダ部にどのように配置されているかを示す図である。FIG. 9C is a diagram showing how the encoded data of each component of the quantization matrix is arranged in the header part. 図10は、画像復号化装置の構成を示すブロック図である。FIG. 10 is a block diagram illustrating a configuration of the image decoding apparatus. 図11は、WM復号化部の構成を示すブロック図である。FIG. 11 is a block diagram illustrating a configuration of the WM decoding unit. 図12は、WM復号化部におけるWM復号化処理を示すフローチャートである。FIG. 12 is a flowchart showing the WM decoding process in the WM decoding unit. 図13Aは、上記実施形態における画像符号化方法及び画像復号化方法をコンピュータシステムによって実現するプログラムを格納するための記録媒体についての説明図である。FIG. 13A is an explanatory diagram of a recording medium for storing a program for realizing the image encoding method and the image decoding method according to the above-described embodiment by a computer system. 図13Bは、上記実施形態における画像符号化方法及び画像復号化方法をコンピュータシステムによって実現するプログラムを格納するための記録媒体についての説明図である。FIG. 13B is an explanatory diagram of a recording medium for storing a program that implements the image encoding method and the image decoding method according to the above embodiment using a computer system. 図13Cは、上記実施形態における画像符号化方法及び画像復号化方法をコンピュータシステムによって実現するプログラムを格納するための記録媒体についての説明図である。FIG. 13C is an explanatory diagram of a recording medium for storing a program that implements the image encoding method and the image decoding method according to the above embodiment using a computer system. 図14は、コンテンツ供給システムの全体構成を示すブロック図である。FIG. 14 is a block diagram showing the overall configuration of the content supply system. 図15は、画像符号化方法および画像復号化方法を用いた携帯電話の具体例を示す図である。FIG. 15 is a diagram illustrating a specific example of a mobile phone using the image encoding method and the image decoding method. 図16は、携帯電話のブロック図である。FIG. 16 is a block diagram of a mobile phone. 図17は、ディジタル放送用システムの例を示す図である。FIG. 17 is a diagram illustrating an example of a digital broadcasting system.

Claims (26)

画像をブロック単位の直交変換および量子化によって符号化するとともに、直交変換係数の各周波数に応じた量子化ステップを導出するための量子化マトリクスを符号化する画像符号化方法であって、
前記量子化マトリクスの周波数成分毎に、周波数成分とその周波数成分に応じた所定値との差分値を求め、
前記差分値を可変長符号に符号化し、
前記可変長符号は、前記差分値が小さいほど短いか同じ長さの符号長を有する
ことを特徴とする画像符号化方法。
An image encoding method for encoding an image by orthogonal transform and quantization in units of blocks and encoding a quantization matrix for deriving a quantization step corresponding to each frequency of the orthogonal transform coefficient,
For each frequency component of the quantization matrix, obtain a difference value between the frequency component and a predetermined value corresponding to the frequency component,
Encoding the difference value into a variable length code;
The variable-length code has a code length that is shorter or has the same length as the difference value is smaller.
前記所定値は、直前に求められた差分値に対応する周波数成分の値である
ことを特徴とする請求項1記載の画像符号化方法。
The image encoding method according to claim 1, wherein the predetermined value is a value of a frequency component corresponding to a difference value obtained immediately before.
前記差分値は、前記量子化マトリクスに含まれる周波数成分の低周波数から高周波数の順に求められる
ことを特徴とする請求項2記載の画像符号化方法。
The image encoding method according to claim 2, wherein the difference value is obtained in order from a low frequency to a high frequency of frequency components included in the quantization matrix.
前記差分値は、2のk乗(kは定数)で除算した剰余として求められる
ことを特徴とする請求項3記載の画像符号化方法。
The image encoding method according to claim 3, wherein the difference value is obtained as a remainder divided by 2 to the power of k (k is a constant).
前記画像符号化方法は、さらに、
連続する差分値0が量子化マトリクスの末尾に存在するかどうかを判定し、
連続する差分値0が存在すると判定された場合に、前記連続する差分値0を可変長符号化しない
ことを特徴とする請求項3記載の画像符号化方法。
The image encoding method further includes:
Determine whether successive difference values 0 exist at the end of the quantization matrix;
The image coding method according to claim 3, wherein when it is determined that there is a continuous difference value 0, the continuous difference value 0 is not variable-length encoded.
前記符号化方法は、さらに、
前記可変長符号化した最後に終了符号を付加し、それ以降が符号化されていない連続する差分値0であることを示す
ことを特徴とする請求項5記載の画像符号化方法。
The encoding method further includes:
6. The image encoding method according to claim 5, wherein an end code is added at the end of the variable length encoding, and the subsequent difference values are 0 which are not encoded.
符号化された画像をブロック単位に逆量子化および逆直交変換によって復号化するとともに、符号化された量子化マトリクスを復号化する画像復号化方法であって、
可変長符号化された量子化マトリクスを、周波数成分毎の差分値に可変長復号し、
前記差分値と、周波数成分に応じた所定値とを加算することにより、量子化マトリクスの周波数成分を求め、
前記可変長符号は、前記差分値が小さいほど短いか同じ長さの符号長を有する
ことを特徴とする画像復号化方法。
An image decoding method for decoding an encoded image in units of blocks by inverse quantization and inverse orthogonal transform, and decoding an encoded quantization matrix,
The variable-length-coded quantization matrix is variable-length decoded into a difference value for each frequency component,
The frequency component of the quantization matrix is obtained by adding the difference value and a predetermined value corresponding to the frequency component,
The variable length code has a code length that is shorter or has the same length as the difference value is smaller.
前記所定値は、直前の加算により求められた周波数成分の値である
ことを特徴とする請求項7記載の画像復号化方法。
The image decoding method according to claim 7, wherein the predetermined value is a value of a frequency component obtained by immediately preceding addition.
前記加算の順序は、周波数成分の低周波数から高周波数の順である
ことを特徴とする請求項8記載の画像復号化方法。
The image decoding method according to claim 8, wherein the order of the addition is from a low frequency to a high frequency of frequency components.
前記周波数成分は、2のk乗(kは定数)で除算した剰余として求められる
ことを特徴とする請求項9記載の画像復号化方法。
The image decoding method according to claim 9, wherein the frequency component is obtained as a remainder divided by 2 to the power of k (k is a constant).
前記画像復号化方法において、
可変長符号化された量子化マトリクスから終了符号が検出された場合に、それ以降に後続する各周波数成分の値として、終了符号の直前の周波数成分と同じ値を出力する
ことを特徴とする請求項9記載の画像復号化方法。
In the image decoding method,
When the end code is detected from the variable-length-coded quantization matrix, the same value as the frequency component immediately before the end code is output as the value of each subsequent frequency component. Item 10. The image decoding method according to Item 9.
画像をブロック単位の直交変換および量子化によって符号化するとともに、直交変換係数の各周波数に応じた量子化ステップを導出するための量子化マトリクスを符号化する画像符号化装置であって、
前記量子化マトリクスの周波数成分毎に、周波数成分とその周波数成分に応じた所定値との差分値を減算手段と、
前記差分値を可変長符号に符号化する符号化手段とを備え、
前記可変長符号は、前記差分値が小さいほど短いか同じ長さの符号長を有する
ことを特徴とする画像符号化装置。
An image encoding apparatus for encoding an image by orthogonal transform and quantization in units of blocks, and encoding a quantization matrix for deriving a quantization step corresponding to each frequency of the orthogonal transform coefficient,
For each frequency component of the quantization matrix, a subtraction means for subtracting a difference value between the frequency component and a predetermined value corresponding to the frequency component;
Encoding means for encoding the difference value into a variable length code,
The variable-length code has a code length that is shorter or has the same length as the difference value is smaller.
前記所定値は、直前に求められた差分値に対応する周波数成分の値である
ことを特徴とする請求項12記載の画像符号化装置。
The image coding apparatus according to claim 12, wherein the predetermined value is a value of a frequency component corresponding to a difference value obtained immediately before.
前記差分値は、前記量子化マトリクスに含まれる周波数成分の低周波数から高周波数の順に求められる
ことを特徴とする請求項13記載の画像符号化装置。
The image encoding device according to claim 13, wherein the difference value is obtained in order from a low frequency to a high frequency of frequency components included in the quantization matrix.
前記差分値は、2のk乗(kは定数)で除算した剰余として求められる
ことを特徴とする請求項14記載の画像符号化装置。
The image encoding device according to claim 14, wherein the difference value is obtained as a remainder obtained by dividing by 2 to the power of k (k is a constant).
前記画像符号化装置は、さらに、連続する差分値0が量子化マトリクスの末尾に存在するかどうかを判定する判定手段を備え、
前記符号化手段は、連続する差分値0が存在すると判定された場合に、前記連続する差分値0を可変長符号化しない
ことを特徴とする請求項14記載の画像符号化装置。
The image encoding apparatus further includes a determination unit that determines whether or not a continuous difference value 0 exists at the end of the quantization matrix,
The image encoding device according to claim 14, wherein the encoding unit does not perform variable length encoding on the continuous difference value 0 when it is determined that there is a continuous difference value 0.
前記符号化手段は、さらに、前記可変長符号化した最後に終了符号を付加し、それ以降が符号化されていない連続する差分値0であることを示す
ことを特徴とする請求項16記載の画像符号化装置。
The encoding unit further adds an end code to the end of the variable-length encoding, and indicates that the subsequent differential values are 0 that are not encoded. Image encoding device.
符号化された画像をブロック単位に逆量子化および逆直交変換によって復号化するとともに、符号化された量子化マトリクスを復号化する画像復号化装置であって、
可変長符号化された量子化マトリクスを、周波数成分毎の差分値に可変長復号する復号手段と、
前記差分値と、周波数成分に応じた所定値とを加算することにより、量子化マトリクスの周波数成分を求める加算手段とを備え、
前記可変長符号は、前記差分値が小さいほど短いか同じ長さの符号長を有する
ことを特徴とする画像復号化装置。
An image decoding device that decodes an encoded image in units of blocks by inverse quantization and inverse orthogonal transform, and decodes an encoded quantization matrix,
Decoding means for variable length decoding the variable length encoded quantization matrix into a difference value for each frequency component;
Adding means for obtaining the frequency component of the quantization matrix by adding the difference value and a predetermined value according to the frequency component;
The variable length code has a code length that is shorter or the same as the difference value is smaller.
前記所定値は、直前の加算により求められた周波数成分の値である
ことを特徴とする請求項18記載の画像復号化装置。
The image decoding apparatus according to claim 18, wherein the predetermined value is a value of a frequency component obtained by the previous addition.
前記加算の順序は、周波数成分の低周波数から高周波数の順である
ことを特徴とする請求項19記載の画像復号化装置。
The image decoding apparatus according to claim 19, wherein the order of the addition is from a low frequency to a high frequency of frequency components.
前記周波数成分は、2のk乗(kは定数)で除算した剰余として求められる
ことを特徴とする請求項20記載の画像復号化装置。
The image decoding device according to claim 20, wherein the frequency component is obtained as a remainder obtained by dividing by 2 to the power of k (k is a constant).
前記画像復号化装置は、さらに、
加算手段によって直前に求められた周波数成分を保持する保持手段と、
可変長符号化された量子化マトリクスから終了符号を検出する検出手段とを備え、
前記保持回路は、終了符号が検出された場合に、終了符号の直前の周波数成分の値を、それ以降に後続する各周波数成分の値として出力する
ことを特徴とする請求項21記載の画像復号化装置。
The image decoding device further includes:
Holding means for holding the frequency component obtained immediately before by the adding means;
Detecting means for detecting an end code from a variable-length-coded quantization matrix;
The image decoding according to claim 21, wherein when the end code is detected, the holding circuit outputs the value of the frequency component immediately before the end code as the value of each subsequent frequency component. Device.
画像をブロック単位の直交変換および量子化によって符号化するとともに、直交変換係数の各周波数に応じた量子化ステップを導出するための量子化マトリクスを符号化する画像符号化方法をコンピュータに実行させるプログラムであって、
前記プログラムは、
前記量子化マトリクスの周波数成分毎に、周波数成分とその周波数成分に応じた所定値との差分値を求め、
前記差分値を可変長符号に符号化する
ことをコンピュータに実行させ、
前記可変長符号は、前記差分値が小さいほど短いか同じ長さの符号長を有する
ことを特徴とするプログラム。
A program for causing a computer to execute an image encoding method for encoding an image by performing orthogonal transform and quantization in units of blocks, and encoding a quantization matrix for deriving a quantization step corresponding to each frequency of the orthogonal transform coefficient Because
The program is
For each frequency component of the quantization matrix, obtain a difference value between the frequency component and a predetermined value corresponding to the frequency component,
Encoding the difference value into a variable length code is executed by a computer,
The variable length code has a code length that is shorter or the same as the difference value is smaller.
符号化された画像をブロック単位に逆量子化および逆直交変換によって復号化するとともに、符号化された量子化マトリクスを復号化する画像復号化方法をコンピュータに実行させるプログラムであって、
前記プログラムは、
可変長符号化された量子化マトリクスを、周波数成分毎の差分値に可変長復号し、
前記差分値と、周波数成分に応じた所定値とを加算することにより、量子化マトリクスの周波数成分を求める
ことをコンピュータに実行させ、
前記可変長符号は、前記差分値が小さいほど短いか同じ長さの符号長を有する
ことを特徴とするプログラム。
A program for causing a computer to execute an image decoding method for decoding an encoded image by inverse quantization and inverse orthogonal transform in units of blocks and decoding an encoded quantization matrix,
The program is
The variable-length-coded quantization matrix is variable-length decoded into a difference value for each frequency component,
By adding the difference value and a predetermined value according to the frequency component, the computer is caused to calculate the frequency component of the quantization matrix,
The variable length code has a code length that is shorter or the same as the difference value is smaller.
画像をブロック単位の直交変換および量子化によって符号化するとともに、直交変換係数の各周波数に応じた量子化ステップを導出するための量子化マトリクスを符号化する半導体装置であって、
前記量子化マトリクスの周波数成分毎に、周波数成分とその周波数成分に応じた所定値との差分値を減算手段と、
前記差分値を可変長符号に符号化する符号化手段とを備え、
前記可変長符号は、前記差分値が小さいほど短いか同じ長さの符号長を有する
ことを特徴とする半導体装置。
A semiconductor device for encoding an image by orthogonal transform and quantization in units of blocks, and encoding a quantization matrix for deriving a quantization step corresponding to each frequency of the orthogonal transform coefficient,
For each frequency component of the quantization matrix, a subtraction means for subtracting a difference value between the frequency component and a predetermined value corresponding to the frequency component;
Encoding means for encoding the difference value into a variable length code,
The variable-length code has a code length that is shorter or the same as the difference value is smaller.
符号化された画像をブロック単位に逆量子化および逆直交変換によって復号化するとともに、符号化された量子化マトリクスを復号化する半導体装置であって、
可変長符号化された量子化マトリクスを、周波数成分毎の差分値に可変長復号する復号手段と、
前記差分値と、周波数成分に応じた所定値とを加算することにより、量子化マトリクスの周波数成分を求める加算手段とを備え、
前記可変長符号は、前記差分値が小さいほど短いか同じ長さの符号長を有する
ことを特徴とする半導体装置。
A semiconductor device which decodes an encoded image by inverse quantization and inverse orthogonal transform in units of blocks, and decodes an encoded quantization matrix,
Decoding means for variable length decoding the variable length encoded quantization matrix into a difference value for each frequency component;
Adding means for obtaining the frequency component of the quantization matrix by adding the difference value and a predetermined value according to the frequency component;
The variable-length code has a code length that is shorter or the same as the difference value is smaller.
JP2006549708A 2004-01-20 2005-01-19 Quantization matrix, moving picture decoding method, decoding apparatus, program, and recording medium Active JP4705921B2 (en)

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
US53806504P 2004-01-20 2004-01-20
US60/538,065 2004-01-20
US56135104P 2004-04-12 2004-04-12
US60/561,351 2004-04-12
PCT/US2005/002227 WO2005072312A2 (en) 2004-01-20 2005-01-19 Picture coding method, picture decoding method, picture coding apparatus, picture decoding apparatus, and program thereof

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2011010283A Division JP5249363B2 (en) 2004-01-20 2011-01-20 Quantization matrix encoding method and moving image encoding apparatus

Publications (3)

Publication Number Publication Date
JP2007520948A true JP2007520948A (en) 2007-07-26
JP2007520948A5 JP2007520948A5 (en) 2008-03-06
JP4705921B2 JP4705921B2 (en) 2011-06-22

Family

ID=34830455

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2006549708A Active JP4705921B2 (en) 2004-01-20 2005-01-19 Quantization matrix, moving picture decoding method, decoding apparatus, program, and recording medium
JP2011010283A Active JP5249363B2 (en) 2004-01-20 2011-01-20 Quantization matrix encoding method and moving image encoding apparatus

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2011010283A Active JP5249363B2 (en) 2004-01-20 2011-01-20 Quantization matrix encoding method and moving image encoding apparatus

Country Status (6)

Country Link
US (2) US7912122B2 (en)
EP (2) EP3869802A1 (en)
JP (2) JP4705921B2 (en)
KR (2) KR101169895B1 (en)
CN (1) CN101695132B (en)
WO (1) WO2005072312A2 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008517495A (en) * 2004-10-13 2008-05-22 エレクトロニクス アンド テレコミュニケーションズ リサーチ インスチチュート LASeR binary representation point sequence encoding / decoding method and apparatus
WO2011052217A1 (en) * 2009-10-30 2011-05-05 パナソニック株式会社 Image decoding method, image encoding method, image decoding device, image encoding device, programs, and integrated circuits
WO2011052215A1 (en) * 2009-10-30 2011-05-05 パナソニック株式会社 Decoding method, decoder apparatus, encoding method, and encoder apparatus
JP2011139116A (en) * 2009-12-25 2011-07-14 Nec Corp Information compression device, information restoration device, method of compressing information, method of restoring information, and information restoration processing program
JP2012049087A (en) * 2010-08-30 2012-03-08 Toshiba Corp Secondary battery device and vehicle
WO2012096156A1 (en) * 2011-01-12 2012-07-19 パナソニック株式会社 Image encoding method, image decoding method, image encoding device, and image decoding device
JP2014011482A (en) * 2012-06-27 2014-01-20 Canon Inc Image encoder, image encoding method and program, image decoder, image decoding method and program
JP2015516754A (en) * 2012-04-16 2015-06-11 エレクトロニクス アンド テレコミュニケーションズ リサーチ インスチチュートElectronics And Telecommunications Research Institute Video encoding / decoding method and apparatus
JP2017060177A (en) * 2016-11-08 2017-03-23 キヤノン株式会社 Image encoding apparatus, image encoding method, and program
JP2017073837A (en) * 2011-11-07 2017-04-13 キヤノン株式会社 Image encoder, image encoding method and program, image decoder, image decoding method and program
US10165287B2 (en) 2011-11-07 2018-12-25 Canon Kabushiki Kaisha Image coding apparatus, image coding method, image decoding apparatus, image decoding method, and storage medium
JP2021179627A (en) * 2013-05-24 2021-11-18 ドルビー・インターナショナル・アーベー Audio encoder and decoder

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101317463B (en) * 2006-03-16 2012-10-17 华为技术有限公司 Method and device for implementing quantization in encoding and decoding course
US8711925B2 (en) 2006-05-05 2014-04-29 Microsoft Corporation Flexible quantization
US20090238259A1 (en) * 2008-03-19 2009-09-24 Sung-Hung Yeh Method of rate control for video frame compression and encoder thereof
US8897359B2 (en) 2008-06-03 2014-11-25 Microsoft Corporation Adaptive quantization for enhancement layer video coding
KR101474756B1 (en) 2009-08-13 2014-12-19 삼성전자주식회사 Method and apparatus for encoding and decoding image using large transform unit
KR101504887B1 (en) 2009-10-23 2015-03-24 삼성전자 주식회사 Method and apparatus for video decoding by individual parsing or decoding in data unit level, and method and apparatus for video encoding for individual parsing or decoding in data unit level
KR101457396B1 (en) 2010-01-14 2014-11-03 삼성전자주식회사 Method and apparatus for video encoding using deblocking filtering, and method and apparatus for video decoding using the same
JP2012186617A (en) * 2011-01-31 2012-09-27 Sony Corp Image processing device and method
SG10201606972VA (en) * 2011-02-10 2016-10-28 Sony Corp Image processing device and image processing method
KR20130049526A (en) * 2011-11-04 2013-05-14 오수미 Method for generating reconstructed block
US10277915B2 (en) 2011-11-07 2019-04-30 Qualcomm Incorporated Signaling quantization matrices for video coding
JP5871628B2 (en) * 2011-11-07 2016-03-01 キヤノン株式会社 Image encoding device, image encoding method and program, image decoding device, image decoding method and program
KR20200023500A (en) * 2011-12-19 2020-03-04 소니 주식회사 Image processing device and method
US10129540B2 (en) * 2012-04-10 2018-11-13 Texas Instruments Incorporated Reduced complexity coefficient transmission for adaptive loop filtering (ALF) in video coding
DK2854398T3 (en) * 2012-06-11 2018-01-08 Samsung Electronics Co Ltd Method of encoding videos that share SAO parameters by color component
TWI592011B (en) * 2012-06-29 2017-07-11 Sony Corp Image processing device and method
CN104751495B (en) * 2013-12-27 2017-11-03 中国科学院沈阳自动化研究所 A kind of multi-scale compress of interest area preference perceives progressively-encode method
CN106664405B (en) * 2015-06-09 2020-06-09 微软技术许可有限责任公司 Robust encoding/decoding of escape-coded pixels with palette mode
WO2020003740A1 (en) * 2018-06-29 2020-01-02 キヤノン株式会社 Image coding device, image decoding device, control methods therefor, and program
WO2020019279A1 (en) * 2018-07-27 2020-01-30 深圳市大疆创新科技有限公司 Video compression method and apparatus, computer system, and mobile device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02216917A (en) * 1988-11-11 1990-08-29 Matsushita Electric Ind Co Ltd Coding/decoding method
JPH04343576A (en) * 1991-05-21 1992-11-30 Matsushita Electric Ind Co Ltd Highly efficient coding and decoding method
JPH05235778A (en) * 1992-02-21 1993-09-10 Matsushita Electric Ind Co Ltd High efficiency coding method
JPH1188880A (en) * 1997-02-08 1999-03-30 Matsushita Electric Ind Co Ltd Quantization matrix for still picture and moving image
JP2001258029A (en) * 2000-03-10 2001-09-21 Matsushita Electric Ind Co Ltd Method and system for dynamically displaying residue coefficient

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5034965A (en) 1988-11-11 1991-07-23 Matsushita Electric Industrial Co., Ltd. Efficient coding method and its decoding method
JPH02235778A (en) 1989-03-10 1990-09-18 Fujitsu Ltd Information processor containing printer
US5392037A (en) 1991-05-21 1995-02-21 Matsushita Electric Industrial Co., Ltd. Method and apparatus for encoding and decoding
US5241383A (en) * 1992-05-13 1993-08-31 Bell Communications Research, Inc. Pseudo-constant bit rate video coding with quantization parameter adjustment
FR2697393A1 (en) 1992-10-28 1994-04-29 Philips Electronique Lab Device for coding digital signals representative of images, and corresponding decoding device.
JPH06284412A (en) * 1993-03-26 1994-10-07 Sony Corp Picture signal coding method and picture signal coder, picture signal decoding method and picture signal decoder and picture signal recording medium
KR950010632A (en) * 1993-09-17 1995-04-28 배순훈 Video encoder
KR0178195B1 (en) * 1995-03-28 1999-05-01 배순훈 Apparatus for encoding an image signal using vector quantization technique
EP0777387B1 (en) 1995-12-06 2003-08-13 Harman/Becker Automotive Systems (XSYS Division) GmbH Method and apparatus for encoding digital video signals
EP1113672B1 (en) 1997-02-08 2005-04-13 Matsushita Electric Industrial Co., Ltd. Quantization matrix for still and moving picture coding
JP4001969B2 (en) 1997-03-31 2007-10-31 ソニー株式会社 Encoding apparatus and method, and decoding apparatus and method
EP1788816A3 (en) * 1997-11-05 2008-10-15 Sony Corporation Transform domain interpolation for resolution conversion of coded video data
JP3711762B2 (en) 1998-09-16 2005-11-02 富士ゼロックス株式会社 Image coding apparatus and method
JP4099682B2 (en) 1998-09-18 2008-06-11 ソニー株式会社 Image processing apparatus and method, and recording medium
DE60130180T2 (en) 2000-04-14 2008-05-15 Sony Corp. PROCESSES FOR CODING AND DECODING, RECORDING MEDIUM AND PROGRAM
US7082163B2 (en) * 2000-11-20 2006-07-25 Matsushita Electric Industrial Co., Ltd. Picture coding method, picture coding apparatus and image relaying apparatus
US7388995B2 (en) 2003-05-21 2008-06-17 Silicon Integrated Systems Corp. Quantization matrix adjusting method for avoiding underflow of data
US7391916B2 (en) * 2003-05-21 2008-06-24 Silicon Integrated Systems Corp. Quantization matrix adjusting method for quality improvement

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02216917A (en) * 1988-11-11 1990-08-29 Matsushita Electric Ind Co Ltd Coding/decoding method
JPH04343576A (en) * 1991-05-21 1992-11-30 Matsushita Electric Ind Co Ltd Highly efficient coding and decoding method
JPH05235778A (en) * 1992-02-21 1993-09-10 Matsushita Electric Ind Co Ltd High efficiency coding method
JPH1188880A (en) * 1997-02-08 1999-03-30 Matsushita Electric Ind Co Ltd Quantization matrix for still picture and moving image
JP2001258029A (en) * 2000-03-10 2001-09-21 Matsushita Electric Ind Co Ltd Method and system for dynamically displaying residue coefficient

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008517495A (en) * 2004-10-13 2008-05-22 エレクトロニクス アンド テレコミュニケーションズ リサーチ インスチチュート LASeR binary representation point sequence encoding / decoding method and apparatus
JP4727669B2 (en) * 2004-10-13 2011-07-20 エレクトロニクス アンド テレコミュニケーションズ リサーチ インスチチュート LASeR binary representation point sequence encoding / decoding method and apparatus
US9369718B2 (en) 2009-10-30 2016-06-14 Sun Patent Trust Decoding method, decoding apparatus, coding method, and coding apparatus using a quantization matrix
WO2011052215A1 (en) * 2009-10-30 2011-05-05 パナソニック株式会社 Decoding method, decoder apparatus, encoding method, and encoder apparatus
US9467710B2 (en) 2009-10-30 2016-10-11 Sun Patent Trust Image decoding method, image coding method, image decoding apparatus, image coding apparatus, program, and integrated circuit
WO2011052217A1 (en) * 2009-10-30 2011-05-05 パナソニック株式会社 Image decoding method, image encoding method, image decoding device, image encoding device, programs, and integrated circuits
US10630997B2 (en) 2009-10-30 2020-04-21 Sun Patent Trust Image decoding method, image coding method, image decoding apparatus, image coding apparatus, program, and integrated circuit
EA021750B1 (en) * 2009-10-30 2015-08-31 Панасоник Интеллекчуал Проперти Корпорэйшн оф Америка Decoding method, decoder apparatus, encoding method, and encoder apparatus
JP2011139116A (en) * 2009-12-25 2011-07-14 Nec Corp Information compression device, information restoration device, method of compressing information, method of restoring information, and information restoration processing program
JP2012049087A (en) * 2010-08-30 2012-03-08 Toshiba Corp Secondary battery device and vehicle
WO2012096156A1 (en) * 2011-01-12 2012-07-19 パナソニック株式会社 Image encoding method, image decoding method, image encoding device, and image decoding device
US10165287B2 (en) 2011-11-07 2018-12-25 Canon Kabushiki Kaisha Image coding apparatus, image coding method, image decoding apparatus, image decoding method, and storage medium
JP2019097208A (en) * 2011-11-07 2019-06-20 キヤノン株式会社 Image coding apparatus, image coding method and program; and image decoding apparatus, image decoding method and program
JP2019075836A (en) * 2011-11-07 2019-05-16 キヤノン株式会社 Image encoding device, image encoding method and program, and image decoding device, image decoding method and program
JP2017073837A (en) * 2011-11-07 2017-04-13 キヤノン株式会社 Image encoder, image encoding method and program, image decoder, image decoding method and program
JP2018121355A (en) * 2011-11-07 2018-08-02 キヤノン株式会社 Image encoding apparatus, image encoding method and program, image decoding apparatus, image decoding method, and program
US10455234B2 (en) 2012-04-16 2019-10-22 Electronics And Telecommunications Research Institute Method and device for encoding/decoding image
US10455232B2 (en) 2012-04-16 2019-10-22 Electronics And Telecommunications Research Institute Method and device for encoding/decoding image
US11553183B2 (en) 2012-04-16 2023-01-10 Electronics And Telecommunications Research Institute Method and device for encoding/decoding image
US9571841B2 (en) 2012-04-16 2017-02-14 Electronics And Telecommunications Research Institute Method and device for encoding/decoding image
US10448018B2 (en) 2012-04-16 2019-10-15 Electronics And Telecommunications Research Institute Method and device for encoding/decoding image
JP2015516754A (en) * 2012-04-16 2015-06-11 エレクトロニクス アンド テレコミュニケーションズ リサーチ インスチチュートElectronics And Telecommunications Research Institute Video encoding / decoding method and apparatus
US10455233B2 (en) 2012-04-16 2019-10-22 Electronics And Telecommunications Research Institute Method and device for encoding/decoding image
US10057579B2 (en) 2012-04-16 2018-08-21 Electronics And Telecommunications Research Institute Method and device for encoding/decoding image
US10477213B2 (en) 2012-04-16 2019-11-12 Electronics And Telecommunications Research Institute Method and device for encoding/decoding image
US10924742B2 (en) 2012-04-16 2021-02-16 Electronics And Telecommunications Research Institute Method and device for encoding/decoding image
JP2014011482A (en) * 2012-06-27 2014-01-20 Canon Inc Image encoder, image encoding method and program, image decoder, image decoding method and program
JP2021179627A (en) * 2013-05-24 2021-11-18 ドルビー・インターナショナル・アーベー Audio encoder and decoder
US11594233B2 (en) 2013-05-24 2023-02-28 Dolby International Ab Audio encoder and decoder
JP7258086B2 (en) 2013-05-24 2023-04-14 ドルビー・インターナショナル・アーベー Audio encoder and decoder
JP2017060177A (en) * 2016-11-08 2017-03-23 キヤノン株式会社 Image encoding apparatus, image encoding method, and program

Also Published As

Publication number Publication date
JP5249363B2 (en) 2013-07-31
US7912122B2 (en) 2011-03-22
US7995650B2 (en) 2011-08-09
WO2005072312A8 (en) 2006-07-20
CN101695132A (en) 2010-04-14
KR20110082090A (en) 2011-07-15
WO2005072312A2 (en) 2005-08-11
CN101695132B (en) 2012-06-27
EP3869802A1 (en) 2021-08-25
KR101082233B1 (en) 2011-11-09
EP1665133A4 (en) 2009-05-13
US20070292039A1 (en) 2007-12-20
JP4705921B2 (en) 2011-06-22
KR20070026289A (en) 2007-03-08
US20110110423A1 (en) 2011-05-12
KR101169895B1 (en) 2012-07-31
WO2005072312A3 (en) 2006-01-19
EP1665133A2 (en) 2006-06-07
JP2011101420A (en) 2011-05-19

Similar Documents

Publication Publication Date Title
JP5249363B2 (en) Quantization matrix encoding method and moving image encoding apparatus
JP5627762B2 (en) Image encoding / decoding device
JP5242719B2 (en) Image coding method
JP4348209B2 (en) Image encoding method and image decoding method
JP5085671B2 (en) Decoding system and decoding apparatus
KR20040105547A (en) Moving picture encoding method and moving picture decoding method
JP2004242286A (en) Motion picture encoding method and motion picture decoding method
JP4481612B2 (en) Image decoding apparatus and method
JP4481970B2 (en) Image encoding apparatus and method
JP2004120138A (en) Moving picture coding method and moving picture decoding method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080118

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080118

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101214

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110120

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110314

R150 Certificate of patent or registration of utility model

Ref document number: 4705921

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