JP2012191247A - Moving image encoding device and moving image encoding method - Google Patents

Moving image encoding device and moving image encoding method Download PDF

Info

Publication number
JP2012191247A
JP2012191247A JP2011050392A JP2011050392A JP2012191247A JP 2012191247 A JP2012191247 A JP 2012191247A JP 2011050392 A JP2011050392 A JP 2011050392A JP 2011050392 A JP2011050392 A JP 2011050392A JP 2012191247 A JP2012191247 A JP 2012191247A
Authority
JP
Japan
Prior art keywords
code string
image
coefficient
generated
residual
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.)
Withdrawn
Application number
JP2011050392A
Other languages
Japanese (ja)
Inventor
Seishi Abe
清史 安倍
Kazuhito Kimura
一仁 木村
Hideyuki Okose
秀之 大古瀬
Hiroshi Arakawa
博 荒川
Tatsuro Shigesato
達郎 重里
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
Original Assignee
Panasonic Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp filed Critical Panasonic Corp
Priority to JP2011050392A priority Critical patent/JP2012191247A/en
Publication of JP2012191247A publication Critical patent/JP2012191247A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a moving image encoding device with pipeline structure capable of reducing a generated code amount for each block to a specific maximum value or less without tracing the pipeline back.SOLUTION: A moving image encoding device 100 according to the invention allows in a header code string generation unit 107 to perform variable length encoding, at all time, on encoding information determined at the time of performing normal encoding processing on an encoding object block as header information, and in a coefficient code string generation unit 108 to perform processing by switching between a function of performing variable length encoding on residual coefficient information generated by normal encoding processing and a function of describing a reconstructed image in a code string without performing variable length encoding thereto.

Description

本発明は、入力された動画像をブロックに分割して符号化する画像符号化装置および画像符号化方法に関するものである。   The present invention relates to an image encoding device and an image encoding method for encoding an input moving image by dividing it into blocks.

近年、マルチメディアアプリケーションの発展に伴い、画像、音声及びテキストなど、あらゆるメディアの情報を統一的に扱うことが一般的になってきた。また、ディジタル化された画像は膨大なデータ量を持つため、蓄積及び伝送のためには、画像の情報圧縮技術が不可欠である。一方で、圧縮した画像データを相互運用するためには、圧縮技術の標準化も重要である。例えば、画像圧縮技術の標準規格としては、ITU−T(国際電気通信連合 電気通信標準化部門)のH.261、H.263、H.264、ISO/IEC(国際標準化機構)のMPEG−1、MPEG−3、MPEG−4、MPEG−4AVCなどがある。また、現在は、ITU−TとISO/IECとの共同によるHEVCと呼ばれる次世代画面符号化方式の標準化活動が進んでいる。   In recent years, with the development of multimedia applications, it has become common to handle all media information such as images, sounds and texts in a unified manner. Also, since a digitized image has a huge amount of data, an image information compression technique is indispensable for storage and transmission. On the other hand, in order to interoperate compressed image data, standardization of compression technology is also important. For example, as a standard for image compression technology, ITU-T (International Telecommunication Union Telecommunication Standardization Sector) 261, H.H. 263, H.M. H.264, ISO / IEC (International Organization for Standardization) MPEG-1, MPEG-3, MPEG-4, MPEG-4AVC, and the like. At present, standardization activities for a next-generation screen coding method called HEVC in cooperation with ITU-T and ISO / IEC are in progress.

このような動画像の符号化では、符号化対象の各ピクチャを符号化単位ブロックに分割し、ブロック毎に時間方向および空間方向の冗長性を削減することによって情報量の圧縮を行う。時間的な冗長性の削減を目的とする画面間予測符号化では、前方または後方のピクチャを参照してブロック単位で動きの検出および予測画像の作成を行い、得られた予測画像と符号化対象のブロックとの差分画像を取得する。また空間的な冗長性の削減を目的とする画面内予測符号化では、周辺の符号化済みブロックの画素情報をから予測画像の生成を行い、得られた予測画像と符号化対象のブロックとの差分画像を取得する。さらに得られた差分画像に対して離散コサイン変換等の直交変換および量子化を行い、可変長符号化を用いて符号列を生成することで情報量が圧縮される。   In such moving picture coding, each picture to be coded is divided into coding unit blocks, and the amount of information is compressed by reducing redundancy in the time direction and the spatial direction for each block. In inter-frame predictive coding for the purpose of reducing temporal redundancy, motion is detected and a predicted image is created in block units with reference to the front or rear picture, and the resulting predicted image and encoding target are obtained. The difference image with the block of is acquired. In addition, in the intra prediction encoding for the purpose of reducing spatial redundancy, a prediction image is generated from pixel information of surrounding encoded blocks, and the obtained prediction image and a block to be encoded are obtained. Get the difference image. Further, orthogonal transformation such as discrete cosine transformation and quantization are performed on the obtained difference image, and a code string is generated using variable length coding, thereby compressing the information amount.

また復号化では、前記符号化処理によって生成された符号列を解析して予測情報および残差係数情報を取得し、予測情報を用いて画面間予測復号化および画面内予測復号化を行って予測画像を生成し、残差係数情報に対して逆量子化および逆直交変換を行って差分画像を生成し、得られた予測画像と差分画像を加算することで最終的な出力画像を復元する。   In decoding, prediction information and residual coefficient information are obtained by analyzing the code string generated by the encoding process, and prediction is performed by performing inter-screen prediction decoding and intra-screen prediction decoding using the prediction information. An image is generated, a difference image is generated by performing inverse quantization and inverse orthogonal transform on the residual coefficient information, and a final output image is restored by adding the obtained predicted image and the difference image.

H.264(非特許文献1)では、ブロック単位の処理量の上限を制約するために、ブロック単位の発生符号量の最大値が定義されている(具体的には3200ビット)。前述の通常の符号化処理を行うと、入力画像の性質や量子化処理の条件によって前記発生符号量の最大値を超過した符号列を生成してしまう可能性があるため、IPCMと呼ばれる特別な符号化モードを使用することによって常に最大値内に納めることを可能としている。   H. In H.264 (Non-Patent Document 1), in order to restrict the upper limit of the processing amount in block units, the maximum value of the generated code amount in block units is defined (specifically, 3200 bits). If the normal encoding process described above is performed, a code string exceeding the maximum value of the generated code amount may be generated depending on the properties of the input image and the conditions of the quantization process. By using the encoding mode, it is possible to always keep within the maximum value.

IPCMは通常の符号化モードとは異なり、画面内・画面間予測による差分画像の生成や直交変換・量子化を行うことなく、入力画像の画素値をそのままのビット列として符号列に記述するモードである。このモードを使用すると、例えば入力画像のフォーマットが各画素8ビットのYUV4:2:0であった場合、輝度成分のブロックが16×16画素、2つの色差成分のブロックがそれぞれ8×8画素であるため、合計で384バイトとなり、ヘッダに必要な情報を含めても前記最大値の3200ビット以下に必ず納めることが可能となる。   Unlike the normal encoding mode, IPCM is a mode in which pixel values of an input image are described in a code string as they are as a bit string without generating a difference image by intra-screen / inter-screen prediction, or performing orthogonal transform / quantization. is there. Using this mode, for example, if the format of the input image is YUV 4: 2: 0 with 8 bits per pixel, the luminance component block is 16 × 16 pixels, and the two color difference component blocks are 8 × 8 pixels respectively. Therefore, the total is 384 bytes, and even if necessary information is included in the header, it can be surely stored within the maximum value of 3200 bits.

ITU-T H.264 : Advanced video coding for generic audiovisual services (03/2010)ITU-T H.264: Advanced video coding for generic audiovisual services (03/2010)

多くの動画像符号化・復号化装置はLSIと呼ばれる集積回路によって符号化・復号化処理を実現している。このような符号化・復号化装置では処理高速化のためにパイプラインと呼ばれる並列動作を可能とする構成を取っている。具体的には1つのブロックの処理が完了する前に次のブロックの処理を開始することで同時に処理が進行する。   Many moving image encoding / decoding devices realize encoding / decoding processing by an integrated circuit called LSI. Such an encoding / decoding device has a configuration that enables a parallel operation called a pipeline in order to increase processing speed. Specifically, the processing proceeds simultaneously by starting the processing of the next block before the processing of one block is completed.

図3(a)に符号化におけるパイプラインの例を示す。ブロック1に対して、画素読込み、モード判定、画面間/内予測、変換/量子化、可変長符号化、の各処理が順に適用され、ブロック2に対しても同様の処理が適用されている。このとき、ブロック2はブロック1の画素読込みが完了した時点で直ぐに処理を開始することで、処理タイミングを1ステップずつ遅らせながら並行して処理を行う。H.264やHEVCの符号化・復号化処理では過去に符号化・復号化したブロックの情報を参照しながら処理が行われるため、図にあるようにブロック1で確定した予測情報、画素情報、符号化情報等をブロック2が参照しながら処理を行う必要がある。   FIG. 3A shows an example of a pipeline in encoding. The processing of pixel reading, mode determination, inter-screen / intra prediction, transform / quantization, and variable-length encoding is sequentially applied to block 1, and the same processing is applied to block 2. . At this time, the block 2 starts the processing immediately after the pixel reading of the block 1 is completed, thereby performing the processing in parallel while delaying the processing timing by one step. H. In the H.264 and HEVC encoding / decoding processes, processing is performed with reference to information of blocks previously encoded / decoded, so that prediction information, pixel information, encoding determined in block 1 as shown in the figure It is necessary to perform processing while the block 2 refers to information and the like.

しかし、前述のブロック単位の発生符号量が最大値以下に納められているかどうかは、可変長符号化が完了した時点での符号量を調べないと判断できないため、もし最大値を超過すると判定された場合はその時点でIPCMに切替えて符号列を生成し直さなくてはならない。   However, since it is not possible to determine whether or not the generated code amount for each block is below the maximum value unless the code amount at the time of completion of variable-length coding is checked, it is determined that the maximum value is exceeded. In such a case, the code string must be regenerated by switching to the IPCM at that time.

図3(b)にIPCMへの切替えが発生した場合のパイプラインの例を示す。ブロック1の可変長符号化処理においてIPCMへ切替えることが確定しているが、既にブロック2はブロック1が通常の符号化を行った場合の予測情報、画素情報等を参照しながら符号化処理が進行してしまっているため、ブロック1のモード判定まで戻って、ブロック1がIPCMで符号化した前提に置き直して参照する情報を更新してブロック2の処理をやり直さなくてはならない。   FIG. 3B shows an example of a pipeline when switching to IPCM occurs. Although it has been determined that switching to IPCM is performed in the variable length encoding process of block 1, the encoding process has already been performed for block 2 while referring to prediction information, pixel information, and the like when block 1 performs normal encoding. Since the process has progressed, it is necessary to return to the block 1 mode determination, update the information to be referred to by replacing the assumption that the block 1 is encoded with the IPCM, and repeat the process of the block 2.

このようにパイプラインを遡る制御は非常に複雑な処理制御が必要となり、また対象ピクチャ内でIPCMが多数発生して遡る回数が増加するとそれだけ処理速度遅延の原因となり、要求時間内に対象ピクチャの符号化処理を完了できなくなってしまう。   In this way, the control going back in the pipeline requires very complicated processing control, and when the number of IPCMs that occur in the target picture increases and the number of times that it goes back increases, it causes a processing speed delay. The encoding process cannot be completed.

本発明は上記課題を解決するものであり、パイプライン構造を持つ符号化装置において、パイプラインを遡ることなくブロック単位の発生符号量を特定の最大値以下に納めることを可能とする、従来のIPCMに代わる符号化方法を提供することを目的とする。   The present invention solves the above-mentioned problem, and in a coding apparatus having a pipeline structure, it is possible to keep the generated code amount in block units below a specific maximum value without going back through the pipeline. It is an object of the present invention to provide an encoding method that replaces the IPCM.

本発明における動画像符号化装置は、入力される動画像をブロック単位で符号化する動画像符号化装置であって、符号化対象画像に対応する予測画像を生成する予測画像生成部と、前記符号化対象画像と前記生成された予測画像との差分画像を生成する減算器と、前記減算器の出力に対して直交変換処理および量子化処理を行い、残差係数を生成する予測残差符号化部と、前記残差係数に対して逆量子化処理および逆直交変換処理を行い、残差復号化画像を生成する予測残差復号化部と、前記予測画像生成部で生成された予測画像と前記予測残差復号化部で生成された残差復号化画像とを加算することで再構成画像を生成する加算器と、前記予測画像を生成する際に利用した予測情報を少なくとも含むヘッダ情報を生成するヘッダ符号列生成部と、第1モードにおいて、前記予測残差符号化部で生成された残差係数を可変長符号化して第1係数符号列を生成し、前記係数符号列に前記ヘッダ情報生成部で生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する一方、第2モードにおいて、前記加算器で生成された再構成画像を可変長符号することなく、前記再構成画像をそのまま係数符号列とし、前記係数符号列に前記ヘッダ情報生成部で生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する係数符号列生成部と、を備える。   The moving image encoding device according to the present invention is a moving image encoding device that encodes an input moving image in units of blocks, and includes a predicted image generation unit that generates a predicted image corresponding to an encoding target image; A subtractor that generates a difference image between the encoding target image and the generated predicted image, and a prediction residual code that generates an orthogonal coefficient by performing orthogonal transform processing and quantization processing on the output of the subtractor A prediction residual decoding unit that generates a residual decoded image by performing inverse quantization processing and inverse orthogonal transformation processing on the residual coefficient, and a prediction image generated by the prediction image generation unit And an adder that generates a reconstructed image by adding the residual decoded image generated by the prediction residual decoding unit, and header information including at least prediction information used when generating the predicted image Header code string generation to generate In the first mode, the residual coefficient generated by the prediction residual encoding unit is variable-length encoded to generate a first coefficient code string, and the coefficient code string is generated by the header information generation unit While the header information is associated, the coefficient code string and the header information are output, and in the second mode, the reconstructed image is generated without performing variable length coding on the reconstructed image generated by the adder. A coefficient code string as it is, and a coefficient code string generator that outputs the coefficient code string and the header information in a state where the coefficient code string is associated with the header information generated by the header information generator.

また本発明における動画像符号化装置は、入力される動画像をブロック単位で符号化する動画像符号化装置であって、符号化対象画像に対応する予測画像を生成する予測画像生成部と、前記符号化対象画像と前記生成された予測画像との差分画像を生成する減算器と、前記減算器の出力に対して直交変換処理および量子化処理を行い、残差係数を生成する予測残差符号化部と、前記残差係数に対して逆量子化処理および逆直交変換処理を行い、残差復号化画像を生成する予測残差復号化部と、前記予測画像生成部で生成された予測画像と前記予測残差復号化部で生成された残差復号化画像とを加算することで再構成画像を生成する加算器と、前記予測画像を生成する際に利用した予測情報を少なくとも含むヘッダ情報を生成するヘッダ符号列生成部と、第1モードにおいて、前記予測残差符号化部で生成された残差係数を可変長符号化して係数符号列を生成し、前記係数符号列に前記ヘッダ情報生成部で生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する一方、第2モードにおいて、前記符号化対象画像を可変長符号することなく、前記符号化対象画像をそのまま係数符号列とし、前記係数符号列に前記ヘッダ情報生成部で生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する係数符号列生成部と、を備える。   Further, the moving image encoding apparatus according to the present invention is a moving image encoding apparatus that encodes an input moving image in units of blocks, and a predicted image generating unit that generates a predicted image corresponding to an encoding target image; A subtractor that generates a difference image between the encoding target image and the generated predicted image; and a prediction residual that generates a residual coefficient by performing orthogonal transform processing and quantization processing on the output of the subtractor An encoding unit, a prediction residual decoding unit that performs an inverse quantization process and an inverse orthogonal transform process on the residual coefficient to generate a residual decoded image, and a prediction generated by the prediction image generation unit An adder that generates a reconstructed image by adding the image and the residual decoded image generated by the prediction residual decoding unit, and a header that includes at least prediction information used when generating the predicted image Header code string that generates information In the generating unit and the first mode, the residual coefficient generated by the prediction residual encoding unit is variable-length encoded to generate a coefficient code string, and the coefficient code string is generated by the header information generating unit While the header information is associated, the coefficient code string and the header information are output, and in the second mode, the encoding target image is directly converted into the coefficient code string without performing variable length encoding on the encoding target image. And a coefficient code string generation unit that outputs the coefficient code string and the header information in a state in which the header information generated by the header information generation unit is associated with the coefficient code string.

また好ましくは、前記係数符号列生成部は、前記係数符号列および前記ヘッダ情報に、前記再構成画像をそのまま係数符号列としたか否かを示す識別子を対応付けた状態で、前記係数符号列、前記ヘッダ情報および前記識別子を出力する。   Preferably, the coefficient code string generation unit associates the coefficient code string and the header information with an identifier indicating whether or not the reconstructed image is directly used as a coefficient code string. The header information and the identifier are output.

また好ましくは、前記係数符号列生成部は、前記係数符号列および前記ヘッダ情報に、前記符号化対象画像をそのまま係数符号列としたか否かを示す識別子を対応付けた状態で、前記係数符号列、前記ヘッダ情報および前記識別子を出力する。   Preferably, the coefficient code string generation unit associates the coefficient code string and the header information with an identifier indicating whether or not the encoding target image is directly used as a coefficient code string. The column, the header information, and the identifier are output.

また好ましくは、前記係数符号列生成部は、出力結果である出力符号列のうち、前記出力符号列を復号化する動画像復号化装置において前記係数符号列を復号化処理する前に処理する位置に、前記識別子を格納する。   Preferably, the coefficient code string generation unit performs processing before decoding the coefficient code string in the moving picture decoding apparatus that decodes the output code string, of the output code string that is the output result. In the above, the identifier is stored.

また好ましくは、前記識別しは、前記第1モードにおける係数符号列および前記第2モードにおける係数符号列で共通で使用される識別子であり、当該識別子情報のうち1つは、前記第1モードにおける係数符号列として符号化したことを示すものであり、また別の1つは、前記第2モードにおける係数符号列として符号化したことを示し、かつ符号化した残差係数があるかないかを示すものである。   Further preferably, the identification is an identifier used in common in the coefficient code string in the first mode and the coefficient code string in the second mode, and one of the identifier information is in the first mode. It indicates that it has been encoded as a coefficient code string, and another one indicates that it has been encoded as a coefficient code string in the second mode, and indicates whether or not there is an encoded residual coefficient. Is.

また好ましくは、前記係数符号列生成部は、出力する符号列の前記ブロック全体における符号量が、特定の大きさを超過する可能性がある場合、前記第2モードを用いて符号列を出力する。   Preferably, the coefficient code string generation unit outputs the code string using the second mode when there is a possibility that the code amount in the entire block of the code string to be output exceeds a specific size. .

また好ましくは、前記係数符号列生成部は、前記第1モードで符号列を出力した結果、当該符号列の前記ブロック全体における符号量が特定の大きさを超過した場合、当該第1モードで生成した符号列に代えて、前記第2モードを用いて生成した符号列を出力する。   Preferably, the coefficient code string generation unit generates the code string in the first mode when the code amount in the entire block of the code string exceeds a specific size as a result of outputting the code string in the first mode. Instead of the code string, the code string generated using the second mode is output.

なお、本発明は、このような動画像符号化・復号化装置として実現することができるだけでなく、このような動画像符号化・復号化装置に含まれる各手段と同等の処理をプログラムや集積回路としても実現することもできる。   Note that the present invention can be realized not only as such a moving image encoding / decoding device, but also as a program or an integrated process equivalent to each unit included in such a moving image encoding / decoding device. It can also be realized as a circuit.

以上より、本発明における動画像符号化装置は、パイプライン構造を用いて符号化方法を実現した場合でも、符号化対象ブロックに後続するブロックが参照する情報は常に通常符号化を行った場合の情報を使用することができるため、パイプラインを遡ることなく符号化処理を継続することが可能となり、処理速度の遅延もしくは処理量を増加させることなく、ブロック単位の発生符号量を特定の最大値以下に納めることが可能となる。   As described above, the moving image encoding apparatus according to the present invention is the case where the information referred to by the block subsequent to the encoding target block is always normally encoded even when the encoding method is realized using the pipeline structure. Since the information can be used, it is possible to continue the encoding process without going back in the pipeline, and the generated code amount for each block can be set to a specific maximum value without delaying the processing speed or increasing the processing amount. The following can be made.

また、本発明における動画像復号化装置は、対応する符号列を生成する動画像符号化装置において、符号化対象ブロックに後続するブロックが参照する情報は常に通常符号化を行った場合の情報を使用することができるため、パイプラインを遡ることなく符号化処理を継続することが可能となり、処理速度の遅延もしくは処理量を増加させることなく、ブロック単位の発生符号量を特定の最大値以下に納めることが可能となる。   In the moving picture decoding apparatus according to the present invention, in the moving picture encoding apparatus that generates a corresponding code string, information referred to by a block subsequent to the encoding target block is always information obtained when normal encoding is performed. Because it can be used, it is possible to continue the encoding process without going back in the pipeline, and the generated code amount per block can be kept below the specified maximum value without increasing the processing speed or increasing the processing amount. It becomes possible to pay.

本実施形態1に係る動画像符号化装置を示すブロック図である。It is a block diagram which shows the moving image encoder which concerns on this Embodiment 1. 本実施形態3に係る動画像復号化装置を示すブロック図である。It is a block diagram which shows the moving image decoding apparatus which concerns on this Embodiment 3. 従来の動画像符号化装置のパイプライン制御を説明するための概念図である。It is a conceptual diagram for demonstrating the pipeline control of the conventional moving image encoder. 本実施形態1に係る符号列生成処理のフローチャートである。3 is a flowchart of a code string generation process according to the first embodiment. 本実施形態によって生成される符号列のシンタックスの一例を説明するための概念図である。It is a conceptual diagram for demonstrating an example of the syntax of the code sequence produced | generated by this embodiment. 本実施形態によって生成される符号列のシンタックスの別の一例を説明するための概念図である。It is a conceptual diagram for demonstrating another example of the syntax of the code sequence produced | generated by this embodiment. 本実施形態によって生成される符号列のシンタックスの別の一例を説明するための概念図である。It is a conceptual diagram for demonstrating another example of the syntax of the code sequence produced | generated by this embodiment. 本実施形態1に係る動画像符号化装置のパイプライン制御を説明するための概念図である。It is a conceptual diagram for demonstrating the pipeline control of the moving image encoder which concerns on this Embodiment 1. FIG. 本実施形態2に係る動画像符号化装置を示すブロック図である。It is a block diagram which shows the moving image encoder which concerns on this Embodiment 2. 本実施形態2に係る符号列生成処理のフローチャートである。10 is a flowchart of a code string generation process according to the second embodiment. 本実施形態2に係る動画像符号化装置のパイプライン制御を説明するための概念図である。It is a conceptual diagram for demonstrating the pipeline control of the moving image encoder which concerns on this Embodiment 2. FIG. 本実施形態3に係る符号列解析処理のフローチャートである。10 is a flowchart of code string analysis processing according to the third embodiment.

(実施の形態1)
以下、本実施形態1について、図面を参照しながら説明する。
(Embodiment 1)
Hereinafter, the first embodiment will be described with reference to the drawings.

図1は、本実施形態に係る動画像符号化装置100のブロック図である。動画像符号化装置100は、ピクチャ単位で入力された動画像をブロックに分割し、ブロック単位で符号化処理を行い符号列を生成する。   FIG. 1 is a block diagram of a video encoding apparatus 100 according to this embodiment. The moving image encoding apparatus 100 divides a moving image input in units of pictures into blocks, performs an encoding process in units of blocks, and generates a code string.

この動画像符号化装置100は、ピクチャメモリ101と、予測残差符号化部102と、予測残差復号化部103と、ローカルバッファ104と、予測符号化部105と、量子化値決定部106と、ヘッダ符号列生成部107と、係数符号列生成部108とを備えている。   The moving picture encoding apparatus 100 includes a picture memory 101, a prediction residual encoding unit 102, a prediction residual decoding unit 103, a local buffer 104, a prediction encoding unit 105, and a quantization value determination unit 106. A header code string generation unit 107 and a coefficient code string generation unit 108.

ピクチャメモリ101は、表示を行う順にピクチャ単位で入力される入力画像信号151を、符号化を行う順にピクチャの並び替えを行って蓄積する。次に、ピクチャメモリ101は、差分演算部109または予測符号化部105からの読出し命令を受け付けると当該読出し命令に係る画像信号をそれぞれ出力する。このとき、各々のピクチャはコーディングユニット(CU)と呼ばれる複数の画素から構成される符号化単位に分割される。このCUは、例えば水平64×垂直64画素のブロック、水平32×垂直32画素のブロック、水平16×垂直16画素のブロックから成る。なお、本実施形態における動画像符号化装置100では、CU単位で以降の処理が行われる。   The picture memory 101 stores the input image signal 151 input in units of pictures in the order of display by rearranging the pictures in the order of encoding. Next, when the picture memory 101 receives a read command from the difference calculation unit 109 or the predictive coding unit 105, the picture memory 101 outputs an image signal related to the read command. At this time, each picture is divided into coding units composed of a plurality of pixels called coding units (CUs). This CU includes, for example, a horizontal 64 × vertical 64 pixel block, a horizontal 32 × vertical 32 pixel block, and a horizontal 16 × vertical 16 pixel block. In the moving picture encoding apparatus 100 according to the present embodiment, the subsequent processing is performed in units of CUs.

予測残差符号化部102は、差分演算部109から出力される差分画像信号152に対して直交変換を行う。さらに得られた各周波数成分の直交変換係数に対し量子化を行うことで画像情報の圧縮を行い、残差符号化信号153を生成する。予測残差符号化部102は、生成した残差符号化信号153を予測残差復号化部103および係数符号列生成部108に出力する。なお、予測残差符号化部102は、量子化値決定部106において決定された量子化値信号158を用いて、直交変換係数を量子化する。   The prediction residual encoding unit 102 performs orthogonal transformation on the difference image signal 152 output from the difference calculation unit 109. Further, image information is compressed by performing quantization on the obtained orthogonal transform coefficient of each frequency component, and a residual encoded signal 153 is generated. The prediction residual encoding unit 102 outputs the generated residual encoded signal 153 to the prediction residual decoding unit 103 and the coefficient code string generation unit 108. Note that the prediction residual encoding unit 102 quantizes the orthogonal transform coefficient using the quantized value signal 158 determined by the quantized value determining unit 106.

予測残差復号化部103は、予測残差符号化部102から出力される残差符号化信号153に対して、逆量子化および逆直交変換することで差分画像情報の復元を行う。そして、生成した残差復号化信号154を加算演算部110に出力する。   The prediction residual decoding unit 103 restores the difference image information by performing inverse quantization and inverse orthogonal transformation on the residual encoded signal 153 output from the prediction residual encoding unit 102. Then, the generated residual decoded signal 154 is output to the addition operation unit 110.

ローカルバッファ104は、加算演算部110から出力される再構成画像信号155を格納する。この再構成画像信号155は、現在符号化対象となっているピクチャ以降のピクチャの符号化における予測符号化処理に用いられる。つまり、再構成画像信号155は、現状符号化対象となっているピクチャ以降のピクチャを符号化する際、画素データとして参照される。ローカルバッファ104は、予測符号化部105からの読出し命令に応じて、格納する再構成画像信号155を画素データとして予測符号化部105出力する。   The local buffer 104 stores the reconstructed image signal 155 output from the addition operation unit 110. The reconstructed image signal 155 is used for predictive coding processing in coding of a picture subsequent to a picture that is currently being coded. That is, the reconstructed image signal 155 is referred to as pixel data when a picture after the current picture to be encoded is encoded. In response to the read command from the predictive encoding unit 105, the local buffer 104 outputs the stored reconstructed image signal 155 as pixel data to the predictive encoding unit 105.

予測符号化部105は、ピクチャメモリ101から出力される画像信号を基に、画面内予測、または画面間予測を用いて予測画像信号156を生成する。そして、予測符号化部105は、生成した予測画像信号156を差分演算部109および加算演算部110に出力する。なお、予測符号化部105は、画面間予測を用いる際は、ローカルバッファ104に蓄積される既に符号化済みの過去のピクチャの再構成画像信号155を用いる。また予測符号化部105は、画面内予測を用いる際は、符号化対象CUに隣接する既に符号化済みのCUの現在のピクチャの再構成画像信号155を用いる。画面内予測を用いるか画面間予測を用いるかのモード判定方法については、どちらの予測方法がより残差信号の情報量を少なくすることができるかを予測して行われる。   The predictive coding unit 105 generates a predicted image signal 156 using intra prediction or inter prediction based on the image signal output from the picture memory 101. Then, the predictive coding unit 105 outputs the generated predicted image signal 156 to the difference calculation unit 109 and the addition calculation unit 110. Note that the prediction encoding unit 105 uses the reconstructed image signal 155 of a past picture that has already been encoded and stored in the local buffer 104 when using inter-screen prediction. Further, when using intra prediction, the predictive encoding unit 105 uses the reconstructed image signal 155 of the current picture of an already encoded CU adjacent to the encoding target CU. The mode determination method of using intra-screen prediction or inter-screen prediction is performed by predicting which prediction method can reduce the information amount of the residual signal.

量子化値決定部106は、ピクチャメモリ101に格納されるピクチャに基づいて、予測残差符号化部102において差分画像信号152を量子化する際の量子化値を設定する。量子化値決定部106は、設定した量子化値を予測残差符号化部102およびヘッダ符号列生成部107に出力する。なお、量子化値決定106における量子化値の設定方法は、符号列信号159のビットレートが目標とするするビットレートに近づくように量子化値を設定する、いわゆるレート制御に基づく量子化値の設定方法を利用しても構わない。   Based on the picture stored in the picture memory 101, the quantized value determining unit 106 sets a quantized value used when the prediction residual encoding unit 102 quantizes the difference image signal 152. The quantized value determination unit 106 outputs the set quantized value to the prediction residual encoding unit 102 and the header code string generation unit 107. Note that the quantization value setting method in the quantization value determination 106 is such that the quantization value is set so that the bit rate of the code string signal 159 approaches the target bit rate, that is, the quantization value based on so-called rate control. You may use the setting method.

ヘッダ符号列生成部107は、予測符号化部105が出力する予測情報信号157と、量子化値決定部106が出力する量子化値信号158と、その他の符号化制御に関する制御情報を可変長符号化することで符号列を生成する。なお、予測情報には、例えば画面内予測モード、画面間予測モード、動きベクトル、参照ピクチャを示す情報等が含まれる。また、制御情報は係数符号列生成部108における処理前までに取得可能な情報であって、CUの符号化時に適用した符号化条件を示す情報である。例えばブロック符号化タイプ、ブロック分割情報等が含まれる。   The header code string generation unit 107 is a variable-length code for the prediction information signal 157 output from the prediction encoding unit 105, the quantization value signal 158 output from the quantization value determination unit 106, and other control information related to encoding control. To generate a code string. Note that the prediction information includes, for example, information indicating an intra-screen prediction mode, an inter-screen prediction mode, a motion vector, a reference picture, and the like. The control information is information that can be acquired before the processing in the coefficient code string generation unit 108, and is information that indicates the encoding condition applied when the CU is encoded. For example, block coding type, block division information, and the like are included.

係数符号列生成部108は、予測残差符号化部102が出力する残差符号化信号153を可変長符号化して得られる符号列を、ヘッダ符号列生成部107が生成した符号列に続けて追記することで最終的な符号列信号159を生成する第1モードを有する。さらに、係数符号列生成部108は、加算演算部110から出力される再構成画像信号155を可変長符号化せずに得られる符号列を、ヘッダ符号列生成部107が生成した符号列に続けて追記することで最終的な符号列信号159を生成する第2モードを有する。   The coefficient code string generation unit 108 follows the code string generated by the header code string generation unit 107 after the code string generated by variable-length encoding the residual encoded signal 153 output from the prediction residual encoding unit 102. A first mode for generating a final code string signal 159 by additionally writing is provided. Further, the coefficient code string generation unit 108 continues the code string obtained without performing variable length coding on the reconstructed image signal 155 output from the addition calculation unit 110, following the code string generated by the header code string generation unit 107. And a second mode for generating a final code string signal 159 by additionally writing.

差分演算部109は、ピクチャメモリ101から読み出された画像信号と、予測符号化部105の出力である予測画像信号156との差分値である差分画像信号152を生成し、予測残差符号化部102に出力する。   The difference calculation unit 109 generates a difference image signal 152 that is a difference value between the image signal read from the picture memory 101 and the prediction image signal 156 that is the output of the prediction encoding unit 105, and performs prediction residual encoding. Output to the unit 102.

加算演算部110は、予測残差復号化部103から出力される残差復号化信号154と、予測符号化部105から出力される予測画像信号156とを加算することにより再構成画像信号155を生成し、ローカルバッファ104に出力する。   The addition operation unit 110 adds the residual decoded signal 154 output from the prediction residual decoding unit 103 and the predicted image signal 156 output from the prediction encoding unit 105, thereby adding the reconstructed image signal 155. Generate and output to the local buffer 104.

ここで、ヘッダ符号列生成部107および係数符号列生成部108において符号列信号を生成する方法について、図4のフローチャートを用いて具体的に説明する。   Here, a method for generating a code string signal in the header code string generation unit 107 and the coefficient code string generation unit 108 will be specifically described with reference to the flowchart of FIG.

まず、ヘッダ符号列生成部107は、前述の通常の符号化処理を行った結果生成された予測情報信号157、量子化値信号158、その他の符号化制御情報を入力として可変長符号化を行うことによってヘッダ情報の符号列を生成する(S401)。   First, the header code string generation unit 107 performs variable length encoding with the prediction information signal 157, the quantized value signal 158, and other encoding control information generated as a result of performing the normal encoding process described above as inputs. Thus, a code string of header information is generated (S401).

次に、係数符号列生成部108は、ステップS402において、入力された残差符号化信号153を用いて、符号化対象CUの発生符号量が規定値を超過する可能性があるかどうかを判定する。   Next, in step S402, the coefficient code string generation unit 108 uses the input residual encoded signal 153 to determine whether or not the generated code amount of the encoding target CU may exceed the specified value. To do.

ステップS402において、超過する可能性がないと判断された場合は、Residualモードとして係数が符号化されていることを示す識別子を符号化する(S403)。つづいて、従来の符号化と同様に入力された残差符号化信号153を可変長符号化する(Residualモード)ことで符号列を生成する(S404)。   When it is determined in step S402 that there is no possibility of exceeding, an identifier indicating that the coefficient is encoded as the Residual mode is encoded (S403). Subsequently, a code string is generated by variable-length encoding the input residual encoded signal 153 (Residual mode) in the same manner as in the conventional encoding (S404).

一方、ステップS402において、超過する可能性があると判断された場合は、PCMモードとして係数が符号化されていることを示す識別子を符号化する(S405)。つづいて、入力された再構成画像信号155を可変長符号化せずに画素のビットをそのまま符号列に追加する(PCMモード)ことで符号列を生成する(S406)。   On the other hand, if it is determined in step S402 that there is a possibility of exceeding, an identifier indicating that the coefficient is encoded as the PCM mode is encoded (S405). Subsequently, the input reconstructed image signal 155 is not subjected to variable length coding, and the bit of the pixel is added to the code string as it is (PCM mode) to generate a code string (S406).

なお、ここではステップS402において、入力された残差符号化信号153を用いて符号化対象CUの発生符号量が規定値を超過する可能性があるかどうかを判定しているが、それ以外の方法を用いて発生符号量が規定値を超過する可能性があるかどうかを判定してもよい。例えば、符号列信号159に基づいて符号量が既定値を超過しているか判定する方法がある。この場合、判定を行った時点で既に係数符号列生成部108から符号列が出力されているので、当該符号列において、残差符号化信号153を可変長符号化して得られ符号列に代えて、入力された再構成画像信号155が示す画素ビットの情報にそのまま置き換えることで処理がなされる。   Here, in step S402, it is determined whether or not the generated code amount of the CU to be encoded may exceed the specified value by using the input residual encoded signal 153. A method may be used to determine whether or not the generated code amount may exceed a specified value. For example, there is a method for determining whether the code amount exceeds a predetermined value based on the code string signal 159. In this case, since the code string has already been output from the coefficient code string generation unit 108 at the time of determination, in the code string, the residual encoded signal 153 is obtained by variable-length coding and replaced with the code string. Then, the processing is performed by directly replacing the pixel bit information indicated by the input reconstructed image signal 155.

また、CU単位で判定を行う代わりに、複数のCU単位、もしくは別のブロック単位で判定を行ってもよい。
(シンタックの説明)
図5は本実施の形態によって生成される符号列のCU単位のシンタックス:coding_unit()の一例を示した図である。
Further, instead of performing the determination in units of CUs, the determination may be performed in units of a plurality of CUs or another block.
(Description of syntax)
FIG. 5 is a diagram illustrating an example of the syntax of the CU unit of the code string generated by the present embodiment: coding_unit ().

シンタックスの先頭には、ヘッダ符号列生成部107によって生成された、予測モード:pred_mode、予測情報:prediction_unit()、量子化値:qp_value等の情報が符号化されている。   Information such as prediction mode: pred_mode, prediction information: prediction_unit (), quantization value: qp_value, and the like generated by the header code string generation unit 107 are encoded at the beginning of the syntax.

つづいて、図4で説明した識別子であるpcm_flagが符号化されている。この識別子が0のときはResidualモードによって係数符号列がResidual_data()で記述されていることを示す。また、識別子が1のときはPCMモードによって係数符号列がpcm_data()で記述されていることを示す。   Subsequently, the identifier pcm_flag described in FIG. 4 is encoded. When this identifier is 0, it indicates that the coefficient code string is described in Residual_data () in the Residual mode. Further, when the identifier is 1, it indicates that the coefficient code string is described in pcm_data () in the PCM mode.

図6は本実施の形態によって生成される符号列のCU単位のシンタックス:coding_unit()の別の一例を示した図である。図5で説明したシンタックスと異なるのは識別子としてpcm_flagの代わりにcbp_yuv_rootを用いている点のみである。   FIG. 6 is a diagram showing another example of the syntax of the CU unit: coding_unit () of the code string generated according to the present embodiment. The only difference from the syntax described in FIG. 5 is that cbp_yuv_root is used instead of pcm_flag as an identifier.

この識別子は、従来の符号化において輝度成分および色差成分毎に残差符号化信号があるかないかを示すために用いられていたものであり、0から7までに関しては従来通りの情報を持ち、Residualモードによって係数符号列がResidual_data()で記述されていることを示し、8のときはPCMモードによって係数符号列がpcm_data()で記述されていることを示す。つまり、従来利用されてきた0から7までの情報に8番目の情報を拡張する。   This identifier is used to indicate whether or not there is a residual encoded signal for each luminance component and chrominance component in the conventional encoding, and has conventional information about 0 to 7, The Residual mode indicates that the coefficient code string is described in Residual_data (), and 8 indicates that the coefficient code string is described in pcm_data () in the PCM mode. That is, the eighth information is extended to the information from 0 to 7 that has been conventionally used.

これによって、識別子として従来から存在する信号を共有して使用することが可能となり、新たな識別子の追加による符号量の増加を抑制することが可能となる。   As a result, it is possible to share and use a conventional signal as an identifier, and to suppress an increase in code amount due to the addition of a new identifier.

図7は本実施の形態によって生成される符号列のCU単位のシンタックス:coding_unit()のさらに別の一例を示した図である。図5で説明したシンタックスと異なるのは識別子としてpcm_flagの代わりにresidual_data_flagを用いている点のみである。   FIG. 7 is a diagram showing still another example of the CU unit syntax: coding_unit () of the code string generated according to the present embodiment. The only difference from the syntax described in FIG. 5 is that residual_data_flag is used as an identifier instead of pcm_flag.

この識別子は、従来の別の符号化において対象ブロックに残差符号化信号があるかないかを示すために用いられていたものである。つまり、この識別子が0のときは従来通り係数情報がないことを示す。また、識別子が1のときは従来通り係数情報があるためResidualモードによって係数符号列がResidual_data()で記述されていることを示す。さらに、識別子が2のときはPCMモードによって係数符号列がpcm_data()で記述されていることを示す。   This identifier is used to indicate whether or not there is a residual encoded signal in the target block in another conventional encoding. That is, when this identifier is 0, it indicates that there is no coefficient information as usual. Further, when the identifier is 1, it indicates that the coefficient code string is described in Residual_data () in the Residual mode because there is coefficient information as usual. Furthermore, when the identifier is 2, it indicates that the coefficient code string is described in pcm_data () in the PCM mode.

これによって、識別子として従来から存在する信号を共有して使用することが可能となり、新たな識別子の追加による符号量の増加を抑制することが可能となる。   As a result, it is possible to share and use a conventional signal as an identifier, and to suppress an increase in code amount due to the addition of a new identifier.

なお、図5、図6、図7で説明したシンタックスおよび識別子の値については、本実施の形態を説明するための一例であり、ここに記載されている内容と異なるシンタックスや識別子の値を割り当てることによって同様の機能を実現してもよい。   Note that the syntax and identifier values described in FIGS. 5, 6, and 7 are examples for explaining the present embodiment, and syntax and identifier values different from those described here. A similar function may be realized by assigning.

なお、図4のステップS402における規定値とは、前期再構成画像の画素値をそのまま符号列として記述する際に必要となる符号量と、前記ヘッダ符号列に記述すべき全ての情報を符号化する際に必要となる最大の符号量とを合わせた符号量に余裕量を加えた符号量である。例えば、画像のフォーマットが各画素8ビットのYUV4:2:0であり、符号化対象CUのサイズが32×32画素であった場合、前期再構成画像の画素値をそのまま符号列として記述する際に必要となる符号量は1536バイトとなり、これに前記ヘッダ符号列に記述すべき全ての情報を符号化する際に必要となる最大の符号量とを合わせた符号量に余裕量を加えて、前記規定値として13000ビット等の値が考えられる。   Note that the specified value in step S402 in FIG. 4 is an encoding of the code amount necessary for describing the pixel value of the previous reconstructed image as it is as a code string and all the information to be described in the header code string. This is a code amount obtained by adding a margin amount to a code amount that is combined with the maximum code amount that is necessary for the above. For example, when the format of the image is YUV 4: 2: 0 with 8 bits for each pixel and the size of the encoding target CU is 32 × 32 pixels, the pixel value of the previous reconstructed image is described as a code string as it is. The code amount required for 1 is 1536 bytes, and a margin amount is added to the code amount combined with the maximum code amount required for encoding all the information to be described in the header code string, A value such as 13000 bits can be considered as the specified value.

ここで、図8を用いて本実施の形態による動画像符号化装置のパイプラインの例を示す。   Here, an example of a pipeline of the moving picture coding apparatus according to the present embodiment will be described with reference to FIG.

図8(a)は図4のステップS402の判定の結果、Residualモードで係数符号列を生成した場合のパイプラインの制御である。図3(a)で説明した従来の制御と全く同様の流れで処理が行われている。   FIG. 8A shows pipeline control when the coefficient code string is generated in the Residual mode as a result of the determination in step S402 of FIG. Processing is performed in exactly the same flow as in the conventional control described with reference to FIG.

一方、図8(b)は図4のステップS402の判定の結果、PCMモードで係数符号列を生成した場合のパイプラインの制御である。ブロック1がPCMモードに切り替わっても、ヘッダ符号列に記述されている予測情報や最終的に生成される再構成画像の画素情報は変更されない。そのため、それらを参照しながら符号化処理が進行しているブロック2の処理には全く影響を与えない。よって、パイプラインを遡りことなくそのまま係数符号列のみをPCMモードで符号化することが可能となる。   On the other hand, FIG. 8B shows pipeline control when the coefficient code string is generated in the PCM mode as a result of the determination in step S402 of FIG. Even when the block 1 is switched to the PCM mode, the prediction information described in the header code string and the pixel information of the finally generated reconstructed image are not changed. For this reason, there is no influence on the processing of block 2 in which the encoding processing is proceeding while referring to them. Therefore, it is possible to encode only the coefficient code string in the PCM mode without going back in the pipeline.

このように、本実施の形態による動画像符号化装置は、パイプラインを遡ることなくPCMモードに切替えて符号化を行うことができるため、処理速度の遅延もしくは処理量を増加させることなく、ブロック単位の発生符号量を特定の最大値以下に納めることが可能となる。
(まとめ)
本実施形態における動画像符号化装置100は、入力される動画像をブロック単位で符号化する動画像符号化装置100であって、符号化対象画像に対応する予測画像を生成する予測符号化部105と、前記符号化対象画像と前記生成された予測画像との差分画像を生成する差分演算部109と、前記差分演算部109の出力に対して直交変換処理および量子化処理を行い、残差係数を生成する予測残差符号化部102と、前記残差係数に対して逆量子化処理および逆直交変換処理を行い、残差復号化画像を生成する予測残差復号化部と、前記予測符号化部105で生成された予測画像と前記予測残差復号化部で生成された残差復号化画像とを加算することで再構成画像を生成する加算演算部110と、前記予測画像を生成する際に利用した予測情報を少なくとも含むヘッダ情報を生成するヘッダ符号列生成部107と、第1モードにおいて、前記予測残差符号化部102で生成された残差係数を可変長符号化して第1係数符号列を生成し、前記係数符号列に前記ヘッダ情報生成部で生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する一方、第2モードにおいて、前記加算演算部110で生成された再構成画像を可変長符号することなく、前記再構成画像をそのまま係数符号列とし、前記係数符号列に前記ヘッダ情報生成部で生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する係数符号列生成部108と、を備える。
As described above, since the moving picture encoding apparatus according to the present embodiment can perform encoding by switching to the PCM mode without going back in the pipeline, the block can be achieved without increasing the processing speed or increasing the processing amount. It is possible to keep the generated code amount of a unit below a specific maximum value.
(Summary)
A moving image encoding apparatus 100 according to the present embodiment is a moving image encoding apparatus 100 that encodes an input moving image in units of blocks, and generates a prediction image corresponding to an encoding target image. 105, a difference calculation unit 109 that generates a difference image between the encoding target image and the generated predicted image, an orthogonal transform process and a quantization process are performed on the output of the difference calculation unit 109, and a residual A prediction residual encoding unit that generates a coefficient, a prediction residual decoding unit that performs an inverse quantization process and an inverse orthogonal transform process on the residual coefficient, and generates a residual decoded image; and the prediction An addition operation unit 110 that generates a reconstructed image by adding the prediction image generated by the encoding unit 105 and the residual decoded image generated by the prediction residual decoding unit, and generates the prediction image Used when A header code string generation unit 107 that generates header information including at least measurement information; and in the first mode, the residual coefficient generated by the prediction residual encoding unit 102 is variable-length encoded to generate a first coefficient code string. Generating and outputting the coefficient code string and the header information in a state in which the header information generated by the header information generation unit is associated with the coefficient code string, while in the second mode, the addition calculation unit 110 Without generating a variable-length code on the generated reconstructed image, the reconstructed image is directly used as a coefficient code string, and the coefficient code string is associated with the header information generated by the header information generating unit. A coefficient code string generation unit 108 that outputs a code string and the header information.

また好ましくは、前記係数符号列生成部108は、前記係数符号列および前記ヘッダ情報に、前記再構成画像をそのまま係数符号列としたか否かを示す識別子を対応付けた状態で、前記係数符号列、前記ヘッダ情報および前記識別子を出力する。   Preferably, the coefficient code string generation unit 108 associates the coefficient code string and the header information with an identifier indicating whether or not the reconstructed image is directly used as a coefficient code string. The column, the header information, and the identifier are output.

また好ましくは、前記係数符号列生成部108は、出力結果である出力符号列のうち、前記出力符号列を復号化する動画像復号化装置において前記係数符号列を復号化処理する前に処理する位置に、前記識別子を格納する。   Also preferably, the coefficient code string generation unit 108 performs processing before decoding the coefficient code string in a moving picture decoding apparatus that decodes the output code string of output code strings that are output results. The identifier is stored in the position.

また好ましくは、前記識別子は、前記第1モードにおける係数符号列および前記第2モードにおける係数符号列で共通で使用される識別子であり、当該識別子情報のうち1つは、前記第1モードにおける係数符号列として符号化したことを示すものであり、また別の1つは、前記第2モードにおける係数符号列として符号化したことを示し、かつ符号化した残差係数があるかないかを示すものである。   Preferably, the identifier is an identifier used in common for the coefficient code string in the first mode and the coefficient code string in the second mode, and one of the identifier information is a coefficient in the first mode. It indicates that it has been encoded as a code string, and another one indicates that it has been encoded as a coefficient code string in the second mode, and indicates whether there is an encoded residual coefficient. It is.

ここで、前記識別子は、本実施形態における図6に示すcbp_yuv_root、または図7に示すresidual_data_flagに該当する。   Here, the identifier corresponds to cbp_yuv_root shown in FIG. 6 or residual_data_flag shown in FIG. 7 in the present embodiment.

また好ましくは、前記係数符号列生成部108は、出力する符号列の前記ブロック全体における符号量が、特定の大きさを超過する可能性がある場合、前記第2モードを用いて符号列を出力する。   Preferably, the coefficient code string generation unit 108 outputs a code string using the second mode when there is a possibility that the code amount in the entire block of the code string to be output exceeds a specific size. To do.

前記係数符号列生成部108は、前記第1モードで符号列を出力した結果、当該符号列の前記ブロック全体における符号量が特定の大きさを超過した場合、当該第1モードで生成した符号列に代えて、前記第2モードを用いて生成した符号列を出力する。
(実施の形態2)
次に、本実施形態2について、図面を参照しながら説明する。
The coefficient code string generation unit 108 outputs a code string in the first mode, and as a result, when the code amount in the entire block of the code string exceeds a specific size, the code string generated in the first mode Instead, a code string generated using the second mode is output.
(Embodiment 2)
Next, the second embodiment will be described with reference to the drawings.

図9は、本実施形態に係る動画像符号化装置100−1のブロック図である。動画像符号化装置100−1は、ピクチャ単位で入力された動画像をブロックに分割し、ブロック単位で符号化処理し、符号列を生成する。   FIG. 9 is a block diagram of the video encoding device 100-1 according to the present embodiment. The moving image encoding apparatus 100-1 divides a moving image input in units of pictures into blocks, performs encoding processing in units of blocks, and generates a code string.

この動画像符号化装置100−1は、実施の形態1で図1を用いて説明した動画像符号化装置100とほぼ同様であるが、係数符号列生成部108の代わりに係数符号列生成部108−1を備えている点のみが異なっている。   The moving image encoding apparatus 100-1 is substantially the same as the moving image encoding apparatus 100 described with reference to FIG. 1 in the first embodiment, but a coefficient code string generation unit is used instead of the coefficient code string generation unit 108. The only difference is that 108-1 is provided.

以下、説明の便宜上、本実施形態1と同様の構成についてはその詳細な説明を省略する。さらに、図9では、図1と同様の機能を有するブロックについては同じ番号を付す。   Hereinafter, for convenience of description, detailed description of the same configuration as that of the first embodiment will be omitted. Further, in FIG. 9, blocks having the same functions as those in FIG.

係数符号列生成部108−1は、予測残差符号化部102が出力する残差符号化信号153を可変長符号化して得られる符号列を、ヘッダ符号列生成部107が生成した符号列に続けて追記することで最終的な符号列信号159−1を生成する第1モードを有する。さらに、係数符号列生成部108−1は、ピクチャメモリ101から出力されるブロック単位の入力画像を可変長符号化せずに得られる符号列を、ヘッダ符号列生成部107が生成した符号列に続けて追記することで最終的な符号列信号159を生成する第2モードを有する。   The coefficient code string generation unit 108-1 converts the code string obtained by variable-length coding the residual encoded signal 153 output from the prediction residual coding unit 102 into the code string generated by the header code string generation unit 107. It has the 1st mode which generates final code string signal 159-1 by adding continuously. Further, the coefficient code string generation unit 108-1 converts the code string obtained without performing variable-length coding on the block-unit input image output from the picture memory 101 into the code string generated by the header code string generation unit 107. It has the 2nd mode which generates final code sequence signal 159 by appending continuously.

図10は、ヘッダ符号列生成部107および係数符号列生成部108−1において符号列信号を生成する方法を示すフローチャートである。   FIG. 10 is a flowchart illustrating a method of generating a code string signal in the header code string generation unit 107 and the coefficient code string generation unit 108-1.

実施の形態1で図4を用いて説明したフローチャートとのほぼ同様の処理であるが、ステップS406の代わりにステップS406−1の処理が行われる点のみが異なっている。   The process is substantially the same as that in the flowchart described with reference to FIG. 4 in the first embodiment, except that the process of step S406-1 is performed instead of step S406.

ステップS402において、符号化対象CUの発生符号量が規定値を超過する可能性があると判断された場合に、PCMモードとして係数が符号化されていることを示す識別子を符号化する(S405)。つづいて、入力された入力画像信号を可変長符号化せずに画素のビットをそのまま符号列に追加する(PCMモード)ことで符号列を生成する(S406−1)。   In step S402, when it is determined that the generated code amount of the encoding target CU may exceed the specified value, an identifier indicating that the coefficient is encoded as the PCM mode is encoded (S405). . Subsequently, the input image signal is not subjected to variable length coding, and the bit of the pixel is added to the code string as it is (PCM mode) to generate a code string (S406-1).

また、実施の形態1では図5から図7を用いて、生成される符号列のCU単位のシンタックスおよびS405で符号化する識別子の一例を説明した。本実施の形態におけるシンタックスおよびS405で符号化する識別子も実施形態1と同様である。   Further, in the first embodiment, an example of the CU unit syntax of the generated code string and the identifier encoded in S405 has been described with reference to FIGS. The syntax in this embodiment and the identifier encoded in S405 are the same as those in the first embodiment.

なお、図10のステップS402における規定値とは、前期入力画像の画素値をそのまま符号列として記述する際に必要となる符号量と、前記ヘッダ符号列に記述すべき全ての情報を符号化する際に必要となる最大の符号量とを合わせた符号量に余裕量を加えた符号量である。例えば、画像のフォーマットが各画素8ビットのYUV4:2:0であり、符号化対象CUのサイズが32×32画素であった場合、前期入力画像の画素値をそのまま符号列として記述する際に必要となる符号量は1536バイトとなり、これに前記ヘッダ符号列に記述すべき全ての情報を符号化する際に必要となる最大の符号量とを合わせた符号量に余裕量を加えて、前記規定値として13000ビット等の値が考えられる。   Note that the specified value in step S402 in FIG. 10 encodes the amount of code necessary for describing the pixel value of the previous input image as a code string and all the information to be described in the header code string. This is a code amount obtained by adding a margin amount to the code amount combined with the maximum code amount required at the time. For example, when the image format is YUV 4: 2: 0 with 8 bits for each pixel and the size of the encoding target CU is 32 × 32 pixels, the pixel value of the previous input image is described as a code string as it is. The required code amount is 1536 bytes, and a margin amount is added to the code amount that is combined with the maximum code amount required when encoding all the information to be described in the header code string. A value such as 13000 bits can be considered as the specified value.

ここで、図11を用いて本実施の形態による動画像符号化装置のパイプラインの例を示す。   Here, an example of a pipeline of the moving picture coding apparatus according to the present embodiment will be described with reference to FIG.

図11(a)は図10のステップS402の判定の結果、Residualモードで係数符号列を生成した場合のパイプラインの制御である。図3(a)で説明した従来の制御と全く同様の流れで処理が行われている。   FIG. 11A shows the pipeline control when the coefficient code string is generated in the Residual mode as a result of the determination in step S402 of FIG. Processing is performed in exactly the same flow as in the conventional control described with reference to FIG.

一方、図11(b)は図10のステップS402の判定の結果、PCMモードで係数符号列を生成した場合のパイプラインの制御である。ブロック1がPCMモードに切り替わった場合、ヘッダ符号列に記述されている予測情報は変更されない。しかし、最終的に生成される画素情報が再構成画像ではなく入力画像に変更される。一方、ブロック1の画素情報を参照するブロック2の符号化処理は進行しているため、画素情報を置き換えて処理をやり直すためにブロック1の画面間/内予測の処理まで遡る必要がある。しかし、図3(b)で説明した従来の制御と比較すると遡る処理の数が少なくなる。   On the other hand, FIG. 11B shows pipeline control when a coefficient code string is generated in the PCM mode as a result of the determination in step S402 of FIG. When the block 1 is switched to the PCM mode, the prediction information described in the header code string is not changed. However, finally generated pixel information is changed to an input image instead of a reconstructed image. On the other hand, since the encoding process of block 2 referring to the pixel information of block 1 is in progress, it is necessary to go back to the inter-screen / intra prediction process of block 1 in order to replace the pixel information and start the process again. However, compared with the conventional control described with reference to FIG.

このように、本実施の形態による動画像符号化装置は、パイプラインを遡る処理の量を従来よりも減らすことができるため、処理速度の遅延もしくは処理量の増加を抑制しつつ、ブロック単位の発生符号量を特定の最大値以下に納めることが可能となる
また、本実施の形態では実施の形態1と異なり、符号化処理によって画質が劣化した再構成画像ではなく、劣化前の入力画像をPCMモードで係数符号列として符号化する。そのため、対応する動画像復号化装置において復号化した画像の画質を向上させることが可能となる。
(まとめ)
本実施形態における動画像符号化装置は、入力される動画像をブロック単位で符号化する動画像符号化装置100−1であって、符号化対象画像に対応する予測画像を生成する予測符号化部105と、前記符号化対象画像と前記生成された予測画像との差分画像を生成する差分演算部109と、前記差分演算部109の出力に対して直交変換処理および量子化処理を行い、残差係数を生成する予測残差符号化部102と、前記残差係数に対して逆量子化処理および逆直交変換処理を行い、残差復号化画像を生成する予測残差復号化部と、前記予測符号化部105で生成された予測画像と前記予測残差復号化部で生成された残差復号化画像とを加算することで再構成画像を生成する加算演算部110と、前記予測画像を生成する際に利用した予測情報を少なくとも含むヘッダ情報を生成するヘッダ符号列生成部107と、第1モードにおいて、前記予測残差符号化部102で生成された残差係数を可変長符号化して係数符号列を生成し、前記係数符号列に前記ヘッダ情報生成部で生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する一方、第2モードにおいて、前記符号化対象画像を可変長符号することなく、前記符号化対象画像をそのまま係数符号列とし、前記係数符号列に前記ヘッダ情報生成部で生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する係数符号列生成部108と、を備える。
As described above, since the moving picture encoding apparatus according to the present embodiment can reduce the amount of processing going back in the pipeline as compared with the prior art, it suppresses a delay in processing speed or an increase in the processing amount, while suppressing a block unit. In this embodiment, unlike the first embodiment, the generated code amount can be kept below a certain maximum value. Encode as a coefficient code string in PCM mode. Therefore, it is possible to improve the image quality of the image decoded by the corresponding video decoding device.
(Summary)
The moving image encoding apparatus according to the present embodiment is a moving image encoding apparatus 100-1 that encodes an input moving image in units of blocks, and generates a predicted image corresponding to an encoding target image. Unit 105, a difference calculation unit 109 that generates a difference image between the encoding target image and the generated predicted image, and an orthogonal transformation process and a quantization process on the output of the difference calculation unit 109, A prediction residual encoding unit 102 that generates a difference coefficient, a prediction residual decoding unit that performs an inverse quantization process and an inverse orthogonal transform process on the residual coefficient, and generates a residual decoded image; An addition operation unit 110 that generates a reconstructed image by adding the prediction image generated by the prediction encoding unit 105 and the residual decoded image generated by the prediction residual decoding unit; The schedule used when generating A header code string generation unit 107 that generates header information including at least information, and in the first mode, a coefficient code string is generated by variable-length coding the residual coefficient generated by the prediction residual coding unit 102; The coefficient code string and the header information are output in a state in which the header information generated by the header information generation unit is associated with the coefficient code string, while the encoding target image is a variable length code in the second mode. Without encoding, the coefficient code string and the header information are output in a state where the encoding target image is used as is as a coefficient code string, and the header information generated by the header information generation unit is associated with the coefficient code string. A coefficient code string generation unit 108.

また好ましくは、前記係数符号列生成部108−1は、前記係数符号列および前記ヘッダ情報に、前記符号化対象画像をそのまま係数符号列としたか否かを示す識別子を対応付けた状態で、前記係数符号列、前記ヘッダ情報および前記識別子を出力する。   Preferably, the coefficient code string generation unit 108-1 associates an identifier indicating whether or not the encoding target image is directly used as a coefficient code string with the coefficient code string and the header information, The coefficient code string, the header information, and the identifier are output.

また好ましくは、前記係数符号列生成部108−1は、出力結果である出力符号列のうち、前記出力符号列を復号化する動画像復号化装置において前記係数符号列を復号化処理する前に処理する位置に、前記識別子を格納する。   Preferably, the coefficient code string generation unit 108-1 performs the decoding process on the coefficient code string in the moving picture decoding apparatus that decodes the output code string among the output code strings that are output results. The identifier is stored at a position to be processed.

また好ましくは、前記識別子は、前記第1モードにおける係数符号列および前記第2モードにおける係数符号列で共通で使用される識別子であり、当該識別子情報のうち1つは、前記第1モードにおける係数符号列として符号化したことを示すものであり、また別の1つは、前記第2モードにおける係数符号列として符号化したことを示し、かつ符号化した残差係数があるかないかを示すものである。   Preferably, the identifier is an identifier used in common for the coefficient code string in the first mode and the coefficient code string in the second mode, and one of the identifier information is a coefficient in the first mode. It indicates that it has been encoded as a code string, and another one indicates that it has been encoded as a coefficient code string in the second mode, and indicates whether there is an encoded residual coefficient. It is.

ここで、前記識別子は、本実施形態における図6に示すcbp_yuv_root、または図7に示すresidual_data_flagに該当する。   Here, the identifier corresponds to cbp_yuv_root shown in FIG. 6 or residual_data_flag shown in FIG. 7 in the present embodiment.

また好ましくは、前記係数符号列生成部108−1は、出力する符号列の前記ブロック全体における符号量が、特定の大きさを超過する可能性がある場合、前記第2モードを用いて符号列を出力する。   Preferably, the coefficient code string generation unit 108-1 uses the second mode when the code amount in the entire block of the code string to be output may exceed a specific size. Is output.

また好ましくは、前記係数符号列生成部108−1は、前記第1モードで符号列を出力した結果、当該符号列の前記ブロック全体における符号量が特定の大きさを超過した場合、当該第1モードで生成した符号列に代えて、前記第2モードを用いて生成した符号列を出力する。
(実施の形態3)
以下、本実施形態3について、図面を参照しながら説明する。
Preferably, the coefficient code string generation unit 108-1 outputs the code string in the first mode, and as a result, when the code amount in the entire block of the code string exceeds a specific size, Instead of the code string generated in the mode, the code string generated using the second mode is output.
(Embodiment 3)
Hereinafter, the third embodiment will be described with reference to the drawings.

図2は、本実施形態に係る動画像復号化装置200のブロック図である。動画像復号化装置200は、実施の形態1または実施の形態2で説明した動画像符号化装置によって生成された符号列に対し、コーディングユニット(CU)と呼ばれるブロック単位で復号化処理し、出力画像を生成する。   FIG. 2 is a block diagram of the video decoding apparatus 200 according to the present embodiment. The moving picture decoding apparatus 200 decodes the code string generated by the moving picture coding apparatus described in the first embodiment or the second embodiment in units of blocks called coding units (CUs), and outputs the decoded data. Generate an image.

この動画像復号化装置200は、ヘッダ符号列解析部201と、係数符号列解析部202と、予測残差復化部203と、ピクチャメモリ204と、予測復号化部205と、量子化値決定部206とを備えている。   The moving picture decoding apparatus 200 includes a header code string analysis unit 201, a coefficient code string analysis unit 202, a prediction residual recovery unit 203, a picture memory 204, a prediction decoding unit 205, and a quantization value determination. Part 206.

ヘッダ符号列解析部201は、入力されたブロック単位の符号列信号251のヘッダ領域に対して可変長復号化を施すことによりヘッダ情報の解析を行う。ヘッダ符号列解析部201は、解析して得られる予測情報信号256を予測復号化部205へ出力する。さらに、ヘッダ符号列解析部201は、解析して得られる量子化値情報を量子化値決定部206へ出力する。   The header code string analysis unit 201 analyzes header information by performing variable length decoding on the header area of the input code string signal 251 in block units. The header code string analysis unit 201 outputs the prediction information signal 256 obtained by the analysis to the prediction decoding unit 205. Further, the header code string analysis unit 201 outputs the quantized value information obtained by the analysis to the quantized value determination unit 206.

係数符号列解析部202は、ヘッダ符号列解析部201によって解析されたヘッダ情報に続いて符号化されている係数符号列の解析を行う。このとき、係数符号列解析部202は、解析の結果、係数符号列が残差符号化信号の場合、当該残差符号化信号252を予測残差復号化部203へ出力する。一方、係数符号列解析部202は、解析の結果、係数符号列が再構成画像信号である場合、当該再構成画像信号を再構成画像信号255に置き換える。このとき再構成画像信号255に置き換えるモードで処理した場合は、以降で説明する予測残差復号化部203による残差復号化信号253の生成処理、および予測復号化部205による予測画像信号254の生成処理は行なわなくても構わない。   The coefficient code string analysis unit 202 analyzes the coefficient code string encoded following the header information analyzed by the header code string analysis unit 201. At this time, if the coefficient code sequence is a residual encoded signal as a result of the analysis, the coefficient code sequence analyzing unit 202 outputs the residual encoded signal 252 to the prediction residual decoding unit 203. On the other hand, when the coefficient code string is a reconstructed image signal as a result of the analysis, the coefficient code string analyzer 202 replaces the reconstructed image signal with the reconstructed image signal 255. At this time, when processing is performed in a mode that replaces the reconstructed image signal 255, a process of generating a residual decoded signal 253 by the prediction residual decoding unit 203 described below, and a process of generating the prediction image signal 254 by the prediction decoding unit 205 will be described. The generation process may not be performed.

予測残差復号化部203は、係数符号列解析部202から入力された残差符号化信号252に対して、逆量子化および逆直交変換することで差分画像情報の復号を行う。そして、予測残差復号化部203は、生成した残差復号化信号253を加算演算部207に出力する。このとき予測残差復号化部203は、量子化値決定部206において決定された量子化値信号257を用いて残差符号化信号252を逆量子化する。   The prediction residual decoding unit 203 decodes the difference image information by performing inverse quantization and inverse orthogonal transform on the residual encoded signal 252 input from the coefficient code string analysis unit 202. Then, the prediction residual decoding unit 203 outputs the generated residual decoding signal 253 to the addition operation unit 207. At this time, the prediction residual decoding unit 203 dequantizes the residual encoded signal 252 using the quantized value signal 257 determined by the quantized value determining unit 206.

ピクチャメモリ204は、加算演算部207または係数符号列解析部202から順に入力される信号を、表示を行う順にピクチャ単位で並び替えを行って蓄積する。そして、ピクチャメモリ204は、蓄積している信号を出力画像信号258として外部に出力する。   The picture memory 204 rearranges and accumulates the signals input in order from the addition operation unit 207 or the coefficient code string analysis unit 202 in the order of display in the order of display. Then, the picture memory 204 outputs the accumulated signal as an output image signal 258 to the outside.

予測復号化部205は、ヘッダ符号列解析部201から出力された予測情報信号256を基に、画面内予測、または画面間予測を用いて予測画像信号254を生成する。そして、予測復号化部205は、生成した予測画像信号254を加算演算部207に出力する。なお、予測復号化部205は、画面間予測を用いる際、ピクチャメモリ204に蓄積される既に復号化済みの過去のピクチャの再構成画像信号255を用いる。また、予測復号化部205は、画面内予測を用いる際、復号化対象CUに隣接する既に復号化済みのCUの現在のピクチャの再構成画像信号255を用いる。画面内予測を用いるか画面間予測を用いるかの判定については、入力される予測情報信号256に従って行われる。   The predictive decoding unit 205 generates a predicted image signal 254 using intra prediction or inter prediction based on the prediction information signal 256 output from the header code string analysis unit 201. Then, the predictive decoding unit 205 outputs the generated predicted image signal 254 to the addition operation unit 207. Note that the predictive decoding unit 205 uses the reconstructed image signal 255 of a past picture that has already been decoded and stored in the picture memory 204 when using inter-screen prediction. Further, when using intra prediction, the predictive decoding unit 205 uses the reconstructed image signal 255 of the current picture of a CU that has already been decoded and is adjacent to the decoding target CU. The determination of whether to use intra prediction or inter prediction is performed according to the input prediction information signal 256.

加算演算部207では、予測残差復号化部203から出力された残差復号化信号253と予測復号化部205から出力された予測画像信号254を加算することによって再構成画像信号255を生成する。生成された再構成画像信号255はピクチャメモリ204に格納され、最終的にはピクチャ単位の出力画像信号258として表示装置に出力される。   The addition operation unit 207 generates a reconstructed image signal 255 by adding the residual decoded signal 253 output from the prediction residual decoding unit 203 and the predicted image signal 254 output from the prediction decoding unit 205. . The generated reconstructed image signal 255 is stored in the picture memory 204 and is finally output to the display device as an output image signal 258 in units of pictures.

ここで、ヘッダ符号列解析部201および係数符号列解析部202において符号列の解析を行う方法について、図12のフローチャートを用いて具体的に説明する。   Here, a method for analyzing a code string in the header code string analysis unit 201 and the coefficient code string analysis unit 202 will be specifically described with reference to a flowchart of FIG.

まず、ヘッダ符号列解析部201は、入力された符号列のヘッダ領域に対して可変長復号化を施すことによりヘッダ情報の解析を行い、生成された予測情報信号256、量子化値情報、その他の復号化制御情報を図2を用いて説明した各処理ブロックへ出力する(S1201)。   First, the header code string analysis unit 201 analyzes header information by performing variable-length decoding on the header area of the input code string, and generates a generated prediction information signal 256, quantized value information, and the like. Is output to each processing block described with reference to FIG. 2 (S1201).

次に、係数符号列解析部202は、まずステップS1202において識別子の解析を行い、つづいてステップS1203において、解析された識別子が、PCMモードとして係数が符号化されていることを示しているか、もしくはResidualモードとして係数が符号化されていることを示しているかの判定を行う。   Next, the coefficient code string analysis unit 202 first analyzes the identifier in step S1202, and in step S1203, the analyzed identifier indicates that the coefficient is encoded as the PCM mode, or It is determined whether the coefficient is encoded as the Residual mode.

ステップS1203において、Residualモードとして係数が符号化されていると判定された場合は、従来と同様に入力された係数符号列に対して可変長復号化を施すことによって取得した残差符号化信号252を予測残差復号化部203に出力する(S1204)。   If it is determined in step S1203 that the coefficient has been encoded as the Residual mode, the residual encoded signal 252 obtained by performing variable-length decoding on the input coefficient code string in the same manner as in the past. Is output to the prediction residual decoding unit 203 (S1204).

一方、ステップS1203において、PCMモードとして係数が符号化されていると判定された場合は、入力された係数符号列に対して可変長復号化を施すこととなく取得したビット列をそのまま再構成画像信号として、加算演算部207から出力される再構成画像信号255に置き換えて以降の処理を行う(S1205)。   On the other hand, if it is determined in step S1203 that the coefficient is encoded as the PCM mode, the obtained bit string is directly subjected to the reconstructed image signal without performing variable length decoding on the input coefficient code string. As a result, the processing is replaced with the reconstructed image signal 255 output from the addition operation unit 207 (S1205).

なお、ここでは実施の形態1で説明した動画像符号化装置100で生成された符号列に対しての処理方法を説明したが、実施の形態2で説明した動画像符号化装置100−1で生成された符号列に対しても全く同様の処理方法で復号化することが可能である。その際に、ステップS1205で取得される情報は対応する符号化装置における入力画像に置き換わるが、復号化処理としては区別することなく常に再構成画像信号255として処理を行うことが可能である。   In addition, although the processing method with respect to the code sequence produced | generated by the moving image encoder 100 demonstrated in Embodiment 1 was demonstrated here, in the moving image encoder 100-1 demonstrated in Embodiment 2, it is. The generated code string can be decoded by the same processing method. At this time, the information acquired in step S1205 is replaced with the input image in the corresponding encoding device, but the decoding process can always be processed as the reconstructed image signal 255 without distinction.

また、実施の形態1では図5から図7を用いて、生成される符号列のCU単位のシンタックスおよび識別子の一例を説明したが、本実施の形態において復号化処理を行う符号列のシンタックスおよびS1202で解析する識別子も全く同様である。   Further, in the first embodiment, an example of the syntax and identifier of the CU unit of the generated code sequence has been described with reference to FIGS. 5 to 7. The identifiers analyzed in the tax and S1202 are exactly the same.

このように、本実施の形態による動画像復号化装置を用いることにより、これに対応する符号列を生成する動画像符号化装置は、実施の形態1で説明したような構成をとることが可能となり、図8(b)のようにパイプラインを遡ることなくPCMモードに切替えて符号化を行うことができるため、処理速度の遅延もしくは処理量を増加させることなく、ブロック単位の発生符号量を特定の最大値以下に納めることが可能となる。   Thus, by using the moving picture decoding apparatus according to the present embodiment, the moving picture encoding apparatus that generates a code string corresponding to the moving picture decoding apparatus can take the configuration described in the first embodiment. Thus, as shown in FIG. 8B, since encoding can be performed by switching to the PCM mode without going back in the pipeline, the generated code amount in block units can be reduced without increasing the processing speed or increasing the processing amount. It becomes possible to keep it below a certain maximum value.

また同様に、本実施の形態による動画像復号化装置を用いることにより、これに対応する符号列を生成する動画像符号化装置は、実施の形態2で説明したような構成をとることが可能となり、図11(b)のようにパイプラインを遡る処理の量を従来よりも減らすことができるため、処理速度の遅延もしくは処理量の増加を抑制しつつ、ブロック単位の発生符号量を特定の最大値以下に納めることができ、さらに復号化した画像の画質を向上させることが可能となる。
(まとめ)
本発明における動画像復号化装置200は、ピクチャ単位の動画像をブロックに分割して符号化された符号列であって、ヘッダ符号列および係数符号列を含む符号列251を復号化する動画像復号化装置200であって、前記符号列を取得するヘッダ符号列解析部201と、前記ヘッダ符号列に対して可変長復号化を行ない、少なくとも当該符号列を符号化する際に利用した予測画像に関する予測情報を取得するヘッダ符号列解析部201と、前記取得した符号列から、当該係数符号列は当該符号列の符号化処理過程において得られる再構成画像の情報であるか否を示す識別子を取得し、取得した識別子に基づいて当該係数符号列に関するデータを出力する係数符号列解析部202と、前記出力したデータに対して逆量子化および逆直交変換を行い、残差復号化画像を生成する予測残差復号化部203と、前記取得した符号列が属する画像における既に復号化済みの領域および復号化済みの異なる画像のうち少なくともいずれか一方に含まれる画素データに基づいて、当該取得した符号列に対応する予測画像を生成する予測復号化部205と、前記残差復号化画像と前記予測画像とを加算することで再構成画像を生成して出力する加算演算部207と、を備え、前記係数符号列解析部202は、前記識別子に基づいて前記係数符号列は前記再構成画像の情報ではないと判断する場合、前記係数符号列を可変長復号化して得られる残差係数を前記予測残差復号化部203に出力する第1モードと、前記識別子に基づいて当該係数符号列は前記再構成画像の情報であると判断する場合、加算演算部207の出力に代えて、当該係数符号列を再構成画像として出力する第2モードとを有する。
Similarly, by using the moving picture decoding apparatus according to the present embodiment, the moving picture encoding apparatus that generates a code string corresponding to the moving picture decoding apparatus can have the configuration described in the second embodiment. As shown in FIG. 11B, since the amount of processing going back in the pipeline can be reduced as compared with the conventional method, the generated code amount for each block can be specified while suppressing a delay in processing speed or an increase in processing amount. It can be stored below the maximum value, and the image quality of the decoded image can be improved.
(Summary)
The moving picture decoding apparatus 200 according to the present invention decodes a code string 251 that is encoded by dividing a moving picture in units of pictures into blocks and includes a header code string and a coefficient code string. A decoding apparatus 200, a header code string analysis unit 201 that acquires the code string, and a prediction image that is used when variable length decoding is performed on the header code string and at least the code string is encoded A header code string analysis unit 201 that obtains prediction information regarding, and an identifier indicating whether or not the coefficient code string is information of a reconstructed image obtained in the process of encoding the code string from the acquired code string A coefficient code string analysis unit 202 that acquires and outputs data related to the coefficient code string based on the acquired identifier, and inverse quantization and inverse orthogonal transform for the output data And the prediction residual decoding unit 203 that generates a residual decoded image, and is included in at least one of an already decoded region and a different decoded image in the image to which the acquired code string belongs Based on the pixel data, a predictive decoding unit 205 that generates a predicted image corresponding to the acquired code string, and generates and outputs a reconstructed image by adding the residual decoded image and the predicted image And the coefficient code sequence analysis unit 202 performs variable length decoding on the coefficient code sequence when determining that the coefficient code sequence is not information of the reconstructed image based on the identifier. When determining that the coefficient code string is information of the reconstructed image based on the first mode for outputting the residual coefficient obtained by converting to the prediction residual decoding unit 203 and the identifier, Instead of the output of root operations unit 207, and a second mode for outputting the coefficient code string as the reconstructed image.

また好ましくは、ピクチャ単位の動画像をブロックに分割して符号化された符号列であって、ヘッダ符号列および係数符号列を含む符号列を復号化する動画像復号化装置200であって、前記符号列を取得するヘッダ符号列解析部201と、前記ヘッダ符号列に対して可変長復号化を行ない、少なくとも当該符号列を符号化する際に利用した予測画像に関する予測情報を取得するヘッダ符号列解析部201と、前記取得した符号列から、当該係数符号列は当該符号列の符号化前の入力画像の情報であるか否を示す識別子を取得し、取得した識別子に基づいて当該符号列に関するデータを出力する係数符号列解析部202と、前記出力したデータに対して逆量子化および逆直交変換を行い、残差復号化画像を生成する予測残差復号化部203と、前記取得した符号列が属する画像における既に復号化済みの領域および復号化済みの異なる画像のうち少なくともいずれか一方に含まれる画素データに基づいて、当該取得した符号列に対応する予測画像を生成する予測復号化部205と、前記残差復号化画像と前記予測画像とを加算することで再構成画像を生成して出力する加算演算部207と、を備え、前記係数符号列解析部202は、前記識別子に基づいて前記係数符号列は前記入力画像の情報であると判断する場合、前記係数符号列を可変長復号化して得られる残差係数を予測残差復号化部203に対して出力する第1モードと、前記識別子に基づいて当該係数符号列は前記入力画像の情報であると判断する場合、加算演算部207の出力に代えて、当該係数符号列を再構成画像として出力する第2モードとを有する。   Also preferably, the video decoding apparatus 200 decodes a code sequence that is encoded by dividing a moving image in units of pictures into blocks, and includes a header code sequence and a coefficient code sequence, A header code string analysis unit 201 that obtains the code string, and a header code that performs variable-length decoding on the header code string and obtains at least prediction information related to a prediction image used when the code string is encoded From the sequence analysis unit 201 and the acquired code sequence, an identifier indicating whether or not the coefficient code sequence is information of an input image before encoding the code sequence is acquired, and the code sequence based on the acquired identifier A coefficient code string analysis unit 202 that outputs data relating to, a prediction residual decoding unit 203 that performs inverse quantization and inverse orthogonal transform on the output data, and generates a residual decoded image; Based on pixel data included in at least one of an already decoded region and a different decoded image in an image to which the acquired code sequence belongs, a predicted image corresponding to the acquired code sequence is generated A prediction decoding unit 205; and an addition operation unit 207 that generates and outputs a reconstructed image by adding the residual decoded image and the predicted image, and the coefficient code string analysis unit 202 includes: When it is determined that the coefficient code string is information of the input image based on the identifier, a residual coefficient obtained by variable-length decoding the coefficient code string is output to the prediction residual decoding unit 203. When it is determined that the coefficient code string is information of the input image based on the first mode and the identifier, the coefficient code string is used as a reconstructed image instead of the output of the addition operation unit 207. And a second mode for outputting Te.

また好ましくは、前記係数符号列解析部202において、前記識別子に基づいて第2モードとして処理が行われた場合、前記予測残差復号化部203および前記予測復号化部205は、それぞれ、前記残差復号化画像および前記予測画像を生成しない。   Preferably, when the coefficient code string analysis unit 202 performs processing as the second mode based on the identifier, the prediction residual decoding unit 203 and the prediction decoding unit 205 respectively The difference decoded image and the predicted image are not generated.

また好ましくは、前記識別子は、前記第1モードおよび第2モードで共通で使用される識別子であり、当該識別子情報のうち1つは、前記第2モードとして復号化することを示すものであり、また別の1つは、前記第1モードとして復号化することを示し、かつ復号化する残差係数があるかないかを示すものである。
(その他の実施形態)
さらに、上記実施の形態で示した動画像符号化装置および動画像復号化装置に含まれる各手段と同等の機能を備えるプログラムを、フレキシブルディスク等の記録媒体に記録するようにすることにより、上記実施の形態で示した処理を、独立したコンピュータシステムにおいて簡単に実施することが可能となる。なお、記録媒体としてはフレキシブルディスクに限らず、光ディスク、ICカード、ROMカセット等、プログラムを記録できるものであれば同様に実施することができる。
Preferably, the identifier is an identifier used in common in the first mode and the second mode, and one of the identifier information indicates that decoding is performed as the second mode, Another one indicates that decoding is performed as the first mode, and whether or not there is a residual coefficient to be decoded.
(Other embodiments)
Further, by recording a program having the same function as each unit included in the moving image encoding device and the moving image decoding device described in the above embodiment, on a recording medium such as a flexible disk, the above The processing shown in the embodiment can be easily performed in an independent computer system. The recording medium is not limited to a flexible disk, and can be similarly implemented as long as it can record a program, such as an optical disk, an IC card, and a ROM cassette.

また、上記実施の形態で示した動画像符号化装置および動画像復号化装置に含まれる各手段と同等の機能を集積回路であるLSIとして実現してもよい。これらは一部または全てを含むように1チップ化されてもよい。またLSIは集積度の違いにより、IC、システムLSI、スーパーLSI、ウルトラLSIと称されることもある。   In addition, functions equivalent to the units included in the moving picture coding apparatus and the moving picture decoding apparatus described in the above embodiments may be realized as an LSI that is an integrated circuit. These may be integrated into one chip so as to include a part or all of them. An LSI may also be called 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内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサを利用しても良い。   Further, the method of circuit integration is not limited to LSI's, and implementation using dedicated circuitry or general purpose processors is also possible. 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などに置き換わる集積回路の技術が登場すれば、当然、その技術を用いて機能ブロックの集積化を行ってもよい。   Furthermore, if integrated circuit technology that replaces LSI or the like appears as a result of progress in semiconductor technology or other derived technology, it is naturally also possible to carry out function block integration using this technology.

また、本発明は、上述した動画像符号化装置および動画像復号化装置を含む、放送局から放送される放送波を圧縮し、記録を行うDVDレコーダー、BDレコーダー等の放送波記録装置に適用しても構わない。   Further, the present invention is applied to a broadcast wave recording apparatus such as a DVD recorder or a BD recorder that compresses and records a broadcast wave broadcast from a broadcast station, including the above-described moving picture encoding apparatus and moving picture decoding apparatus. It doesn't matter.

また、上記実施の形態に係る、動画像符号化装置および動画像復号化装置、またはその変形例の機能のうち少なくとも一部を組み合わせてもよい。   Moreover, you may combine at least one part among the functions of the moving image encoder and moving image decoder which concern on the said embodiment, or its modification.

本発明は、例えば、ビデオカメラ、デジタルカメラ、ビデオレコーダ、携帯電話、及びパーソナルコンピューター等における、入力画像を構成する各ピクチャを符号化して動画像符号化データとして出力する動画像符号化装置や、前記動画像符号化データを復号化して復号化画像を生成する動画像復号化装置として有用である。   The present invention, for example, in a video camera, a digital camera, a video recorder, a mobile phone, a personal computer, etc., a moving image encoding device that encodes each picture constituting an input image and outputs it as moving image encoded data, The present invention is useful as a moving picture decoding apparatus that generates a decoded picture by decoding the moving picture encoded data.

100 動画像符号化装置
101 ピクチャメモリ
102 予測残差符号化部
103 予測残差復号化部
104 ローカルバッファ
105 予測符号化部
106 量子化値決定部
107 ヘッダ符号列生成部
108 係数符号列生成部
109 差分演算部
110 加算演算部
151 入力画像信号
152 差分画像信号
153 残差符号化信号
154 残差復号化信号
155 再構成画像信号
156 予測画像信号
157 予測情報信号
158 量子化値信号
159 符号列信号
200 動画像復号化装置
201 ヘッダ符号列解析部
202 係数符号列解析部
203 予測残差復号化部
204 ピクチャメモリ
205 予測復号化部
206 量子化値決定部
207 加算演算部
251 符号列信号
252 残差符号化信号
253 残差復号化信号
254 予測画像信号
255 再構成画像信号
256 予測情報信号
257 量子化値信号
258 出力画像信号
DESCRIPTION OF SYMBOLS 100 Moving image encoding apparatus 101 Picture memory 102 Prediction residual encoding part 103 Prediction residual decoding part 104 Local buffer 105 Prediction encoding part 106 Quantization value determination part 107 Header code sequence generation part 108 Coefficient code sequence generation part 109 Difference calculation unit 110 Addition calculation unit 151 Input image signal 152 Difference image signal 153 Residual encoded signal 154 Residual decoded signal 155 Reconstructed image signal 156 Predicted image signal 157 Predicted information signal 158 Quantized value signal 159 Code sequence signal 200 Moving picture decoding apparatus 201 Header code sequence analysis unit 202 Coefficient code sequence analysis unit 203 Prediction residual decoding unit 204 Picture memory 205 Prediction decoding unit 206 Quantized value determination unit 207 Addition operation unit 251 Code sequence signal 252 Residual code Signal 253 residual decoded signal 254 prediction image Issue 255 the reconstructed image signal 256 prediction information signal 257 quantized value signal 258 output image signals

Claims (10)

入力される動画像をブロック単位で符号化する動画像符号化装置であって、
符号化対象画像に対応する予測画像を生成する予測画像生成部と、
前記符号化対象画像と前記生成された予測画像との差分画像を生成する減算器と、
前記減算器の出力に対して直交変換処理および量子化処理を行い、残差係数を生成する予測残差符号化部と、
前記残差係数に対して逆量子化処理および逆直交変換処理を行い、残差復号化画像を生成する予測残差復号化部と、
前記予測画像生成部で生成された予測画像と前記予測残差復号化部で生成された残差復号化画像とを加算することで再構成画像を生成する加算器と、
前記予測画像を生成する際に利用した予測情報を少なくとも含むヘッダ情報を生成するヘッダ符号列生成部と、
第1モードにおいて、前記予測残差符号化部で生成された残差係数を可変長符号化して第1係数符号列を生成し、前記係数符号列に前記ヘッダ情報生成部で生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する一方、第2モードにおいて、前記加算器で生成された再構成画像を可変長符号することなく、前記再構成画像をそのまま係数符号列とし、前記係数符号列に前記ヘッダ情報生成部で生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する係数符号列生成部と、
を備える動画像符号化装置。
A video encoding device that encodes an input video in units of blocks,
A predicted image generation unit that generates a predicted image corresponding to the encoding target image;
A subtractor that generates a difference image between the encoding target image and the generated predicted image;
A prediction residual encoding unit that performs orthogonal transform processing and quantization processing on the output of the subtractor to generate a residual coefficient;
A prediction residual decoding unit that performs an inverse quantization process and an inverse orthogonal transform process on the residual coefficient to generate a residual decoded image;
An adder that generates a reconstructed image by adding the prediction image generated by the prediction image generation unit and the residual decoded image generated by the prediction residual decoding unit;
A header code string generation unit that generates header information including at least the prediction information used when generating the predicted image;
In the first mode, the residual coefficient generated by the prediction residual encoding unit is variable-length encoded to generate a first coefficient code sequence, and the header information generated by the header information generation unit in the coefficient code sequence In the second mode, the coefficient code string and the header information are output while the reconstructed image generated by the adder is not subjected to variable length coding in the second mode. A coefficient code string generator that outputs the coefficient code string and the header information in a state in which the header information generated by the header information generator is associated with the coefficient code string;
A video encoding device comprising:
入力される動画像をブロック単位で符号化する動画像符号化装置であって、
符号化対象画像に対応する予測画像を生成する予測画像生成部と、
前記符号化対象画像と前記生成された予測画像との差分画像を生成する減算器と、
前記減算器の出力に対して直交変換処理および量子化処理を行い、残差係数を生成する予測残差符号化部と、
前記残差係数に対して逆量子化処理および逆直交変換処理を行い、残差復号化画像を生成する予測残差復号化部と、
前記予測画像生成部で生成された予測画像と前記予測残差復号化部で生成された残差復号化画像とを加算することで再構成画像を生成する加算器と、
前記予測画像を生成する際に利用した予測情報を少なくとも含むヘッダ情報を生成するヘッダ符号列生成部と、
第1モードにおいて、前記予測残差符号化部で生成された残差係数を可変長符号化して係数符号列を生成し、前記係数符号列に前記ヘッダ情報生成部で生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する一方、第2モードにおいて、前記符号化対象画像を可変長符号することなく、前記符号化対象画像をそのまま係数符号列とし、前記係数符号列に前記ヘッダ情報生成部で生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する係数符号列生成部と、
を備える動画像符号化装置。
A video encoding device that encodes an input video in units of blocks,
A predicted image generation unit that generates a predicted image corresponding to the encoding target image;
A subtractor that generates a difference image between the encoding target image and the generated predicted image;
A prediction residual encoding unit that performs orthogonal transform processing and quantization processing on the output of the subtractor to generate a residual coefficient;
A prediction residual decoding unit that performs an inverse quantization process and an inverse orthogonal transform process on the residual coefficient to generate a residual decoded image;
An adder that generates a reconstructed image by adding the prediction image generated by the prediction image generation unit and the residual decoded image generated by the prediction residual decoding unit;
A header code string generation unit that generates header information including at least the prediction information used when generating the predicted image;
In the first mode, the residual coefficient generated by the prediction residual encoding unit is variable-length encoded to generate a coefficient code sequence, and the header information generated by the header information generation unit is associated with the coefficient code sequence. In the second mode, the coefficient code string and the header information are output in the attached state, and in the second mode, the coding target image is directly used as a coefficient code string without variable length coding, and the coefficient A coefficient code string generation unit that outputs the coefficient code string and the header information in a state in which the header information generated by the header information generation unit is associated with the code string;
A video encoding device comprising:
前記係数符号列生成部は、前記係数符号列および前記ヘッダ情報に、前記再構成画像をそのまま係数符号列としたか否かを示す識別子を対応付けた状態で、前記係数符号列、前記ヘッダ情報および前記識別子を出力する請求項1に記載の動画像符号化装置。   The coefficient code string generation unit associates the coefficient code string and the header information with an identifier indicating whether or not the reconstructed image is directly used as a coefficient code string. The moving picture encoding apparatus according to claim 1, wherein the identifier is output. 前記係数符号列生成部は、前記係数符号列および前記ヘッダ情報に、前記符号化対象画像をそのまま係数符号列としたか否かを示す識別子を対応付けた状態で、前記係数符号列、前記ヘッダ情報および前記識別子を出力する請求項2に記載の動画像符号化装置。   The coefficient code string generation unit associates the coefficient code string and the header information with an identifier indicating whether or not the encoding target image is directly used as a coefficient code string. The moving image encoding apparatus according to claim 2, wherein the information and the identifier are output. 前記係数符号列生成部は、出力結果である出力符号列のうち、前記出力符号列を復号化する動画像復号化装置において前記係数符号列を復号化処理する前に処理する位置に、前記識別子を格納する請求項3または請求項4に記載の動画像符号化装置。   The coefficient code string generation unit includes the identifier at a position where the coefficient code string is processed before the coefficient code string is decoded in a moving image decoding apparatus that decodes the output code string, of the output code string that is an output result. The moving picture encoding apparatus according to claim 3 or 4, wherein 前記識別子は、前記第1モードにおける係数符号列および前記第2モードにおける係数符号列で共通で使用される識別子であり、当該識別子情報のうち1つは、前記第1モードにおける係数符号列として符号化したことを示すものであり、また別の1つは、前記第2モードにおける係数符号列として符号化したことを示し、かつ符号化した残差係数があるかないかを示すものである請求項3または請求項4に記載の動画像符号化装置。   The identifier is an identifier used in common for the coefficient code string in the first mode and the coefficient code string in the second mode, and one of the identifier information is encoded as a coefficient code string in the first mode. And the other one indicates that encoding is performed as a coefficient code string in the second mode, and indicates whether or not there is an encoded residual coefficient. The moving image encoding device according to claim 3 or 4. 前記係数符号列生成部は、出力する符号列の前記ブロック全体における符号量が、特定の大きさを超過する可能性がある場合、前記第2モードを用いて符号列を出力する請求項1または請求項2に記載の動画像符号化装置。   The coefficient code string generation unit outputs the code string using the second mode when there is a possibility that the code amount in the entire block of the code string to be output exceeds a specific size. The moving image encoding apparatus according to claim 2. 前記係数符号列生成部は、前記第1モードで符号列を出力した結果、当該符号列の前記ブロック全体における符号量が特定の大きさを超過した場合、当該第1モードで生成した符号列に代えて、前記第2モードを用いて生成した符号列を出力する請求項1または請求項2に記載の動画像符号化装置。   When the code amount in the entire block of the code sequence exceeds a specific size as a result of outputting the code sequence in the first mode, the coefficient code sequence generation unit generates a code sequence generated in the first mode. Instead, the moving picture coding apparatus according to claim 1 or 2, wherein a code string generated using the second mode is output. 入力される動画像をブロック単位で符号化する動画像符号化方法であって、
符号化対象画像に対応する予測画像を生成し、
前記符号化対象画像と前記生成された予測画像との差分画像を生成し、
前記減算器の出力に対して直交変換処理および量子化処理を行い、残差係数を生成し、
前記残差係数に対して逆量子化処理および逆直交変換処理を行い、残差復号化画像を生成し、
前記予測画像生成部で生成された予測画像と前記予測残差復号化部で生成された残差復号化画像とを加算することで再構成画像を生成し、
前記予測画像を生成する際に利用した予測情報を少なくとも含むヘッダ情報を生成し、
第1モードにおいて、前記生成した残差係数を可変長符号化して第1係数符号列を生成し、前記係数符号列に前記生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する一方、第2モードにおいて、前記生成された再構成画像を可変長符号することなく、前記再構成画像をそのまま係数符号列とし、前記係数符号列に前記生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する、動画像符号化方法。
A moving image encoding method for encoding an input moving image in block units,
Generate a predicted image corresponding to the encoding target image,
Generating a difference image between the encoding target image and the generated predicted image;
An orthogonal transformation process and a quantization process are performed on the output of the subtractor to generate a residual coefficient,
Performing an inverse quantization process and an inverse orthogonal transform process on the residual coefficient to generate a residual decoded image;
Generating a reconstructed image by adding the prediction image generated by the prediction image generation unit and the residual decoded image generated by the prediction residual decoding unit;
Generate header information including at least the prediction information used when generating the predicted image,
In the first mode, the generated residual coefficient is variable-length-encoded to generate a first coefficient code string, and the coefficient code string and the coefficient code string and the generated header information are associated with the coefficient code string. While outputting the header information, in the second mode, the reconstructed image is directly used as a coefficient code string without performing variable length coding on the generated reconstructed image, and the generated header information is included in the coefficient code string. A moving picture coding method for outputting the coefficient code string and the header information in a state of being associated with each other.
入力される動画像をブロック単位で符号化する動画像符号化方法であって、
符号化対象画像に対応する予測画像を生成し、
前記符号化対象画像と前記生成された予測画像との差分画像を生成し、
前記減算器の出力に対して直交変換処理および量子化処理を行い、残差係数を生成し、
前記残差係数に対して逆量子化処理および逆直交変換処理を行い、残差復号化画像を生成し、
前記予測画像生成部で生成された予測画像と前記予測残差復号化部で生成された残差復号化画像とを加算することで再構成画像を生成し、
前記予測画像を生成する際に利用した予測情報を少なくとも含むヘッダ情報を生成し、
第1モードにおいて、前記生成された残差係数を可変長符号化して係数符号列を生成し、前記係数符号列に前記生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する一方、第2モードにおいて、前記符号化対象画像を可変長符号することなく、前記符号化対象画像をそのまま係数符号列とし、前記係数符号列に前記生成されたヘッダ情報を対応付けた状態で、前記係数符号列および前記ヘッダ情報を出力する係数符号列生成部と、
を備える動画像符号化方法。
A moving image encoding method for encoding an input moving image in block units,
Generate a predicted image corresponding to the encoding target image,
Generating a difference image between the encoding target image and the generated predicted image;
An orthogonal transformation process and a quantization process are performed on the output of the subtractor to generate a residual coefficient,
Performing an inverse quantization process and an inverse orthogonal transform process on the residual coefficient to generate a residual decoded image;
Generating a reconstructed image by adding the prediction image generated by the prediction image generation unit and the residual decoded image generated by the prediction residual decoding unit;
Generate header information including at least the prediction information used when generating the predicted image,
In the first mode, the coefficient code string and the header are generated in a state in which the generated residual coefficient is variable length encoded to generate a coefficient code string, and the generated header information is associated with the coefficient code string. While outputting information, in the second mode, without encoding the encoding target image as a variable length code, the encoding target image is used as it is as a coefficient code string, and the generated header information is associated with the coefficient code string. A coefficient code string generation unit that outputs the coefficient code string and the header information,
A video encoding method comprising:
JP2011050392A 2011-03-08 2011-03-08 Moving image encoding device and moving image encoding method Withdrawn JP2012191247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011050392A JP2012191247A (en) 2011-03-08 2011-03-08 Moving image encoding device and moving image encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011050392A JP2012191247A (en) 2011-03-08 2011-03-08 Moving image encoding device and moving image encoding method

Publications (1)

Publication Number Publication Date
JP2012191247A true JP2012191247A (en) 2012-10-04

Family

ID=47083977

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011050392A Withdrawn JP2012191247A (en) 2011-03-08 2011-03-08 Moving image encoding device and moving image encoding method

Country Status (1)

Country Link
JP (1) JP2012191247A (en)

Similar Documents

Publication Publication Date Title
JP5395307B2 (en) Moving picture decoding apparatus and moving picture decoding method
US11831919B2 (en) Encoding device and encoding method
US11849124B2 (en) Device and method of video encoding with first and second encoding code
US11611741B2 (en) Video decoding device and video decoding method
WO2012120910A1 (en) Moving image coding device and moving image coding method
JP2012191397A (en) Moving image encoding device and moving image encoding method
JP2012191247A (en) Moving image encoding device and moving image encoding method
JP2012191491A (en) Moving image decoding device and moving image decoding method
JP2012235294A (en) Moving image decoder
JP2012235293A (en) Moving image encoder

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140513