JP2014023138A - Decoder, error concealment processing device and decoding method - Google Patents

Decoder, error concealment processing device and decoding method Download PDF

Info

Publication number
JP2014023138A
JP2014023138A JP2012163513A JP2012163513A JP2014023138A JP 2014023138 A JP2014023138 A JP 2014023138A JP 2012163513 A JP2012163513 A JP 2012163513A JP 2012163513 A JP2012163513 A JP 2012163513A JP 2014023138 A JP2014023138 A JP 2014023138A
Authority
JP
Japan
Prior art keywords
concealment
motion vector
estimated motion
decoding
range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2012163513A
Other languages
Japanese (ja)
Other versions
JP5811061B2 (en
Inventor
Hiroshi Nakada
浩志 中田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2012163513A priority Critical patent/JP5811061B2/en
Publication of JP2014023138A publication Critical patent/JP2014023138A/en
Application granted granted Critical
Publication of JP5811061B2 publication Critical patent/JP5811061B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To correct an image having a decoding error.SOLUTION: A decoder includes: a decoding processing part for decoding coded data and outputting decoded pixel data, coding parameters, and decoding error information; a frame memory for storing pixel data; a coding parameter storing part for storing a coding parameters; a concealment control part for determining on/off of concealment processing based on the decoding error information; a concealment range calculation part for calculating a concealment range if the result of the on/off determination is on; a concealment range dividing part for dividing a concealment range into divided groups, and furthermore into subgroups; a predicted moving vector calculation part for calculating a predicted moving vector for each of the divided groups/subgroups within a concealment range; and a concealed image generation part for generating a concealed image from a predicted moving vector and pixel data stored in the frame memory, if the result of the on/off determination is on.

Description

この発明は、復号装置、エラーコンシールメント処理装置および復号方法に関する。   The present invention relates to a decoding device, an error concealment processing device, and a decoding method.

H.264やMPEG−2といった符号化方式を用いて圧縮符号化された映像を再生する際には、元の形式へ復号する必要があるが、伝送路上での電気ノイズ等により符号化データにエラーが混入すると、復号映像にノイズが混じったり、復号不可能な状態に陥ったりするなど、復号映像の画質が劣化してしまう。   H. When reproducing a video that has been compression-encoded using an encoding method such as H.264 or MPEG-2, it is necessary to decode it to the original format. However, there is an error in the encoded data due to electrical noise on the transmission path. If mixed, the image quality of the decoded video deteriorates, for example, the decoded video is mixed with noise or falls into a state where decoding is impossible.

この画質劣化の対策として、従来の復号装置では、エラーの発生した画像の補正画像を生成してエラーコンシールメント処理を行い、エラーの影響を低減させるものがある。例えば、受信する映像素材の性質や伝送誤りの程度に応じて各映像フレームの中を複数のグループに分類し、映像復号が正常に処理できたかグループごとに判別し、正常に処理できなかったグループについてはフレームバッファ内の以前に表示された復号映像またはあらかじめ定めた特定の映像などを利用して新たに表示すべき映像を作成するエラーコンシールメント処理方法を適用する復号装置が提案されている(例えば特許文献1)。   As a countermeasure against this image quality degradation, there is a conventional decoding device that generates a corrected image of an errored image and performs error concealment processing to reduce the influence of the error. For example, each video frame is classified into multiple groups according to the nature of the received video material and the degree of transmission error, and it is determined for each group whether video decoding has been processed normally. Has been proposed that applies an error concealment processing method for creating a video to be newly displayed using a previously displayed decoded video or a predetermined specific video in the frame buffer ( For example, Patent Document 1).

また、復号された画像データを1つまたは複数の分割領域に分割し、復号画像データから再生画像の動きを示す動き特徴値を分割領域毎に算出し、エラーにより復号できなかった分割領域に対し、算出した動き特徴値を補正ベクトルとして用い、復号画像データから補正先ベクトルに基づき画素データを複製することでエラー補正を行うエラーコンシールメント処理方法を適用する復号装置が提案されている(例えば特許文献2)。   Also, the decoded image data is divided into one or a plurality of divided areas, a motion feature value indicating the motion of the reproduced image is calculated for each divided area from the decoded image data, and the divided areas that cannot be decoded due to an error are calculated. A decoding device is proposed that applies an error concealment processing method that performs error correction by duplicating pixel data from decoded image data based on a correction destination vector using the calculated motion feature value as a correction vector (for example, a patent) Reference 2).

特開平11−164296号公報JP-A-11-164296 特開2008−187446号公報JP 2008-187446 A

しかし、特許文献1の復号装置では、映像の動きが考慮されておらず、対象の映像に動きがある場合は、正常に復号できた領域とエラーコンシールメント処理により以前の復号映像がはめ込まれた領域の間には大きなズレが発生するという問題点があった。   However, in the decoding device of Patent Document 1, the motion of the video is not taken into consideration, and when there is motion in the target video, the previous decoded video has been inserted by the error concealment process and the region that has been successfully decoded. There was a problem that a large gap occurred between the areas.

また、特許文献2の復号装置では、映像の動きは考慮されているものの、隣接するマクロブロックに対して少しずつ大きさや角度の異なるベクトルを適用して補正画像を生成するため、補正画像ではマクロブロックの境界部分にベクトルの差異によるエッジが多数現れ、主観画質を低下させるという問題点があった。   Further, in the decoding device of Patent Document 2, although the motion of the video is taken into consideration, a corrected image is generated by applying vectors having different sizes and angles little by little to adjacent macroblocks. Many edges due to vector differences appear at the boundary of the block, resulting in a problem that the subjective image quality is degraded.

この発明は上記のような問題点を解決するためになされたもので、映像の動きを考慮しながらエッジの発生を抑え、違和感の少ない補正画像を生成することでコンシールメント処理する復号装置を提供することを目的とする。   The present invention has been made to solve the above-described problems, and provides a decoding apparatus that performs concealment processing by generating a corrected image that suppresses the occurrence of an edge while considering the motion of a video and generates less uncomfortable feeling. The purpose is to do.

この発明に係る復号装置は、符号化データを復号処理し、復号後の画素データ、符号化パラメータおよび復号エラー情報を出力する復号処理部と、前記復号処理部が出力した画素データをピクチャ単位で蓄積するフレームメモリと、前記符号化パラメータをピクチャ単位で蓄積する符号化パラメータ蓄積部と、前記復号エラー情報を基に、ピクチャ毎にコンシールメント処理のON/OFFを判定するコンシール管理部と、前記コンシールメント処理のON/OFF判定結果がONのとき、コンシール範囲を算出するコンシール範囲算出部と、前記コンシール範囲を分割した分割グループを細分化したサブグループを設定した複数種類のサブグループ細分化パターンを格納する分割パターン格納部と、前記コンシール範囲を前記分割グループに分割し、さらに前記複数のサブグループ細分化パターンを基に、前記サブグループに分割するコンシール範囲分割部と、前記コンシール範囲内の分割グループ/サブグループごとに分割グループを代表する推定動きベクトルを算出する推定動きベクトル算出部と、前記コンシールメント処理のON/OFF判定結果がONのとき、前記推定動きベクトルと前記フレームメモリに蓄積されている画素データからコンシール画像を生成するコンシール画像生成部とを備える。   A decoding device according to the present invention decodes encoded data and outputs decoded pixel data, an encoding parameter, and decoding error information, and pixel data output by the decoding processor in units of pictures. A frame memory to be stored; a coding parameter storage unit that stores the encoding parameter in units of pictures; a concealment management unit that determines ON / OFF of concealment processing for each picture based on the decoding error information; When the ON / OFF determination result of the concealment process is ON, a conceal range calculation unit for calculating a conceal range, and a plurality of types of sub group subdivision patterns in which sub groups obtained by subdividing the divided group into which the conceal range is divided are set And a divided pattern storage unit for storing the concealment range in the divided group Further, based on the plurality of subgroup subdivision patterns, a concealed range dividing unit that divides the subgroup, and an estimated motion vector that represents the divided group for each divided group / subgroup within the concealed range are calculated. An estimated motion vector calculation unit that performs the concealment processing ON / OFF determination result, and a concealed image generation unit that generates a concealed image from the estimated motion vector and the pixel data stored in the frame memory. Prepare.

この発明に係る復号装置によれば、エラーを検出したスライス全体をコンシール範囲とし、コンシール範囲内を複数のマクロブロックからなるグループに分割し、動きが込み入った場所はサブグループに細分化し、エラーピクチャと時間的に近い、正常に復号されたピクチャの同位置マクロブロックの動きベクトルからコンシール範囲内のグループ/サブグループごとに推定動きベクトルを算出して、推定動きベクトルに応じた位置の画素を参照面から取得することで補正画像を生成してエラーコンシールメント処理を行うようにしているので、映像内の動きを維持した違和感の少ないコンシール画像を得ることができる。   According to the decoding apparatus of the present invention, the entire slice in which an error is detected is set as a concealed range, the concealed range is divided into groups of a plurality of macroblocks, and the place where the motion is complicated is subdivided into subgroups, and error pictures Calculate the estimated motion vector for each group / subgroup within the concealed range from the motion vector of the same-position macroblock of the decoded picture that is close in time and refer to the pixel at the position corresponding to the estimated motion vector Since the corrected image is generated from the surface and the error concealment process is performed, it is possible to obtain a concealed image with less sense of discomfort while maintaining the motion in the video.

この発明の実施の形態1に係る復号装置の一例を示す構成図である。It is a block diagram which shows an example of the decoding apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る復号装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the decoding apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係るコンシール範囲設定の一例の説明図である。It is explanatory drawing of an example of the concealment range setting which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係るコンシール範囲のグループ分割の一例の説明図である。It is explanatory drawing of an example of the group division | segmentation of the concealment range which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る分割されたグループのサブグループ細分化パターンの一例の説明図である。It is explanatory drawing of an example of the subgroup subdivision pattern of the divided | segmented group which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る推定動きベクトルの算出の一例の説明図である。It is explanatory drawing of an example of calculation of the estimated motion vector which concerns on Embodiment 1 of this invention. この発明の実施の形態2に係る復号装置の一例を示す構成図である。It is a block diagram which shows an example of the decoding apparatus which concerns on Embodiment 2 of this invention. この発明の実施の形態2に係る復号装置の動作の一例を示すフローチャート(差分)である。It is a flowchart (difference) which shows an example of operation | movement of the decoding apparatus which concerns on Embodiment 2 of this invention. この発明の実施の形態2に係る復号装置のエラーコンシールメント処理の一例を説明する概念図である。It is a conceptual diagram explaining an example of the error concealment process of the decoding apparatus which concerns on Embodiment 2 of this invention. この発明の実施の形態3に係る復号装置の一例を示す構成図である。It is a block diagram which shows an example of the decoding apparatus which concerns on Embodiment 3 of this invention. この発明の実施の形態3に係る復号装置の動作の一例を示すフローチャート(差分)である。It is a flowchart (difference) which shows an example of operation | movement of the decoding apparatus which concerns on Embodiment 3 of this invention. この発明の実施の形態4に係る復号装置の一例を示す構成図である。It is a block diagram which shows an example of the decoding apparatus which concerns on Embodiment 4 of this invention. この発明の実施の形態4に係る復号装置の動作の一例を示すフローチャート(差分)である。It is a flowchart (difference) which shows an example of operation | movement of the decoding apparatus which concerns on Embodiment 4 of this invention. この発明の実施の形態5に係る復号装置の一例を示す構成図である。It is a block diagram which shows an example of the decoding apparatus which concerns on Embodiment 5 of this invention. この発明の実施の形態5に係る復号装置のコンシール画像の生成の一例の説明図である。It is explanatory drawing of an example of the production | generation of the concealment image of the decoding apparatus which concerns on Embodiment 5 of this invention.

この発明は、復号装置、エラーコンシールメント処理装置および復号方法に関するものである。以下に、この発明に係る復号装置および復号方法の一例について説明する。   The present invention relates to a decoding device, an error concealment processing device, and a decoding method. Hereinafter, an example of the decoding device and the decoding method according to the present invention will be described.

実施の形態1.
図1は、この発明の実施の形態1に係るエラーコンシールメント処理部を搭載している復号装置を示す構成図である。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a decoding apparatus equipped with an error concealment processing unit according to Embodiment 1 of the present invention.

図において、復号装置は、復号処理部1とエラーコンシールメント処理部2aから構成される。復号処理部1は、符号化データを復号処理して復号後の画素データ、符号化パラメータおよび復号エラー情報を出力する。エラーコンシールメント処理部2aは、復号処理部1の出力する画素データ、符号化パラメータ、復号エラー情報を入力として、正常な復号が行われたときにはその復号画像を出力し、エラーが発生したときにはこれらの入力を基に復号エラーにより乱れた映像を補正したコンシール画像を生成して出力する。   In the figure, the decoding device includes a decoding processing unit 1 and an error concealment processing unit 2a. The decoding processing unit 1 decodes the encoded data and outputs decoded pixel data, encoding parameters, and decoding error information. The error concealment processing unit 2a receives the pixel data, the encoding parameter, and the decoding error information output from the decoding processing unit 1, outputs the decoded image when normal decoding is performed, and outputs these when an error occurs. Based on the input, a concealed image in which the video disturbed by the decoding error is corrected is generated and output.

また、このエラーコンシールメント処理部2aについて、さらに詳細な構成を示す。フレームメモリ21は、復号処理部1が出力した画素データをピクチャ単位で蓄積する。符号化パラメータ蓄積部22は、復号処理部1が出力した符号化パラメータをピクチャ単位で蓄積する。コンシール管理部23は、復号処理部1が出力した復号エラー情報を基に、ピクチャ毎にコンシールメント処理のON/OFFを判定する。コンシール範囲算出部24は、コンシール管理部23が判定したコンシールメント処理のON/OFF判定結果がONのとき、コンシール範囲を算出する。分割パターン格納部25は、コンシール範囲を分割した分割グループを細分化したサブグループを設定した複数種類のサブグループ細分化パターンを格納する。コンシール範囲分割部26は、コンシール範囲算出部24が算出したコンシール範囲を分割グループに分割し、さらに分割パターン格納部25に格納された複数のサブグループ細分化パターンを基に、サブグループに分割する。推定動きベクトル算出部27aは、コンシール範囲内の分割グループ/サブグループごとに分割グループを代表する推定動きベクトルを算出する。コンシール画像生成部28は、コンシールメント処理のON/OFF判定結果がONのとき、推定動きベクトル算出部27aの算出した推定動きベクトルとフレームメモリに蓄積されている画素データからコンシール画像を生成する。   The error concealment processing unit 2a will be described in further detail. The frame memory 21 stores the pixel data output from the decoding processing unit 1 in units of pictures. The encoding parameter storage unit 22 stores the encoding parameters output from the decoding processing unit 1 in units of pictures. The concealment management unit 23 determines ON / OFF of the concealment processing for each picture based on the decoding error information output from the decoding processing unit 1. The concealment range calculation unit 24 calculates the concealment range when the ON / OFF determination result of the concealment process determined by the concealment management unit 23 is ON. The division pattern storage unit 25 stores a plurality of types of subgroup subdivision patterns in which subgroups obtained by subdividing the division group into which the concealment range is divided are set. The conceal range dividing unit 26 divides the conceal range calculated by the conceal range calculation unit 24 into divided groups, and further divides the conceal range into sub groups based on a plurality of subgroup subdivision patterns stored in the divided pattern storage unit 25. . The estimated motion vector calculation unit 27a calculates an estimated motion vector representing the divided group for each divided group / subgroup within the concealed range. The concealed image generation unit 28 generates a concealed image from the estimated motion vector calculated by the estimated motion vector calculation unit 27a and the pixel data stored in the frame memory when the ON / OFF determination result of the concealment process is ON.

図2は、この発明の実施の形態1に係るエラーコンシールメント処理部を搭載している復号装置の動作の一例を示すフローチャートである。   FIG. 2 is a flowchart showing an example of the operation of the decoding apparatus equipped with the error concealment processing unit according to Embodiment 1 of the present invention.

図において、ステップST101で、コンシール管理部23は、復号エラー情報を基に、ピクチャ毎にコンシールメント処理のON/OFFを判定する。ステップST102で、コンシール範囲算出部24は、コンシールON/OFF判定を基に、コンシール範囲を算出する。ステップST103で、コンシール範囲分割部26は、コンシール範囲を分割グループに分割する。ステップST104で、コンシール範囲分割部26は、複数のサブグループ細分化パターンを基に、グループごとに一つのサブグループ細分化パターンを選択して、そのパターンに対応するサブグループに分割する。ステップST105で、推定動きベクトル算出部27aは、コンシール範囲内の分割グループ/サブグループごとにその分割グループ/サブグループを代表する推定動きベクトルを算出する。ステップST106で、コンシール画像生成部28は、推定動きベクトルと、参照面情報に基づく参照面の画素データとから出力画像を生成する。なお、ステップST101で、コンシールOFFであれば、ステップST106で、コンシール画像生成部28は、コンシール画像を生成せず、正常に復号された画素データからなる画像を出力する。   In the figure, in step ST101, the concealment management unit 23 determines ON / OFF of the concealment process for each picture based on the decoding error information. In step ST102, the conceal range calculation unit 24 calculates the conceal range based on the conceal ON / OFF determination. In step ST103, the concealed range dividing unit 26 divides the concealed range into divided groups. In step ST104, the concealment range dividing unit 26 selects one subgroup subdivision pattern for each group based on the plurality of subgroup subdivision patterns, and divides it into subgroups corresponding to the pattern. In step ST105, the estimated motion vector calculation unit 27a calculates an estimated motion vector representing each divided group / subgroup for each divided group / subgroup within the concealed range. In step ST106, the concealed image generation unit 28 generates an output image from the estimated motion vector and the pixel data of the reference surface based on the reference surface information. If the concealment is OFF in step ST101, the concealed image generation unit 28 outputs an image composed of normally decoded pixel data without generating a concealed image in step ST106.

次に、さらに詳細な処理について説明する。   Next, further detailed processing will be described.

まず、復号処理部1は、符号化装置で符号化された符号化データを入力すると、復号処理を行って復号画像を生成し、この復号画像の画素データをエラーコンシールメント処理部2aへ出力する。また、復号処理の際に使用した符号化パラメータをエラーコンシールメント処理部2aへ出力する。また、復号処理部1は、復号処理の際に検知した復号エラー情報をエラーコンシールメント処理部2aへ出力する。ここで、符号化パラメータとは、例えば符号化方式がH.264の場合、画面内のスライス構成やピクチャタイプ、マクロブロック毎の予測モード、動きベクトルなどである。また、復号エラー情報とは、例えば復号エラー検出の有無や画像内における復号エラー検出位置などである。   First, when the encoded data encoded by the encoding device is input, the decoding processing unit 1 performs a decoding process to generate a decoded image, and outputs pixel data of the decoded image to the error concealment processing unit 2a. . In addition, the encoding parameters used in the decoding process are output to the error concealment processing unit 2a. The decoding processing unit 1 outputs the decoding error information detected during the decoding process to the error concealment processing unit 2a. Here, the encoding parameter is, for example, that the encoding method is H.264. In the case of H.264, the slice configuration and picture type in the screen, the prediction mode for each macroblock, the motion vector, and the like. The decoding error information is, for example, the presence or absence of decoding error detection and the decoding error detection position in the image.

復号処理部1からエラーコンシールメント処理部2aへ出力された画素データは、ピクチャごとにフレームメモリ21に蓄積され、符号化パラメータは、ピクチャごとに符号化パラメータ蓄積部22に蓄積され、復号エラー情報は、随時コンシール管理部23に通知される。   The pixel data output from the decoding processing unit 1 to the error concealment processing unit 2a is stored in the frame memory 21 for each picture, and the encoding parameter is stored in the encoding parameter storage unit 22 for each picture. Is notified to the concealment management unit 23 as needed.

コンシール管理部23は、復号処理部1からの復号エラー情報を常に監視し、復号エラーが検出されるとその影響範囲を算出してピクチャごとにコンシールON/OFF判定を行うとともにコンシールに用いる参照面を算出し設定する。   The concealment management unit 23 constantly monitors the decoding error information from the decoding processing unit 1, calculates a range of influence when a decoding error is detected, determines conceal ON / OFF for each picture, and uses a reference surface for concealment Is calculated and set.

例えば、H.264等のように他のピクチャを参照して次のピクチャを生成する符号化方式の場合、復号エラーの与える影響は復号エラーが検出されたピクチャだけでなく、復号エラーが検出されたピクチャを参照するピクチャにも伝播する。そのため、コンシール管理部23は、復号エラーが検出されたピクチャおよび復号エラーが検出されたピクチャを参照面とするピクチャは「コンシールON」、それ以外は「コンシールOFF」と判定する。   For example, H.M. In the case of an encoding scheme in which a next picture is generated by referring to another picture such as H.264, the influence of the decoding error is not only the picture in which the decoding error is detected but also the picture in which the decoding error is detected. Propagated to the picture to be. Therefore, the concealment management unit 23 determines that the picture having the decoding error detected and the picture having the decoding error detected as the reference plane is “conceal ON”, and the others are “conceal OFF”.

また、コンシールに用いる参照面は、エラーで失われた情報を補完するために使われるピクチャであり、映像には時間的に近い映像は相関が高いという特徴があるため、コンシール対象のピクチャと時間的に近く、正常に復号されているピクチャを選ぶ。例えば、コンシール対象のピクチャタイプがI(イントラ符号化)/P(前方参照符号化)ピクチャの場合は、表示順がコンシール対象ピクチャの直前である正常に復号されたI/Pピクチャ1枚をコンシール参照面とし、コンシール対象がB(前方参照・後方参照符号化)ピクチャの場合は、表示順がコンシール対象ピクチャの直前と直後で正常に復号されたI/Pピクチャ2枚をコンシール参照面とする。   In addition, the reference plane used for concealment is a picture used to supplement information lost due to an error, and the image close to time is characterized by high correlation. Select a picture that is close and successfully decoded. For example, when the picture type to be concealed is an I (intra coding) / P (forward reference coding) picture, one normally decoded I / P picture whose display order is immediately before the concealment target picture is concealed. When the concealment target is a B (forward reference / backward reference encoding) picture, two I / P pictures that are normally decoded immediately before and after the concealment target picture are used as the concealment reference plane. .

コンシール範囲算出部24は、コンシール管理部23が「コンシールON」と判定すると、復号エラー情報とスライス情報から復号エラーの検出されたマクロブロックを含むスライスの開始位置および終了位置を算出し、そのスライス全体をコンシール範囲とする。例えば、この発明の実施の形態1に係るコンシール範囲設定の一例の説明図である図3により説明する。H.264のような可変長符号化方式によって符号化された符号化データにエラーが混入した場合、実際にエラーが混入した位置と復号時にエラーが検出される位置は異なり、エラー検出位置より前から復号映像が乱れている可能性がある。よって、符号化の単位であるスライス全体をコンシール範囲とすることで、映像が乱れている可能性のある箇所を全て包含した範囲をコンシールメント処理の対象とする。   When the concealment management unit 23 determines that “conceal ON”, the conceal range calculation unit 24 calculates the start position and end position of the slice including the macroblock in which the decoding error is detected from the decoding error information and the slice information, and the slice The whole is the concealment range. For example, a description will be given with reference to FIG. 3 which is an explanatory diagram of an example of concealment range setting according to Embodiment 1 of the present invention. H. When an error is mixed in encoded data encoded by a variable length coding method such as H.264, the position where the error is actually mixed is different from the position where the error is detected at the time of decoding, and decoding is performed before the error detection position. The image may be distorted. Therefore, by setting the entire slice, which is a unit of encoding, as the concealment range, a range including all the places where the video may be disturbed is set as the target of the concealment process.

コンシール範囲分割部26は、コンシール範囲算出部24がコンシール範囲を決定すると、コンシール範囲を複数のマクロブロック(MB)からなるグループおよび各グループを複数のサブグループに分割する。ここでは、以下の2段階で分割を行う。   When the concealed range calculation unit 24 determines the concealed range, the concealed range dividing unit 26 divides the concealed range into a group composed of a plurality of macroblocks (MB) and each group into a plurality of subgroups. Here, the division is performed in the following two stages.

まず、第1段階として、コンシール範囲を一定の大きさのグループ(例えば4MB×4MB等)に分割する。例えば、この発明の実施の形態1に係るコンシール範囲のグループ分割の一例の説明図である図4により説明する。コンシール範囲内の画像には複数の動きが含まれていることから、コンシール範囲を分割することで、それぞれの場所ごとに動きを反映したコンシールメント処理を行うものとする。   First, as a first step, the concealment range is divided into groups of a certain size (for example, 4 MB × 4 MB). For example, a description will be given with reference to FIG. 4 which is an explanatory diagram of an example of group division of the concealment range according to the first embodiment of the present invention. Since an image within the concealment range includes a plurality of movements, the concealment process reflecting the movement is performed for each location by dividing the concealment range.

次に、第2段階として、第1段階で分割した各グループについて、さらにサブグループへの細分化が有効か評価し、有効であると判定されれば細分化を行う。例えば、この発明の実施の形態1に係る分割されたグループのサブグループ細分化パターンの一例の説明図である図5により説明する。コンシール範囲を分割したグループに適用する複数のサブグループ細分化パターンを用意しておき、グループ内をサブグループに細分化する。ここでは、第1段階で分割した4MB×4MBのグループに対するサブグループ細分化パターンの一例を示したが、細分化する形状、パターン数は任意に設定することができ、グループと同一サイズとなる1つのサブグループのみのパターンを含めておいても構わない。ここで用いる複数のサブグループ細分化パターンは、分割パターン格納部25が格納して記憶され、コンシール範囲分割部26から適宜参照される。   Next, as a second stage, for each group divided in the first stage, it is evaluated whether subdivision into sub-groups is effective. If it is determined to be effective, subdivision is performed. For example, a description will be given with reference to FIG. 5 which is an explanatory diagram of an example of a subgroup subdivision pattern of divided groups according to Embodiment 1 of the present invention. A plurality of subgroup subdivision patterns to be applied to a group obtained by dividing the concealment range are prepared, and the inside of the group is subdivided into subgroups. Here, an example of the subgroup subdivision pattern for the group of 4 MB × 4 MB divided in the first stage is shown, but the shape and the number of patterns to be subdivided can be arbitrarily set and have the same size as the group 1 You may include a pattern with only one subgroup. The plurality of subgroup subdivision patterns used here are stored and stored in the division pattern storage unit 25 and are referred to as appropriate by the concealment range division unit 26.

各グループのコンシールメント処理には、複数のサブグループ細分化パターンのすべてについて、各サブグループ内の画像の動きのばらつき度合いを評価し、最もばらつきの少ないサブグループ細分化パターンを採用する。ここで、動きのばらつきが少ないことは、動きが均一化された状態を意味している。例えば、サブグループを構成するマクロブロックと同位置の参照面上のマクロブロックの動きベクトルを用いてサブグループ内の動きベクトルの分散を算出し、この分散を評価値として、すべてのサブグループ細分化パターンの中でサブグループの動きベクトルの分散の最大値が最も小さくなるパターン(サブグループ内で動きベクトルのばらつきが少ない分割パターン)を採用し、細分化を行う。このようにすることで、動きが単純な箇所は大きめのサブグループ単位でコンシールメント処理を行い、動きが込み入った箇所は込み入った動きのところだけ細分化したサブグループ単位でコンシールメント処理を行うことができる。なお、同一の最大評価値をとる複数のサブグループ細分化パターンが存在した場合の判定のために、サブグループ細分化パターンに対して優先度を設けておいてもよい。   In the concealment process for each group, the degree of variation in image motion within each subgroup is evaluated for all of the plurality of subgroup subdivision patterns, and the subgroup subdivision pattern with the least variation is employed. Here, a small variation in motion means a state in which the motion is uniform. For example, using the motion vector of the macroblock on the reference plane at the same position as the macroblocks that make up the subgroup, calculate the variance of the motion vector in the subgroup, and use this variance as the evaluation value to subdivide all subgroups Subdivision is performed by adopting a pattern in which the maximum value of the variance of the motion vectors of the subgroup is the smallest among the patterns (a divided pattern with less variation of motion vectors in the subgroup). By doing this, concealment processing is performed in large subgroup units for places where movement is simple, and concealment processing is performed in subgroup units that are subdivided only in the portion where the movement is complicated. Can do. Note that a priority may be provided for a subgroup subdivision pattern for determination when there are a plurality of subgroup subdivision patterns having the same maximum evaluation value.

推定動きベクトル算出部27aは、コンシール範囲分割部26がコンシール範囲の分割方法を決定すると、グループ/サブグループごとに推定動きベクトルを算出する。例えば、この発明の実施の形態1に係る推定動きベクトルの算出の一例の説明図である図6により説明する。推定動きベクトルは、グループ内のマクロブロックと同位置の参照面内のマクロブロックが持つ動きベクトルを用いて算出する。その推定動きベクトルの算出方法としては、例えば動きベクトルの平均値、中央値(メジアン)、または動きベクトルのヒストグラムをとった最高頻度(最頻値)のベクトルを採用してもよく、またこのような既定の統計値に限らない算出方法であってもよい。   When the concealed range dividing unit 26 determines a concealed range dividing method, the estimated motion vector calculating unit 27a calculates an estimated motion vector for each group / subgroup. For example, a description will be given with reference to FIG. 6, which is an explanatory diagram of an example of calculation of an estimated motion vector according to Embodiment 1 of the present invention. The estimated motion vector is calculated using the motion vector possessed by the macroblock in the reference plane at the same position as the macroblock in the group. As a method of calculating the estimated motion vector, for example, an average value, median value (median) of motion vectors, or a vector with the highest frequency (mode) taking a histogram of motion vectors may be adopted. The calculation method is not limited to a predetermined statistical value.

コンシール画像生成部28では、推定動きベクトル算出部27aが推定動きベクトルの算出を完了すると、コンシール範囲以外は正常に復号された復号画像を設定するとともに、正常に復号できなかったコンシール範囲については対応するグループ/サブグループごとに算出した推定動きベクトルに基づいて参照面の画素データから得た補正画像を設定することで、コンシール画像を生成し、出力する。   In the concealed image generating unit 28, when the estimated motion vector calculating unit 27a completes the calculation of the estimated motion vector, a decoded image that is normally decoded except for the concealed range is set, and a concealed range that cannot be normally decoded is handled. A concealed image is generated and output by setting a corrected image obtained from the pixel data of the reference plane based on the estimated motion vector calculated for each group / subgroup.

以上のように、この発明の実施の形態1に係る復号装置および復号方法によれば、エラーを検出したスライス全体をコンシール範囲とし、コンシール範囲内を複数のマクロブロックからなるグループに分割し、動きが込み入った場所はサブグループに細分化し、エラーピクチャと時間的に近い、正常に復号されたピクチャの同位置マクロブロックの動きベクトルからコンシール範囲内のグループ/サブグループごとに推定動きベクトルを算出して、推定動きベクトルに応じた位置の画素を参照面から取得することで補正画像を生成してエラーコンシールメント処理を行うようにしているので、映像内の動きを維持した違和感の少ないコンシール画像を得ることができる。   As described above, according to the decoding apparatus and decoding method according to Embodiment 1 of the present invention, the entire slice in which an error is detected is set as a concealed range, and the concealed range is divided into groups of a plurality of macroblocks. The congested place is subdivided into subgroups, and estimated motion vectors are calculated for each group / subgroup within the concealed range from the motion vectors of the same-position macroblocks of successfully decoded pictures that are temporally close to the error picture. Therefore, the error concealment process is performed by generating the corrected image by acquiring the pixel at the position corresponding to the estimated motion vector from the reference plane, so that the concealed image with less sense of incongruity maintaining the motion in the video can be obtained. Can be obtained.

実施の形態2.
先の実施の形態1では、推定動きベクトルを算出して補正画像を生成するようにしたものを説明した。次に、実施の形態2では、推定動きベクトルが画面外を指す場合に推定動きベクトルを補正するものについて説明する。
Embodiment 2. FIG.
In the first embodiment described above, the corrected motion image is generated by calculating the estimated motion vector. Next, in the second embodiment, a description will be given of correcting an estimated motion vector when the estimated motion vector points outside the screen.

図7は、この発明の実施の形態2に係るエラーコンシールメント処理部を搭載している復号装置を示す構成図である。   FIG. 7 is a block diagram showing a decoding apparatus equipped with an error concealment processing unit according to Embodiment 2 of the present invention.

図において、復号装置は、復号処理部1とエラーコンシールメント処理部2bから構成される。復号処理部1は、この発明の実施の形態1において図1で説明した復号処理部1と同様の機能を有し、動作するものであるため、その説明は省略する。また、エラーコンシールメント処理部2bを構成するフレームメモリ21、符号化パラメータ蓄積部22、コンシール管理部23、コンシール範囲算出部24、分割パターン格納部25、コンシール範囲分割部26、コンシール画像生成部28は、この発明の実施の形態1において図1で説明したエラーコンシールメント処理部2a内部構成に付した同一符号の構成要素と同様の機能を有し、動作するものであるため、その説明は省略する。よって、推定動きベクトル算出部27bと画面外参照推定動きベクトル検出部29について説明する。   In the figure, the decoding device includes a decoding processing unit 1 and an error concealment processing unit 2b. The decryption processing unit 1 has the same function and operates as the decryption processing unit 1 described in FIG. 1 in the first embodiment of the present invention, so that the description thereof is omitted. Further, the frame memory 21, the encoding parameter storage unit 22, the concealment management unit 23, the conceal range calculation unit 24, the division pattern storage unit 25, the conceal range division unit 26, and the concealment image generation unit 28 that constitute the error concealment processing unit 2b. 1 has the same function as that of the components having the same reference numerals attached to the internal configuration of the error concealment processing unit 2a described in FIG. 1 in the first embodiment of the present invention, and the description thereof is omitted. To do. Therefore, the estimated motion vector calculation unit 27b and the out-of-screen reference estimated motion vector detection unit 29 will be described.

推定動きベクトル算出部27bは、この発明の実施の形態1において図1で説明した推定動きベクトル算出部27aと同様に、推定動きベクトルを算出し、その後、画面外参照推定動きベクトル検出部29により検出された推定動きベクトルの画面外を参照するグループ情報に基づいて補正した推定動きベクトルをコンシール画像生成部28に送出する。画面外参照推定動きベクトル検出部29は、推定動きベクトル算出部27bが算出した推定動きベクトルが画面外を参照しているか否かをグループ/サブグループごとにチェックし、画面外を参照している場合は画面外を参照するグループ情報を推定動きベクトル算出部27bに通知する。   The estimated motion vector calculation unit 27b calculates an estimated motion vector in the same manner as the estimated motion vector calculation unit 27a described in FIG. 1 in the first embodiment of the present invention, and then the off-screen reference estimation motion vector detection unit 29 performs the calculation. The estimated motion vector corrected based on the group information referring outside the screen of the detected estimated motion vector is sent to the concealed image generating unit. The out-of-screen reference estimated motion vector detection unit 29 checks whether the estimated motion vector calculated by the estimated motion vector calculation unit 27b refers to the outside of the screen for each group / subgroup, and refers to the outside of the screen. In this case, the estimated motion vector calculation unit 27b is notified of group information referring to the outside of the screen.

図8は、この発明の実施の形態2に係るエラーコンシールメント処理部を搭載している復号装置の動作の一例を示すフローチャートであり、図2に示したこの発明の実施の形態1に係るエラーコンシールメント処理部を搭載している復号装置の動作を示すフローチャートとの差分を示している。   FIG. 8 is a flowchart showing an example of the operation of the decoding apparatus equipped with the error concealment processing unit according to the second embodiment of the present invention, and the error according to the first embodiment of the present invention shown in FIG. The difference with the flowchart which shows operation | movement of the decoding apparatus carrying the concealment process part is shown.

図において、ステップST101からステップST105、およびステップST106(図示せず)は、図2に示したこの発明の実施の形態1に係る復号装置の動作を示すフローチャートと同様の処理を行う。ここでは、ステップST105とST106との間に次のステップST201、ST202を追加する。   In the figure, steps ST101 to ST105 and step ST106 (not shown) perform the same processing as the flowchart showing the operation of the decoding apparatus according to Embodiment 1 of the present invention shown in FIG. Here, the following steps ST201 and ST202 are added between steps ST105 and ST106.

ステップST201で、画面外参照推定動きベクトル検出部29が、ステップST105で算出された推定動きベクトルにおける画面外への参照があるか検出する。ステップST201において画面外への参照がないとき、推定動きベクトルは補正せず、ステップST106に処理を進める。ステップST201において画面外への参照があることが検出されたとき、ステップST202で、推定動きベクトル算出部27bが画面外参照を考慮して推定動きベクトルを補正する。その後、ステップST106で、コンシール画像生成部28は、ステップST105で算出した推定動きベクトルまたはステップST202で補正された推定動きベクトルと、参照面情報に基づく参照面の画素データとから出力画像を生成する。なお、ステップST101で、コンシールOFFであれば、ステップST106で、コンシール画像生成部28は、コンシール画像を生成せず、正常に復号された画素データからなる画像を出力する。   In step ST201, the out-of-screen reference estimated motion vector detection unit 29 detects whether there is a reference to the outside of the screen in the estimated motion vector calculated in step ST105. When there is no reference to the outside of the screen in step ST201, the estimated motion vector is not corrected and the process proceeds to step ST106. When it is detected in step ST201 that there is a reference to the outside of the screen, in step ST202, the estimated motion vector calculation unit 27b corrects the estimated motion vector in consideration of the reference to the outside of the screen. After that, in step ST106, the concealed image generation unit 28 generates an output image from the estimated motion vector calculated in step ST105 or the estimated motion vector corrected in step ST202 and the reference plane pixel data based on the reference plane information. . If the concealment is OFF in step ST101, the concealed image generation unit 28 outputs an image composed of normally decoded pixel data without generating a concealed image in step ST106.

図9は、この発明の実施の形態2に係る復号装置のエラーコンシールメント処理の一例を説明する概念図である。この図に沿って、詳細な処理について説明する。   FIG. 9 is a conceptual diagram illustrating an example of error concealment processing of the decoding apparatus according to Embodiment 2 of the present invention. Detailed processing will be described with reference to FIG.

図において、P(前方参照符号化)ピクチャであるP1ピクチャ、P2ピクチャ、I(イントラ符号化)ピクチャであるI3ピクチャの順に復号画像が表示されるものとし、P1ピクチャ、I3ピクチャは正常に復号でき、P2ピクチャは復号エラーがあった場合を示している。通常、復号エラー前後は復号画像が乱れるが、ここでは正常な復号時と同様の状態で対象をそのまま描いている。なお、イントラ符号化ピクチャであるI3ピクチャは、参照面を持たず、1枚の中で符号化が完結するため、他のピクチャを参照する動きベクトルを持たず、他のピクチャの復号エラーの影響を受けない。   In the figure, it is assumed that decoded images are displayed in the order of P1 picture that is P (forward reference coding) picture, P2 picture, and I3 picture that is I (intra coding) picture, and P1 picture and I3 picture are decoded normally. The P2 picture shows a case where there is a decoding error. Usually, the decoded image is disturbed before and after the decoding error, but here the object is drawn as it is in the same state as in normal decoding. Note that an I3 picture that is an intra-coded picture does not have a reference plane, and encoding is completed in one sheet. Therefore, the I3 picture does not have a motion vector that refers to another picture, and is affected by decoding errors of other pictures. Not receive.

ここで、復号処理部1で復号エラーを検出してから、コンシール範囲を算出し、コンシール範囲を分割し、推定動きベクトルを算出するところまでは実施の形態1で説明した処理と同様であるため、その説明は省略する。   Here, since the decoding processing unit 1 detects the decoding error, calculates the concealed range, divides the concealed range, and calculates the estimated motion vector, it is the same as the processing described in the first embodiment. The description is omitted.

(1)推定動きベクトルの算出
まず、推定動きベクトル算出部27bは、コンシール範囲に対して、例えば表示順が時間的に前方向で正常に復号された直前のP1ピクチャと同一の動きを継続すると推定して、P1ピクチャの動きベクトルからP2ピクチャの推定動きベクトルを算出する。
(1) Calculation of Estimated Motion Vector First, when the estimated motion vector calculation unit 27b continues the same motion as the immediately preceding P1 picture in which the display order is normally decoded in the forward direction with respect to the concealed range, for example. Then, an estimated motion vector of the P2 picture is calculated from the motion vector of the P1 picture.

(2)画面外参照推定動きベクトルの検出
次に、画面外参照推定動きベクトル検出部29は、推定動きベクトル算出部27bが算出した推定動きベクトルが画面外を参照しているか否かをグループごとに検出し、画面外を参照している場合は画面外を参照するグループ情報を推定動きベクトル算出部27bに通知する。ここでは、画面外参照推定動きベクトル検出部29が、推定動きベクトル算出部27bが算出した推定動きベクトルの一番左端のグループが画面外の参照を示していることを検出し、一番左端のグループ情報を推定動きベクトル算出部27bに通知する。
(2) Detection of off-screen reference estimated motion vector Next, the off-screen reference estimated motion vector detection unit 29 determines whether or not the estimated motion vector calculated by the estimated motion vector calculation unit 27b refers to the outside of the screen. In the case of referring to the outside of the screen, the estimated motion vector calculating unit 27b is notified of the group information referring to the outside of the screen. Here, the out-of-screen reference estimated motion vector detection unit 29 detects that the leftmost group of the estimated motion vector calculated by the estimated motion vector calculation unit 27b indicates an off-screen reference, and the leftmost The group information is notified to the estimated motion vector calculation unit 27b.

(3)画面外参照推定動きベクトルの補正
推定動きベクトルが画面外の参照を示している場合、P1ピクチャを参照面として画素データを取得して補正したコンシール画像を生成することができないため、表示順が時間的に後方向のI3ピクチャを参照面としたコンシールメント処理を行う。ここでは、例えばI3ピクチャは、エラーピクチャP2直前のP1ピクチャと同じ動きをするものとして、エラーピクチャ直前のP1ピクチャと同じ動きベクトルを用いて推定動きベクトルを算出する。ただし、I3ピクチャからエラーピクチャP2への参照方向とエラーピクチャP2からI3ピクチャへの参照方向とは逆方向となるので、推定動きベクトルの向きを反転させて設定する。
推定動きベクトル算出部27bは、画面外参照推定動きベクトル検出部29から通知された画面外を参照するグループ情報に基づいて推定動きベクトルを補正する。ここでは、画面外参照推定動きベクトル検出部29から通知された一番左端のグループの推定動きベクトルの向きを反転する。
(3) Correction of out-of-screen reference estimated motion vector When the estimated motion vector indicates an out-of-screen reference, it is not possible to generate a concealed image in which pixel data is acquired and corrected using the P1 picture as a reference plane. A concealment process is performed using the I3 picture whose order is backward in time as a reference plane. Here, for example, assuming that the I3 picture moves the same as the P1 picture immediately before the error picture P2, the estimated motion vector is calculated using the same motion vector as the P1 picture immediately before the error picture. However, since the reference direction from the I3 picture to the error picture P2 is opposite to the reference direction from the error picture P2 to the I3 picture, the direction of the estimated motion vector is set to be inverted.
The estimated motion vector calculation unit 27b corrects the estimated motion vector based on the group information that refers to the outside of the screen notified from the out-of-screen reference estimated motion vector detection unit 29. Here, the direction of the estimated motion vector of the leftmost group notified from the off-screen reference estimated motion vector detection unit 29 is reversed.

(4)コンシール画像の生成
コンシール画像生成部28は、推定動きベクトル算出部27bが算出した推定動きベクトル(画面外参照なしの場合)または補正した推定動きベクトル(画面外参照ありの場合)に基づいて、参照面のピクチャを参照してP2ピクチャのコンシール画像を生成する。ここでは、推定動きベクトルに基づいて、表示順が時間的に前方向のP1ピクチャと後方向のI3ピクチャを参照面として適宜参照してP2ピクチャのコンシール画像を生成する。
(4) Generation of Concealed Image The concealed image generation unit 28 is based on the estimated motion vector (when there is no reference outside the screen) calculated by the estimated motion vector calculation unit 27b or the corrected estimated motion vector (when there is a reference outside the screen). Thus, a concealed image of the P2 picture is generated with reference to the picture on the reference plane. Here, based on the estimated motion vector, the concealed image of the P2 picture is generated by appropriately referring to the P1 picture whose display order is temporally forward and the I3 picture of the backward direction as reference planes.

なお、この図9では、P1ピクチャの動きベクトルがグループごとに一つの動きベクトルを持つ場合が示されているが、各グループが図5に示したサブグループ単位に細分化されて、推定動きベクトルが設定され、参照面の画像を参照してコンシール画像を生成することもある。   FIG. 9 shows a case where the motion vector of the P1 picture has one motion vector for each group. However, each group is subdivided into subgroup units shown in FIG. Is set, and the concealed image may be generated with reference to the image of the reference surface.

また、2つのピクチャの表示時間が離れている場合は、その時間間隔に応じて推定動きベクトルの大きさを比例的に補正して適用する。なお、この時間間隔の代わりに、一定フレーム速度の動きを仮定した映像に対して、2つのピクチャ間のフレーム数に応じて推定動きベクトルを補正してもよい。また、過去複数フレームから推測した動きの対象の加速度を考慮して、2つのピクチャ間のフレーム数に応じた推定動きベクトルを補正してもよい。   In addition, when the display times of two pictures are separated, the magnitude of the estimated motion vector is proportionally corrected according to the time interval. Note that, instead of this time interval, the estimated motion vector may be corrected according to the number of frames between two pictures for a video assuming a motion at a constant frame rate. In addition, an estimated motion vector corresponding to the number of frames between two pictures may be corrected in consideration of the acceleration of a motion target estimated from a plurality of past frames.

以上のように、この発明の実施の形態2に係る復号装置および復号方法によれば、この発明の実施の形態1に係る復号装置および復号方法と同様に、エラーを検出したスライス全体をコンシール範囲とし、コンシール範囲内を複数のマクロブロックからなるグループに分割し、動きが込み入った場所はサブグループに細分化し、エラーピクチャと時間的に近い、正常に復号されたピクチャの同位置マクロブロックの動きベクトルからコンシール範囲内のグループ/サブグループごとに推定動きベクトルを算出して、推定動きベクトルに応じた位置の画素を参照面から取得することで補正画像を生成してエラーコンシールメント処理を行うようにしているので、映像内の動きを維持した違和感の少ないコンシール画像を得ることができる。   As described above, according to the decoding apparatus and decoding method according to Embodiment 2 of the present invention, as in the decoding apparatus and decoding method according to Embodiment 1 of the present invention, the entire slice from which an error has been detected is concealed. The concealed area is divided into groups consisting of a plurality of macroblocks, and the locations where the motion is complicated are subdivided into subgroups, and the motion of the co-located macroblocks in the normally decoded picture that is close in time to the error picture An estimated motion vector is calculated for each group / subgroup within the concealed range from the vector, and a pixel at a position corresponding to the estimated motion vector is acquired from the reference plane to generate a corrected image and perform error concealment processing. Therefore, it is possible to obtain a concealed image with less sense of incongruity while maintaining the movement in the video.

また、この発明の実施の形態2に係る復号装置および復号方法によれば、表示順が前方向の参照面を使用して得た推定動きベクトルが画面外の参照を示している場合、推定動きベクトル算出部27bが、後方向の参照面を使用するように変更し、動きベクトルが反対方向となるように補正することで、推定動きベクトルが画面端のグループでも画像の欠落なしにコンシールを行うことができる。   Further, according to the decoding apparatus and decoding method according to Embodiment 2 of the present invention, when the estimated motion vector obtained using the reference plane whose display order is the forward direction indicates an off-screen reference, the estimated motion The vector calculation unit 27b changes to use the backward reference plane and corrects the motion vector to be in the opposite direction, so that the estimated motion vector is concealed without image loss even in the group at the screen edge. be able to.

実施の形態3.
先の実施の形態2では、推定動きベクトルが画面外を指すときは推定動きベクトルを逆向きにして後方向からの参照にしてコンシール画像を生成するようにしたものを説明した。次に、この発明の実施の形態3では、推定動きベクトルが画面外を指し、かつ後方向のI(イントラ符号化)ピクチャでシーンチェンジが発生していた場合に、推定動きベクトルを補正するものについて説明する。
Embodiment 3 FIG.
In the second embodiment described above, when the estimated motion vector points outside the screen, the estimated motion vector is reversed and the concealed image is generated by referring from the backward direction. Next, the third embodiment of the present invention corrects an estimated motion vector when the estimated motion vector points outside the screen and a scene change has occurred in a backward I (intra-coded) picture. Will be described.

図10は、この発明の実施の形態3に係るエラーコンシールメント処理部を搭載している復号装置を示す構成図である。   FIG. 10 is a block diagram showing a decoding apparatus equipped with an error concealment processing unit according to Embodiment 3 of the present invention.

図において、復号装置は、復号処理部1とエラーコンシールメント処理部2cから構成される。復号処理部1は、この発明の実施の形態2において図7で説明した復号処理部1と同様の機能を有し、動作するものであるため、その説明は省略する。また、エラーコンシールメント処理部2cを構成するフレームメモリ21、符号化パラメータ蓄積部22、コンシール管理部23、コンシール範囲算出部24、分割パターン格納部25、コンシール範囲分割部26、コンシール画像生成部28、画面外参照推定動きベクトル検出部29は、この発明の実施の形態2において図7で説明したエラーコンシールメント処理部2b内部構成に付した同一符号の構成要素と同様の機能を有し、動作するものであるため、その説明は省略する。よって、推定動きベクトル算出部27cとシーンチェンジ検出部30について説明する。   In the figure, the decoding device includes a decoding processing unit 1 and an error concealment processing unit 2c. The decryption processing unit 1 has the same function and operates as the decryption processing unit 1 described in FIG. 7 in the second embodiment of the present invention, so that the description thereof is omitted. In addition, the frame memory 21, the encoding parameter accumulation unit 22, the concealment management unit 23, the conceal range calculation unit 24, the division pattern storage unit 25, the conceal range division unit 26, and the concealment image generation unit 28 that constitute the error concealment processing unit 2c. The out-of-screen reference estimation motion vector detection unit 29 has the same functions as those of the components having the same reference numerals attached to the internal configuration of the error concealment processing unit 2b described in FIG. 7 in the second embodiment of the present invention. Therefore, the description thereof is omitted. Therefore, the estimated motion vector calculation unit 27c and the scene change detection unit 30 will be described.

シーンチェンジ検出部30は、復号画像でシーンチェンジの発生有無を検出して常時監視し、シーンチェンジが発生したことを推定動きベクトル算出部27cに通知する。推定動きベクトル算出部27cは、この発明の実施の形態2において図7で説明した推定動きベクトル算出部27bと同様に、推定動きベクトルを算出し、その後、画面外参照推定動きベクトル検出部29により通知された推定動きベクトルを、シーンチェンジ検出部30の検出結果に基づいて補正を行い、コンシール画像生成部28に送出する。   The scene change detection unit 30 detects whether or not a scene change has occurred in the decoded image and constantly monitors it, and notifies the estimated motion vector calculation unit 27c that a scene change has occurred. The estimated motion vector calculation unit 27c calculates an estimated motion vector in the same manner as the estimated motion vector calculation unit 27b described in FIG. 7 in the second embodiment of the present invention, and then the off-screen reference estimation motion vector detection unit 29 performs the calculation. The notified estimated motion vector is corrected based on the detection result of the scene change detection unit 30 and sent to the concealed image generation unit 28.

図11は、この発明の実施の形態3に係るエラーコンシールメント処理部を搭載している復号装置の動作の一例を示すフローチャートであり、図2に示したこの発明の実施の形態1に係るエラーコンシールメント処理部を搭載している復号装置の動作を示すフローチャートとの差分を示している。   FIG. 11 is a flowchart showing an example of the operation of the decoding apparatus equipped with the error concealment processing unit according to the third embodiment of the present invention, and the error according to the first embodiment of the present invention shown in FIG. The difference with the flowchart which shows operation | movement of the decoding apparatus carrying the concealment process part is shown.

図において、ステップST101からステップST105、およびステップST106(図示せず)は、図2に示したこの発明の実施の形態1に係る復号装置の動作を示すフローチャートと同様の処理を行う。また、ステップST201、ST202は、図8に示したこの発明の実施の形態2に係る復号装置の動作を示すフローチャートと同様の処理を行う。ここでは、ステップST201、ST202との間にステップST301、またステップST301、ST106との間にステップST302を追加する。   In the figure, steps ST101 to ST105 and step ST106 (not shown) perform the same processing as the flowchart showing the operation of the decoding apparatus according to Embodiment 1 of the present invention shown in FIG. Steps ST201 and ST202 perform the same processing as the flowchart showing the operation of the decoding apparatus according to Embodiment 2 of the present invention shown in FIG. Here, step ST301 is added between steps ST201 and ST202, and step ST302 is added between steps ST301 and ST106.

ステップST201で、画面外参照推定動きベクトル検出部29が、ステップST105で算出された推定動きベクトルにおける画面外への参照があるか検出する。ステップST201において画面外への参照がないとき、推定動きベクトルは補正せず、ステップST106に処理を進める。また、ステップST201において画面外への参照があると検出されたとき、ステップST301で、シーンチェンジ検出部30が、シーンチェンジの発生有無の検出状況を確認する。ステップST301においてシーンチェンジの発生があったとき、ステップST302で、推定動きベクトル算出部27cが画面外参照とシーンチェンジを考慮して推定動きベクトルを補正する。ステップST301においてシーンチェンジの発生がなかったとき、ステップST202で、推定動きベクトル算出部27cが推定動きベクトルを補正する。その後、ステップST106で、コンシール画像生成部28は、ステップST105で算出した推定動きベクトルあるいはステップST202またはステップST302のいずれかで補正された推定動きベクトルと、参照面情報に基づく参照面の画素データとから出力画像を生成する。なお、ステップST101においてコンシールOFFであれば、ステップST106で、コンシール画像生成部28は、コンシール画像を生成せず、正常に復号された画素データからなる画像を出力する。   In step ST201, the out-of-screen reference estimated motion vector detection unit 29 detects whether there is a reference to the outside of the screen in the estimated motion vector calculated in step ST105. When there is no reference to the outside of the screen in step ST201, the estimated motion vector is not corrected and the process proceeds to step ST106. When it is detected in step ST201 that there is a reference to the outside of the screen, in step ST301, the scene change detection unit 30 checks the detection status of whether or not a scene change has occurred. When a scene change occurs in step ST301, in step ST302, the estimated motion vector calculation unit 27c corrects the estimated motion vector in consideration of the off-screen reference and the scene change. When no scene change occurs in step ST301, the estimated motion vector calculation unit 27c corrects the estimated motion vector in step ST202. Thereafter, in step ST106, the concealed image generation unit 28 calculates the estimated motion vector calculated in step ST105 or the estimated motion vector corrected in either step ST202 or step ST302, and pixel data of the reference surface based on the reference surface information. To generate an output image. If concealment is OFF in step ST101, in step ST106, the concealed image generating unit 28 does not generate a concealed image, but outputs an image composed of normally decoded pixel data.

次に、詳細な処理について説明する。復号処理部1で復号エラーを検出し、コンシール範囲を算出し、コンシール範囲を分割し、推定動きベクトルを算出し、図9の(2)画面外参照推定動きベクトルの検出により、画面外参照推定動きベクトル検出部29から推定動きベクトル算出部27cに画面外を参照するグループ情報が通知されるところまでは実施の形態2で説明した処理と同様であるため、その説明は省略し、(3)画面外参照推定動きベクトルの補正について説明する。   Next, detailed processing will be described. The decoding processing unit 1 detects a decoding error, calculates a concealed range, divides the concealed range, calculates an estimated motion vector, and detects (2) off-screen reference estimated motion vector in FIG. The process up to the point when the motion vector detection unit 29 notifies the estimated motion vector calculation unit 27c of the group information that refers to the outside of the screen is the same as the process described in the second embodiment, and thus the description thereof is omitted. (3) The correction of the out-of-screen reference estimated motion vector will be described.

(3)画面外参照推定動きベクトルの補正
推定動きベクトル算出部27cは、実施の形態2における説明と同様に、推定動きベクトルが画面外の参照を示している場合、P(前方参照符号化)ピクチャ(P1ピクチャ)を参照面として画素データを取得して補正したコンシール画像を生成することができないため、表示順の時間的に後方向のI(イントラ符号化)ピクチャ(I3ピクチャ)を参照面としたコンシールメント処理を行い、I3ピクチャからエラーのあるP2ピクチャへの参照方向とP2ピクチャからI3ピクチャへの参照方向とは逆方向となるので、推定動きベクトルの向きを反転させる補正を行う。
(3) Correction of the estimated motion vector outside the screen The estimated motion vector calculation unit 27c, when the estimated motion vector indicates a reference outside the screen, is described as P (forward reference encoding), as described in the second embodiment. Since a concealed image in which pixel data is acquired and corrected using the picture (P1 picture) as a reference plane cannot be generated, a temporally backward I (intra-encoded) picture (I3 picture) in the display order is used as the reference plane. The reference direction from the I3 picture to the P2 picture in error and the reference direction from the P2 picture to the I3 picture are opposite to each other, so that the direction of the estimated motion vector is reversed.

ここで、推定動きベクトル算出部27cは、この推定動きベクトルの向きを反転させる補正の前に、シーンチェンジ検出部30から後方向のI3ピクチャにおけるシーンチェンジの検出状況を確認し、シーンチェンジが検出されているときには、推定動きベクトルの向きを反転させる補正を行わず、ゼロベクトルを設定する補正を行う。この補正では、例えばP2ピクチャの同位置画素データをそのまま利用してコンシールメント処理を行う。これは、後方向のI3ピクチャでシーンチェンジが起きている場合、エラーのあったP2ピクチャと後方向のI3ピクチャの相関性は低いと考えられるため、後方向のピクチャは参照面に利用できない。よって、推定動きベクトル算出部27cが算出した推定動きベクトルが画面外の参照を示し、さらに後方向のIピクチャでシーンチェンジが起きている場合には、当該グループは前方向参照も後方向参照も有効ではないことになるため、P2ピクチャの同位置画素データを利用する。ここで利用するP2ピクチャはエラーを含むが、コンシールメント処理に利用する同位置画素データにはエラーが及んでいない場合もあり、ここではエラーが及んでいる場合でもそのまま利用する。   Here, the estimated motion vector calculation unit 27c confirms the scene change detection status in the backward I3 picture from the scene change detection unit 30 before the correction for inverting the direction of the estimated motion vector, and the scene change is detected. If it is, correction for setting the zero vector is performed without performing correction for inverting the direction of the estimated motion vector. In this correction, for example, the concealment process is performed using the same-position pixel data of the P2 picture as it is. This is because, when a scene change occurs in the backward I3 picture, the correlation between the P2 picture in error and the backward I3 picture is considered to be low, so the backward picture cannot be used for the reference plane. Therefore, when the estimated motion vector calculated by the estimated motion vector calculation unit 27c indicates an off-screen reference and a scene change has occurred in the backward I picture, the group has both forward reference and backward reference. Since it is not effective, the same-position pixel data of the P2 picture is used. The P2 picture used here includes an error, but the same-position pixel data used for the concealment process may not have an error. In this case, even if an error has occurred, the P2 picture is used as it is.

このように、推定動きベクトルが画面外の参照を示している場合に、シーンチェンジの発生有無により、推定動きベクトルの向きを反転させる補正とゼロベクトルを設定する補正の異なる補正処理を実行するが、推定動きベクトルの向きを反転させる補正を行ってから、再度ゼロベクトルを設定する補正を行う二段階の補正としてもよい。   In this way, when the estimated motion vector indicates an off-screen reference, different correction processing is executed, which includes correction for inverting the direction of the estimated motion vector and correction for setting the zero vector depending on whether or not a scene change has occurred. Further, it is possible to perform a two-stage correction in which a correction for inverting the direction of the estimated motion vector is performed and then a correction for setting the zero vector is performed again.

以上のように、この発明の実施の形態3に係る復号装置および復号方法によれば、この発明の実施の形態1および実施の形態2に係る復号装置および復号方法と同様に、エラーを検出したスライス全体をコンシール範囲とし、コンシール範囲内を複数のマクロブロックからなるグループに分割し、動きが込み入った場所はサブグループに細分化し、エラーピクチャと時間的に近い、正常に復号されたピクチャの同位置マクロブロックの動きベクトルからコンシール範囲内のグループ/サブグループごとに推定動きベクトルを算出して、推定動きベクトルに応じた位置の画素を参照面から取得することで補正画像を生成してエラーコンシールメント処理を行うようにしているので、映像内の動きを維持した違和感の少ないコンシール画像を得ることができる。   As described above, according to the decoding device and the decoding method according to Embodiment 3 of the present invention, an error is detected as in the decoding device and the decoding method according to Embodiment 1 and Embodiment 2 of the present invention. The entire slice is defined as a concealed range, and the concealed range is divided into groups consisting of a plurality of macroblocks. The place where the motion is complicated is subdivided into subgroups, and the same as the correctly decoded picture that is temporally similar to the error picture. An estimated motion vector is calculated for each group / subgroup within the concealment range from the motion vector of the position macroblock, and a corrected image is generated by acquiring a pixel at a position corresponding to the estimated motion vector from the reference plane, thereby generating an error concealment. Process is performed so that a concealed image with less discomfort can be obtained while maintaining the movement in the video. Door can be.

また、この発明の実施の形態3に係る復号装置および復号方法によれば、この発明の実施の形態2に係る復号装置および復号方法と同様に、表示順が前方向の参照面を使用して得た推定動きベクトルが画面外の参照を示している場合、推定動きベクトル算出部27cが後方向の参照面を使用するように変更し、動きベクトルも反対方向となるように補正することで、画面端のグループでも画像の欠落なしにコンシールを行うことができる。   Moreover, according to the decoding apparatus and decoding method which concern on Embodiment 3 of this invention, using the reference surface where a display order is a front direction similarly to the decoding apparatus and decoding method which concern on Embodiment 2 of this invention When the obtained estimated motion vector indicates a reference outside the screen, the estimated motion vector calculation unit 27c is changed to use the backward reference plane, and the motion vector is corrected so as to be in the opposite direction, Concealment can be performed without omission of an image even in a group at the edge of the screen.

また、この発明の実施の形態3に係る復号装置および復号方法によれば、シーンチェンジ検出部30を備え、表示順が前方向の参照面を使用して得た推定動きベクトルが画面外の参照を示している場合に、後方向のI(イントラ符号化)ピクチャでシーンチェンジが起きているときには、エラーを含んだP(前方参照符号化)ピクチャの同位置画素データをそのまま利用するようにしたので、シーンチェンジにより相関のなくなっている画像を参照してコンシール画像を生成することを防ぐことができる。   In addition, according to the decoding apparatus and decoding method according to Embodiment 3 of the present invention, the estimated motion vector that is provided with the scene change detection unit 30 and that is obtained by using the reference plane whose display order is the forward direction is the off-screen reference. When a scene change occurs in a backward I (intra coding) picture, the same-position pixel data of a P (forward reference coding) picture including an error is used as it is. Therefore, it is possible to prevent the generation of a concealed image with reference to an image whose correlation is lost due to a scene change.

実施の形態4.
先の実施の形態1では、推定動きベクトルを算出して補正画像を生成するようにしたものを説明した。次に、この実施の形態4では、算出された推定動きベクトルの再評価することにより補正要否を判定し、補正が必要な場合に推定動きベクトルを補正する実施の形態を示す。
Embodiment 4 FIG.
In the first embodiment described above, the corrected motion image is generated by calculating the estimated motion vector. Next, the fourth embodiment shows an embodiment in which the necessity of correction is determined by re-evaluating the calculated estimated motion vector, and the estimated motion vector is corrected when correction is necessary.

図12は、この発明の実施の形態4に係るエラーコンシールメント処理部を搭載している復号装置を示す構成図である。   FIG. 12 is a block diagram showing a decoding apparatus equipped with an error concealment processing unit according to Embodiment 4 of the present invention.

図において、復号装置は、復号処理部1とエラーコンシールメント処理部2dから構成される。復号処理部1は、この発明の実施の形態1において図1で説明した復号処理部1と同様の機能を有し、動作するものであるため、その説明は省略する。また、エラーコンシールメント処理部2dを構成するフレームメモリ21、符号化パラメータ蓄積部22、コンシール管理部23、コンシール範囲算出部24、分割パターン格納部25、コンシール範囲分割部26、コンシール画像生成部28は、この発明の実施の形態1において図1で説明したエラーコンシールメント処理部2a内部構成に付した同一符号の構成要素と同様の機能を有し、動作するものであるため、その説明は省略する。よって、推定動きベクトル算出部27dと推定動きベクトル評価部31について説明する。   In the figure, the decoding device includes a decoding processing unit 1 and an error concealment processing unit 2d. The decryption processing unit 1 has the same function and operates as the decryption processing unit 1 described in FIG. 1 in the first embodiment of the present invention, so that the description thereof is omitted. In addition, the frame memory 21, the encoding parameter storage unit 22, the concealment management unit 23, the conceal range calculation unit 24, the division pattern storage unit 25, the conceal range division unit 26, and the concealment image generation unit 28 that constitute the error concealment processing unit 2 d. 1 has the same function as that of the components having the same reference numerals attached to the internal configuration of the error concealment processing unit 2a described in FIG. 1 in the first embodiment of the present invention, and the description thereof is omitted. To do. Therefore, the estimated motion vector calculation unit 27d and the estimated motion vector evaluation unit 31 will be described.

推定動きベクトル算出部27dは、この発明の実施の形態1において図1で説明した推定動きベクトル算出部27aと同様に推定動きベクトルを算出し、また推定動きベクトルの再評価することにより補正が必要な場合に推定動きベクトルを補正する。推定動きベクトル評価部31は、推定動きベクトル算出部27dが算出した推定動きベクトルについて、各分割グループの推定動きベクトルとその周囲の分割グループの推定動きベクトルの同調性を評価することにより補正要否を判定する。   The estimated motion vector calculation unit 27d needs to be corrected by calculating the estimated motion vector in the same manner as the estimated motion vector calculation unit 27a described in FIG. 1 in the first embodiment of the present invention and re-evaluating the estimated motion vector. In such a case, the estimated motion vector is corrected. The estimated motion vector evaluation unit 31 evaluates the necessity of correction of the estimated motion vector calculated by the estimated motion vector calculation unit 27d by evaluating the synchrony of the estimated motion vector of each divided group and the estimated motion vectors of the surrounding divided groups. Determine.

図13は、この発明の実施の形態2に係るエラーコンシールメント処理部を搭載している復号装置の動作の一例を示すフローチャートであり、図2に示したこの発明の実施の形態1に係るエラーコンシールメント処理部を搭載している復号装置の動作を示すフローチャートとの差分を示している。   FIG. 13 is a flowchart showing an example of the operation of the decoding apparatus equipped with the error concealment processing unit according to the second embodiment of the present invention, and the error according to the first embodiment of the present invention shown in FIG. The difference with the flowchart which shows operation | movement of the decoding apparatus carrying the concealment process part is shown.

図において、ステップST101からステップST105、およびステップST106(図示せず)は、図2に示したこの発明の実施の形態1に係る復号装置の動作を示すフローチャートと同様の処理を行う。ここでは、ステップST105とST106との間に次のステップST401からステップST403を追加する。   In the figure, steps ST101 to ST105 and step ST106 (not shown) perform the same processing as the flowchart showing the operation of the decoding apparatus according to Embodiment 1 of the present invention shown in FIG. Here, steps ST401 to ST403 are added between steps ST105 and ST106.

ステップST401で、推定動きベクトル評価部31が、ステップST105で算出された推定動きベクトルにおける補正要否を評価する。ステップST402で、推定動きベクトルにおける補正要否を判定する。ステップST402において補正が必要ないと判定したとき、推定動きベクトルは補正せず、ステップST106に処理を進める。ステップST402において補正が必要であると判定したとき、ステップST403で、推定動きベクトルを補正する。その後、ステップST106で、コンシール画像生成部28は、ステップST105で算出した推定動きベクトルまたはステップST403で補正された推定動きベクトルと、参照面情報に基づく参照面の画素データとから出力画像を生成する。なお、ステップST101で、コンシールOFFであれば、ステップST106で、コンシール画像生成部28は、コンシール画像を生成せず、正常に復号された画素データからなる画像を出力する。   In step ST401, the estimated motion vector evaluation unit 31 evaluates the necessity of correction in the estimated motion vector calculated in step ST105. In step ST402, it is determined whether or not the estimated motion vector needs to be corrected. When it is determined in step ST402 that correction is not necessary, the estimated motion vector is not corrected and the process proceeds to step ST106. When it is determined in step ST402 that correction is necessary, the estimated motion vector is corrected in step ST403. Thereafter, in step ST106, the concealed image generation unit 28 generates an output image from the estimated motion vector calculated in step ST105 or the estimated motion vector corrected in step ST403, and pixel data of the reference surface based on the reference surface information. . If the concealment is OFF in step ST101, the concealed image generation unit 28 outputs an image composed of normally decoded pixel data without generating a concealed image in step ST106.

次に、詳細な処理について説明する。復号処理部1で復号エラーを検出してから、コンシール範囲を算出し、コンシール範囲を分割し、推定動きベクトルを算出するところまでは実施の形態1で説明した処理と同様であるため、その説明は省略する。   Next, detailed processing will be described. Since the decoding processing unit 1 detects the decoding error, calculates the concealed range, divides the concealed range, and calculates the estimated motion vector, it is the same as the processing described in the first embodiment, and therefore the description thereof. Is omitted.

推定動きベクトル評価部31は、推定動きベクトル算出部27dが各グループの推定動きベクトルを全て算出した後で、算出された推定動きベクトルの再評価を行い、補正が必要と判定された推定動きベクトルは補正して反映する。例えば、グループAの周囲のグループの動きベクトルの差を算出し、算出した差が閾値以内に収まっていれば、グループAは周囲と同様の動きをしていると判定し、グループAの推定動きベクトルを周囲のグループの推定動きベクトルから算出したものに補正する。算出方法は、周囲のグループの推定動きベクトルの平均値、最頻値(モード)、中央値(メジアン)など方式は問わない。また、任意の重み付けで加重平均してもよい。   The estimated motion vector evaluation unit 31 re-evaluates the calculated estimated motion vector after the estimated motion vector calculation unit 27d calculates all the estimated motion vectors of each group, and the estimated motion vector determined to be corrected. Is corrected and reflected. For example, a difference between motion vectors of groups around group A is calculated, and if the calculated difference is within a threshold, it is determined that group A is moving in the same manner as the surroundings, and the estimated motion of group A The vector is corrected to the one calculated from the estimated motion vectors of the surrounding groups. The calculation method may be any method such as an average value, mode value (mode), and median value (median) of estimated motion vectors of surrounding groups. Moreover, you may carry out a weighted average by arbitrary weighting.

以上のように、この発明の実施の形態4に係る復号装置および復号方法によれば、この発明の実施の形態1に係る復号装置および復号方法と同様に、エラーを検出したスライス全体をコンシール範囲とし、コンシール範囲内を複数のマクロブロックからなるグループに分割し、動きが込み入った場所はサブグループに細分化し、エラーピクチャと時間的に近い、正常に復号されたピクチャの同位置マクロブロックの動きベクトルからコンシール範囲内のグループ/サブグループごとに推定動きベクトルを算出して、推定動きベクトルに応じた位置の画素を参照面から取得することで補正画像を生成してエラーコンシールメント処理を行うようにしているので、映像内の動きを維持した違和感の少ないコンシール画像を得ることができる。   As described above, according to the decoding apparatus and decoding method according to Embodiment 4 of the present invention, as in the decoding apparatus and decoding method according to Embodiment 1 of the present invention, the entire slice from which an error has been detected is concealed. The concealed area is divided into groups consisting of a plurality of macroblocks, and the locations where the motion is complicated are subdivided into subgroups, and the motion of the co-located macroblocks in the normally decoded picture that is close in time to the error picture An estimated motion vector is calculated for each group / subgroup within the concealed range from the vector, and a pixel at a position corresponding to the estimated motion vector is acquired from the reference plane to generate a corrected image and perform error concealment processing. Therefore, it is possible to obtain a concealed image with less sense of incongruity while maintaining the movement in the video.

また、この発明の実施の形態4に係る復号装置および復号方法によれば、各グループの推定動きベクトルを全て算出した後で、推定動きベクトル評価部31により周囲のグループの推定動きベクトルと乖離していれば同調するよう補正するようにしたので、局部的に参照位置が異なるコンシール画像を生成することを防ぐことができる。   Further, according to the decoding apparatus and decoding method according to Embodiment 4 of the present invention, after all the estimated motion vectors of each group are calculated, the estimated motion vector evaluation unit 31 deviates from the estimated motion vectors of the surrounding groups. If so, correction is made so as to synchronize, so that it is possible to prevent generation of concealed images having different reference positions locally.

なお、この発明の実施の形態4に係る推定動きベクトル評価部31は、この発明の実施の形態2または3に係る復号装置および復号方法により得られた推定動きベクトルの評価に適用して追加の補正処理をしてもよいし、また、当初の推定動きベクトルをまず評価して補正してからこの発明の実施の形態2または3に係る復号装置および復号方法によって補正してもよい。このように補正された推定動きベクトルに基づいてコンシール画像を生成するようにしても構わない。   Note that the estimated motion vector evaluation unit 31 according to the fourth embodiment of the present invention is applied to the estimation of the estimated motion vector obtained by the decoding apparatus and the decoding method according to the second or third embodiment of the present invention and added. Correction processing may be performed, or the initial estimated motion vector may be first evaluated and corrected, and then corrected by the decoding apparatus and decoding method according to Embodiment 2 or 3 of the present invention. A concealed image may be generated based on the estimated motion vector corrected in this way.

実施の形態5.
図14はこの発明の実施の形態5に係るエラーコンシールメント処理部を搭載している復号装置を示す構成図である。
Embodiment 5 FIG.
FIG. 14 is a block diagram showing a decoding apparatus equipped with an error concealment processing unit according to Embodiment 5 of the present invention.

図において、復号装置は、復号処理部1とエラーコンシールメント処理部2eから構成される。復号処理部1は、この発明の実施の形態1において図1で説明した復号処理部1と同様の機能を有し、動作するものであるため、その説明は省略する。また、エラーコンシールメント処理部2eを構成するフレームメモリ21、符号化パラメータ蓄積部22、コンシール管理部23、コンシール範囲算出部24、分割パターン格納部25は、この発明の実施の形態1において図1で説明したエラーコンシールメント処理部2a内部構成に付した同一符号の構成要素と同様の機能を有し、動作するものであるため、その説明は省略する。よって、第1のコンシールメント処理実行部(第1のコンシール処理実行部)41a、第2のコンシールメント処理実行部(第2のコンシール処理実行部)41b、コンシール結果判定部42について説明する。   In the figure, the decoding device comprises a decoding processing unit 1 and an error concealment processing unit 2e. The decryption processing unit 1 has the same function and operates as the decryption processing unit 1 described in FIG. 1 in the first embodiment of the present invention, so that the description thereof is omitted. Further, the frame memory 21, the encoding parameter accumulation unit 22, the concealment management unit 23, the concealment range calculation unit 24, and the division pattern storage unit 25 that constitute the error concealment processing unit 2e are shown in FIG. Since it has the same function as the component of the same code | symbol attached | subjected to the internal structure of the error concealment process part 2a demonstrated in (2), it abbreviate | omits the description. Therefore, the 1st concealment process execution part (1st concealment process execution part) 41a, the 2nd concealment process execution part (2nd concealment process execution part) 41b, and the concealment result determination part 42 are demonstrated.

第1のコンシールメント処理実行部41a、第2のコンシールメント処理実行部41bは、コンシール範囲に対して、例えば実施の形態1から実施の形態4で説明した所定のコンシールメント処理方法のような異なるコンシールメント処理を行ってコンシール画像をそれぞれ出力する。コンシール結果判定部42は、第1のコンシールメント処理実行部41a、第2のコンシールメント処理実行部41bのコンシールメント結果を復号画像と比較して、最も差分の小さいコンシールメント処理方法でコンシール画像を生成する。   The first concealment processing execution unit 41a and the second concealment processing execution unit 41b are different from each other in the concealment range as in the predetermined concealment processing method described in the first to fourth embodiments, for example. A concealment process is performed and a concealed image is output. The concealment result determination unit 42 compares the concealment results of the first concealment processing execution unit 41a and the second concealment processing execution unit 41b with the decoded image, and determines the concealed image by the concealment processing method having the smallest difference. Generate.

次に、詳細な処理について説明する。復号処理部1で復号エラーを検出してから、コンシール範囲を算出し、コンシール範囲をグループおよびサブグループに分割するところまでは実施の形態1で説明した処理と同様であるため、その説明は省略する。   Next, detailed processing will be described. Since the decoding process unit 1 detects the decoding error, calculates the concealment range, and divides the concealment range into groups and subgroups, the process is the same as that described in the first embodiment. To do.

エラーコンシールメント処理部2eは複数のコンシールメント処理実行部(コンシール処理実行部)を備え、ここでは二つとするが、第1のコンシールメント処理実行部41a、第2のコンシールメント処理実行部41bは、実施の形態1から実施の形態4で説明した4つのコンシールメント処理方法のうち、2つの方法の一方により異なる第1、第2のコンシール画像を生成する。このとき、正常に復号できた1つまたは複数のスライスにも複数のコンシールメント処理方法を実行し、それぞれコンシール画像を得る。コンシール結果判定部42は、正常に復号できたスライスに適用した第1、第2のコンシール画像と対応する正常に復号できたスライスとを比較し、最も差分が少なかったコンシールメント処理方法をエラースライスに適用してコンシール画像を生成する。   The error concealment processing unit 2e includes a plurality of concealment processing execution units (concealment processing execution units). Here, there are two, but the first concealment processing execution unit 41a and the second concealment processing execution unit 41b are Of the four concealment processing methods described in the first to fourth embodiments, different first and second concealed images are generated by one of the two methods. At this time, a plurality of concealment processing methods are executed for one or a plurality of slices that have been successfully decoded, and a concealed image is obtained. The concealment result determination unit 42 compares the first and second concealed images applied to the successfully decoded slices with the corresponding successfully decoded slices, and determines the concealment processing method with the smallest difference as the error slice. To generate a concealed image.

図15は、この発明の実施の形態5に係る復号装置のコンシール画像の生成の一例の説明図である。   FIG. 15 is an explanatory diagram showing an example of generating a concealed image in the decoding apparatus according to Embodiment 5 of the present invention.

図において、ピクチャAは正常に復号できたピクチャ、ピクチャBは当初スライス2にエラーが含まれたピクチャ(B0とする)である。ここでは、ピクチャAを参照面として第1、第2のコンシールメント処理方法を適用してコンシールされたピクチャB1、B2を生成する。ピクチャBのエラーを含まないスライス1、3、4について、ピクチャB1、B2のスライス1、3、4とそれぞれ差分をとって比較評価する。ピクチャB0とB1の差分が、ピクチャB0とB2の差分より小さい場合、コンシールメント処理方法1を採用し、スライス2もコンシールメント処理方法1でコンシールして、最終的なコンシール画像とする。   In the figure, picture A is a picture that has been successfully decoded, and picture B is a picture (initially referred to as B0) in which an error is included in slice 2. Here, concealed pictures B1 and B2 are generated by applying the first and second concealment processing methods using picture A as a reference plane. For slices 1, 3, and 4 that do not contain an error in picture B, the evaluation is performed by comparing the slices 1, 3, and 4 in pictures B 1 and B 2 with differences. When the difference between the pictures B0 and B1 is smaller than the difference between the pictures B0 and B2, the concealment processing method 1 is adopted, and the slice 2 is also concealed by the concealment processing method 1 to obtain a final concealed image.

なお、ピクチャBのエラーを含まないスライス1、3、4について、ピクチャB1、B2のスライス1、3、4とそれぞれ差分をとって比較評価するものとして説明したが、ピクチャBのエラーを含まないスライスすべてを評価に使用せず、一部のスライスのみ使用するようにしてもよく、例えばエラーを含んだスライスに対して隣接する直後のスライスや直前のスライスの一方または両方で判定する。同様に、同一ピクチャ内で離れた複数のスライスにエラーを含むとき、各エラースライスをその前後のスライスで判定し、ピクチャ全体で同一のコンシールメント処理方法でコンシールしなくてもよい。また、複数のスライスを評価に使用する場合、エラースライスとの位置関係から重みを付けて評価値を算出して判定しても構わない。   The slices 1, 3, and 4 that do not include the error of the picture B have been described as being compared and evaluated with the slices 1, 3, and 4 of the pictures B1 and B2, respectively, but the error of the picture B is not included. All slices may not be used for evaluation, but only a part of slices may be used. For example, the determination is performed on one or both of the immediately adjacent slice and the immediately preceding slice adjacent to the slice containing the error. Similarly, when an error is included in a plurality of slices separated in the same picture, each error slice may be determined by the preceding and succeeding slices, and the entire picture may not be concealed by the same concealment processing method. When a plurality of slices are used for evaluation, evaluation may be performed by calculating an evaluation value with weighting based on the positional relationship with the error slice.

ここでは、この発明の実施の形態5に係る復号装置が二つのコンシールメント処理実行部を備えるものとして説明したが、三つ以上備えてコンシール画像を生成するようにしても構わない。なお、例えば、コンシールメント処理実行部がこの発明の実施の形態3を適用するとき、符号化パラメータ蓄積部22からコンシールメント処理実行部内部に想定されるシーンチェンジ検出部30へ省略されている結線を適宜追加するものとする。   Here, the decoding apparatus according to Embodiment 5 of the present invention has been described as including two concealment processing execution units. However, three or more concealment processing execution units may be provided to generate a concealed image. For example, when the concealment processing execution unit applies the third embodiment of the present invention, the connection omitted from the encoding parameter storage unit 22 to the scene change detection unit 30 assumed inside the concealment processing execution unit. Shall be added as appropriate.

また、複数のコンシールメント処理実行部を備えることで、この発明の実施の形態1から実施の形態4の各コンシールメント処理実行部の共通要素を共用する構成を、例えば図14に示したが、冗長になってもコンシールメント処理実行部ごとに独立して備えるようにしても構わない。また、コンシールメント処理実行部には、この発明の実施の形態1から実施の形態4のコンシールメント処理方法の中から採用するだけでなく、その他のコンシールメント処理方法を適用しても構わない。   Moreover, although the structure which shares the common element of each concealment process execution part of Embodiment 1 to Embodiment 4 of this invention by having a several concealment process execution part was shown, for example in FIG. Even if it becomes redundant, each concealment processing execution unit may be provided independently. In addition, the concealment processing execution unit may employ other concealment processing methods as well as the concealment processing methods according to the first to fourth embodiments of the present invention.

以上のように、この発明の実施の形態5に係る復号装置および復号方法によれば、正常に復号できたスライスに対して複数のコンシールメント処理方法を実行し、正常に復号された画像との差分を算出して最も差分の小さいコンシールメント処理方法を採用してコンシール画像を生成するようにしたので、現在の画像のコンシールに最も適したコンシールメント処理方法を選択してコンシール画像を生成することができる。   As described above, according to the decoding device and the decoding method according to Embodiment 5 of the present invention, a plurality of concealment processing methods are executed on a slice that has been successfully decoded, and Since the concealment processing method having the smallest difference is calculated and the concealment image is generated, the concealment processing method most suitable for the concealment of the current image is selected and the concealment image is generated. Can do.

このように、この発明の実施の形態に係る復号装置および復号方法によれば、エラーを検出したスライス全体をコンシール範囲とし、コンシール範囲内を複数のマクロブロックからなるグループに分割し、動きが込み入った場所はサブグループに細分化し、エラーピクチャと時間的に近い、正常に復号されたピクチャの同位置マクロブロックの動きベクトルからコンシール範囲内のグループ/サブグループごとに推定動きベクトルを算出して、推定動きベクトルに応じた位置の画素を参照面から取得することで補正画像を生成してエラーコンシールメント処理を行うようにしているので、映像内の動きを維持した違和感の少ないコンシール画像を得ることができる。   As described above, according to the decoding apparatus and the decoding method according to the embodiment of the present invention, the entire slice in which an error is detected is set as a concealed range, and the concealed range is divided into groups of a plurality of macroblocks, and motion is complicated The sub-group is subdivided into sub-groups, and the estimated motion vector is calculated for each group / sub-group within the concealed range from the motion vector of the co-located macroblock of the successfully decoded picture that is temporally close to the error picture, Since the error concealment process is performed by generating the corrected image by acquiring the pixel at the position according to the estimated motion vector from the reference plane, it is possible to obtain a concealed image with less discomfort while maintaining the motion in the video Can do.

なお、この発明の実施の形態における復号装置を復号処理部とエラーコンシールメント処理部に相当する装置として構成してもよい。例えば、図1に示したこの発明の実施の形態1に係る復号装置の一例を示す構成図における、符号化データを復号処理して復号後の画素データ、符号化パラメータおよび復号エラー情報を出力する復号処理部1が復号処理装置として提供される場合には、この復号処理装置が出力する画素データ、符号化パラメータ、復号エラー情報を入力として、正常な復号が行われたときにはその復号画像を出力し、エラーが発生したときにはこれらの入力を基に復号エラーにより乱れた映像を補正したコンシール画像を生成して出力するエラーコンシールメント処理部2aをエラーコンシールメント処理装置として単独構成で提供することもできる。   Note that the decoding device according to the embodiment of the present invention may be configured as a device corresponding to a decoding processing unit and an error concealment processing unit. For example, in the block diagram showing an example of the decoding apparatus according to Embodiment 1 of the present invention shown in FIG. 1, the encoded data is decoded and the decoded pixel data, the encoding parameter, and the decoding error information are output. When the decoding processing unit 1 is provided as a decoding processing device, the pixel data, the encoding parameter, and the decoding error information output from the decoding processing device are input, and the decoded image is output when normal decoding is performed. If an error occurs, the error concealment processing unit 2a that generates and outputs a concealed image obtained by correcting a video distorted by a decoding error based on these inputs may be provided as an error concealment processing device in a single configuration. it can.

1 復号処理部、2a、2b、2c、2d、2e エラーコンシールメント処理部、21 フレームメモリ、22 符号化パラメータ蓄積部、23 コンシール管理部、24 コンシール範囲算出部、25 分割パターン格納部、26 コンシール範囲分割部、27a、27b、27c、27d 推定動きベクトル算出部、28 コンシール画像生成部、29 画面外参照推定動きベクトル検出部、30 シーンチェンジ検出部、31 推定動きベクトル評価部、41a 第1のコンシールメント処理実行部(第1のコンシール処理実行部)、41b 第2コンシールメント処理実行部(第2コンシール処理実行部)、42 コンシール結果判定部。 DESCRIPTION OF SYMBOLS 1 Decoding processing part, 2a, 2b, 2c, 2d, 2e Error concealment processing part, 21 Frame memory, 22 Encoding parameter storage part, 23 Conceal management part, 24 Conceal range calculation part, 25 Division pattern storage part, 26 Conceal Range dividing unit, 27a, 27b, 27c, 27d Estimated motion vector calculating unit, 28 Concealed image generating unit, 29 Out-of-screen reference estimated motion vector detecting unit, 30 Scene change detecting unit, 31 Estimated motion vector evaluating unit, 41a First A concealment process execution part (first concealment process execution part), 41b a second concealment process execution part (second concealment process execution part), 42 a concealment result determination part.

Claims (11)

符号化データを復号処理し、復号後の画素データ、符号化パラメータおよび復号エラー情報を出力する復号処理部と、
前記復号処理部が出力した画素データをピクチャ単位で蓄積するフレームメモリと、
前記符号化パラメータをピクチャ単位で蓄積する符号化パラメータ蓄積部と、
前記復号エラー情報を基に、ピクチャ毎にコンシールメント処理のON/OFFを判定するコンシール管理部と、
前記コンシールメント処理のON/OFF判定結果がONのとき、コンシール範囲を算出するコンシール範囲算出部と、
前記コンシール範囲を分割した分割グループを細分化したサブグループを設定した複数種類のサブグループ細分化パターンを格納する分割パターン格納部と、
前記コンシール範囲を前記分割グループに分割し、さらに前記複数のサブグループ細分化パターンを基に、前記サブグループに分割するコンシール範囲分割部と、
前記コンシール範囲内の分割グループ/サブグループごとに分割グループ/サブグループを代表する推定動きベクトルを算出する推定動きベクトル算出部と、
前記コンシールメント処理のON/OFF判定結果がONのとき、前記推定動きベクトルと前記フレームメモリに蓄積されている画素データからコンシール画像を生成するコンシール画像生成部と
を備えた復号装置。
A decoding processing unit that decodes the encoded data and outputs pixel data after decoding, encoding parameters, and decoding error information;
A frame memory for storing pixel data output by the decoding processing unit in units of pictures;
An encoding parameter storage unit for storing the encoding parameter in units of pictures;
Based on the decoding error information, a concealment management unit that determines ON / OFF of concealment processing for each picture;
A concealment range calculation unit for calculating a concealment range when the ON / OFF determination result of the concealment process is ON;
A divided pattern storage unit for storing a plurality of types of subgroup subdivision patterns in which subgroups obtained by subdividing the subgroups obtained by dividing the conceal range are set;
Dividing the concealed range into the divided groups, and further dividing the concealed range into the subgroups based on the plurality of subgroup subdivision patterns; and
An estimated motion vector calculating unit that calculates an estimated motion vector representing the divided group / subgroup for each divided group / subgroup within the concealed range;
A decoding apparatus comprising: a concealed image generation unit configured to generate a concealed image from the estimated motion vector and pixel data stored in the frame memory when an ON / OFF determination result of the concealment process is ON.
前記推定動きベクトル算出部が算出した推定動きベクトルが画面外を参照しているか否かを検出する画面外参照推定動きベクトル検出部
を備え、
前記推定動きベクトル算出部は、前記推定動きベクトルが画面外を参照しているとき、前記推定動きベクトルを補正する
ことを特徴とする請求項1記載の復号装置。
An estimated out-of-screen reference motion vector detection unit that detects whether or not the estimated motion vector calculated by the estimated motion vector calculation unit refers to outside the screen;
The decoding apparatus according to claim 1, wherein the estimated motion vector calculation unit corrects the estimated motion vector when the estimated motion vector refers to an outside of the screen.
前記符号化データの復号処理でシーンチェンジの発生有無を検出するシーンチェンジ検出部
を備え、
前記推定動きベクトル算出部は、前記推定動きベクトルが画面外を参照しているとき、前記シーンチェンジの発生有無に基づいて前記推定動きベクトルの補正処理を行う
ことを特徴とする請求項2記載の復号装置。
A scene change detection unit that detects whether or not a scene change has occurred in the decoding process of the encoded data;
The said estimated motion vector calculation part performs the correction process of the said estimated motion vector based on the presence or absence of generation | occurrence | production of the said scene change, when the said estimated motion vector is referring the outside of a screen. Decoding device.
前記推定動きベクトル算出部が算出した推定動きベクトルについて、各分割グループの推定動きベクトルとその周囲の分割グループの推定動きベクトルを評価することにより補正要否を判定する推定動きベクトル評価部と、
前記推定動きベクトル算出部は、前記補正要否の判定結果に基づいて、推定動きベクトルを補正する
ことを特徴とする請求項1記載の復号装置。
An estimated motion vector evaluation unit that determines the necessity of correction by evaluating an estimated motion vector of each divided group and an estimated motion vector of a surrounding divided group for the estimated motion vector calculated by the estimated motion vector calculation unit;
The decoding apparatus according to claim 1, wherein the estimated motion vector calculation unit corrects the estimated motion vector based on the determination result of the necessity of correction.
符号化データを復号処理し、復号後の画素データ、符号化パラメータおよび復号エラー情報を出力する復号処理部と、
前記復号処理部が出力した画素データをピクチャ単位で蓄積するフレームメモリと、
前記符号化パラメータをピクチャ単位で蓄積する符号化パラメータ蓄積部と、
前記復号エラー情報を基に、ピクチャ毎にコンシールメント処理のON/OFFを判定するコンシール管理部と、
前記コンシールメント処理のON/OFF判定結果がONのとき、コンシール範囲を算出するコンシール範囲算出部と、
前記コンシール範囲を前記分割グループに分割し、前記分割グループを細分化したサブグループを設定した複数のサブグループ細分化パターンを基に、前記分割グループを前記サブグループに分割するコンシール範囲分割部と、
コンシール画像を異なるコンシールメント処理で生成する複数のコンシール処理実行部と、
前記コンシールメント処理のON/OFF判定結果がONのとき、前記コンシール範囲以外の正常に復号された復号範囲と該復号範囲に対応する前記複数のコンシール処理実行部が前記異なるコンシールメント処理を適用した各復号範囲を比較し、最も差分が少なかったコンシールメント処理を正常に復号されなかった復号範囲に適用してコンシール画像を生成するコンシール結果判定部と
を備えた復号装置。
A decoding processing unit that decodes the encoded data and outputs pixel data after decoding, encoding parameters, and decoding error information;
A frame memory for storing pixel data output by the decoding processing unit in units of pictures;
An encoding parameter storage unit for storing the encoding parameter in units of pictures;
Based on the decoding error information, a concealment management unit that determines ON / OFF of concealment processing for each picture;
A concealment range calculation unit for calculating a concealment range when the ON / OFF determination result of the concealment process is ON;
A conceal range dividing unit that divides the divided group into the subgroups based on a plurality of subgroup subdivision patterns that divide the concealed range into the divided groups and set subgroups obtained by subdividing the divided groups;
A plurality of concealment processing execution units that generate concealment images by different concealment processes;
When the ON / OFF determination result of the concealment process is ON, the decoding range that is normally decoded other than the concealment range and the plurality of concealment processing execution units corresponding to the decoding range applied the different concealment processing. A decoding apparatus comprising: a concealment result determination unit that compares the respective decoding ranges and applies a concealment process having the smallest difference to a decoding range that has not been normally decoded to generate a concealed image.
符号化データを復号処理し、復号後の画素データ、符号化パラメータおよび復号エラー情報を出力する復号処理装置に接続されたエラーコンシールメント処理装置であって、
前記画素データをピクチャ単位で蓄積するフレームメモリと、
前記符号化パラメータをピクチャ単位で蓄積する符号化パラメータ蓄積部と、
前記復号エラー情報を基に、ピクチャ毎にコンシールメント処理のON/OFFを判定するコンシール管理部と、
前記コンシールメント処理のON/OFF判定結果がONのとき、コンシール範囲を算出するコンシール範囲算出部と、
前記コンシール範囲を分割した分割グループを細分化したサブグループを設定した複数種類のサブグループ細分化パターンを格納する分割パターン格納部と、
前記コンシール範囲を前記分割グループに分割し、さらに前記複数のサブグループ細分化パターンを基に、前記サブグループに分割するコンシール範囲分割部と、
前記コンシール範囲内の分割グループ/サブグループごとに分割グループ/サブグループを代表する推定動きベクトルを算出する推定動きベクトル算出部と、
前記コンシールメント処理のON/OFF判定結果がONのとき、前記推定動きベクトルと前記フレームメモリに蓄積されている画素データからコンシール画像を生成するコンシール画像生成部と
を備えたエラーコンシールメント処理装置。
An error concealment processing device connected to a decoding processing device that decodes encoded data and outputs decoded pixel data, encoding parameters, and decoding error information,
A frame memory for storing the pixel data in units of pictures;
An encoding parameter storage unit for storing the encoding parameter in units of pictures;
Based on the decoding error information, a concealment management unit that determines ON / OFF of concealment processing for each picture;
A concealment range calculation unit for calculating a concealment range when the ON / OFF determination result of the concealment process is ON;
A divided pattern storage unit for storing a plurality of types of subgroup subdivision patterns in which subgroups obtained by subdividing the subgroups obtained by dividing the conceal range are set;
Dividing the concealed range into the divided groups, and further dividing the concealed range into the subgroups based on the plurality of subgroup subdivision patterns; and
An estimated motion vector calculating unit that calculates an estimated motion vector representing the divided group / subgroup for each divided group / subgroup within the concealed range;
An error concealment processing apparatus comprising: a concealed image generation unit configured to generate a concealed image from the estimated motion vector and the pixel data stored in the frame memory when an ON / OFF determination result of the concealment process is ON.
符号化データを復号処理し、復号後の画素データ、符号化パラメータおよび復号エラー情報を出力するステップと、
前記画素データをピクチャ単位で記憶手段に蓄積するステップと、
前記符号化パラメータをピクチャ単位で記憶手段に蓄積するステップと、
前記復号エラー情報を基に、ピクチャ毎にコンシールメント処理のON/OFFを判定するステップと、
前記コンシールメント処理のON/OFF判定結果がONのとき、コンシール範囲を算出するステップと、
前記コンシール範囲を前記分割グループに分割し、前記分割グループを細分化したサブグループを設定した複数のサブグループ細分化パターンを基に、前記分割グループを前記サブグループに分割するステップと、
前記コンシール範囲内の分割グループ/サブグループごとに分割グループ/サブグループを代表する推定動きベクトルを算出するステップと、
前記コンシールメント処理のON/OFF判定結果がONのとき、前記推定動きベクトルと前記記憶手段に蓄積されている画素データからコンシール画像を生成するステップと
を有する復号方法。
Decoding encoded data, outputting decoded pixel data, encoding parameters, and decoding error information;
Storing the pixel data in a storage means in units of pictures;
Accumulating the encoding parameters in a storage unit in units of pictures;
Determining concealment ON / OFF for each picture based on the decoding error information;
Calculating a concealment range when an ON / OFF determination result of the concealment process is ON;
Dividing the concealed range into the divided groups, and dividing the divided groups into the subgroups based on a plurality of subgroup subdivision patterns in which subgroups obtained by subdividing the divided groups are set;
Calculating an estimated motion vector representing a split group / subgroup for each split group / subgroup within the concealed range;
A decoding method comprising: generating a concealed image from the estimated motion vector and pixel data stored in the storage means when an ON / OFF determination result of the concealment process is ON.
前記推定動きベクトルを算出するステップで算出された推定動きベクトルが画面外を参照しているか否かを検出するステップと、
前記推定動きベクトルが画面外を参照しているとき、前記推定動きベクトルを補正するステップと
を有する請求項7記載の復号方法。
Detecting whether the estimated motion vector calculated in the step of calculating the estimated motion vector refers to the outside of the screen;
The decoding method according to claim 7, further comprising a step of correcting the estimated motion vector when the estimated motion vector refers to outside the screen.
前記符号化データの復号処理でシーンチェンジの発生有無を検出するステップ
を有し、
前記推定動きベクトルを補正するステップは、前記推定動きベクトルが画面外を参照しているとき、前記シーンチェンジの発生有無に基づいて前記推定動きベクトルの補正処理を行う
ことを特徴とする請求項8記載の復号方法。
Detecting the presence or absence of a scene change in the decoding process of the encoded data,
9. The step of correcting the estimated motion vector performs correction processing of the estimated motion vector based on whether or not the scene change has occurred when the estimated motion vector refers to outside the screen. Decoding method as described.
前記推定動きベクトルを算出するステップで算出された推定動きベクトルについて、各分割グループの推定動きベクトルとその周囲の分割グループの推定動きベクトルを評価することにより補正要否を判定するステップと、
前記補正要否の判定結果に基づいて、前記推定動きベクトルを補正するステップ
を有することを特徴とする請求項7記載の復号方法。
For the estimated motion vector calculated in the step of calculating the estimated motion vector, determining the necessity of correction by evaluating the estimated motion vector of each divided group and the estimated motion vector of the surrounding divided groups;
8. The decoding method according to claim 7, further comprising a step of correcting the estimated motion vector based on the determination result of whether or not correction is necessary.
符号化データを復号処理し、復号後の画素データ、符号化パラメータおよび復号エラー情報を出力するステップと、
前記画素データをピクチャ単位で記憶手段に蓄積するステップと、
前記符号化パラメータをピクチャ単位で記憶手段に蓄積するステップと、
前記復号エラー情報を基に、ピクチャ毎にコンシールメント処理のON/OFFを判定するステップと、
前記コンシールメント処理のON/OFF判定結果がONのとき、コンシール範囲を算出するステップと、
前記コンシール範囲を前記分割グループに分割し、前記分割グループを細分化したサブグループを設定した複数のサブグループ細分化パターンを基に、前記分割グループを前記サブグループに分割するステップと、
コンシール画像を異なるコンシールメント処理で生成する複数のコンシールメント処理を実行するステップと、
前記コンシールメント処理のON/OFF判定結果がONのとき、前記コンシール範囲以外の正常に復号された復号範囲と該復号範囲に対応する前記複数のコンシールメント処理を実行するステップが前記異なるコンシールメント処理を適用した各復号範囲を比較し、最も差分が少なかったコンシールメント処理を正常に復号されなかったエラー復号範囲に適用してコンシール画像を生成するステップと
を有する復号方法。
Decoding encoded data, outputting decoded pixel data, encoding parameters, and decoding error information;
Storing the pixel data in a storage means in units of pictures;
Accumulating the encoding parameters in a storage unit in units of pictures;
Determining concealment ON / OFF for each picture based on the decoding error information;
Calculating a concealment range when an ON / OFF determination result of the concealment process is ON;
Dividing the concealed range into the divided groups, and dividing the divided groups into the subgroups based on a plurality of subgroup subdivision patterns in which subgroups obtained by subdividing the divided groups are set;
Performing a plurality of concealment processes for generating a concealment image with different concealment processes;
When the ON / OFF determination result of the concealment process is ON, the step of executing the plurality of concealment processes corresponding to the decoded range other than the concealed range and the decoded range is the different concealment process And a step of generating a concealed image by comparing concealment processing with the smallest difference to an error decoding range that has not been normally decoded.
JP2012163513A 2012-07-24 2012-07-24 Decoding device, error concealment processing device, and decoding method Expired - Fee Related JP5811061B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012163513A JP5811061B2 (en) 2012-07-24 2012-07-24 Decoding device, error concealment processing device, and decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012163513A JP5811061B2 (en) 2012-07-24 2012-07-24 Decoding device, error concealment processing device, and decoding method

Publications (2)

Publication Number Publication Date
JP2014023138A true JP2014023138A (en) 2014-02-03
JP5811061B2 JP5811061B2 (en) 2015-11-11

Family

ID=50197515

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012163513A Expired - Fee Related JP5811061B2 (en) 2012-07-24 2012-07-24 Decoding device, error concealment processing device, and decoding method

Country Status (1)

Country Link
JP (1) JP5811061B2 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0799651A (en) * 1993-09-28 1995-04-11 Canon Inc Image signal reproducing device
JPH09154142A (en) * 1995-11-29 1997-06-10 Sanyo Electric Co Ltd Error processing unit
JPH09182076A (en) * 1995-12-22 1997-07-11 Mitsubishi Electric Corp Digital image encoding device and method therefor
JP2006203598A (en) * 2005-01-21 2006-08-03 Pioneer Electronic Corp Digital image decoder and decoding method
JP2007325206A (en) * 2006-06-05 2007-12-13 Mitsubishi Electric Corp Apparatus and method for decoding motion picture
JP2008187446A (en) * 2007-01-30 2008-08-14 Canon Inc Decoding error correction method and device
JP2008545297A (en) * 2005-05-11 2008-12-11 クゥアルコム・インコーポレイテッド Method and apparatus for unified error concealment framework
JP2009118221A (en) * 2007-11-07 2009-05-28 Toshiba Corp Digital image decoder and digital image decoding method
JP2012105178A (en) * 2010-11-12 2012-05-31 Mitsubishi Electric Corp Error concealment device and decoder
JP2012105179A (en) * 2010-11-12 2012-05-31 Mitsubishi Electric Corp Image decoder

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0799651A (en) * 1993-09-28 1995-04-11 Canon Inc Image signal reproducing device
JPH09154142A (en) * 1995-11-29 1997-06-10 Sanyo Electric Co Ltd Error processing unit
JPH09182076A (en) * 1995-12-22 1997-07-11 Mitsubishi Electric Corp Digital image encoding device and method therefor
JP2006203598A (en) * 2005-01-21 2006-08-03 Pioneer Electronic Corp Digital image decoder and decoding method
JP2008545297A (en) * 2005-05-11 2008-12-11 クゥアルコム・インコーポレイテッド Method and apparatus for unified error concealment framework
JP2007325206A (en) * 2006-06-05 2007-12-13 Mitsubishi Electric Corp Apparatus and method for decoding motion picture
JP2008187446A (en) * 2007-01-30 2008-08-14 Canon Inc Decoding error correction method and device
JP2009118221A (en) * 2007-11-07 2009-05-28 Toshiba Corp Digital image decoder and digital image decoding method
JP2012105178A (en) * 2010-11-12 2012-05-31 Mitsubishi Electric Corp Error concealment device and decoder
JP2012105179A (en) * 2010-11-12 2012-05-31 Mitsubishi Electric Corp Image decoder

Also Published As

Publication number Publication date
JP5811061B2 (en) 2015-11-11

Similar Documents

Publication Publication Date Title
US8139647B2 (en) Moving image decoding apparatus and moving image decoding method
JP5918328B2 (en) Image encoding method and image decoding method
JP4724061B2 (en) Video encoding device
JP5766877B2 (en) Frame coding selection based on similarity, visual quality, and interest
JP2007060164A (en) Apparatus and method for detecting motion vector
JP4236654B2 (en) Video encoding apparatus and method
JP2014521272A5 (en)
Liu et al. H. 264/AVC video error concealment algorithm by employing motion vector recovery under cloud computing environment
US20140254938A1 (en) Methods and apparatus for an artifact detection scheme based on image content
JP2009284331A (en) Decoding device and decoding method, and program
JP2011250400A (en) Moving picture encoding apparatus and moving picture encoding method
JP2006203598A (en) Digital image decoder and decoding method
JP5811061B2 (en) Decoding device, error concealment processing device, and decoding method
US20040141555A1 (en) Method of motion vector prediction and system thereof
JP4469904B2 (en) Moving picture decoding apparatus, moving picture decoding method, and storage medium storing moving picture decoding program
JP2008263391A (en) Video processing apparatus
JP5701018B2 (en) Image decoding device
CN104918052B (en) Method and video encoder for error tracking and mitigation for video compression
JP2009044456A (en) Image encoding device, and image encoding method
CN110839157B (en) Image processing method and device
CN112437312B (en) Video decoding method, encoding method, device, equipment and storage medium
JP4573297B2 (en) Moving object extraction device
CN115086665A (en) Error code masking method, device, system, storage medium and computer equipment
US10038901B2 (en) Image encoding method and image encoding apparatus
JP5173946B2 (en) Encoding preprocessing device, encoding device, decoding device, and program

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20140327

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140930

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150511

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150519

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150707

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150831

R151 Written notification of patent or utility model registration

Ref document number: 5811061

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees