JP2007020002A - Motion picture encoder - Google Patents

Motion picture encoder Download PDF

Info

Publication number
JP2007020002A
JP2007020002A JP2005200768A JP2005200768A JP2007020002A JP 2007020002 A JP2007020002 A JP 2007020002A JP 2005200768 A JP2005200768 A JP 2005200768A JP 2005200768 A JP2005200768 A JP 2005200768A JP 2007020002 A JP2007020002 A JP 2007020002A
Authority
JP
Japan
Prior art keywords
slice
moving image
redundant
data belonging
character
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
JP2005200768A
Other languages
Japanese (ja)
Inventor
Yasuaki Tokuge
靖昭 徳毛
Shingo Nagataki
真吾 長滝
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2005200768A priority Critical patent/JP2007020002A/en
Publication of JP2007020002A publication Critical patent/JP2007020002A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a motion picture encoder capable of concealing decoding errors of coding data belonging to a character multiplex area while maintaining transmission efficiency of motion picture encoding data and image quality in decoding successful. <P>SOLUTION: The motion picture encoder 1 which converts, quantizes motion picture data representing a motion picture having the character multiplex area and performs variable length coding to the motion picture data has: a variable length coding part 6 which performs variable length coding to the motion picture data performs motion picture data belonging to a redundant area overlapped with the character multiplex area along outer edges of the character multiplex area more redundantly than in the case of motion picture data belonging to areas other than the redundant area and codes motion picture data belonging to each normal slice by unit of normal slice by dividing the motion picture like a belt; and a redundant slice setting part 4 which sets a redundant slice overlapped with the character multiplex area along the outer edge of the character multiplex area, wherein the variable length coding part 6 further codes motion picture data belonging to the redundant slice. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、動画像データを符号化する動画像符号化装置に関し、特に、文字多重領域を有する動画像を表す動画像データを変換して量子化し、可変長符号化する動画像符号化装置に関する。   The present invention relates to a moving image encoding apparatus that encodes moving image data, and more particularly, to a moving image encoding apparatus that converts and quantizes moving image data representing a moving image having a character multiplex region and performs variable length encoding. .

近年、テレビ電話システム、映像配信システム(ストリーミング)等において動画像符号化装置が広く用いられている。   In recent years, moving picture coding apparatuses are widely used in videophone systems, video distribution systems (streaming), and the like.

図17は、従来の動画像符号化装置90の構成を示すブロック図である。動画像符号化装置90は、変換部97を備える。変換部97は、入力された動画像データをDCT等によって周波数領域の動画像データに変換して量子化部98に出力する。量子化部98は、レート制御部99によって設定された量子化パラメータに基づいて、変換後の動画像データを量子化して可変長符号化部96に出力する。レート制御部99は、動画像を帯状に分割して通常スライスを設定し、また、量子化パラメータ値を変更する。可変長符号化部96は、動画像を帯状に分割した通常スライス単位で、各通常スライスに属する量子化後の動画像データを可変長符号化して、符号化ビットストリームとして出力する。   FIG. 17 is a block diagram showing a configuration of a conventional moving picture coding apparatus 90. As shown in FIG. The moving image encoding device 90 includes a conversion unit 97. The converting unit 97 converts the input moving image data into moving image data in the frequency domain by DCT or the like and outputs the moving image data to the quantizing unit 98. The quantization unit 98 quantizes the converted moving image data based on the quantization parameter set by the rate control unit 99 and outputs the quantized moving image data to the variable length coding unit 96. The rate control unit 99 sets a normal slice by dividing the moving image into strips, and changes the quantization parameter value. The variable length coding unit 96 performs variable length coding on the quantized moving image data belonging to each normal slice in units of normal slices obtained by dividing the moving image into strips, and outputs the encoded bit stream.

ある通常スライスにエラーが発生した場合でも、他の通常スライスの復号(ここでは、可変長復号を意味するものとする)には影響しないため、通常スライスは、例えば、エラー耐性を強化する目的で使用される。   Even if an error occurs in one normal slice, it does not affect the decoding of other normal slices (here, it means variable-length decoding), so the normal slice is used, for example, for the purpose of enhancing error tolerance. used.

エラーの多い環境を想定したアプリケーションでは、通常スライス分割数を増やすことによって、エラー耐性を強化する。一方、エラーの少ない(あるいはエラーの無い)環境を想定したアプリケーションでは、通常スライス分割数を減らすことによって、通常スライス分割に起因するオーバーヘッドを小さくする。   In an application that assumes an environment with many errors, error resilience is enhanced by increasing the number of normal slice divisions. On the other hand, in an application that assumes an environment with few errors (or no errors), the overhead caused by normal slice division is reduced by reducing the number of normal slice divisions.

また、発生符号量が目標ビットレートを超えることが予測される場合には、発生符号量を抑制するために量子化パラメータ値を大きくする。逆に、発生符号量が目標ビットレートを大きく下回ることが予測される場合には、発生符号量を増加させるために量子化パラメータ値を小さくする。   When the generated code amount is predicted to exceed the target bit rate, the quantization parameter value is increased to suppress the generated code amount. Conversely, if the generated code amount is predicted to be significantly below the target bit rate, the quantization parameter value is decreased in order to increase the generated code amount.

復号化装置による復号中において、あるフレームまたはスライスにおいてエラーを検出した場合には、エラー部分を他の画像で置き換える等の隠蔽(コンシールメント)処理が行われる。例えば、あるフレームにおいてエラーを検出した場合に、その直前に復号されたフレームを用いてエラー部分をコンシールメントする方法が開示されている(例えば特許文献1参照)。   When an error is detected in a certain frame or slice during decoding by the decoding device, concealment processing such as replacing the error part with another image is performed. For example, when an error is detected in a certain frame, a method of concealing the error part using a frame decoded immediately before is disclosed (for example, see Patent Document 1).

また、符号化装置側で画質劣化を防止する技術として、字幕シーンのように高周波成分を多く含む映像信号をフレーム間符号化する場合において、フレーム内符号化画像とフレーム間符号化画像との間の高周波成分の表現差に起因して画質が劣化することを防止する技術が開示されている(例えば特許文献2参照)。   In addition, as a technique for preventing image quality degradation on the encoding device side, when encoding a video signal containing a lot of high-frequency components, such as a caption scene, between intra-frame encoded images and inter-frame encoded images. A technique for preventing the image quality from being deteriorated due to the difference in expression of the high-frequency component is disclosed (for example, see Patent Document 2).

さらに、符号化装置と復号化装置との間の伝送路において生じる伝送エラーに対する耐性を強化するために、再同期マーカ(Resync Marker)、データパーティショニング(Data Partitioning)、RVLC等のさまざまなエラー耐性ツールが導入されている(例えば非特許文献1参照)。   Furthermore, various error tolerances such as resynchronization marker (Resync Marker), data partitioning (Data Partitioning), RVLC, etc. are provided in order to enhance tolerance against transmission errors that occur in the transmission path between the encoding device and the decoding device. A tool has been introduced (see Non-Patent Document 1, for example).

また、冗長スライス(Redundant Slice)、任意スライス順序(Arbitrary Slice Order)等が提案されている。冗長スライスは常に符号化されるわけではないが、伝送エラー等により通常スライスに含まれるマクロブロックに属する動画像データが正しく復号できなかった場合に、この通常スライスに含まれるマクロブロックに属する動画像データを、この通常スライスの全体に設定された冗長スライスに含まれるマクロブロックに属する動画像データで置き換えることによって、エラーを隠蔽することができる。
特開平9−93589号公報(平成9年(1997)4月4日公開) 特開平10−32816号公報(平成10年(1998)2月3日公開) ISO/IEC 14496−2 Draft ISO/IEC 14496−10 Draft
Further, a redundant slice, an arbitrary slice order, and the like have been proposed. Redundant slices are not always encoded, but when moving image data belonging to a macroblock included in a normal slice cannot be correctly decoded due to a transmission error or the like, a moving image belonging to a macroblock included in the normal slice The error can be concealed by replacing the data with moving image data belonging to the macroblock included in the redundant slice set for the entire normal slice.
Japanese Patent Laid-Open No. 9-93589 (published April 4, 1997) Japanese Patent Laid-Open No. 10-32816 (published February 3, 1998) ISO / IEC 14496-2 Draft ISO / IEC 14496-10 Draft

しかしながら、上記従来の復号装置あるいは符号化装置では、高周波成分を多く含む映像信号により表される字幕シーンのような対象物が表示される文字多重領域の符号化データに、伝送路においてエラーが混入して復号エラーが生じた場合において、適切なコンシールメントができないという問題点がある。以下、具体的に説明する。   However, in the above conventional decoding device or encoding device, an error is mixed in the transmission path in the encoded data of the character multiplex area where an object such as a caption scene represented by a video signal containing many high-frequency components is displayed. Thus, when a decoding error occurs, there is a problem that proper concealment cannot be performed. This will be specifically described below.

例えば、前述した特許文献1の構成では、復号エラーが発生した文字多重領域のコンシールメント処理において、直前に復号したフレームにおける文字多重領域のマクロブロックの文字列が対応する文字列でない場合には、正しい文字列を表示することができないという問題点がある。   For example, in the configuration of Patent Document 1 described above, in the concealment process of the character multiplex area in which a decoding error has occurred, if the character string of the macro block of the character multiplex area in the frame decoded immediately before is not a corresponding character string, There is a problem that a correct character string cannot be displayed.

また、文字多重領域に表示される文字等を表す映像信号は高周波成分を多く含むため、復号エラーが発生した文字多重領域は、現フレームの周辺画素では隠蔽しにくいという問題点がある。   In addition, since a video signal representing a character or the like displayed in the character multiplex area contains many high-frequency components, there is a problem that the character multiplex area in which a decoding error has occurred is difficult to conceal with peripheral pixels of the current frame.

また、特許文献2は、フレーム内符号化画像とフレーム間符号化画像との相違に起因して画質が劣化することを防止する技術を開示しているのみであり、伝送路で生じたエラーに起因する復号エラーを隠蔽することは記載されておらず、本願発明が解決しようとする課題に対する認識が示されていない。   Patent Document 2 only discloses a technique for preventing the image quality from being deteriorated due to the difference between the intra-frame encoded image and the inter-frame encoded image. It does not describe concealing a decoding error caused by this, and does not show recognition of the problem to be solved by the present invention.

さらに、前述した冗長スライスによって文字多重領域の復号エラーを隠蔽する構成では、文字多重領域を含む通常スライスの全体に冗長スライスが設定されるので、伝送符号量が増大して、帯域の狭い伝送路では伝送効率が悪化するという問題点がある。また、このように冗長スライスにより伝送符号量が増大するため、通常スライスに割り当てる符号量が減少してしまい、画質が劣化するという問題がある。   Further, in the configuration in which the decoding error of the character multiplex area is concealed by the redundant slice as described above, since the redundant slice is set in the entire normal slice including the character multiplex area, the transmission code amount is increased and the transmission path having a narrow band is formed. Then, there is a problem that transmission efficiency deteriorates. Further, since the transmission code amount is increased by the redundant slice as described above, there is a problem that the code amount allocated to the normal slice is decreased and the image quality is deteriorated.

本発明は、上記従来の問題点に鑑みなされたものであって、その目的は、動画像符号化データの伝送効率と復号時の画質とを良好に維持しながら、文字多重領域に属する符号化データの復号エラーを隠蔽することができる動画像符号化装置を提供することにある。   The present invention has been made in view of the above-described conventional problems, and an object of the present invention is to perform encoding belonging to a character multiplex region while maintaining good transmission efficiency of moving image encoded data and image quality at the time of decoding. An object of the present invention is to provide a moving picture coding apparatus capable of concealing a data decoding error.

本発明の動画像符号化装置は、上記課題を解決するために、文字多重領域を有する動画像を表す動画像データを変換して量子化し、可変長符号化する動画像符号化装置であって、前記文字多重領域の外縁に沿って前記文字多重領域に重なる冗長領域に属する動画像データを、前記冗長領域以外の領域に属する動画像データよりも冗長に可変長符号化することを特徴としている。   In order to solve the above problems, a moving image encoding apparatus according to the present invention is a moving image encoding apparatus that converts and quantizes moving image data representing a moving image having a character multiplex region, and performs variable length encoding. The moving image data belonging to the redundant area overlapping the character multiplexed area along the outer edge of the character multiplexed area is more variable-length encoded than the moving image data belonging to an area other than the redundant area. .

上記構成によれば、文字多重領域の外縁に沿って前記文字多重領域に重なる冗長領域に属する動画像データが、冗長領域以外の領域に属する動画像データよりも冗長に可変長符号化される。このため、文字多重領域を含む通常スライスの全体の動画像データを冗長に可変長符号化する従来の構成に比べて、可変長符号化の冗長性に起因するオーバーヘッド(付加的な処理)を低減することができる。その結果、動画像符号化データの伝送符号量を低減することができるとともに、通常スライスに割り当てる符号量を確保することができる。従って、動画像符号化データの伝送効率と復号時の画質とを良好に維持しながら、文字多重領域に属する符号化データの復号エラーを隠蔽することができる。   According to the above configuration, the moving image data belonging to the redundant area that overlaps the character multiplexed area along the outer edge of the character multiplexed area is more variable-length encoded than the moving image data belonging to the area other than the redundant area. For this reason, overhead (additional processing) due to the redundancy of variable-length coding is reduced compared to the conventional configuration in which the entire moving image data of the normal slice including the character multiplex area is redundantly variable-length coded. can do. As a result, the transmission code amount of moving image encoded data can be reduced, and the code amount allocated to the normal slice can be secured. Therefore, it is possible to conceal the decoding error of the encoded data belonging to the character multiplex area while maintaining good transmission efficiency of moving image encoded data and image quality at the time of decoding.

本発明の動画像符号化装置では、前記動画像を帯状に分割した通常スライス単位で、各通常スライスに属する動画像データを符号化する可変長符号化手段と、前記文字多重領域の外縁に沿って前記文字多重領域に重なる冗長スライスを設定する冗長スライス設定手段とを備え、前記可変長符号化手段は、前記冗長スライスに属する動画像データをさらに符号化することが好ましい。   In the moving image encoding apparatus of the present invention, variable length encoding means for encoding moving image data belonging to each normal slice in units of normal slices obtained by dividing the moving image into strips, along the outer edge of the character multiplex region And redundant slice setting means for setting redundant slices overlapping the character multiplex region, and the variable length encoding means preferably further encodes moving image data belonging to the redundant slice.

この構成によれば、冗長スライス設定手段により、文字多重領域の外縁に沿って文字多重領域に重なる冗長スライスが設定され、この冗長スライスに属する動画像データがさらに符号化される。このため、通常スライスの一部を構成する文字多重領域内の動画像データを文字多重領域以外の領域に属する動画像データよりも冗長に符号化することができ、従って、文字多重領域を含む通常スライスの全体を冗長スライスとして符号化する従来の構成に比べて、冗長スライスによるオーバーヘッド(付加的な処理)を低減することができる。その結果、動画像符号化装置の送信符号量を低減して送信効率を向上させることができる。また、通常スライスに割り当てる符号量を確保して、良好な画質を提供することができる。   According to this configuration, the redundant slice that overlaps the character multiplex area along the outer edge of the character multiplex area is set by the redundant slice setting means, and the moving image data belonging to the redundant slice is further encoded. For this reason, it is possible to encode moving image data in a character multiplex area constituting a part of a normal slice more redundantly than moving image data belonging to an area other than the character multiplex area. Compared to the conventional configuration in which the entire slice is encoded as a redundant slice, overhead (additional processing) due to the redundant slice can be reduced. As a result, the transmission efficiency can be improved by reducing the transmission code amount of the moving picture coding apparatus. Further, it is possible to provide a good image quality by securing the amount of code allocated to the normal slice.

本発明の動画像符号化装置では、前記文字多重領域を前記動画像から検出して文字多重領域情報を生成する文字多重領域検出手段をさらに備え、前記冗長スライス設定手段は、前記文字多重領域検出手段によって生成された文字多重領域情報に基づいて前記冗長スライスを設定することが好ましい。   In the moving image encoding device of the present invention, the moving image encoding device further includes character multiplexed region detection means for detecting the character multiplexed region from the moving image and generating character multiplexed region information, and the redundant slice setting means includes the character multiplexed region detection It is preferable to set the redundant slice based on the character multi-region information generated by the means.

この構成によれば、文字多重領域が予め分かっていない場合に、動画像から文字多重領域を検出することにより、文字多重領域情報を得ることができ、この文字多重領域情報に基づいて冗長スライスを設定することができる。   According to this configuration, when the character multiplex area is not known in advance, the character multiplex area information can be obtained by detecting the character multiplex area from the moving image, and the redundant slice is obtained based on the character multiplex area information. Can be set.

本発明の動画像符号化装置では、前記可変長符号化手段によって符号化された前記通常スライスに属する動画像データを復号装置に伝送する伝送手段と、前記通常スライスに属する動画像データのうちの前記文字多重領域に属する動画像データの復号エラー通知を受信する受信手段とをさらに備え、前記可変長符号化手段は、前記受信手段によって前記復号エラー通知が受信されたときに、前記冗長スライスに属する動画像データを符号化し、前記伝送手段は、前記可変長符号化手段によって符号化された前記冗長スライスに属する動画像データを前記復号装置に伝送することが好ましい。   In the moving image encoding apparatus of the present invention, transmission means for transmitting the moving image data belonging to the normal slice encoded by the variable length encoding means to a decoding device, and moving image data belonging to the normal slice Receiving means for receiving a decoding error notification of moving image data belonging to the character multiplex region, and the variable length encoding means, when the decoding error notification is received by the receiving means, to the redundant slice It is preferable that the moving image data belonging thereto is encoded, and the transmission unit transmits the moving image data belonging to the redundant slice encoded by the variable length encoding unit to the decoding device.

この構成によれば、冗長スライス内の動画像データは、復号エラーが通知されたときに符号化される。このため、復号エラーが通知されないときには、冗長スライス内の動画像データを符号化しないように構成することによって、冗長スライスによるオーバーヘッドをさらに低減することができる。また、より一層多くの符号量を通常スライスに割り当てることができるため、より一層良好な画質を提供することができる。   According to this configuration, the moving image data in the redundant slice is encoded when a decoding error is notified. For this reason, when no decoding error is notified, the overhead due to the redundant slice can be further reduced by configuring so that the moving image data in the redundant slice is not encoded. Further, since a larger amount of code can be allocated to the normal slice, it is possible to provide a better image quality.

本発明の動画像符号化装置では、前記可変長符号化手段は、前記冗長スライスを有する通常スライスに属する動画像データを、前記冗長スライスを有しない通常スライスに属する動画像データよりも先に符号化し、前記伝送手段は、前記可変長符号化手段によって符号化された、前記冗長スライスを有する通常スライスに属する動画像データを、前記冗長スライスを有しない通常スライスに属する動画像データよりも先に前記復号装置に伝送することが好ましい。   In the moving image encoding device of the present invention, the variable length encoding means encodes moving image data belonging to the normal slice having the redundant slice before moving image data belonging to the normal slice not having the redundant slice. The transmission means encodes the moving picture data belonging to the normal slice having the redundant slice encoded by the variable length coding means before the moving picture data belonging to the normal slice not having the redundant slice. It is preferable to transmit to the decoding device.

この構成によれば、文字多重領域に属する動画像データの復号エラー通知の受信の有無及び冗長スライスに属する動画像データを伝送するか否かを、より早い時点で判定することができる。実際の伝送路は、例えば64kbpsと帯域が限られており、あるフレームにおいて復号エラー通知を受信せずに冗長スライスを伝送しなかった場合、その冗長スライスの分の符号量を次フレームの符号化等に割り当てることができるので、全体として画質を向上させることができる。   According to this configuration, it is possible to determine at an earlier point in time whether or not to receive a decoding error notification of moving image data belonging to the character multiplex region and whether to transmit moving image data belonging to a redundant slice. The actual transmission path has a limited bandwidth of, for example, 64 kbps. When a redundant slice is not transmitted without receiving a decoding error notification in a certain frame, the code amount of the redundant slice is encoded in the next frame. Therefore, it is possible to improve the image quality as a whole.

本発明の動画像符号化装置では、前記冗長スライス設定手段は、前記文字多重領域を含むように前記動画像を分割した領域であるスライスグループを設定し、このスライスグループに基づいて前記冗長スライスを設定することが好ましい。   In the moving picture coding apparatus of the present invention, the redundant slice setting means sets a slice group that is an area obtained by dividing the moving picture so as to include the character multiplexed area, and the redundant slice is determined based on the slice group. It is preferable to set.

この構成によれば、文字多重領域が縦長形状を有している場合、及び文字多重領域が複雑な形状を有している場合であっても、その文字多重領域の形状に応じた適切な形状のスライスグループを設定することによって、文字多重領域の外縁に沿った1個の冗長スライスを容易に設定することができる。   According to this configuration, even when the character multiplex area has a vertically long shape and when the character multiplex area has a complicated shape, an appropriate shape according to the shape of the character multiplex area. By setting this slice group, it is possible to easily set one redundant slice along the outer edge of the character multiplex area.

本発明の動画像符号化装置では、前記動画像全体を対象とするビデオオブジェクトに属する動画像データを符号化するオブジェクト符号化手段を備え、前記オブジェクト符号化手段は、前記文字多重領域を対象とする文字多重領域ビデオオブジェクトに属する動画像データをさらに符号化することが好ましい。   The moving image encoding apparatus of the present invention further comprises object encoding means for encoding moving image data belonging to a video object for the entire moving image, and the object encoding means targets the character multiplexed region. It is preferable to further encode the moving image data belonging to the character multi-region video object.

この構成によれば、文字多重領域を対象とする文字多重領域ビデオオブジェクトに属する動画像データがさらに符号化される。このため、文字多重領域に属する動画像データを、文字多重領域以外の領域に属する動画像データよりも冗長に符号化することができ、従って、文字多重領域を含む通常スライスの全体を冗長スライスとして符号化する従来の構成に比べて、文字多重領域内の動画像データの冗長符号化によるオーバーヘッドを低減することができる。   According to this configuration, the moving image data belonging to the character multiplex area video object for the character multiplex area is further encoded. For this reason, moving image data belonging to the character multiplex region can be encoded more redundantly than moving image data belonging to regions other than the character multiplex region, and therefore, the entire normal slice including the character multiplex region is made a redundant slice. Compared to the conventional configuration of encoding, overhead due to redundant encoding of moving image data in a character multiplex region can be reduced.

また、複数のマクロブロックからなる冗長スライスは、矩形形状の文字多重領域に適用されるが、ビデオオブジェクトは、画面を構成する1つ1つの対象物を符号化の単位にするので、矩形形状の文字多重領域のみならず、任意形状の文字多重領域に対しても適用することができる。   In addition, a redundant slice composed of a plurality of macroblocks is applied to a rectangular character multiplex region. However, since a video object uses each object constituting the screen as an encoding unit, The present invention can be applied not only to a character multiplex region but also to an arbitrarily shaped character multiplex region.

本発明の動画像符号化装置は、以上のように、文字多重領域の外縁に沿って前記文字多重領域に重なる冗長領域に属する動画像データを、冗長領域以外の領域に属する動画像データよりも冗長に可変長符号化するものである。   As described above, the moving image encoding apparatus according to the present invention allows moving image data belonging to a redundant area that overlaps the character multiplexed area along the outer edge of the character multiplexed area to be different from moving image data belonging to an area other than the redundant area. Redundant variable-length encoding is performed.

このため、文字多重領域を含む通常スライスの全体の動画像データを冗長に可変長符号化する従来の構成に比べて、可変長符号化の冗長性に起因するオーバーヘッドを低減することができ、従って、動画像符号化データの伝送符号量を低減することができるとともに、通常スライスに割り当てる符号量を確保することができる。   For this reason, compared to the conventional configuration in which the entire moving image data of the normal slice including the character multiplex area is redundantly variable-length encoded, overhead due to the redundancy of variable-length encoding can be reduced. In addition, the transmission code amount of moving image encoded data can be reduced, and the code amount allocated to the normal slice can be secured.

それゆえ、動画像符号化データの伝送効率と復号時の画質とを良好に維持しながら、文字多重領域に属する符号化データの復号エラーを隠蔽することができる動画像符号化装置を提供できるという効果を奏する。   Therefore, it is possible to provide a moving picture coding apparatus capable of concealing a decoding error of coded data belonging to a character multiplex area while maintaining good transmission efficiency of moving picture coded data and image quality at the time of decoding. There is an effect.

本明細書において、「スライス」とは、複数個のマクロブロック(16×16画素のブロック)を有して符号化処理の単位になる領域をいい、通常、ピクチャ(画面)の右端に達すると1行下の左端に連続する。「通常スライス」とは、GOP(Group of Pictures)の中の1枚のピクチャ(画面)を分割したスライスをいう。「冗長スライス」とは、通常スライスとは別個にピクチャ(画面)の一部または全部を符号化するためのスライスをいう。   In this specification, a “slice” refers to an area having a plurality of macroblocks (blocks of 16 × 16 pixels) and serving as a unit of encoding processing, and normally reaches the right end of a picture (screen). Continuing to the left end one line down. “Normal slice” refers to a slice obtained by dividing one picture (screen) in GOP (Group of Pictures). A “redundant slice” refers to a slice for encoding a part or all of a picture (screen) separately from a normal slice.

(実施の形態1)
本発明の一実施形態について図1ないし図11に基づいて説明すれば、以下の通りである。動画像符号化装置1は、文字多重領域検出部2を備える。文字多重領域検出部2は、例えばYUV4:2:0のフォーマットに基づく動画像を表す動画像データに基づいて、文字多重領域を検出して文字多重領域情報3を生成し、この文字多重領域情報3を動画像データとともに冗長スライス設定部4に出力する。
(Embodiment 1)
An embodiment of the present invention will be described with reference to FIGS. 1 to 11 as follows. The moving image encoding apparatus 1 includes a character multiple region detection unit 2. The character multiple region detection unit 2 detects the character multiple region based on moving image data representing a moving image based on the YUV 4: 2: 0 format, for example, and generates character multiple region information 3. 3 is output to the redundant slice setting unit 4 together with the moving image data.

冗長スライス設定部4は、文字多重領域情報3によって表される文字多重領域の外縁に沿って文字多重領域に重なる冗長スライスを設定し、この冗長スライスの位置を特定する冗長スライス位置情報5を生成するとともに、文字多重領域検出部2から受け取った動画像データをマクロブロック単位で変換部7に出力する。   The redundant slice setting unit 4 sets a redundant slice that overlaps the character multiplex area along the outer edge of the character multiplex area represented by the character multiplex area information 3, and generates redundant slice position information 5 that specifies the position of the redundant slice. At the same time, the moving image data received from the character multiple region detection unit 2 is output to the conversion unit 7 in units of macroblocks.

変換部7は、動画像データをDCT等により周波数領域の動画像データに変換して量子化部8に与える。動画像符号化装置1は、レート制御部9を備える。レート制御部9は、量子化部8のための量子化パラメータを設定するとともに、動画像データによって表される動画像を帯状に分割した通常スライスを設定する。   The conversion unit 7 converts the moving image data into frequency-domain moving image data by DCT or the like and supplies the converted data to the quantization unit 8. The moving image encoding apparatus 1 includes a rate control unit 9. The rate control unit 9 sets a quantization parameter for the quantization unit 8 and sets a normal slice obtained by dividing the moving image represented by the moving image data in a band shape.

量子化部8は、レート制御部9によって設定された量子化パラメータに従って、変換後の動画像データを量子化して可変長符号化部6に供給する。可変長符号化部6は、レート制御部によって設定された通常スライス単位で、各通常スライスに属する動画像データを符号化して符号化ビットストリームとして伝送部10に与えるとともに、冗長スライス設定部4によって生成された冗長スライス位置情報5によって特定される冗長スライスに属する動画像データをさらに符号化して符号化ビットストリームとして伝送部10に与える。   The quantization unit 8 quantizes the converted moving image data according to the quantization parameter set by the rate control unit 9 and supplies the quantized moving image data to the variable length coding unit 6. The variable length encoding unit 6 encodes moving image data belonging to each normal slice in units of normal slices set by the rate control unit and provides the encoded bit stream to the transmission unit 10, while the redundant slice setting unit 4 The moving image data belonging to the redundant slice specified by the generated redundant slice position information 5 is further encoded and provided to the transmission unit 10 as an encoded bit stream.

伝送部10は、可変長符号化部6によって符号化された各通常スライスに属する動画像データを復号装置17に伝送するとともに、冗長スライスに属する動画像データをさらに伝送する。動画像符号化装置1には、受信部11が設けられている。受信部11は、文字多重領域に属する動画像データの復号エラー通知を復号装置17から受信する。   The transmission unit 10 transmits the moving image data belonging to each normal slice encoded by the variable length encoding unit 6 to the decoding device 17 and further transmits the moving image data belonging to the redundant slice. The moving image encoding apparatus 1 is provided with a receiving unit 11. The receiving unit 11 receives a decoding error notification of moving image data belonging to the character multiplex area from the decoding device 17.

このように構成された動画像符号化装置1の動作を説明する。図2は、動画像符号化装置1の動作を示すフローチャートである。まず、文字多重領域検出部2は、動画像を表す動画像データに基づいて文字多重領域を検出する(ステップS21)。   The operation of the moving picture encoding apparatus 1 configured as described above will be described. FIG. 2 is a flowchart showing the operation of the moving image encoding apparatus 1. First, the character multiple region detection unit 2 detects a character multiple region based on moving image data representing a moving image (step S21).

図3(a)は文字多重領域検出部2に入力される動画像12を示す図であり、図3(b)は文字多重領域検出部2が生成する文字多重領域情報3を示す図である。   FIG. 3A is a diagram showing the moving image 12 input to the character multi-region detection unit 2, and FIG. 3B is a diagram showing the character multi-region information 3 generated by the character multi-region detection unit 2. .

文字多重領域検出部2は、例えば、入力された動画像12を周波数領域のデータに変換し、高周波成分が多く含まれているマクロブロック13を文字多重領域として検出する。図中の破線は、16×16画素からなるマクロブロック13の境界を示す。ここで、文字多重領域情報とはマクロブロック13ごとに設定される属性値であり、“1”(マクロブロック13に文字が含まれる)または“0”(マクロブロック13に文字が含まれない)をとる。文字多重領域検出部2は、マクロブロック13ごとに文字が含まれているか否かを判定し、マクロブロック13の属性値として“1”または“0”を設定する。そして、すべてのマクロブロック13の属性値をまとめて文字多重領域情報3として冗長スライス設定部4に出力する。図3(a)(b)の例では、画面下部の文字列“あいうえお かきくけこ”を含むマクロブロック13の属性値が“1”となり、それ以外のマクロブロック13の属性値は“0”となる。   For example, the character multiplex area detection unit 2 converts the input moving image 12 into frequency domain data, and detects a macroblock 13 containing a lot of high frequency components as a character multiplex area. The broken line in the figure indicates the boundary of the macro block 13 composed of 16 × 16 pixels. Here, the character multiplex area information is an attribute value set for each macro block 13, and is “1” (characters are included in the macro block 13) or “0” (characters are not included in the macro block 13). Take. The character multiple region detection unit 2 determines whether or not a character is included in each macroblock 13 and sets “1” or “0” as the attribute value of the macroblock 13. Then, the attribute values of all the macroblocks 13 are collectively output to the redundant slice setting unit 4 as the character multiplex area information 3. In the example shown in FIGS. 3A and 3B, the attribute value of the macro block 13 including the character string “Aiueo Kakikuke” at the bottom of the screen is “1”, and the attribute values of the other macro blocks 13 are “0”. It becomes.

次に、冗長スライス設定部4は、文字多重領域情報3によって特定される文字多重領域の外縁に沿って文字多重領域に重なる冗長スライスを設定し(図2:ステップS22)、この冗長スライスの位置を特定する冗長スライス位置情報5を生成する。   Next, the redundant slice setting unit 4 sets a redundant slice that overlaps the character multiplex area along the outer edge of the character multiplex area specified by the character multiplex area information 3 (FIG. 2: step S22), and the position of this redundant slice. Redundant slice position information 5 for identifying is generated.

図4(a)は冗長スライス設定部4に入力される動画像12を示す図であり、図4(b)は冗長スライス設定部4によって設定される冗長スライス15を説明するための図である。   FIG. 4A is a diagram showing the moving image 12 input to the redundant slice setting unit 4, and FIG. 4B is a diagram for explaining the redundant slice 15 set by the redundant slice setting unit 4. .

図4(a)に示される矢印14は、動画像12を構成するマクロブロック13を符号化する順序を示している。矢印14で示されるように、実施の形態1では動画像12の左上のマクロブロック13からラスタスキャン順に符号化する。冗長スライス設定部4は、矢印14によって示されるマクロブロック13の符号化順序に従って動画像データをマクロブロック13単位で変換部7に出力するとともに、文字多重領域検出部2から出力される文字多重領域情報3(図3(b))と、矢印14によって示されるマクロブロック13の符号化順序(図4(a))とに基づいて、冗長スライス15を文字多重領域のみによって構成するように、文字多重領域の冗長スライスの開始マクロブロックと終了マクロブロックとを決定する。   An arrow 14 shown in FIG. 4A indicates the order in which the macroblocks 13 constituting the moving image 12 are encoded. As indicated by the arrow 14, in the first embodiment, encoding is performed in the raster scan order from the macroblock 13 at the upper left of the moving image 12. The redundant slice setting unit 4 outputs the moving image data in units of macroblocks 13 to the conversion unit 7 in accordance with the encoding order of the macroblocks 13 indicated by the arrow 14, and the character multiplexed region output from the character multiplexed region detection unit 2 Based on the information 3 (FIG. 3B) and the coding order of the macroblock 13 indicated by the arrow 14 (FIG. 4A), the redundant slice 15 is configured by only the character multiplex area. The start macroblock and the end macroblock of the redundant slice in the multi-region are determined.

具体的には、図3(b)の文字多重領域情報3を、図4(a)の矢印14で示した符号化順序に従ってスキャンし、所定の条件を満たすマクロブロック13を冗長スライスの開始マクロブロックまたは終了マクロブロックとする。そして、開始マクロブロックのマクロブロック番号及び終了マクロブロックのマクロブロック番号を冗長スライス位置情報5として可変長符号化部6に通知する。ここで、マクロブロック番号とは、図4(b)に示すように、動画像12の左上のマクロブロックからラスタスキャン順に0、1、2、・・・と付した番号である。実施の形態1に示す例では、マクロブロック13の符号化順序は、マクロブロック番号の順序と一致しているが、後述する任意スライス順序の場合のように、マクロブロック13の符号化順序はマクロブロック番号の順序と異なる場合もある。   Specifically, the character multiplex area information 3 in FIG. 3B is scanned in accordance with the encoding order indicated by the arrow 14 in FIG. 4A, and the macroblock 13 satisfying a predetermined condition is selected as the start macro of the redundant slice. Block or end macroblock. Then, the macro block number of the start macro block and the macro block number of the end macro block are notified as the redundant slice position information 5 to the variable length coding unit 6. Here, the macroblock number is a number assigned with 0, 1, 2,... In the order of raster scanning from the upper left macroblock of the moving image 12, as shown in FIG. In the example shown in the first embodiment, the encoding order of the macroblock 13 matches the order of the macroblock numbers, but the encoding order of the macroblock 13 is the macro as in the case of the arbitrary slice order described later. The order of block numbers may be different.

図5は、冗長スライス設定部4の動作を示すフローチャートであり、文字多重領域の冗長スライスの設定方法を示す処理フローが示されている。図5において、iはマクロブロック13のスキャン順序を示し、MB(i)は、i番目にスキャンするマクロブロック13を示し、attr(X)は、X番目にスキャンするマクロブロック13の属性値(文字多重領域情報)を示している。   FIG. 5 is a flowchart showing the operation of the redundant slice setting unit 4 and shows a processing flow showing a redundant slice setting method in the character multiplex area. In FIG. 5, i indicates the scanning order of the macroblock 13, MB (i) indicates the i-th scanned macroblock 13, and attr (X) indicates the Xth-scanned macroblock 13 attribute value ( Character multi-region information).

まず、初期スキャンマクロブロック(MB(0))を設定する(i=0)(ステップS51)。次に、「i−1番目にスキャンするマクロブロック(MB(i−1))の属性値(attr(MB(i−1)))=“0”」であって、かつ「i番目にスキャンするマクロブロック(MB(i))の属性値(attr(MB(i)))=“1”」であるかどうかを判定する(ステップS52)。真である場合には(ステップS52においてYES)、MB(i)を冗長スライスの開始マクロブロックに設定する(ステップS53)。   First, an initial scan macroblock (MB (0)) is set (i = 0) (step S51). Next, the attribute value (attr (MB (i−1))) = “0” of the macro block (MB (i−1)) to be scanned i−1 and “ith scan” It is determined whether or not the attribute value (attr (MB (i))) = “1” of the macro block (MB (i)) to be executed (step S52). If true (YES in step S52), MB (i) is set as the start macroblock of the redundant slice (step S53).

「i−1番目にスキャンするマクロブロック(MB(i−1))の属性値(attr(MB(i−1)))=“0”」であって、かつ「i番目にスキャンするマクロブロック(MB(i))の属性値(attr(MB(i)))=“1”」でない場合(ステップS52においてNO)、またはMB(i)を冗長スライスの開始マクロブロックに設定した場合(ステップS53)には、「i番目にスキャンするマクロブロック(MB(i))の属性値(attr(MB(i)))=“1”」であって、かつ「i+1番目にスキャンするマクロブロック(MB(i+1))の属性値(attr(MB(i+1)))=“0”」であるかどうかを判定する(ステップS54)。真である場合には(ステップS54においてYES)、MB(i)を冗長スライスの終了マクロブロックに設定する(ステップS55)。   The attribute value (attr (MB (i−1))) = “0” of the “i−1th scanned macroblock (MB (i−1))” and the “ith scanned macroblock (MB (i)) attribute value (attr (MB (i))) is not “1” (NO in step S52), or MB (i) is set as the start macroblock of the redundant slice (step In S53), the attribute value (attr (MB (i))) = “1” of the i-th scanned macroblock (MB (i)) and “i + 1th scanned macroblock ( It is determined whether or not the attribute value (attr (MB (i + 1))) = “0” of MB (i + 1)) (step S54). If true (YES in step S54), MB (i) is set as the end macroblock of the redundant slice (step S55).

「i番目にスキャンするマクロブロック(MB(i))の属性値(attr(MB(i)))=“1”」であって、かつ「i+1番目にスキャンするマクロブロック(MB(i+1))の属性値(attr(MB(i+1)))=“0”」でない場合(ステップS54においてNO)、またはMB(i)を冗長スライスの終了マクロブロックに設定した場合(ステップS55)には、次のマクロブロックを設定する(i++)(ステップS56)。そして、MB(i)が動画像の最後のマクロブロックであるか否かを判定する(ステップS57)。MB(i)が動画像の最後のマクロブロックである場合(ステップS57においてYES)、処理を終了し、そうでない場合(ステップS57においてNO)には、ステップS52に戻り処理を継続する。   “Attribute value (attr (MB (i))) =“ 1 ”of the i-th scanned macroblock (MB (i))” and “i + 1th scanned macroblock (MB (i + 1))” If the attribute value (attr (MB (i + 1))) is not "0" (NO in step S54), or if MB (i) is set as the end macroblock of the redundant slice (step S55), Is set (i ++) (step S56). Then, it is determined whether MB (i) is the last macroblock of the moving image (step S57). If MB (i) is the last macroblock of the moving image (YES in step S57), the process ends. If not (NO in step S57), the process returns to step S52 to continue the process.

上記冗長スライスの設定方法を図3(b)に示す文字多重領域情報3に適用すると、図4(b)に示すように、番号79のマクロブロックが冗長スライス15の開始マクロブロックになり、番号85のマクロブロックが冗長スライス15の終了マクロブロックになり、番号79・80・81・82・83・84・85の7個のマクロブロックが1つの冗長スライス15になるように、冗長スライス15の開始マクロブロック番号=79と、冗長スライス15の終了マクロブロック番号=85とが冗長スライス位置情報5(図1)として可変長符号化部6に通知される。   When the redundant slice setting method is applied to the character multiplex area information 3 shown in FIG. 3B, the macroblock number 79 becomes the start macroblock of the redundant slice 15 as shown in FIG. 85 macroblocks become the end macroblock of the redundant slice 15, and seven macroblocks numbered 79, 80, 81, 82, 83, 84, and 85 become one redundant slice 15. The start macroblock number = 79 and the end macroblock number = 85 of the redundant slice 15 are notified to the variable length coding unit 6 as redundant slice position information 5 (FIG. 1).

このように、文字多重領域の動画像データを冗長スライスとして符号化する場合に、文字多重領域の外縁に沿って文字多重領域に重なるように冗長スライスを設定する。このため、冗長スライスにより符号化する動画像データを、文字多重領域に属するマクロブロックの動画像データのみに限定することができ、従って、冗長スライスによるオーバーヘッドを最小限に抑えることができる。   In this way, when moving image data in a character multiplex area is encoded as a redundant slice, the redundant slice is set so as to overlap the character multiplex area along the outer edge of the character multiplex area. For this reason, the moving image data to be encoded by the redundant slice can be limited to only the moving image data of the macro block belonging to the character multiplex region, and therefore the overhead due to the redundant slice can be minimized.

図6は、可変長符号化部6による符号化の単位となる通常スライス16a・16b・16c・16d・16e・16f・16g及び冗長スライス15を示す図である。レート制御部9は、動画像12を帯状に分割した通常スライス16a・16b・16c・16d・16e・16f・16gを設定する。通常スライス16a・16b・16c・16d・16e・16f・16gは、この順番に動画像12の左上からラスタスキャン順で可変長符号化部6によって符号化される。通常スライス16eの一部には、冗長スライス設定部4により冗長スライス15が設定されている。可変長符号化部6は、レート制御部9によって設定された通常スライス単位で、量子化部8によって量子化された動画像データを可変長符号化して符号化ビットストリームとして伝送部10に与える(図2:ステップS23)。   FIG. 6 is a diagram showing the normal slices 16a, 16b, 16c, 16d, 16e, 16f, and 16g and the redundant slice 15 that are units of coding by the variable length coding unit 6. The rate control unit 9 sets normal slices 16a, 16b, 16c, 16d, 16e, 16f, and 16g obtained by dividing the moving image 12 into strips. The normal slices 16a, 16b, 16c, 16d, 16e, 16f, and 16g are encoded by the variable length encoding unit 6 in this order from the upper left of the moving image 12 in the raster scan order. The redundant slice 15 is set by the redundant slice setting unit 4 in a part of the normal slice 16e. The variable length encoding unit 6 performs variable length encoding on the moving image data quantized by the quantization unit 8 in units of normal slices set by the rate control unit 9, and provides the encoded bit stream to the transmission unit 10 ( FIG. 2: Step S23).

可変長符号化部6による通常スライス単位での符号化において必要なデータとしては、通常スライスの先頭に位置するスタートコード、通常スライスの先頭のマクロブロック番号、通常スライスタイプ(Iスライス、Pスライス、Bスライス等)等が挙げられる。通常スライス単位での符号化処理におけるマクロブロック単位の符号化処理において必要なデータとしては、マクロブロックタイプ(イントラ符号化モード、インター符号化モード)、動きベクトル(インター符号化の場合)、各ブロックの量子化データ等が挙げられる。なお、詳細については、非特許文献1および非特許文献2に記載されている。   Data necessary for encoding in units of normal slices by the variable length encoding unit 6 includes a start code located at the head of the normal slice, a macroblock number at the head of the normal slice, and a normal slice type (I slice, P slice, B slice etc.). Data required for encoding processing in units of macroblocks in encoding processing in units of normal slices includes macroblock types (intra coding mode and inter coding mode), motion vectors (in the case of inter coding), and each block. Quantized data and the like. Details are described in Non-Patent Document 1 and Non-Patent Document 2.

そして、可変長符号化した通常スライスに冗長スライス15が設定されているか否かを判定する(図2:ステップS24)。冗長スライス15が設定されていると判定した場合には(ステップS24においてYES)、可変長符号化部6は冗長スライス15に属する動画像データを可変長符号化して符号化ビットストリームとして伝送部10に与える(図2:ステップS25)。   Then, it is determined whether or not the redundant slice 15 is set in the variable-length encoded normal slice (FIG. 2: step S24). If it is determined that the redundant slice 15 has been set (YES in step S24), the variable length coding unit 6 performs variable length coding on the moving image data belonging to the redundant slice 15 as a coded bit stream, and the transmission unit 10 (FIG. 2: Step S25).

冗長スライス15が設定されていないと判定した場合(ステップS24においてNO)、または冗長スライス15を可変長符号化した場合(ステップS25)には、動画像(1フレーム)内の全通常スライスの符号化が完了した(フレームエンド)か否かを判定する(ステップS26)。フレームエンドでない場合(ステップS26においてNO)にはステップS23へ戻る。フレームエンドである場合には(ステップS26においてYES)、伝送部10が、可変長符号化部6により通常スライス単位で可変長符号化された動画像データと、可変長符号化部6により可変長符号化された冗長スライスに属する動画像データとを復号装置17へ伝送する(ステップS27)。   When it is determined that the redundant slice 15 is not set (NO in step S24), or when the redundant slice 15 is variable-length encoded (step S25), the codes of all normal slices in the moving image (one frame) It is determined whether or not conversion is completed (frame end) (step S26). If it is not the frame end (NO in step S26), the process returns to step S23. If it is the frame end (YES in step S26), the transmission unit 10 uses the variable-length encoding unit 6 to perform variable-length encoding of the moving image data and the variable-length encoding unit 6 to change the variable length. The encoded moving image data belonging to the redundant slice is transmitted to the decoding device 17 (step S27).

そして、すべてのフレームの符号化が完了した(シーケンスエンド)か否かを判定する(ステップS28)。シーケンスエンドでないと判定した場合には(ステップS28においてNO)、ステップS21へ戻る。シーケンスエンドであると判定した場合には全体の処理を終了する。   Then, it is determined whether or not all frames have been encoded (sequence end) (step S28). If it is determined that it is not the sequence end (NO in step S28), the process returns to step S21. If it is determined that the sequence is ended, the entire process is terminated.

なお、図2では、1個の冗長スライスは、常に1個の通常スライスの中に含まれている例を説明したが、本発明はこれに限定されない。1個の冗長スライスが、複数個の通常スライスに跨るように配置されていてもよい。この場合は、同じ冗長スライスを複数回にわたって重複してステップS25で符号化することはないものとする。   Although FIG. 2 illustrates an example in which one redundant slice is always included in one normal slice, the present invention is not limited to this. One redundant slice may be arranged so as to straddle a plurality of normal slices. In this case, it is assumed that the same redundant slice is not duplicated multiple times and encoded in step S25.

図7は、動画像符号化装置1の動作の変形例を示すフローチャートである。図2のフローチャートにおいて前述した構成要素と同一の構成要素には同一の参照符号を付し、その詳細な説明は省略する。   FIG. 7 is a flowchart showing a modified example of the operation of the moving image encoding apparatus 1. In the flowchart of FIG. 2, the same components as those described above are denoted by the same reference numerals, and detailed description thereof is omitted.

図2を参照して前述したように冗長スライス設定部4によって設定された冗長スライスを無条件に符号化するのではなく、復号装置17等の外部の手段によって復号エラーを通知された場合にのみ冗長スライスに属する動画像データを符号化するようにしてもよい。   As described above with reference to FIG. 2, the redundant slice set by the redundant slice setting unit 4 is not unconditionally encoded, but only when a decoding error is notified by an external means such as the decoding device 17. Video data belonging to a redundant slice may be encoded.

まず、文字多重領域検出部2により文字多重領域を検出し(ステップS21)、冗長スライス設定部4により冗長スライスを設定する(ステップS22)。そして、可変長符号化部6により通常スライス単位で動画像データを可変長符号化する(ステップS23)。次に、フレームエンドか否かを判定し(ステップS26)、フレームエンドでない場合(ステップS26においてNO)にはステップS23へ戻る。フレームエンドである場合には(ステップS26においてYES)、通常スライス単位で符号化した1フレーム分の動画像データを復号装置へ伝送する(ステップS71)。   First, a character multiplex area is detected by the character multiplex area detection unit 2 (step S21), and a redundant slice is set by the redundant slice setting unit 4 (step S22). Then, the variable length encoding unit 6 performs variable length encoding on the moving image data in units of normal slices (step S23). Next, it is determined whether or not it is a frame end (step S26). If it is not a frame end (NO in step S26), the process returns to step S23. If it is the frame end (YES in step S26), one frame of moving image data encoded in units of normal slices is transmitted to the decoding device (step S71).

その後、復号装置へ伝送した通常スライスに属する動画像データのうちの文字多重領域に属する動画像データの復号エラー通知が受信部11により受信されているか否かを判定する(ステップS72)。   Thereafter, it is determined whether or not a decoding error notification of moving image data belonging to the character multiplex area among moving image data belonging to the normal slice transmitted to the decoding device has been received by the receiving unit 11 (step S72).

復号エラー通知が受信されている判定したときは(ステップS72においてYES)、可変長符号化部6は、冗長スライス設定部4によって設定された冗長スライスに属する動画像データを符号化し、伝送部10は、可変長符号化部6によって符号化された冗長スライスに属する動画像データを復号装置17に伝送する(ステップS73)。   When it is determined that a decoding error notification has been received (YES in step S72), the variable length encoding unit 6 encodes moving image data belonging to the redundant slice set by the redundant slice setting unit 4, and transmits the transmission unit 10 Transmits the moving image data belonging to the redundant slice encoded by the variable length encoding unit 6 to the decoding device 17 (step S73).

そして、シーケンスエンドか否かを判定し(ステップS28)、シーケンスエンドでないと判定した場合には(ステップS28においてNO)、ステップS21へ戻り、シーケンスエンドであると判定した場合には(ステップS28においてYES)、全体の処理を終了する。   Then, it is determined whether or not it is a sequence end (step S28). If it is determined that it is not a sequence end (NO in step S28), the process returns to step S21, and if it is determined that it is a sequence end (in step S28). YES), the entire process is terminated.

この構成によれば、復号エラーが発生しなかった場合には冗長スライスに属する動画像データを符号化しないので、通常スライス単位で符号化する動画像データに対して、より多くの符号量を割り当てることができる。このため、復号装置により復号した動画像の画質を向上させることができる。   According to this configuration, when no decoding error occurs, moving image data belonging to a redundant slice is not encoded, so a larger amount of code is allocated to moving image data encoded in units of normal slices. be able to. For this reason, the image quality of the moving image decoded by the decoding device can be improved.

図8(a)は冗長スライス設定部4に入力される動画像の他の例を示す図であり、図8(b)は冗長スライス設定部4によって設定される冗長スライスの他の例を説明するための図である。図9は、任意順序により符号化される通常スライスを説明するための図である。図6と同様に、動画像12aを帯状に分割した通常スライス16a・16b・16c・16d・16e・16f・16gが動画像12aの左上からラスタスキャン順で配置されているが、任意の位置の通常スライスから符号化、伝送される。図9に示す例では、冗長スライス15aが通常スライス16eに設定され、冗長スライス15bが通常スライス16bに設定されている。まず、通常スライス16e・16bをこの順番に符号化、伝送し、その後、通常スライス16a・16c・16d・16f・16gをこの順番に符号化、伝送する。すなわち、冗長スライス15a・15bをそれぞれ有する通常スライス16e・16bに属する動画像データを、冗長スライス15a・15bを有しない通常スライスに属する動画像データよりも先に符号化、伝送する。スライスの符号化時には、スライスヘッダにスライスの先頭マクロブロック番号が符号化されるため、任意の順序で通常スライスを符号化、伝送しても、正しく復号することができる。   FIG. 8A is a diagram illustrating another example of a moving image input to the redundant slice setting unit 4, and FIG. 8B illustrates another example of the redundant slice set by the redundant slice setting unit 4. It is a figure for doing. FIG. 9 is a diagram for explaining normal slices encoded in an arbitrary order. As in FIG. 6, normal slices 16a, 16b, 16c, 16d, 16e, 16f, and 16g obtained by dividing the moving image 12a into strips are arranged in the raster scan order from the upper left of the moving image 12a. It is encoded and transmitted from a normal slice. In the example shown in FIG. 9, the redundant slice 15a is set as the normal slice 16e, and the redundant slice 15b is set as the normal slice 16b. First, the normal slices 16e and 16b are encoded and transmitted in this order, and then the normal slices 16a, 16c, 16d, 16f, and 16g are encoded and transmitted in this order. That is, the moving image data belonging to the normal slices 16e and 16b each having the redundant slices 15a and 15b is encoded and transmitted before the moving image data belonging to the normal slice not having the redundant slices 15a and 15b. When a slice is encoded, the first macroblock number of the slice is encoded in the slice header, so that even if a normal slice is encoded and transmitted in an arbitrary order, it can be correctly decoded.

図8(a)(b)では、2個の文字多重領域が検出された動画像12aの例を示している。任意の順序により通常スライスを符号化する任意スライス順序を用いて、文字列“かきくけこ”を表示する文字多重領域を含む冗長スライス15bが設定された通常スライス16bと、文字列“あいうえお”を表示する文字多重領域を含む冗長スライス15aが設定された通常スライス16eとを、それ以外の通常スライスよりも先に符号化、伝送する。   FIGS. 8A and 8B show an example of a moving image 12a in which two character multiplexed areas are detected. The normal slice 16b in which the redundant slice 15b including the character multiplex area for displaying the character string “Kakikakeko” is set and the character string “Aiueo” using the arbitrary slice order that encodes the normal slice according to the arbitrary order. The normal slice 16e in which the redundant slice 15a including the character multiplex area to be displayed is set is encoded and transmitted before the other normal slices.

図10は動画像符号化装置1の動作の他の変形例を示すフローチャートであり、図11は動画像符号化装置1と復号装置17との間の送受信タイミングを示す図である。   FIG. 10 is a flowchart showing another modified example of the operation of the moving picture encoding apparatus 1, and FIG. 11 is a diagram showing transmission / reception timing between the moving picture encoding apparatus 1 and the decoding apparatus 17.

まず、文字多重領域検出部2により文字多重領域を検出し(ステップS21)、冗長スライス設定部4により冗長スライス15a・15bを設定する(ステップS22)。   First, a character multiplex area is detected by the character multiplex area detection unit 2 (step S21), and redundant slices 15a and 15b are set by the redundant slice setting unit 4 (step S22).

そして、文字多重領域に相当する冗長スライス15aを含む通常スライス16eと、もう1個の文字多重領域に相当する冗長スライス15bを含む通常スライス16bとを、これら以外の通常スライスよりも先に、可変長符号化部6によって符号化し、符号化データ18・19を生成し、符号化データ18・19を伝送部10により復号装置17に伝送する(ステップS101)。   Then, the normal slice 16e including the redundant slice 15a corresponding to the character multiplex area and the normal slice 16b including the redundant slice 15b corresponding to the other character multiplex area are variable before the other normal slices. Encoding is performed by the long encoding unit 6 to generate encoded data 18 and 19, and the encoded data 18 and 19 are transmitted to the decoding device 17 by the transmission unit 10 (step S101).

次に、通常スライス16eまたは通常スライス16bの文字多重領域に属する動画像データの復号エラー通知を含む復号結果信号20・21を受信部11が復号装置17から受信したか否かを判定する(ステップS102)。復号エラー通知を受信したと判定したときは(ステップS102においてYES)、通常スライス16eに設定された冗長スライス15aまたは通常スライス16bに設定された冗長スライス15bに属する動画像データを可変長符号化部6により符号化した符号化データ22・23を生成し、符号化データ22・23を伝送部10により復号装置17に伝送する(ステップS103)。   Next, it is determined whether or not the reception unit 11 has received the decoding result signals 20 and 21 including the decoding error notification of the moving image data belonging to the character multiplex region of the normal slice 16e or the normal slice 16b from the decoding device 17 (Step S1). S102). When it is determined that the decoding error notification has been received (YES in step S102), the variable length coding unit converts the moving image data belonging to the redundant slice 15a set to the normal slice 16e or the redundant slice 15b set to the normal slice 16b. 6 is generated, and the encoded data 22 and 23 are transmitted to the decoding device 17 by the transmission unit 10 (step S103).

復号エラー通知を受信しないと判定したとき(ステップS102においてNO)、または冗長スライス15aまたは冗長スライス15bに属する動画像データを符号化して伝送したとき(ステップS103)は、残りの通常スライス16a・16c・16d・16f・16gに属する動画像データを符号化して復号装置17に伝送する(ステップS104)。   When it is determined that a decoding error notification is not received (NO in step S102), or when moving image data belonging to the redundant slice 15a or the redundant slice 15b is encoded and transmitted (step S103), the remaining normal slices 16a and 16c are transmitted. The moving image data belonging to 16d, 16f, and 16g is encoded and transmitted to the decoding device 17 (step S104).

次に、フレームエンドか否かを判定し(ステップS26)、フレームエンドでない場合(ステップS26においてNO)にはステップS101へ戻る。フレームエンドである場合には(ステップS26においてYES)、シーケンスエンドか否かを判定する(ステップS28)。シーケンスエンドでないと判定した場合には(ステップS28においてNO)、ステップS21へ戻る。シーケンスエンドであると判定した場合には(ステップS28においてYES)全体の処理を終了する。   Next, it is determined whether or not it is the frame end (step S26). If it is not the frame end (NO in step S26), the process returns to step S101. If it is a frame end (YES in step S26), it is determined whether or not it is a sequence end (step S28). If it is determined that it is not the sequence end (NO in step S28), the process returns to step S21. If it is determined that the sequence is ended (YES in step S28), the entire process is terminated.

このように、任意スライス順序を用いて、文字多重領域を含む通常スライスを、文字多重領域を含まない通常スライスよりも先に符号化、伝送することによって、文字多重領域に属する動画像データの復号エラー通知の受信の有無及び冗長スライスに属する動画像データを復号装置に伝送するか否かを、より早い時点で判定することができる。このため、あるフレームにおいて復号エラー通知を受信せずに冗長スライスを伝送しなかった場合、その冗長スライスの分の符号量を次フレームの符号化等に割り当てることができ、全体として画質を向上させることができる。   In this way, by decoding and encoding the moving image data belonging to the character multiplex region by encoding and transmitting the normal slice including the character multiplex region before the normal slice not including the character multiplex region using the arbitrary slice order. Whether or not an error notification is received and whether or not moving image data belonging to the redundant slice is transmitted to the decoding device can be determined at an earlier time point. For this reason, when a redundant slice is not transmitted without receiving a decoding error notification in a certain frame, the code amount of the redundant slice can be allocated to encoding of the next frame, and the overall image quality is improved. be able to.

なお、本発明は、上記の実施の形態に限定されるものではなく、本発明の範囲内で種々の変更が可能である。例えば、上記実施の形態では、文字多重領域検出部2によって文字多重領域を検出する例を示したが、本発明はこれに限定されない。映画やニュースの字幕等において、表示される位置があらかじめ分かっている場合には検出処理をせずに所定位置のマクロブロックの属性値を“1”に設定するようにしてもよい。あるいは、動画像符号化装置内では文字列の検出処理は行わずに、外部から冗長スライス設定部4に文字多重領域情報を直接入力するようにしてもよい。   In addition, this invention is not limited to said embodiment, A various change is possible within the scope of the present invention. For example, in the above-described embodiment, the example in which the character multiplex area detection unit 2 detects the character multiplex area has been described, but the present invention is not limited to this. In a movie, news subtitle, or the like, if the position to be displayed is known in advance, the attribute value of the macroblock at the predetermined position may be set to “1” without performing the detection process. Alternatively, the character string detection processing may be directly input from the outside to the redundant slice setting unit 4 without performing the character string detection process in the moving image encoding device.

あるいは、文字が多重された領域は、数フレームの間同じ画像データが入力されると仮定して、前フレームとの差分が小さいマクロブロックを文字多重領域として検出してもよい。   Alternatively, assuming that the same image data is input for several frames in a region where characters are multiplexed, a macroblock having a small difference from the previous frame may be detected as a character multiplexed region.

また、上記実施の形態1では、1個の文字多重領域に1個の冗長スライス15を設定する例を挙げたが、1個の冗長スライス15をさらに複数の冗長スライスに分割して設定してもよい。複数の冗長スライスに分割して分割数を増やすと、エラー耐性をより一層強化することができる。   In the first embodiment, an example in which one redundant slice 15 is set in one character multiplex area has been described. However, one redundant slice 15 is further divided into a plurality of redundant slices and set. Also good. If the number of divisions is increased by dividing into a plurality of redundant slices, error tolerance can be further enhanced.

また、例えば、文字多重領域検出部2において、図4(b)のマクロブロック番号82が文字列を含まないと判定された場合、すなわち番号82のマクロブロック属性値=“0”の場合には、番号79・80・81のマクロブロックによって1個の冗長スライスを構成し、番号83・84・85のマクロブロックによって1個の冗長スライスを構成する例を示したが、本発明はこれに限定されない。これを回避するために、図5におけるステップS52、およびステップS54の処理を以下のようにしてもよい。   Further, for example, when the character multiplex area detection unit 2 determines that the macro block number 82 in FIG. 4B does not include a character string, that is, when the macro block attribute value of the number 82 is “0”. In this example, one redundant slice is composed of macroblocks numbered 79, 80, and 81, and one redundant slice is composed of macroblocks numbered 83, 84, and 85. However, the present invention is not limited to this. Not. In order to avoid this, the processing in step S52 and step S54 in FIG. 5 may be performed as follows.

すなわち、「「i−N番目からi−1番目にスキャンするマクロブロックの属性値=“0”」であり、かつ「i番目にスキャンするマクロブロックの属性値=“1”」であるかどうかを判定する(Nは2以上の整数)。」ように、ステップS52の処理を変更するとともに、「「i番目にスキャンするマクロブロックの属性値=“1”」であり、かつ「i+1番目からi+N番目にスキャンするマクロブロックの属性値=“0”」であるかどうかを判定する(Nは2以上の整数)。」ように、ステップS54の処理を変更する。   That is, whether or not “i-Nth to i−1th scanned macroblock attribute value =“ 0 ”” and “ith scanned macroblock attribute value =“ 1 ””. (N is an integer of 2 or more). Thus, the process of step S52 is changed, and “the attribute value of the i-th scanned macroblock =“ 1 ”” and “the attribute value of the macroblock scanned from the (i + 1) th to i + Nth =“ It is determined whether it is 0 "" (N is an integer of 2 or more). As described above, the process of step S54 is changed.

これにより、文字多重領域が意図しない複数の冗長スライスに分割されてオーバーヘッドが増大することを防止することができる。   As a result, it is possible to prevent the overhead from being increased by dividing the character multiplex area into a plurality of unintended redundant slices.

また、冗長スライスを規格上サポートしていない符号化方式の場合、または、規格上は冗長スライスをサポートしているが、運用上使用できない場合等のように冗長スライスを使用することができない場合等については、文字多重領域を含む通常スライスのマクロブロックをすべてイントラ符号化(符号化済みの画像を参照せずに符号化するモード)するようにしてもよい。   In addition, when the encoding method does not support redundant slices according to the standard, or when redundant slices cannot be used because they are supported by the standard but cannot be used in operation, etc. With regard to, all the macro blocks of the normal slice including the character multiplex area may be intra-encoded (a mode in which encoding is performed without referring to an already-encoded image).

(実施の形態2)
本発明の他の実施の形態について図12ないし図14に基づいて説明すれば、以下の通りである。実施の形態2における動画像符号化装置の概略構成は図1に記載の通りであり、冗長スライス設定部4以外については実施の形態1と同様であるため説明は省略する。
(Embodiment 2)
The following will describe another embodiment of the present invention with reference to FIGS. The schematic configuration of the moving picture coding apparatus according to the second embodiment is as shown in FIG. 1. Since the configuration other than the redundant slice setting unit 4 is the same as that of the first embodiment, description thereof is omitted.

図12(a)は動画像符号化装置の他の実施の形態に設けられた冗長スライス設定部4によって設定されるスライスグループを示す図であり、12(b)は上記スライスグループの他の例を示す図である。   FIG. 12A is a diagram showing a slice group set by the redundant slice setting unit 4 provided in another embodiment of the moving image encoding apparatus, and FIG. 12B is another example of the slice group. FIG.

スライスグループは、冗長スライスへの分割を行う単位であり、複数のマクロブロックから構成されている。図12(a)(b)は、スライスグループの例を示した図である。図12(a)を参照すると、動画像12bの上辺から垂直下向きに伸びて略中央部で水平左向きに折れ曲がりさらに垂直下向きに折れ曲がって下辺に到達する折れ線によって、動画像12bが左右の領域に分割され、左側の領域をスライスグループ24aとし、右側の領域をスライスグループ24bとする方式を示している。図12(b)では、スライスグループ25aとスライスグループ25bとの2個の矩形のスライスグループを動画像12bに配置し、残りを背景のスライスグループ25cとする方式を示している。   The slice group is a unit for dividing into redundant slices, and is composed of a plurality of macro blocks. 12A and 12B are diagrams showing examples of slice groups. Referring to FIG. 12A, the moving image 12b is divided into left and right regions by a bent line that extends vertically downward from the upper side of the moving image 12b, bends horizontally to the left at a substantially central portion, and further bends vertically downward to reach the lower side. The left area is a slice group 24a, and the right area is a slice group 24b. FIG. 12B shows a method in which two rectangular slice groups of a slice group 25a and a slice group 25b are arranged in the moving image 12b, and the rest is a background slice group 25c.

冗長スライス設定部4は、文字多重領域検出部2から出力された文字多重領域情報3に基づいて、まずスライスグループを設定する。次に、設定したスライスグループに基づいて、実施の形態1で示した方法により文字多重領域に冗長スライスを設定し、マクロブロック単位で動画像データを変換部7に出力する。   The redundant slice setting unit 4 first sets a slice group based on the character multiple region information 3 output from the character multiple region detection unit 2. Next, based on the set slice group, a redundant slice is set in the character multiplex area by the method described in Embodiment 1, and moving image data is output to the conversion unit 7 in units of macroblocks.

図13(a)は冗長スライス設定部4に入力される動画像12bを示す図であり、図13(b)は冗長スライス設定部4によって設定されるスライスグループ24a・24bを説明するための図であり、図13(c)はスライスグループ24aに基づいて設定される冗長スライス26を説明するための図である。   FIG. 13A is a diagram showing a moving image 12b input to the redundant slice setting unit 4, and FIG. 13B is a diagram for explaining slice groups 24a and 24b set by the redundant slice setting unit 4. FIG. 13C is a diagram for explaining the redundant slice 26 set based on the slice group 24a.

冗長スライス設定部4に入力される動画像12bの左側には、図13(a)に示すように、2行の文字列“あいうえお かきくけこ”が縦方向に並んでいる。冗長スライス設定部4は、図13(b)に示すように、文字列“あいうえお かきくけこ”の文字多重領域を含むように動画像12bを分割した領域であるスライスグループ24aを設定する。   On the left side of the moving image 12b input to the redundant slice setting unit 4, as shown in FIG. 13 (a), two lines of character strings “Aiue Kakikakeko” are arranged in the vertical direction. As shown in FIG. 13B, the redundant slice setting unit 4 sets a slice group 24a, which is an area obtained by dividing the moving image 12b so as to include a character multiplexed area of the character string “Aiue Kakikukeko”.

次に、スライスグループ24aが、どのマクロブロックから成り立っているかを示す情報に基づいて、スライスグループ24aに含まれるマクロブロック番号0・1・2・11・12・13・22・23・24・33・34・35・44・45・55・56・66・67・77・78・88・89のマクロブロックに対して、実施の形態の図5を参照して説明した方法により、文字多重領域に冗長スライス26を設定する(図9(c)中の数字は、マクロブロック番号を示している)。   Next, based on the information indicating which macroblock the slice group 24a is composed of, the macroblock numbers 0, 1, 2, 11, 12, 13, 22, 23, 24, and 33 included in the slice group 24a are displayed. For the macroblocks of 34, 35, 44, 45, 55, 56, 66, 67, 77, 78, 88, and 89, the character multiplexing region is obtained by the method described with reference to FIG. A redundant slice 26 is set (numbers in FIG. 9C indicate macroblock numbers).

ここでは、文字列“あいうえお かきくけこ”を含むマクロブロック番号12・13・22・23・24・33・34・35・44・45・55・56のマクロブロックが1個の冗長スライス26を構成するように冗長スライス位置情報5を冗長スライス設定部4は可変長符号化部6に出力する。結果的に、冗長スライス設定部4は、スライスグループ種別(スライスグループ24aが、どのマクロブロックから成り立っているかを示す情報)と、冗長スライス26の開始マクロブロック番号=12と、冗長スライス26の終了マクロブロック番号=56とを可変長符号化部6に通知する。   Here, the macroblocks with the macro block numbers 12, 13, 22, 23, 24, 33, 34, 35, 44, 45, 55, and 56 that contain the character string “Aiueo Kakikukiko” have one redundant slice 26. The redundant slice setting unit 4 outputs the redundant slice position information 5 to the variable length encoding unit 6 so as to be configured. As a result, the redundant slice setting unit 4 determines the slice group type (information indicating which macroblock the slice group 24a is composed of), the start macroblock number of the redundant slice 26, and the end of the redundant slice 26. The variable length encoding unit 6 is notified of the macro block number = 56.

実施の形態1のようにスライスグループを用いない場合には、図13(c)の冗長スライス26に含まれる番号12・13・22・23・24・33・34・35・44・45・55・56のマクロブロックによっては1個の冗長スライスを構成することができないため、番号12から番号56までの番号12・13・14・・・・54・55・56のマクロブロックのすべてを1つの冗長スライスとするか、または、番号12・13のマクロブロックからなる冗長スライスAと、番号22・23・24のマクロブロックからなる冗長スライスBと、番号33・34・35のマクロブロックからなる冗長スライスCと、番号44・45のマクロブロックからなる冗長スライスDと、番号55・56のマクロブロックからなる冗長スライスEとの複数の冗長スライスに冗長スライス26を分割する必要がある。   When the slice group is not used as in the first embodiment, the numbers 12, 13, 22, 23, 24, 33, 34, 35, 44, 45, and 55 included in the redundant slice 26 in FIG.・ Since 56 macroblocks cannot form one redundant slice, all of the macroblocks of numbers 12, 13, 14,. Redundant slice consisting of macroblocks numbered 12 and 13; redundant slice B consisting of macroblocks numbered 22, 23 and 24; and redundancy consisting of macroblocks numbered 33, 34 and 35 Slice C, redundant slice D composed of macroblocks numbered 44 and 45, redundant slice E composed of macroblocks numbered 55 and 56, It is necessary to divide the redundant slice 26 into a plurality of redundant slice.

これに対して実施の形態2では、スライスグループ24aにより、番号12・13・22・23・24・33・34・35・44・45・55・56のマクロブロックからなる1個の冗長スライス26を構成できるので、番号12から番号56までのすべてのマクロブロックを1つの冗長スライスとする構成よりも符号量を削減できるし、冗長スライスA・B・C・D・Eの複数の冗長スライスに冗長スライス26を分割する構成と比較しても符号量を削減できる。このため、図13(a)に示すような複雑な形状の文字多重領域であっても、設定する冗長スライスを少数にして符号化することができ、その結果、冗長スライスの符号量を抑制することができ、全体として画質を向上させることができます。   On the other hand, in the second embodiment, one redundant slice 26 composed of macroblocks of numbers 12, 13, 22, 23, 24, 33, 34, 35, 44, 45, 55, and 56 is used by the slice group 24a. Therefore, the amount of codes can be reduced as compared with the configuration in which all macroblocks from No. 12 to No. 56 are made one redundant slice, and the redundant slices A, B, C, D, and E can be reduced to a plurality of redundant slices. The amount of codes can also be reduced compared with the configuration in which the redundant slice 26 is divided. For this reason, even if the character multiplex area has a complicated shape as shown in FIG. 13A, encoding can be performed with a small number of redundant slices to be set, and as a result, the code amount of the redundant slice is suppressed. Can improve the overall image quality.

図14は、スライスグループを用いた動画像符号化装置の動作を示すフローチャートである。図2のフローチャートにおいて前述した構成要素と同一の構成要素には同一の参照符号を付し、その詳細な説明は省略する。まず、文字多重領域検出部2により図13(a)に示す動画像12bの文字多重領域を検出する(ステップS21)。そして、冗長スライス設定部4により図13(b)に示すスライスグループ24aを設定する(ステップS181)。次に、スライスグループ24aに基づいて図13(c)に示す冗長スライス26を設定する(ステップS182)。   FIG. 14 is a flowchart showing the operation of the video encoding apparatus using slice groups. In the flowchart of FIG. 2, the same components as those described above are denoted by the same reference numerals, and detailed description thereof is omitted. First, the character multiplex area detector 2 detects the character multiplex area of the moving image 12b shown in FIG. 13A (step S21). Then, the slice group 24a shown in FIG. 13B is set by the redundant slice setting unit 4 (step S181). Next, the redundant slice 26 shown in FIG. 13C is set based on the slice group 24a (step S182).

その後、可変長符号化部6により通常スライス単位で動画像データを可変長符号化する(ステップS23)。そして、フレームエンドか否かを判定する(ステップS26)。フレームエンドでない場合(ステップS26においてNO)にはステップS23へ戻る。フレームエンドである場合には(ステップS26においてYES)、可変長符号化部6は冗長スライス26に属する動画像データを可変長符号化する(ステップS183)。そして、通常スライス単位で可変長符号化された動画像データと、冗長スライス26に属する可変長符号化された動画像データとを復号装置17に伝送する(ステップS184)。次に、シーケンスエンドか否かを判定する(ステップS28)。シーケンスエンドでないと判定した場合には(ステップS28においてNO)、ステップS21へ戻る。シーケンスエンドであると判定した場合には全体の処理を終了する。   Thereafter, the variable length encoding unit 6 performs variable length encoding on the moving image data in units of normal slices (step S23). Then, it is determined whether or not it is the frame end (step S26). If it is not the frame end (NO in step S26), the process returns to step S23. If it is the frame end (YES in step S26), the variable length coding unit 6 performs variable length coding on the moving image data belonging to the redundant slice 26 (step S183). Then, the moving image data variable-length encoded in normal slice units and the variable-length encoded moving image data belonging to the redundant slice 26 are transmitted to the decoding device 17 (step S184). Next, it is determined whether or not it is a sequence end (step S28). If it is determined that it is not the sequence end (NO in step S28), the process returns to step S21. If it is determined that the sequence is ended, the entire process is terminated.

なお、冗長スライス設定部がスライスグループを設定する例を示したが、スライスグループは、予め定められた複数パターンのスライスグループ群の中から選択するように構成してもよい。   In addition, although the example in which the redundant slice setting unit sets the slice group is shown, the slice group may be configured to be selected from a plurality of predetermined slice group groups.

上記した実施の形態1及び実施の形態2では、冗長スライスによって、文字多重領域の動画像データを冗長に符号化する例を示したが、本発明はこれに限定されない。例えば、オブジェクト符号化方式によって、文字多重領域の動画像データを冗長に符号化してもよい。   In the first embodiment and the second embodiment described above, the example in which the moving image data in the character multiplex area is redundantly encoded by the redundant slice has been described, but the present invention is not limited to this. For example, the moving image data in the character multiplex area may be redundantly encoded by the object encoding method.

図15は、動画像符号化装置のさらに他の実施の形態の構成を説明するための図である。MPEG−4に規定されるビデオオブジェクト単位で、文字多重領域に属する動画像データを冗長に符号化してもよい。MPEG−4においては、1個のビデオシーケンス(ビデオ画面の流れ)に複数個のビデオオブジェクト(VO)を格納することができる。図15に示す例では、各フレーム27a・27b・27c・27d・27eの全体を対象とするビデオオブジェクト28と、各フレーム中に含まれる文字多重領域29a・29b・29c・29d・29eを対象とするビデオオブジェクト30とがビデオシーケンスに格納されている。動画像符号化装置に設けられたオブジェクト符号化部が、フレーム全体を対象とするビデオオブジェクト28に属する動画像データを符号化するとともに、文字多重領域を対象とするビデオオブジェクト30に属する動画像データを符号化することにより、文字多重領域に属する動画像データを冗長に符号化することができる。なお、ビデオオブジェクトの対象となる文字多重領域の形状は、矩形形状でもよく、任意形状でもよい。   FIG. 15 is a diagram for explaining the configuration of still another embodiment of the moving picture coding apparatus. The video data belonging to the character multiplex area may be redundantly encoded in units of video objects defined in MPEG-4. In MPEG-4, a plurality of video objects (VO) can be stored in one video sequence (video screen flow). In the example shown in FIG. 15, the video object 28 that covers the entire frames 27a, 27b, 27c, 27d, and 27e, and the character multiplexing areas 29a, 29b, 29c, 29d, and 29e included in each frame are targeted. The video object 30 to be stored is stored in the video sequence. The object encoding unit provided in the moving image encoding apparatus encodes moving image data belonging to the video object 28 for the entire frame and moving image data belonging to the video object 30 for the character multiplexed region. Can be encoded redundantly for moving image data belonging to a character multiplex region. In addition, the shape of the character multiplex area | region used as the object of a video object may be a rectangular shape, and arbitrary shapes may be sufficient as it.

図16は、ビデオオブジェクトを符号化する動画像符号化装置1aの構成を示すブロック図である。前述した構成要素と同一の構成要素には同一の参照符号を付し、その詳細な説明は省略する。動画像符号化装置1aは、動画像から文字多重領域を検出する文字多重領域検出部2と、図15に示すビデオオブジェクト28(フレーム27a・27b・27c・27d・27e)の符号化を行う第1のVO符号化部161と、文字多重領域検出部2によって検出された文字多重領域に基づいて、図15に示すビデオオブジェクト30(文字多重領域29a・29b・29c・29d・29e)の符号化を行う第2のVO符号化部162と、第1のVO符号化部161によって符号化された符号化データ及び第2のVO符号化部162によって符号化された符号化データを復号装置に伝送する伝送部163とを備える。   FIG. 16 is a block diagram illustrating a configuration of a moving image encoding apparatus 1a that encodes a video object. The same components as those described above are denoted by the same reference numerals, and detailed description thereof will be omitted. The moving image encoding apparatus 1a encodes the character multiplexed region detecting unit 2 that detects a character multiplexed region from a moving image and the video object 28 (frames 27a, 27b, 27c, 27d, and 27e) shown in FIG. 15 is encoded based on the character multiplex area detected by the VO encoding unit 161 of 1 and the character multiplex area detection unit 2 (character multiplex areas 29a, 29b, 29c, 29d, and 29e) shown in FIG. The second VO encoding unit 162 that performs the processing, the encoded data encoded by the first VO encoding unit 161 and the encoded data encoded by the second VO encoding unit 162 are transmitted to the decoding device And a transmission unit 163.

上記した実施の形態1及び実施の形態2では、文字多重領域に冗長スライスを設定する例を示したが、本発明は、文字多重領域に限らず画像中の重要な領域に対して同様の処理を行う場合にも適用できる。例えば、人物の顔部分等、背景領域に比較して重要な部分に対しても本発明を適用することができる。   In the first embodiment and the second embodiment described above, an example in which a redundant slice is set in the character multiplex area has been shown. However, the present invention is not limited to the character multiplex area, and the same processing is performed for an important area in the image. It is also applicable when For example, the present invention can be applied to a portion that is more important than the background region, such as a human face portion.

人物の顔部分の符号化データにエラーが混入した場合にも、文字多重領域にエラーが混入した場合と同様に、前フレームの同じ位置のマクロブロックが対応する人物の顔部分でない場合、正しく表示できず、さらに、人物の顔部分は、現フレームの周辺画素では代用しにくいという課題が生じるため、人物の顔部分に本発明を適用すると、文字多重領域に本発明を適用したときの効果と同様の効果が得られる。   Even if an error is mixed in the encoded data of the person's face part, as in the case where an error is mixed in the character multiplex area, if the macroblock at the same position in the previous frame is not the corresponding person's face part, it will be displayed correctly In addition, since the human face portion has a problem that it is difficult to substitute the peripheral pixels of the current frame, if the present invention is applied to the human face portion, the effect of applying the present invention to the character multiplex region Similar effects can be obtained.

なお、本発明は、上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。   The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the claims, and the technical means disclosed in different embodiments can be appropriately combined. Such embodiments are also included in the technical scope of the present invention.

本発明は、動画像データを符号化する動画像符号化装置に適用することができ、特に、文字多重領域を有する動画像を表す動画像データを変換して量子化し、可変長符号化する動画像符号化装置に適用できる。具体的には、テレビ電話システム、映像配信システム(ストリーミング)に利用することができ、また、テレビジョン放送を受信して、その映像を符号化し、携帯可能な表示部に無線送信する受信機に利用することができる。   INDUSTRIAL APPLICABILITY The present invention can be applied to a moving image encoding apparatus that encodes moving image data, and in particular, a moving image that converts and quantizes moving image data representing a moving image having a character multiplex region and performs variable length encoding. It can be applied to an image encoding device. Specifically, it can be used for a videophone system and a video distribution system (streaming), and can also be used for a receiver that receives a television broadcast, encodes the video, and wirelessly transmits it to a portable display unit. Can be used.

本発明における動画像符号化装置の実施の一形態の構成を示すブロック図である。It is a block diagram which shows the structure of one Embodiment of the moving image encoder in this invention. 上記動画像符号化装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the said moving image encoder. (a)は上記動画像符号化装置の文字多重領域検出部に入力される動画像を示す図であり、(b)は上記文字多重領域検出部が生成する文字多重領域情報を示す図である。(A) is a figure which shows the moving image input into the character multiplex area | region detection part of the said moving image encoder, (b) is a figure which shows the character multiplex area | region information which the said character multiplex area detection part produces | generates. . (a)は上記動画像符号化装置の冗長スライス設定部に入力される動画像を示す図であり、(b)は上記冗長スライス設定部によって設定される冗長スライスを説明するための図である。(A) is a figure which shows the moving image input into the redundant slice setting part of the said moving image encoder, (b) is a figure for demonstrating the redundant slice set by the said redundant slice setting part. . 上記冗長スライス設定部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the said redundant slice setting part. 上記動画像符号化装置の可変長符号化部による符号化の単位となる通常スライス及び冗長スライスを示す図である。It is a figure which shows the normal slice and redundant slice which become a unit of the encoding by the variable length encoding part of the said moving image encoder. 上記動画像符号化装置の動作の変形例を示すフローチャートである。It is a flowchart which shows the modification of operation | movement of the said moving image encoder. (a)は上記動画像符号化装置の冗長スライス設定部に入力される動画像の他の例を示す図であり、(b)は上記冗長スライス設定部によって設定される冗長スライスの他の例を説明するための図である。(A) is a figure which shows the other example of the moving image input into the redundant slice setting part of the said moving image encoder, (b) is another example of the redundant slice set by the said redundant slice setting part. It is a figure for demonstrating. 任意順序により符号化される上記通常スライスを説明するための図である。It is a figure for demonstrating the said normal slice encoded by arbitrary orders. 上記動画像符号化装置の動作の他の変形例を示すフローチャートである。It is a flowchart which shows the other modification of operation | movement of the said moving image encoder. 上記動画像符号化装置と復号装置との間の送受信タイミングを示す図である。It is a figure which shows the transmission / reception timing between the said moving image encoder and decoding apparatus. (a)は本発明の動画像符号化装置の他の実施の形態に設けられた冗長スライス設定部によって設定されるスライスグループを示す図であり、(b)は上記スライスグループの他の例を示す図である。(A) is a figure which shows the slice group set by the redundant slice setting part provided in other embodiment of the moving image encoder of this invention, (b) is another example of the said slice group. FIG. (a)は上記冗長スライス設定部に入力される動画像を示す図であり、(b)は上記冗長スライス設定部によって設定されるスライスグループを説明するための図であり、(c)は上記スライスグループに基づいて設定される冗長スライスを説明するための図である。(A) is a figure which shows the moving image input into the said redundant slice setting part, (b) is a figure for demonstrating the slice group set by the said redundant slice setting part, (c) is said figure It is a figure for demonstrating the redundant slice set based on a slice group. 上記他の実施の形態の動画像符号化装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the moving image encoder of said other embodiment. 本発明の動画像符号化装置のさらに他の実施の形態の構成を説明するための図である。It is a figure for demonstrating the structure of further another embodiment of the moving image encoder of this invention. 上記動画像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the said moving image encoder. 従来の動画像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the conventional moving image encoder.

符号の説明Explanation of symbols

1 動画像符号化装置
2 文字多重領域検出部(文字多重領域検出手段)
3 文字多重領域情報
4 冗長スライス設定部(冗長スライス設定手段)
5 冗長スライス位置情報
6 可変長符号化部(可変長符号化手段)
10 伝送部(伝送手段)
11 受信部(受信手段)
12、12a、12b 動画像
15、15a、15b 冗長スライス
16a、16b、16c、16d、16e、16f、16g 通常スライス
17 復号装置
24a、24b、25a、25b、25c スライスグループ
26 冗長スライス
28 ビデオオブジェクト
30 ビデオオブジェクト(文字多重領域ビデオオブジェクト)
DESCRIPTION OF SYMBOLS 1 Moving image encoding apparatus 2 Character multiple area detection part (character multiple area detection means)
3 Character multiple area information 4 Redundant slice setting part (Redundant slice setting means)
5 Redundant slice position information 6 Variable length coding unit (variable length coding means)
10 Transmission section (Transmission means)
11 Receiver (Receiving means)
12, 12a, 12b Video 15, 15a, 15b Redundant slices 16a, 16b, 16c, 16d, 16e, 16f, 16g Normal slice 17 Decoding device 24a, 24b, 25a, 25b, 25c Slice group 26 Redundant slice 28 Video object 30 Video object (character multi-region video object)

Claims (7)

文字多重領域を有する動画像を表す動画像データを変換して量子化し、可変長符号化する動画像符号化装置であって、前記文字多重領域の外縁に沿って前記文字多重領域に重なる冗長領域に属する動画像データを、前記冗長領域以外の領域に属する動画像データよりも冗長に可変長符号化することを特徴とする動画像符号化装置。   A moving image encoding device that converts and quantizes moving image data representing a moving image having a character multiplex region, and performs variable length encoding, wherein the redundant region overlaps the character multiplex region along an outer edge of the character multiplex region A moving picture encoding apparatus characterized in that the moving picture data belonging to is encoded in a variable length more redundantly than moving picture data belonging to a region other than the redundant region. 前記動画像を帯状に分割した通常スライス単位で、各通常スライスに属する動画像データを符号化する可変長符号化手段と、
前記文字多重領域の外縁に沿って前記文字多重領域に重なる冗長スライスを設定する冗長スライス設定手段とを備え、
前記可変長符号化手段は、前記冗長スライスに属する動画像データをさらに符号化する請求項1記載の動画像符号化装置。
Variable length encoding means for encoding moving image data belonging to each normal slice in units of normal slices obtained by dividing the moving image into strips;
Redundant slice setting means for setting a redundant slice that overlaps the character multiplex region along the outer edge of the character multiplex region;
2. The moving picture coding apparatus according to claim 1, wherein the variable length coding means further codes moving picture data belonging to the redundant slice.
前記文字多重領域を前記動画像から検出して文字多重領域情報を生成する文字多重領域検出手段をさらに備え、
前記冗長スライス設定手段は、前記文字多重領域検出手段によって生成された文字多重領域情報に基づいて前記冗長スライスを設定する請求項2に記載の動画像符号化装置。
A character multiple region detection means for detecting the character multiple region from the moving image and generating character multiple region information;
The moving picture encoding apparatus according to claim 2, wherein the redundant slice setting unit sets the redundant slice based on the character multiple region information generated by the character multiple region detection unit.
前記可変長符号化手段によって符号化された前記通常スライスに属する動画像データを復号装置に伝送する伝送手段と、
前記通常スライスに属する動画像データのうちの前記文字多重領域に属する動画像データの復号エラー通知を受信する受信手段とをさらに備え、
前記可変長符号化手段は、前記受信手段によって前記復号エラー通知が受信されたときに、前記冗長スライスに属する動画像データを符号化し、
前記伝送手段は、前記可変長符号化手段によって符号化された前記冗長スライスに属する動画像データを前記復号装置に伝送する請求項2に記載の動画像符号化装置。
Transmission means for transmitting moving image data belonging to the normal slice encoded by the variable-length encoding means to a decoding device;
Receiving means for receiving a decoding error notification of the moving image data belonging to the character multiplex region of the moving image data belonging to the normal slice;
The variable length encoding means encodes moving image data belonging to the redundant slice when the decoding error notification is received by the receiving means,
The moving picture encoding apparatus according to claim 2, wherein the transmission means transmits the moving picture data belonging to the redundant slice encoded by the variable length encoding means to the decoding apparatus.
前記可変長符号化手段は、前記冗長スライスを有する通常スライスに属する動画像データを、前記冗長スライスを有しない通常スライスに属する動画像データよりも先に符号化し、
前記伝送手段は、前記可変長符号化手段によって符号化された、前記冗長スライスを有する通常スライスに属する動画像データを、前記冗長スライスを有しない通常スライスに属する動画像データよりも先に前記復号装置に伝送する請求項2記載の動画像符号化装置。
The variable length encoding means encodes moving image data belonging to a normal slice having the redundant slice before moving image data belonging to a normal slice not having the redundant slice,
The transmission means decodes the moving picture data belonging to the normal slice having the redundant slice encoded by the variable length coding means before the moving picture data belonging to the normal slice having no redundant slice. The moving picture coding apparatus according to claim 2, which is transmitted to the apparatus.
前記冗長スライス設定手段は、前記文字多重領域を含むように前記動画像を分割した領域であるスライスグループを設定し、このスライスグループに基づいて前記冗長スライスを設定する請求項2記載の動画像符号化装置。   The moving picture code according to claim 2, wherein the redundant slice setting means sets a slice group that is an area obtained by dividing the moving picture so as to include the character multiplex area, and sets the redundant slice based on the slice group. Device. 前記動画像全体を対象とするビデオオブジェクトに属する動画像データを符号化するオブジェクト符号化手段を備え、
前記オブジェクト符号化手段は、前記文字多重領域を対象とする文字多重領域ビデオオブジェクトに属する動画像データをさらに符号化する請求項1記載の動画像符号化装置。
An object encoding means for encoding moving image data belonging to a video object for the entire moving image;
2. The moving image encoding apparatus according to claim 1, wherein the object encoding means further encodes moving image data belonging to a character multi-region video object for the character multi-region.
JP2005200768A 2005-07-08 2005-07-08 Motion picture encoder Pending JP2007020002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005200768A JP2007020002A (en) 2005-07-08 2005-07-08 Motion picture encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005200768A JP2007020002A (en) 2005-07-08 2005-07-08 Motion picture encoder

Publications (1)

Publication Number Publication Date
JP2007020002A true JP2007020002A (en) 2007-01-25

Family

ID=37756737

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005200768A Pending JP2007020002A (en) 2005-07-08 2005-07-08 Motion picture encoder

Country Status (1)

Country Link
JP (1) JP2007020002A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8938009B2 (en) 2007-10-12 2015-01-20 Qualcomm Incorporated Layered encoded bitstream structure
US9386316B2 (en) 2007-10-12 2016-07-05 Qualcomm Incorporated Adaptive coding of video block header information
US11343535B2 (en) 2011-03-07 2022-05-24 Dolby International Ab Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8938009B2 (en) 2007-10-12 2015-01-20 Qualcomm Incorporated Layered encoded bitstream structure
US9386316B2 (en) 2007-10-12 2016-07-05 Qualcomm Incorporated Adaptive coding of video block header information
US11343535B2 (en) 2011-03-07 2022-05-24 Dolby International Ab Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto
US11736723B2 (en) 2011-03-07 2023-08-22 Dolby International Ab Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto

Similar Documents

Publication Publication Date Title
JP3630474B2 (en) Moving picture transmission system and moving picture transmission apparatus
KR100574184B1 (en) Image encoder and image encoding method, image decoder and image decoding method, and image processor and image processing method
KR101912059B1 (en) Image coding device and image decoding device
EP1725042A1 (en) Fade frame generating for MPEG compressed video data
US6744924B1 (en) Error concealment in a video signal
JP2009284518A (en) Video coding method
JP2009100424A (en) Receiving device and reception method
KR100818148B1 (en) Sending progressive video sequences suitable for mpeg and other data formats
US6859500B2 (en) Run-length coding of non-coded macroblocks
JP4824259B2 (en) Alternate block order for better prediction
JP2009296300A (en) Image encoding device and method
JP2009055259A (en) Image signal generating device, image signal generating method, image signal generating program, and computer-readable medium recorded with the program
JP2007020002A (en) Motion picture encoder
KR101154743B1 (en) Encoder apparatus, encoding method, decoder apparatus, decoding method, recording medium, and playback apparatus
KR101075969B1 (en) Method and apparatus for preventing error propagation in a video sequence
JPH10108175A (en) Image coding transmission system
JP2820630B2 (en) Image decoding device
JPH07184213A (en) Transmitting device receiving device of television picture, video recorder and recording medium having recorded television picture
KR100269882B1 (en) Image coding and decoding method and related apparatus
KR100543607B1 (en) Method for decoding of moving picture
KR19990049348A (en) FRAME RATE CONVERTER AND METHOD USING MOTION VECTOR.
JP6027158B2 (en) Video switching device provided with encoding device and video switching method including encoding method
JPH09224251A (en) Dynamic image coder and dynamic image decoder
JP4113233B2 (en) Transmission system and transmission method
JP4888835B2 (en) Recompression system and recompression method