JP2009278512A - Moving image decoding apparatus - Google Patents

Moving image decoding apparatus Download PDF

Info

Publication number
JP2009278512A
JP2009278512A JP2008129446A JP2008129446A JP2009278512A JP 2009278512 A JP2009278512 A JP 2009278512A JP 2008129446 A JP2008129446 A JP 2008129446A JP 2008129446 A JP2008129446 A JP 2008129446A JP 2009278512 A JP2009278512 A JP 2009278512A
Authority
JP
Japan
Prior art keywords
image
decoded
image size
information
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2008129446A
Other languages
Japanese (ja)
Inventor
Kenji Otoi
研二 乙井
Etsuhisa Yamada
悦久 山田
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 JP2008129446A priority Critical patent/JP2009278512A/en
Publication of JP2009278512A publication Critical patent/JP2009278512A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To obtain a moving image decoding apparatus preventing a collapsed image from being displayed, even when image size information is not appropriately reported, under the situation where encoded data of moving images in different image sizes may be received in the middle of moving images. <P>SOLUTION: The moving image decoding apparatus includes an image size determination section 9 for discriminating whether or not the number of decoded macro blocks at a point of time, when one frame of a video stream is decoded by a variable length decoder 1, corresponds to an image size indicated by image size information, and for storing an alternative image in a display memory 8 in place of a decoded image generated by an adder 5 if they do not correspond to each other. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

この発明は、ディジタル圧縮符号化されている動画像の符号化データを復号して、復号画像を生成する際に、動画像の画像サイズが断続的に切り替わっても対処することが可能な動画像復号装置に関するものである。   In the present invention, when decoding encoded data of a moving image that has been digitally compressed and encoded to generate a decoded image, a moving image that can cope with the intermittent switching of the image size of the moving image The present invention relates to a decoding device.

現在、ディジタル放送(衛星、地上波、ケーブル)やインターネットなどを利用して、動画像を配信する放送・通信のシステムでは、「MPEG」や「ITU−T H.26x」などの国際標準映像符号化方式が活用されている。
このような放送・通信のシステムでは、送信側においては、一つのチャンネル内でも、画像サイズの異なる番組の切り替わりなどで、画像サイズが動画像の途中で変更されることがある。
また、受信側においては、複数の異なるチャンネル間の切り替えが行われることにより、動画像の途中で、画像サイズが異なる動画像の符号化データを受信してしまうことがある。
Currently, in broadcasting / communication systems that distribute moving images using digital broadcasting (satellite, terrestrial, cable) or the Internet, international standard video codes such as “MPEG” and “ITU-T H.26x” are used. Is used.
In such a broadcasting / communication system, on the transmission side, the image size may be changed in the middle of a moving image due to switching of programs having different image sizes, even within one channel.
Also, on the receiving side, switching between a plurality of different channels may result in receiving encoded data of moving images having different image sizes in the middle of the moving image.

動画像の画像サイズが変更される際には、送信側の符号化装置から画像サイズ情報(画像サイズの変更情報)が受信側の復号装置に通知され、受信側の復号装置が画像サイズ情報を受信することで、適切な画像サイズで復号処理を行うことができる。
しかし、画像サイズ情報が適切に受信側の復号装置に通知されない状況が発生すると、復号装置では、画像サイズが適切に変更されず、変更前の画像サイズで復号処理を行うことになる。
この場合、復号装置による復号画像は、画面位置がずれてしまうため、崩れた画像になる。
When the image size of a moving image is changed, image size information (image size change information) is notified from the transmitting side encoding device to the receiving side decoding device, and the receiving side decoding device receives the image size information. By receiving, decoding processing can be performed with an appropriate image size.
However, when a situation occurs in which the image size information is not properly notified to the decoding device on the receiving side, the decoding device does not appropriately change the image size, and performs the decoding process with the image size before the change.
In this case, the decoded image by the decoding device is a corrupted image because the screen position is shifted.

以下の特許文献1では、符号化装置側で画像サイズの変更を適切に処理する工夫を開示している。
これにより、画像サイズの異なる番組の切り替わりなどで、画像サイズが動画像の途中で変更される状況下でも、崩れた復号画像の表示を防止することができるが、受信側で、チャンネルが切り替えられる状況の発生には対処することができない。
The following Patent Document 1 discloses a device for appropriately processing an image size change on the encoding device side.
As a result, even when the image size is changed in the middle of a moving image due to switching of programs with different image sizes, it is possible to prevent the display of a corrupted decoded image, but the channel can be switched on the receiving side. The situation cannot be dealt with.

特開平11−196412号公報(段落番号[0007]、図1)JP-A-11-96412 (paragraph number [0007], FIG. 1)

従来の動画像復号装置は以上のように構成されているので、受信側において、複数の異なるチャンネル間の切り替えが行われることにより、動画像の途中で、画像サイズが異なる動画像の符号化データを受信してしまう状況下で、画像サイズ情報が適切に受信側に通知されない場合には、画面位置がずれてしまうため、復号画像が崩れた画像になることがあるなどの課題があった。   Since the conventional moving image decoding apparatus is configured as described above, encoded data of moving images having different image sizes in the middle of moving images by switching between different channels on the receiving side. When the image size information is not properly notified to the receiving side in a situation where the received image is received, the screen position is shifted, and thus there is a problem that the decoded image may be corrupted.

この発明は上記のような課題を解決するためになされたもので、動画像の途中で、画像サイズが異なる動画像の符号化データを受信してしまう状況下で、画像サイズ情報が適切に通知されない場合でも、崩れた画像の表示を防止することができる動画像復号装置を得ることを目的とする。   The present invention has been made to solve the above-described problems, and appropriately notifies image size information in a situation where encoded data of a moving image having a different image size is received in the middle of the moving image. An object of the present invention is to obtain a moving picture decoding apparatus capable of preventing display of a corrupted image even when it is not performed.

この発明に係る動画像復号装置は、復号処理手段により符号化データの1フレームが復号された時点の復号マクロブロック数と画像サイズ情報が示す画像サイズの対応関係が一致しているか否かを判別し、対応関係が一致していなければ、復号画像生成手段により生成される復号画像の代わりに、代替画像を表示メモリに格納する対応関係判別手段を設けるようにしたものである。   The moving picture decoding apparatus according to the present invention determines whether or not the correspondence relationship between the number of decoded macroblocks at the time when one frame of encoded data is decoded by the decoding processing means and the image size indicated by the image size information is the same. If the correspondence does not match, a correspondence determining means for storing the substitute image in the display memory is provided instead of the decoded image generated by the decoded image generating means.

この発明によれば、復号処理手段により符号化データの1フレームが復号された時点の復号マクロブロック数と画像サイズ情報が示す画像サイズの対応関係が一致しているか否かを判別し、対応関係が一致していなければ、復号画像生成手段により生成される復号画像の代わりに、代替画像を表示メモリに格納する対応関係判別手段を設けるように構成したので、動画像の途中で、画像サイズが異なる動画像の符号化データを受信してしまう状況下で、画像サイズ情報が適切に通知されない場合でも、崩れた画像の表示を防止することができる効果がある。   According to the present invention, it is determined whether or not the correspondence between the number of decoded macroblocks at the time when one frame of the encoded data is decoded by the decoding processing means and the image size indicated by the image size information match, If there is no match, the correspondence relationship determining means for storing the substitute image in the display memory is provided instead of the decoded image generated by the decoded image generating means. Even in a situation where encoded data of different moving images is received, even when image size information is not properly notified, there is an effect that display of a corrupted image can be prevented.

実施の形態1.
図1はこの発明の実施の形態1による動画像復号装置を示す構成図であり、図において、可変長復号部1はディジタル放送(衛星、地上波、ケーブル)やインターネットなどを利用して、MPEGなどの映像符号化方式で圧縮されたビデオストリーム(動画像の符号化データ)を受信すると、そのビデオストリームのフレームをマクロブロック単位に復号処理を実施することにより、予測残差情報(例えば、MPEG4では、量子化されたDCT(Discrete Cosine Transformation)係数が該当する)や動きベクトルなどの情報を抽出する処理を実施する。
また、可変長復号部1はビデオストリームの1フレーム分の復号が完了した時点の復号マクロブロック数を出力する処理を実施する。
なお、可変長復号部1は復号処理手段を構成している。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a moving picture decoding apparatus according to Embodiment 1 of the present invention. In the figure, a variable-length decoding unit 1 uses MPEG (satellite, terrestrial wave, cable), the Internet, etc. When a video stream (moving image encoded data) compressed by a video encoding method such as the above is received, a decoding process is performed on a frame of the video stream in units of macroblocks, thereby predicting residual information (for example, MPEG4). Then, a process of extracting information such as a quantized DCT (Discrete Cosine Transformation) coefficient and a motion vector is performed.
Further, the variable length decoding unit 1 performs a process of outputting the number of decoded macroblocks when the decoding of one frame of the video stream is completed.
The variable length decoding unit 1 constitutes decoding processing means.

マクロブロック位置指定部2は例えば送信側の符号化装置から動画像の画像サイズを示す画像サイズ情報を受信し、その画像サイズ情報にしたがって処理対象のマクロブロックの位置を示すマクロブロック位置情報をラインバッファ6、フレームメモリ7及び表示メモリ8に出力する処理を実施する。
図1の例では、画像サイズ情報が例えばRTSP(Realtime Streaming Protocol)などを用いて、ビデオストリームと別の経路で送信されてくるものを想定しているが、画像サイズ情報がビデオストリームに重畳されている場合には、可変長復号部1がビデオストリームに重畳されている画像サイズ情報を復号して、その画像サイズ情報をマクロブロック位置指定部2及び画像サイズ判定部9に出力するようにしてもよい。
The macroblock position specifying unit 2 receives, for example, image size information indicating the image size of the moving image from the encoding device on the transmission side, and outputs macroblock position information indicating the position of the macroblock to be processed according to the image size information. Processing to output to the buffer 6, the frame memory 7 and the display memory 8 is performed.
In the example of FIG. 1, it is assumed that the image size information is transmitted through a different route from the video stream using, for example, RTSP (Realtime Streaming Protocol), but the image size information is superimposed on the video stream. If so, the variable length decoding unit 1 decodes the image size information superimposed on the video stream, and outputs the image size information to the macroblock position designation unit 2 and the image size determination unit 9. Also good.

予測残差計算部3は可変長復号部1から出力された予測残差情報とラインバッファ6に格納されている処理中のフレームにおける過去の予測残差マクロブロックの情報から、現在処理中のマクロブロックの予測残差マクロブロックを計算する処理を実施する。
例えば、MPEG−4では、過去の予測残差マクロブロックの情報として、ラスタスキャン順でみて、現在処理中のマクロブロックの上側と左側に位置しているマクロブロックのDCT係数のDC(Direct Current)成分がラインバッファ6に格納されており、予測残差計算部3は、その過去の予測残差マクロブロックの情報を参照して、現在処理中のマクロブロックのDCT係数のうち、DC成分とAC(Alternating Current)係数の一部をADPCM(Adaptive Differential Pulse Code Modulation)で復号し、その復号結果を予測残差マクロブロックとして加算器5に出力し、また、その復号結果を過去の予測残差マクロブロックの情報としてラインバッファ6に格納する。
The prediction residual calculation unit 3 uses the prediction residual information output from the variable length decoding unit 1 and the information of the past prediction residual macroblock in the processing frame stored in the line buffer 6, so that the currently processed macro is processed. A process of calculating a prediction residual macroblock of the block is performed.
For example, in MPEG-4, as information of past prediction residual macroblocks, DC (Direct Current) of DCT coefficients of macroblocks positioned on the upper side and the left side of the currently processed macroblock in the raster scan order. The component is stored in the line buffer 6, and the prediction residual calculation unit 3 refers to the information of the past prediction residual macroblock, and among the DCT coefficients of the currently processed macroblock, the DC component and AC A part of the (Alternating Current) coefficient is decoded by ADPCM (Adaptive Differential Pulse Code Modulation), and the decoding result is output to the adder 5 as a prediction residual macroblock, and the decoding result is also stored in the past prediction residual macro. Line buff as block information And stores it in the 6.

動き補償予測部4はフレームメモリ7に格納されている前フレームの復号画像の中で、可変長復号部1から出力された動きベクトルが指し示す領域を予測画像マクロブロックとして加算器5に出力する処理を実施する。
加算器5は予測残差計算部3から出力された予測残差マクロブロックと動き補償予測部4から出力された予測画像マクロブロックを加算して、当該マクロブロックの復号画像を生成し、マクロブロック位置指定部2から出力されるマクロブロック位置情報にしたがって当該復号画像を表示メモリ8及びフレームメモリ7に書き込む処理を実施する。
The motion compensated prediction unit 4 outputs a region indicated by the motion vector output from the variable length decoding unit 1 in the decoded image of the previous frame stored in the frame memory 7 to the adder 5 as a predicted image macroblock. To implement.
The adder 5 adds the prediction residual macroblock output from the prediction residual calculation unit 3 and the prediction image macroblock output from the motion compensated prediction unit 4 to generate a decoded image of the macroblock. A process of writing the decoded image in the display memory 8 and the frame memory 7 according to the macroblock position information output from the position specifying unit 2 is performed.

ラインバッファ6は処理中のフレームにおける過去の予測残差マクロブロックの情報を格納するメモリである。
フレームメモリ7は前フレームの復号画像を格納するメモリである。
表示メモリ8は図示せぬ表示装置により表示される復号画像を格納するメモリである。
なお、マクロブロック位置指定部2、予測残差計算部3、動き補償予測部4、加算器5、ラインバッファ6及びフレームメモリ7から復号画像生成手段が構成されている。
The line buffer 6 is a memory for storing information of past prediction residual macroblocks in the frame being processed.
The frame memory 7 is a memory for storing the decoded image of the previous frame.
The display memory 8 is a memory for storing a decoded image displayed by a display device (not shown).
The macroblock position designation unit 2, the prediction residual calculation unit 3, the motion compensation prediction unit 4, the adder 5, the line buffer 6, and the frame memory 7 constitute decoded image generation means.

画像サイズ判定部9は可変長復号部1によりビデオストリームの1フレームが復号された時点の復号マクロブロック数と画像サイズ情報が示す画像サイズの対応関係が一致しているか否かを判別し、対応関係が一致していなければ、加算器5から出力される復号画像の代わりに、代替画像を表示メモリ8に格納する処理を実施する。なお、画像サイズ判定部9は対応関係判別手段を構成している。   The image size determination unit 9 determines whether or not the correspondence between the number of decoded macroblocks at the time when one frame of the video stream is decoded by the variable length decoding unit 1 and the image size indicated by the image size information match. If the relationship does not match, a process of storing the substitute image in the display memory 8 instead of the decoded image output from the adder 5 is performed. The image size determining unit 9 constitutes a correspondence determining unit.

次に動作について説明する。
動画像復号装置が、例えば、MPEG−4などの画像符号化方式を採用している場合、ビデオストリームの映像フレームをマクロブロックと呼ばれる矩形領域に分割し、マクロブロック単位でラスタスキャン順に処理を行う。
例えば、MPEG−4における「Simple Profile」でのマクロブロックでは、輝度成分が16×16画素、2つの色差成分がそれぞれ8×8画素で構成されている。
Next, the operation will be described.
When the moving picture decoding apparatus employs an image encoding method such as MPEG-4, for example, the video frame of the video stream is divided into rectangular areas called macroblocks and processed in raster scan order in units of macroblocks. .
For example, in the macro block of “Simple Profile” in MPEG-4, the luminance component is composed of 16 × 16 pixels, and the two color difference components are each composed of 8 × 8 pixels.

可変長復号部1は、ディジタル放送(衛星、地上波、ケーブル)やインターネットなどを利用して、MPEGなどの映像符号化方式で圧縮されたビデオストリームを受信すると、そのビデオストリームのフレームをマクロブロック毎に分割して、マクロブロック単位で復号処理を実施することにより、各マクロブロックの予測残差情報や動きベクトルなどの情報を抽出する。   When the variable length decoding unit 1 receives a video stream compressed by a video encoding method such as MPEG using digital broadcasting (satellite, terrestrial wave, cable), the Internet, or the like, the frame of the video stream is macroblocked. By dividing each block and performing decoding processing in units of macroblocks, information such as prediction residual information and motion vectors of each macroblock is extracted.

また、可変長復号部1は、マクロブロック単位で復号処理を実施しているとき復号マクロブロック数をカウントし、ビデオストリームの1フレーム分の復号が完了した時点の復号マクロブロック数を画像サイズ判定部9に出力する。
例えば、動画像の画像サイズがQCIFサイズであれば、1フレーム分の復号マクロブロック数は99個であり、動画像の画像サイズがCIFサイズであれば、1フレーム分の復号マクロブロック数は396個である。
In addition, the variable length decoding unit 1 counts the number of decoded macroblocks when decoding processing is performed in units of macroblocks, and determines the number of decoded macroblocks at the time when decoding of one frame of the video stream is completed. To the unit 9.
For example, if the image size of the moving image is QCIF size, the number of decoded macroblocks for one frame is 99. If the image size of the moving image is CIF size, the number of decoded macroblocks for one frame is 396. It is a piece.

マクロブロック位置指定部2は、例えば、送信側の符号化装置から動画像の画像サイズを示す画像サイズ情報を受信し、その画像サイズ情報にしたがって処理対象のマクロブロックの位置を示すマクロブロック位置情報をラインバッファ6、フレームメモリ7及び表示メモリ8に出力する。
ここで、図2は映像符号化方式がMPEG−4である場合のフレームメモリ7及び表示メモリ8と、ラインバッファ6とを示す説明図である。
図2から明らかなように、動画像の画像サイズが異なると、フレームメモリ7、表示メモリ8及びラインバッファ6に書き込まれるマクロブロックの位置が変化する。
The macroblock position specifying unit 2 receives, for example, image size information indicating the image size of the moving image from the encoding device on the transmission side, and macroblock position information indicating the position of the macroblock to be processed according to the image size information Are output to the line buffer 6, the frame memory 7 and the display memory 8.
Here, FIG. 2 is an explanatory diagram showing the frame memory 7 and the display memory 8 and the line buffer 6 when the video encoding method is MPEG-4.
As apparent from FIG. 2, when the image sizes of the moving images are different, the positions of the macro blocks written in the frame memory 7, the display memory 8 and the line buffer 6 are changed.

そこで、マクロブロック位置指定部2は、動画像の途中で、画像サイズが異なる動画像のビデオストリームを受信しても、崩れた画像の表示を防止するため、送信側の符号化装置から送信された画像サイズ情報にしたがって、フレームメモリ7、表示メモリ8及びラインバッファ6に書き込まれるマクロブロックの位置の適正化を図っている。
ただし、送信側の符号化装置から画像サイズ情報が適切に通知されない場合には、フレームメモリ7、表示メモリ8及びラインバッファ6に書き込まれるマクロブロックの位置の適正化を図ることができない。
Therefore, the macroblock position specifying unit 2 is transmitted from the encoding device on the transmission side in order to prevent the display of a corrupted image even if a video stream of a moving image having a different image size is received in the middle of the moving image. In accordance with the image size information, the position of the macro block written in the frame memory 7, the display memory 8 and the line buffer 6 is optimized.
However, when the image size information is not properly notified from the encoding device on the transmission side, it is impossible to optimize the positions of the macroblocks written in the frame memory 7, the display memory 8, and the line buffer 6.

なお、図1の例では、画像サイズ情報が例えばRTSPなどを用いて、ビデオストリームと別の経路で送信されてくるものを想定しているが、画像サイズ情報がビデオストリームに重畳されている場合には、可変長復号部1がビデオストリームに重畳されている画像サイズ情報を復号して、その画像サイズ情報をマクロブロック位置指定部2及び画像サイズ判定部9に出力するようにしてもよい。   In the example of FIG. 1, it is assumed that the image size information is transmitted via a different path from the video stream using, for example, RTSP, but the image size information is superimposed on the video stream. Alternatively, the variable length decoding unit 1 may decode the image size information superimposed on the video stream and output the image size information to the macroblock position designation unit 2 and the image size determination unit 9.

画像サイズ判定部9は、可変長復号部1からビデオストリームの1フレームが復号された時点の復号マクロブロック数を受けると、その復号マクロブロック数と送信側の符号化装置から送信された画像サイズ情報が示す動画像の画像サイズとの対応関係が一致しているか否かを判定する。
例えば、画像サイズ情報が示す動画像の画像サイズがQCIFサイズであるとき、1フレーム分の復号マクロブロック数が99個であり、あるいは、動画像の画像サイズがCIFサイズであるとき、1フレーム分の復号マクロブロック数が396個であれば、対応関係が一致していると判定する。
一方、動画像の画像サイズがQCIFサイズであるとき、1フレーム分の復号マクロブロック数が99個でない場合、あるいは、動画像の画像サイズがCIFサイズであるとき、1フレーム分の復号マクロブロック数が396個でない場合、対応関係が一致していないと判定する。
When receiving the number of decoded macroblocks at the time when one frame of the video stream is decoded from the variable length decoding unit 1, the image size determining unit 9 receives the number of decoded macroblocks and the image size transmitted from the encoding device on the transmission side. It is determined whether or not the correspondence relationship with the image size of the moving image indicated by the information matches.
For example, when the image size of the moving image indicated by the image size information is the QCIF size, the number of decoded macroblocks for one frame is 99, or when the image size of the moving image is the CIF size, it corresponds to one frame. If the number of decoded macroblocks is 396, it is determined that the correspondences match.
On the other hand, when the image size of the moving image is QCIF size, when the number of decoded macroblocks for one frame is not 99, or when the image size of the moving image is CIF size, the number of decoded macroblocks for one frame Is not 396, it is determined that the correspondence does not match.

画像サイズ判定部9は、対応関係が一致している場合、送信側の符号化装置から画像サイズ情報が適切に通知されており、先に可変長復号部1により抽出された予測残差情報及び動きベクトルから復号画像が生成されて、その復号画像が表示されても、崩れた画像を表示することがないので、復号結果の出力を指示する制御信号を可変長復号部1に出力する。
可変長復号部1は、画像サイズ判定部9から復号結果の出力を指示する制御信号を受けると、先に抽出したマクロブロックの予測残差情報を予測残差計算部3に出力し、そのマクロブロックの動きベクトルを動き補償予測部4に出力する。
When the correspondences match, the image size determination unit 9 is appropriately notified of the image size information from the encoding device on the transmission side, and the prediction residual information previously extracted by the variable length decoding unit 1 and Even if a decoded image is generated from the motion vector and the decoded image is displayed, a corrupted image is not displayed. Therefore, a control signal instructing output of the decoding result is output to the variable length decoding unit 1.
When the variable length decoding unit 1 receives the control signal instructing output of the decoding result from the image size determination unit 9, the variable length decoding unit 1 outputs the prediction residual information of the macroblock extracted previously to the prediction residual calculation unit 3, and the macro The motion vector of the block is output to the motion compensation prediction unit 4.

予測残差計算部3は、可変長復号部1から予測残差情報を受けると、その予測残差情報とラインバッファ6に格納されている処理中のフレームにおける過去の予測残差マクロブロックの情報から、現在処理中のマクロブロックの予測残差マクロブロックを計算する。
例えば、MPEG−4では、過去の予測残差マクロブロックの情報として、ラスタスキャン順でみて、現在処理中のマクロブロックの上側と左側に位置しているマクロブロックのDCT係数のDC成分がラインバッファ6に格納されているので、予測残差計算部3は、その過去の予測残差マクロブロックの情報を参照して、現在処理中のマクロブロックのDCT係数のうち、DC成分とAC係数の一部をADPCMで復号し、その復号結果を予測残差マクロブロックとして加算器5に出力し、また、その復号結果を過去の予測残差マクロブロックの情報としてラインバッファ6に格納する。
When the prediction residual calculation unit 3 receives the prediction residual information from the variable length decoding unit 1, the prediction residual information and information of the past prediction residual macroblock in the frame being processed stored in the line buffer 6. Then, the prediction residual macroblock of the macroblock currently being processed is calculated.
For example, in MPEG-4, as the information of past prediction residual macroblocks, the DC components of the DCT coefficients of the macroblocks located on the upper side and the left side of the currently processed macroblock are displayed in the line buffer as raster scan order. 6, the prediction residual calculation unit 3 refers to the information of the past prediction residual macroblock and refers to one of the DC component and the AC coefficient among the DCT coefficients of the currently processed macroblock. The result is decoded by ADPCM, the decoding result is output to the adder 5 as a prediction residual macroblock, and the decoding result is stored in the line buffer 6 as past prediction residual macroblock information.

動き補償予測部4は、可変長復号部1から動きベクトルを受けると、フレームメモリ7に格納されている前フレームの復号画像の中で、その動きベクトルが指し示す領域を予測画像マクロブロックとして加算器5に出力する。
加算器5は、予測残差計算部3から予測残差マクロブロックを受け、動き補償予測部4から予測画像マクロブロックを受けると、その予測残差マクロブロックと予測画像マクロブロックを加算して、当該マクロブロックの復号画像を生成する。
加算器5は、当該マクロブロックの復号画像を生成すると、マクロブロック位置指定部2から出力されるマクロブロック位置情報が示す表示メモリ8及びフレームメモリ7上の位置に、その復号画像を格納する。
When the motion compensated prediction unit 4 receives the motion vector from the variable length decoding unit 1, the motion compensation prediction unit 4 adds, as a predicted image macroblock, a region indicated by the motion vector in the decoded image of the previous frame stored in the frame memory 7. 5 is output.
When the adder 5 receives the prediction residual macroblock from the prediction residual calculation unit 3 and receives the prediction image macroblock from the motion compensation prediction unit 4, the adder 5 adds the prediction residual macroblock and the prediction image macroblock, A decoded image of the macroblock is generated.
When the adder 5 generates a decoded image of the macroblock, the adder 5 stores the decoded image at a position on the display memory 8 and the frame memory 7 indicated by the macroblock position information output from the macroblock position specifying unit 2.

画像サイズ判定部9は、復号マクロブロック数と画像サイズの対応関係が一致していない場合、送信側の符号化装置から画像サイズ情報が適切に通知されておらず、先に可変長復号部1により抽出された予測残差情報及び動きベクトルから復号画像が生成されて、その復号画像が表示されると、崩れた画像を表示することになるので、復号結果の出力を停止する制御信号を可変長復号部1に出力する。
これにより、画像サイズ判定部9から予測残差情報と動きベクトルが出力されず、加算器5から当該マクロブロックの復号画像が出力されなくなる。
When the correspondence between the number of decoded macroblocks and the image size does not match, the image size determination unit 9 has not been notified of the image size information properly from the encoding device on the transmission side, and the variable length decoding unit 1 first. When the decoded image is generated from the prediction residual information and the motion vector extracted by the above and the decoded image is displayed, the corrupted image is displayed. Therefore, the control signal for stopping the output of the decoding result is variable. Output to the long decoding unit 1.
Thereby, the prediction residual information and the motion vector are not output from the image size determination unit 9, and the decoded image of the macroblock is not output from the adder 5.

画像サイズ判定部9は、復号結果の出力を停止する制御信号を可変長復号部1に出力すると、予め用意されている代替画像を表示メモリ8に書き込む処理を実施する。
代替画像として、予め用意されているテストパターン画像や、前フレームの復号画像などが用いられる。
テストパターン画像としては、例えば、青一色や黒一色の画像が考えられる。また、フェイドアウト処理などの所定の加工処理が施された画像なども考えられる。
When the image size determination unit 9 outputs a control signal for stopping output of the decoding result to the variable length decoding unit 1, the image size determination unit 9 performs a process of writing a substitute image prepared in advance in the display memory 8.
As an alternative image, a test pattern image prepared in advance, a decoded image of the previous frame, or the like is used.
As the test pattern image, for example, a blue or black image can be considered. An image subjected to a predetermined processing such as a fade-out process can also be considered.

以上で明らかなように、この実施の形態1によれば、可変長復号部1によりビデオストリームの1フレームが復号された時点の復号マクロブロック数と画像サイズ情報が示す画像サイズの対応関係が一致しているか否かを判別し、対応関係が一致していなければ、加算器5により生成される復号画像の代わりに、代替画像を表示メモリ8に格納する画像サイズ判定部9を設けるように構成したので、動画像の途中で、画像サイズが異なる動画像のビデオストリームを受信してしまう状況下で、画像サイズ情報が適切に通知されない場合でも、崩れた画像の表示を防止することができる効果を奏する。   As is clear from the above, according to the first embodiment, the correspondence between the number of decoded macroblocks at the time when one frame of the video stream is decoded by the variable length decoding unit 1 and the image size indicated by the image size information is one. If the correspondence does not match, an image size determination unit 9 for storing the substitute image in the display memory 8 is provided instead of the decoded image generated by the adder 5. Therefore, in the situation where a video stream of a moving image having a different image size is received in the middle of the moving image, even when the image size information is not properly notified, the display of the corrupted image can be prevented. Play.

実施の形態2.
図3はこの発明の実施の形態2による動画像復号装置を示す構成図であり、図において、図1と同一符号は同一または相当部分を示すので説明を省略する。
画像サイズ判定部10は可変長復号部1によりビデオストリームの1フレームが復号された時点の復号マクロブロック数と画像サイズ情報が示す画像サイズの対応関係が一致しているか否かを判別し、対応関係が一致していなければ、当該ビデオストリームの先頭からの復号処理の再実施を可変長復号部1に指示するとともに、その復号マクロブロック数から現時点の画像サイズを推定して、現時点の画像サイズをマクロブロック位置指定部2に通知する処理を実施する。なお、画像サイズ判定部10は対応関係判別手段を構成している。
Embodiment 2. FIG.
3 is a block diagram showing a moving picture decoding apparatus according to Embodiment 2 of the present invention. In the figure, the same reference numerals as those in FIG.
The image size determination unit 10 determines whether or not the correspondence between the number of decoded macroblocks at the time when one frame of the video stream is decoded by the variable length decoding unit 1 and the image size indicated by the image size information match. If the relationship does not match, the variable-length decoding unit 1 is instructed to re-execute the decoding process from the beginning of the video stream, and the current image size is estimated from the number of decoded macroblocks. Is notified to the macroblock position designation unit 2. Note that the image size determination unit 10 constitutes a correspondence determination unit.

次に動作について説明する。
上記実施の形態1と比べて、画像サイズ判定部9の代わりに、画像サイズ判定部10が設けられている点以外は同様であるため、主に画像サイズ判定部10の動作について説明する。
Next, the operation will be described.
Compared to the first embodiment, the operation is the same except that an image size determination unit 10 is provided instead of the image size determination unit 9, and thus the operation of the image size determination unit 10 will be mainly described.

画像サイズ判定部10は、可変長復号部1からビデオストリームの1フレームが復号された時点の復号マクロブロック数を受けると、図1の画像サイズ判定部9と同様に、その復号マクロブロック数と送信側の符号化装置から送信された画像サイズ情報が示す動画像の画像サイズとの対応関係が一致しているか否かを判定する。
例えば、画像サイズ情報が示す動画像の画像サイズがQCIFサイズであるとき、1フレーム分の復号マクロブロック数が99個であり、あるいは、動画像の画像サイズがCIFサイズであるとき、1フレーム分の復号マクロブロック数が396個であれば、対応関係が一致していると判定する。
一方、動画像の画像サイズがQCIFサイズであるとき、1フレーム分の復号マクロブロック数が99個でない場合、あるいは、動画像の画像サイズがCIFサイズであるとき、1フレーム分の復号マクロブロック数が396個でない場合、対応関係が一致していないと判定する。
When receiving the number of decoded macroblocks at the time when one frame of the video stream is decoded from the variable length decoding unit 1, the image size determining unit 10 determines the number of decoded macroblocks as in the image size determining unit 9 of FIG. It is determined whether or not the correspondence relationship with the image size of the moving image indicated by the image size information transmitted from the transmission-side encoding device matches.
For example, when the image size of the moving image indicated by the image size information is the QCIF size, the number of decoded macroblocks for one frame is 99, or when the image size of the moving image is the CIF size, it corresponds to one frame. If the number of decoded macroblocks is 396, it is determined that the correspondences match.
On the other hand, when the image size of the moving image is QCIF size, when the number of decoded macroblocks for one frame is not 99, or when the image size of the moving image is CIF size, the number of decoded macroblocks for one frame Is not 396, it is determined that the correspondence does not match.

画像サイズ判定部10は、対応関係が一致している場合、送信側の符号化装置から画像サイズ情報が適切に通知されており、先に可変長復号部1により抽出された予測残差情報及び動きベクトルから復号画像が生成されて、その復号画像が表示されても、崩れた画像を表示することがないので、図1の画像サイズ判定部9と同様に、復号結果の出力を指示する制御信号を可変長復号部1に出力する。   When the correspondences match, the image size determination unit 10 is appropriately notified of the image size information from the encoding device on the transmission side, and the prediction residual information previously extracted by the variable length decoding unit 1 and Even if a decoded image is generated from a motion vector and the decoded image is displayed, a corrupted image is not displayed. Therefore, as with the image size determination unit 9 in FIG. The signal is output to the variable length decoding unit 1.

画像サイズ判定部10は、復号マクロブロック数と画像サイズの対応関係が一致していない場合、送信側の符号化装置から画像サイズ情報が適切に通知されておらず、先に可変長復号部1により抽出された予測残差情報及び動きベクトルから復号画像が生成されて、その復号画像が表示されると、崩れた画像を表示することになるので、当該ビデオストリームの先頭からの復号処理の再実施を指示する制御信号を可変長復号部1に出力する。このとき、先に抽出された予測残差情報及び動きベクトルを1フレーム分記録しておけば、可変長復号部1では復号処理をおこなわずに数値を再利用することもできる。   When the correspondence between the number of decoded macroblocks and the image size does not match, the image size determination unit 10 has not been notified of the image size information from the encoding device on the transmission side, and the variable length decoding unit 1 first. When the decoded image is generated from the prediction residual information and the motion vector extracted by the above and the decoded image is displayed, the corrupted image is displayed. Therefore, the decoding process from the beginning of the video stream is re-executed. A control signal instructing execution is output to the variable length decoding unit 1. At this time, if the prediction residual information and the motion vector extracted previously are recorded for one frame, the variable length decoding unit 1 can reuse the numerical value without performing the decoding process.

また、画像サイズ判定部10は、ビデオストリームの1フレームが復号された時点の復号マクロブロック数から現時点の画像サイズを推定して、現時点の画像サイズをマクロブロック位置指定部2に通知する。
例えば、復号マクロブロック数が99個であれば、現時点の画像サイズがQCIFサイズであると推定し、復号マクロブロック数が396個であれば、現時点の画像サイズがCIFサイズであると推定する。
In addition, the image size determination unit 10 estimates the current image size from the number of decoded macroblocks at the time when one frame of the video stream is decoded, and notifies the macroblock position designation unit 2 of the current image size.
For example, if the number of decoded macroblocks is 99, the current image size is estimated to be QCIF size, and if the number of decoded macroblocks is 396, the current image size is estimated to be CIF size.

これにより、可変長復号部1により新たに抽出された予測残差情報及び動きベクトルから復号画像が生成され、推定された現時点の画像サイズに対応するマクロブロックの位置(ラインバッファ6、フレームメモリ7、表示メモリ8上の適切な位置)に復号画像が書き込まれるので、崩れのない画像が表示される。   As a result, a decoded image is generated from the prediction residual information and the motion vector newly extracted by the variable length decoding unit 1, and the position of the macroblock corresponding to the estimated current image size (line buffer 6, frame memory 7). Since the decoded image is written at an appropriate position on the display memory 8, an image without collapse is displayed.

以上で明らかなように、この実施の形態2によれば、可変長復号部1によりビデオストリームの1フレームが復号された時点の復号マクロブロック数と画像サイズ情報が示す画像サイズの対応関係が一致しているか否かを判別し、対応関係が一致していなければ、当該ビデオストリームの先頭からの復号処理の再実施を可変長復号部1に指示するとともに、その復号マクロブロック数から現時点の画像サイズを推定して、現時点の画像サイズをマクロブロック位置指定部2に通知する画像サイズ判定部10を設けるように構成したので、動画像の途中で、画像サイズが異なる動画像のビデオストリームを受信してしまう状況下で、画像サイズ情報が適切に通知されない場合でも、崩れた画像の表示を防止することができる効果を奏する。   As is apparent from the above, according to the second embodiment, the correspondence between the number of decoded macroblocks at the time when one frame of the video stream is decoded by the variable length decoding unit 1 and the image size indicated by the image size information is one. If the correspondence does not match, the variable length decoding unit 1 is instructed to re-execute the decoding process from the beginning of the video stream, and the current image is determined from the number of decoded macroblocks. Since the image size determination unit 10 that estimates the size and notifies the macroblock position specifying unit 2 of the current image size is provided, a video stream of a moving image having a different image size is received in the middle of the moving image. Even if the image size information is not properly notified under such circumstances, the display of a corrupted image can be prevented.

この発明の実施の形態1による動画像復号装置を示す構成図である。It is a block diagram which shows the moving image decoding apparatus by Embodiment 1 of this invention. (a)は映像符号化方式がMPEG−4である場合のフレームメモリ7及び表示メモリ8を示す説明図である。(b)は映像符号化方式がMPEG−4である場合のラインバッファ6を示す説明図である。(A) is explanatory drawing which shows the frame memory 7 and the display memory 8 in case a video coding system is MPEG-4. (B) is an explanatory view showing the line buffer 6 when the video encoding method is MPEG-4. この発明の実施の形態2による動画像復号装置を示す構成図である。It is a block diagram which shows the moving image decoding apparatus by Embodiment 2 of this invention.

符号の説明Explanation of symbols

1 可変長復号部(復号処理手段)、2 マクロブロック位置指定部(復号画像生成手段)、3 予測残差計算部(復号画像生成手段)、4 動き補償予測部(復号画像生成手段)、5 加算器(復号画像生成手段)、6 ラインバッファ(復号画像生成手段)、7 フレームメモリ(復号画像生成手段)、8 表示メモリ、9,10 画像サイズ判定部(対応関係判別手段)。   DESCRIPTION OF SYMBOLS 1 Variable length decoding part (decoding processing means), 2 Macroblock position designation part (decoded image generation means), 3 Prediction residual calculation part (decoded image generation means), 4 Motion compensation prediction part (decoded image generation means), 5 Adder (decoded image generating means), 6 line buffer (decoded image generating means), 7 frame memory (decoded image generating means), 8 display memory, 9, 10 image size determining unit (corresponding relationship determining means).

Claims (3)

動画像の符号化データを入力して、上記符号化データの復号処理を実施する復号処理手段と、上記復号処理手段の復号処理結果から復号画像を生成し、動画像の画像サイズを示す画像サイズ情報にしたがって上記復号画像を表示メモリに格納する復号画像生成手段と、上記復号処理手段により符号化データの1フレームが復号された時点の復号マクロブロック数と上記画像サイズ情報が示す画像サイズの対応関係が一致しているか否かを判別し、対応関係が一致していなければ、上記復号画像生成手段により生成される復号画像の代わりに、代替画像を上記表示メモリに格納する対応関係判別手段とを備えた動画像復号装置。   A decoding processing unit that inputs encoded data of a moving image and performs a decoding process of the encoded data, and a decoded image is generated from the decoding processing result of the decoding processing unit, and an image size indicating an image size of the moving image Correspondence between decoded image generation means for storing the decoded image in a display memory according to information, the number of decoded macroblocks when one frame of encoded data is decoded by the decoding processing means, and the image size indicated by the image size information It is determined whether or not the relationship is matched, and if the correspondence is not matched, a corresponding relationship determining unit that stores a substitute image in the display memory instead of the decoded image generated by the decoded image generating unit; A video decoding device comprising: 対応関係判別手段は、代替画像として、予め用意されているテストパターン画像、あるいは、前フレームの復号画像を表示メモリに格納することを特徴とする請求項1記載の動画像復号装置。   2. The moving picture decoding apparatus according to claim 1, wherein the correspondence determination unit stores a test pattern image prepared in advance or a decoded image of the previous frame as a substitute image in a display memory. 動画像の符号化データを入力して、上記符号化データの復号処理を実施する復号処理手段と、上記復号処理手段の復号処理結果から復号画像を生成し、動画像の画像サイズを示す画像サイズ情報にしたがって上記復号画像を表示メモリに格納する復号画像生成手段と、上記復号処理手段により符号化データの1フレームが復号された時点の復号マクロブロック数と上記画像サイズ情報が示す画像サイズの対応関係が一致しているか否かを判別し、対応関係が一致していなければ、上記符号化データの先頭からの復号処理の再実施を上記復号処理手段に指示するとともに、上記復号マクロブロック数から現時点の画像サイズを推定して、現時点の画像サイズを上記復号画像生成手段に通知する対応関係判別手段とを備えた動画像復号装置。   A decoding processing unit that inputs encoded data of a moving image and performs a decoding process of the encoded data, and a decoded image is generated from the decoding processing result of the decoding processing unit, and an image size indicating an image size of the moving image Correspondence between decoded image generation means for storing the decoded image in a display memory according to information, the number of decoded macroblocks when one frame of encoded data is decoded by the decoding processing means, and the image size indicated by the image size information It is determined whether or not the relationship is the same, and if the correspondence is not the same, the decoding processing means is instructed to perform the decoding process from the beginning of the encoded data, and the number of decoded macroblocks is determined. A moving picture decoding apparatus comprising: a correspondence determination unit that estimates a current image size and notifies the decoded image generation unit of the current image size.
JP2008129446A 2008-05-16 2008-05-16 Moving image decoding apparatus Pending JP2009278512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008129446A JP2009278512A (en) 2008-05-16 2008-05-16 Moving image decoding apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008129446A JP2009278512A (en) 2008-05-16 2008-05-16 Moving image decoding apparatus

Publications (1)

Publication Number Publication Date
JP2009278512A true JP2009278512A (en) 2009-11-26

Family

ID=41443497

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008129446A Pending JP2009278512A (en) 2008-05-16 2008-05-16 Moving image decoding apparatus

Country Status (1)

Country Link
JP (1) JP2009278512A (en)

Similar Documents

Publication Publication Date Title
KR100603175B1 (en) Video encoding method, video decoding method, video encoding apparatus, video decoding apparatus, a computer readable recording medium having a video encoding program recorded thereon, and a computer readable recording medium having a video decoding program recorded thereon
KR101912059B1 (en) Image coding device and image decoding device
JP4114885B2 (en) Image encoding apparatus, method, and program
JP2017535167A (en) Syntax structure indicating completion of coding region
JP2017512026A (en) Block inversion and skip mode in intra block copy prediction
US20120307904A1 (en) Partial frame utilization in video codecs
JP2007235456A (en) Moving image decoding device and moving image decoding method
JP2008017229A (en) Moving picture encoder
JP5137687B2 (en) Decoding device, decoding method, and program
US8902981B2 (en) Video signal generation apparatus, video signal generation method, video signal generation program, and computer readable recording medium recording the program
US20160182911A1 (en) De-juddering techniques for coded video
KR20090046812A (en) Video encoding
JP2007243784A (en) Moving image decoding device and moving image decoding method
JP2019083433A (en) Video transmitting device, video receiving device and program
JP2005295054A (en) Apparatus, method, and program for restoring moving picture information
JP2009278512A (en) Moving image decoding apparatus
JP2009246489A (en) Video-signal switching apparatus
JP2009081489A (en) Moving picture encoding device and moving picture decoding device
JP2002171530A (en) Re-encoder provided with superimpose function and its method
JP2005184495A (en) Moving picture encoding apparatus and method therefor
JP2009296208A (en) Dynamic image-reproducing device and dynamic image transmission system
JP5421739B2 (en) Moving picture coding apparatus, moving picture decoding apparatus, and moving picture coding method
US8358694B2 (en) Effective error concealment in real-world transmission environment
JP4390009B2 (en) Encoding apparatus and method, and image processing system
WO2016136458A1 (en) Video switching device provided with encoder, and video switching method including encoding method