[go: up one dir, main page]

JP6510902B2 - Encoding device, decoding device and program - Google Patents

Encoding device, decoding device and program Download PDF

Info

Publication number
JP6510902B2
JP6510902B2 JP2015120594A JP2015120594A JP6510902B2 JP 6510902 B2 JP6510902 B2 JP 6510902B2 JP 2015120594 A JP2015120594 A JP 2015120594A JP 2015120594 A JP2015120594 A JP 2015120594A JP 6510902 B2 JP6510902 B2 JP 6510902B2
Authority
JP
Japan
Prior art keywords
division
block
shape
divided
blocks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2015120594A
Other languages
Japanese (ja)
Other versions
JP2017005629A (en
Inventor
井口 和久
和久 井口
和博 千田
和博 千田
境田 慎一
慎一 境田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Japan Broadcasting Corp
Original Assignee
Japan Broadcasting 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 Japan Broadcasting Corp filed Critical Japan Broadcasting Corp
Priority to JP2015120594A priority Critical patent/JP6510902B2/en
Publication of JP2017005629A publication Critical patent/JP2017005629A/en
Application granted granted Critical
Publication of JP6510902B2 publication Critical patent/JP6510902B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

本発明は、画像処理技術に関し、特に、画像符号化を行うブロックの分割形状を決定する際の計算コストを低減する符号化装置、復号装置及びプログラムに関する。   The present invention relates to an image processing technique, and more particularly to an encoding apparatus, a decoding apparatus, and a program that reduce the calculation cost when determining the division shape of a block that performs image encoding.

従来、画像処理に用いる符号化方式として、MPEG-4 AVC/H.264方式(非特許文献1,2を参照)、MPEG-H HEVC/H.265方式(非特許文献3,4を参照)等が知られている。これらの符号化方式では、画像符号化を行うブロックを長方形または正方形に分割することが可能であり、画像符号化を行うブロックを適切に分割することにより、画像データの圧縮効率を改善することができる。   Conventionally, as a coding method used for image processing, an MPEG-4 AVC / H.264 system (see Non-Patent Documents 1 and 2) and an MPEG-H HEVC / H.265 system (see Non-Patent Documents 3 and 4) Etc. are known. In these coding methods, it is possible to divide a block to be subjected to image coding into rectangles or squares, and to improve compression efficiency of image data by appropriately dividing a block to be subjected to image coding. it can.

例えば、MPEG-H HEVC/H.265の参照ソフトウェアHM(HEVCテストモード)を用いて動き補償予測を行う場合、まず、大きな正方形ブロック(2N×2N(横サイズ×縦サイズ、Nは画素数))、当該正方形ブロックを縦長の長方形2つに分割した長方形ブロック(N×2N)、及び横長の長方形2つに分割した長方形ブロック(2N×N)について、動き補償予測のコストを求めるための試行を行う。動き補償予測のコストとは、その動き補償予測を実現するために必要な情報量(ビットレート)や、その動き補償予測により発生する誤差(ブロック歪み)から計算される値である。動き補償予測のコストが小さいほど符号化効率が優れている。   For example, when performing motion compensation prediction using reference software HM (HEVC test mode) of MPEG-H HEVC / H.265, first, a large square block (2N × 2N (horizontal size × vertical size, N is the number of pixels)) A trial to obtain the cost of motion compensation prediction for a rectangular block (N × 2N) obtained by dividing the square block into two vertically-long rectangles and a rectangular block (2N × N) divided into two horizontally-long rectangles I do. The cost of motion compensation prediction is a value calculated from the amount of information (bit rate) required to realize the motion compensation prediction and an error (block distortion) generated by the motion compensation prediction. The smaller the cost of motion compensated prediction, the better the coding efficiency.

そして、その結果を利用して、他の分割(4分割等)により得られるブロックについて、動き補償予測のコストを求めるための試行の実施の有無を決定する。すなわち、大きな正方形ブロック(2N×2N)、縦長の2つに分割した長方形ブロック(N×2N)、及び横長の2つに分割した長方形ブロック(2N×N)について、必ず、動き補償予測のコスト計算を行っている。高い符号化効率を得るために、一般に、符号化装置は、1つ以上の分割候補の中から動き補償予測のコストが最小の分割候補を選択する。   Then, using the result, it is determined whether or not to execute a trial for obtaining the cost of motion compensation prediction for a block obtained by another division (such as four divisions). That is, for large square blocks (2N × 2N), rectangular blocks divided into two vertically long (N × 2N), and rectangular blocks divided into two horizontally long (2N × N), the cost of motion compensation prediction is always required Calculation is done. In order to obtain high coding efficiency, in general, the coding apparatus selects one of the one or more division candidates that has the lowest cost of motion compensation prediction.

また、動き補償型の方式変換装置(テレビジョン方式を変換する装置)等の動画像処理においても、同様のブロック分割が行われる。静止画像処理においても、MPEG-4 AVC/H.264方式及びMPEG-H HEVC/H.265方式のIピクチャの符号化では、ブロック分割が行われる。   The same block division is performed also in moving image processing such as a motion compensation type scheme conversion apparatus (apparatus for converting a television system). Also in still image processing, block division is performed in encoding of I pictures of the MPEG-4 AVC / H.264 system and the MPEG-H HEVC / H.265 system.

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 Audiovisual Objects - Part 10: Advanced Video Coding,”2003.ISO / IEC 14496-10: "Coding of Audiovisual Objects-Part 10: Advanced Video Coding," 2003. ITU-T Recommendation H.265:“High efficiency video coding,” 2013.ITU-T Recommendation H. 265: “High efficiency video coding,” 2013. ISO/IEC 23008-2:“High Efficiency Video Coding,” 2013.ISO / IEC 23008-2: "High Efficiency Video Coding," 2013.

このように、MPEG-4 AVC/H.264方式、MPEG-H HEVC/H.265方式等の符号化方式において、処理対象のブロックについて分割を行うか否かを決定したり、複数の分割形状の候補から1つの分割形状を決定したりする場合、その分割の良否を判断するために、動き補償予測のコストを求めるための試行を行う必要がある。   As described above, in the coding method such as the MPEG-4 AVC / H.264 method or the MPEG-H HEVC / H.265 method, it is determined whether or not to divide the block to be processed, and a plurality of divided shapes In the case where one division shape is determined from the candidates of, it is necessary to make an attempt to obtain the cost of motion compensation prediction in order to judge the quality of the division.

従来、複数の分割形状の中から1つの分割形状を決定する場合には、符号化方式に応じた分割形状及びその数が予め設定されていることから、符号化方式によっては、分割形状毎の試行回数が増加する。   Conventionally, in the case of determining one divided shape from among a plurality of divided shapes, the divided shape and the number thereof are set in advance according to the encoding method, and therefore, depending on the encoding method, each divided shape The number of trials increases.

また、この試行の計算は、例えば、画像符号化の動き補償ブロックの分割では、動きベクトル検出、原画像との差分の算出、差分の符号化ビット長の推定等の処理が必要であり、計算量が多い。このため、分割形状の種類が増えると、計算コストが増加する。   In addition, calculation of this trial requires processing such as motion vector detection, calculation of the difference from the original image, and estimation of the coding bit length of the difference in division of a motion compensation block of image coding, for example. There is a large amount. For this reason, as the number of types of division shapes increases, the calculation cost increases.

このように、従来の符号化方式では、ブロックの分割形状を決定し符号化処理を行う際に、計算コストが増加してしまうという問題があった。   As described above, in the conventional coding method, there is a problem that the calculation cost is increased when the division shape of the block is determined and the coding process is performed.

そこで、本発明は前記課題を解決するためになされたものであり、その目的は、ブロックの分割形状を決定する際に、分割形状の候補の数を減らし、それぞれの分割形状の良否を求める試行の回数を低減可能な符号化装置、復号装置及びプログラムを提供することにある。   Therefore, the present invention has been made to solve the above-mentioned problems, and an object thereof is to reduce the number of division shape candidates and determine the quality of each division shape when determining the division shape of a block. It is an object of the present invention to provide an encoding device, a decoding device and a program capable of reducing the number of times.

前記課題を解決するために、請求項1の符号化装置は、フレーム画像を小領域のブロックに分割して符号化し、ビットストリームを生成して出力する符号化装置において、前記フレーム画像を小領域のブロックに分割し、前記ブロックの分割形状を決定し、前記分割形状に分割したブロックを符号化対象ブロックとして出力するブロック化部と、前記ブロック化部により出力された符号化対象ブロックの予測画像を生成し、前記符号化対象ブロックと前記予測画像との差分信号を符号化する符号化処理部と、を備え、前記ブロック化部が、前記小領域に分割されたブロックの分割形状を格納する第1のメモリと、着目ブロックの分割形状と、当該着目ブロックに隣接する複数の隣接ブロックにおけるそれぞれの分割形状とが対応した複数の分割パターンが予め格納された第2のメモリと、前記小領域のブロックを着目ブロックに設定し、前記第1のメモリに格納された前記着目ブロックに隣接する複数の隣接ブロックにおけるそれぞれの分割形状のパターンと、前記第2のメモリに格納された前記複数の分割パターンに含まれる前記複数の隣接ブロックにおける分割形状のパターンとを比較し、これらのパターンが合致する場合、前記分割パターンに含まれる前記複数の隣接ブロックに対応する前記着目ブロックの分割形状を、分割候補に決定する分割候補決定部と、前記分割候補決定部により決定された分割候補に基づいて、前記着目ブロックの分割形状を決定し、前記着目ブロックの分割形状を前記第1のメモリに格納する分割形状決定部と、を備えたことを特徴とする。   In order to solve the above problem, the encoding device according to claim 1 divides the frame image into blocks of small regions and encodes them, and generates and outputs a bit stream. A block forming unit that divides the block into divided blocks and outputs the block divided into the divided shapes as a block to be encoded; and a predicted image of the block to be encoded output by the block forming unit And an encoding processing unit that encodes a difference signal between the encoding target block and the predicted image, and the blocking unit stores the divided shape of the block divided into the small regions. A plurality of divisions corresponding to the first memory, the division shape of the block of interest, and the division shapes of a plurality of adjacent blocks adjacent to the block of interest A second memory in which a pattern is stored in advance and a block of the small area are set as a block of interest, and patterns of divided shapes in a plurality of adjacent blocks adjacent to the block of interest stored in the first memory And a pattern of divided shapes in the plurality of adjacent blocks included in the plurality of divided patterns stored in the second memory, and when these patterns match, the plurality of divided patterns included in the divided pattern The division shape of the block of interest is determined based on the division candidate determination unit that determines the division shape of the block of interest corresponding to the adjacent block as a division candidate, and the division candidate determined by the division candidate determination unit, And a division shape determination unit that stores the division shape of the block of interest in the first memory.

また、請求項2の符号化装置は、請求項1に記載の符号化装置において、前記分割形状決定部が、前記分割候補決定部により決定された1または複数の前記分割候補に基づいて、前記着目ブロックの分割形状を決定し、前記着目ブロックの分割形状を前記第1のメモリに格納すると共に、前記決定した分割形状を1または複数の前記分割候補の中から識別するための分割形状コードを生成し、前記符号化処理部が、前記差分信号、及び前記分割形状決定部により生成された分割形状コードを符号化する、ことを特徴とする。   In the coding device according to claim 2, in the coding device according to claim 1, the division shape determination unit is based on one or more of the division candidates determined by the division candidate determination unit. A division shape code for determining a division shape of a target block, storing the division shape of the target block in the first memory, and identifying the determined division shape from among one or a plurality of division candidates The encoding processing unit may be configured to encode the differential signal and a divided shape code generated by the divided shape determination unit.

また、請求項3の符号化装置は、請求項2に記載の符号化装置において、前記ブロック化部が、さらに、前記第2のメモリから複数の分割パターンを分割パターン表として読み出す分割パターン表読出部を備え、前記符号化処理部が、前記差分信号、前記分割形状コード、及び前記分割パターン表読出部により読み出された分割パターン表を符号化する、ことを特徴とする。   The encoding apparatus according to claim 3 is the encoding apparatus according to claim 2, wherein the blocking unit further reads out a plurality of division patterns from the second memory as a division pattern table. The encoding processing unit may encode the differential signal, the divided shape code, and a divided pattern table read by the divided pattern table reading unit.

また、請求項4の符号化装置は、請求項1から3までのいずれか一項に記載の符号化装置において、前記分割候補決定部が、前記フレーム画像が小領域に分割された全てのブロックが2種類のブロックに区別され、前記2種類のブロックが格子状に交互に配置された市松模様を形成する場合に、前記全てのブロックを、前記市松模様を形成する一方の第1のブロック群及び他方の第2のブロック群に分類し、前記第1のブロック群のブロックについて、ラスタスキャン順に前記分割候補を決定し、前記第2のブロック群のブロックについて、前記第1のブロック群のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記ラスタスキャン順に前記分割候補を決定する、ことを特徴とする。   The encoding apparatus according to claim 4 is the encoding apparatus according to any one of claims 1 to 3, wherein the division candidate determination unit determines all the blocks into which the frame image is divided into small areas. Are divided into two types of blocks, and when the two types of blocks form a checkered pattern alternately arranged in a grid, one of the first block group forming the checkered pattern is all the blocks. And the other second block group, and the division candidates are determined in raster scan order for the blocks of the first block group, and the blocks of the first block group are determined for the blocks of the second block group The division candidate is determined in the raster scan order using the division shape determined based on the division candidate in.

また、請求項5の符号化装置は、請求項1から3までのいずれか一項に記載の符号化装置において、前記分割候補決定部が、前記フレーム画像の開始行から最終行までの各行を順番に着目行に設定し、前記着目行の奇数列のブロックについて、前記着目行の1行前のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定し、前記着目行の偶数列のブロックについて、前記着目行の1行前のブロックにおける分割候補に基づいて決定された分割形状、及び前記着目行の奇数列のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定する、ことを特徴とする。   In the encoding apparatus according to claim 5, in the encoding apparatus according to any one of claims 1 to 3, the division candidate determination unit determines each line from the start line to the final line of the frame image. The division candidate is determined using the division shape determined based on the division candidate in the block immediately before the target row, which is sequentially set as the target row, and blocks of the odd column of the target row are determined. The division shape determined based on the division candidate in the block one row before the target row and the division shape determined based on the division candidate in the odd column block in the target row for the block in the even column of the target row To determine the division candidate.

また、請求項6の符号化装置は、請求項1から3までのいずれか一項に記載の符号化装置において、前記分割候補決定部が、前記フレーム画像の開始行から最終行までの各行を順番に着目行に設定し、前記着目行の奇数列または偶数列のブロックについて、前記着目行の1行前の偶数列または奇数列のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定し、前記着目行の1行前の奇数列または偶数列のブロックについて、前記着目行の2行前のブロックにおける分割候補に基づいて決定された分割形状、前記着目行の1行前の偶数列または奇数列のブロックにおける分割候補に基づいて決定された分割形状、及び、前記着目行の奇数列または偶数列のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定する、ことを特徴とする。   The encoding apparatus according to claim 6 is the encoding apparatus according to any one of claims 1 to 3, wherein the division candidate determination unit determines each line from the start line to the last line of the frame image. Using the division shape determined based on the division candidate in the block of even-numbered column or odd-numbered column one row before the target row, setting the target row in order to the target row and the block of odd column or even column of the target row A division shape determined based on the division candidate in the block two rows before the target row for the block in the odd column or the even column one row before the target row, the division candidate determined; A division shape determined based on a division candidate in a block in an even column or an odd column one row before, and a division determined based on a division candidate in a block in an odd column or an even column of the row of interest With Jo, determines the division candidate, and wherein the.

また、請求項7の符号化装置は、請求項6に記載の符号化装置において、前記分割候補決定部が、前記着目行の奇数列または偶数列のブロックについて前記分割候補を決定する処理、及び前記着目行の1行前の奇数列または偶数列のブロックについて前記分割候補を決定する処理を、同列のブロック毎に行う、ことを特徴とする。   In the coding device according to a seventh aspect, in the coding device according to the sixth aspect, the division candidate determination unit determines the division candidate for a block of an odd column or an even column of the target row, The process of determining the division candidate for the block of the odd-numbered column or the even-numbered column immediately before the target row is performed for each block of the same column.

さらに、請求項8の復号装置は、請求項2の符号化装置により出力されたビットストリームを入力し、前記ビットストリームを復号し、元のフレーム画像の復号画像を生成する復号装置であって、前記ビットストリームを復号し、復号ブロック、及び分割形状を1または複数の分割候補の中から識別するための分割形状コードを生成する復号部と、前記復号部により生成された分割形状コードに基づいて、分割形状を識別し、前記復号部により生成された復号ブロックを、前記分割形状の復号対象ブロックとして出力する分割形状識別部と、前記分割形状識別部により出力された復号対象ブロックの予測画像を生成し、前記復号対象ブロックである差分信号と前記予測画像とを加算して復号画像を生成する復号処理部と、を備え、前記分割形状識別部が、前記分割形状コードに対応するブロックの分割形状を格納する第1のメモリと、着目ブロックの分割形状と、当該着目ブロックに隣接する複数の隣接ブロックにおけるそれぞれの分割形状とが対応した複数の分割パターンが予め格納された第2のメモリと、前記復号部により生成された分割形状コードに対応するブロックを着目ブロックに設定し、前記第1のメモリに格納された前記着目ブロックに隣接する複数の隣接ブロックにおけるそれぞれの分割形状のパターンと、前記第2のメモリに格納された前記複数の分割パターンに含まれる前記複数の隣接ブロックにおける分割形状のパターンとを比較し、これらのパターンが合致する場合、前記分割パターンに含まれる前記複数の隣接ブロックに対応する前記着目ブロックの分割形状を、分割候補に決定する分割候補決定部と、前記分割候補決定部により決定された1または複数の分割候補から、前記復号部により生成された分割形状コードが示す分割候補を特定し、前記特定した分割候補が示す分割形状を、前記着目ブロックの分割形状として抽出し、前記着目ブロックに対応する前記復号ブロックを、前記分割形状の復号対象ブロックとして出力する分割形状抽出部と、を備えたことを特徴とする。   Furthermore, a decoding device according to claim 8 is a decoding device which receives a bit stream outputted by the coding device according to claim 2, decodes the bit stream, and generates a decoded image of an original frame image, A decoding unit that decodes the bit stream and generates a divided shape code for identifying a decoded block and a divided shape from one or a plurality of divided candidates, and the divided shape code generated by the decoding unit A division shape identification unit that identifies a division shape and outputs the decoded block generated by the decoding unit as a decoding target block of the division shape; and a predicted image of the decoding target block output by the division shape identification unit A decoding processing unit that generates and generates a decoded image by adding the difference signal, which is the block to be decoded, and the predicted image; The first memory storing the divided shape of the block corresponding to the divided shape code, the divided shape of the block of interest, and the divided shapes of a plurality of adjacent blocks adjacent to the block of interest correspond to the first memory storing the divided shape code A second memory in which a plurality of division patterns are stored in advance, and a block corresponding to the division shape code generated by the decoding unit are set as a target block, and adjacent to the target block stored in the first memory The patterns of the respective divided shapes in the plurality of adjacent blocks are compared with the patterns of the divided shapes in the plurality of adjacent blocks included in the plurality of divided patterns stored in the second memory, and these patterns are If they match, the amount of the block of interest corresponding to the plurality of adjacent blocks included in the division pattern A division candidate determining unit that determines a shape as a division candidate, and a division candidate indicated by a division shape code generated by the decoding unit is specified from one or more division candidates determined by the division candidate determination unit, A divided shape extraction unit which extracts a divided shape indicated by the specified division candidate as a divided shape of the block of interest and outputs the decoded block corresponding to the target block as a decoding target block of the divided shape It is characterized by

また、請求項9の復号装置は、請求項8の復号装置において、請求項2の符号化装置により出力されたビットストリームを入力する代わりに、請求項3の符号化装置により出力されたビットストリームを入力し、前記復号部が、前記ビットストリームを復号し、前記復号ブロック、前記分割形状コード、及び複数の分割パターンである分割パターン表を生成し、前記分割形状識別部が、さらに、前記復号部により生成された分割パターン表を前記第2のメモリに格納する分割パターン表格納部を備えたことを特徴とする。   In the decoding device according to claim 9, in the decoding device according to claim 8, a bit stream output by the coding device according to claim 3 instead of inputting the bit stream output by the coding device according to claim 2. , The decoding unit decodes the bit stream, and generates a divided pattern table which is the decoded block, the divided shape code, and a plurality of divided patterns, and the divided shape identification unit further A division pattern table storage unit for storing the division pattern table generated by the unit in the second memory.

また、請求項10の復号装置は、請求項8または9に記載の復号装置において、前記分割候補決定部が、前記分割形状コードに対応する各ブロックが2種類のブロックに区別され、前記2種類のブロックが格子状に交互に配置された市松模様を形成する場合に、前記全てのブロックを、前記市松模様を形成する一方の第1のブロック群及び他方の第2のブロック群に分類し、前記第1のブロック群のブロックについて、ラスタスキャン順に前記分割候補を決定し、前記第2のブロック群のブロックについて、前記第1のブロック群のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記ラスタスキャン順に前記分割候補を決定する、ことを特徴とする。   In the decoding device according to claim 10, in the decoding device according to claim 8 or 9, the division candidate determination unit distinguishes each block corresponding to the division shape code into two types of blocks, and the two types When forming the checkered pattern in which the blocks in the grid are alternately arranged, the all blocks are classified into one first block group and the other second block group forming the checkered pattern, The division candidates are determined in raster scan order for the blocks of the first block group, and the division shapes of the blocks of the second block group are determined based on the division candidates in the blocks of the first block group. The division candidate may be determined in the raster scan order using the above method.

また、請求項11の復号装置は、請求項8または9に記載の復号装置において、前記分割候補決定部が、前記元のフレーム画像の各行に対応した開始行から終了行までの各行を順番に着目行に設定し、前記着目行の奇数列のブロックについて、前記着目行の1行前のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定し、前記着目行の偶数列のブロックについて、前記着目行の1行前のブロックにおける分割候補に基づいて決定された分割形状、及び前記着目行の奇数列のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定する、ことを特徴とすることを特徴とする。   Further, in the decoding device according to claim 11, in the decoding device according to claim 8 or 9, the division candidate determination unit sequentially selects each line from the start line to the end line corresponding to each line of the original frame image. The division candidate is determined using the division shape determined based on the division candidate in the block one row before the target row, which is set in the target row and the odd column block of the target row is determined. The division shape determined based on the division candidate in the block one row before the target row and the division shape determined based on the division candidate in the odd column block of the target row for the even column blocks of It is characterized in that the division candidate is determined.

また、請求項12の復号装置は、請求項8または9に記載の復号装置において、前記分割候補決定部が、前記元のフレーム画像の各行に対応した開始行から終了行までの各行を順番に着目行に設定し、前記着目行の奇数列または偶数列のブロックについて、前記着目行の1行前の偶数列または奇数列のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定し、前記着目行の1行前の奇数列または偶数列のブロックについて、前記着目行の2行前のブロックにおける分割候補に基づいて決定された分割形状、前記着目行の1行前の偶数列または奇数列のブロックにおける分割候補に基づいて決定された分割形状、及び、前記着目行の奇数列または偶数列のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定する、ことを特徴とする。   Further, in the decoding device according to claim 12, in the decoding device according to claim 8 or 9, the division candidate determination unit sequentially selects each line from the start line to the end line corresponding to each line of the original frame image. The target row is set, and the block shape of the odd row or the even column of the target row is determined using the division shape determined based on the division candidate in the even column or the odd column block one row before the target row. A division candidate is determined, and a division shape determined based on a division candidate in a block two rows before the target row, for a block in an odd column or even column one row before the target row, one row in the target row Division shape determined based on division candidate in previous even column or odd column block, and division determined based on division candidate in odd column or even column block of the target row With Jo, determines the division candidate, and wherein the.

また、請求項13の復号装置は、請求項12に記載の復号装置において、前記分割候補決定部が、前記着目行の奇数列または偶数列のブロックについて前記分割候補を決定する処理、及び前記着目行の1行前の奇数列または偶数列のブロックについて前記分割候補を決定する処理を、同列のブロック毎に行う、ことを特徴とする。   The decoding apparatus according to claim 13 is the decoding apparatus according to claim 12, wherein the division candidate determination unit determines the division candidate for a block in an odd column or an even column of the target row, and the target The process of determining the division candidate for the block of the odd-numbered column or the even-numbered column immediately before the row is performed for each block of the same column.

さらに、請求項14のプログラムは、コンピュータを、請求項1から7までのいずれか一項に記載の符号化装置として機能させることを特徴とする。   Furthermore, the program according to claim 14 causes the computer to function as the encoding device according to any one of claims 1 to 7.

また、請求項15のプログラムは、コンピュータを、請求項8から13までのいずれか一項に記載の復号装置として機能させることを特徴とする。   A program according to claim 15 causes a computer to function as the decoding device according to any one of claims 8 to 13.

以上のように、本発明によれば、ブロックの分割形状を決定する際に、分割形状の候補の数を減らすことができ、結果として、それぞれの分割形状の良否を求める試行の回数を低減することができる。   As described above, according to the present invention, when determining the division shape of a block, the number of division shape candidates can be reduced, and as a result, the number of trials for determining the quality of each division shape is reduced. be able to.

フレーム画像がブロック分割される際の着目ブロック及び隣接ブロックを説明する図である。It is a figure explaining the view block and adjacent block at the time of a frame picture being divided into blocks. 実施例1の符号化装置の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a coding apparatus of a first embodiment. ブロック化部の構成を示すブロック図である。It is a block diagram showing composition of a block formation part. 分割候補決定部の処理を示すフローチャートであるIt is a flowchart which shows the process of a division | segmentation candidate determination part. 分割パターン表の例を示す図である。It is a figure showing an example of a division pattern table. 分割候補決定部の処理例を説明する図である。It is a figure explaining the process example of a division | segmentation candidate determination part. 符号化処理部の構成を示すブロック図である。It is a block diagram which shows the structure of an encoding process part. 実施例2−1の符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the encoding apparatus of Example 2-1. ブロック化部の構成を示すブロック図である。It is a block diagram showing composition of a block formation part. 実施例2−2の復号装置の構成を示すブロック図である。It is a block diagram which shows the structure of the decoding apparatus of Example 2-2. 分割形状識別部の構成を示すブロック図である。It is a block diagram which shows the structure of a division | segmentation shape identification part. 復号処理部の構成を示すブロック図である。It is a block diagram which shows the structure of a decoding process part. 実施例2−3の符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the encoding apparatus of Example 2-3. ブロック化部の構成を示すブロック図である。It is a block diagram showing composition of a block formation part. 実施例2−4の復号装置の構成を示すブロック図である。It is a block diagram which shows the structure of the decoding apparatus of Example 2-4. 分割形状識別部の構成を示すブロック図である。It is a block diagram which shows the structure of a division | segmentation shape identification part. ラスタスキャン順の処理を説明する図である。It is a figure explaining processing of raster scan order. 実施例3の分割候補決定部の処理を示すフローチャートである。FIG. 16 is a flowchart showing processing of a division candidate determination unit of Example 3. FIG. 図18の説明を補充する図である。It is a figure which supplements the description of FIG. 実施例4−1の分割候補決定部の処理を示すフローチャートである。It is a flowchart which shows the process of the division | segmentation candidate determination part of Example 4-1. 図20の説明を補充する図であるIt is a figure which supplements the description of FIG. 実施例4−2の分割候補決定部の処理を示すフローチャートである。It is a flowchart which shows the process of the division | segmentation candidate determination part of Example 4-2. 図22の説明を補充する図である。It is a figure which supplements description of FIG. 実施例4−3の分割候補決定部の処理を示すフローチャートである。It is a flowchart which shows the process of the division | segmentation candidate determination part of Example 4-3. 図24の説明を補充する図である。It is a figure which supplements description of FIG. 実施例5の分割パターン表を生成する処理を示すフローチャートである。21 is a flowchart showing a process of generating a division pattern table of the fifth embodiment. ステップS2603,ステップS2604により生成された分割パターンの例を示す図である。It is a figure which shows the example of the division | segmentation pattern produced | generated by step S2603 and step S2604. ステップS2605における2つの導出分割を組み合わせた導出分割の例を示す図である。It is a figure which shows the example of the derivation | leading-out division which combined two derivation | leading-out division | segmentation in step S2605. ステップS2606における照合パターンの合成規則を示す図である。It is a figure which shows the synthetic | combination rule of the collation pattern in step S2606. ステップS2606により生成された照合パターンαの例を示す図である。It is a figure which shows the example of collation pattern (alpha) produced | generated by step S2606. ステップS2608により生成された照合パターンβの例を示す図である。It is a figure which shows the example of collation pattern (beta) produced | generated by step S2608.

以下、本発明を実施するための形態について図面を用いて詳細に説明する。本発明は、フレーム画像をブロックに分割し、分割したブロックである処理対象のブロック(着目ブロック)について、その分割形状の候補(分割候補)を決定する際に、着目ブロックの周囲に存在する隣接ブロックの分割形状と、所定の分割パターンにて定義された隣接ブロックの分割形状(照合パターン)とを比較し、両分割形状が合致する照合パターンに基づいて、着目ブロックの分割候補を決定することを特徴とする。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. The present invention divides a frame image into blocks, and for a block (target block) to be processed which is a divided block, when determining candidates (division candidates) of the division shape, adjacent to the periphery of the target block A division candidate of a block of interest is determined based on a matching pattern in which both divided shapes match, by comparing the divided shape of a block with the divided shape (collated pattern) of an adjacent block defined by a predetermined divided pattern. It is characterized by

これにより、着目ブロックの分割候補が符号化方式に対応して予め設定される従来手法よりも、分割候補の数を減らすことができる。そして、最終的に1つの分割形状を決定する際に、従来手法よりも少ない数の分割候補についてのみ試行すればよく、それ以外の分割形状については試行する必要がないから、試行回数を低減することができる。以下、実施例1〜5を挙げて詳細に説明する。   As a result, the number of division candidates can be reduced compared to the conventional method in which the division candidate of the block of interest is preset according to the encoding method. Then, when determining one divided shape finally, it is sufficient to try only a smaller number of divided candidates than the conventional method, and it is not necessary to try other divided shapes, so the number of trials is reduced. be able to. Hereinafter, Examples 1 to 5 will be described in detail.

〔用語の定義〕
実施例1〜5を説明するにあたり、用語を定義する。図1は、フレーム画像がブロック分割される際の着目ブロック及び隣接ブロックを説明する図である。分割処理が行われる処理対象のブロックを「着目ブロック」といい、着目ブロックに隣接するブロックを「隣接ブロック」という。図1の例では、101が着目ブロックであり、102〜109が隣接ブロックである。また、着目ブロックにおいて候補となる分割形状を「分割候補」という。
〔Definition of terms〕
In describing Examples 1-5, terms will be defined. FIG. 1 is a diagram for explaining a block of interest and an adjacent block when a frame image is divided into blocks. A block to be processed on which division processing is performed is referred to as a “target block”, and a block adjacent to the target block is referred to as an “adjacent block”. In the example of FIG. 1, 101 is a block of interest, and 102 to 109 are adjacent blocks. Also, the division shapes that are candidates in the block of interest are referred to as “division candidates”.

隣接ブロックには、処理の順番に応じて、既に分割候補が決定され分割形状も決定されたブロックと、未だ分割候補が決定されておらず分割形状も決定されていないブロックとが存在する。前者を「処理済み隣接ブロック」といい、後者及び画面外に位置するブロックを「未処理隣接ブロック」という。「隣接ブロック」は、処理済み隣接ブロック及び未処理隣接ブロックのいずれかに相当する。以下、処理済み隣接ブロックを「処理済みブロック」といい、未処理隣接ブロックを「未処理ブロック」という。   In the adjacent blocks, there are blocks for which division candidates have already been determined and the division shape has been determined according to the order of processing, and blocks for which division candidates have not yet been determined and the division shape has not yet been determined. The former is called "processed adjacent block", and the latter and the block located out of the screen are called "unprocessed adjacent block". The “adjacent block” corresponds to either a processed adjacent block or an unprocessed adjacent block. Hereinafter, the processed adjacent block is referred to as “processed block”, and the unprocessed adjacent block is referred to as “unprocessed block”.

〔実施例1〕
まず、実施例1について説明する。実施例1は、符号化装置において、処理済み及び/または未処理の隣接ブロックのパターンと、予め設定された分割パターンに含まれる照合パターンとを比較し、両パターンが合致する照合パターンに対応する導出分割を分割候補に決定する例である。
Example 1
First, the first embodiment will be described. The first embodiment compares the pattern of the processed and / or unprocessed adjacent block with the collation pattern included in the preset division pattern in the encoding apparatus, and corresponds to the collation pattern in which both patterns match. It is an example which decides derivation division as a division candidate.

(符号化装置/実施例1)
図2は、実施例1の符号化装置の構成を示すブロック図である。この符号化装置1は、ブロック化部10及び符号化処理部20を備えている。
(Coding apparatus / Example 1)
FIG. 2 is a block diagram showing the configuration of the coding apparatus of the first embodiment. The encoding device 1 includes a blocking unit 10 and an encoding processing unit 20.

ブロック化部10は、フレーム画像を入力し、フレーム画像を所定の小領域のブロックに分割し、分割したブロック毎に、当該分割ブロックをさらに分割する際の分割形状の候補(分割候補)を決定する。ブロック化部10は、分割候補のブロックについて、符号化処理部20に符号化処理を行わせ(試行し)、符号化処理部20からビット量等を入力して動き補償予測のコストを求め、動き補償予測のコストに基づいて1つの分割候補を特定し、分割形状を決定する。尚、動き補償予測のコストは、符号化処理部20が算出するようにしてもよい。そして、ブロック化部10は、決定した分割形状のブロックを符号化対象のブロックとして符号化処理部20に出力すると共に、分割形状を特定するためのデータ(分割形状データ)を符号化処理部20に出力する。ブロック化部10の処理の詳細については後述する。   The blocking unit 10 receives a frame image, divides the frame image into blocks of a predetermined small area, and determines division candidates (division candidates) for further dividing the divided block for each divided block. Do. The blocking unit 10 causes the coding processing unit 20 to perform (or try) the coding processing unit 20 on the division candidate block, and inputs the bit amount and the like from the coding processing unit 20 to obtain the cost of motion compensation prediction One division candidate is identified based on the cost of motion compensation prediction, and the division shape is determined. The cost of the motion compensation prediction may be calculated by the encoding processing unit 20. Then, the blocking unit 10 outputs the block of the determined divided shape to the encoding processing unit 20 as a block to be encoded, and the data (divided shape data) for specifying the divided shape is encoded by the coding processing unit 20. Output to Details of the processing of the blocking unit 10 will be described later.

符号化処理部20は、ブロック化部10からブロック及び分割形状データを入力し、入力したブロックを符号化対象ブロックとし、動きベクトルを検出して予測画像を生成し、符号化対象ブロックと予測画像との間の差分信号を生成する。そして、符号化処理部20は、差分信号、動きベクトル及び分割形状データを符号化し、ビットストリームを生成し、ビットストリームを出力する。また、符号化処理部20は、ブロック化部10にて動き補償予測のコストを求めるために必要なビット量等を算出し、ビット量等をブロック化部10に出力する。符号化処理部20の処理の詳細については後述する。   The coding processing unit 20 receives the block and the divided shape data from the blocking unit 10, sets the input block as a coding target block, detects a motion vector, and generates a prediction image, and the coding target block and the prediction image Generate a differential signal between Then, the encoding processing unit 20 encodes the difference signal, the motion vector, and the divided shape data, generates a bit stream, and outputs a bit stream. In addition, the encoding processing unit 20 calculates the amount of bits and the like necessary for obtaining the cost of motion compensation prediction in the blocking unit 10, and outputs the amount of bits and the like to the blocking unit 10. Details of the processing of the encoding processing unit 20 will be described later.

(ブロック化部10)
図3は、図2に示したブロック化部10の構成を示すブロック図である。このブロック化部10は、分割候補決定部11、メモリ12−1,12−2、分割形状決定部13及びブロック化処理部14を備えている。
(Blocking unit 10)
FIG. 3 is a block diagram showing the configuration of the blocking unit 10 shown in FIG. The blocking unit 10 includes a division candidate determination unit 11, memories 12-1 and 12-2, a division shape determination unit 13, and a blocking processing unit 14.

メモリ12−1には、予め設定された分割パターン表が格納されている。分割パターン表は、着目ブロックの分割形状(以下、「導出分割」をいう。)と、着目ブロックに隣接する隣接ブロックの分割形状(以下、「照合パターン」という。)との関係を定義したパターン(以下、「分割パターン」をいう。)が複数定義されたデータである。   The memory 12-1 stores a division pattern table set in advance. The division pattern table is a pattern that defines the relationship between the division shape of the block of interest (hereinafter referred to as “derived division”) and the division shape of the adjacent block adjacent to the block of interest (hereinafter referred to as “collation pattern”). (Hereinafter, "division pattern" is referred to.) Is data in which a plurality is defined.

メモリ12−2には、後述する分割形状決定部13により1以上の分割候補から決定された分割候補の分割形状が、ブロック毎に格納されている。メモリ12−2に分割形状が格納されているブロックは、処理済みブロックである。   In the memory 12-2, the division shapes of the division candidates determined from the one or more division candidates by the division shape determination unit 13 described later are stored for each block. The block whose divided shape is stored in the memory 12-2 is a processed block.

分割候補決定部11は、フレーム画像を入力し、フレーム画像を所定のブロックに分割し、メモリ12−1から分割パターン表を読み出す。そして、分割候補決定部11は、分割したブロックを着目ブロックに設定し、着目ブロックについて、メモリ12−2から隣接ブロックの分割形状を読み出し、隣接ブロックの分割形状等のパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、1以上の分割候補を決定する。そして、分割候補決定部11は、着目ブロックについての1以上の分割候補を分割形状決定部13に出力する。分割候補決定部11の処理の詳細については後述する。   The division candidate determination unit 11 receives a frame image, divides the frame image into predetermined blocks, and reads a division pattern table from the memory 12-1. Then, the division candidate determination unit 11 sets the divided block as the block of interest, reads the division shape of the adjacent block from the memory 12-2 for the block of interest, and patterns such as the division shape of the adjacent block and the division pattern table One or more division candidates are determined by comparing with the matching pattern included in the division pattern. Then, the division candidate determination unit 11 outputs one or more division candidates for the block of interest to the division shape determination unit 13. Details of the processing of the division candidate determination unit 11 will be described later.

分割形状決定部13は、分割候補決定部11から着目ブロックについての1以上の分割候補を入力し、1以上の分割候補のそれぞれについて、当該分割候補にて分割されるブロックについての符号化処理を、ブロック化処理部14を介して符号化処理部20に行わせ、符号化処理部20からビット量等を入力して動き補償予測のコストを求める。そして、分割形状決定部13は、分割候補毎に求めた動き補償予測のコストに基づいて、1つの分割候補を特定し、分割形状を決定する。そして、分割形状決定部13は、決定した分割形状(の識別情報)をブロック化処理部14に出力すると共に、メモリ12−2に格納する。これにより、メモリ12−2には、ブロック毎に処理済みブロックの分割形状(の識別情報)が格納される。   The division shape determination unit 13 inputs one or more division candidates for the block of interest from the division candidate determination unit 11, and performs encoding processing for a block divided by the division candidate for each of the one or more division candidates. The encoding processing unit 20 performs the processing through the blocking processing unit 14, and inputs a bit amount and the like from the encoding processing unit 20 to obtain the cost of motion compensation prediction. Then, the division shape determination unit 13 identifies one division candidate based on the cost of motion compensation prediction obtained for each division candidate, and determines the division shape. Then, the division shape determination unit 13 outputs (the identification information of) the determined division shape to the blocking processing unit 14 and stores it in the memory 12-2. As a result, (the identification information of) the divided shape of the processed block is stored in the memory 12-2 for each block.

また、分割形状決定部13は、決定した分割形状を、予め設定された複数の分割形状の中から識別するための分割形状データを生成し、当該ブロックの分割形状データとして符号化処理部20に出力する。   In addition, the division shape determination unit 13 generates division shape data for identifying the determined division shape from among a plurality of division shapes set in advance, and the coding processing unit 20 generates division shape data of the block. Output.

例えば、分割形状データは、予め設定された複数の分割形状が8種類存在する場合、それぞれの分割形状に対応した番号0〜7が用いられ、3ビットのデータにより構成される。   For example, when there are eight types of preset division shapes, the division shape data uses numbers 0 to 7 corresponding to the respective division shapes, and is configured by 3-bit data.

ブロック化処理部14は、フレーム画像を入力し、フレーム画像を所定のブロックに分割し、分割したブロックに対応する分割形状を分割形状決定部13から入力し、分割したブロックを、分割形状が示す形状にさらに分割し、分割後のブロックを符号化処理部20に出力する。   The blocking processing unit 14 inputs a frame image, divides the frame image into predetermined blocks, inputs a divided shape corresponding to the divided block from the divided shape determination unit 13, and indicates the divided block by the divided shape. It is further divided into shapes, and the blocks after division are output to the encoding processing unit 20.

(分割候補決定部11)
次に、図3に示した分割候補決定部11について詳細に説明する。図4は、分割候補決定部11の処理を示すフローチャートである。まず、分割候補決定部11は、フレーム画像を入力し、フレーム画像を所定のブロックに分割する(ステップS401)。そして、分割候補決定部11は、メモリ12−1から分割パターン表を読み出し(ステップS402)、ステップS401にて分割したブロックを着目ブロックに設定する(ステップS403)。
(Division candidate determination unit 11)
Next, the division candidate determination unit 11 shown in FIG. 3 will be described in detail. FIG. 4 is a flowchart showing the process of the division candidate determination unit 11. First, the division candidate determination unit 11 inputs a frame image, and divides the frame image into predetermined blocks (step S401). Then, the division candidate determination unit 11 reads the division pattern table from the memory 12-1 (step S402), and sets the block divided in step S401 as a block of interest (step S403).

分割候補決定部11は、着目ブロックに隣接する複数の隣接ブロックについて、そのパターンを特定する(ステップS404)。具体的には、分割候補決定部11は、メモリ12−2から隣接ブロックの分割形状(処理済みブロックとして格納されている隣接ブロックのみの分割形状)を読み出し、読み出した分割形状についての処理済みブロックである隣接ブロック以外の隣接ブロックを未処理ブロックに設定する。そして、分割候補決定部11は、読み出した分割形状の処理済みブロック及び設定した未処理ブロックから、隣接ブロックのパターンを特定する。   The division candidate determination unit 11 specifies patterns of a plurality of adjacent blocks adjacent to the block of interest (step S404). Specifically, the division candidate determination unit 11 reads the division shape of the adjacent block (division shape of only the adjacent block stored as a processed block) from the memory 12-2, and the processed block of the read division shape Adjacent blocks other than adjacent blocks are set as unprocessed blocks. Then, the division candidate determination unit 11 specifies the pattern of the adjacent block from the processed block having the division shape read out and the set unprocessed block.

分割候補決定部11は、ステップS403にて特定した隣接ブロックのパターン(実際のパターン)と、メモリ12−1から読み出した分割パターン表の分割パターンに含まれる照合パターンとを比較する(ステップS405)。この比較処理は、分割パターン表の全ての分割パターンについて行う。   The division candidate determination unit 11 compares the pattern (actual pattern) of the adjacent block identified in step S403 with the matching pattern included in the division pattern of the division pattern table read from the memory 12-1 (step S405). . This comparison process is performed on all division patterns of the division pattern table.

分割候補決定部11は、ステップS405において、隣接ブロックのパターンが照合パターンに合致すると判定した場合(ステップS405:合致)、当該照合パターンに対応する導出分割を分割候補に追加することで、当該着目ブロックの分割候補を決定する(ステップS406)。ここで、分割候補決定部11は、隣接ブロックのパターンが複数の照合パターンと合致すると判定した場合には、当該照合パターンに対応する導出分割のうち分割候補に含まれていない導出分割を分割候補に追加する(分割候補が重複しないように導出分割を分割候補に追加する)。   If the division candidate determination unit 11 determines in step S405 that the pattern of the adjacent block matches the collation pattern (step S405: coincidence), the focused division is added to the division candidate corresponding to the collation pattern, thereby achieving the attention Block division candidates are determined (step S406). Here, when the division candidate determination unit 11 determines that the pattern of the adjacent block matches a plurality of collation patterns, among the derivation divisions corresponding to the collation patterns, the division candidate which is not included in the division candidate is divided into division candidates. Add the derived divisions to the division candidates so that the division candidates do not overlap.

一方、分割候補決定部11は、ステップS405において、隣接ブロックのパターンが分割パターン表の全ての分割パターンに含まれる照合パターンに合致しないと判定した場合(ステップS405:合致せず)、符号化方式に対応して予め設定された複数の分割形状を、当該着目ブロックの分割候補に決定する(ステップS407)。このステップS407の処理は、従来手法と同じである。   On the other hand, if the division candidate determination unit 11 determines in step S405 that the pattern of the adjacent block does not match the matching pattern included in all the division patterns of the division pattern table (step S405: does not match), the coding method A plurality of division shapes set in advance corresponding to are determined as division candidates of the block of interest (step S407). The process of step S407 is the same as that of the conventional method.

(分割パターン表)
図5は、分割パターン表の例を示す図であり、(a)〜(f)の6種類の分割パターンを示している。これらの分割パターンは、図1に対応して9個のブロックから構成される。図5(a)〜(f)において、中央のブロックが着目ブロックであり、中央以外の8個のブロックが隣接ブロックであり、照合パターンである。
(Divided pattern table)
FIG. 5 is a diagram showing an example of a division pattern table, and shows six types of division patterns (a) to (f). These division patterns are composed of nine blocks corresponding to FIG. In FIGS. 5A to 5F, the central block is the block of interest, and eight blocks other than the central block are adjacent blocks, which are matching patterns.

○は、いかなるブロックにも合致することを示す任意ブロックコードを示し、△は、未処理ブロックのみと合致することを示す未処理ブロックコードを示す。また、空白の□は、分割なしのブロックを示し、実線を含む□は、当該実線を基準にして分割するブロックを示す。例えば、縦の実線を含む□は、垂直2分割のブロックを示し、横の実線を含む□は、水平2分割のブロックを示す。また、点線を含む□は、当該点線を基準にして分割する導出分割のブロックを示す。例えば、縦横の点線を含む□は、導出分割が垂直及び水平4分割のブロックを示す。つまり、導出分割は、中央のブロック内の点線で示した分割形状である。また、中央のブロック内に点線が存在しない導出分割は、分割なしを示している。   O indicates an arbitrary block code indicating that any block is matched, and Δ indicates an unprocessed block code indicating that only an unprocessed block is matched. Also, a blank □ indicates a block without division, and a □ including a solid line indicates a block to be divided based on the solid line. For example, a square including a vertical solid line indicates a vertical bifurcated block, and a square including a horizontal solid line indicates a horizontal bifurcated block. Further, □ including dotted lines indicates a block of derived division that is divided based on the dotted lines. For example, a square including vertical and horizontal dotted lines indicates a block whose derivation division is vertical and horizontal four divisions. That is, the derivation division is a division shape indicated by a dotted line in the center block. Moreover, the derivation | leading-out division which does not have a dotted line in a center block has shown division | segmentation non-.

例えば、図5(a)の分割パターンは、照合パターンの隣接ブロック103,108が垂直2分割の処理済みブロックであり、隣接ブロック102,104,105,106,107,109が任意ブロックコードのブロックであることを示している。また、この場合の着目ブロック101の導出分割は、垂直2分割の分割形状であることを示している。   For example, in the division pattern of FIG. 5A, the adjacent blocks 103 and 108 of the matching pattern are processed blocks of vertical two divisions, and the adjacent blocks 102, 104, 105, 106, 107, and 109 are blocks of arbitrary block codes. It shows that it is. Further, the derivation division of the block of interest 101 in this case indicates that it is a division shape of vertical two division.

図5(d)の分割パターンは、照合パターンの隣接ブロック102〜106,108が分割なしの処理済みブロックであり、隣接ブロック107,109が未処理ブロックコードのブロックであることを示している。また、この場合の着目ブロック101の導出分割は、分割なしの分割形状であることを示している。   The division pattern of FIG. 5D indicates that the adjacent blocks 102 to 106 and 108 of the matching pattern are processed blocks without division, and the adjacent blocks 107 and 109 are blocks of unprocessed block code. Further, the derivation division of the block of interest 101 in this case indicates that it is a division shape without division.

図5(e)の分割パターンは、照合パターンの隣接ブロック102,104,106〜109が任意ブロックコードのブロックであり、隣接ブロック103は垂直2分割の処理済みブロックであり、隣接ブロック105は、水平2分割の処理済みブロックであることを示している。また、この場合の着目ブロック101の導出分割は、垂直及び水平4分割の分割形状であることを示している。   In the division pattern of FIG. 5E, the adjacent blocks 102, 104, 106 to 109 of the matching pattern are blocks of arbitrary block codes, the adjacent block 103 is a processed block of vertical two division, and the adjacent block 105 is It shows that it is a processed block of horizontal two division. Further, the derivation division of the block of interest 101 in this case indicates that it is a divided shape of vertical and horizontal four divisions.

このように、分割パターンは、8個の隣接ブロックにおける分割形状が、任意ブロックコード、未処理ブロックコード及び分割なしよりも優先して導出分割に反映されるように、定義されている。例えば、図5(a)(b)において、導出分割には、隣接ブロック103,108における垂直2分割の分割形状が反映され、図5(c)において、導出分割には、隣接ブロック102,109における右斜め下方向2分割の分割形状が反映され、図5(f)において、導出分割には、隣接ブロック102における右斜め下方向2分割の分割形状が反映される。   Thus, the division pattern is defined such that the division shape in eight adjacent blocks is reflected in the derived division prior to any block code, unprocessed block code and no division. For example, in FIGS. 5 (a) and 5 (b), in the derivation division, the division shape of the vertical bisection in the adjacent blocks 103 and 108 is reflected, and in FIG. 5 (c), the derivation block is the adjacent blocks 102 and 109. The division shape of the right oblique lower direction 2 division in is reflected, and in FIG. 5 (f), the division shape of the right oblique lower direction 2 division in the adjacent block 102 is reflected in the derivation division.

(分割候補決定部11の処理例)
図6は、分割候補決定部11の処理例を説明する図である。図6(1)〜(6)の左側の9個のブロックは、着目ブロック及び図4のステップS403にて特定された隣接ブロックのパターンを示している。図6(1)〜(6)の右側の分割形状等は、図4のステップS405及びステップS406にて決定された分割候補を示している。隣接ブロックにおいて、□は、分割なしの処理済みブロックを示し、黒丸を含む□は、未処理ブロックを示す。その他は、図5と同様である。
(Example of processing of division candidate determination unit 11)
FIG. 6 is a diagram for explaining an example of processing of the division candidate determination unit 11. The nine blocks on the left side of FIGS. 6 (1) to 6 (6) indicate the patterns of the block of interest and the adjacent blocks identified in step S403 of FIG. The division shapes and the like on the right side of FIGS. 6 (1) to 6 (6) indicate division candidates determined in steps S405 and S406 of FIG. In the adjacent blocks, □ indicates a processed block without division, and □ including black circles indicates an unprocessed block. Others are similar to FIG.

分割候補決定部11は、図6(1)に示す8個の隣接ブロックからなるパターンを特定した場合、このパターンと、図5に示した分割パターン表の各分割パターンに含まれる照合パターンとを比較する。分割候補決定部11は、このパターンが図5(a)及び(e)の照合パターンに合致すると判定し、図5(a)及び(e)に示した着目ブロックの導出分割(垂直2分割の分割形状、並びに垂直及び水平4分割の分割形状)を分割候補に決定する。   When the division candidate determination unit 11 specifies a pattern consisting of eight adjacent blocks shown in FIG. 6A, this pattern and the matching patterns included in each division pattern of the division pattern table shown in FIG. Compare. The division candidate determination unit 11 determines that this pattern matches the collation pattern of FIGS. 5A and 5E, and the derivation division (vertical two divisions) of the block of interest shown in FIGS. 5A and 5E. The division shape and the division shapes of vertical and horizontal four divisions are determined as division candidates.

分割候補決定部11は、図6(2)に示す8個の隣接ブロックからなるパターンを特定した場合、このパターンと、図5に示した分割パターン表の各分割パターンに含まれる照合パターンとを比較する。分割候補決定部11は、このパターンが図5(a)及び(c)の照合パターンに合致すると判定し、図5(a)及び(c)に示した着目ブロックの導出分割(垂直2分割の分割形状、及び右斜め下方向2分割の分割形状)を分割候補に決定する。   When the division candidate determination unit 11 specifies a pattern consisting of eight adjacent blocks shown in FIG. 6 (2), the division candidate determination unit 11 compares this pattern and the matching patterns included in each division pattern of the division pattern table shown in FIG. 5. Compare. The division candidate determination unit 11 determines that this pattern matches the collation pattern of FIGS. 5A and 5C, and the derivation division (vertical two divisions) of the block of interest shown in FIGS. 5A and 5C. The division shape and the division shape in the right lower downward direction into two divisions) are determined as division candidates.

分割候補決定部11は、図6(3)に示す8個の隣接ブロックからなるパターンを特定した場合、このパターンと、図5に示した分割パターン表の各分割パターンに含まれる照合パターンとを比較する。分割候補決定部11は、このパターンが図5のいずれの照合パターンにも合致しないと判定し、従来手法と同様に、符号化方式に対応して予め設定された複数の分割形状を、分割候補に決定する。   When the division candidate determination unit 11 identifies a pattern consisting of eight adjacent blocks shown in FIG. 6 (3), the division candidate determination unit 11 compares this pattern and the matching patterns included in each division pattern of the division pattern table shown in FIG. Compare. The division candidate determination unit 11 determines that this pattern does not match any of the collation patterns in FIG. 5, and, as in the conventional method, a plurality of division shapes preset corresponding to the encoding method are divided candidates Decide on.

分割候補決定部11は、図6(4)に示す8個の隣接ブロックからなるパターンを特定した場合、このパターンが図5(f)の照合パターンに合致すると判定し、図5(f)に示した着目ブロックの導出分割(右斜め下方向2分割の分割形状)を分割候補に決定する。   When the division candidate determination unit 11 specifies a pattern consisting of eight adjacent blocks shown in FIG. 6 (4), the division candidate determination unit 11 determines that this pattern matches the collation pattern of FIG. The derivation division (division shape of the right oblique lower direction into two divisions) of the shown block of interest is determined as a division candidate.

分割候補決定部11は、図6(5)に示す8個の隣接ブロックからなるパターンを特定した場合、このパターンが図5(d)の照合パターンに合致すると判定し、図5(d)に示した着目ブロックの導出分割(分割なし)を分割候補に決定する。この場合、着目ブロックは分割されず、ブロック化部10のブロック化処理部14から符号化処理部20へ、元のサイズの分割されたブロックが出力される。   When the division candidate determination unit 11 specifies a pattern consisting of eight adjacent blocks shown in FIG. 6 (5), the division candidate determination unit 11 determines that this pattern matches the collation pattern in FIG. 5 (d), as shown in FIG. The derived division (without division) of the indicated block of interest is determined as a division candidate. In this case, the block of interest is not divided, and the block divided by the original size is output from the blocking unit 14 of the blocking unit 10 to the encoding unit 20.

分割候補決定部11は、図6(6)に示す8個の隣接ブロックからなるパターンを特定した場合、このパターンが図5(a)及び(e)の照合パターンに合致すると判定し、図5(a)及び(e)に示した着目ブロックの導出分割(垂直2分割の分割形状、並びに垂直及び水平4分割の分割形状)を分割候補に決定する。   When the division candidate determination unit 11 specifies a pattern consisting of eight adjacent blocks shown in FIG. 6 (6), the division candidate determination unit 11 determines that this pattern matches the reference pattern of FIGS. 5 (a) and (e). The derived divisions of the block of interest shown in (a) and (e) (division shape of vertical two divisions and division shapes of vertical and horizontal four divisions) are determined as division candidates.

尚、分割候補決定部11は、隣接ブロックのパターンと照合パターンとを比較し、例えば、図5(a)の照合パターン及び図5(c)の照合パターンと合致すると判定した場合、着目ブロックの導出分割として、垂直2分割の分割形状及び右斜め下方向2分割の分割形状の分割候補を決定する。この場合、分割形状決定部13は、分割候補が示す垂直2分割の分割形状について、動き補償予測のコストを求め、1つの分割候補を特定して分割形状を決定するようにしてもよいし、分割なしの分割候補を優先し、動き補償予測のコストを求めることなく、分割なしに決定するようにしてもよい。   The division candidate determination unit 11 compares the pattern of the adjacent block with the matching pattern, and for example, when it is determined that the matching pattern in FIG. 5A and the matching pattern in FIG. As derivation | leading-out division | segmentation, the division | segmentation shape of the division | segmentation shape of perpendicular | vertical 2 division | segmentation and the division | segmentation shape of the diagonal right downward 2 division is determined. In this case, the division shape determination unit 13 may obtain the cost of motion compensation prediction for the vertical 2-division division shape indicated by the division candidate, specify one division candidate, and determine the division shape. The division candidate without division may be prioritized, and determination may be made without division without obtaining the cost of motion compensation prediction.

また、図5及び図6では、説明を容易にするため、照合パターン及び導出分割等を図の形状で示したが、実際は、分割形状の種類、任意ブロックコード、未処理ブロックコード等を何らかの数値または文字等に置き換えたテーブルが符号化装置1に実装され、またはプログラムとして実装される。   5 and 6 show the matching pattern and the derived division etc. in the form of a figure for ease of explanation, but in actuality, the kind of divided shape, arbitrary block code, unprocessed block code etc. Alternatively, a table replaced with characters or the like is implemented in the encoding device 1 or implemented as a program.

(符号化処理部20)
図7は、図2に示した符号化処理部20の構成を示すブロック図である。この符号化処理部20は、減算部21、直交変換部22、量子化部23、逆量子化部24、逆直交変換部25、加算部26、デブロッキングフィルタ27、メモリ28、フレーム内予測部29、動き補償予測部30、切替スイッチ31、スキャニング部32及びエントロピー符号化部33を備えている。
(Encoding processing unit 20)
FIG. 7 is a block diagram showing the configuration of the encoding processing unit 20 shown in FIG. The encoding processing unit 20 includes a subtraction unit 21, an orthogonal transformation unit 22, a quantization unit 23, an inverse quantization unit 24, an inverse orthogonal transformation unit 25, an addition unit 26, a deblocking filter 27, a memory 28, an intraframe prediction unit 29, a motion compensation prediction unit 30, a changeover switch 31, a scanning unit 32, and an entropy coding unit 33.

符号化処理部20は、動き補償予測、フレーム内予測、直交変換、量子化、エントロピー符号化等によって画像のブロックを符号化する。また、符号化処理部20は、復号した画像を予測に用いるため、当該符号化処理部20内に復号処理部を内包している。   The encoding processing unit 20 encodes a block of an image by motion compensation prediction, intra-frame prediction, orthogonal transformation, quantization, entropy coding, or the like. Further, the coding processing unit 20 includes a decoding processing unit in the coding processing unit 20 in order to use the decoded image for prediction.

動き補償予測部30は、フレーム間予測を行う場合に用いられ、ブロック化部10から符号化対象のブロックを入力すると共に、メモリ28から参照画像を読み出し、ブロック及び参照画像を用いて動きベクトルを検出し、動きベクトルを用いて動き補償を行う。そして、動き補償予測部30は、動き補償により得られた予測画像を、切替スイッチ31を介して減算部21及び加算部26に出力する。また、動き補償予測部30は、動きベクトルをエントロピー符号化部33に出力する。   The motion compensation prediction unit 30 is used when performing inter-frame prediction, and inputs a block to be encoded from the blocking unit 10, reads a reference image from the memory 28, and uses the block and the reference image to calculate a motion vector. Detect and perform motion compensation using a motion vector. Then, the motion compensation prediction unit 30 outputs the predicted image obtained by the motion compensation to the subtraction unit 21 and the addition unit 26 via the changeover switch 31. Also, the motion compensation prediction unit 30 outputs the motion vector to the entropy coding unit 33.

フレーム内予測部29は、フレーム内予測を行う場合に用いられ、メモリ28から参照画像を読み出し、参照画像を用いて外挿補間を行い、その結果得られた予測画像を、切替スイッチ31を介して減算部21及び加算部26に出力する。   The intra-frame prediction unit 29 is used when performing intra-frame prediction, reads a reference image from the memory 28, performs extrapolation interpolation using the reference image, and obtains a predicted image obtained as a result via the switch 31. And outputs the result to the subtraction unit 21 and the addition unit 26.

フレーム間予測及びフレーム内予測のいずれも同様の処理が施されるため、以下、フレーム間予測の場合を説明する。   Since the same processing is applied to both inter-frame prediction and intra-frame prediction, the case of inter-frame prediction will be described below.

減算部21は、ブロック化部10から符号化対象のブロックを入力すると共に、動き補償予測部30から予測画像を入力し、ブロックと予測画像との差分信号を生成して直交変換部22に出力する。   Subtraction unit 21 receives a block to be encoded from blocking unit 10, receives a prediction image from motion compensation prediction unit 30, generates a difference signal between the block and the prediction image, and outputs the signal to orthogonal transformation unit 22. Do.

直交変換部22は、減算部21から差分信号を入力し、差分信号に対して直交変換を施し、直交変換係数を生成して量子化部23に出力する。   The orthogonal transformation unit 22 receives the difference signal from the subtraction unit 21, performs orthogonal transformation on the difference signal, generates an orthogonal transformation coefficient, and outputs the orthogonal transformation coefficient to the quantization unit 23.

量子化部23は、直交変換部22から差分信号の直交変換係数を入力し、この直交変換係数に対応する配列で量子化を行うための正規化係数マトリクスを用いて、直交変換係数に対して量子化処理を行い、量子化ブロックを生成してスキャニング部32及び逆量子化部24に出力する。   The quantization unit 23 receives the orthogonal transform coefficients of the difference signal from the orthogonal transform unit 22, and uses a normalization coefficient matrix for performing quantization in an array corresponding to the orthogonal transform coefficients, to the orthogonal transform coefficients. A quantization process is performed to generate a quantization block, which is output to the scanning unit 32 and the dequantization unit 24.

スキャニング部32は、量子化部23から、直交変換係数に対応する予め設定されたスキャニングオーダーで量子化ブロックの読み出しを行い、読み出した量子化ブロックをエントロピー符号化部33に出力する。   The scanning unit 32 reads the quantization block from the quantization unit 23 in a preset scanning order corresponding to the orthogonal transformation coefficient, and outputs the read quantization block to the entropy coding unit 33.

エントロピー符号化部33は、スキャニング部32から量子化ブロックを、動き補償予測部30から動きベクトルを、ブロック化部10から分割形状データをそれぞれ入力し、これらのデータにエントロピー符号化処理を施し、ビットストリームを生成して出力する。また、エントロピー符号化部33は、生成したビットストリームからビット量を算出し、ビット量をブロック化部10に出力する。   The entropy coding unit 33 receives the quantization block from the scanning unit 32, the motion vector from the motion compensation prediction unit 30, and the divided shape data from the blocking unit 10, and performs entropy coding processing on these data, Generate and output a bitstream. Further, the entropy coding unit 33 calculates the bit amount from the generated bit stream, and outputs the bit amount to the blocking unit 10.

逆量子化部24は、量子化部23から量子化ブロックを入力し、量子化ブロックに逆量子化処理を施し、直交変換係数を生成して逆直交変換部25に出力する。   The inverse quantization unit 24 receives the quantization block from the quantization unit 23, performs inverse quantization processing on the quantization block, generates an orthogonal transformation coefficient, and outputs the orthogonal transformation coefficient to the inverse orthogonal transformation unit 25.

逆直交変換部25は、逆量子化部24から直交変換係数を入力し、直交変換係数に逆直交変換を施し、逆直交変換信号を加算部26に出力する。   The inverse orthogonal transformation unit 25 receives the orthogonal transformation coefficient from the inverse quantization unit 24, performs inverse orthogonal transformation on the orthogonal transformation coefficient, and outputs an inverse orthogonal transformation signal to the addition unit 26.

加算部26は、動き補償予測部30から予測画像を入力すると共に、逆直交変換部25から逆直交変換信号を入力し、予測画像と逆直交変換信号とを加算して復号画像を生成し、復号画像をデブロッキングフィルタ27に出力する。   The addition unit 26 receives the prediction image from the motion compensation prediction unit 30, and receives the inverse orthogonal transformation signal from the inverse orthogonal transformation unit 25, adds the prediction image and the inverse orthogonal transformation signal, and generates a decoded image, The decoded image is output to the deblocking filter 27.

デブロッキングフィルタ27は、加算部26から復号画像を入力し、復号画像のブロック歪みを抑制するためのフィルタ処理を行い、フィルタ処理後の復号画像をメモリ28に格納する。また、デブロッキングフィルタ27は、復号画像のブロック歪みに関するデータ(原画との間の劣化量)を生成してブロック化部10に出力する。   The deblocking filter 27 receives the decoded image from the adding unit 26, performs filter processing for suppressing block distortion of the decoded image, and stores the decoded image after filter processing in the memory 28. In addition, the deblocking filter 27 generates data (the amount of deterioration between the original image and the block distortion) of the decoded image and outputs the data to the blocking unit 10.

これにより、エントロピー符号化部33により算出されたビット量及びデブロッキングフィルタ27により生成された復号画像の歪みに関するデータは、ブロック化部10の分割形状決定部13に出力され、分割形状決定部13において、複数の分割候補から1つの分割候補を特定して分割形状を決定する動き補償予測のコストを求めるために用いられる。   As a result, the bit amount calculated by the entropy coding unit 33 and the data on distortion of the decoded image generated by the deblocking filter 27 are output to the division shape determination unit 13 of the blocking unit 10, and the division shape determination unit 13 Is used to determine the cost of motion compensation prediction that identifies one division candidate from a plurality of division candidates and determines the division shape.

メモリ28に格納された復号画像は、フレーム間予測における参照画像、及びフレーム内予測における参照画像として用いられる。切替スイッチ31は、フレーム間予測及びフレーム内予測の切り替えのために用いられる。   The decoded image stored in the memory 28 is used as a reference image in inter-frame prediction and as a reference image in intra-frame prediction. The changeover switch 31 is used to switch between inter-frame prediction and intra-frame prediction.

以上のように、実施例1の符号化装置1によれば、ブロック化部10の分割候補決定部11は、着目ブロックについて、分割形状決定部13により分割形状が決定された処理済みの隣接ブロック及び未処理の隣接ブロックのパターンと、予め設定された分割パターン表の分割パターンに含まれる照合パターンとを比較し、両パターンが合致する場合に、その照合パターンに対応する導出分割を分割候補に決定するようにした。そして、分割形状決定部13は、分割候補決定部11により決定された分割候補についてのみ、動き補償予測のコストを求め、動き補償予測のコストに基づいて、1つの分割候補を特定して分割形状を決定するようにした。   As described above, according to the encoding device 1 of the first embodiment, the division candidate determination unit 11 of the blocking unit 10 processes the adjacent block for which the division shape has been determined by the division shape determination unit 13 for the block of interest. The pattern of the adjacent block that has not been processed and the comparison pattern included in the division pattern of the division pattern table set in advance are compared, and when both patterns match, the derived division corresponding to the comparison pattern is made a division candidate I decided to make a decision. Then, the division shape determination unit 13 obtains the cost of motion compensation prediction only for the division candidate determined by the division candidate determination unit 11, identifies one division candidate based on the cost of motion compensation prediction, and divides the shape. To decide.

これにより、分割候補の分割形状に対して、分割形状の良否を求める試行を行えばよいから、符号化方式に応じて予め設定された分割形状の全てに対して試行を行う従来手法よりも、その回数を低減することができる。つまり、ブロックの分割形状を決定する際に、分割形状の候補の数を減らすことができ、結果として、それぞれの分割形状の良否を求める試行の回数を低減することができる。また、実施例1の符号化装置1から出力されるビットストームを入力し復号するために、従来の復号装置を用いることができる。   As a result, it is only necessary to try to determine whether the division shape is good or not for the division shape of the division candidate, and therefore, it is possible to perform a trial on all division shapes set in advance according to the encoding method. The number of times can be reduced. That is, when determining the division shape of the block, the number of division shape candidates can be reduced, and as a result, the number of trials for determining the quality of each division shape can be reduced. In addition, a conventional decoding device can be used to input and decode the bit storm output from the encoding device 1 of the first embodiment.

〔実施例2〕
次に、実施例2について説明する。実施例2は、符号化装置において、1以上の分割候補から分割形状を決定した後、当該1以上の分割候補の中からその分割形状を識別するための分割形状コードを生成し、分割形状コードを、符号化装置から復号装置へ伝送する例であり、また、分割パターン表を、符号化装置から復号装置へ伝送する例である。
Example 2
Next, Example 2 will be described. In the second embodiment, after the division shape is determined from one or more division candidates in the encoding apparatus, a division shape code for identifying the division shape is generated from the one or more division candidates, and the division shape code is generated. Is an example of transmitting from the encoding apparatus to the decoding apparatus, and is an example of transmitting a divided pattern table from the encoding apparatus to the decoding apparatus.

(符号化装置/実施例2−1)
図8は、実施例2−1の符号化装置の構成を示すブロック図である。この符号化装置2は、ブロック化部40及び符号化処理部50を備えている。図2に示した実施例1の符号化装置1とこの実施例2−1の符号化装置2とを比較すると、実施例1の符号化装置1は、例えば予め設定された分割形状が8種類存在する場合、その中から分割候補を決定し、その分割形状を8種類の中から識別するための分割形状データを出力する。この場合の分割形状データは、0〜7であるから、3ビットのデータにより構成される。
(Coding apparatus / Example 2-1)
FIG. 8 is a block diagram showing the configuration of the coding apparatus of the embodiment 2-1. The encoding device 2 includes a blocking unit 40 and an encoding processing unit 50. Comparing the coding apparatus 1 of the first embodiment shown in FIG. 2 with the coding apparatus 2 of the present embodiment 2-1, the coding apparatus 1 of the first embodiment has, for example, eight preset division shapes. If it exists, it determines a division candidate from among them, and outputs division shape data for identifying the division shape out of eight types. Since the divided shape data in this case is 0 to 7, it is composed of 3-bit data.

これに対し、実施例2−1の符号化装置2は、例えば予め設定された分割形状が8種類存在し、その中から3種類の分割候補を決定し、3種類の分割候補から分割形状を決定した場合、決定した分割形状を3種類の分割候補の中から識別するための分割形状コードを出力する。この場合の分割形状コードは、0〜2であるから、2ビットのデータにより構成される。   On the other hand, in the encoding device 2 of Example 2-1, for example, there are eight types of preset division shapes, and among them, three types of division candidates are determined, and the division shapes are determined from the three types of division candidates. When it is determined, a divided shape code for identifying the determined divided shape out of three types of divided candidates is output. Since the divided shape code in this case is 0 to 2, it is composed of 2-bit data.

このように、実施例2−1の符号化装置2は、予め設定された分割形状から1つを識別するための分割形状データ(3ビットのデータ)ではなく、決定した分割候補から1つを識別するための分割形状コード(2ビットのデータ)を出力すればよい。これは、後述する復号装置が、符号化装置2と同様に分割候補を決定し、分割形状コードを用いることで、分割候補の中から1つの分割形状を決定することができるからである。   As described above, the encoding device 2 of the embodiment 2-1 does not use divided shape data (3-bit data) for identifying one from the preset divided shapes, but uses one of the determined division candidates. A divided shape code (2-bit data) for identification may be output. This is because the decoding device described later determines division candidates similarly to the encoding device 2 and can use the division shape code to determine one division shape from among division candidates.

図8を参照して、ブロック化部40は、図2に示した実施例1のブロック化部10と同様に、フレーム画像を入力し、フレーム画像を所定のブロックに分割し、分割候補を決定する。そして、ブロック化部40は、分割候補のブロックについて、動き補償予測のコストを求め、動き補償予測のコストに基づいて1つの分割候補を特定し、分割形状を決定する。そして、ブロック化部40は、決定した分割形状のブロック及び分割形状コードを符号化処理部50に出力する。   Referring to FIG. 8, similarly to the blocking unit 10 of the first embodiment shown in FIG. 2, the blocking unit 40 inputs a frame image, divides the frame image into predetermined blocks, and determines division candidates. Do. Then, the blocking unit 40 obtains a motion compensation prediction cost for the division candidate block, identifies one division candidate based on the motion compensation prediction cost, and determines a division shape. Then, the blocking unit 40 outputs the block of the determined divided shape and the divided shape code to the encoding processing unit 50.

符号化処理部50は、ブロック化部40からブロック及び分割形状コードを入力し、図2に示した実施例1の符号化処理部20と同様に、入力したブロックを符号化対象ブロックとし、動きベクトルを検出して予測画像と生成し、符号化対象ブロックと予測画像との間の差分信号を生成する。そして、符号化処理部50は、差分信号、動きベクトル及び分割形状コードを符号化し、ビットストリームを生成して出力し、ビット量等をブロック化部40に出力する。   The coding processing unit 50 receives the block and the divided shape code from the blocking unit 40, and sets the input block as a coding target block as in the coding processing unit 20 of the first embodiment shown in FIG. A vector is detected and generated as a predicted image, and a difference signal between the block to be encoded and the predicted image is generated. Then, the encoding processing unit 50 encodes the difference signal, the motion vector, and the divided shape code, generates and outputs a bit stream, and outputs a bit amount and the like to the blocking unit 40.

(ブロック化部40)
図9は、図8に示したブロック化部40の構成を示すブロック図である。このブロック化部40は、分割候補決定部11、メモリ12−1,12−2、分割形状決定部15及びブロック化処理部14を備えている。図3に示した実施例1のブロック化部10と実施例2のブロック化部40とを比較すると、両ブロック化部10,40は、分割候補決定部11、メモリ12−1,12−2及びブロック化処理部14を備えている点で同一である。一方、実施例2のブロック化部40は、実施例1のブロック化部10における分割形状決定部13とは異なる分割形状決定部15を備えている点で相違する。
(Blocking unit 40)
FIG. 9 is a block diagram showing the configuration of the blocking unit 40 shown in FIG. The blocking unit 40 includes a division candidate determination unit 11, memories 12-1 and 12-2, a division shape determination unit 15, and a blocking processing unit 14. Comparing the blocking unit 10 of the first embodiment shown in FIG. 3 with the blocking unit 40 of the second embodiment, both blocking units 10 and 40 have the division candidate determination unit 11 and the memories 12-1 and 12-2. And the block processing unit 14 is identical. On the other hand, the blocking unit 40 of the second embodiment is different in that a dividing shape determination unit 15 different from the dividing shape determination unit 13 in the blocking unit 10 of the first embodiment is provided.

分割候補決定部11、メモリ12−1,12−2及びブロック化処理部14については図3に示した実施例1と同様であるから、ここでは説明を省略する。   The division candidate determination unit 11, the memories 12-1 and 12-2, and the blocking processing unit 14 are the same as those of the first embodiment shown in FIG.

分割形状決定部15は、図3に示した分割形状決定部13と同様に、分割候補決定部11から着目ブロックについての1以上の分割候補を入力し、1以上の分割候補のそれぞれについて、動き補償予測のコストを求め、動き補償予測のコストに基づいて、1つの分割候補を特定して分割形状を決定する。   Similar to the division shape determination unit 13 shown in FIG. 3, the division shape determination unit 15 receives one or more division candidates for the block of interest from the division candidate determination unit 11 and moves each of the one or more division candidates. The cost of compensation prediction is obtained, and one division candidate is specified to determine the division shape based on the cost of motion compensation prediction.

また、分割形状決定部15は、図3に示した分割形状決定部13と異なり、決定した分割形状を分割候補の中から識別するための分割形状コードを生成し、当該ブロックの分割形状コードとして符号化処理部50に出力する。   Further, unlike the divided shape determination unit 13 shown in FIG. 3, the divided shape determination unit 15 generates a divided shape code for identifying the determined divided shape from among the division candidates, and uses it as the divided shape code of the block. It is output to the encoding processing unit 50.

以上のように、実施例2−1の符号化装置2によれば、実施例1の符号化装置1と同様の効果を奏する。すなわち、分割形状の良否を求める試行の回数を低減することができる。   As described above, according to the encoding device 2 of the embodiment 2-1, the same effect as that of the encoding device 1 of the embodiment 1 can be obtained. That is, it is possible to reduce the number of trials for determining the quality of the divided shape.

また、ブロック化部40の分割形状決定部15は、決定した分割形状を分割候補の中から識別するための分割形状コードを生成するようにした。この分割形状コードはビットストリームに符号化され、符号化装置2から出力される。   Further, the division shape determination unit 15 of the blocking unit 40 generates a division shape code for identifying the determined division shape from among division candidates. The divided shape code is encoded into a bit stream and output from the encoding device 2.

これにより、後述する復号装置は、符号化装置2と同様に分割候補を決定し、分割形状コードを用いて、分割候補の中から1つの分割形状を決定することができる。つまり、予め設定された分割形状から1つを識別するための分割形状データよりもビット数の小さい分割形状コードが出力されるから、ビットレートを低くすることができる。   Thereby, the decoding device described later can determine division candidates similarly to the encoding device 2, and can determine one division shape from among the division candidates using the division shape code. That is, since the divided shape code having a smaller number of bits than the divided shape data for identifying one from the preset divided shapes is output, the bit rate can be lowered.

(復号装置/実施例2−2)
実施例2−2の復号装置及び後述する実施例2−4の復号装置は、いずれも低ビットレートのビットストームを入力し、伝送効率を向上させることを目的とした装置である。
(Decoding Device / Embodiment 2-2)
The decoding apparatus according to the embodiment 2-2 and the decoding apparatus according to the embodiment 2-4 to be described later are apparatuses for receiving a bit storm of a low bit rate and improving transmission efficiency.

図10は、実施例2−2の復号装置の構成を示すブロック図である。この復号装置3は、図8に示した実施例2−1の符号化装置2に対応する復号側の装置であり、エントロピー復号部60、分割形状識別部61及び復号処理部70を備えている。   FIG. 10 is a block diagram showing the configuration of the decoding device of Example 2-2. The decoding device 3 is a device on the decoding side corresponding to the encoding device 2 of the embodiment 2-1 shown in FIG. 8 and includes an entropy decoding unit 60, a division shape identification unit 61, and a decoding processing unit 70. .

復号装置3が、図8に示した実施例2−1の符号化装置2から出力されたビットストリームを入力すると、エントロピー復号部60は、ビットストリームを入力し、ビットストリームにエントロピー復号を施し、復号ブロック、動きベクトル及び分割形状コードを生成する。そして、エントロピー復号部60は、復号ブロック、動きベクトル及び分割形状コードを分割形状識別部61に出力する。   When the decoding device 3 receives the bit stream output from the encoding device 2 of the embodiment 2-1 shown in FIG. 8, the entropy decoding unit 60 receives the bit stream and performs entropy decoding on the bit stream, Generate decoded blocks, motion vectors and segmented shape codes. Then, the entropy decoding unit 60 outputs the decoded block, the motion vector, and the divided shape code to the divided shape identification unit 61.

分割形状識別部61は、エントロピー復号部60から復号ブロック、動きベクトル及び分割形状コードを入力し、分割形状コードに対応するブロック毎に(分割形状コードが示す分割形状を有するブロック毎に)、当該ブロックを分割する際の分割候補を決定する。そして、分割形状識別部61は、分割候補の中から分割形状コードが示す分割候補を特定し、当該ブロックについての分割形状を識別し、当該ブロックに対応する1以上の復号ブロックのそれぞれをその分割形状のブロック(復号対象のブロック)として復号処理部70に出力すると共に、入力した動きベクトルをそのまま復号処理部70に出力する。尚、復号ブロックは、符号化装置2において、分割形状に分割されたブロック(符号化対象のブロック)に対応している。分割形状識別部61の処理の詳細については後述する。   The divided shape identification unit 61 receives the decoded block, the motion vector, and the divided shape code from the entropy decoding unit 60, and for each block corresponding to the divided shape code (for each block having the divided shape indicated by the divided shape code), Determine division candidates when dividing a block. Then, the division shape identification unit 61 specifies the division candidate indicated by the division shape code from among the division candidates, identifies the division shape for the block, and divides each of one or more decoded blocks corresponding to the block. While outputting to the decoding processing unit 70 as a block of a shape (a block to be decoded), the input motion vector is output to the decoding processing unit 70 as it is. The decoded block corresponds to the block (the block to be encoded) divided into divided shapes in the encoding device 2. Details of the processing of the divided shape identification unit 61 will be described later.

復号処理部70は、分割形状識別部61からブロック及び動きベクトルを入力し、入力したブロックを復号対象のブロックとし、動きベクトルから予測画像を生成し、復号対象のブロックである差分信号と予測画像とを加算して復号画像を生成する。復号処理部70の処理の詳細については後述する。   The decoding processing unit 70 receives a block and a motion vector from the divided shape identification unit 61, sets the input block as a block to be decoded, generates a prediction image from the motion vector, and generates a prediction signal and a differential signal as a block to be decoded And to generate a decoded image. Details of the processing of the decoding processing unit 70 will be described later.

(分割形状識別部61)
図11は、図10に示した分割形状識別部61の構成を示すブロック図である。この分割形状識別部61は、分割候補決定部62、メモリ63−1,63−2及び分割形状抽出部64を備えている。
(Division shape identification unit 61)
FIG. 11 is a block diagram showing the configuration of the divided shape identification unit 61 shown in FIG. The division shape identification unit 61 includes a division candidate determination unit 62, memories 63-1 and 63-2, and a division shape extraction unit 64.

メモリ63−1には、図3に示したメモリ12−1に格納された分割パターン表と同じ分割パターン表が格納されている。メモリ63−2には、図3に示したメモリ12−2と同様に、ブロック毎に分割形状が格納されている。この分割形状は、後述する分割形状抽出部64により1以上の分割候補から抽出された分割候補の分割形状である。メモリ63−2に分割形状が格納されているブロックは、処理済みブロックである。   In the memory 63-1, the same division pattern table as the division pattern table stored in the memory 12-1 shown in FIG. 3 is stored. Similar to the memory 12-2 shown in FIG. 3, the memory 63-2 stores divided shapes for each block. The division shape is a division shape of division candidates extracted from one or more division candidates by a division shape extraction unit 64 described later. The block whose divided shape is stored in the memory 63-2 is a processed block.

分割候補決定部62は、エントロピー復号部60から復号ブロック及び分割形状コードを入力し、分割形状コードに対応するブロックを着目ブロックに設定し、着目ブロックについて、図3に示した分割候補決定部11と同様に、メモリ63−2から読み出した隣接ブロックの分割形状等のパターンと、メモリ63−1から読み出した分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、1以上の分割候補を決定する。そして、分割候補決定部62は、着目ブロックについての1以上の分割候補を分割形状抽出部64に出力する。   The division candidate determination unit 62 receives the decoded block and the division shape code from the entropy decoding unit 60, sets the block corresponding to the division shape code as the block of interest, and the division candidate determination unit 11 illustrated in FIG. Similarly, by comparing the pattern such as the division shape of the adjacent block read from the memory 63-2 with the matching pattern included in the division pattern of the division pattern table read from the memory 63-1, one or more divisions Determine the candidate. Then, the division candidate determination unit 62 outputs one or more division candidates for the block of interest to the division shape extraction unit 64.

分割形状抽出部64は、エントロピー復号部60から復号ブロック及び分割形状コードを入力すると共に、分割候補決定部62から1以上の分割候補を入力し、1以上の分割候補から分割形状コードが示す分割候補を特定し、分割候補が示す分割形状を、分割形状コードに対応するブロックの分割形状として抽出し、その分割形状の復号ブロックを復号対象のブロックとして復号処理部70に出力する。   The division shape extraction unit 64 inputs the decoded block and the division shape code from the entropy decoding unit 60, and also inputs one or more division candidates from the division candidate determination unit 62, and divides the division shape code from the one or more division candidates. The candidate is specified, the division shape indicated by the division candidate is extracted as the division shape of the block corresponding to the division shape code, and the decoded block of the division shape is output to the decoding processing unit 70 as the block to be decoded.

例えば、実施例2−1の符号化装置2のブロック化部40において、あるブロックAについて、分割候補決定部11により3種類の分割候補a,b,cが決定され、分割形状決定部15により3種類の分割候補a,b,cから1つの分割候補bの分割形状が決定され、決定された分割形状の分割形状コードb’が生成された場合を想定する。実施例2−2の復号装置3においても、分割形状コードb’に対応するブロックAについて、分割形状識別部61の分割候補決定部62は、同じ3種類の分割候補a,b,cを決定し、分割形状抽出部64は、分割形状コードb’に基づいて、3種類の分割候補a,b,cのうちの1つの分割候補bを特定し、分割候補bの分割形状を、当該ブロックAの分割形状に決定する。   For example, in the blocking unit 40 of the encoding device 2 of Example 2-1, three types of division candidates a, b, and c are determined by the division candidate determination unit 11 for a certain block A, and the division shape determination unit 15 It is assumed that a division shape of one division candidate b is determined from three types of division candidates a, b, and c, and a divided shape code b ′ of the determined division shape is generated. Also in the decoding device 3 of Example 2-2, the division candidate determination unit 62 of the division shape identification unit 61 determines the same three types of division candidates a, b, and c for the block A corresponding to the division shape code b ′. The division shape extraction unit 64 identifies one of the three division candidates a, b and c based on the division shape code b ′, and divides the division shape of the division candidate b into the corresponding block. Determine the division shape of A.

このように、分割形状コードを用いることで、符号化装置2の分割形状決定部15により決定される分割形状と、復号装置3の分割形状抽出部64により抽出される分割形状とが一致する。   Thus, by using the divided shape code, the divided shape determined by the divided shape determination unit 15 of the encoding device 2 matches the divided shape extracted by the divided shape extraction unit 64 of the decoding device 3.

尚、分割形状識別部61は、エントロピー復号部60から入力する動きベクトルを、そのまま復号処理部70に出力する。   The divided shape identification unit 61 outputs the motion vector input from the entropy decoding unit 60 to the decoding processing unit 70 as it is.

(復号処理部70)
図12は、図10に示した復号処理部70の構成を示すブロック図である。この復号処理部70は、スキャニング部71、逆量子化部72、逆直交変換部73、加算部74、デブロッキングフィルタ75、メモリ76、フレーム内予測部77、動き補償予測部78、切替スイッチ79及び並べ替え部80を備えている。
(Decryption processing unit 70)
FIG. 12 is a block diagram showing a configuration of decoding processing unit 70 shown in FIG. The decoding processing unit 70 includes a scanning unit 71, an inverse quantization unit 72, an inverse orthogonal transformation unit 73, an addition unit 74, a deblocking filter 75, a memory 76, an intraframe prediction unit 77, a motion compensation prediction unit 78, and a changeover switch 79. And a sorting unit 80.

スキャニング部71は、符号化装置2側で指定されるスキャニングオーダーにて、分割形状識別部61を介してブロックを読み出し、ブロックを逆量子化部72に出力する。逆量子化部72は、スキャニング部71が読み出したブロックを入力し、ブロックに逆量子化処理を施し、差分信号の直交変換係数を生成して逆直交変換部73に出力する。逆直交変換部73は、逆量子化部72から差分信号の直交変換係数を入力し、差分信号の直交変換係数に逆直交変換を施し、ブロックの差分信号を加算部74に出力する。   The scanning unit 71 reads a block via the divided shape identification unit 61 in the scanning order specified on the encoding device 2 side, and outputs the block to the inverse quantization unit 72. The inverse quantization unit 72 receives the block read by the scanning unit 71, performs inverse quantization processing on the block, generates an orthogonal transformation coefficient of the difference signal, and outputs the orthogonal transformation coefficient to the inverse orthogonal transformation unit 73. The inverse orthogonal transformation unit 73 receives the orthogonal transformation coefficient of the differential signal from the inverse quantization unit 72, performs inverse orthogonal transformation on the orthogonal transformation coefficient of the differential signal, and outputs the differential signal of the block to the addition unit 74.

動き補償予測部78は、フレーム間予測を行う場合に用いられ、メモリ76から参照画像を読み出すと共に、エントロピー復号部60から動きベクトルを入力し、動きベクトルを用いて動き補償を行い、参照画像から予測画像を生成し、予測画像を、切替スイッチ79を介して加算部74に出力する。   The motion compensation prediction unit 78 is used when performing inter-frame prediction, reads a reference image from the memory 76, receives a motion vector from the entropy decoding unit 60, performs motion compensation using the motion vector, and generates a reference image A predicted image is generated, and the predicted image is output to the adding unit 74 via the changeover switch 79.

フレーム内予測部77は、フレーム内予測を行う場合に用いられ、メモリ76から参照画像を読み出し、参照画像を用いて外挿補間を行い、その結果得られた予測画像を、切替スイッチ79を介して加算部74に出力する。   The intra-frame prediction unit 77 is used when performing intra-frame prediction, reads a reference image from the memory 76, performs extrapolation interpolation using the reference image, and obtains a predicted image obtained as a result via the switch 79. Output to the adding unit 74.

フレーム間予測及びフレーム内予測のいずれも同様の処理が施されるため、以下、フレーム間予測の場合を説明する。   Since the same processing is applied to both inter-frame prediction and intra-frame prediction, the case of inter-frame prediction will be described below.

加算部74は、逆直交変換部73からブロックの差分信号を入力すると共に、動き補償予測部78から予測画像を入力し、ブロックの差分信号と予測画像とを加算して画像信号を復元し、復元した画像信号をデブロッキングフィルタ75に出力する。   The addition unit 74 receives the difference signal of the block from the inverse orthogonal transformation unit 73 and receives the prediction image from the motion compensation prediction unit 78, adds the difference signal of the block and the prediction image, and restores the image signal, The restored image signal is output to the deblocking filter 75.

デブロッキングフィルタ75は、加算部74から復元した画像信号を入力し、復元した画像信号のブロック歪みを抑制するためのフィルタ処理を行い、フィルタ処理後の画像をメモリ76に格納すると共に、並べ替え部80に出力する。   The deblocking filter 75 receives the image signal restored from the adding unit 74, performs filter processing for suppressing block distortion of the restored image signal, stores the image after filter processing in the memory 76, and rearranges it. Output to the unit 80.

並べ替え部80は、デブロッキングフィルタ75からフィルタ処理後の画像を入力し、画像を並べ替えてフレーム画像を生成し、フレーム画像を出力する。   The rearrangement unit 80 receives the image after filter processing from the deblocking filter 75, rearranges the images to generate a frame image, and outputs a frame image.

メモリ76に格納された画像は、フレーム間予測における参照画像、及びフレーム内予測における参照画像として用いられる。切替スイッチ79は、フレーム間予測及びフレーム内予測の切り替えのために用いられる。   The image stored in the memory 76 is used as a reference image in inter-frame prediction and as a reference image in intra-frame prediction. The changeover switch 79 is used to switch between interframe prediction and intraframe prediction.

以上のように、実施例2−2の復号装置3によれば、エントロピー復号部60は、実施例2−1の符号化装置2から入力したビットストリームにエントロピー復号を施し、復号ブロック、動きベクトル及び分割形状コードを生成するようにした。そして、分割形状識別部61の分割候補決定部62は、実施例2−1の符号化装置2の分割候補決定部11と同様に、着目ブロックについて、分割形状抽出部64により分割形状が抽出された隣接ブロック及び未決定の隣接ブロックのパターンと、予め設定された分割パターン表の分割パターンに含まれる照合パターンとを比較し、両パターンが合致する場合に、その照合パターンに対応する導出分割を分割候補に決定するようにした。そして、分割形状抽出部64は、分割候補決定部62により決定された1以上の分割候補のうち、分割形状コードが示す分割候補を特定し、分割候補が示す分割形状を抽出するようにした。   As described above, according to the decoding device 3 of the embodiment 2-2, the entropy decoding unit 60 performs entropy decoding on the bit stream input from the encoding device 2 of the embodiment 2-1, and the decoded block, motion vector And split shape code was generated. Then, the division candidate determination unit 62 of the division shape identification unit 61 extracts the division shape by the division shape extraction unit 64 for the block of interest, similarly to the division candidate determination unit 11 of the encoding device 2 of Example 2-1. The pattern of the adjacent block and the undecided adjacent block is compared with the collation pattern included in the division pattern of the division pattern table set in advance, and when both patterns match, the derived division corresponding to the collation pattern is It was decided to be a division candidate. Then, the division shape extraction unit 64 specifies the division candidate indicated by the division shape code among the one or more division candidates determined by the division candidate determination unit 62, and extracts the division shape indicated by the division candidate.

この場合、実施例2−2の復号装置3へ分割形状コードを含むビットストリームを出力する実施例2−1の符号化装置2では、前述のとおり、ブロックの分割形状を決定する際に、分割形状の候補の数を減らすことができ、結果として、それぞれの分割形状の良否を求める試行の回数を低減することができる。   In this case, in the coding apparatus 2 of the embodiment 2-1 which outputs the bit stream including the divided shape code to the decoding apparatus 3 of the embodiment 2-2, the division is performed when determining the division shape of the block as described above. The number of shape candidates can be reduced, and as a result, the number of trials for determining the quality of each divided shape can be reduced.

そして、実施例2−2の復号装置3では、符号化装置2と同様に分割候補を決定し、分割形状コードを用いて、分割候補の中から1つの分割形状を抽出するようにした。これにより、予め設定された分割形状から1つを識別するための分割形状データよりもビット数の小さい分割形状コードを用いるから、ビットレートを低くすることができ、伝送効率を向上させることができる。   Then, in the decoding device 3 of Example 2-2, division candidates are determined as in the coding device 2, and one division shape is extracted from the division candidates using the division shape code. As a result, since the division shape code having a smaller number of bits than the division shape data for identifying one from the division shapes set in advance is used, the bit rate can be lowered and transmission efficiency can be improved. .

(符号化装置/実施例2−3)
図13は、実施例2−3の符号化装置の構成を示すブロック図である。この符号化装置4は、ブロック化部41及び符号化処理部51を備えている。図8に示した実施例2−1の符号化装置2と実施例2−3の符号化装置4とを比較すると、実施例2−1の符号化装置2は、分割パターン表を出力しないのに対し、実施例2−3の符号化装置4は、分割パターン表を出力する点で相違する。
(Coding apparatus / Example 2-3)
FIG. 13 is a block diagram showing the configuration of the coding apparatus of the embodiment 2-3. The encoding device 4 includes a blocking unit 41 and an encoding processing unit 51. Comparing the coding apparatus 2 of the embodiment 2-1 shown in FIG. 8 with the coding apparatus 4 of the embodiment 2-3, the coding apparatus 2 of the embodiment 2-1 does not output the divided pattern table. On the other hand, the encoding device 4 of the embodiment 2-3 is different in that it outputs a divided pattern table.

ブロック化部41は、図8に示した実施例2−1のブロック化部40と同様の処理を行い、さらに、分割パターン表を符号化処理部51に出力する。   The blocking unit 41 performs the same process as the blocking unit 40 of the embodiment 2-1 illustrated in FIG. 8 and outputs the division pattern table to the encoding processing unit 51.

符号化処理部51は、ブロック化部41からブロック、分割形状コード及び分割パターン表を入力し、図8に示した実施例2−1の符号化処理部50と同様の処理を行い、差分信号、動きベクトル及び分割形状コードに加え、分割パターン表も符号化し、ビットストリームを生成して出力する。   The encoding processing unit 51 receives the block, the divided shape code, and the divided pattern table from the blocking unit 41, and performs the same processing as the encoding processing unit 50 of the embodiment 2-1 shown in FIG. In addition to the motion vector and the divided shape code, the divided pattern table is also encoded to generate and output a bit stream.

(ブロック化部41)
図14は、図13に示したブロック化部41の構成を示すブロック図である。このブロック化部41は、図9に示した実施例2−1のブロック化部40の構成部に加え、さらに、分割パターン表読出部16を備えている。図9に示した実施例2−1のブロック化部40と同じ構成部については、ここでは説明を省略する。
(Blocking unit 41)
FIG. 14 is a block diagram showing the configuration of the blocking unit 41 shown in FIG. The blocking unit 41 further includes a divided pattern table reading unit 16 in addition to the components of the blocking unit 40 of the embodiment 2-1 shown in FIG. The same components as those of the blocking unit 40 of the embodiment 2-1 shown in FIG. 9 will not be described here.

分割パターン表読出部16は、メモリ12−1から分割パターン表を読み出し、分割パターン表を符号化処理部51に出力する。分割パターン表は、符号化処理部51において、差分信号、動きベクトル及び分割形状コードと共に符号化され、ビットストリームとして出力される。   The divided pattern table reading unit 16 reads the divided pattern table from the memory 12-1 and outputs the divided pattern table to the encoding processing unit 51. The division pattern table is encoded together with the difference signal, the motion vector, and the division shape code in the encoding processing unit 51, and is output as a bit stream.

以上のように、実施例2−3の符号化装置4によれば、実施例2−1の符号化装置2と同様の効果を奏する。すなわち、分割形状の良否を求める試行の回数を低減することができ、ビットレートを低くすることができる。   As described above, according to the encoding device 4 of the embodiment 2-3, the same effect as that of the encoding device 2 of the embodiment 2-1 can be obtained. That is, the number of trials for determining whether the division shape is good or not can be reduced, and the bit rate can be lowered.

また、ブロック化部40の分割パターン表読出部16は、メモリ12−1から分割パターン表を読み出すようにした。この分割パターン表はビットストリームに符号化され、符号化装置4から出力される。   Further, the divided pattern table reading unit 16 of the blocking unit 40 reads the divided pattern table from the memory 12-1. The division pattern table is encoded into a bit stream and output from the encoding device 4.

さらに、後述する復号装置が、分割パターン表を入力してメモリに格納することで、符号化装置4と復号装置との間で、常に同一の分割パターン表を保持することができる。符号化装置4にて分割パターン表が更新された場合、復号装置は、更新された分割パターン表を自動更新することができる。   Furthermore, the decoding device described later inputs the division pattern table and stores it in the memory, whereby the same division pattern table can be always held between the encoding device 4 and the decoding device. When the division pattern table is updated by the encoding device 4, the decoding device can automatically update the updated division pattern table.

(復号装置/実施例2−4)
図15は、実施例2−4の復号装置の構成を示すブロック図である。この復号装置5は、図13に示した実施例2−3の符号化装置4に対応する復号側の装置であり、エントロピー復号部65、分割形状識別部66及び復号処理部70を備えている。図10に示した実施例2−2の復号装置3と実施例2−4の復号装置5とを比較すると、実施例2−2の復号装置3は、分割パターン表を入力しないのに対し、実施例2−4の復号装置5は、分割パターン表を入力してメモリに格納する点で相違する。
(Decoding Device / Example 2-4)
FIG. 15 is a block diagram showing the configuration of the decoding apparatus of the embodiment 2-4. The decoding apparatus 5 is an apparatus on the decoding side corresponding to the encoding apparatus 4 of the embodiment 2-3 shown in FIG. 13 and includes an entropy decoding unit 65, a division shape identification unit 66, and a decoding processing unit 70. . Comparing the decoding device 3 of the embodiment 2-2 shown in FIG. 10 with the decoding device 5 of the embodiment 2-4, the decoding device 3 of the embodiment 2-2 does not input the division pattern table, but The decoding device 5 of the embodiment 2-4 is different in that the division pattern table is input and stored in the memory.

復号装置5が、図13に示した実施例2−3の符号化装置4から出力されたビットストリームを入力すると、エントロピー復号部65は、ビットストリームを入力し、ビットストリームにエントロピー復号を施し、復号ブロック、動きベクトル及び分割形状コードに加え、分割パターン表も生成する。そして、エントロピー復号部65は、復号ブロック、動きベクトル、分割形状コード及び分割パターン表を分割形状識別部66に出力する。   When the decoding device 5 receives the bit stream output from the encoding device 4 of the embodiment 2-3 shown in FIG. 13, the entropy decoding unit 65 receives the bit stream and performs entropy decoding on the bit stream, In addition to the decoded block, the motion vector and the divided shape code, a divided pattern table is also generated. Then, the entropy decoding unit 65 outputs the decoded block, the motion vector, the divided shape code, and the divided pattern table to the divided shape identification unit 66.

分割形状識別部66は、エントロピー復号部65から復号ブロック、動きベクトル、分割形状コード及び分割パターン表を入力し、図10に示した実施例2−2のエントロピー復号部60と同様の処理を行い、分割パターン表をメモリに格納する。復号処理部70は、図10に示した実施例2−2の復号処理部70と同様の処理を行う。   The divided shape identification unit 66 receives the decoded block, motion vector, divided shape code, and divided pattern table from the entropy decoding unit 65, and performs the same processing as the entropy decoding unit 60 of the embodiment 2-2 shown in FIG. Store divided pattern table in memory. The decoding processing unit 70 performs the same processing as the decoding processing unit 70 of the embodiment 2-2 shown in FIG.

(分割形状識別部66)
図16は、図13に示した分割形状識別部66の構成を示すブロック図である。この分割形状識別部66は、図11に示した実施例2−2の分割形状識別部61の構成部に加え、さらに、分割パターン表格納部67を備えている。図11に示した実施例2−2の分割形状識別部61と同じ構成部については、ここでは説明を省略する。
(Division shape identification unit 66)
FIG. 16 is a block diagram showing the configuration of the divided shape identification unit 66 shown in FIG. The divided shape identification unit 66 further includes a divided pattern table storage unit 67 in addition to the components of the divided shape identification unit 61 of the embodiment 2-2 shown in FIG. The description of the same components as those of the divided shape identifying unit 61 of the embodiment 2-2 illustrated in FIG. 11 will be omitted here.

分割パターン表格納部67は、エントロピー復号部65から分割パターン表を入力し、分割パターン表をメモリ63−1に格納する。これにより、実施例2−3のメモリ12−1(符号化側のメモリ12−1)に格納された分割パターン表と同じ分割パターン表が、メモリ63−1(復号側のメモリ63−1)に格納される。   The divided pattern table storage unit 67 receives the divided pattern table from the entropy decoding unit 65, and stores the divided pattern table in the memory 63-1. Thereby, the same divided pattern table as the divided pattern table stored in the memory 12-1 (memory 12-1 on the encoding side) of the embodiment 2-3 is stored in the memory 63-1 (memory 63-1 on the decoding side). Stored in

以上のように、実施例2−4の復号装置5によれば、実施例2−2の復号装置3と同様の効果を奏する。また、実施例2−3の符号化装置4との間で、常に同一の分割パターン表を保持することができ、符号化装置4にて分割パターン表が更新された場合、当該復号装置5において、更新された分割パターン表を自動更新することができる。   As mentioned above, according to the decoding apparatus 5 of Example 2-4, the same effect as the decoding apparatus 3 of Example 2-2 is produced. Further, the same division pattern table can be always held with the encoding device 4 of the embodiment 2-3, and when the division pattern table is updated by the encoding device 4, the decoding device 5 concerned , The updated division pattern table can be automatically updated.

〔実施例3〕
次に、実施例3について説明する。実施例3は、分割候補を決定する際に、フレーム画像の全ブロックを、2つの市松模様のブロック群に分類し、第1のブロック群のブロックについて処理を行い、その後、第2のブロック群のブロックについて処理を行う例である。
[Example 3]
Next, Example 3 will be described. In the third embodiment, when determining division candidates, all blocks of the frame image are classified into two checkered block groups, processing is performed on the blocks of the first block group, and then the second block group is processed. It is an example which processes about a block of.

図17は、ラスタスキャン順の処理を説明する図である。斜線を含む□は処理済みブロックを示し、空白の□は未処理ブロックを示す。一般に、ブロック単位の画像処理はラスタスキャン順に行われる。そのため、符号化側の分割候補決定部11及び復号側の分割候補決定部62は、着目ブロック101の分割候補を、処理済みブロック102〜105及び未処理ブロック106〜109を用いて決定する。つまり、着目ブロック101の処理においては、処理済みブロックはブロック102〜105に限定され、着目ブロック101を挟む処理済みブロックは存在しない。   FIG. 17 is a diagram for explaining processing in the raster scan order. The shaded squares indicate processed blocks, and the blank squares indicate unprocessed blocks. Generally, block-based image processing is performed in raster scan order. Therefore, the division candidate determination unit 11 on the encoding side and the division candidate determination unit 62 on the decoding side determine the division candidates of the block of interest 101 using the processed blocks 102 to 105 and the unprocessed blocks 106 to 109. That is, in the processing of the block of interest 101, the processed blocks are limited to the blocks 102 to 105, and there are no processed blocks sandwiching the block of interest 101.

この場合、分割候補決定部11,62が着目ブロック101の分割候補を決定する際に、隣接ブロックとして、着目ブロック101を挟む処理済みブロックが存在することにより、精度の高い分割候補を決定することができ、結果として、復号側にて画像劣化を防ぐことができる。   In this case, when the division candidate determination unit 11 or 62 determines a division candidate of the block of interest 101, a block candidate having high accuracy can be determined by the presence of processed blocks sandwiching the block of interest 101 as adjacent blocks. As a result, image deterioration can be prevented on the decoding side.

そこで、実施例3では、実施例1の符号化装置1、実施例2−1の符号化装置2、実施例2−2の復号装置3、実施例2−3の符号化装置4及び実施例2−4の復号装置5において、着目ブロックの分割候補を決定する際に、隣接ブロックとして、着目ブロックを挟む処理済みブロックが存在するように、処理の順番を設定する。   Therefore, in the third embodiment, the coding device 1 of the first embodiment, the coding device 2 of the second embodiment, the decoding device 3 of the second embodiment, the coding device 4 of the second embodiment, and the third embodiment In the decoding apparatus 5 of 2-4, when determining the division | segmentation candidate of a view block, the order of a process is set so that the processed block which pinches | interposes a view block may exist as an adjacent block.

図18は、実施例3の分割候補決定部11,62の処理を示すフローチャートであり、図19は、図18の説明を補充する図である。まず、分割候補決定部11,62は、フレーム画像を所定のブロックに分割し(ステップS1801)、分割したフレーム画像の全ブロックを、2つの市松模様のブロック群に分類する(ステップS1802)。   FIG. 18 is a flowchart showing the process of the division candidate determination unit 11, 62 of the third embodiment, and FIG. 19 is a diagram supplementing the explanation of FIG. First, the division candidate determination unit 11, 62 divides the frame image into predetermined blocks (step S1801), and classifies all blocks of the divided frame image into two checkered block groups (step S1802).

図19を参照して、斜め線で示したブロック群1,2,3・・・,10が、2つの市松模様のブロック群のうち第1のブロック群を示し、これ以外のブロック群11,12,13,14,・・・が、第2のブロック群を示す。元のフレーム画像を構成する全ブロックをラスタスキャンした場合を想定すると、第1のブロック群は、ラスタスキャンした場合の1番目のブロック、3番目のブロック等により構成され、第2のブロック群は、ラスタスキャンした場合の2番目のブロック、4番目のブロック等により構成される。つまり、フレーム画像を構成する全てのブロックが2種類のブロックに区別され、2種類のブロックが格子状に交互に配置された市松模様を形成する場合に、フレーム画像を構成する全てのブロックが、2つのブロック群に分類される。   Referring to FIG. 19, block groups 1, 2, 3,..., 10 indicated by oblique lines indicate the first block group of the two checkered block groups, and the other block groups 11, 11, 12, 13, 14, ... indicate the second block group. Assuming that all blocks constituting the original frame image are raster scanned, the first block group is composed of the first block, the third block, etc. in the raster scan, and the second block group is , And the second block, the fourth block, etc. in the case of raster scan. That is, when all blocks constituting a frame image are divided into two types of blocks, and two types of blocks form a checkerboard pattern alternately arranged in a grid, all blocks constituting a frame image are It is classified into two block groups.

図18に戻って、分割候補決定部11,62は、第1のブロック群のブロックについて、ラスタスキャン順に、図4のステップS402〜ステップS407の処理にて分割候補を決定する(ステップS1803)。   Referring back to FIG. 18, the division candidate determination units 11 and 62 determine division candidates for the blocks in the first block group in the order of raster scan in the processing of steps S402 to S407 in FIG. 4 (step S1803).

図19のステップS1803を参照して、分割候補決定部11,62は、第1のブロック群の各ブロック1,2,3,4,・・・について、その番号順に、分割候補を決定する。例えば、分割候補決定部11,62は、着目ブロック10について、処理済みブロックである隣接ブロック7,8及び未処理ブロックである他の隣接ブロックのパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、分割候補を決定する。この場合、第1のブロック群に対する処理では、着目ブロックを挟む処理済みブロックは存在しない。   Referring to step S1803 of FIG. 19, the division candidate determination unit 11, 62 determines division candidates in order of their numbers for each of the blocks 1, 2, 3, 4,... Of the first block group. For example, with respect to the block of interest 10, the division candidate determination unit 11, 62 matches the patterns of the adjacent blocks 7 and 8 which are processed blocks and the other adjacent blocks which are unprocessed blocks with the division pattern of the division pattern table. Division candidates are determined by comparing with a pattern. In this case, in the process for the first block group, there are no processed blocks sandwiching the target block.

図18に戻って、分割候補決定部11,62は、ステップS1803にて第1のブロック群の全ブロックを処理した後、第2のブロック群のブロックについて、ラスタスキャン順に、図4のステップS402〜ステップS407の処理にて分割候補を決定する(ステップS1804)。   Referring back to FIG. 18, the division candidate determination unit 11 or 62 processes all the blocks in the first block group in step S 1803, and then performs step S 402 in FIG. 4 in raster scan order for blocks in the second block group. A division candidate is determined in the process of step S407 (step S1804).

図19のステップS1804を参照して、分割候補決定部11,62は、第2のブロック群の各ブロック11,12,13,14,・・・について、その番号順に、分割候補を決定する。例えば、分割候補決定部11,62は、着目ブロック14について、処理済みブロックである隣接ブロック11,2,12,4,5,7及び未処理ブロックである他の隣接ブロックのパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、分割候補を決定する。   Referring to step S1804 in FIG. 19, the division candidate determination unit 11, 62 determines division candidates in the order of the numbers for the blocks 11, 12, 13, 14,... Of the second block group. For example, with respect to the block of interest 14, the division candidate determination unit 11 or 62 determines patterns of adjacent blocks 11, 2, 12, 4, 5, and 7 which are processed blocks and other adjacent blocks which are unprocessed blocks, and division patterns. A division candidate is determined by comparing it with the matching pattern included in the division pattern of the table.

これにより、第2のブロック群に対する処理は、第1のブロック群に対する処理の後に行われるから、着目ブロックを挟む処理済みブロックが存在することになる。例えば、着目ブロック14を挟む処理済みブロックとして、隣接ブロック2,7及び隣接ブロック4,5が存在する。   As a result, since the processing for the second block group is performed after the processing for the first block group, processed blocks sandwiching the target block are present. For example, adjacent blocks 2 and 7 and adjacent blocks 4 and 5 exist as processed blocks sandwiching the target block 14.

以上のように、実施例3によれば、実施例1,2と同様の効果を奏する。また、分割候補決定部11,62は、フレーム画像を所定のブロックに分割し、分割したフレーム画像の全ブロックを、2つの市松模様のブロック群(第1のブロック群及び第2のブロック群)に分類するようにした。そして、分割候補決定部11,62は、第1のブロック群のブロックについて、ラスタスキャン順に分割候補を決定し、その後、第2のブロック群のブロックについて、ラスタスキャン順に分割候補を決定するようにした。   As described above, according to the third embodiment, the same effects as the first and second embodiments can be obtained. Further, the division candidate determination unit 11, 62 divides the frame image into predetermined blocks, and sets all blocks of the divided frame image into two checkered block groups (first block group and second block group) To be classified as Then, the division candidate determination unit 11, 62 determines division candidates in raster scan order for the blocks in the first block group, and then determines division candidates in raster scan order for the blocks in the second block group. did.

これにより、第2のブロック群に対する処理では、着目ブロックを挟む隣接ブロックに処理済みブロックが存在することになり、精度の高い分割候補を決定することができ、結果として、復号側にて画像劣化を防ぐことができる。   As a result, in the processing for the second block group, processed blocks are present in adjacent blocks sandwiching the block of interest, and division candidates with high accuracy can be determined. As a result, image deterioration occurs on the decoding side You can prevent.

〔実施例4〕
次に、実施例4について説明する。実施例4は、着目ブロックの分割候補を決定する際に、着目ブロックを挟む処理済みブロックが存在するように、処理の順番を設定し、フレーム画像を2つに分類することなく、フレーム画像の行単位に処理を行う例である。
Example 4
Next, the fourth embodiment will be described. In the fourth embodiment, when determining a division candidate of a block of interest, the processing order is set so that processed blocks sandwiching the block of interest are present, and the frame image is not classified into two; This is an example in which processing is performed line by line.

実施例3では、フレーム画像を2つに分類し、合計2回分の処理を行うことから、遅延量が大きい。具体的には、ラスタスキャンにてフレーム画像に対して1回の処理を行う場合に比べ、実施例3では、1回分の処理の遅延がある。   In the third embodiment, since the frame image is classified into two and the processing for a total of two times is performed, the delay amount is large. Specifically, in the third embodiment, there is a delay of one process in comparison with the case of performing one process on a frame image by raster scan.

そこで、実施例4では、実施例1の符号化装置1、実施例2−1の符号化装置2、実施例2−2の復号装置3、実施例2−3の符号化装置4及び実施例2−4の復号装置5において、着目ブロックの分割候補を決定する際に、実施例3と同様に、隣接ブロックとして、着目ブロックを挟む処理済みブロックが存在するように、処理の順番を設定し、フレーム画像を2つに分類することなく、フレーム画像の1行毎または2行毎に処理を行うことで、遅延を短くする。以下、実施例4について、3つの具体例(実施例4−1,4−2,4−3)を説明する。   Therefore, in the fourth embodiment, the coding device 1 of the first embodiment, the coding device 2 of the second embodiment, the decoding device 3 of the second embodiment, the coding device 4 of the second embodiment, and the fourth embodiment When the division candidate of the block of interest is determined in the decoding device 5 of 2-4, as in the third embodiment, the processing order is set so that processed blocks sandwiching the block of interest exist as adjacent blocks. The delay is shortened by performing processing for each line or every second line of the frame image without classifying the frame image into two. Hereinafter, three specific examples (Examples 4-1, 4-2 and 4-3) will be described with respect to Example 4.

(実施例4−1)
実施例4−1は、フレーム画像の1行毎に、奇数列のブロック及び偶数列ブロックに分けて分割候補を決定する。偶数列のブロックに対する処理では、着目ブロックを挟む隣接ブロックに処理済みブロックが存在することになる。
Example 4-1
In Example 4-1, division candidates are determined by dividing into blocks of even-numbered columns and blocks of even-numbered columns for each row of the frame image. In the processing for blocks in even columns, processed blocks exist in adjacent blocks sandwiching the block of interest.

図20は、実施例4−1の分割候補決定部11,62の処理を示すフローチャートであり、図21は、図20の説明を補充する図である。実施例4−1では、まず、分割候補決定部11,62は、フレーム画像を所定のブロックに分割し(ステップS2001)、1行目を着目行に設定する(ステップS2002)。   FIG. 20 is a flowchart showing processing of the division candidate determination unit 11, 62 of the embodiment 4-1, and FIG. 21 is a diagram supplementing the explanation of FIG. In the example 4-1, first, the division candidate determination unit 11 or 62 divides the frame image into predetermined blocks (step S2001), and sets the first line as a target line (step S2002).

分割候補決定部11,62は、ステップS2002または後述するステップS2006から移行して、着目行の奇数列のブロックについて、ラスタスキャン順に、図4のステップS402〜ステップS407の処理にて分割候補を決定する(ステップS2003)。   The division candidate determination unit 11, 62 shifts from step S2002 or step S2006 described later, and determines division candidates in the process of step S402 to step S407 in FIG. (Step S2003).

図21のステップS2003を参照して、分割候補決定部11,62は、後述するステップS2006にて着目行を2行目に設定した場合、当該着目行の奇数列の各ブロック1,2,3について、番号順に、分割候補を決定する。例えば、分割候補決定部11,62は、着目ブロック3について、処理済みブロックである左上の隣接ブロック及び上の隣接ブロック、並びにそれ以外の未処理ブロックである他の隣接ブロックのパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、分割候補を決定する。この場合、着目行の奇数列のブロックに対する処理では、着目ブロックを挟む処理済みブロックは存在しない。   Referring to step S2003 in FIG. 21, when the division candidate determination unit 11 or 62 sets the target row to the second row in step S2006 described later, each block 1, 2, 3 in the odd-numbered column of the target row is set. The division candidates are determined in order of the numbers. For example, with respect to the block of interest 3, the division candidate determination unit 11, 62 determines the pattern of the upper left adjacent block and the upper adjacent block, which are processed blocks, and the other adjacent blocks, which are other unprocessed blocks, and division patterns. A division candidate is determined by comparing it with the matching pattern included in the division pattern of the table. In this case, in the process for the block of the odd-numbered column of the target row, there are no processed blocks sandwiching the target block.

図20に戻って、分割候補決定部11,62は、ステップS2003にて着目行の奇数列の全ブロックを処理した後、ステップS2003にて処理を行っていないブロック、すなわち着目行の偶数列のブロックについて、ラスタスキャン順に、図4のステップS402〜ステップS407の処理にて分割候補を決定する(ステップS2004)。   Referring back to FIG. 20, after the division candidate determination units 11 and 62 process all blocks in the odd-numbered column of the focused row in step S2003, the blocks not processed in step S2003, that is, even-numbered columns of the focused row. For the blocks, division candidates are determined in the process of steps S402 to S407 in FIG. 4 in the raster scan order (step S2004).

図21のステップS2004を参照して、分割候補決定部11,62は、着目行の偶数列の各ブロック4,5について、番号順に、分割候補を決定する。例えば、分割候補決定部11,62は、着目ブロック5について、処理済みブロックである左上の隣接ブロック、上の隣接ブロック、右上の隣接ブロック及び隣接ブロック2,3、並びに未処理ブロックである他の隣接ブロックのパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、分割候補を決定する。   Referring to step S2004 in FIG. 21, the division candidate determination unit 11, 62 determines division candidates in order of number for each of the blocks 4 and 5 in the even-numbered column of the focused row. For example, with respect to the block of interest 5, the division candidate determination unit 11 or 62 determines that the upper left adjacent block which is a processed block, the upper adjacent block, the upper right adjacent block and the adjacent blocks 2 and 3 and the other unprocessed block A division candidate is determined by comparing the pattern of the adjacent block with the matching pattern included in the division pattern of the division pattern table.

これにより、着目行の偶数列のブロックに対する処理は、奇数列のブロックに対する処理の後に行われるから、着目ブロックを挟む処理済みブロックが存在することになる。例えば、着目ブロック5を挟む処理済みブロックとして、隣接ブロック2,3が存在する。   As a result, since the process for the even-numbered block of the row of interest is performed after the process for the blocks of the odd-numbered column, processed blocks sandwiching the interest block are present. For example, adjacent blocks 2 and 3 exist as processed blocks sandwiching the target block 5.

図20に戻って、分割候補決定部11,62は、着目行がフレーム画像の最終行であるか否かを判定し(ステップS2005)。着目行が最終行でないと判定した場合(ステップS2005:N)、着目行を1行進めた行に設定し(ステップS2006)、ステップS2003へ移行する。一方、分割候補決定部11,62は、ステップS2005において、着目行が最終行であると判定した場合(ステップS2005:Y)、処理を終了する。   Referring back to FIG. 20, the division candidate determination unit 11 or 62 determines whether the target row is the last row of the frame image (step S2005). When it is determined that the focused row is not the final row (step S2005: N), the focused row is set to a row advanced by one row (step S2006), and the process proceeds to step S2003. On the other hand, if the division candidate determination unit 11 or 62 determines in step S2005 that the target row is the last row (step S2005: Y), the processing ends.

以上のように、実施例4−1によれば、実施例3と同様の効果を奏する。また、分割候補決定部11,62は、着目行の奇数列のブロックについて分割候補を決定し、その後、着目行の偶数列のブロックについて分割候補を決定し、全ての行について、このような処理を行うようにした。   As mentioned above, according to Example 4-1, the same effect as Example 3 is produced. Also, the division candidate determination unit 11, 62 determines division candidates for odd-numbered blocks of the row of interest, and then determines division candidates for even-numbered blocks of the row of interest, and performs such processing for all rows. To do.

これにより、着目行の偶数列のブロックに対する処理は、着目ブロックを挟む処理済みブロックが存在することになり、精度の高い分割候補を決定することができ、結果として、復号側にて画像劣化を防ぐことができる。また、実施例4では、フレーム画像を2つに分類して処理する実施例3と異なり、フレーム画像の1行毎に処理を行うようにしたから、遅延を短くすることができる。   As a result, in the processing for the even-numbered blocks of the row of interest, processed blocks sandwiching the block of interest are present, and division candidates with high accuracy can be determined. As a result, image deterioration is caused on the decoding side. It can prevent. Further, unlike the third embodiment in which frame images are classified into two and processed in the fourth embodiment, processing is performed for each line of the frame image, so the delay can be shortened.

尚、図20及び図21に示した実施例4−1の処理では、奇数列のブロックについて処理を行った後、偶数列のブロックについて処理を行うようにしたが、その逆でもよい。具体的には、分割候補決定部11,62は、ステップS2003にて、着目行の偶数列のブロックについて分割候補を決定し、その後に、ステップS2004にて、着目行の奇数列のブロックについて分割候補を決定する。   In the processing of the embodiment 4-1 shown in FIGS. 20 and 21, after processing is performed on the blocks of the odd numbered column, processing is performed on the blocks of the even numbered column, but the process may be reversed. Specifically, in step S2003, the division candidate determination unit 11 or 62 determines division candidates for the even-numbered blocks of the row of interest, and then, in step S2004, divides the odd-numbered blocks of the row of interest. Determine the candidate.

(実施例4−2)
実施例4−2は、フレーム画像の1行毎に、着目行について奇数列または偶数列のブロックの分割候補を決定し、着目1行前について偶数列または奇数列のブロックの分割候補を決定する。着目行の1行前のブロックに対する処理では、着目ブロックを挟む隣接ブロックに処理済みブロックが存在することになる。
(Example 4-2)
In Example 4-2, the division candidate of the block in the odd column or the even column is determined for the target row for each row of the frame image, and the division candidate of the block in the even column or the odd column is determined for the previous target row. . In the process for the block one row before the target row, processed blocks exist in adjacent blocks sandwiching the target block.

図22は、実施例4−2の分割候補決定部11,62の処理を示すフローチャートであり、図23は、図22の説明を補充する図である。実施例4−2では、まず、分割候補決定部11,62は、フレーム画像を所定のブロックに分割し(ステップS2201)、1行目を着目行に設定する(ステップS2202)。   FIG. 22 is a flowchart showing processing of the division candidate determination unit 11, 62 of the embodiment 4-2, and FIG. 23 is a diagram supplementing the description of FIG. In the embodiment 4-2, first, the division candidate determination unit 11, 62 divides the frame image into predetermined blocks (step S2201), and sets the first line as a target line (step S2202).

分割候補決定部11,62は、ステップS2202または後述するステップS2206から移行して、着目行の奇数列(または偶数列)のブロックについて、ラスタスキャン順に、図4のステップS402〜ステップS407の処理にて分割候補を決定する(ステップS2203)。尚、分割候補決定部11,62は、着目行がフレーム画像の最終行+1の場合、当該ステップS2203の処理を行うことなく、後述するステップS2204へ移行する。   The division candidate determination unit 11, 62 proceeds from step S2202 or step S2206 described later, and performs the processing of steps S402 to S407 in FIG. 4 in raster scan order for blocks in odd columns (or even columns) of the row of interest. Then, division candidates are determined (step S2203). If the target row is the last row + 1 of the frame image, the division candidate determination unit 11 or 62 proceeds to later-described step S2204 without performing the process of step S2203.

図23の左上に示すステップS2203(奇数列)を参照して、分割候補決定部11,62は、後述するステップS2206にて着目行を3行目に設定した場合、当該着目行の奇数列の各ブロック1,2,3について、番号順に、分割候補を決定する。例えば、分割候補決定部11,62は、着目ブロック2について、処理済みブロックである左上の隣接ブロック及び右上の隣接ブロック、並びにそれ以外の未処理ブロックである他の隣接ブロックのパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、分割候補を決定する。この場合、着目行の奇数列のブロックに対する処理では、着目ブロックを挟む処理済みブロックは存在しない。   Referring to step S2203 (odd-numbered column) shown in the upper left of FIG. 23, when the division candidate determining unit 11 or 62 sets the target row to the third row in step S2206 described later, Division candidates are determined for each of the blocks 1, 2 and 3 in numerical order. For example, with respect to the block of interest 2, the division candidate determination unit 11, 62 determines the patterns of the upper left adjacent block and the upper right adjacent block, which are processed blocks, and the other adjacent blocks, which are other unprocessed blocks, and division patterns. A division candidate is determined by comparing it with the matching pattern included in the division pattern of the table. In this case, in the process for the block of the odd-numbered column of the target row, there are no processed blocks sandwiching the target block.

図22に戻って、分割候補決定部11,62は、ステップS2203にて着目行の奇数列(または偶数列)の全ブロックを処理した後、着目行の1行前(着目1行前)について以前のステップS2203にて処理を行っていないブロック、すなわち着目1行前の奇数列(または偶数列)のブロックについて、ラスタスキャン順に、図4のステップS402〜ステップS407の処理にて分割候補を決定する(ステップS2204)。尚、分割候補決定部11,62は、着目1行前が−1行目の場合(着目行が1行目の場合)、当該ステップS2204の処理を行うことなく、後述するステップS2205へ移行する。   Referring back to FIG. 22, the division candidate determination unit 11, 62 processes all the blocks in the odd-numbered column (or even-numbered column) of the target row in step S2203, and then proceeds to one row before the target row (one target row). The division candidates are determined in the process of steps S402 to S407 in FIG. 4 in the raster scan order for blocks not processed in the previous step S2203, that is, blocks in the odd column (or even column) one row before target (Step S2204). If the first line of interest is the first line before the first line of interest (the line of interest is the first line), the division candidate determination unit 11 or 62 proceeds to step S2205 described later without performing the process of step S2204. .

図23の右上に示すステップS2204(奇数列)を参照して、分割候補決定部11,62は、着目1行前の奇数列の各ブロック4,5,6について、番号順に、分割候補を決定する。例えば、分割候補決定部11,62は、着目ブロック5について、処理済みブロックである左上、上、右上、左、右の隣接ブロック及び隣接ブロック2、並びに未処理ブロックである他の隣接ブロックのパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、分割候補を決定する。   With reference to step S2204 (odd-numbered column) shown in the upper right of FIG. 23, the division candidate determining unit 11, 62 determines division candidates in order of number for each block 4, 5, 6 of the odd column one row before the target row. Do. For example, with respect to the block of interest 5, the division candidate determination unit 11 or 62 determines the pattern of upper left, upper, upper right, left, right adjacent blocks and adjacent blocks 2 that are processed blocks and other adjacent blocks that are unprocessed blocks. The division candidate is determined by comparing the above and the collation pattern included in the division pattern of the division pattern table.

これにより、着目1行前の奇数列のブロックに対する処理は、その上の行の全ブロック(着目2行前のブロック)、両隣のブロック(着目1行前の偶数列のブロック)及び下のブロック(着目行の奇数列のブロック)に対する処理の後に行われるから、着目ブロックを挟む処理済みブロックが存在することになる。例えば、着目ブロック5を挟む処理済みブロックとして、上の隣接ブロック及び隣接ブロック2と、左の隣接ブロック及び右の隣接ブロックとが存在する。   Thus, the processing for the block of the odd column one row before the target is all blocks in the upper row (block two rows before the target), blocks on both sides (blocks of even columns one row before the target) and the lower block Since the process is performed after (the block of the odd-numbered column of the row of interest), processed blocks sandwiching the block of interest are present. For example, the upper adjacent block and the adjacent block 2 and the left adjacent block and the right adjacent block exist as processed blocks sandwiching the target block 5.

図22に戻って、分割候補決定部11,62は、着目行がフレーム画像の最終行+1であるか否かを判定する(ステップS2205)。分割候補決定部11,62は、ステップS2205において、着目行が最終行+1でないと判定した場合(ステップS2205:N)、着目行を1行進めた行に設定すると共に、奇数列と偶数列を入れ替え(ステップS2206)、ステップS2203へ移行する。   Referring back to FIG. 22, the division candidate determination unit 11 or 62 determines whether the target row is the last row + 1 of the frame image (step S2205). If the division candidate determination unit 11 or 62 determines in step S2205 that the target row is not the final row +1 (step S2205: N), the target row is set as a row advanced by one row, and the odd and even columns are set. Replacement (step S2206), the process proceeds to step S2203.

ステップS2206において、奇数行と偶数列を入れ替えるとは、ステップS2203及びステップS2204にて奇数列のブロックを処理した場合、次のステップS2203及びステップS2204では偶数列のブロックについて処理することを意味し、逆に、ステップS2203及びステップS2204にて偶数列のブロックを処理した場合、次のステップS2203及びステップS2204では奇数列のブロックを処理することを意味する。このように、ステップS2203〜ステップS2206により、奇数列のブロックの処理及び偶数列のブロックの処理が繰り返される。   In step S2206, replacing odd-numbered rows and even-numbered columns means processing blocks in even-numbered columns in the next steps S2203 and S2204 when blocks in odd-numbered columns are processed in steps S2203 and S2204. Conversely, when blocks in even-numbered columns are processed in steps S2203 and S2204, it means that blocks in odd-numbered columns are processed in the next steps S2203 and S2204. In this manner, in steps S2203 to S2206, the processing of the blocks in the odd columns and the processing of the blocks in the even columns are repeated.

図23の左下に示すステップS2203(偶数列)を参照して、着目行が3行目に設定され、ステップS2203(奇数行)及びステップS2204(偶数行)の処理が完了した後、分割候補決定部11,62は、ステップS2206にて着目行を4行目に設定し、当該着目行の偶数列の各ブロック7,8について、番号順に、分割候補を決定する。例えば、分割候補決定部11,62は、着目ブロック8について、処理済みブロックである隣接ブロック2,3、及び未処理ブロックである他の隣接ブロックのパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、分割候補を決定する。この場合、着目行の偶数列のブロックに対する処理では、着目ブロックを挟む処理済みブロックは存在しない。   Referring to step S2203 (even column) shown at the lower left of FIG. 23, the target row is set to the third row, and the processing of step S2203 (odd row) and step S2204 (even row) is completed, and then the division candidate is determined. In step S2206, units 11 and 62 set the target row in the fourth row, and determine division candidates in order of number for blocks 7 and 8 in even-numbered columns of the target row. For example, the division candidate determination unit 11 or 62 is included in the patterns of the adjacent blocks 2 and 3 which are processed blocks, and the other adjacent blocks which are unprocessed blocks, and the division pattern of the divided pattern table. A division candidate is determined by comparing with the matching pattern. In this case, in the process for the block of the even-numbered column of the target row, there are no processed blocks sandwiching the target block.

図23の右下に示すステップS2204(偶数列)を参照して、分割候補決定部11,62は、着目1行前の偶数列の各ブロック9,10について、番号順に、分割候補を決定する。例えば、分割候補決定部11,62は、着目ブロック10について、処理済みブロックである隣接ブロック5,6,2,3,8及び上の隣接ブロック、並びに未処理ブロックである他の隣接ブロックのパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、分割候補を決定する。   Referring to step S2204 (even column) shown at the lower right of FIG. 23, the division candidate determination unit 11, 62 determines division candidates in order of number for each block 9, 10 of the even column before the target row. . For example, with respect to the block of interest 10, the division candidate determination unit 11, 62 determines the adjacent blocks 5, 6, 2, 3, and 8 that are processed blocks and the upper adjacent blocks, and the patterns of other adjacent blocks that are unprocessed blocks. The division candidate is determined by comparing the above and the collation pattern included in the division pattern of the division pattern table.

これにより、着目1行前の偶数列のブロックに対する処理は、その上の行の全ブロック(着目2行前のブロック)、両隣のブロック(着目1行前の奇数列のブロック)及び下のブロック(着目行の偶数列のブロック)に対する処理の後に行われるから、着目ブロックを挟む処理済みブロックが存在することになる。例えば、着目ブロック10を挟む処理済みブロックとして、上の隣接ブロック及び隣接ブロック8と、隣接ブロック2,3とが存在する。   As a result, the processing for the block in the even column before the target row is all blocks in the upper row (the block before the target two rows), the adjacent blocks (blocks in the odd column before the target row) and the lower block Since the process is performed after (the block of the even-numbered column of the target row), processed blocks sandwiching the target block are present. For example, the upper adjacent block and the adjacent block 8 and the adjacent blocks 2 and 3 exist as processed blocks sandwiching the target block 10.

図22に戻って、分割候補決定部11,62は、ステップS2205において、着目行が最終行+1であると判定した場合(ステップS2205:Y)、処理を終了する。   Referring back to FIG. 22, when the division candidate determination unit 11 or 62 determines in step S 2205 that the target row is the last row +1 (step S 2205: Y), the processing ends.

以上のように、実施例4−2によれば、実施例3と同様の効果を奏する。また、分割候補決定部11,62は、着目行の奇数列(または偶数列)のブロックについて分割候補を決定し、その後、着目1行前の奇数列(または偶数列)のブロックについて分割候補を決定し、全ての行について、このような処理を行うようにした。   As described above, according to Example 4-2, the same effect as that of Example 3 can be obtained. Further, the division candidate determination unit 11, 62 determines division candidates for the blocks of the odd column (or even column) of the row of interest, and then divides candidates for the block of the odd column (or even column) one row before the target row. It decided, and it was made to do such processing about all the lines.

これにより、着目1行前の奇数列(または偶数列)のブロックに対する処理は、着目ブロックを挟む処理済みブロックが存在することになり、精度の高い分割候補を決定することができ、結果として、復号側にて画像劣化を防ぐことができる。実施例4−1における着目ブロックを挟む処理済みブロックは、着目ブロックの両隣のみであるが、実施例4−2における着目ブロックを挟む処理済みブロックは、着目ブロックの両隣に加え上下も対象となる。したがって、実施例4−2では、実施例4−1よりも一層精度の高い候補を決定することができ、画像劣化を防ぐことができる。また、実施例4−2では、フレーム画像を2つに分類して処理する実施例3と異なり、フレーム画像の1行毎に、着目行及び着目1行前について処理を行うようにしたから、遅延を短くすることができる。   As a result, in the process for the block of the odd column (or even column) one row before the target, processed blocks sandwiching the target block are present, and a division candidate with high accuracy can be determined. As a result, It is possible to prevent image deterioration on the decoding side. The processed blocks sandwiching the block of interest in Example 4-1 are only on both sides of the block of interest, but the processed blocks sandwiching the block of interest in Example 4-2 are also targets on both sides of the block of interest in addition to both sides of the block of interest . Therefore, in Example 4-2, a candidate with higher accuracy than Example 4-1 can be determined, and image deterioration can be prevented. Further, unlike the third embodiment in which the frame image is classified into two and processed in the example 4-2, the process is performed for the line of interest and the line of interest one line forward for each line of the frame image. The delay can be shortened.

現在規格化されている画像符号化方式では、斜め方向の分割は存在しないため、実施例4−2のように、上下の処理済みブロック及び左右の処理済みブロックで着目ブロックを挟むことができれば十分である。   In the image coding method currently standardized, since division in the diagonal direction does not exist, it is sufficient if the block of interest can be sandwiched between the upper and lower processed blocks and the left and right processed blocks as in Example 4-2. It is.

また、実施例4−2によれば、全ブロックの半分のブロックで、着目ブロックを挟む処理ブロックが存在することにより、精度の高い分割候補を決定することができ、結果として、復号側にて画像劣化を防ぐことができる。前述の実施例4−1及び後述する実施例4−3においても、全ブロックの半分のブロックにつき同じ効果がある。   Further, according to Example 4-2, by the presence of processing blocks sandwiching the block of interest in half blocks of all blocks, division candidates with high accuracy can be determined, and as a result, on the decoding side Image degradation can be prevented. Also in the above-mentioned Example 4-1 and Example 4-3 mentioned later, the same effect is obtained for half blocks of all blocks.

尚、図22及び図23に示した実施例4−2の処理では、奇数列から処理を始めるようにしたが、偶数列から処理を始めるようにしてもよい。   In the processing of the embodiment 4-2 shown in FIGS. 22 and 23, the processing is started from the odd-numbered column, but the processing may be started from the even-numbered column.

(実施例4−3)
実施例4−3は、フレーム画像の1行毎に、着目行について奇数列または偶数列のブロックの分割候補を決定し、着目行のブロック毎に着目1行前について同列のブロックの分割候補を決定する。着目行の1行前の同列のブロックに対する処理では、着目ブロックを挟む隣接ブロックに処理済みブロックが存在することになる。
(Example 4-3)
In Example 4-3, the division candidate of the block in the odd column or the even column is determined for the target row for each row of the frame image, and the division candidate for the block in the same row for the target row before for each block of the target row. decide. In the processing for the block of the same column immediately before the target row, processed blocks exist in adjacent blocks sandwiching the target block.

図24は、実施例4−3の分割候補決定部11,62の処理を示すフローチャートであり、図25は、図24の説明を補充する図である。実施例4−3では、まず、分割候補決定部11,62は、フレーム画像を所定のブロックに分割し(ステップS2401)、1行目を着目行に設定する(ステップS2402)。   FIG. 24 is a flowchart showing the process of the division candidate determination unit 11, 62 of the embodiment 4-3, and FIG. 25 is a diagram supplementing the explanation of FIG. In the embodiment 4-3, first, the division candidate determination unit 11, 62 divides the frame image into predetermined blocks (step S2401), and sets the first line as a target line (step S2402).

分割候補決定部11,62は、ステップS2402、後述するステップS2405または後述するステップS2407から移行して、着目行の奇数列(または偶数列)のブロックについて、図4のステップS402〜ステップS407の処理にて分割候補を決定する(ステップS2403)。尚、分割候補決定部11,62は、着目行がフレーム画像の最終行+1の場合、当該ステップS2403の処理を行うことなく、後述するステップS2404へ移行する。   The division candidate determination unit 11, 62 proceeds from step S2402, step S2405 described later, or step S2407 described later, and performs the processing of step S402 to step S407 in FIG. 4 for the block of the odd row (or even row) of the focused row. The division candidate is determined at step S2403. If the target row is the last row + 1 of the frame image, the division candidate determination unit 11 or 62 proceeds to later-described step S2404 without performing the process of step S2403.

図25の左上に示すステップS2403(奇数列)を参照して、分割候補決定部11,62は、後述するステップS2407にて着目行を3行目に設定した場合、当該着目行の奇数列のブロック1について分割候補を決定し、後述するステップS2404にて着目1行前の同列のブロック2について分割候補を決定した後、当該着目行の奇数列のブロック3について分割候補を決定する。例えば、分割候補決定部11,62は、着目ブロック3について、処理済みブロックである左上の隣接ブロック及び右上の隣接ブロック、並びに未処理ブロックである他の隣接ブロックのパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、分割候補を決定する。この場合、着目行の奇数列のブロックに対する処理では、着目ブロックを挟む処理済みブロックは存在しない。   Referring to step S 2403 (odd-numbered column) shown in the upper left of FIG. 25, when the division candidate determining unit 11 or 62 sets the target row to the third row in step S 2407 described later, After division candidates are determined for block 1 and division candidates for block 2 in the same row immediately before the target row are determined in step S2404 described later, division candidates are determined for block 3 in the odd-numbered column of the target row. For example, with respect to the block of interest 3, the division candidate determination unit 11 or 62 divides the divided pattern table into the patterns of the upper left adjacent block and the upper right adjacent block which are processed blocks, and other adjacent blocks which are unprocessed blocks. A division candidate is determined by comparing with the matching pattern included in the pattern. In this case, in the process for the block of the odd-numbered column of the target row, there are no processed blocks sandwiching the target block.

図24に戻って、分割候補決定部11,62は、ステップS2403にて着目行の奇数列(または偶数列)のブロックを処理した後、着目1行前の同列のブロックについて、図4のステップS402〜ステップS407の処理にて分割候補を決定する(ステップS2404)。尚、分割候補決定部11,62は、着目1行前が−1行目の場合(着目行が1行目の場合)、当該ステップS2404の処理を行うことなく、後述するステップS2405へ移行する。   Referring back to FIG. 24, the division candidate determination unit 11, 62 processes the blocks of the odd-numbered column (or even-numbered column) of the row of interest in step S2403 and then performs the step of FIG. Division candidates are determined in the processing of S402 to S407 (step S2404). If the first line of interest is the first line before the first line of interest (the line of interest is the first line), the division candidate determination unit 11 or 62 proceeds to step S2405 described later without performing the process of step S2404. .

図25の右上に示すステップS2404(奇数列)を参照して、分割候補決定部11,62は、ステップS2403にて着目行の奇数列のブロック3について分割候補を決定した後、着目1行前の同列のブロック4について分割候補を決定する。例えば、分割候補決定部11,62は、着目ブロック4について、処理済みブロックである左上の隣接ブロック、上の隣接ブロック、右上の隣接ブロック、左の隣接ブロック、右の隣接ブロック及び隣接ブロック3、並びに未処理ブロックである他の隣接ブロックのパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、分割候補を決定する。   Referring to step S2404 (odd-numbered column) shown in the upper right of FIG. 25, the division candidate determination unit 11, 62 determines division candidates for block 3 in the odd-numbered column of the target row in step S2403 The division candidate is determined for the block 4 in the same row of. For example, with respect to the block of interest 4, the division candidate determination unit 11 or 62 compares the upper left adjacent block which is a processed block, the upper adjacent block, the upper right adjacent block, the left adjacent block, the right adjacent block and the adjacent block 3, And a candidate for division is determined by comparing the pattern of another adjacent block which is an unprocessed block with the matching pattern included in the division pattern of the division pattern table.

これにより、着目1行前の同列(奇数列)のブロックに対する処理は、その上の行の全ブロック(着目2行前のブロック)、両隣のブロック(着目1行前の偶数列のブロック)及び下のブロック(着目行の奇数列のブロック)に対する処理の後に行われるから、着目ブロックを挟む処理済みブロックが存在することになる。例えば、着目ブロック4を挟む処理済みブロックとして、上の隣接ブロック及び隣接ブロック3と、左の隣接ブロック及び右の隣接ブロックとが存在する。   Thereby, the processing for the block of the same column (odd column) one row before the target is all blocks in the upper row (block two rows before the target), blocks on both sides (blocks in even column one row before the target) and Since the process is performed after the processing for the lower block (the block of the odd-numbered column of the row of interest), processed blocks sandwiching the object of interest are present. For example, the upper adjacent block and the adjacent block 3 and the left adjacent block and the right adjacent block exist as processed blocks sandwiching the target block 4.

図24に戻って、分割候補決定部11,62は、着目行及び着目1行前の全ブロックについてステップS2403及びステップS2404の処理が完了したか否かを判定する(ステップS2405)。分割候補決定部11,62は、ステップS2405において、着目行及び着目1行前の全ブロックについて処理が完了していないことを判定した場合(ステップS2405:N)、ステップS2403移行する。そして、分割候補決定部11,62は、ステップS2403及びステップS2404において、ラスタスキャン順に、次のブロックの分割候補を決定する。ステップS2403及びステップS2404の処理は、着目行及び着目1行前の全ブロックについて完了するまで繰り返して行われる。   Referring back to FIG. 24, the division candidate determination unit 11 or 62 determines whether or not the processing in step S 2403 and step S 2404 has been completed for all blocks before the row of interest and the one row of interest (step S 2405). If the division candidate determination unit 11 or 62 determines in step S2405 that the processing has not been completed for all blocks before the row of interest and the row of interest (step S2405: N), the process proceeds to step S2403. Then, the division candidate determination unit 11, 62 determines division candidates of the next block in the raster scan order in step S2403 and step S2404. The processes in steps S2403 and S2404 are repeatedly performed until the processing is completed for all blocks in the row of interest and the one row before the object of interest.

分割候補決定部11,62は、ステップS2405において、着目行及び着目1行前の全ブロックについて処理が完了していることを判定した場合(ステップS2405:Y)、着目行がフレーム画像の最終行+1であるか否かを判定する(ステップS2406)。分割候補決定部11,62は、ステップS2406において、着目行が最終行+1でないと判定した場合(ステップS2406:N)、図22のステップS2206と同様に、着目行を1行進めた行に設定すると共に、奇数列と偶数列を入れ替え(ステップS2407)、ステップS2403へ移行する。   If the division candidate determination unit 11 or 62 determines in step S2405 that the processing has been completed for all the blocks in the target row and the target one row (step S2405: Y), the target row is the last row of the frame image. It is determined whether it is +1 (step S2406). If the division candidate determination unit 11 or 62 determines in step S2406 that the focused row is not the final row +1 (step S2406: N), the split candidate determining unit 11 sets the focused row as a row advanced by one row as in step S2206 in FIG. At the same time, the odd-numbered column and the even-numbered column are interchanged (step S2407), and the process proceeds to step S2403.

図25の左下に示すステップS2403(偶数列)を参照して、着目行が3行目に設定され、ステップS2403(奇数行)及びステップS2404(奇数行)の処理が完了した後、分割候補決定部11,62は、ステップS2407にて着目行を4行目に設定し、当該着目行の偶数列のブロック7について分割候補を決定し、ステップS2404にて着目1行前の同列のブロック8について分割候補を決定した後、当該着目行の偶数列のブロック9について分割候補を決定する。例えば、分割候補決定部11,62は、着目ブロック9について、処理済みブロックである左上の隣接ブロック3及び右上の隣接ブロック5、並びに未処理ブロックである他の隣接ブロックのパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、分割候補を決定する。この場合、着目行の偶数列のブロックに対する処理では、着目ブロックを挟む処理済みブロックは存在しない。   Referring to step S 2403 (even column) shown at the lower left of FIG. 25, the target row is set to the third row, and after the processing in step S 2403 (odd row) and step S 2404 (odd row) is completed, division candidate determination In step S2407, units 11 and 62 set the row of interest in the fourth row, and determine division candidates for block 7 in the even-numbered column of the row of interest. In step S2404, block 8 in the same row preceding the row of interest After the division candidate is determined, the division candidate is determined for the block 9 in the even column of the row of interest. For example, with respect to the block of interest 9, the division candidate determination unit 11, 62 determines the patterns of the upper left adjacent block 3 and the upper right adjacent block 5 which are processed blocks, and the patterns of other adjacent blocks which are unprocessed blocks; The division candidate is determined by comparing with the matching pattern included in the division pattern of. In this case, in the process for the block of the even-numbered column of the target row, there are no processed blocks sandwiching the target block.

図25の右下に示すステップS2404(偶数列)を参照して、分割候補決定部11,62は、ステップS2403にて着目行の偶数列のブロック9について分割候補を決定した後、着目1行前の同列のブロック10について分割候補を決定する。例えば、分割候補決定部11,62は、着目ブロック10について、処理済みブロックである隣接ブロック4,6,3,5,9及び上の隣接ブロック、並びに未処理ブロックである他の隣接ブロックのパターンと、分割パターン表の分割パターンに含まれる照合パターンとを比較することにより、分割候補を決定する。   Referring to step S2404 (even-numbered column) shown in the lower right of FIG. 25, the division candidate determining unit 11, 62 determines division candidates for block 9 in the even-numbered column of the target row in step S2403 and A division candidate is determined for the previous block 10 in the same row. For example, with respect to the block of interest 10, the division candidate determination unit 11 or 62 determines the adjacent blocks 4, 6, 3, 5, 9 as processed blocks and the upper adjacent blocks, and the patterns of other adjacent blocks as unprocessed blocks. The division candidate is determined by comparing the above and the collation pattern included in the division pattern of the division pattern table.

これにより、着目1行前の同列(偶数列)のブロックに対する処理は、その上の行の全ブロック(着目2行前のブロック)、両隣のブロック(着目1行前の奇数列のブロック)及び下のブロック(着目行の偶数列のブロック)に対する処理の後に行われるから、着目ブロックを挟む処理済みブロックが存在することになる。例えば、着目ブロック10を挟む処理済みブロックとして、上の隣接ブロック及び隣接ブロック9と、隣接ブロック3,5とが存在する。   As a result, the processing for the block of the same column (even column) preceding the target row is all blocks in the upper row (block two rows before the target), blocks on both sides (blocks of the odd column preceding the target row) and Since the process is performed after the processing for the lower block (the block of the even-numbered column of the target row), processed blocks sandwiching the target block are present. For example, the upper adjacent block and the adjacent block 9 and the adjacent blocks 3 and 5 exist as processed blocks sandwiching the target block 10.

図24に戻って、分割候補決定部11,62は、ステップS2406において、着目行が最終行+1であると判定した場合(ステップS2406:Y)、処理を終了する。   Referring back to FIG. 24, when the division candidate determination unit 11 or 62 determines in step S2406 that the target row is the last row + 1 (step S2406: Y), the processing ends.

以上のように、実施例4−3によれば、実施例3と同様の効果を奏する。また、分割候補決定部11,62は、着目行の奇数列(または偶数列)のブロックについて分割候補を決定し、その後、着目1行前の同列の奇数列(または偶数列)のブロックについて分割候補を決定し、全ての行について、このような処理を行うようにした。   As described above, according to Example 4-3, the same effect as that of Example 3 can be obtained. Further, the division candidate determination unit 11, 62 determines division candidates for the blocks of the odd column (or even column) of the target row, and then divides the blocks of the same row of the previous odd column (or even column). Candidates were determined, and such processing was performed for all lines.

これにより、着目1行前の同列(着目行と同じ列)のブロックに対する処理は、着目ブロックを挟む処理済みブロックが存在することになり、精度の高い分割候補を決定することができ、結果として、復号側にて画像劣化を防ぐことができる。実施例4−1における着目ブロックを挟む処理済みブロックは、着目ブロックの両隣のみであるが、実施例4−3における着目ブロックを挟む処理済みブロックは、実施例4−2と同様に、着目ブロックの両隣に加え上下も対象となる。したがって、実施例4−3では、実施例4−1よりも一層精度の高い候補を決定することができ、画像劣化を防ぐことができる。また、実施例4−3では、フレーム画像を2つに分類して処理する実施例3と異なり、フレーム画像の1行毎に、着目行及び着目1行前について処理を行うようにしたから、遅延を短くすることができる。また、実施例4−3では、着目行及び着目1行前につきブロック単位で処理を行うため、行単位で処理を行う実施例4−2よりも、遅延を短くすることができる。   As a result, processing on blocks in the same column (same column as the target row) one row before the target row means that processed blocks sandwiching the target block exist, and division candidates with high accuracy can be determined. Image deterioration can be prevented on the decoding side. The processed blocks sandwiching the block of interest in Example 4-1 are only on both sides of the block of interest, but the processed blocks sandwiching the block of interest in Example 4-3 are blocks of interest as in Example 4-2. In addition to both sides of the upper and lower are also targeted. Therefore, in Example 4-3, a candidate with higher accuracy than Example 4-1 can be determined, and image deterioration can be prevented. Further, unlike the third embodiment in which the frame image is classified into two and processed in the fourth embodiment, the process is performed for the row of interest and the first row of interest for each row of the frame image. The delay can be shortened. Further, in the embodiment 4-3, since the process is performed in block units for the row of interest and the first row of interest, the delay can be shorter than in the embodiment 4-2 in which the process is performed in units of rows.

尚、図24及び図25に示した実施例4−3の処理では、奇数列から処理を始めるようにしたが、偶数列から処理を始めるようにしてもよい。   In the processing of the embodiment 4-3 shown in FIGS. 24 and 25, the processing is started from the odd numbered row, but the processing may be started from the even numbered row.

〔実施例5〕
次に、実施例5について説明する。実施例5は、分割パターン表を生成する例である。以下、実施例1〜4にて用いた分割パターン表を生成する処理について詳細に説明する。照合パターンにおいて、未処理ブロックコード及び任意ブロックコード以外のコード(分割形状を有するブロックのコード及び分割なしのブロックのコード)を、「分割コード」というものとする。
[Example 5]
Example 5 will now be described. The fifth embodiment is an example of generating a division pattern table. The process of generating the division pattern table used in the first to fourth embodiments will be described in detail below. In the collation pattern, codes other than the unprocessed block code and the arbitrary block code (the code of the block having the divided shape and the code of the block without the division) are referred to as “divided codes”.

図26は、分割パターン表を生成する処理を示すフローチャートである。この分割パターン表を生成する処理は、実施例2−3における符号化装置4のブロック化部41に備えた分割パターン表生成部(図14には図示せず)により行われる例である。分割パターン表生成部は、図26に示す処理を行い、生成した分割パターンを分割パターン表として、メモリ12−1に格納する。   FIG. 26 is a flowchart showing a process of generating a division pattern table. The process of generating the division pattern table is an example performed by the division pattern table generation unit (not shown in FIG. 14) provided in the blocking unit 41 of the encoding device 4 in the embodiment 2-3. The division pattern table generation unit performs the process shown in FIG. 26, and stores the generated division patterns in the memory 12-1 as a division pattern table.

尚、分割パターン表を生成する処理を、分割パターン表生成装置により行うようにしてもよい。分割パターン表生成装置は、CPU、RAM等の揮発性の記憶媒体、ROM等の不揮発性の記憶媒体、及びインターフェース等を備えたコンピュータによって構成される。分割パターン表生成装置は、生成した分割パターンを分割パターン表として、CD−ROM等の媒体または通信ネットワーク、及び実施例1〜4における符号化装置1,2,4に備えた図示しないインターフェースを介して、ブロック化部10,40,41に備えたメモリ12−1に格納する。また、分割パターン表生成装置は、生成した分割パターンを分割パターン表として、CD−ROM等の媒体または通信ネットワーク、及び実施例2〜4における復号装置3,5に備えた図示しないインターフェースを介して、分割形状識別部61,66に備えたメモリ63−1に格納する。   The process of generating the division pattern table may be performed by the division pattern table generation device. The divided pattern table generation device is configured by a computer provided with a CPU, a volatile storage medium such as a RAM, a non-volatile storage medium such as a ROM, and an interface. The divided pattern table generation device uses the generated divided patterns as a divided pattern table, via a medium such as a CD-ROM or a communication network, and interfaces (not shown) provided to the encoding devices 1, 2 and 4 in the first to fourth embodiments. And stored in the memory 12-1 provided in the blocking unit 10, 40, 41. Also, the division pattern table generation device uses the generated division patterns as a division pattern table, via a medium such as a CD-ROM or a communication network, and an interface (not shown) provided in the decoding devices 3 and 5 in the second to fourth embodiments. And stored in the memory 63-1 provided in the divided shape identification unit 61, 66.

図26を参照して、分割パターン表生成部は、分割パターンを生成するための基本となる、予め設定された分割形状を入力し(ステップS2601)、分割形状を隣接ブロックに配置し、その分割線が一直線に並ぶ配置を検索する(ステップS2602)。具体的には、分割パターン表生成部は、分割パターンを構成する隣接ブロックのうち、着目ブロックを挟む上下、左右または斜めの2つの隣接ブロック(図1では、ブロック103,108、ブロック105,106、ブロック102,109及びブロック104,107)に分割形状を配置し、分割形状の分割線を延長すると一直線に並ぶ配置を検索する。そして、分割パターン表生成部は、ステップS2602にて検索した配置を含む3種類の分割パターン(a−1)(a−2)(a−3)を生成する。   Referring to FIG. 26, the division pattern table generation unit inputs a division shape set in advance, which is a basis for generating division patterns (step S2601), arranges the division shapes in adjacent blocks, and divides the division shapes. An arrangement in which the lines are aligned is searched (step S2602). Specifically, the divided pattern table generating unit is configured to set two adjacent blocks (upper and lower, left and right, or diagonal in FIG. 1 between blocks 103 and 108 and blocks 105 and 106 sandwiching the block of interest) among adjacent blocks constituting the divided pattern. The division shapes are arranged in the blocks 102 and 109 and the blocks 104 and 107), and when the division lines of the division shapes are extended, a linear arrangement is retrieved. Then, the division pattern table generation unit generates three types of division patterns (a-1) (a-2) (a-3) including the arrangement searched in step S2602.

分割パターン表生成部は、ステップS2602の検索にて分割形状を2つの隣接ブロックに配置した際に、その分割形状の分割線の直線に沿った分割形状を導出分割に設定し、任意ブロックコードをその他の隣接ブロックに設定することで、2ブロックの分割コードを含む分割パターン(着目ブロックを挟む2つの隣接ブロックに分割形状を配置した分割パターン)(a−1)を生成する(ステップS2603)。これにより、分割パターン(a−1)を構成する照合パターンの8つの隣接ブロックのうち、2つの隣接ブロックには分割形状の分割コードが設定され、残りの隣接ブロックには任意ブロックコードが設定される。   The division pattern table generation unit sets the division shape along the straight line of the division line of the divided shape as the derivation division when arranging the divided shape to two adjacent blocks in the search of step S2602, and sets the arbitrary block code By setting other adjacent blocks, a divided pattern (a divided pattern in which divided shapes are arranged in two adjacent blocks sandwiching a block of interest) (a-1) is generated (step S2603). As a result, among the eight adjacent blocks of the matching pattern constituting the divided pattern (a-1), divided codes of the divided shape are set in two adjacent blocks, and an arbitrary block code is set in the remaining adjacent blocks. Ru.

図27(1)は、図26のステップS2603により生成された、2ブロックの分割コードを含む分割パターン(a−1)の例を示す図である。図27(1)の左側に示すように、分割形状が垂直2分割の場合、着目ブロックの上下の隣接ブロックには垂直2分割の分割形状の分割コードが設定され、その他の隣接ブロックには任意ブロックコードが設定され、着目ブロックの導出分割には垂直2分割の分割形状が設定された分割パターンが生成される。   FIG. 27A is a diagram showing an example of a division pattern (a-1) including two blocks of division codes generated at step S2603 in FIG. As shown on the left side of FIG. 27 (1), when the divided shape is vertical 2 division, divided codes of the vertical 2 divided shape are set in the upper and lower adjacent blocks of the block of interest, and other adjacent blocks are optional A block code is set, and a division pattern in which a division shape of vertical 2-division is set as the derivation division of the block of interest is generated.

また、図27(1)の右側に示すように、分割形状が右斜め下方向2分割の場合、着目ブロックの左上及び右下の隣接ブロックには右斜め下方向2分割の分割形状の分割コードが設定され、その他の隣接ブロックには任意ブロックコードが設定され、着目ブロックの導出分割には右斜め下方向2分割の分割形状が設定された分割パターンが生成される。   Further, as shown on the right side of FIG. 27 (1), when the divided shape is divided into two in the lower right direction, the upper left and lower right adjacent blocks of the block of interest are divided codes in the divided shape into two lower right directions. Is set, an arbitrary block code is set to the other adjacent blocks, and a division pattern in which a division shape of the right oblique lower direction division into two is set as the derivation division of the block of interest is generated.

図26に戻って、分割パターン表生成部は、ステップS2603にて生成した分割パターン(a−1)について、分割コードが設定された2つの隣接ブロックのうちのどちらか一方に、分割コードに代えて未処理ブロックコードを設定することで、1ブロックの分割コードを含む分割パターン(着目ブロックの隣接ブロック1つに分割形状を配置した分割パターン)(a−2)を生成する(ステップS2604)。また、分割パターン表生成部は、ステップS2604にて未処理ブロックコードを設定していない他方の隣接ブロックに、分割コードに代えて未処理ブロックコードを設定することで、1ブロックの分割コードを含む分割パターン(a−3)を生成する(ステップS2604)。これにより、分割パターン(a−2)(a−3)を構成する照合パターンの8つの隣接ブロックのうち、1つの隣接ブロックには分割形状の分割コードが設定され、1つの隣接ブロックには未処理ブロックコードが設定され、残りの隣接ブロックには任意ブロックコードが設定される。   Referring back to FIG. 26, the division pattern table generation unit substitutes the division code for one of the two adjacent blocks in which the division code is set for the division pattern (a-1) generated in step S2603. By setting an unprocessed block code, a divided pattern (a divided pattern in which a divided shape is arranged in one adjacent block of the block of interest) (a-2) including one divided code is generated (step S2604). Also, the division pattern table generation unit includes a division code of one block by setting the unprocessed block code in place of the division code in the other adjacent block in which the unprocessed block code is not set in step S2604. The division pattern (a-3) is generated (step S2604). As a result, among the eight adjacent blocks of the matching pattern constituting the divided pattern (a-2) (a-3), the divided code of the divided shape is set in one adjacent block, and not in one adjacent block. A processing block code is set, and an arbitrary block code is set in the remaining adjacent blocks.

図27(2)は、図26のステップS2604により生成された、1ブロックの分割コードを含む分割パターン(a−2)の例を示す図である。図27(2)の左側に示すように、図27(1)の左側に示した分割パターン(a−1)の下の隣接ブロックについて、垂直2分割の分割コードの代わりに未処理ブロックコードが設定される。また、図27(2)の右側に示すように、図27(1)の右側に示した分割パターン(a−1)の右斜め下の隣接ブロックについて、右斜め下方向2分割の分割コードの代わりに未処理ブロックコードが設定される。   FIG. 27 (2) is a diagram showing an example of a division pattern (a-2) including a division code of one block, which is generated in step S2604 of FIG. As shown on the left side of FIG. 27 (2), for the adjacent blocks below the divided pattern (a-1) shown on the left side of FIG. 27 (1), unprocessed block codes are used instead of divided codes of vertical two divisions. It is set. Further, as shown on the right side of FIG. 27 (2), with respect to the adjacent block obliquely right lower below the divided pattern (a-1) shown on the right side of FIG. An unprocessed block code is set instead.

図27(3)は、図26のステップS2604により生成された、1ブロックの分割コードを含む分割パターン(a−3)の例を示す図である。図27(3)の左側に示すように、図27(1)に左側に示した分割パターン(a−1)において、図27(2)の左側に示す未処理ブロックコードが設定されなかった上の隣接ブロックについて、垂直2分割の分割コードの代わりに未処理ブロックコードが設定される。また、図27(3)の右側に示すように、図27(1)に右側に示した分割パターン(a−1)において、図27(2)の右側に示す未処理ブロックコードが設定されなかった右斜め上の隣接ブロックについて、右斜め下方向2分割の分割コードの代わりに未処理ブロックコードが設定される。   FIG. 27 (3) is a diagram showing an example of a division pattern (a-3) including one division code, which is generated in step S2604 of FIG. As shown on the left side of FIG. 27 (3), in the divided pattern (a-1) shown on the left side in FIG. 27 (1), the unprocessed block code shown on the left side of FIG. 27 (2) is not set. The unprocessed block code is set instead of the divided code of the vertical bisection for the adjacent block of. Further, as shown on the right side of FIG. 27 (3), in the divided pattern (a-1) shown on the right side in FIG. 27 (1), the unprocessed block code shown on the right side of FIG. 27 (2) is not set. For the adjacent block on the upper right, unprocessed block codes are set instead of the divided codes in the lower right division into two.

図26に戻って、分割パターン表生成部は、ステップS2604の後、分割パターン(a−1)の着目ブロックに設定された導出分割のうち、2つの導出分割を組み合わせた導出分割を特定する(ステップS2605)。分割パターン(a−1)の着目ブロックに設定された導出分割には、2つの導出分割を組み合わせた導出分割と、それ以外の導出分割とが存在する。   Referring back to FIG. 26, after step S2604, the division pattern table generation unit identifies a derived division obtained by combining two derived divisions among the derived divisions set for the block of interest of division pattern (a-1) ( Step S2605). The derived divisions set in the target block of the division pattern (a-1) include a derived division obtained by combining two derived divisions and a derived division other than that.

図28は、図26のステップS2605における2つの導出分割を組み合わせた導出分割の例を示す図である。例えば、垂直2分割の導出分割と水平2分割の導出分割とを組み合わせた導出分割として、垂直及び水平4分割の導出分割がある。また、右斜め下方向2分割の導出分割と左斜め下方向2分割の導出分割とを組み合わせた導出分割として、右斜め下方向及び左斜め下方向4分割の導出分割がある。また、左寄り2分割の導出分割と右寄り2分割の導出分割とを組み合わせた導出分割として、左寄り及び右寄り3分割の導出分割がある。   FIG. 28 is a diagram showing an example of derivation division obtained by combining the two derivation divisions in step S2605 of FIG. For example, as a derivation division combining the derivation division of vertical two divisions and the derivation division of horizontal two division, there are derivation divisions of vertical and horizontal four divisions. Further, as a derivation division combining the derivation division of the right oblique lower direction two division and the derivation division of the left oblique lower direction two division, there is a derivation division of the right oblique lower direction and the left oblique lower direction four division. Further, as a derivation division combining a derivation division with two left divisions and a derivation division with two divisions to the right, there is a derivation division with three divisions to the left and right.

図26に戻って、分割パターン表生成部は、分割パターン(a−1)のうち、ステップS2605にて特定した導出分割の組み合わせ元の導出分割を有する2つの分割パターン(a−1)について、これらの照合パターンを合成することで、新たな照合パターンαを生成する(ステップS2606)。   Referring back to FIG. 26, the division pattern table generation unit generates two division patterns (a-1) having derivation divisions of combination sources of the derivation division specified in step S2605 among division patterns (a-1), A new collation pattern α is generated by combining these collation patterns (step S2606).

図29は、図26のステップS2606における照合パターンの合成規則を示す図である。分割パターン表生成部は、ステップS2606の照合パターンの合成処理において、同じ隣接ブロックにつき、一方には分割コードが設定され、他方には未処理ブロックコードが設定されている場合、合成後の隣接ブロックには分割コードを設定する。また、分割パターン表生成部は、一方には分割コードが設定され、他方には任意ブロックコードが設定されている場合、合成後の隣接ブロックには分割コードを設定する。また、分割パターン表生成部は、一方には未処理ブロックコードが設定され、他方には任意ブロックコードが設定されている場合、合成後の隣接ブロックには未処理ブロックコードを設定する。   FIG. 29 is a diagram showing the rule of combining the check pattern in step S2606 of FIG. The division pattern table generation unit sets the division code to one side for the same adjacent block and sets the unprocessed block code to the other side in the combining process of the check pattern in step S2606, the adjacent block after combination Set the division code to. Further, when the division code is set to one side and the arbitrary block code is set to the other, the division pattern table generation unit sets the division code to the adjacent block after combination. In addition, when the unprocessed block code is set to one side and the arbitrary block code is set to the other, the divided pattern table generation unit sets the unprocessed block code to the adjacent block after combination.

このように、分割パターン表生成部は、ステップS2606の照合パターンの合成処理において、同じ隣接ブロックにつき、分割コード、未処理ブロックコード、任意ブロックコードの優先順位で、合成後の隣接ブロックを設定する。   As described above, the division pattern table generation unit sets adjacent blocks after combination in the priority order of the division code, unprocessed block code, and arbitrary block code for the same adjacent block in the process of combining the check patterns in step S2606. .

また、分割パターン表生成部は、両方に未処理ブロックコードが設定されている場合、合成後の隣接ブロックには未処理ブロックコードを設定する。同様に、分割パターン表生成部は、両方に任意ブロックコードが設定されている場合、合成後の隣接ブロックには任意ブロックコードを設定し、両方に同じ分割コードAが設定されている場合、合成後の隣接ブロックには分割コードAを設定する。   Also, when the unprocessed block code is set in both, the divided pattern table generation unit sets the unprocessed block code in the adjacent block after combination. Similarly, the division pattern table generation unit sets an arbitrary block code to the adjacent block after combination when the arbitrary block code is set to both, and the combination if the same division code A is set to both. The division code A is set to the subsequent adjacent block.

分割パターン表生成部は、一方には分割コードAが設定され、他方には分割コードAとは異なる分割コードBが設定されている場合、合成後の隣接ブロックには分割コードAまたは分割コードBを設定する。この場合、分割パターン表生成部は、合成後の隣接ブロックに分割コードAを設定した照合パターンα、及び、合成後の隣接ブロックに分割コードBを設定した照合パターンαをそれぞれ生成する。例えば、同じ隣接ブロックにつき異なる分割コードが設定されており、その隣接ブロックが3個存在する場合は、23=8個の照合パターンαが生成される。 In the division pattern table generation unit, when division code A is set in one and division code B different from division code A is set in the other, division code A or division code B is generated in the adjacent block after synthesis. Set In this case, the division pattern table generation unit generates a collation pattern α in which the division code A is set to the adjacent block after combination and a collation pattern α in which the division code B is set to the adjacent block after combination. For example, if different division codes are set for the same adjacent block, and there are three adjacent blocks, 2 3 = 8 matching patterns α are generated.

図30は、図26のステップS2606により生成された照合パターンαの例を示す図である。図29に示した規則に従い、例1及び例2の照合パターンαが生成される。例3は、2つの分割パターンをそれぞれ構成する照合パターンにおいて、着目ブロックの上の隣接ブロックにつき、一方には分割コードA(左寄り2分割の分割コード)が設定され、他方には分割コードB(右寄り2分割の分割コード)が設定されている場合の例である。この場合、合成後の当該隣接ブロックに分割コードAが設定された照合パターンαと、分割コードBが設定された照合パターンαとが生成される。   FIG. 30 is a diagram showing an example of the collation pattern α generated in step S2606 of FIG. According to the rule shown in FIG. 29, the collation patterns α of Example 1 and Example 2 are generated. In Example 3, in the collation patterns respectively forming the two division patterns, division code A (division code to the left is divided into two) is set to one of adjacent blocks above the block of interest, and the other to division code B ( This is an example in the case where a divided code of 2 divisions to the right is set. In this case, the collation pattern α in which the division code A is set to the adjacent block after combination and the collation pattern α in which the division code B is set are generated.

尚、図30には説明の便宜上、着目ブロックも示されているが、照合パターンは、着目ブロックを含まない。後述する図31も同様である。   Note that although a focused block is also shown in FIG. 30 for convenience of explanation, the collation pattern does not include the focused block. The same applies to FIG. 31 described later.

図26に戻って、分割パターン表生成部は、ステップS2606にて生成した照合パターンαを対象に、着目ブロックを挟む2つのブロックについて、分割コードを有する照合パターンを選択する(ステップS2607)。選択された照合パターンに含まれる分割コードの組数をNとする。図30に示した例1の照合パターンの場合、分割コードの組数はN=2である。   Referring back to FIG. 26, the divided pattern table generation unit selects a collated pattern having a divided code for two blocks sandwiching the block of interest with reference to the collated pattern α generated in step S2606 (step S2607). Let N be the number of divided code sets included in the selected matching pattern. In the case of the collation pattern of Example 1 shown in FIG. 30, the number of sets of divided codes is N = 2.

分割パターン表生成部は、ステップS2607にて選択した照合パターンにおける分割コードの各組について、当該組内の分割コードのどちらか一方を未処理ブロックコードに設定することで、各組の分割コードの一つを未処理ブロックコードに置き換えた照合パターンβを生成する(ステップS2608)。分割コードの組数Nに対し、2N個の照合パターンβが生成される。 The division pattern table generation unit sets, for each set of divided codes in the collation pattern selected in step S2607, one of divided codes in the set as an unprocessed block code, thereby generating divided codes of each set. A verification pattern β is generated by replacing one with an unprocessed block code (step S2608). For the number N of divided code sets, 2 N matching patterns β are generated.

図31は、図26のステップS2608により生成された照合パターンβの例を示す図である。ステップS2607により生成された照合パターンαが図30に示した例1の場合(N=2の場合)、ステップS2608にて、4個の照合パターンβが生成される。照合パターンαにおいて、分割コードs1,s2を第1組とし、分割コードs3,s4を第2組とする。   FIG. 31 is a diagram showing an example of the collation pattern β generated in step S2608 of FIG. In the case of the example 1 shown in FIG. 30 (in the case of N = 2) in which the collation pattern α generated in step S2607 is shown, four collation patterns β are generated in step S2608. In the collation pattern α, the divided codes s1 and s2 are set to a first set, and the divided codes s3 and s4 are set to a second set.

照合パターンαにおいて、第1組の分割コードs1,s2のうちの分割コードs1が未処理ブロックコードに置き換えられ、第2組の分割コードs3,s4のうちの分割コードs3が未処理ブロックコードに置き換えられることで、最上段の照合パターンβが生成される。また、第1組の分割コードs1,s2のうちの分割コードs2が未処理ブロックコードに置き換えられ、第2組の分割コードs3,s4のうちの分割コードs3が未処理ブロックコードに置き換えられることで、2段目の照合パターンβが生成される。   In the verification pattern α, the divided code s1 of the first set of divided codes s1 and s2 is replaced with the unprocessed block code, and the divided code s3 of the second set of divided codes s3 and s4 is the unprocessed block code By being replaced, the top matching pattern β is generated. Also, the divided code s2 of the first set of divided codes s1 and s2 is replaced with the unprocessed block code, and the divided code s3 of the second set of divided codes s3 and s4 is replaced with the unprocessed block code Then, the second matching pattern β is generated.

照合パターンαにおいて、第1組の分割コードs1,s2のうちの分割コードs1が未処理ブロックコードに置き換えられ、第2組の分割コードs3,s4のうちの分割コードs4が未処理ブロックコードに置き換えられることで、3段目の照合パターンβが生成される。また、第1組の分割コードs1,s2のうちの分割コードs2が未処理ブロックコードに置き換えられ、第2組の分割コードs3,s4のうちの分割コードs4が未処理ブロックコードに置き換えられることで、最下段の照合パターンβが生成される。このように、4個の照合パターンβが生成される。   In the verification pattern α, the divided code s1 of the first set of divided codes s1 and s2 is replaced with the unprocessed block code, and the divided code s4 of the second set of divided codes s3 and s4 is the unprocessed block code By being replaced, the third-step matching pattern β is generated. Also, the divided code s2 of the first set of divided codes s1 and s2 is replaced with the unprocessed block code, and the divided code s4 of the second set of divided codes s3 and s4 is replaced with the unprocessed block code , The lowermost matching pattern β is generated. Thus, four matching patterns β are generated.

図26に戻って、分割パターン表生成部は、ステップS2608の後、ステップS2606にて生成した照合パターンα及びステップS2608にて生成した照合パターンβと、これに対応する導出分割とを組み合わせることで、分割パターン(b)を生成する(ステップS2609)。   Referring back to FIG. 26, after step S2608, the division pattern table generation unit combines the collation pattern α generated in step S2606 and the collation pattern β generated in step S2608 with the derivation division corresponding thereto. The division pattern (b) is generated (step S2609).

図30及び図31では、それぞれ照合パターンα,βとして説明したが、着目ブロックの導出分割も示されている。図30を参照して、照合パターンαとこれに対応する着目ブロックの導出分割とを組み合わせることにより、分割パターン(b)が生成される。また、図31を参照して、照合パターンβとこれに対応する着目ブロックの導出分割とを組み合わせることにより、分割パターン(b)が生成される。   In FIG. 30 and FIG. 31, although it demonstrated as collation pattern (alpha) and (beta), respectively, derivation | leading-out division | segmentation of a view block is also shown. Referring to FIG. 30, the division pattern (b) is generated by combining the collation pattern α and the derivation division of the block of interest corresponding thereto. Further, referring to FIG. 31, the division pattern (b) is generated by combining the collation pattern β and the derivation division of the block of interest corresponding thereto.

図26に戻って、分割パターン表生成部は、ステップS2609の後、ステップS2603にて生成した分割パターン(a−1)、ステップS2604にて生成した分割パターン(a−2)(a−3)、及びステップS2609にて生成した分割パターン(b)について、重複した分割パターンのうち1つの分割パターンのみを残し、他の分割パターンを除去する(ステップS2610)。また、符号化方式で許容されていない分割形状を有する分割パターンも除去する。そして、分割パターン表生成部は、重複のない分割パターンを出力し、分割パターン表としてメモリ12−1に格納する(ステップS2611)。重複した分割パターンとは、照合パターン及び着目ブロックの導出分割の両方が完全に一致する分割パターンをいう。例えば、照合パターンが同一であっても、着目ブロックの導出分割が異なる分割パターンは、重複した分割パターンではない。   Referring back to FIG. 26, after step S2609, the division pattern table generation unit generates the division pattern (a-1) generated in step S2603 and the division pattern (a-2) (a-3) generated in step S2604. And, with regard to the division pattern (b) generated in step S2609, only one division pattern of the overlapping division patterns is left, and the other division patterns are removed (step S2610). In addition, it also removes division patterns having division shapes that are not permitted by the encoding method. Then, the division pattern table generation unit outputs division patterns having no overlap, and stores the division patterns in the memory 12-1 as a division pattern table (step S2611). The overlapping division pattern refers to a division pattern in which both the matching pattern and the derivation division of the block of interest completely match. For example, even if the matching pattern is the same, the division patterns in which the derivation division of the target block is different are not overlapping division patterns.

以上のように、実施例5によれば、分割パターン表生成部は、予め設定された分割形状を隣接ブロックに配置に、分割形状の分割線が一直線に並ぶ配置を探索することで、2ブロックの当該分割形状を含む分割パターン(a−1)を生成し、1ブロックの当該分割形状を含む分割パターン(a−2)(a−3)を生成するようにした。また、分割パターン表生成部は、2つの導出分割を組み合わせた導出分割を特定し、元となる2つの導出分割のそれぞれの照合パターンを合成して照合パターンαを生成し、着目ブロックを挟む2つの隣接ブロックが分割コードを有する照合パターンについて、分割コードを未処理ブロクコードに置き換えた照合パターンβを生成し、照合パターンα,βと対応する導出分割とを組み合わせて分割パターン(b)を生成するようにした。そして、分割パターン表生成部は、分割パターン(a−1)(a−2)(a−3)(b)から重複した分割パターン及び符号化方式で許容されていない分割形状を有する分割パターンを除去し、分割パターン表として出力する。   As described above, according to the fifth embodiment, the divided pattern table generation unit searches for an arrangement in which division lines of division shapes are arranged in a straight line, with division shapes set in advance being arranged in adjacent blocks. The division pattern (a-1) including the division shape of the above is generated, and the division patterns (a-2) and (a-3) including the division shape of the one block are generated. In addition, the division pattern table generation unit specifies a derived division obtained by combining two derived divisions, synthesizes the respective matching patterns of the two original derived divisions to generate a verification pattern α, and places the block of interest 2 For a verification pattern in which two adjacent blocks have a split code, a split pattern β is generated by replacing the split code with an unprocessed block code, and a split pattern (b) is generated by combining the match patterns α and β with the corresponding derived split It was made to do. Then, the division pattern table generation unit divides a division pattern overlapping from the division patterns (a-1), (a-2), (a-3), and (b) and a division pattern having a division shape that is not permitted by the encoding method. Remove and output as a divided pattern table.

これにより、実施例1〜4にて用いる分割パターン表を、自動的に生成することが可能となる。   This makes it possible to automatically generate the division pattern table used in the first to fourth embodiments.

以上、実施例を挙げて本発明を説明したが、本発明は前記実施例に限定されるものではなく、その技術思想を逸脱しない範囲で種々変形可能である。例えば、図5に示した分割パターン表、図6に示した分割候補決定部11の処理例、図27に示した分割パターン(a−1)(a−2)(a−3)、図28に示した2つの導出分割の組み合わせ、図30に示した照合パターンα、及び、図31に示した照合パターンβは、それぞれ例示であり、本発明は、これらに限定されるものではない。   The present invention has been described above with reference to examples, but the present invention is not limited to the above examples, and various modifications can be made without departing from the technical concept of the present invention. For example, the division pattern table shown in FIG. 5, the processing example of the division candidate determination unit 11 shown in FIG. 6, the division patterns (a-1) (a-2) (a-3) shown in FIG. The combination of the two derived divisions shown in, the matching pattern α shown in FIG. 30, and the matching pattern β shown in FIG. 31 are examples, and the present invention is not limited to these.

尚、実施例1〜4による符号化装置1,2,4及び復号装置3,5のハードウェア構成としては、通常のコンピュータを使用することができる。符号化装置1,2,4及び復号装置3,5は、CPU、RAM等の揮発性の記憶媒体、ROM等の不揮発性の記憶媒体、及びインターフェース等を備えたコンピュータによって構成される。符号化装置1に備えたブロック化部10及び符号化処理部20の各機能は、これらの機能を記述したプログラムをCPUに実行させることによりそれぞれ実現される。符号化装置2に備えたブロック化部40及び符号化処理部50、符号化装置4に備えたブロック化部41及び符号化処理部51、復号装置3に備えたエントロピー復号部60、分割形状識別部61及び復号処理部70、並びに、復号装置5に備えたエントロピー復号部65、分割形状識別部66及び復号処理部70についても同様である。これらのプログラムは、前記記憶媒体に格納されており、CPUに読み出されて実行される。また、これらのプログラムは、磁気ディスク(フロッピー(登録商標)ディスク、ハードディスク等)、光ディスク(CD−ROM、DVD等)、半導体メモリ等の記憶媒体に格納して頒布することもでき、ネットワークを介して送受信することもできる。   In addition, as a hardware configuration of the encoding devices 1, 2, 4 and the decoding devices 3, 5 according to the first to fourth embodiments, a normal computer can be used. The encoding devices 1, 2, 4 and the decoding devices 3 and 5 are configured by a computer provided with a volatile storage medium such as a CPU and a RAM, a nonvolatile storage medium such as a ROM, and an interface. Each function of the blocking unit 10 and the encoding processing unit 20 included in the encoding device 1 is realized by causing a CPU to execute a program in which these functions are described. A blocking unit 40 and an encoding processing unit 50 provided in the encoding apparatus 2, a blocking unit 41 and an encoding processing unit 51 provided in the encoding apparatus 4, an entropy decoding unit 60 provided in the decoding apparatus 3, a divided shape identification The same applies to the unit 61 and the decoding processing unit 70, and the entropy decoding unit 65, the division shape identification unit 66 and the decoding processing unit 70 provided in the decoding device 5. These programs are stored in the storage medium and read out and executed by the CPU. These programs can also be stored and distributed in storage media such as magnetic disks (floppy (registered trademark) disks, hard disks, etc.), optical disks (CD-ROM, DVD, etc.), semiconductor memories, etc. Can also be sent and received.

1,2,4 符号化装置
3,5 復号装置
10,40,41 ブロック化部
11,62 分割候補決定部
12,28,63,76 メモリ
13,15 分割形状決定部
14 ブロック化処理部
16 分割パターン表読出部
20,50,51 符号化処理部
21 減算部
22 直交変換部
23 量子化部
24,72 逆量子化部
25,73 逆直交変換部
26,74 加算部
27,75 デブロッキングフィルタ
29,77 フレーム内予測部
30,78 動き補償予測部
31,79 切替スイッチ
32,71 スキャニング部
33 エントロピー符号化部
60,65 エントロピー復号部
61,66 分割形状識別部
64 分割形状抽出部
67 分割パターン表格納部
70 復号処理部
80 並べ替え部
1, 2, 4 Encoding device 3, 5 Decoding device 10, 40, 41 Blocking unit 11, 62 Division candidate determination unit 12, 28, 63, 76 Memory 13, 15 Division shape determination unit 14 Blocking processing unit 16 Division Pattern table reading unit 20, 50, 51 Encoding processing unit 21 Subtraction unit 22 Orthogonal transformation unit 23 Quantization unit 24, 72 Inverse quantization unit 25, 73 Inverse orthogonal transformation unit 26, 74 Addition unit 27, 75 Deblocking filter 29 , 77 Intra-frame prediction unit 30, 78 Motion compensation prediction unit 31, 79 Switching switch 32, 71 Scanning unit 33 Entropy coding unit 60, 65 Entropy decoding unit 61, 66 Division shape identification unit 64 Division shape extraction unit 67 Division pattern table Storage unit 70 Decoding processing unit 80 Reordering unit

Claims (15)

フレーム画像を小領域のブロックに分割して符号化し、ビットストリームを生成して出力する符号化装置において、
前記フレーム画像を小領域のブロックに分割し、前記ブロックの分割形状を決定し、前記分割形状に分割したブロックを符号化対象ブロックとして出力するブロック化部と、
前記ブロック化部により出力された符号化対象ブロックの予測画像を生成し、前記符号化対象ブロックと前記予測画像との差分信号を符号化する符号化処理部と、を備え、
前記ブロック化部は、
前記小領域に分割されたブロックの分割形状を格納する第1のメモリと、
着目ブロックの分割形状と、当該着目ブロックに隣接する複数の隣接ブロックにおけるそれぞれの分割形状とが対応した複数の分割パターンが予め格納された第2のメモリと、
前記小領域のブロックを着目ブロックに設定し、前記第1のメモリに格納された前記着目ブロックに隣接する複数の隣接ブロックにおけるそれぞれの分割形状のパターンと、前記第2のメモリに格納された前記複数の分割パターンに含まれる前記複数の隣接ブロックにおける分割形状のパターンとを比較し、これらのパターンが合致する場合、前記分割パターンに含まれる前記複数の隣接ブロックに対応する前記着目ブロックの分割形状を、分割候補に決定する分割候補決定部と、
前記分割候補決定部により決定された分割候補に基づいて、前記着目ブロックの分割形状を決定し、前記着目ブロックの分割形状を前記第1のメモリに格納する分割形状決定部と、
を備えたことを特徴とする符号化装置。
In a coding apparatus that divides a frame image into small area blocks and codes them, and generates and outputs a bit stream,
A block generation unit which divides the frame image into blocks of small areas, determines a division shape of the blocks, and outputs the blocks divided into the division shapes as a coding target block;
And a coding processing unit that generates a predicted image of the coding target block output from the blocking unit, and codes a difference signal between the coding target block and the predicted image.
The blocking unit is
A first memory storing a division shape of the block divided into the small areas;
A second memory in which a plurality of division patterns corresponding to the division shape of the block of interest and the division shapes of a plurality of adjacent blocks adjacent to the block of interest are stored in advance;
The block of the small area is set as a block of interest, and patterns of divided shapes of a plurality of adjacent blocks adjacent to the block of interest stored in the first memory, and the pattern of division stored in the second memory The divided shapes of the plurality of adjacent blocks included in the plurality of divided patterns are compared, and when these patterns match, the divided shape of the block of interest corresponding to the plurality of adjacent blocks included in the divided pattern A division candidate determination unit which determines the division candidates as division candidates;
A division shape determination unit that determines the division shape of the block of interest based on the division candidates determined by the division candidate determination unit, and stores the division shape of the block of interest in the first memory;
An encoding apparatus comprising:
請求項1に記載の符号化装置において、
前記分割形状決定部は、
前記分割候補決定部により決定された1または複数の前記分割候補に基づいて、前記着目ブロックの分割形状を決定し、前記着目ブロックの分割形状を前記第1のメモリに格納すると共に、前記決定した分割形状を1または複数の前記分割候補の中から識別するための分割形状コードを生成し、
前記符号化処理部は、
前記差分信号、及び前記分割形状決定部により生成された分割形状コードを符号化する、ことを特徴とする符号化装置。
In the encoding device according to claim 1,
The divided shape determination unit
The division shape of the block of interest is determined based on the one or more division candidates determined by the division candidate determination unit, the division shape of the block of interest is stored in the first memory, and the determination is made Generating a division shape code for identifying a division shape from one or more of the division candidates;
The encoding processing unit
An encoding apparatus comprising: the differential signal; and a divided shape code generated by the divided shape determination unit.
請求項2に記載の符号化装置において、
前記ブロック化部は、さらに、
前記第2のメモリから複数の分割パターンを分割パターン表として読み出す分割パターン表読出部を備え、
前記符号化処理部は、
前記差分信号、前記分割形状コード、及び前記分割パターン表読出部により読み出された分割パターン表を符号化する、ことを特徴とする符号化装置。
In the encoding device according to claim 2,
The blocking unit further includes
A division pattern table reading unit which reads a plurality of division patterns from the second memory as a division pattern table;
The encoding processing unit
An encoding apparatus comprising: the differential signal, the divided shape code, and a divided pattern table read by the divided pattern table reading unit.
請求項1から3までのいずれか一項に記載の符号化装置において、
前記分割候補決定部は、
前記フレーム画像が小領域に分割された全てのブロックが2種類のブロックに区別され、前記2種類のブロックが格子状に交互に配置された市松模様を形成する場合に、前記全てのブロックを、前記市松模様を形成する一方の第1のブロック群及び他方の第2のブロック群に分類し、
前記第1のブロック群のブロックについて、ラスタスキャン順に前記分割候補を決定し、
前記第2のブロック群のブロックについて、前記第1のブロック群のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記ラスタスキャン順に前記分割候補を決定する、ことを特徴とする符号化装置。
The encoding device according to any one of claims 1 to 3.
The division candidate determination unit
When all the blocks into which the frame image is divided into small areas are divided into two types of blocks, and the two types of blocks form a checkerboard pattern alternately arranged in a grid, all the blocks are selected as follows: The first block group and the second block group forming the checkered pattern are classified,
The division candidates are determined in raster scan order for the blocks in the first block group,
The division candidate is determined in the raster scan order using a division shape determined based on division candidates in the block of the first block group for the blocks of the second block group. Device.
請求項1から3までのいずれか一項に記載の符号化装置において、
前記分割候補決定部は、
前記フレーム画像の開始行から最終行までの各行を順番に着目行に設定し、
前記着目行の奇数列のブロックについて、前記着目行の1行前のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定し、
前記着目行の偶数列のブロックについて、前記着目行の1行前のブロックにおける分割候補に基づいて決定された分割形状、及び前記着目行の奇数列のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定する、ことを特徴とする符号化装置。
The encoding device according to any one of claims 1 to 3.
The division candidate determination unit
Each line from the start line to the last line of the frame image is sequentially set as a line of interest,
The division candidate is determined using the division shape determined based on the division candidate in the block one row before the target row, for the block of the odd-numbered column of the target row,
The block of the even-numbered column of the target row, the division shape determined based on the division candidate in the block immediately preceding the target row, and the division determined based on the division candidate in the odd-numbered column block of the target row An encoding apparatus, wherein the division candidate is determined using a shape.
請求項1から3までのいずれか一項に記載の符号化装置において、
前記分割候補決定部は、
前記フレーム画像の開始行から最終行までの各行を順番に着目行に設定し、
前記着目行の奇数列または偶数列のブロックについて、前記着目行の1行前の偶数列または奇数列のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定し、
前記着目行の1行前の奇数列または偶数列のブロックについて、前記着目行の2行前のブロックにおける分割候補に基づいて決定された分割形状、前記着目行の1行前の偶数列または奇数列のブロックにおける分割候補に基づいて決定された分割形状、及び、前記着目行の奇数列または偶数列のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定する、ことを特徴とする符号化装置。
The encoding device according to any one of claims 1 to 3.
The division candidate determination unit
Each line from the start line to the last line of the frame image is sequentially set as a line of interest,
The division candidate is determined using a division shape determined based on division candidates in the even column or odd column block one row before the target row, for blocks in the odd column or even column of the target row,
The division shape determined based on the division candidate in the block two rows before the target row for the block of the odd column or the even column one row before the target row, the even column or the odd row one row before the target row The division candidate is determined using a division shape determined based on a division candidate in a column block and a division shape determined on the basis of a division candidate in an odd column or even column of the row of interest. An encoding device characterized in that.
請求項6に記載の符号化装置において、
前記分割候補決定部は、
前記着目行の奇数列または偶数列のブロックについて前記分割候補を決定する処理、及び前記着目行の1行前の奇数列または偶数列のブロックについて前記分割候補を決定する処理を、同列のブロック毎に行う、ことを特徴とする符号化装置。
In the encoding device according to claim 6,
The division candidate determination unit
The process of determining the division candidate for the odd column or even column block of the row of interest, and the process of determining the division candidate for the odd column or even column of the row immediately before the row of interest An encoding device characterized in that.
請求項2の符号化装置により出力されたビットストリームを入力し、前記ビットストリームを復号し、元のフレーム画像の復号画像を生成する復号装置であって、
前記ビットストリームを復号し、復号ブロック、及び分割形状を1または複数の分割候補の中から識別するための分割形状コードを生成する復号部と、
前記復号部により生成された分割形状コードに基づいて、分割形状を識別し、前記復号部により生成された復号ブロックを、前記分割形状の復号対象ブロックとして出力する分割形状識別部と、
前記分割形状識別部により出力された復号対象ブロックの予測画像を生成し、前記復号対象ブロックである差分信号と前記予測画像とを加算して復号画像を生成する復号処理部と、を備え、
前記分割形状識別部は、
前記分割形状コードに対応するブロックの分割形状を格納する第1のメモリと、
着目ブロックの分割形状と、当該着目ブロックに隣接する複数の隣接ブロックにおけるそれぞれの分割形状とが対応した複数の分割パターンが予め格納された第2のメモリと、
前記復号部により生成された分割形状コードに対応するブロックを着目ブロックに設定し、前記第1のメモリに格納された前記着目ブロックに隣接する複数の隣接ブロックにおけるそれぞれの分割形状のパターンと、前記第2のメモリに格納された前記複数の分割パターンに含まれる前記複数の隣接ブロックにおける分割形状のパターンとを比較し、これらのパターンが合致する場合、前記分割パターンに含まれる前記複数の隣接ブロックに対応する前記着目ブロックの分割形状を、分割候補に決定する分割候補決定部と、
前記分割候補決定部により決定された1または複数の分割候補から、前記復号部により生成された分割形状コードが示す分割候補を特定し、前記特定した分割候補が示す分割形状を、前記着目ブロックの分割形状として抽出し、前記着目ブロックに対応する前記復号ブロックを、前記分割形状の復号対象ブロックとして出力する分割形状抽出部と、
を備えたことを特徴とする復号装置。
A decoding device which receives a bit stream output by the coding device according to claim 2, decodes the bit stream, and generates a decoded image of an original frame image,
A decoding unit that decodes the bit stream and generates a decoded block and a divided shape code for identifying the divided shape from one or a plurality of divided candidates;
A divided shape identification unit that identifies a divided shape based on the divided shape code generated by the decoding unit, and outputs the decoded block generated by the decoding unit as a decoding target block of the divided shape;
A decoding processing unit that generates a predicted image of the decoding target block output from the divided shape identification unit, adds the difference signal that is the decoding target block and the predicted image, and generates a decoded image;
The divided shape identification unit
A first memory storing a divided shape of a block corresponding to the divided shape code;
A second memory in which a plurality of division patterns corresponding to the division shape of the block of interest and the division shapes of a plurality of adjacent blocks adjacent to the block of interest are stored in advance;
A block corresponding to a divided shape code generated by the decoding unit is set as a target block, and patterns of divided shapes in a plurality of adjacent blocks adjacent to the target block stored in the first memory; The divided patterns of the plurality of adjacent blocks included in the plurality of divided patterns stored in the second memory are compared, and when the patterns match, the plurality of adjacent blocks included in the divided pattern A division candidate determination unit that determines division shapes of the block of interest corresponding to
The division candidate indicated by the division shape code generated by the decoding unit is specified from the one or more division candidates determined by the division candidate determination unit, and the division shape indicated by the specified division candidate is determined by the target block A divided shape extraction unit which extracts as a divided shape and outputs the decoded block corresponding to the block of interest as a decoding target block of the divided shape;
A decoding apparatus comprising:
請求項8の復号装置において、
請求項2の符号化装置により出力されたビットストリームを入力する代わりに、請求項3の符号化装置により出力されたビットストリームを入力し、
前記復号部は、
前記ビットストリームを復号し、前記復号ブロック、前記分割形状コード、及び複数の分割パターンである分割パターン表を生成し、
前記分割形状識別部は、さらに、
前記復号部により生成された分割パターン表を前記第2のメモリに格納する分割パターン表格納部を備えたことを特徴とする復号装置。
The decoding device according to claim 8
Instead of inputting the bit stream output by the encoder of claim 2, the bit stream output by the encoder of claim 3 is input,
The decoding unit
Decoding the bit stream to generate a divided pattern table which is the decoded block, the divided shape code, and a plurality of divided patterns;
The divided shape identification unit further includes
A decoding apparatus comprising: a division pattern table storage unit for storing the division pattern table generated by the decoding unit in the second memory.
請求項8または9に記載の復号装置において、
前記分割候補決定部は、
前記分割形状コードに対応する各ブロックが2種類のブロックに区別され、前記2種類のブロックが格子状に交互に配置された市松模様を形成する場合に、前記全てのブロックを、前記市松模様を形成する一方の第1のブロック群及び他方の第2のブロック群に分類し、
前記第1のブロック群のブロックについて、ラスタスキャン順に前記分割候補を決定し、
前記第2のブロック群のブロックについて、前記第1のブロック群のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記ラスタスキャン順に前記分割候補を決定する、ことを特徴とする復号装置。
In the decoding device according to claim 8 or 9,
The division candidate determination unit
When each block corresponding to the divided shape code is divided into two types of blocks, and the two types of blocks form a checkerboard pattern alternately arranged in a grid, all the blocks are divided into the checkerboard pattern Classified into one first block group and another second block group to be formed;
The division candidates are determined in raster scan order for the blocks in the first block group,
The division candidate is determined in the raster scan order for the blocks of the second block group using the division shape determined based on the division candidate in the block of the first block group. apparatus.
請求項8または9に記載の復号装置において、
前記分割候補決定部は、
前記元のフレーム画像の各行に対応した開始行から終了行までの各行を順番に着目行に設定し、
前記着目行の奇数列のブロックについて、前記着目行の1行前のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定し、
前記着目行の偶数列のブロックについて、前記着目行の1行前のブロックにおける分割候補に基づいて決定された分割形状、及び前記着目行の奇数列のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定する、ことを特徴とすることを特徴とする復号装置。
In the decoding device according to claim 8 or 9,
The division candidate determination unit
Each line from the start line to the end line corresponding to each line of the original frame image is sequentially set as a line of interest,
The division candidate is determined using the division shape determined based on the division candidate in the block one row before the target row, for the block of the odd-numbered column of the target row,
The block of the even-numbered column of the target row, the division shape determined based on the division candidate in the block immediately preceding the target row, and the division determined based on the division candidate in the odd-numbered column block of the target row A decoding apparatus characterized in that the division candidate is determined using a shape.
請求項8または9に記載の復号装置において、
前記分割候補決定部は、
前記元のフレーム画像の各行に対応した開始行から終了行までの各行を順番に着目行に設定し、
前記着目行の奇数列または偶数列のブロックについて、前記着目行の1行前の偶数列または奇数列のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定し、
前記着目行の1行前の奇数列または偶数列のブロックについて、前記着目行の2行前のブロックにおける分割候補に基づいて決定された分割形状、前記着目行の1行前の偶数列または奇数列のブロックにおける分割候補に基づいて決定された分割形状、及び、前記着目行の奇数列または偶数列のブロックにおける分割候補に基づいて決定された分割形状を用いて、前記分割候補を決定する、ことを特徴とする復号装置。
In the decoding device according to claim 8 or 9,
The division candidate determination unit
Each line from the start line to the end line corresponding to each line of the original frame image is sequentially set as a line of interest,
The division candidate is determined using a division shape determined based on division candidates in the even column or odd column block one row before the target row, for blocks in the odd column or even column of the target row,
The division shape determined based on the division candidate in the block two rows before the target row for the block of the odd column or the even column one row before the target row, the even column or the odd row one row before the target row The division candidate is determined using a division shape determined based on a division candidate in a column block and a division shape determined on the basis of a division candidate in an odd column or even column of the row of interest. Decoding device characterized in that.
請求項12に記載の復号装置において、
前記分割候補決定部は、
前記着目行の奇数列または偶数列のブロックについて前記分割候補を決定する処理、及び前記着目行の1行前の奇数列または偶数列のブロックについて前記分割候補を決定する処理を、同列のブロック毎に行う、ことを特徴とする復号装置。
In the decoding device according to claim 12,
The division candidate determination unit
The process of determining the division candidate for the odd column or even column block of the row of interest, and the process of determining the division candidate for the odd column or even column of the row immediately before the row of interest Decoding device characterized in that.
コンピュータを、請求項1から7までのいずれか一項に記載の符号化装置として機能させるためのプログラム。   A program for causing a computer to function as the encoding device according to any one of claims 1 to 7. コンピュータを、請求項8から13までのいずれか一項に記載の復号装置として機能させるためのプログラム。   A program for causing a computer to function as the decoding device according to any one of claims 8 to 13.
JP2015120594A 2015-06-15 2015-06-15 Encoding device, decoding device and program Active JP6510902B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015120594A JP6510902B2 (en) 2015-06-15 2015-06-15 Encoding device, decoding device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015120594A JP6510902B2 (en) 2015-06-15 2015-06-15 Encoding device, decoding device and program

Publications (2)

Publication Number Publication Date
JP2017005629A JP2017005629A (en) 2017-01-05
JP6510902B2 true JP6510902B2 (en) 2019-05-08

Family

ID=57752411

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015120594A Active JP6510902B2 (en) 2015-06-15 2015-06-15 Encoding device, decoding device and program

Country Status (1)

Country Link
JP (1) JP6510902B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090196342A1 (en) * 2006-08-02 2009-08-06 Oscar Divorra Escoda Adaptive Geometric Partitioning For Video Encoding
WO2012042654A1 (en) * 2010-09-30 2012-04-05 富士通株式会社 Image decoding method, image encoding method, image decoding device, image encoding device, image decoding program, and image encoding program
ES2691743T3 (en) * 2010-12-06 2018-11-28 Sun Patent Trust Method of image coding, image decoding method, image coding device and image decoding device
JP5719401B2 (en) * 2013-04-02 2015-05-20 日本電信電話株式会社 Block size determination method, video encoding device, and program

Also Published As

Publication number Publication date
JP2017005629A (en) 2017-01-05

Similar Documents

Publication Publication Date Title
US11750834B2 (en) Method and apparatus for inter prediction in video coding system
US11973954B2 (en) CCLM-based intra-prediction method and device
US10728571B2 (en) Inter prediction method and device in video coding system
JP7755687B2 (en) Video decoding method and apparatus using intra prediction in a video coding system
US20180213224A1 (en) Intra prediction method and device in video coding system
US11418803B2 (en) Intra-prediction-based image coding method and device therefor
KR20180044943A (en) Intra prediction method and apparatus in video coding system
KR20180034665A (en) Method and apparatus for intra prediction in video coding system
KR102650865B1 (en) Method and apparatus for processing video signal by applying secondary transform to partitioned block
CN108141589A (en) The method and apparatus being filtered in image compiling system to image
KR20170116043A (en) Method and apparatus for processing video signals using graph-based transforms
KR20240161059A (en) Apparatus and Method for Video Encoding or Decoding
KR20190090867A (en) Intra prediction mode based image processing method and apparatus therefor
CN117813821A (en) Video signal encoding/decoding method based on intra prediction in sub-block units and recording medium for storing bit stream
KR102698371B1 (en) Method and apparatus for inter prediction in video coding system
JP6510902B2 (en) Encoding device, decoding device and program
RU2787216C1 (en) Method and apparatus for decoding an image based on an intra-prediction in an image encoding system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180501

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190205

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190312

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190405

R150 Certificate of patent or registration of utility model

Ref document number: 6510902

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250