JP2011176503A - Image encoding device, method, program, and integrated circuit - Google Patents

Image encoding device, method, program, and integrated circuit Download PDF

Info

Publication number
JP2011176503A
JP2011176503A JP2010037991A JP2010037991A JP2011176503A JP 2011176503 A JP2011176503 A JP 2011176503A JP 2010037991 A JP2010037991 A JP 2010037991A JP 2010037991 A JP2010037991 A JP 2010037991A JP 2011176503 A JP2011176503 A JP 2011176503A
Authority
JP
Japan
Prior art keywords
encoding
information
image
unit
adjacent
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.)
Pending
Application number
JP2010037991A
Other languages
Japanese (ja)
Inventor
Yukinaga Seki
征永 関
Takuma Chiba
琢麻 千葉
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 JP2010037991A priority Critical patent/JP2011176503A/en
Publication of JP2011176503A publication Critical patent/JP2011176503A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image encoding device which suppresses the increase in capacity of an adjacent MB information memory in the case that an input image size becomes larger. <P>SOLUTION: The image encoding device 100 includes: a storage part 160a which stores therein adjacent macro block information relating to an already encoded macro block; an encoding part 161a which encodes a target macro block to be encoded, on the basis of the adjacent macro block information; and an encoding control part 200 which, in accordance with an image size, changes an encoding system in the encoding part and changes the number of pieces of information capable of being stored per prescribed area in the storage part. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像に関するデータを符号化する画像符号化装置、画像符号化方法、画像符号化プログラムおよび、画像符号化集積回路に関し、複数のサイズの画像を符号化する画像符号化技術に関する。   The present invention relates to an image encoding device, an image encoding method, an image encoding program, and an image encoding integrated circuit that encode data relating to an image, and to an image encoding technique that encodes images of a plurality of sizes.

近年、デジタル映像技術の発展とともに、扱われる映像データ、特に動画像のデータ量は、増加の一途を辿っている。例えば、最近実用化されているHD(High Definition)映像では、従来のSD(Standard Definition)映像と比べて、約6倍のデータ量となっている。   In recent years, with the development of digital video technology, the amount of video data to be handled, particularly the amount of moving image data, has been increasing. For example, HD (High Definition) video that has recently been put into practical use has a data amount that is about six times that of conventional SD (Standard Definition) video.

一方、コンピュータや、その他機器の情報処理能力の向上に伴い、複雑な演算を用いた動画圧縮が可能となっており、映像データの圧縮率は大幅に高められてきている。近年注目を集めているH.264/AVCは、MPEG‐2の2倍前後の圧縮率を実現する規格である。H.264/AVCでは、多くの圧縮化技術を組み合わせることで、高い圧縮率を実現している。このため、従来の圧縮方式に比べ、演算量も大幅に増加している(非特許文献1、2、特許文献1を参照)。   On the other hand, with the improvement of information processing capabilities of computers and other devices, moving image compression using complex operations is possible, and the compression rate of video data has been greatly increased. H. has been attracting attention in recent years. H.264 / AVC is a standard that realizes a compression rate about twice that of MPEG-2. H. In H.264 / AVC, a high compression rate is realized by combining many compression techniques. For this reason, compared with the conventional compression system, the amount of calculation is also increasing significantly (refer nonpatent literatures 1 and 2 and patent documents 1).

図1は、従来の画像符号化装置500の機能的な構成を示すブロック図である。
図1に示す画像符号化装置500は、入力された画像データを、H.264/AVCにより符号化する画像符号化装置の一例である。画像符号化装置500の動作の概要を以下に説明する。
FIG. 1 is a block diagram showing a functional configuration of a conventional image encoding device 500.
The image encoding apparatus 500 shown in FIG. 1 is an example of an image encoding device that performs encoding by H.264 / AVC. An outline of the operation of the image coding apparatus 500 will be described below.

まず、符号化対象の画像データは、MB(MacroBlock)と呼ばれるブロック単位ごとに、画面間予測部501と画面内予測部502に入力される。   First, the image data to be encoded is input to the inter-screen prediction unit 501 and the intra-screen prediction unit 502 for each block called MB (MacroBlock).

図2は、画面間予測方法を示す図である。
画面間予測部501は、図2に示すように、参照画像蓄積部600に蓄積されている、既に符号化されたピクチャから、符号化対象MBと相関の高い画像ブロックを検出する。さらに、符号化対象MBと、検出された画像ブロックとの差分を取り、予測残差を求め、その予測残差と、ピクチャ間でのブロックの動き量を表す動きベクトルとをモード選択部503へ出力する。画面間予測に用いるピクチャは最大2枚選択でき、その2枚のピクチャを用いた予測を、それぞれL0予測、L1予測として区別する。
FIG. 2 is a diagram illustrating an inter-screen prediction method.
As illustrated in FIG. 2, the inter-screen prediction unit 501 detects an image block having a high correlation with the encoding target MB from the already encoded pictures stored in the reference image storage unit 600. Further, a difference between the encoding target MB and the detected image block is calculated to obtain a prediction residual, and the prediction residual and a motion vector representing the motion amount of the block between pictures are sent to the mode selection unit 503. Output. A maximum of two pictures used for inter-screen prediction can be selected, and predictions using the two pictures are distinguished as L0 prediction and L1 prediction, respectively.

図3は、画面間予測の予測単位を示す図である。
また、画面間予測は、図3に示すように、MBのサイズである16x16画素単位ではなく、MBをさらに細かいブロックに分割した8x16画素、16x8画素単位、8x8画素単位などで行うことも可能である。
FIG. 3 is a diagram illustrating a prediction unit for inter-screen prediction.
Further, as shown in FIG. 3, inter-screen prediction can be performed not in units of 16 × 16 pixels, which is the size of MB, but in units of 8 × 16 pixels, 16 × 8 pixels, 8 × 8 pixels, etc., in which MB is divided into smaller blocks. is there.

図4は、画面内予測に用いる隣接MBの画素を示す図である。
画面内予測部502は、符号化対象MBの画像を、図4に示す、既に符号化された、当該符号化対象MBの、左、左上、上、右上の各隣接MBの画素を用いて予測する。さらに、符号化対象MBの画像と、生成された予測画像との差分を取り、予測残差を求め、その予測残差と、画面内予測モード情報とをモード選択部503へ出力する。
FIG. 4 is a diagram illustrating adjacent MB pixels used for intra prediction.
The in-screen prediction unit 502 predicts the image of the encoding target MB using the pixels of the adjacent MBs on the left, upper left, upper, and upper right of the encoding target MB that are already encoded as shown in FIG. To do. Further, the difference between the image of the encoding target MB and the generated predicted image is calculated to obtain a prediction residual, and the prediction residual and the intra-screen prediction mode information are output to the mode selection unit 503.

モード選択部503は、画面間予測部501と、画面内予測部502とのそれぞれから出力されるデータを基に、符号化対象MBを、画面間予測と画面内予測とのいずれの予測方法により符号化するかを選択する。そして、選択された予測方法で求めた予測残差を、直交変換部504へ出力するとともに、画面間予測を選択した場合には、動きベクトルを、画面内予測を選択した場合には、画面内予測モード情報を、それぞれ予測情報符号化部520へ出力する。   The mode selection unit 503 selects the encoding target MB based on the data output from each of the inter-screen prediction unit 501 and the intra-screen prediction unit 502 by any prediction method of inter-screen prediction and intra-screen prediction. Select whether to encode. Then, the prediction residual obtained by the selected prediction method is output to the orthogonal transform unit 504, and when the inter-screen prediction is selected, the motion vector is selected. When the intra-screen prediction is selected, the prediction residual is calculated. Each prediction mode information is output to the prediction information encoding unit 520.

直交変換部504は、入力される予測残差を直交変換し、予測残差が直交変換された直交変換係数を算出する。直交変換係数は量子化部505へ出力される。   The orthogonal transform unit 504 performs orthogonal transform on the input prediction residual and calculates an orthogonal transform coefficient obtained by orthogonally transforming the prediction residual. The orthogonal transform coefficient is output to the quantization unit 505.

量子化部505は、まず、入力される直交変換係数を量子化し、そして、量子化された直交変換係数を、2値化部506および逆量子化部510へ出力する。   The quantization unit 505 first quantizes the input orthogonal transform coefficient, and outputs the quantized orthogonal transform coefficient to the binarization unit 506 and the inverse quantization unit 510.

予測情報符号化部520は、モード選択部503で、画面間予測が選択された場合、まず、既に符号化された、当該符号化対象MBの左、左上、上、右上の各隣接MBにおける動きベクトル情報を元に、推定動きベクトルを算出する。そして、入力される動きベクトルと、算出された推定動きベクトルとの差分値を求め、求められた差分値を、2値化部506へ出力する。   When inter-mode prediction is selected by the mode selection unit 503, the prediction information encoding unit 520 first moves in the adjacent MBs on the left, upper left, upper, and upper right of the encoding target MB that have already been encoded. Based on the vector information, an estimated motion vector is calculated. Then, a difference value between the input motion vector and the calculated estimated motion vector is obtained, and the obtained difference value is output to the binarization unit 506.

一方、モード選択部503で画面内予測が選択された場合、予測情報符号化部520は、まず、既に符号化された、当該符号化対象MBの左、および上の各隣接MBにおける画面内予測モード情報を元に、推定画面内予測モードを算出する。そして、符号化に用いた画面内予測モードおよび、予測モードが一致するか否かの情報を、2値化部506へ出力する。ここで、出力される、予測モードが一致するか否かの情報とは、符号化に用いた画面内予測モードと、算出された推定画面内予測モードとが一致するか否かの情報である。   On the other hand, when the intra-screen prediction is selected by the mode selection unit 503, the prediction information encoding unit 520 firstly predicts the intra-screen prediction in the left and upper neighboring MBs that have already been encoded. Based on the mode information, the estimated intra prediction mode is calculated. Then, the intra prediction mode used for encoding and information on whether or not the prediction modes match are output to the binarization unit 506. Here, the output information on whether or not the prediction modes match is information on whether or not the in-screen prediction mode used for encoding matches the calculated estimated in-screen prediction mode. .

また、モード選択部503から入力された、動きベクトル情報、または画面内予測モード情報は、符号化対象MBの、右、左下、下、および右下のそれぞれの隣接MBのうち、少なくとも一つの符号化において必要となるため、予測情報符号化部520内部のメモリに保持する。   Also, the motion vector information or the intra prediction mode information input from the mode selection unit 503 is at least one code among the right, lower left, lower, and lower right neighboring MBs of the encoding target MB. Stored in the memory inside the prediction information encoding unit 520.

逆量子化部510は、入力される、量子化された直交変換係数を逆量子化し、逆量子化で得られた直交変換係数を、逆直交変換部511へ出力する。   The inverse quantization unit 510 performs inverse quantization on the input quantized orthogonal transform coefficient, and outputs the orthogonal transform coefficient obtained by the inverse quantization to the inverse orthogonal transform unit 511.

逆直交変換部511は、入力される直交変換係数を逆直交変換して、その逆直交変換により生成した予測残差を、再構成画像生成部512へ出力する。   The inverse orthogonal transform unit 511 performs inverse orthogonal transform on the input orthogonal transform coefficient, and outputs the prediction residual generated by the inverse orthogonal transform to the reconstructed image generation unit 512.

再構成画像生成部512は、画面間予測および画面内予測のうち、モード選択部503で選択された方の方式で生成される予測画像と、逆直交変換部511により入力される予測残差とを足し合わせ、入力画像の再構成画像を生成する。そして、再構成画像生成部512は、生成された再構成画像を、画面内予測部502と、デブロック処理部514とにそれぞれ出力する。   The reconstructed image generation unit 512 includes a prediction image generated by the method selected by the mode selection unit 503 among the inter-screen prediction and the intra-screen prediction, and the prediction residual input by the inverse orthogonal transform unit 511. Are added to generate a reconstructed image of the input image. Then, the reconstructed image generation unit 512 outputs the generated reconstructed image to the intra-screen prediction unit 502 and the deblock processing unit 514, respectively.

画面内予測部502は、入力される再構成画像のうち、符号化対象MBの右、左下、下、および右下の各隣接MBの符号化の画面内予測処理で必要となる、符号化対象MB中の右端1列の画素、および、下端1ラインの画素を、画面内予測部502内部のメモリに保持する。   The intra-screen prediction unit 502 is an encoding target that is necessary for the intra-screen prediction process of encoding each of the adjacent MBs on the right, lower left, lower, and lower right of the encoding target MB in the input reconstructed image. The pixels in the rightmost column in the MB and the pixels in the lowermost line are held in the memory inside the intra prediction unit 502.

図5は、デブロック処理に用いる隣接MBの画素を示す図である。
デブロック処理部514は、図5に示す、符号化対象MBの上、および左の各隣接MBの画素、および入力された再構成画像を用いて、MB境界および、MB内の4x4画素単位のブロック境界に対してデブロック処理を施し、デブロック処理が施された後の画像データを復号画像データとして参照画像蓄積部600へ出力する。また符号化対象MBの右、および下の各隣接MBの符号化時に用いられる、符号化対象MB中の右端4列の画素、および下端4ラインの画素を、デブロック処理部514内部のメモリに保持する。参照画像蓄積部600へ出力された復号画像データは、次ピクチャ以降の符号化の際に、画面間予測部501により参照される。
FIG. 5 is a diagram illustrating pixels of adjacent MBs used for the deblocking process.
The deblocking processing unit 514 uses the pixels of the adjacent MBs above and to the left of the encoding target MB shown in FIG. 5 and the input reconstructed image, and the MB boundary and the unit of 4 × 4 pixels in the MB. The deblocking process is performed on the block boundary, and the image data after the deblocking process is output to the reference image storage unit 600 as decoded image data. In addition, the pixels on the rightmost 4 columns and the pixels on the lowermost 4 lines in the encoding target MB, which are used when encoding the adjacent MBs on the right side and the lower side of the encoding target MB, are stored in the memory inside the deblock processing unit 514. Hold. The decoded image data output to the reference image storage unit 600 is referred to by the inter-screen prediction unit 501 when encoding subsequent pictures.

一方、2値化部506は、量子化部505から入力される、量子化された直交変換係数、および、予測情報符号化部520から入力される、符号化された予測情報を、2値データに変換し、変換された2値データを、算術符号化部507へ出力する。   On the other hand, the binarizing unit 506 converts the quantized orthogonal transform coefficient input from the quantizing unit 505 and the encoded prediction information input from the prediction information encoding unit 520 into binary data. And the converted binary data is output to the arithmetic encoding unit 507.

算術符号化部507は、入力される2値データを符号化し、2値データが符号化されたストリームを、符号化ストリームとして画像符号化装置500より出力する。   The arithmetic encoding unit 507 encodes the input binary data, and outputs a stream obtained by encoding the binary data from the image encoding apparatus 500 as an encoded stream.

図6は、算術符号化部507の構成を示す図である。
算術符号化部507は、コンテキストインデックス算出部551、シンボル発生確率情報保持部552、2値算術符号化部553を備える。
FIG. 6 is a diagram illustrating a configuration of the arithmetic encoding unit 507.
The arithmetic coding unit 507 includes a context index calculation unit 551, a symbol occurrence probability information holding unit 552, and a binary arithmetic coding unit 553.

コンテキストインデックス算出部551は、入力される2値シンボルのシンタックスに応じて、2値算術符号化に用いるシンボル発生確率情報を指し示すコンテキストインデックス(以降ctxIdx)を算出し、算出されたctxIdxを、シンボル発生確率情報保持部552へ出力する。   The context index calculation unit 551 calculates a context index (hereinafter referred to as ctxIdx) indicating symbol occurrence probability information used for binary arithmetic coding according to the input binary symbol syntax, and the calculated ctxIdx is used as a symbol. Output to the occurrence probability information holding unit 552.

シンボル発生確率情報保持部552は、各ctxIdxに対応したシンボル発生確率情報を保持し、入力されるctxIdxに対応したシンボル発生確率情報を、2値算術符号化部553へ出力する。   The symbol occurrence probability information holding unit 552 holds symbol occurrence probability information corresponding to each ctxIdx, and outputs the symbol occurrence probability information corresponding to the inputted ctxIdx to the binary arithmetic encoding unit 553.

2値算術符号化部553は、入力される2値シンボルと、シンボル発生確率情報を元に、2値算術符号化処理を行い、2値算術符号化処理がされたストリームを、符号ストリームとして出力する。   The binary arithmetic encoding unit 553 performs a binary arithmetic encoding process based on the input binary symbol and the symbol occurrence probability information, and outputs the stream subjected to the binary arithmetic encoding process as a code stream. To do.

ここで、コンテキストインデックス算出部551での、ctxIdxを算出する処理の際に、一部のシンタックスに対する、ctxIdxの計算においては、符号化対象MBの左、および上の各隣接MBにおける同一シンタックスの情報が必要となる。このようなシンタックスには、
・mb_skip_flag(MBをスキップ符号化するか否かを示す情報)
・mb_field_decoding_flag(MBを、フィールド符号化するか、フレーム符号化するかを示す情報)
・mb_type(MBの符号化タイプ情報)
・coded_block_pattern(量子化後係数の出現パターン情報)
・ref_idx_l0(L0画面間予測で参照するピクチャを指定する情報)
・ref_idx_l1(L1画面間予測で参照するピクチャを指定する情報)
・mvd_l0(L0画面間予測においての動きベクトル情報)
・mvd_l1(L1画面間予測においての動きベクトル情報)
・intra_chroma_pred_mode(色差の画面内予測モード情報)
・coded_block_flag(量子化後の係数の有無を示す情報)、
がある。これらのシンタックスの2値データが、コンテキストインデックス算出部551に入力された場合には、符号化対象MBの左、および上の各隣接MBにおける、同一シンタックスの情報を参照して、ctxIdxを算出するとともに、そのシンタックス情報は、符号化対象MBの右、および下の各隣接MBの符号化に用いられるため、コンテキストインデックス算出部551内部のメモリに保持する。
Here, in the process of calculating ctxIdx in the context index calculation unit 551, in the calculation of ctxIdx for a part of the syntax, the same syntax in the left and upper neighboring MBs of the encoding target MB Information is required. Such syntax includes
Mb_skip_flag (information indicating whether MB is skip-encoded)
Mb_field_decoding_flag (information indicating whether MB is field-encoded or frame-encoded)
Mb_type (MB coding type information)
Coded_block_pattern (appearance pattern information of coefficient after quantization)
Ref_idx_10 (information for specifying a picture to be referenced in L0 inter-screen prediction)
Ref_idx_l1 (information for specifying a picture to be referred to in inter-L1 prediction)
Mvd_l0 (motion vector information in inter-L0 screen prediction)
Mvd_l1 (motion vector information in L1 inter-frame prediction)
Intra_chroma_pred_mode (color difference in-screen prediction mode information)
Coded_block_flag (information indicating presence / absence of coefficient after quantization),
There is. When binary data of these syntaxes is input to the context index calculation unit 551, ctxIdx is determined by referring to information on the same syntax in the left and upper adjacent MBs of the encoding target MB. The syntax information is stored in the memory inside the context index calculation unit 551 because the syntax information is used for encoding the right and lower adjacent MBs of the encoding target MB.

特開2007−251865号公報JP 2007-251865 A

ITU-T Recommendation H.264, Advanced Video Coding for generic audiovisual services. 2003.ITU-T Recommendation H.264, Advanced Video Coding for generic audiovisual services. 2003. ISO/IEC 14496-10 : Coding of audio-visual objects - Part 10: Advanced Video Coding. 2003.ISO / IEC 14496-10: Coding of audio-visual objects-Part 10: Advanced Video Coding. 2003.

図7は、隣接MB情報として情報を保持するMBを示す図である。
前記従来の画像符号化装置500においては、画面内予測部502での画面内予測処理、予測情報符号化部520での予測モード符号化処理、デブロック処理部514でのデブロック処理、コンテキストインデックス算出部551でのctxIdx算出処理において、それぞれ、符号化対象MBの左、左上、上、および右上の各隣接MBのうち、少なくとも一つのMBの情報が必要である。このため、図7に示すように、(1MBラインあたりのMB数+1)個の符号化済みMBの情報を、メモリに保持する必要がある。このため、符号化画像サイズの横幅(図7の横幅200a)に比例して、符号化に用いる隣接MB情報を保持するメモリの容量を増大させなければならない課題があった。
FIG. 7 is a diagram illustrating an MB that holds information as adjacent MB information.
In the conventional image encoding apparatus 500, the intra prediction process in the intra prediction unit 502, the prediction mode encoding process in the prediction information encoding unit 520, the deblocking process in the deblock processing unit 514, the context index In the ctxIdx calculation process in the calculation unit 551, information on at least one MB among the left, upper left, upper, and upper right adjacent MBs of the encoding target MB is required. For this reason, as shown in FIG. 7, it is necessary to store information on (number of MBs per MB line + 1) number of encoded MBs in a memory. For this reason, there has been a problem that the capacity of a memory for holding adjacent MB information used for encoding must be increased in proportion to the width of the encoded image size (the width 200a in FIG. 7).

本発明は、このような従来の課題を解決するもので、入力される画像の画像サイズに応じて、符号化方式を限定するとともに、それと連動して、メモリの所定の領域あたりに蓄積可能な隣接MB情報の数を変更することにより、入力画像サイズが大きくなった際の、隣接MB情報メモリの容量増大を抑制する画像符号化装置を提供することを目的とする。   The present invention solves such a conventional problem, and limits the encoding method according to the image size of an input image, and in conjunction therewith, can be stored per predetermined area of the memory. An object of the present invention is to provide an image encoding device that suppresses an increase in the capacity of an adjacent MB information memory when the input image size increases by changing the number of adjacent MB information.

上記目的を達成するために、本発明の画像符号化装置は、入力される画像を符号化する画像符号化装置であって、前記入力される画像が有する情報のうち、既に符号化済みのマクロブロックに関する隣接マクロブロック情報であって、符号化対象のマクロブロックを符号化する際に参照される隣接マクロブロック情報を蓄積する蓄積部と、隣接マクロブロック情報を基に、前記符号化対象のマクロブロックを符号化する符号化部と、前記入力される画像の画像サイズに応じて、前記符号化部における符号化方式を変更するとともに、前記蓄積部における、所定の領域あたりに蓄積可能な前記隣接マクロブロック情報の数を変更する符号化制御部とを備える。   In order to achieve the above object, an image encoding device of the present invention is an image encoding device that encodes an input image, and is an already encoded macro among information included in the input image. An adjacent macroblock information related to a block, the storage unit storing adjacent macroblock information referred to when encoding the encoding target macroblock, and the encoding target macro based on the adjacent macroblock information The encoding unit that encodes a block, and the encoding method in the encoding unit is changed according to the image size of the input image, and the adjacent unit that can store per predetermined area in the storage unit And an encoding control unit that changes the number of macroblock information.

また、本発明の画像符号化方法は、入力される画像を符号化する画像符号化方法であって、前記入力される画像が有する情報のうち、既に符号化済みのマクロブロックに関する隣接マクロブロック情報であって、符号化対象のマクロブロックを符号化する際に参照される隣接マクロブロック情報を蓄積部が蓄積する蓄積ステップと、前記隣接マクロブロック情報を基に、前記符号化対象のマクロブロックを符号化部が符号化する符号化ステップと、前記入力される画像の画像サイズに応じて、前記符号化部における符号化方式を変更するとともに、前記蓄積部における、所定の領域あたりに蓄積可能な前記隣接マクロブロック情報の数を変更する符号化制御ステップとを含む画像符号化方法としても良い。   The image encoding method of the present invention is an image encoding method for encoding an input image, and among information included in the input image, adjacent macroblock information relating to an already encoded macroblock. A storage unit that stores adjacent macroblock information referred to when encoding the macroblock to be encoded, and the macroblock to be encoded based on the adjacent macroblock information. According to the encoding step encoded by the encoding unit and the image size of the input image, the encoding method in the encoding unit is changed, and the storage unit can store per predetermined area. An image encoding method including an encoding control step of changing the number of adjacent macroblock information may be used.

また、上記符号化方法をコンピュータに実行させるための画像符号化プログラムが構築されても良い。   An image encoding program for causing a computer to execute the above encoding method may be constructed.

また、上記符号化方法を実行するための構成を備える画像符号化集積回路が構築されても良い。   Further, an image encoding integrated circuit having a configuration for executing the above encoding method may be constructed.

本発明の画像符号化装置、画像符号化方法、画像符号化プログラムおよび、画像符号化集積回路によれば、入力される画像の画像サイズに応じて、符号化方式を限定するとともに、それと連動して、メモリの所定の領域あたりに蓄積可能な隣接MB情報の数を変更することにより、入力画像サイズが大きくなった際の、隣接MB情報メモリの容量増大を抑制することが可能となる。   According to the image encoding device, the image encoding method, the image encoding program, and the image encoding integrated circuit of the present invention, the encoding method is limited in accordance with the image size of the input image, and in conjunction therewith. Thus, by changing the number of adjacent MB information that can be accumulated per predetermined area of the memory, it is possible to suppress an increase in the capacity of the adjacent MB information memory when the input image size increases.

図1は、従来の画像符号化装置の機能的な構成を示すブロック図である。FIG. 1 is a block diagram showing a functional configuration of a conventional image coding apparatus. 図2は、画面間予測方法を示す図である。FIG. 2 is a diagram illustrating an inter-screen prediction method. 図3は、画面間予測の予測単位を示す図である。FIG. 3 is a diagram illustrating a prediction unit for inter-screen prediction. 図4は、画面内予測に用いる隣接MBの画素を示す図である。FIG. 4 is a diagram illustrating adjacent MB pixels used for intra prediction. 図5は、デブロック処理に用いる隣接MBの画素を示す図である。FIG. 5 is a diagram illustrating pixels of adjacent MBs used for the deblocking process. 図6は、従来の画像符号化装置における算術符号化部の機能的な構成を示すブロック図である。FIG. 6 is a block diagram showing a functional configuration of an arithmetic coding unit in a conventional image coding apparatus. 図7は、隣接MB情報として情報を保持するMBを示す図である。FIG. 7 is a diagram illustrating an MB that holds information as adjacent MB information. 図8は、実施の形態1における画像符号化装置の機能的な構成を示すブロック図である。FIG. 8 is a block diagram showing a functional configuration of the image coding apparatus according to Embodiment 1. 図9は、実施の形態1における画像符号化装置の算術符号化部の機能的な構成を示すブロック図である。FIG. 9 is a block diagram illustrating a functional configuration of the arithmetic encoding unit of the image encoding device according to the first embodiment. 図10は、実施の形態2における画像符号化装置の機能的な構成を示すブロック図である。FIG. 10 is a block diagram illustrating a functional configuration of the image encoding device according to the second embodiment. 図11は、実施の形態2における画像符号化装置の算術符号化部の機能的な構成を示すブロック図である。FIG. 11 is a block diagram illustrating a functional configuration of the arithmetic encoding unit of the image encoding device according to the second embodiment. 図12は、MBAFF符号化方法を示す図である。FIG. 12 is a diagram illustrating an MBAFF encoding method. 図13は、MBAFF符号化時における上隣接MBを示す図である。FIG. 13 is a diagram showing the upper adjacent MB at the time of MBAFF encoding. 図14は、MBAFF符号化時の画面内予測に用いる上隣接画素を示す図である。FIG. 14 is a diagram illustrating upper adjacent pixels used for intra-screen prediction at the time of MBAFF encoding. 図15は、MBAFF符号化時のデブロック処理に用いる上隣接画素を示す図である。FIG. 15 is a diagram illustrating upper adjacent pixels used in the deblocking process at the time of MBAFF encoding. 図16は、符号化制御部、画面間予測部、コンテキストインデックス算出部を示す図である。FIG. 16 is a diagram illustrating an encoding control unit, an inter-screen prediction unit, and a context index calculation unit. 図17は、画像符号化装置のフローチャートである。FIG. 17 is a flowchart of the image encoding device.

以下、本発明を実施するための最良の形態について、図面を参照しながら説明する。
実施形態の画像符号化装置(画像符号化装置100、画像符号化装置300)は、入力される画像を符号化する画像符号化装置であって、前記入力される画像が有する情報のうち、既に符号化済みのマクロブロックに関する隣接マクロブロック情報であって、符号化対象のマクロブロックを符号化する際に参照される隣接マクロブロック情報を蓄積する蓄積部(蓄積部160a(隣接MB情報メモリ160))と、前記隣接マクロブロック情報を基に、前記符号化対象のマクロブロックを符号化する符号化部(符号化処理部161a)と、前記入力される画像の画像サイズに応じて、前記符号化部(符号化処理部161a)における符号化方式(画面間予測部201でL1予測を制限するか、しないか等)を変更するとともに、前記蓄積部における、所定の領域あたりに蓄積可能な隣接マクロブロック情報の数を変更する符号化制御部(符号化制御部200)とを備える画像符号化装置である。
The best mode for carrying out the present invention will be described below with reference to the drawings.
The image encoding device (the image encoding device 100, the image encoding device 300) of the embodiment is an image encoding device that encodes an input image, and is already included in the information included in the input image. An accumulating unit (accumulating unit 160a (adjacent MB information memory 160) that accumulates adjacent macroblock information that is adjacent macroblock information related to an encoded macroblock and is referred to when encoding a macroblock to be encoded. ), An encoding unit (encoding processing unit 161a) that encodes the encoding target macroblock based on the adjacent macroblock information, and the encoding according to the image size of the input image Change the encoding method (whether or not to limit L1 prediction in the inter-screen prediction unit 201) in the storage unit (encoding processing unit 161a), and Kicking, it is an image encoding apparatus and an encoding control unit (coding control unit 200) to change the number of storable neighboring macroblock information per predetermined area.

(実施の形態1)
図8は、実施の形態1における画像符号化装置100のハードウェア構成を示す図である。
(Embodiment 1)
FIG. 8 is a diagram illustrating a hardware configuration of the image encoding device 100 according to the first embodiment.

画像符号化装置100は、符号化制御部200、画面間予測部201、画面内予測部502、モード選択部503、直交変換部504、量子化部505、2値化部506、逆量子化部510、逆直交変換部511、再構成画像生成部512、デブロック処理部513、予測情報符号化部220、算術符号化部207を備える。   The image encoding apparatus 100 includes an encoding control unit 200, an inter-screen prediction unit 201, an intra-screen prediction unit 502, a mode selection unit 503, an orthogonal transform unit 504, a quantization unit 505, a binarization unit 506, and an inverse quantization unit. 510, an inverse orthogonal transform unit 511, a reconstructed image generation unit 512, a deblock processing unit 513, a prediction information encoding unit 220, and an arithmetic encoding unit 207.

図9は、図8の算術符号化部207の機能的な構成を示すブロック図である。
また、算術符号化部207は、図9に示す通り、コンテキストインデックス算出部251、シンボル発生確率情報保持部552、2値算術符号化部553を備える。
FIG. 9 is a block diagram showing a functional configuration of the arithmetic encoding unit 207 of FIG.
In addition, the arithmetic encoding unit 207 includes a context index calculation unit 251, a symbol occurrence probability information holding unit 552, and a binary arithmetic encoding unit 553 as illustrated in FIG. 9.

なお、画面内予測部502、モード選択部503、直交変換部504、量子化部505、2値化部506、逆量子化部510、逆直交変換部511、再構成画像生成部512、デブロック処理部513、シンボル発生確率情報保持部552、2値算術符号化部553、および参照画像蓄積部600は、それぞれ、従来例として示した図1(および図2)に示した、画像符号化装置500、および算術符号化部507において、同じ符号および名称を持つ構成要素と同様のものであり、その詳細な説明は適宜、省略する。   Note that the intra-screen prediction unit 502, mode selection unit 503, orthogonal transform unit 504, quantization unit 505, binarization unit 506, inverse quantization unit 510, inverse orthogonal transform unit 511, reconstructed image generation unit 512, deblocking The processing unit 513, the symbol occurrence probability information holding unit 552, the binary arithmetic encoding unit 553, and the reference image storage unit 600 are each an image encoding device shown in FIG. 1 (and FIG. 2) shown as a conventional example. 500 and the arithmetic encoding unit 507 are the same as the components having the same reference numerals and names, and detailed description thereof will be omitted as appropriate.

以下、画像符号化装置100における、画像符号化方法について説明する。
符号化制御部200は、外部から与えられる入力画像サイズの情報を元に、画面間予測部201に、画面間予測方法の制限に関する制御情報を出力するとともに、予測情報符号化部220、および算術符号化部207に、メモリの所定の領域あたりに蓄積可能な隣接マクロブロック情報の数を変更する制御情報を出力する。画面間予測方法の制限の手段としては、L1予測(先述の説明を参照)の制限およびブロックタイプの制限がある。
Hereinafter, an image encoding method in the image encoding apparatus 100 will be described.
The encoding control unit 200 outputs, to the inter-screen prediction unit 201, control information related to the restriction of the inter-screen prediction method, based on the input image size information given from the outside, the prediction information encoding unit 220, and the arithmetic Control information for changing the number of adjacent macroblock information that can be accumulated per predetermined area of the memory is output to the encoding unit 207. As means for limiting the inter-screen prediction method, there are a limitation on L1 prediction (see the above description) and a block type.

まず、符号化制御部200が、L1予測を制限する場合について説明する。
L1予測を制限する場合、画面間予測部201では、L0予測のみで、符号化を実装する。よって、予測情報符号化部220は、L1予測に関する動きベクトル情報を、メモリに保持する必要がなく、動きベクトル情報の保持に必要なメモリ領域を半分にできる。このため、L1予測を制限することにより、従来、1MB分の隣接MBにおける動きベクトル情報を保持していたメモリ領域に、2MB分の動きベクトル情報を保持することが可能となる。
First, a case where the encoding control unit 200 restricts L1 prediction will be described.
When restricting L1 prediction, the inter-screen prediction unit 201 implements encoding only by L0 prediction. Therefore, the prediction information encoding unit 220 does not need to store the motion vector information related to the L1 prediction in the memory, and can halve the memory area required to store the motion vector information. For this reason, by restricting L1 prediction, it is possible to hold motion vector information for 2 MB in a memory area that conventionally holds motion vector information for adjacent MBs for 1 MB.

また、L1予測を制限する場合、算術符号化部207に入力される2値データには、L1予測に関するシンタックスref_idx_l1およびmvd_l1は含まれない。よって、算術符号化部207のコンテキストインデックス算出部251は、L1予測を制限しない場合と比較して、ref_idxおよびmvd情報の保持に必要なメモリ領域を半分にできる。このため、L1予測を制限することにより、従来、1MB分の隣接MBにおけるref_idxおよびmvd情報を保持していたメモリ領域に、2MB分のref_idxおよびmvd情報を保持することが可能となる。   Further, when the L1 prediction is limited, the binary data input to the arithmetic coding unit 207 does not include the syntaxes ref_idx_l1 and mvd_l1 related to the L1 prediction. Therefore, the context index calculation unit 251 of the arithmetic coding unit 207 can halve the memory area necessary for holding the ref_idx and mvd information, compared to the case where the L1 prediction is not limited. For this reason, by limiting L1 prediction, it is possible to hold ref_idx and mvd information for 2 MB in a memory area that conventionally holds ref_idx and mvd information for 1 MB of adjacent MBs.

次に、符号化制御部200が、画面間予測のブロックタイプを16x16画素単位のみに制限した場合について、16x16画素単位、16x8画素単位、および8x16画素単位の3種のブロックタイプを用いた画面間予測をする場合と比較して説明する。   Next, when the encoding control unit 200 restricts the block type of inter-screen prediction to only 16 × 16 pixel units, inter-screen using three types of block types of 16 × 16 pixel units, 16 × 8 pixel units, and 8 × 16 pixel units. This will be described in comparison with the case of making a prediction.

16x8画素単位および8x16画素単位の画面間予測を行う場合、MB内の、分割された領域ごとに、その領域の動きベクトル情報が算出される。しかし、画面間予測のブロックタイプを16x16画素単位のみに制限すると、予測情報符号化部220は、MB内の分割された領域ごとの動きベクトル情報をメモリに保持する必要がなく、動きベクトル情報の保持に必要なメモリ領域を半分にできる。このため、画面間予測のブロックタイプを、16x16画素単位のみに制限することにより、従来、1MB分の隣接MBにおける動きベクトル情報を保持していたメモリ領域に、2MB分の動きベクトル情報を保持することが可能となる。   When inter-screen prediction is performed in units of 16 × 8 pixels and 8 × 16 pixels, motion vector information for each region is calculated for each divided region in the MB. However, when the block type of inter-screen prediction is limited to only 16 × 16 pixel units, the prediction information encoding unit 220 does not need to store the motion vector information for each divided area in the MB, and the motion vector information The memory area required for holding can be halved. For this reason, by limiting the block type of inter prediction to only 16 × 16 pixel units, the motion vector information for 2 MB is held in the memory area that conventionally holds the motion vector information for the adjacent MB for 1 MB. It becomes possible.

また、16x8画素単位および8x16画素単位の画面間予測を行う場合、MB内の分割された領域ごとに、ref_idx_l0/1、mvd_l0/1のシンタックスが出現する。しかし、画面間予測のブロックタイプを、16x16画素単位のみに制限すると、ref_idx_l0/1、mvd_l0/1の情報は、MBあたり一つとなる。よって、算術符号化部207の隣接MB情報保持部は、16x8画素単位および8x16画素単位の画面間予測を行う場合と比較して、ref_idxおよびmvd情報の保持に必要なメモリ領域を半分にできる。このため、画面間予測のブロックタイプを、16x16画素単位のみに制限することにより、従来、1MB分の隣接MBにおけるref_idxおよびmvd情報を保持していたメモリ領域に、2MB分のref_idxおよびmvd情報を保持することが可能となる。   In addition, when performing inter-screen prediction in units of 16 × 8 pixels and 8 × 16 pixels, the syntax of ref_idx_10 / 1 and mvd_10 / 1 appears for each divided area in the MB. However, if the block type for inter-screen prediction is limited to only 16 × 16 pixel units, the information of ref_idx_10 / 1 and mvd_10 / 1 is one per MB. Therefore, the adjacent MB information holding unit of the arithmetic coding unit 207 can halve the memory area necessary for holding the ref_idx and mvd information, compared to the case of performing inter-screen prediction in units of 16 × 8 pixels and 8 × 16 pixels. For this reason, by restricting the block type of inter prediction to only 16 × 16 pixel units, 2 MB of ref_idx and mvd information are conventionally stored in a memory area that holds ref_idx and mvd information in adjacent MBs of 1 MB. It becomes possible to hold.

さらに、L1予測の制限と、ブロックタイプの制限とは、同時に行うことも可能である。この場合、予測情報符号化部220は、画面内予測の制限を行わない場合と比較して、動きベクトル情報の保持に必要なメモリ領域を、4分の1にできる。このため、L1予測の制限と、ブロックタイプの制限とを同時に行うことにより、従来、1MB分の隣接MBにおける動きベクトル情報を保持していたメモリ領域に、4MB分の動きベクトル情報を保持することが可能となる。   Furthermore, the restriction of L1 prediction and the restriction of block type can be performed simultaneously. In this case, the prediction information encoding unit 220 can reduce the memory area necessary for holding the motion vector information to a quarter compared with the case where the intra prediction is not limited. For this reason, it is possible to hold motion vector information for 4 MB in a memory area that conventionally holds motion vector information for adjacent MBs for 1 MB by simultaneously performing L1 prediction restriction and block type restriction. Is possible.

また、算術符号化部207のコンテキストインデックス算出部251は、画面内予測の制限を行わない場合と比較して、ref_idxおよびmvd情報の保持に必要なメモリ領域を4分の1にできる。このため、L1予測の制限と、ブロックタイプの制限とを同時に行うことにより、従来、1MB分の隣接MBにおける、ref_idxおよびmvd情報を保持していたメモリ領域に、4MB分のref_idxおよびmvd情報を保持することが可能となる。   Further, the context index calculation unit 251 of the arithmetic encoding unit 207 can reduce the memory area necessary for holding the ref_idx and mvd information to a quarter compared with the case where the intra prediction is not limited. For this reason, by performing restriction of L1 prediction and restriction of block type at the same time, ref_idx and mvd information for 4 MB are conventionally stored in a memory area that holds ref_idx and mvd information in an adjacent MB for 1 MB. It becomes possible to hold.

以上の通り、画面間予測方法の制限により、予測情報符号化部220が必要とするメモリ容量を削減できることを利用し、符号化制御部200は、入力画像サイズが大きい場合には、画面間予測部201に対して画面間予測方法を制限するよう通知するとともに、予測情報符号化部220に対して、メモリの所定の領域あたりに蓄積可能な隣接マクロブロック情報の数を変更するように通知する。これにより、入力画像サイズが大きくなった際の、予測情報符号化部520内部の隣接MB情報メモリの容量増大を抑制することが可能となる。   As described above, by utilizing the fact that the memory capacity required by the prediction information encoding unit 220 can be reduced due to the limitation of the inter-screen prediction method, the encoding control unit 200 can predict inter-screen prediction when the input image size is large. Notifying the unit 201 to limit the inter-screen prediction method, and notifying the prediction information encoding unit 220 to change the number of adjacent macroblock information that can be accumulated per predetermined area of the memory . Accordingly, it is possible to suppress an increase in the capacity of the adjacent MB information memory in the prediction information encoding unit 520 when the input image size increases.

また、画面間予測方法の制限により、コンテキストインデックス算出部251が必要とするメモリ容量を削減できることを利用し、符号化制御部200は、入力画像サイズが大きい場合には、画面間予測部201に対して、画面間予測方法を制限するよう通知するとともに、コンテキストインデックス算出部251に対して、メモリの所定の領域あたりに蓄積可能な隣接マクロブロック情報の数を変更するように通知する。   Further, by utilizing the fact that the memory capacity required by the context index calculation unit 251 can be reduced due to the limitation of the inter-screen prediction method, the encoding control unit 200 uses the inter-screen prediction unit 201 when the input image size is large. In addition, a notification is made to limit the inter-screen prediction method, and the context index calculation unit 251 is notified to change the number of adjacent macroblock information that can be accumulated per predetermined area of the memory.

具体的には、画面間予測方法の制限により空いたメモリ領域に、画像サイズが大きくなったために増えた、隣接MBのシンタックス情報を格納する。これにより、入力画像サイズが大きくなった際の、コンテキストインデックス算出部251内部の隣接MB情報メモリ(例えば、図16の隣接MB情報メモリ160)の容量増大を抑制することが可能となる。   Specifically, the syntax information of the adjacent MB, which is increased because the image size is increased, is stored in a free memory area due to the restriction of the inter-screen prediction method. This makes it possible to suppress an increase in the capacity of the adjacent MB information memory (for example, the adjacent MB information memory 160 in FIG. 16) inside the context index calculation unit 251 when the input image size increases.

上記本実施の形態1における画像符号化装置100は、入力される画像の画像サイズに応じて符号化方式を限定するとともに、それと連動して算術符号化および予測情報符号化の際に参照するメモリ(蓄積部160a(隣接MB情報メモリ160))の、所定の領域あたりに蓄積可能な隣接マクロブロック情報の数を変更する。これにより、入力画像サイズが大きくなった場合でも、算術符号化、および予測情報符号化に必要なメモリ容量の増大を抑制できる。   The image coding apparatus 100 according to the first embodiment limits a coding method in accordance with the image size of an input image, and is a memory that is referred to when performing arithmetic coding and prediction information coding in conjunction with the coding method. The number of adjacent macroblock information that can be stored per predetermined area in (storage unit 160a (adjacent MB information memory 160)) is changed. Thereby, even when the input image size becomes large, an increase in memory capacity necessary for arithmetic coding and prediction information coding can be suppressed.

(実施の形態2)
図10は、実施の形態1における画像符号化装置300のハードウェア構成を示す図である。画像符号化装置300は、符号化制御部400、画面間予測部501、画面内予測部402、モード選択部503、直交変換部504、量子化部505、2値化部506、逆量子化部510、逆直交変換部511、再構成画像生成部512、デブロック処理部413、予測情報符号化部420、算術符号化部407を備える。
(Embodiment 2)
FIG. 10 is a diagram illustrating a hardware configuration of the image encoding device 300 according to the first embodiment. The image encoding apparatus 300 includes an encoding control unit 400, an inter-screen prediction unit 501, an intra-screen prediction unit 402, a mode selection unit 503, an orthogonal transform unit 504, a quantization unit 505, a binarization unit 506, and an inverse quantization unit. 510, an inverse orthogonal transform unit 511, a reconstructed image generation unit 512, a deblock processing unit 413, a prediction information coding unit 420, and an arithmetic coding unit 407.

図11は、算術符号化部407の機能的な構成を示すブロック図である。
また、算術符号化部407は、図11に示す通り、コンテキストインデックス算出部451、シンボル発生確率情報保持部552、2値算術符号化部553を備える。
FIG. 11 is a block diagram illustrating a functional configuration of the arithmetic encoding unit 407.
The arithmetic coding unit 407 includes a context index calculation unit 451, a symbol occurrence probability information holding unit 552, and a binary arithmetic coding unit 553 as shown in FIG.

なお、画面間予測部501、モード選択部503、直交変換部504、量子化部505、2値化部506、逆量子化部510、逆直交変換部511、再構成画像生成部512、シンボル発生確率情報保持部552、2値算術符号化部553、および参照画像蓄積部600は、それぞれ、従来例として示した、図1(および図2)に示した画像符号化装置500、および算術符号化部507において、同じ符号および名称を持つ構成要素と同様のものであり、その詳細な説明は適宜、省略する。   Note that the inter-screen prediction unit 501, mode selection unit 503, orthogonal transform unit 504, quantization unit 505, binarization unit 506, inverse quantization unit 510, inverse orthogonal transform unit 511, reconstructed image generation unit 512, symbol generation The probability information holding unit 552, the binary arithmetic encoding unit 553, and the reference image storage unit 600 are respectively the image encoding device 500 and the arithmetic encoding shown in FIG. In the part 507, it is the same as that of the component which has the same code | symbol and a name, The detailed description is abbreviate | omitted suitably.

以下、画像符号化装置300における、画像符号化方法について説明する。
符号化制御部400は、外部から与えられる入力画像サイズの情報を元に、MBAFF(Macro Block Adaptive Frame/Field)符号化の実行を切り替える。この切り替えを行うのとともに、符号化制御部400は、画面内予測部402、デブロック処理部413、予測情報符号化部420、算術符号化部407に、メモリの所定の領域あたりに蓄積可能な隣接マクロブロック情報の数を変更する制御情報を出力する。
Hereinafter, an image encoding method in the image encoding apparatus 300 will be described.
The encoding control unit 400 switches execution of MBAFF (Macro Block Adaptive Frame / Field) encoding based on information of an input image size given from the outside. In addition to performing this switching, the encoding control unit 400 can store in the in-screen prediction unit 402, the deblock processing unit 413, the prediction information encoding unit 420, and the arithmetic encoding unit 407 per predetermined area of the memory. Control information for changing the number of adjacent macroblock information is output.

図12は、MBAFF(Macro Block Adaptive Frame/Field)符号化方法を示す図である。   FIG. 12 is a diagram illustrating an MBAFF (Macro Block Adaptive Frame / Field) encoding method.

まず、MBAFF符号化について説明する。MBAFF符号化とは、図12に示す通り、上下2つの隣接MBにより構成されるMBペア単位で、フィールドもしくはフレーム符号化を切り替える符号化方式である。MBAFFを用いた場合、算術符号化において、コンテキストインデックス計算で用いる隣接MBは、MBが、フィールド符号化されたか、フレーム符号化されたかによって異なる。   First, MBAFF encoding will be described. As shown in FIG. 12, MBAFF encoding is an encoding method that switches field or frame encoding in units of MB pairs composed of two adjacent upper and lower MBs. When MBAFF is used, adjacent MBs used in context index calculation in arithmetic coding differ depending on whether the MB is field-coded or frame-coded.

図13は、上隣接MBペアがフィールド符号化された場合の例を示す図である。
この場合、符号化対象MBペアを、フィールド符号化するかフレーム符号化するかによって、算術符号化部407は、上隣接MBペアのどちらのフィールドの情報を、上隣接MBとして用いるかが異なる。よって、コンテキストインデックス算出部451は、MBペアのいずれのMB情報も保持する必要があり、通常の符号化を行う場合と比較して、2倍のメモリ領域を確保する必要がある。
FIG. 13 is a diagram illustrating an example when the upper adjacent MB pair is field-encoded.
In this case, depending on whether the encoding target MB pair is field-encoded or frame-encoded, the arithmetic encoding unit 407 differs in which field information of the upper adjacent MB pair is used as the upper adjacent MB. Therefore, the context index calculation unit 451 needs to hold any MB information of the MB pair, and needs to secure twice as many memory areas as compared with the case of performing normal encoding.

そこで、符号化制御部400は、入力画像サイズが大きい場合には、MBAFF符号化を制限するとともに、コンテキストインデックス算出部451に対して、メモリの所定の領域あたりに蓄積可能な隣接MB情報の数を変更するように通知する。具体的には、MBAFFの制限により空いたメモリ領域に、画像サイズが大きくなったために増えた隣接MBのシンタックス情報を格納する。これにより、入力画像サイズが大きくなった際の隣接MB情報メモリの容量増大を抑制することが可能となる。   Therefore, the encoding control unit 400 restricts MBAFF encoding when the input image size is large, and the number of adjacent MB information that can be accumulated per predetermined area of the memory with respect to the context index calculation unit 451. Notify me to change Specifically, the syntax information of the adjacent MB that is increased due to the increase in the image size is stored in a memory area that is free due to the restriction of MBAFF. This makes it possible to suppress an increase in the capacity of the adjacent MB information memory when the input image size increases.

また、予測情報符号化部420が用いる上隣接MB情報についても同様に、図13に示す通り、符号化対象MBペアを、フィールド符号化するかフレーム符号化するかによって、上隣接MBペアのどちらのフィールドの情報を、上隣接MBとして用いるかが異なる。よって、予測情報符号化部420は、MBペアの両方のMBの、動きベクトル情報および画面内予測モード情報も保持する必要があり、通常の符号化を行う場合と比較して、2倍のメモリ領域を確保する必要がある。   Similarly, for the upper adjacent MB information used by the prediction information encoding unit 420, as shown in FIG. 13, which of the upper adjacent MB pairs depends on whether the encoding target MB pair is field-encoded or frame-encoded. The field information is used as the upper adjacent MB. Therefore, the prediction information encoding unit 420 also needs to hold motion vector information and intra prediction mode information of both MBs in the MB pair, and has twice as much memory as the case of performing normal encoding. It is necessary to secure an area.

そこで、符号化制御部400は、入力画像サイズが大きい場合には、MBAFF符号化を制限するとともに、予測情報符号化部420に対して、メモリの所定の領域あたりに蓄積可能な隣接MB情報の数を変更するように通知する。具体的には、MBAFFの制限により空いたメモリ領域に、画像サイズが大きくなったために増えた隣接MB情報を格納する。これにより、入力画像サイズが大きくなった際の、隣接MB情報メモリの容量増大を抑制することが可能となる。   Therefore, when the input image size is large, the encoding control unit 400 restricts MBAFF encoding, and also notifies the prediction information encoding unit 420 of adjacent MB information that can be accumulated per predetermined area of the memory. Notify you to change the number. Specifically, the adjacent MB information increased due to the increase in the image size is stored in a memory area that is free due to the restriction of MBAFF. Thereby, it is possible to suppress an increase in the capacity of the adjacent MB information memory when the input image size becomes large.

図14は、MBAFF符号化時の画面内予測に用いる上隣接画素を示す図である。
また、画面内予測部402が用いる上隣接画素についても同様に、図14に示す通り、符号化対象MBペアを、フィールド符号化するかフレーム符号化するかによって、左上、上、および右上の各隣接MBペアのどの位置の画素を予測に用いるかが異なる。よって、画面内予測部402は、いずれのラインの画素も保持する必要があり、通常の符号化を行う場合と比較して、2倍のメモリ領域を確保する必要がある。
FIG. 14 is a diagram illustrating upper adjacent pixels used for intra-screen prediction at the time of MBAFF encoding.
Similarly, for the upper adjacent pixels used by the intra prediction unit 402, as shown in FIG. 14, depending on whether the encoding target MB pair is field-encoded or frame-encoded, It differs in which pixel of the adjacent MB pair is used for prediction. Therefore, the intra-screen prediction unit 402 needs to hold the pixels of any line, and needs to secure twice as much memory area as compared with the case of performing normal encoding.

そこで、符号化制御部400は、入力画像サイズが大きい場合には、MBAFF符号化を制限するとともに、画面内予測部402に対して、メモリの所定の領域あたりに蓄積可能な隣接MB情報の数を変更するように通知する。具体的には、MBAFFの制限により空いたメモリ領域に、画像サイズが大きくなったために増えた隣接MBの画素情報を格納する。これにより、入力画像サイズが大きくなった際の、隣接MB情報メモリの容量増大を抑制することが可能となる。   Therefore, the encoding control unit 400 restricts MBAFF encoding when the input image size is large, and the number of adjacent MB information that can be stored per predetermined area of the memory with respect to the intra prediction unit 402. Notify me to change Specifically, the pixel information of the adjacent MB that has increased due to the increase in the image size is stored in a memory area that is free due to the limitation of MBAFF. Thereby, it is possible to suppress an increase in the capacity of the adjacent MB information memory when the input image size becomes large.

図15は、MBAFF符号化時のデブロック処理に用いる上隣接画素を示す図である。
また、デブロック処理部413が用いる上隣接画素については、図15に示す通り、符号化対象MBペアをフィールド符号化する場合、非MBAFFの符号化に比べて、2倍のライン数の上隣接画素を処理に用いる。よって、デブロック処理部413は、通常の符号化を行う場合と比較して、2倍のメモリ領域を確保する必要がある。
FIG. 15 is a diagram illustrating upper adjacent pixels used in the deblocking process at the time of MBAFF encoding.
Further, as shown in FIG. 15, the upper adjacent pixels used by the deblocking processing unit 413 are, when the encoding target MB pair is field-encoded, the number of upper adjacent pixels twice as many as that of non-MBAFF encoding. Pixels are used for processing. Therefore, the deblocking processing unit 413 needs to secure twice as much memory area as compared with the case of performing normal encoding.

そこで、符号化制御部400は、入力画像サイズが大きい場合には、MBAFF符号化を制限するとともに、デブロック処理部413に対して、メモリの所定の領域あたりに蓄積可能な隣接MB情報の数を変更するように通知する。具体的には、MBAFFの制限により空いたメモリ領域に、画像サイズが大きくなったために増えた隣接MBの画素情報を格納する。これにより、入力画像サイズが大きくなった際の隣接MB情報メモリの容量増大を抑制することが可能となる。   Therefore, the encoding control unit 400 restricts MBAFF encoding when the input image size is large, and also allows the deblocking processing unit 413 to store the number of adjacent MB information that can be accumulated per predetermined area of the memory. Notify me to change Specifically, the pixel information of the adjacent MB that has increased due to the increase in the image size is stored in a memory area that is free due to the limitation of MBAFF. This makes it possible to suppress an increase in the capacity of the adjacent MB information memory when the input image size increases.

上記本実施の形態2における画像符号化装置300は、入力される画像の画像サイズに応じて、MBAFF符号化を制限する。この制限を行うのとともに、それと連動して、画像符号化装置300は、算術符号化、予測情報符号化、画面内予測符号化、およびデブロック処理の際に参照するメモリ(算術符号化部407の隣接MB情報メモリ(隣接MB情報メモリ160)、予測情報符号化部420の隣接MB情報メモリ、画面内予測部402の隣接MB情報メモリ、デブロック処理部413の隣接MB情報メモリ)の、所定の領域あたりに蓄積可能な隣接マクロブロック情報の数を変更する。これにより、入力画像サイズが大きくなった場合でも、算術符号化、予測情報符号化、画面内予測符号化、およびデブロック処理に必要なメモリ容量の増大を抑制できる。   The image encoding device 300 according to the second embodiment limits MBAFF encoding according to the image size of the input image. In addition to performing this restriction, the image coding apparatus 300 is linked to the memory (arithmetic coding unit 407) that is referred to during arithmetic coding, prediction information coding, intra-frame prediction coding, and deblocking processing. Adjacent MB information memory (adjacent MB information memory 160), adjacent MB information memory of the prediction information encoding unit 420, adjacent MB information memory of the intra prediction unit 402, and adjacent MB information memory of the deblock processing unit 413) The number of adjacent macroblock information that can be accumulated per area is changed. Thereby, even when the input image size becomes large, an increase in memory capacity necessary for arithmetic coding, prediction information coding, intra prediction coding, and deblocking processing can be suppressed.

具体的には、実施の形態の画像符号化装置において、例えば、次の処理が行われてもよい。   Specifically, in the image encoding device according to the embodiment, for example, the following processing may be performed.

図16は、符号化制御部による、画面間予測部、コンテキストインデックス算出部の制御を示す図である。   FIG. 16 is a diagram illustrating control of the inter-screen prediction unit and the context index calculation unit by the encoding control unit.

符号化処理部161aは、画面間予測部201(第1の処理部)と、隣接MB情報処理部161(第2の処理部)とを含む。また、蓄積部160aは、隣接MB情報メモリ160を含む。   The encoding processing unit 161a includes an inter-screen prediction unit 201 (first processing unit) and an adjacent MB information processing unit 161 (second processing unit). The storage unit 160a includes an adjacent MB information memory 160.

符号化制御部200(図17のS1)は、当該画像符号化装置に入力された画像の画像サイズ(図7の横幅200a参照)が予め定められたサイズよりも小さい場合には、画面間予測部201、およびコンテキストインデックス算出部251に対して、予め定められた通知(先述)を行わず、大きい場合に通知を行う。   The encoding control unit 200 (S1 in FIG. 17) performs inter-screen prediction when the image size of the image input to the image encoding apparatus (see the horizontal width 200a in FIG. 7) is smaller than a predetermined size. A predetermined notification (previously described) is not performed to the unit 201 and the context index calculation unit 251, but a notification is performed when it is large.

画面間予測部201(S2(Sx))は、符号化制御部200より上述の通知がされない場合にのみ、画面間予測(第1の処理)を行うのに際して、L1予測(所定の方式)を用い、通知がされる場合には、L1予測を用いない。   The inter-screen prediction unit 201 (S2 (Sx)) performs L1 prediction (predetermined method) when performing the inter-screen prediction (first process) only when the above-described notification is not received from the encoding control unit 200. When used and notified, L1 prediction is not used.

また、隣接MB情報メモリ160(蓄積部160a、S3)は、符号化制御部200よりコンテキストインデックス算出部251に対して上述の通知がされない場合、第1の個数の隣接マクロブロックを蓄積し、通知がされる場合には、第1の個数よりも多い第2の個数の隣接MB情報を蓄積する。   Also, the adjacent MB information memory 160 (accumulation unit 160a, S3) accumulates the first number of adjacent macroblocks when the above-mentioned notification is not sent from the encoding control unit 200 to the context index calculation unit 251. When the number of adjacent MBs is increased, the second number of adjacent MB information larger than the first number is stored.

ここで、隣接MB情報メモリ160は、第1の個数の隣接MB情報が蓄積され、かつ、L1予測が用いられる、上述の通知がされない場合においては、第1の隣接MB情報(ref_idx_l1およびmvd_l1を含む)を蓄積する。   Here, the adjacent MB information memory 160 stores the first adjacent MB information (ref_idx_l1 and mvd_l1) when the first number of adjacent MB information is accumulated and the above notification is used in which L1 prediction is used. Including).

他方、第2の個数の隣接MB情報が蓄積され、L1予測が用いられない、上述の通知がされる場合においては、隣接MB情報メモリ160は、第1の隣接MB情報には含まれる予め定められた情報(ref_idx_l1およびmvd_l1)を含まない、第2の隣接MB情報を蓄積する。   On the other hand, in the case where the above-mentioned notification is made, in which the second number of adjacent MB information is accumulated and L1 prediction is not used, the adjacent MB information memory 160 includes a predetermined number included in the first adjacent MB information. Second neighboring MB information that does not include the received information (ref_idx_l1 and mvd_l1) is stored.

このときには、隣接MB情報メモリ160が、所定の領域あたりに蓄積可能な隣接MB情報の個数は、第1の隣接MB情報を蓄積する場合よりも多い。これは、第2の隣接MB情報は、上記予め定められた情報が含まれないので、他方の第1の隣接MB情報よりも小さな容量で蓄積可能なためである。   At this time, the number of adjacent MB information that can be stored per predetermined area in the adjacent MB information memory 160 is larger than that in the case of storing the first adjacent MB information. This is because the second adjacent MB information does not include the predetermined information and can be stored with a smaller capacity than the other first adjacent MB information.

ここで、上記の予め定められた情報は、L1予測が用いられるときにのみ、コンテキストインデックスの算出(第2の処理)で用いられ、L1予測が用いられないときには、当該算出で用いられない情報(ref_idx_l1等)である。   Here, the predetermined information is used in the context index calculation (second process) only when L1 prediction is used, and is not used in the calculation when L1 prediction is not used. (Ref_idx_l1 etc.).

そして、コンテキストインデックス算出部251が、コンテキストインデックスの算出(第2の処理)を行う際に、画面間予測部201において、L1予測が用いられていれば、コンテキストインデックス算出部251の隣接MB情報処理部161(S4(Sx))が、上述の予め定められた情報(ref_idx_l1等)を用い、L1予測が用いられていなければ、当該情報を用いない。   If the L1 prediction is used in the inter-screen prediction unit 201 when the context index calculation unit 251 calculates the context index (second processing), the adjacent MB information processing of the context index calculation unit 251 is performed. The unit 161 (S4 (Sx)) uses the above-described predetermined information (ref_idx_l1, etc.) and does not use the information unless L1 prediction is used.

これにより、AVC/H.264に準拠した符号化の処理が行われる。
ただし、先述のように、入力される画像の画像サイズ(例えば、図7の横幅200aの個数+1)が大きいと、所定の領域あたりに蓄積される隣接MB情報の個数が多い。
As a result, AVC / H. H.264 encoding processing is performed.
However, as described above, when the image size of the input image (for example, the number of horizontal widths 200a in FIG. 7 + 1) is large, the number of adjacent MB information accumulated per predetermined area is large.

つまり、画像サイズが大きいときには、上述の通知がされ、L1予測を用いず、L0予測のみを用いるなどして、処理の方式を制限する。この制限がされたときには、予め定められた情報(ref_idx_l1等)が、コンテキストインデックスの算出で用いられない。そこで、通知がされたときには、この情報が含まれず、比較的小さな容量で蓄積可能な第2の隣接MB情報が、蓄積部に蓄積され、上述のように、所定の領域あたりに、比較的多くの個数が蓄積される。これにより、蓄積部の容量が小さくても、大きな画像サイズに対応する、多い個数の隣接MB情報が蓄積され、蓄積部の容量増大が回避され、蓄積部の容量が小さくできる。   That is, when the image size is large, the above notification is given, and the processing method is limited by using only the L0 prediction without using the L1 prediction. When this restriction is applied, predetermined information (such as ref_idx_l1) is not used in the calculation of the context index. Therefore, when notified, the second adjacent MB information that does not include this information and can be stored with a relatively small capacity is stored in the storage unit, and as described above, a relatively large amount per predetermined area. Are accumulated. As a result, even if the capacity of the storage unit is small, a large number of adjacent MB information corresponding to a large image size is stored, an increase in the capacity of the storage unit is avoided, and the capacity of the storage unit can be reduced.

なお、ここで、L1予測(所定の方式の処理)が用いられるときには、第2の隣接MB情報よりも大きい第1の隣接MB情報によりコンテキストインデックスの算出が行われたときにのみ、適切な処理がされ、第1の隣接MB情報よりも小さい第2の隣接MB情報により算出がされると、不適切な処理がされる。一方、L1予測が用いられないときには、第1の隣接MB情報よりも小さい第2の隣接MB情報により、コンテキストインデックスが算出されても、適切な処理がされる。   Here, when L1 prediction (predetermined method processing) is used, appropriate processing is performed only when the context index is calculated based on the first adjacent MB information larger than the second adjacent MB information. If the calculation is performed based on the second adjacent MB information smaller than the first adjacent MB information, an inappropriate process is performed. On the other hand, when L1 prediction is not used, appropriate processing is performed even if the context index is calculated based on the second adjacent MB information smaller than the first adjacent MB information.

L1予測(所定の方式の処理)、および、第2の隣接MB情報は、互いに、この関係を有する処理および情報である。そして、このような第2の隣接MB情報は、具体的には、例えば、先述の通り、第1の隣接MB情報には含まれるref_idx_l1等(予め定められた情報)が含まれない情報であってもよい。   The L1 prediction (predetermined method processing) and the second adjacent MB information are processing and information having this relationship with each other. The second adjacent MB information is specifically information that does not include ref_idx_l1 and the like (predetermined information) included in the first adjacent MB information as described above. May be.

なお、実施の形態2で説明されたように、例えば、符号化制御部(図10の符号化制御部400)から、予め定められた通知がされない場合にのみ、MBAFF符号化がされ、通知がされた場合には、MBAFF符号化がされず、MBAFF符号化が制限されてもよい。   As described in the second embodiment, for example, only when a predetermined notification is not given from the encoding control unit (encoding control unit 400 in FIG. 10), the MBAFF encoding is performed and the notification is received. In this case, MBAFF encoding may not be performed and MBAFF encoding may be limited.

そして、先述のように、符号化制御部400による通知の通知先は、算術符号化部407と、予測情報符号化部420と、画面内予測部402と、デブロック処理部413とを含み、これらの複数の構成のそれぞれの隣接MB情報メモリ(算術符号化部407の隣接MB情報メモリ160など)の容量が低減されてもよい。   As described above, the notification destination of the notification by the encoding control unit 400 includes the arithmetic encoding unit 407, the prediction information encoding unit 420, the intra-screen prediction unit 402, and the deblock processing unit 413. The capacity of each adjacent MB information memory (such as the adjacent MB information memory 160 of the arithmetic encoding unit 407) having the plurality of configurations may be reduced.

つまり、画像符号化装置300の蓄積部160aは、コンテキストインデックス算出部451の隣接MB情報メモリ160だけでなく、予測情報符号化部420などの他の構成の隣接MB情報メモリをさらに含んでもよい。   That is, the storage unit 160a of the image encoding device 300 may further include not only the adjacent MB information memory 160 of the context index calculation unit 451 but also an adjacent MB information memory having another configuration such as the prediction information encoding unit 420.

そして、符号化処理部161aは、コンテキストインデックス算出部451の隣接MB情報処理部161だけでなく、他の構成の隣接MB情報処理部をさらに含んでもよい。   And the encoding process part 161a may further contain not only the adjacent MB information processing part 161 of the context index calculation part 451 but the adjacent MB information processing part of another structure.

なお、蓄積部160aは、上述の複数の隣接MB情報メモリのうちの1つのみを含み、符号化処理部161aは、その隣接MB情報メモリに対応する、1つの隣接MB情報処理部のみを含んでもよい。   Storage unit 160a includes only one of the plurality of adjacent MB information memories described above, and encoding processing unit 161a includes only one adjacent MB information processing unit corresponding to the adjacent MB information memory. But you can.

なお、符号化処理部161aは、画面間予測部201と、それらの1以上の隣接MB情報処理部(隣接MB情報処理部161等)と共に、それら以外の他の構成をさらに含んでもよい。例えば、コンテキストインデックス算出部251が、符号化処理部161aに含まれてもよく、符号化処理部161aの一部分であってもよい。また、例えば、符号化処理部161aは、画像符号化装置100の各機能ブロック(図8等)のうちの、符号化制御部200、および、各隣接MB情報メモリ(隣接MB情報メモリ160a等)以外のその他(の全て)であってもよい。   The encoding processing unit 161a may further include other configurations in addition to the inter-screen prediction unit 201 and one or more adjacent MB information processing units (adjacent MB information processing unit 161 and the like). For example, the context index calculation unit 251 may be included in the encoding processing unit 161a or may be a part of the encoding processing unit 161a. Further, for example, the encoding processing unit 161a includes the encoding control unit 200 and the adjacent MB information memories (adjacent MB information memory 160a and the like) among the functional blocks (FIG. 8 and the like) of the image encoding device 100. Others (all) other than.

なお、先述のように、符号化制御部から、予め定められた通知がされた場合には、16x16画素単位での画面間予測のみが行われ、16x16画素より小さい単位(16x8画素単位、8x16画素単位)での画面間符号化が行われず、制限されてもよい(実施の形態1参照)。そして、具体的には、先述ように、第1の隣接マクロブロック情報は、それぞれの情報が、複数の小さい領域(16x8画素単位の領域など)の1つに対応する複数の情報を含み、第2の隣接マクロブロック情報は、1つの大きい領域(16x16画素単位の領域等)に対応する1つの情報のみを含んでおり、比較的小さな容量で蓄積可能なものであってもよい。   As described above, when a predetermined notification is received from the encoding control unit, only inter-screen prediction is performed in units of 16 × 16 pixels, and units smaller than 16 × 16 pixels (16 × 8 pixel units, 8 × 16 pixels). Inter-frame coding in units) may not be performed and may be limited (see Embodiment 1). Specifically, as described above, the first adjacent macroblock information includes a plurality of pieces of information each corresponding to one of a plurality of small regions (regions in units of 16 × 8 pixels). The two adjacent macroblock information includes only one piece of information corresponding to one large region (region of 16 × 16 pixel unit or the like), and may be information that can be stored with a relatively small capacity.

なお、本発明に係わる画像符号化装置(画像符号化装置100、300)は、CPU(Central Processing Unit)、システムLSI(Large Scale Integration)、RAM(Random Access Memory)、ROM(Read Only Memory)、HDD(Hard Disk Drive)、ネットワークインターフェース等を備えるとしてもよい。さらに、DVD−RAM、Blu−rayディスク、SD(Secure Digital)メモリカードのような、可搬性の記録媒体に対して読み書き可能なドライブ装置を備えるとしてもよい。   Note that an image encoding device (image encoding device 100, 300) according to the present invention includes a CPU (Central Processing Unit), a system LSI (Large Scale Integration), a RAM (Random Access Memory), a ROM (Read Only Memory), An HDD (Hard Disk Drive), a network interface, or the like may be provided. Furthermore, a drive device capable of reading and writing with respect to a portable recording medium such as a DVD-RAM, a Blu-ray disk, and an SD (Secure Digital) memory card may be provided.

なお、画像符号化装置は、デジタルビデオカメラ、デジタルレコーダ、デジタルテレビ、ゲーム機、携帯電話機等のような組み込みシステムとしてもよい。   Note that the image encoding device may be an embedded system such as a digital video camera, a digital recorder, a digital television, a game machine, or a mobile phone.

さらに、HDDまたはROM等に、画像符号化装置を制御するプログラム(以下、符号化プログラムと呼称する。)がインストールされており、符号化プログラムが実行されることによって、画像符号化装置の各機能が実現されるとしてもよい。   Further, a program for controlling the image encoding device (hereinafter referred to as an encoding program) is installed in the HDD or ROM, and each function of the image encoding device is executed by executing the encoding program. May be realized.

なお、画像符号化プログラムは、コンピュータシステム、組み込みシステム等のようなハードウェアシステムに読み取り可能な記録媒体に記録されているとしてもよい。さらに、記録媒体を介して他のハードウェアシステムに読み出されて実行されるとしてもよい。これによって、画像符号化装置の各機能を他のハードウェアシステムに実現することができる。ここで、コンピュータシステム読み取り可能な記録媒体として、光学記録媒体(例えば、CD−ROM等。)、磁気記録媒体(例えば、ハードディスク等。)、光磁気記録媒体(例えば、MO等。)、半導体メモリ(例えば、メモリカード等。)等がある。   The image encoding program may be recorded on a recording medium readable by a hardware system such as a computer system or an embedded system. Furthermore, the program may be read and executed by another hardware system via the recording medium. Thereby, each function of the image coding apparatus can be realized in another hardware system. Here, as a computer system-readable recording medium, an optical recording medium (for example, a CD-ROM), a magnetic recording medium (for example, a hard disk), a magneto-optical recording medium (for example, an MO), or a semiconductor memory. (For example, a memory card).

また、画像符号化プログラムは、インターネット、ローカルエリアネットワーク等のようなネットワークに接続されているハードウェアシステムに保持されているとしてもよい。さらに、ネットワークを介して他のハードウェアシステムにダウンロードされて実行されるとしてもよい。これによって、画像符号化装置の各機能を、他のハードウェアシステムに実現することができる。ここで、ネットワークとして、地上放送網、衛星放送網、PLC(Power Line Communication)、移動電話網、有線通信網(例えば、IEEE802.3等。)、無線通信網(例えば、IEEE802.11等。)がある。   The image encoding program may be held in a hardware system connected to a network such as the Internet or a local area network. Furthermore, it may be downloaded to another hardware system via a network and executed. Thereby, each function of the image coding apparatus can be realized in another hardware system. Here, as a network, a terrestrial broadcast network, a satellite broadcast network, a PLC (Power Line Communication), a mobile telephone network, a wired communication network (for example, IEEE802.3), and a wireless communication network (for example, IEEE802.11). There is.

または、記録再生装置に実装される記録再生回路によって、記録再生装置の各機能が実現されるとしてもよい。   Alternatively, each function of the recording / reproducing apparatus may be realized by a recording / reproducing circuit mounted on the recording / reproducing apparatus.

なお、画像符号化回路は、フルカスタムLSI(Large Scale Integration)、ASIC(Application Specific Integrated Circuit)等のようなセミカスタムLSI、FPGA(Field Programmable Gate Array)やCPLD(Complex Programmable Logic Device)等のようなプログラマブル・ロジック・デバイス、動的に回路構成が書き換え可能なダイナミック・リコンフィギュラブル・デバイスにより形成されるとしてもよい。   The image coding circuit is a semi-custom LSI such as a full custom LSI (Large Scale Integration), ASIC (Application Specific Integrated Circuit), or a FPGA (Field Programmable Gate Array) or CPLD (Complex Gate Gate Array). Such a programmable logic device or a dynamically reconfigurable device whose circuit configuration can be dynamically rewritten may be used.

さらに、画像符号化装置の各機能を画像符号化回路に形成する設計データは、ハードウェア記述言語によって記述されたプログラム(以下、HDLプログラムと称す。)としてもよい。さらに、HDLプログラムを論理合成して得られる、ゲート・レベルのネットリストとしてもよい。また、ゲート・レベルのネットリストに、配置情報、プロセス条件等を付加したマクロセル情報としてもよい。また、寸法、タイミング等が規定されたマスクデータとしてもよい。ここで、ハードウェア記述言語として、VHDL(Very high speed integrated circuit Hardware Description Language)、Verilog−HDL、SystemCがある。   Furthermore, the design data for forming each function of the image encoding device in the image encoding circuit may be a program described in a hardware description language (hereinafter referred to as an HDL program). Further, it may be a gate level netlist obtained by logical synthesis of an HDL program. Alternatively, macro cell information in which arrangement information, process conditions, and the like are added to a gate level netlist may be used. Further, it may be mask data in which dimensions, timing, and the like are defined. Here, as hardware description languages, there are VHDL (Very high speed integrated circuit Hardware Description Language), Verilog-HDL, and SystemC.

さらに、設計データは、コンピュータシステム、組み込みシステム等のようなハードウェアシステムにおける、読み取り可能な記録媒体に記録されているとしてもよい。さらに、記録媒体を介して、他のハードウェアシステムに読み出されて実行されるとしてもよい。そして、これらの記録媒体を介して、他のハードウェアシステムに読み取られた設計データが、ダウンロードケーブルを介して、プログラマブル・ロジック・デバイスにダウンロードされるとしてもよい。   Furthermore, the design data may be recorded on a readable recording medium in a hardware system such as a computer system or an embedded system. Further, the program may be read and executed by another hardware system via the recording medium. Then, the design data read by the other hardware system via these recording media may be downloaded to the programmable logic device via the download cable.

または、設計データは、インターネット、ローカルエリアネットワーク等のようなネットワークに接続されているハードウェアシステムに保持されているとしてもよい。さらに、ネットワークを介して、他のハードウェアシステムにダウンロードされて実行されるとしてもよい。そして、これらのネットワークを介して、他のハードウェアシステムに取得された設計データが、ダウンロードケーブルを介して、プログラマブル・ロジック・デバイスにダウンロードされるとしてよい。   Alternatively, the design data may be held in a hardware system connected to a network such as the Internet or a local area network. Furthermore, it may be downloaded to another hardware system via a network and executed. Then, the design data acquired in another hardware system via these networks may be downloaded to the programmable logic device via a download cable.

または、設計データは、通電時にFPGAに転送され得るように、シリアルROMに記録しておくとしてもよい。そして、シリアルROMに記録された設計データは、通電時に、直接、FPGAにダウンロードされるとしてもよい。   Alternatively, the design data may be recorded in a serial ROM so that it can be transferred to the FPGA when energized. The design data recorded in the serial ROM may be downloaded directly to the FPGA when energized.

または、設計データは、通電時に、マイクロプロセッサによって生成されて、FPGAにダウンロードされるとしてもよい。   Alternatively, the design data may be generated by a microprocessor and downloaded to the FPGA when energized.

本発明を、上記実施の形態に基づいて説明してきたが、本発明は、上記実施の形態に限定されるものではなく、本発明の主旨を逸脱しない範囲内で種々の改良、変形が可能である。例えば、実施の形態1の構成要素と、実施の形態2の構成要素とを組み合わせた形態が採られてもよい。   Although the present invention has been described based on the above embodiment, the present invention is not limited to the above embodiment, and various improvements and modifications can be made without departing from the gist of the present invention. is there. For example, the form which combined the component of Embodiment 1 and the component of Embodiment 2 may be taken.

本発明は、AVC/H.264に準拠した画像符号化装置を提供する。特に、画像符号化装置において、複数のサイズの画像を符号化する場合に有用である。   The present invention relates to AVC / H. An image encoding device compliant with H.264 is provided. In particular, this is useful when an image encoding apparatus encodes images of a plurality of sizes.

100 画像符号化装置
200 符号化制御部
201 画面間予測部
207 算術符号化部
220 予測情報符号化部
502 画面内予測部
503 モード選択部
504 直交変換部
505 量子化部
506 2値化部
510 逆量子化部
511 逆直交変換部
512 再構成画像生成部
513 デブロック処理部
DESCRIPTION OF SYMBOLS 100 Image coding apparatus 200 Coding control part 201 Inter-screen prediction part 207 Arithmetic coding part 220 Prediction information coding part 502 Intra-screen prediction part 503 Mode selection part 504 Orthogonal transformation part 505 Quantization part 506 Binarization part 510 Reverse Quantization unit 511 Inverse orthogonal transform unit 512 Reconstructed image generation unit 513 Deblock processing unit

Claims (14)

入力される画像を符号化する画像符号化装置であって、
前記入力される画像が有する情報のうち、既に符号化済みのマクロブロックに関する隣接マクロブロック情報であって、符号化対象のマクロブロックを符号化する際に参照される隣接マクロブロック情報を蓄積する蓄積部と、
前記隣接マクロブロック情報を基に、前記符号化対象のマクロブロックを符号化する符号化部と、
前記入力される画像の画像サイズに応じて、前記符号化部における符号化方式を変更するとともに、前記蓄積部における、所定の領域あたりに蓄積可能な前記隣接マクロブロック情報の数を変更する符号化制御部とを備える画像符号化装置。
An image encoding device that encodes an input image,
Among the information included in the input image, storage is information about adjacent macroblock information related to a macroblock that has already been encoded, and stores adjacent macroblock information that is referred to when encoding a macroblock to be encoded. And
An encoding unit that encodes the encoding target macroblock based on the adjacent macroblock information;
Coding that changes the coding method in the coding unit and changes the number of adjacent macroblock information that can be accumulated per predetermined area in the storage unit according to the image size of the input image An image encoding device comprising a control unit.
前記符号化制御部は、前記入力される画像の前記画像サイズに応じて、前記符号化部での画面間予測における、参照されるピクチャ数を制限する請求項1に記載の画像符号化装置。   The image encoding device according to claim 1, wherein the encoding control unit limits the number of pictures to be referred to in inter-screen prediction in the encoding unit according to the image size of the input image. 前記符号化制御部は、前記入力される画像の前記画像サイズに応じて、前記符号化部での画面間予測における、マクロブロックの分割数を制限する請求項1に記載の画像符号化装置。   The image encoding device according to claim 1, wherein the encoding control unit limits the number of macroblock divisions in inter-screen prediction in the encoding unit according to the image size of the input image. 前記符号化制御部は、前記入力される画像の前記画像サイズに応じて、前記符号化部での、マクロブロック単位でのフレーム符号化およびフィールド符号化の切り替えを制限する請求項1に記載の画像符号化装置。   2. The encoding control unit according to claim 1, wherein the encoding control unit restricts switching between frame encoding and field encoding in units of macroblocks in the encoding unit according to the image size of the input image. Image encoding device. 前記隣接マクロブロック情報は、前記符号化部における算術符号化処理に用いられる情報である請求項1に記載の画像符号化装置。   The image coding apparatus according to claim 1, wherein the adjacent macroblock information is information used for arithmetic coding processing in the coding unit. 前記隣接マクロブロック情報は、符号化ストリーム中の動きベクトル情報の算出に用いられる情報である請求項1に記載の画像符号化装置。   The image coding apparatus according to claim 1, wherein the adjacent macroblock information is information used to calculate motion vector information in an encoded stream. 前記隣接マクロブロック情報は、前記符号化部における画面内予測処理に用いられる画像情報である請求項1に記載の画像符号化装置。   The image coding apparatus according to claim 1, wherein the adjacent macroblock information is image information used for intra prediction processing in the coding unit. 前記隣接マクロブロック情報は、前記符号化部におけるデブロック処理に用いられる情報である請求項1に記載の画像符号化装置。   The image coding apparatus according to claim 1, wherein the adjacent macroblock information is information used for a deblocking process in the coding unit. 前記隣接マクロブロック情報は、符号化ストリーム中の画面内予測モード情報の算出に用いられる情報である請求項1に記載の画像符号化装置。   The image coding apparatus according to claim 1, wherein the adjacent macroblock information is information used for calculation of intra prediction mode information in an encoded stream. 当該画像符号化装置は、前記入力される画像に対して、AVC/H.264に準拠した符号化を行う請求項1に記載の画像符号化装置。   The image encoding apparatus applies an AVC / H. The image encoding apparatus according to claim 1, wherein encoding according to H.264 is performed. 前記符号化部は、第1の処理部と、第2の処理部とを含み、
前記符号化制御部は、入力された前記画像の前記画像サイズが予め定められたサイズより小さい場合には予め定められた通知を行わず、大きい場合に前記通知を行い、
前記第1の処理部は、画面間予測を行い、当該画面間予測を行うのに際して、前記符号化制御部より前記通知がされない場合にのみ、L1予測を用い、前記通知がされる場合には、当該L1予測を用いず、
前記蓄積部は、
前記符号化制御部より前記通知がされない場合には、第1の個数の前記隣接マクロブロック情報を蓄積し、前記通知がされる場合には、前記第1の個数よりも多い第2の個数の前記隣接マクロブロック情報を蓄積し、
比較的少ない前記第1の個数の前記隣接マクロブロック情報が蓄積され、前記L1予測が用いられる、前記通知がされない場合においては、第1の前記隣接マクロブロック情報を蓄積し、
比較的多い前記第2の個数の前記隣接マクロブロック情報が蓄積され、前記L1予測が用いられない、前記通知がされる場合においては、第1の前記隣接マクロブロック情報には含まれる予め定められた情報が含まれない第2の前記隣接マクロブロック情報を蓄積し、第1の前記隣接マクロブロック情報を所定の領域あたりに蓄積する個数よりも多い個数を、当該所定の領域あたりに蓄積し、
前記予め定められた情報は、前記L1予測が用いられるときにのみ、コンテキストインデックスの算出で用いられ、前記L1予測が用いられないときには、当該算出で用いられない情報であり、
前記第2の処理部は、前記コンテキストインデックスの算出を行う際に、前記L1予測が用いられている場合には、前記予め定められた情報を用い、前記L1予測が用いられていない場合には、当該情報を用いない請求項1に記載の画像符号化装置。
The encoding unit includes a first processing unit and a second processing unit,
The encoding control unit does not perform a predetermined notification when the image size of the input image is smaller than a predetermined size, and performs the notification when it is larger,
The first processing unit performs inter-screen prediction, and when performing the inter-screen prediction, the L1 prediction is used only when the notification is not made from the encoding control unit, and when the notification is made , Without using the L1 prediction,
The storage unit
When the notification is not made from the encoding control unit, the first number of adjacent macroblock information is accumulated, and when the notification is made, a second number larger than the first number is stored. Storing the neighboring macroblock information;
The first number of neighboring macroblock information is accumulated and the L1 prediction is used, and in the case where the notification is not made, the first neighboring macroblock information is accumulated;
In the case where the relatively large number of the second number of adjacent macroblock information is accumulated and the L1 prediction is not used or the notification is made, the predetermined number included in the first adjacent macroblock information is predetermined. Storing the second adjacent macroblock information that does not include the information, storing a number greater than the number of storing the first adjacent macroblock information per predetermined area per predetermined area,
The predetermined information is information that is used in calculating a context index only when the L1 prediction is used, and is not used in the calculation when the L1 prediction is not used.
When calculating the context index, the second processing unit uses the predetermined information when the L1 prediction is used, and when the L1 prediction is not used. The image encoding apparatus according to claim 1, wherein the information is not used.
入力される画像を符号化する画像符号化方法であって、
前記入力される画像が有する情報のうち、既に符号化済みのマクロブロックに関する隣接マクロブロック情報であって、符号化対象のマクロブロックを符号化する際に参照される隣接マクロブロック情報を蓄積部が蓄積する蓄積ステップと、
前記隣接マクロブロック情報を基に、前記符号化対象のマクロブロックを符号化部が符号化する符号化ステップと、
前記入力される画像の画像サイズに応じて、前記符号化部における符号化方式を変更するとともに、前記蓄積部における、所定の領域あたりに蓄積可能な前記隣接マクロブロック情報の数を変更する符号化制御ステップとを含む画像符号化方法。
An image encoding method for encoding an input image,
Among the information included in the input image, the storage unit stores adjacent macroblock information related to a macroblock that has already been encoded, and is referred to when encoding the macroblock to be encoded. An accumulation step to accumulate;
Based on the adjacent macroblock information, an encoding step in which an encoding unit encodes the encoding target macroblock;
Coding that changes the coding method in the coding unit and changes the number of adjacent macroblock information that can be accumulated per predetermined area in the storage unit according to the image size of the input image An image encoding method including a control step.
入力される画像をコンピュータが符号化するための画像符号化プログラムであって、
前記入力される画像が有する情報のうち、既に符号化済みのマクロブロックに関する隣接マクロブロック情報であって、符号化対象のマクロブロックを符号化する際に参照される隣接マクロブロック情報を蓄積部により蓄積する蓄積ステップと、
前記隣接マクロブロック情報を基に、前記符号化対象のマクロブロックを符号化する符号化ステップと、
前記入力される画像の画像サイズに応じて、前記符号化ステップにおける符号化方式を変更するとともに、前記蓄積部における、所定の領域あたりに蓄積可能な前記隣接マクロブロック情報の数を変更する符号化制御ステップとを前記コンピュータに実行させるための画像符号化プログラム。
An image encoding program for a computer to encode an input image,
Among the information included in the input image, adjacent macroblock information related to a macroblock that has already been encoded, and adjacent macroblock information referred to when encoding the macroblock to be encoded is stored by the storage unit. An accumulation step to accumulate;
An encoding step of encoding the encoding target macroblock based on the adjacent macroblock information;
Encoding for changing the encoding method in the encoding step and changing the number of adjacent macroblock information that can be stored per predetermined area in the storage unit according to the image size of the input image An image encoding program for causing a computer to execute a control step.
入力される画像を符号化する画像符号化集積回路であって、
前記入力される画像が有する情報のうち、既に符号化済みのマクロブロックに関する隣接マクロブロック情報であって、符号化対象のマクロブロックを符号化する際に参照される隣接マクロブロック情報を蓄積する蓄積部と、
前記隣接マクロブロック情報を基に、前記符号化対象のマクロブロックを符号化する符号化部と、
前記入力される画像の画像サイズに応じて、前記符号化部における符号化方式を変更するとともに、前記蓄積部における、所定の領域あたりに蓄積可能な前記隣接マクロブロック情報の数を変更する符号化制御部とを備える画像符号化集積回路。
An image encoding integrated circuit for encoding an input image,
Among the information included in the input image, storage is information about adjacent macroblock information related to a macroblock that has already been encoded, and stores adjacent macroblock information that is referred to when encoding a macroblock to be encoded. And
An encoding unit that encodes the encoding target macroblock based on the adjacent macroblock information;
Coding that changes the coding method in the coding unit and changes the number of adjacent macroblock information that can be accumulated per predetermined area in the storage unit according to the image size of the input image An image coding integrated circuit comprising a control unit.
JP2010037991A 2010-02-23 2010-02-23 Image encoding device, method, program, and integrated circuit Pending JP2011176503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010037991A JP2011176503A (en) 2010-02-23 2010-02-23 Image encoding device, method, program, and integrated circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010037991A JP2011176503A (en) 2010-02-23 2010-02-23 Image encoding device, method, program, and integrated circuit

Publications (1)

Publication Number Publication Date
JP2011176503A true JP2011176503A (en) 2011-09-08

Family

ID=44688976

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010037991A Pending JP2011176503A (en) 2010-02-23 2010-02-23 Image encoding device, method, program, and integrated circuit

Country Status (1)

Country Link
JP (1) JP2011176503A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020074305A (en) * 2012-09-14 2020-05-14 御国色素株式会社 Manufacturing method of acetylene black dispersion slurry

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020074305A (en) * 2012-09-14 2020-05-14 御国色素株式会社 Manufacturing method of acetylene black dispersion slurry

Similar Documents

Publication Publication Date Title
JP6764507B2 (en) Inter-prediction method and its device
EP3672249B1 (en) Inter frame prediction method and device for video images
JP6607417B2 (en) Video decoding device
KR101521060B1 (en) Buffering prediction data in video coding
JP5832660B2 (en) Video decoding method in AMVP mode
CN114827595B (en) Video decoding method, device, computer equipment and storage medium
TWI520584B (en) Signaling syntax elements for transform coefficients for sub-sets of a leaf-level coding unit
TWI527440B (en) Low-complexity support of multiple layers for hevc extensions in video coding
JP2017519447A (en) Intra-block copy block vector signaling for video coding
CN112352429B (en) Method, apparatus and storage medium for encoding and decoding video data
TWI558179B (en) Signaling long-term reference pictures for video coding
TW201711467A (en) Coding data using an enhanced context-adaptive binary arithmetic coding (CABAC) design
TW201444350A (en) Square block prediction
TWI776071B (en) Method, apparatus and system for encoding and decoding a transformed block of video samples
CN104038762A (en) Video Encoder, Method Of Detecting Scene Change And Method Of Controlling Video Encoder
TWI558174B (en) Apparatus, method, and non-transitory computer readable medium for coding video information
KR20180054695A (en) Image decoding method and apparatus in video coding system
KR102609215B1 (en) Video encoders, video decoders, and corresponding methods
TWI543590B (en) Spatial motion vector scaling for scalable video coding
CN116830576A (en) Reference pixel upsampling for intra prediction in video coding
JPWO2008136164A1 (en) Decoding circuit, decoding method, and image reproducing apparatus
TWI776072B (en) Method, apparatus and system for encoding and decoding a transformed block of video samples
JP2011176503A (en) Image encoding device, method, program, and integrated circuit
JP2008141407A (en) Device and method for converting coding system
RU2778993C2 (en) Method and equipment for predicting video images