JP4731343B2 - Decoding device - Google Patents

Decoding device Download PDF

Info

Publication number
JP4731343B2
JP4731343B2 JP2006028545A JP2006028545A JP4731343B2 JP 4731343 B2 JP4731343 B2 JP 4731343B2 JP 2006028545 A JP2006028545 A JP 2006028545A JP 2006028545 A JP2006028545 A JP 2006028545A JP 4731343 B2 JP4731343 B2 JP 4731343B2
Authority
JP
Japan
Prior art keywords
unit
boundary
picture
data
nal
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.)
Expired - Fee Related
Application number
JP2006028545A
Other languages
Japanese (ja)
Other versions
JP2007208917A (en
Inventor
裕和 川勝
龍則 斉藤
弘史 森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Mobile Communications Ltd
Original Assignee
Fujitsu Toshiba Mobile Communication Ltd
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 Fujitsu Toshiba Mobile Communication Ltd filed Critical Fujitsu Toshiba Mobile Communication Ltd
Priority to JP2006028545A priority Critical patent/JP4731343B2/en
Publication of JP2007208917A publication Critical patent/JP2007208917A/en
Application granted granted Critical
Publication of JP4731343B2 publication Critical patent/JP4731343B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

この発明は、例えばMPEG(Moving Picture Experts Group)-4 AVC/H.264などの動画像圧縮技術を用いた復号装置に関する。   The present invention relates to a decoding apparatus using a moving picture compression technique such as MPEG (Moving Picture Experts Group) -4 AVC / H.264.

従来の動画像符号化装置において、ISO/IEC14496-2(MPEG-4)などの符号化では画像を1枚のピクチャ単位で符号化処理し、生成されるビットストリームはピクチャの先頭に同期符号がつけられていた。例えばMPEG-4では、ピクチャの開始は必ずVOP Start Codeといわれる同期符号(0x000001B6)で始まるVOPヘッダと呼ばれるレイヤがあり、これに続いて各マクロブロックのデータが符号化されている。したがって復号装置側では、誤りが混入する環境などで同期が外れデコード不可能となった場合でも、上記VOP Start Codeを検出することでピクチャ情報の開始と判断して、次のピクチャからは必ず同期がとれるしくみとなっている。   In a conventional moving image encoding apparatus, in encoding such as ISO / IEC14496-2 (MPEG-4), an image is encoded in units of one picture, and a generated bitstream has a synchronization code at the head of a picture. It was attached. For example, in MPEG-4, there is a layer called a VOP header that always starts with a synchronization code (0x000001B6) called VOP Start Code at the start of a picture, and subsequently data of each macroblock is encoded. Therefore, even if the decoding device is out of synchronization due to an environment where errors are mixed and decoding is impossible, it is determined that the picture information starts by detecting the above VOP Start Code, and synchronization is always performed from the next picture. It is a mechanism that can be removed.

ところが、近年規定されたISO/IEC14496-10(MPEG-4 AVC/H.264)のような符号化方法の場合、ピクチャデータ、パラメータセット等がすべて同じNAL(Network Abstraction Layer)というレイヤに組み込まれて伝送される。このため、すべてのデータが同じスタートコードとなるので、その内容を詳しく解析することでピクチャデータなのかパラメータなのかが解釈できる構成になっている(例えば、非特許文献1参照)。   However, in the case of an encoding method such as ISO / IEC14496-10 (MPEG-4 AVC / H.264) defined in recent years, picture data, parameter sets, etc. are all incorporated into the same layer called Network Abstraction Layer (NAL). Is transmitted. For this reason, since all data has the same start code, it can be interpreted whether it is picture data or a parameter by analyzing its contents in detail (see, for example, Non-Patent Document 1).

さらには、ピクチャ境界を明示的に示すヘッダなどはなく、現在のNALと前のNALに含まれるパラメータとの関係などからピクチャ境界かどうかを判断するしくみとなっている。例えばピクチャの符号化データ自体はスライスといわれる単位に分割され、スライスNALとして伝送されるが、スライスNALが複数連続して受信された場合、同一ピクチャのスライスなのかピクチャ境界を含んでいるのかは、スライスNALのヘッダにあるframe_numという番号が異なるかどうかで判断される。あるいはピクチャ境界にしか挿入されない特殊なNAL(access_Unit_delimiter_NAL)も規定されており、アプリケーションによってはこれを用いることでピクチャ境界を明示的に示すこともできるが、これは必須ではないため、結果的にはframe_numの値で判断することになる。   Furthermore, there is no header or the like that explicitly indicates the picture boundary, and it is a mechanism for determining whether it is a picture boundary from the relationship between the current NAL and the parameters included in the previous NAL. For example, the encoded data of a picture itself is divided into units called slices and transmitted as slice NALs. If multiple slices NAL are received in succession, whether they are slices of the same picture or include picture boundaries. Judgment is made based on whether the frame_num number in the header of the slice NAL is different. Alternatively, a special NAL (access_Unit_delimiter_NAL) that is inserted only at the picture boundary is also defined, and depending on the application, the picture boundary can be explicitly indicated by using this, but this is not essential, so as a result Judgment is based on the value of frame_num.

しかしながら、このようなストリームに誤りが混入した場合、スライスヘッダにあるframe_numは固定長の符号であるため、誤りの判別が非常に難しく、frame_numの値が変わってしまった場合にピクチャが変わったことによりframe_numが変わったのか、誤りによりframe_numが変わったのかが判断できない。これによりピクチャ境界を正しく判定できないという問題が生じる。この問題は、access_Unit_delimiter_NALに基づいて、ピクチャ境界を行う場合についても同様に生じる
大久保榮監修「H.264/AVC教科書」(株)インプレスコミュニケーションズ、2004年7月30日。
However, when an error is mixed in such a stream, the frame_num in the slice header is a fixed-length code, so it is very difficult to distinguish the error, and the picture has changed when the value of the frame_num has changed. It cannot be determined whether the frame_num has changed due to the error or the frame_num has changed due to an error. This causes a problem that picture boundaries cannot be correctly determined. This problem also occurs when picture boundaries are performed based on access_Unit_delimiter_NAL.
"H.264 / AVC textbook" supervised by Satoshi Okubo, Impress Communications Inc., July 30, 2004.

従来の復号装置では、ピクチャ境界を判定するために用いられるスライスヘッダやaccess_Unit_delimiter_NALに誤りが混入した場合、ピクチャ境界を正しく判定できないという問題があった。
この発明は上記の問題を解決すべくなされたもので、スライスヘッダやaccess_Unit_delimiter_NALに誤りが混入した場合でも、ピクチャ境界を正しく判定することが可能な復号装置を提供することを目的とする。
The conventional decoding apparatus has a problem that the picture boundary cannot be correctly determined when an error is mixed in a slice header or access_Unit_delimiter_NAL used for determining the picture boundary.
The present invention has been made to solve the above problem, and an object of the present invention is to provide a decoding apparatus capable of correctly determining a picture boundary even when an error is mixed in a slice header or access_Unit_delimiter_NAL.

上記の目的を達成するために、この発明は、各ピクチャデータがそれぞれ複数のスライスデータに分割され、これらのスライスデータがパケット化されたビデオストリームと、オーディオストリームが多重化された多重ストリームが入力され、ビデオストリームを復号する復号装置において、多重化ストリームから、ビデオストリームとオーディオストリームを分離する分離手段と、ビデオストリームを構成するパケットのヘッダに含まれる情報に基づいて、スライスデータを元の同じピクチャデータ毎に分類するための境界情報を検出する境界情報検出手段とを備えるAV分離部と、AV分離部の境界情報検出手段から通知される境界情報に基づいて、スライスデータを同じピクチャデータ毎に分類して、スライスデータを復号するビデオ復号部とを具備し、ビデオ復号部は、スライスデータのヘッダから、スライスデータを同じピクチャデータ毎に分類するための識別情報を検出する識別情報検出手段をさらに備え、境界情報と識別情報に基づいて、スライスデータを同じピクチャデータ毎に分類して、スライスデータを復号するようにした。 In order to achieve the above object, according to the present invention, each picture data is divided into a plurality of slice data, and a video stream in which the slice data is packetized and a multiplexed stream in which the audio stream is multiplexed are input. In the decoding device that decodes the video stream, the slice data is converted into the same original data based on the information included in the header of the packet that constitutes the video stream and the separation means that separates the video stream and the audio stream from the multiplexed stream. An AV separation unit comprising boundary information detection means for detecting boundary information for classifying each picture data, and the slice data for each picture data based on the boundary information notified from the boundary information detection means of the AV separation unit To decode and slice data into Comprising a issue unit, a video decoding unit, on the basis of a header of the slice data, further comprising, boundary information and identification information identification information detecting means for detecting identification information for classifying slice data for each same picture data Thus, the slice data is classified into the same picture data, and the slice data is decoded.

この発明によれば、スライスヘッダやaccess_Unit_delimiter_NALに誤りが混入した場合でも、ピクチャ境界を正しく判定することが可能な復号装置を提供できる。   According to the present invention, it is possible to provide a decoding device that can correctly determine a picture boundary even when an error is mixed in a slice header or access_Unit_delimiter_NAL.

以下、図面を参照して、この発明の一実施形態について説明する。
図1は、この発明の第1の実施形態に係わる復号装置の構成を示すものである。この復号装置は、A/V分離部10と、ビデオ復号部20とを備える。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 shows the configuration of a decoding apparatus according to the first embodiment of the present invention. The decoding device includes an A / V separation unit 10 and a video decoding unit 20.

A/V分離部10は、オーディオストリームとビデオストリームが多重された多重ストリームが入力され、これをオーディオストリームとビデオストリームに分離し、オーディオストリームについてはオーディオ復号部(図示しない)に出力し、ビデオストリームについてはビデオ復号部20に出力する。なお、ここでは上記多重ストリームとして、ISO/IEC 14496-1(MPEG-2システム)に基づいてTS(Transport Stream)パケット化されたTS多重ストリームが用いられる場合を例に挙げて説明する。   The A / V separation unit 10 receives a multiplexed stream obtained by multiplexing an audio stream and a video stream, separates the multiplexed stream into an audio stream and a video stream, and outputs the audio stream to an audio decoding unit (not shown). The stream is output to the video decoding unit 20. Here, a case will be described as an example where a TS multiplexed stream that is packetized as a TS (Transport Stream) based on ISO / IEC 14496-1 (MPEG-2 system) is used as the multiplexed stream.

またA/V分離部10は、境界検出部10aを備える。境界検出部10aは、上記分離によって得たビデオストリームに基づいて、スライスデータを元の同じピクチャデータ毎に分類するためのピクチャ境界を検出する。具体的には、図2に示す処理を各TSパケットについて実施する。以下、図2を参照して説明する。   The A / V separator 10 includes a boundary detector 10a. The boundary detection unit 10a detects a picture boundary for classifying slice data for each original picture data based on the video stream obtained by the separation. Specifically, the process shown in FIG. 2 is performed for each TS packet. Hereinafter, a description will be given with reference to FIG.

上述したようにビデオストリームは、TS多重ストリームで構成されるため、まず境界検出部10aは、TSヘッダを復号し、ビデオストリームを構成するTSパケットであった場合に、TSヘッダ中のpayload_unit_start_indicatorが「1」であるか否かを判定する(ステップ2a)。   As described above, since the video stream is composed of TS multiplexed streams, first, the boundary detection unit 10a decodes the TS header, and when the TS packet forms the video stream, the payload_unit_start_indicator in the TS header is “ 1 ”is determined (step 2a).

payload_unit_start_indicatorが「1」のTSパケットには、PES(Packet Elementary Stream)ヘッダが含まれる。このため、境界検出部10aは更にストリームを解析し、上記PESヘッダをデコードしてPESの構成内容を抽出する(ステップ2b)。   A TS packet whose payload_unit_start_indicator is “1” includes a PES (Packet Elementary Stream) header. Therefore, the boundary detection unit 10a further analyzes the stream, decodes the PES header, and extracts the PES configuration content (step 2b).

そして境界検出部10aは、PESヘッダを含むTSパケットを検出した場合に、そのPESヘッダのdata_alignment_indicatorが「1」であるか否かを判定する(ステップ2c)。   When the boundary detection unit 10a detects a TS packet including a PES header, the boundary detection unit 10a determines whether the data_alignment_indicator of the PES header is “1” (step 2c).

PESヘッダのdata_alignment_indicatorが「1」である場合、ピクチャ境界であることを示す。このため、境界検出部10aは、data_alignment_indicatorが「1」の場合に、上記ピクチャ境界を検出したことを示す情報を境界情報としてビデオ復号部20に出力する(ステップ2d)。   When data_alignment_indicator in the PES header is “1”, this indicates a picture boundary. Therefore, when the data_alignment_indicator is “1”, the boundary detection unit 10a outputs information indicating that the picture boundary has been detected to the video decoding unit 20 as boundary information (step 2d).

ピクチャ境界を検出したことを示す情報は、例えば信号線を接続しレジスタにセットする場合がある他、ビデオストリームの当該NALをビデオ復号部20に送り出す前に規格上使用されることがないIDを持つNALを挿入したり、ビデオストリーム中には存在しないパターンビット列を挿入し、NAL種別復号部21で上記NALや特殊パターンを見つけた場合にピクチャ境界と判断し、同時に当該情報を捨て去ることで通知が可能である。   The information indicating that the picture boundary has been detected may be, for example, an ID that is not used in the standard before sending the NAL of the video stream to the video decoding unit 20 in addition to connecting a signal line and setting the register. Insert a NAL or insert a pattern bit string that does not exist in the video stream. If the NAL type decoding unit 21 finds the NAL or special pattern, it is determined as a picture boundary, and at the same time, the information is discarded and notified. Is possible.

ビデオ復号部20は、A/V分離部10から与えられるビデオストリームと境界情報とに基づいて上記ビデオストリームを復号し、ピクチャ毎のデータを得る。ビデオ復号部20は、NAL種別復号部21、付加情報復号部22、スライスヘッダ復号部23と、ピクチャ境界判定部24、ピクチャ境界処理部25、およびスライスデータ復号部26とを備える。
NAL種別復号部21は、A/V分離部から与えられるビデオストリームが、付加情報を示すNALであるかビデオデータが含まれるスライスで構成されるNALであるかを判定し、付加情報は付加情報復号部22へ、またスライスデータはスライスヘッダ復号部23へそれぞれ出力される。
The video decoding unit 20 decodes the video stream based on the video stream and boundary information given from the A / V separation unit 10 to obtain data for each picture. The video decoding unit 20 includes a NAL type decoding unit 21, an additional information decoding unit 22, a slice header decoding unit 23, a picture boundary determination unit 24, a picture boundary processing unit 25, and a slice data decoding unit 26.
The NAL type decoding unit 21 determines whether the video stream supplied from the A / V separation unit is a NAL indicating additional information or a NAL composed of slices including video data, and the additional information is additional information. The decoding unit 22 and the slice data are output to the slice header decoding unit 23, respectively.

付加情報復号部22は、ビデオデータ以外の付加情報を復号する。例えば、ビデオの画像サイズ、ビットレート、時間情報、あるいはaccess_unit_delimiter_NALのような特殊情報等である。   The additional information decoding unit 22 decodes additional information other than video data. For example, video image size, bit rate, time information, or special information such as access_unit_delimiter_NAL.

スライスヘッダ復号部23は、A/V分離部10から与えられるビデオストリームのうち、各スライスデータのヘッダ情報(スライスヘッダ)を復号する。このスライスヘッダにはframe_num等、ピクチャ境界を判定するために必要なパラメータが含まれており、これらの情報をピクチャ境界判定部24に送ることでこのスライスが新しいピクチャの情報であるか否かの判定が行われるが、加えてピクチャ境界判定部24では上記境界検出部10aから境界情報が与えられる場合は、ビデオ復号部20に入力されたストリームがピクチャ境界に相当するものと判断される。そしてこれらの判断結果は、ピクチャ境界処理部25に出力される。   The slice header decoding unit 23 decodes header information (slice header) of each slice data in the video stream supplied from the A / V separation unit 10. This slice header includes parameters necessary for determining a picture boundary, such as frame_num. By sending these pieces of information to the picture boundary determining unit 24, it is determined whether or not this slice is information on a new picture. In addition, the picture boundary determination unit 24 determines that the stream input to the video decoding unit 20 corresponds to a picture boundary when the boundary information is given from the boundary detection unit 10a. These determination results are output to the picture boundary processing unit 25.

ピクチャ境界処理部25は、ピクチャ境界判定部24がピクチャ境界と判定した場合に、ピクチャ境界に伴う処理を行う。
具体的には、付加情報復号部22で得られた画面サイズ分の画像データが復号処理を終えたと判断し、復号画像を蓄積表示するためのデコード済ピクチャバッファ(DPB)の内容を更新し、必要があればディスプレイ処理を行う。また、ピクチャ単位のパラメータ(例えば、マクロブロック番号など)のリセットを行う。
The picture boundary processing unit 25 performs processing associated with the picture boundary when the picture boundary determination unit 24 determines that it is a picture boundary.
Specifically, it is determined that the image data for the screen size obtained by the additional information decoding unit 22 has been decoded, and the content of the decoded picture buffer (DPB) for accumulating and displaying the decoded image is updated. Perform display processing if necessary. In addition, a parameter for each picture (for example, a macroblock number) is reset.

スライスデータ復号部26は、ビデオ復号部20に入力されたビデオストリームのうち、各スライスデータをピクチャ境界処理部25からの指示に従って復号してピクチャ毎の復号データを得る。   The slice data decoding unit 26 decodes each slice data in the video stream input to the video decoding unit 20 in accordance with an instruction from the picture boundary processing unit 25 to obtain decoded data for each picture.

以上のように、上記構成の復号装置では、スライスヘッダ復号部23によって復号されたヘッダ情報のうち、frame_num等の情報に基づいて、ピクチャ境界の判定を行うことに加えて、A/V分離部10の境界検出部10aにおいても、PESヘッダのdata_alignment_indicatorに基づいてピクチャ境界の判定を行うようにしている。   As described above, in the decoding apparatus configured as described above, in addition to performing picture boundary determination based on information such as frame_num among the header information decoded by the slice header decoding unit 23, an A / V separation unit Also in the ten boundary detection units 10a, the picture boundary is determined based on the data_alignment_indicator of the PES header.

また上記構成の復号装置では、スライスヘッダのframe_num等の情報に基づくピクチャ境界の判定結果よりも、境界検出部10aによるピクチャ境界の判定結果を優先するようにしている。   In the decoding apparatus having the above configuration, the determination result of the picture boundary by the boundary detection unit 10a is given priority over the determination result of the picture boundary based on information such as frame_num of the slice header.

したがって、上記構成の復号装置によれば、スライスヘッダのframe_numに誤りが混入してピクチャ境界の検出が行えなくても、A/V分離部10の境界検出部10aによりピクチャ境界の検出を行うことができるので、ピクチャ境界を正しく判定できる。   Therefore, according to the decoding apparatus having the above configuration, even when an error is mixed in the frame_num of the slice header and the picture boundary cannot be detected, the boundary detection unit 10a of the A / V separation unit 10 detects the picture boundary. Therefore, the picture boundary can be correctly determined.

次に、この発明の第2の実施形態に係わる復号装置について説明する。図3は、その構成を示すもので、A/V分離部30と、ビデオ復号部40とを備える。なお、ここでは、A/V分離部30に入力される多重ストリームとして、ISO/IEC 14496-1(MPEG-4システム)に基づいてTS(Transport Stream)パケット化されたデータが用いられる場合を例に挙げて説明する。   Next explained is a decoding apparatus according to the second embodiment of the invention. FIG. 3 shows the configuration, and includes an A / V separation unit 30 and a video decoding unit 40. Here, an example in which TS (Transport Stream) packetized data based on ISO / IEC 14496-1 (MPEG-4 system) is used as the multiplexed stream input to the A / V separation unit 30 is described. Will be described.

また、上記多重ストリームは、オーディオストリームとビデオストリームが多重されたものであるが、このうちビデオデータは、ISO/IEC 14496-10(MPEG-4AVC/H.264)で符号化されており、図4に示すようなピクチャ境界を明示的に示すaccess_Unit_delimiter_NALというNAL(Network Abstraction Layer)が必ずピクチャの先頭に含まれているものとする。   In addition, the multiplexed stream is obtained by multiplexing an audio stream and a video stream. Of these, video data is encoded by ISO / IEC 14496-10 (MPEG-4AVC / H.264). Assume that a NAL (Network Abstraction Layer) called access_Unit_delimiter_NAL that explicitly indicates a picture boundary as shown in FIG.

A/V分離部30は、上記多重ストリームが入力され、これをオーディオストリームとビデオストリームに分離し、オーディオストリームについてはオーディオ復号部(図示しない)に出力し、ビデオストリームについてはビデオ復号部40に出力する。   The A / V separator 30 receives the multiplexed stream, separates it into an audio stream and a video stream, outputs the audio stream to an audio decoder (not shown), and outputs the video stream to the video decoder 40. Output.

またA/V分離部30は、境界検出部30aとNAL制御部30bとを備える。境界検出部30aは、上記分離によって得たビデオストリームに基づいて、スライスデータを元の同じピクチャデータ毎に分類するためのピクチャ境界を検出する。またNAL制御部30bは、境界検出部30aによるピクチャ境界の検出結果に応じて、access_Unit_delimiter_NALを制御する。具体的には、境界検出部30aとNAL制御部30bが、図5に示す処理を各TSパケットについて実施する。以下、図5を参照して説明する。   The A / V separation unit 30 includes a boundary detection unit 30a and a NAL control unit 30b. The boundary detection unit 30a detects a picture boundary for classifying the slice data for each original picture data based on the video stream obtained by the separation. The NAL control unit 30b controls access_Unit_delimiter_NAL according to the detection result of the picture boundary by the boundary detection unit 30a. Specifically, the boundary detection unit 30a and the NAL control unit 30b perform the process shown in FIG. 5 for each TS packet. Hereinafter, a description will be given with reference to FIG.

上述したようにビデオストリームは、TS多重ストリームで構成されるため、まず境界検出部30aはTSヘッダを復号し、ビデオストリームを構成する各TSパケットであった場合、TSヘッダ中のts_error_indicatorが「1」であるか否かを判定する(ステップ5a)。   As described above, since the video stream is composed of TS multiplexed streams, first, the boundary detection unit 30a decodes the TS header. If each TS packet constitutes the video stream, the ts_error_indicator in the TS header is “1”. "Is determined (step 5a).

ts_error_indicatorが「1」のTSパケットには必ず誤りが含まれており、「0」の場合はTSパケット内の全データが信頼できる。
ts_error_indicatorが「0」の場合は、TSヘッダ中のpayload_unit_start_indicatorが「1」か否かを判定する(ステップ5b)。
An error is always included in a TS packet whose ts_error_indicator is “1”. When it is “0”, all the data in the TS packet can be trusted.
When ts_error_indicator is “0”, it is determined whether payload_unit_start_indicator in the TS header is “1” (step 5b).

payload_unit_start_indicatorが「1」のTSパケットには、PES(Packetized Elementary Stream)ヘッダが含まれる。このため、境界検出部30aは上記PESヘッダをデコードする(ステップ5c)。そして境界検出部30aは、PESヘッダを含むTSパケットを検出した場合、検出したPESヘッダに含まれるdata_alignment_indicatorが「1」であるか否かを判定する(ステップ5d)。   A TS packet whose payload_unit_start_indicator is “1” includes a PES (Packetized Elementary Stream) header. Therefore, the boundary detection unit 30a decodes the PES header (step 5c). When the boundary detection unit 30a detects the TS packet including the PES header, the boundary detection unit 30a determines whether the data_alignment_indicator included in the detected PES header is “1” (step 5d).

PESヘッダのdata_alignment_indicatorが「1」の場合、ピクチャ境界であることを示す。この場合、境界検出部30aは上記ピクチャ境界を検出したことを示す情報をビデオ復号部40のピクチャ境界判定部44に対して出力する(ステップ5e)。   When data_alignment_indicator of the PES header is “1”, it indicates a picture boundary. In this case, the boundary detection unit 30a outputs information indicating that the picture boundary has been detected to the picture boundary determination unit 44 of the video decoding unit 40 (step 5e).

なお、ピクチャ境界を検出したことを示す情報は、例えば信号線を接続しレジスタにセットする場合がある他、ビデオストリームのNALをビデオ復号部40に出力する前に規格上使用されることのないIDを持つNALを挿入したり、ビデオストリーム中には存在しないパターンのビット列を挿入し、NAL種別復号部41で上記NALや特殊パターンを見つけた場合にピクチャ境界と判断し、同時にこの情報を捨て去ることで通知が可能である。   The information indicating that the picture boundary has been detected may be set in a register by connecting a signal line, for example, and is not used in the standard before outputting the NAL of the video stream to the video decoding unit 40. A NAL having an ID is inserted, or a bit string of a pattern that does not exist in the video stream is inserted. If the NAL type decoding unit 41 finds the NAL or special pattern, it is determined as a picture boundary, and this information is discarded at the same time. Notification is possible.

なお、ts_error_indicatorが「0」の場合は、ビデオデータに誤りが含まれて居ないことから、ビデオデータ情報が信頼できることを示す情報も出力する(ステップ5f)。   When ts_error_indicator is “0”, since the video data does not contain an error, information indicating that the video data information is reliable is also output (step 5f).

ビデオデータに誤りが含まれているか否かの情報は、例えばビデオストリームのNALヘッダ中にあるforbidden_zero_bitという1ビットのフラグを誤りがある場合を示す1に書換え、NAL種別復号部41でNALヘッダを復号する際にチェックすることでビデオ復号部40に通知することが出来る。   For information on whether or not an error is included in the video data, for example, a 1-bit flag “forbidden_zero_bit” in the NAL header of the video stream is rewritten to 1 indicating that there is an error, and the NAL type decoding unit 41 changes the NAL header. By checking when decoding, the video decoding unit 40 can be notified.

一方、ステップ5aでts_error_indicatorが「1」の場合、payload_unit_start_indicatorは信用できないため、PESヘッダが含まれているか否かを直接ストリームを解析して判定する(ステップ5g)。   On the other hand, when ts_error_indicator is “1” in step 5a, since payload_unit_start_indicator cannot be trusted, it is determined by directly analyzing the stream whether or not the PES header is included (step 5g).

例えば、最初の32ビットを解析し、packet_start_cod_prefix(24ビット)とstream_id(8ビット)が含まれているか否かで判定する。   For example, the first 32 bits are analyzed, and it is determined whether or not packet_start_cod_prefix (24 bits) and stream_id (8 bits) are included.

PESヘッダがあると判定された場合、PESヘッダのデコードを行ってこのPESヘッダに含まれるdata_alignment_indicatorが「1」であるか否かを判定する(ステップ5h)。   When it is determined that there is a PES header, the PES header is decoded to determine whether or not data_alignment_indicator included in the PES header is “1” (step 5h).

PESヘッダのdata_alignment_indicatorが「1」の場合、ピクチャ境界であることを示している。この場合、境界検出部30aはピクチャ境界を検出したことを示す情報をNAL制御部30bに出力する(ステップ5i)。   When the data_alignment_indicator of the PES header is “1”, this indicates a picture boundary. In this case, the boundary detection unit 30a outputs information indicating that the picture boundary has been detected to the NAL control unit 30b (step 5i).

NAL制御部30bは、PESヘッダに続いてaccess_unit_delimiter_NALが誤りなくストリーム中に存在するか否かを判定する(ステップ5j)。   The NAL control unit 30b determines whether the access_unit_delimiter_NAL is present in the stream without error following the PES header (step 5j).

例えば、先頭の6バイトを解析して図4に示すaccess_unit_delimiter_NALの情報か否かを判定すればよい。   For example, the first 6 bytes may be analyzed to determine whether the information is access_unit_delimiter_NAL information shown in FIG.

ここで、access_unit_delimiter_NALに誤りが生じていない場合、ビデオ復号部40ではれを元にピクチャ境界と正しく判定できるので、この処理を終了して次のTSパケットに対する処理に移行する。一方、access_unit_delimiter_NALが正しく解析できず、誤りがあると判定された場合、access_unit_delimiter_NALの中身を図4に示す内容に修正する(ステップ5k)。   Here, when there is no error in access_unit_delimiter_NAL, the video decoding unit 40 can correctly determine a picture boundary based on the leak, so this process is terminated and the process proceeds to the process for the next TS packet. On the other hand, if access_unit_delimiter_NAL cannot be analyzed correctly and it is determined that there is an error, the contents of access_unit_delimiter_NAL are corrected to the contents shown in FIG. 4 (step 5k).

ビデオ復号部40は、A/V分離部30から与えられるビデオストリームと境界情報とに基づいて上記ビデオストリームを復号し、ピクチャ毎のデータを得る。ビデオ復号部40は、NAL種別復号部41、付加情報復号部42、スライスヘッダ復号部43、ピクチャ境界判定部44、ピクチャ境界処理部45、およびスライスデータ復号部46とを備える。   The video decoding unit 40 decodes the video stream based on the video stream and boundary information given from the A / V separation unit 30, and obtains data for each picture. The video decoding unit 40 includes a NAL type decoding unit 41, an additional information decoding unit 42, a slice header decoding unit 43, a picture boundary determination unit 44, a picture boundary processing unit 45, and a slice data decoding unit 46.

NAL種別復号部41は、A/V分離部30から与えられるビデオストリームが、付加情報を示すNALであるか、ビデオデータが含まれるスライスで構成されるNALであるかを判定し、付加情報は付加情報復号部42へ、そしてスライスデータはスライスヘッダ復号部43へ送信する。   The NAL type decoding unit 41 determines whether the video stream supplied from the A / V separation unit 30 is a NAL indicating additional information or a NAL composed of slices including video data. The additional information decoding unit 42 and the slice data are transmitted to the slice header decoding unit 43.

付加情報復号部42では、ビデオデータ以外の付加情報を復号する。例えば、ビデオの画面サイズ、ビットレート、時間情報、あるいはaccess_unit_delimiter_NALのような特殊情報である。   The additional information decoding unit 42 decodes additional information other than video data. For example, video screen size, bit rate, time information, or special information such as access_unit_delimiter_NAL.

スライスヘッダ復号部43は、A/V分離部30から与えられるビデオストリームのうち、各スライスデータのヘッダ情報(スライスヘッダ)を復号する。
このスライスヘッダにはframe_num等のピクチャ境界を判定するために必要なパラメータが含まれており、これらの情報をピクチャ境界判定部44へ与えることで、このスライスが新しいピクチャの情報であるか否かを判定される。
The slice header decoding unit 43 decodes the header information (slice header) of each slice data in the video stream supplied from the A / V separation unit 30.
This slice header includes parameters necessary for determining a picture boundary such as frame_num. By giving these pieces of information to the picture boundary determining unit 44, it is determined whether or not this slice is information on a new picture. Is determined.

ピクチャ境界判定部44では、上記境界検出部30aから境界情報が与えられた場合は、ビデオ復号部40に入力されたストリームに誤りがなく、かつピクチャ境界が含まれていると判定する。更に、ピクチャ境界判定部44は境界検出部30aから境界情報が与えられない場合であっても、付加情報復号部42でaccess_unit_delimiter_NALを復号した場合でもピクチャ境界と判定する。ピクチャ境界判定部44では、境界検出部30aから誤りがないとの情報が得られている場合は、frame_numの情報を信用しない。これらの判定結果は、ピクチャ境界処理部45に出力される。   When the boundary information is given from the boundary detection unit 30a, the picture boundary determination unit 44 determines that there is no error in the stream input to the video decoding unit 40 and that a picture boundary is included. Further, the picture boundary determination unit 44 determines that the picture boundary is a picture boundary even when boundary information is not given from the boundary detection unit 30a, even when the access_unit_delimiter_NAL is decoded by the additional information decoding unit 42. The picture boundary determination unit 44 does not trust the information of frame_num when information indicating that there is no error is obtained from the boundary detection unit 30a. These determination results are output to the picture boundary processing unit 45.

ピクチャ境界処理部45は、ピクチャ境界判定部44がピクチャ境界と判定した場合にピクチャ境界に伴う処理を行う。例えば、付加情報復号部42で得られた画面サイズ分の画像データが復号処理を終えたと判定し、復号画像を蓄積、表示するためのデコード済ピクチャバッファ(DPB)の内容を更新し、必要があればディスプレイ処理を行う。また、ピクチャ単位のパラメータ(例えば、マクロブロック番号など)のリセットを行う。   The picture boundary processing unit 45 performs processing associated with the picture boundary when the picture boundary determination unit 44 determines that it is a picture boundary. For example, it is determined that the image data for the screen size obtained by the additional information decoding unit 42 has been decoded, and the content of the decoded picture buffer (DPB) for storing and displaying the decoded image is updated. If there is, display processing is performed. In addition, a parameter for each picture (for example, a macroblock number) is reset.

スライスデータ復号部46は、ビデオ復号部40に入力されたビデオストリームのうち、各スライスデータをピクチャ境界処理部45からの指示に従って復号し、ピクチャ毎の復号データを得る。   The slice data decoding unit 46 decodes each slice data in the video stream input to the video decoding unit 40 in accordance with an instruction from the picture boundary processing unit 45 to obtain decoded data for each picture.

以上のように、上記構成の復号装置では、A/V分離部30の境界検出部30aにおいてTSパケットに誤りが混入しているかどうかに応じてPESヘッダのチェックとビデオストリーム中のaccess_unit_delimiter_NALが誤りなく挿入されているかの確認と修正処理を行うため、ビデオ復号部においてaccess_unit_delimiter_NALを基準としてピクチャ境界を判定するようにしている。   As described above, in the decoding apparatus having the above configuration, the boundary detection unit 30a of the A / V separation unit 30 checks the PES header and the access_unit_delimiter_NAL in the video stream without error depending on whether or not an error is mixed in the TS packet. In order to check whether it has been inserted and correct it, the video decoding unit determines the picture boundary based on access_unit_delimiter_NAL.

したがって、上記構成の復号装置によれば、ビデオ復号部40がaccess_unit_delimiter_NALに基づく境界判定を行う場合でも、access_unit_delimiter_NALが誤りにより検出できなくなることを防止できるので、ピクチャ境界を正しく判定できる。   Therefore, according to the decoding apparatus having the above configuration, even when the video decoding unit 40 performs boundary determination based on access_unit_delimiter_NAL, it is possible to prevent access_unit_delimiter_NAL from being detected due to an error, and thus it is possible to correctly determine a picture boundary.

なお、上記第2の実施形態では、ステップ5hにてピクチャ境界を検出した場合に、access_unit_delimiter_NALを修正するための処理(ステップ5j、5k)を実行するようにした。これに加えて例えば、NAL制御部30bが、ステップ5hにてピクチャ境界を検出しない場合に、access_unit_delimiter_NALにピクチャ境界を示す情報が設定されていないことを確かめることで、誤りが生じているか否かを判定するステップと、誤りが生じている場合、すなわちピクチャ境界を示す情報が設定されている場合には、access_unit_delimiter_NALがピクチャ境界を示さないようにaccess_unit_delimiter_NALを修正するステップとを設けるようにしてもよい。   In the second embodiment, when a picture boundary is detected in step 5h, the process for correcting access_unit_delimiter_NAL (steps 5j and 5k) is executed. In addition to this, for example, if the NAL control unit 30b does not detect a picture boundary in step 5h, it is confirmed whether or not an error has occurred by confirming that information indicating the picture boundary is not set in access_unit_delimiter_NAL. When an error has occurred, that is, when information indicating a picture boundary is set, a step of correcting access_unit_delimiter_NAL so that access_unit_delimiter_NAL does not indicate a picture boundary may be provided.

また、この発明は上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また上記実施形態に開示されている複数の構成要素を適宜組み合わせることによって種々の発明を形成できる。また例えば、実施形態に示される全構成要素からいくつかの構成要素を削除した構成も考えられる。さらに、異なる実施形態に記載した構成要素を適宜組み合わせてもよい。
その他、この発明の要旨を逸脱しない範囲で種々の変形を施しても同様に実施可能であることはいうまでもない。
Further, the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the gist thereof in the implementation stage. In addition, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. Further, for example, a configuration in which some components are deleted from all the components shown in the embodiment is also conceivable. Furthermore, you may combine suitably the component described in different embodiment.
In addition, it goes without saying that the present invention can be similarly implemented even if various modifications are made without departing from the gist of the present invention.

この発明に係わる復号装置の第1の実施形態の構成を示す回路ブロック図。1 is a circuit block diagram showing a configuration of a first embodiment of a decoding apparatus according to the present invention. 図1に示した復号装置のA/V分離部におけるピクチャ境界検出動作を説明するためのフローチャート。6 is a flowchart for explaining a picture boundary detection operation in the A / V separation unit of the decoding apparatus shown in FIG. 1. この発明に係わる復号装置の第2の実施形態の構成を示す回路ブロック図。The circuit block diagram which shows the structure of 2nd Embodiment of the decoding apparatus concerning this invention. ピクチャ境界を明示的に示すaccess_Unit_delimiter_NALのフォーマットを示す図。The figure which shows the format of access_Unit_delimiter_NAL which shows a picture boundary explicitly. 図3に示した復号装置のA/V分離部におけるピクチャ境界検出動作を説明するためのフローチャート。4 is a flowchart for explaining a picture boundary detection operation in an A / V separation unit of the decoding apparatus shown in FIG. 3.

符号の説明Explanation of symbols

10…A/V分離部、10a…境界検出部、20…ビデオ復号部、21…NAL種別復号部、22…付加情報復号部、23…スライスヘッダ復号部、24…ピクチャ境界判定部、25…ピクチャ境界処理部、26…スライスデータ復号部、30…A/V分離部、30a…境界検出部、30b…NAL制御部、40…ビデオ復号部、41…NAL種別復号部、42…付加情報復号部、43…スライスヘッダ復号部、43…付加情報復号部、44…ピクチャ境界判定部、45…ピクチャ境界処理部、46…スライスデータ復号部。   DESCRIPTION OF SYMBOLS 10 ... A / V separation part, 10a ... Boundary detection part, 20 ... Video decoding part, 21 ... NAL type decoding part, 22 ... Additional information decoding part, 23 ... Slice header decoding part, 24 ... Picture boundary determination part, 25 ... Picture boundary processing unit, 26 ... slice data decoding unit, 30 ... A / V separation unit, 30a ... boundary detection unit, 30b ... NAL control unit, 40 ... video decoding unit, 41 ... NAL type decoding unit, 42 ... additional information decoding , 43 ... slice header decoding unit, 43 ... additional information decoding unit, 44 ... picture boundary determination unit, 45 ... picture boundary processing unit, 46 ... slice data decoding unit.

Claims (2)

各ピクチャデータがそれぞれ複数のスライスデータに分割され、これらのスライスデータがパケット化されたビデオストリームと、オーディオストリームが多重化された多重ストリームが入力され、前記ビデオストリームを復号する復号装置において、
前記多重化ストリームから、前記ビデオストリームと前記オーディオストリームを分離する分離手段と、前記ビデオストリームを構成するパケットのヘッダに含まれる情報に基づいて、前記スライスデータを元の同じピクチャデータ毎に分類するための境界情報を検出する境界情報検出手段とを備えるAV分離部と、
前記AV分離部の境界情報検出手段から通知される境界情報に基づいて、前記スライスデータを同じピクチャデータ毎に分類して、前記スライスデータを復号するビデオ復号部とを具備し、
前記ビデオ復号部は、前記スライスデータのヘッダから、前記スライスデータを同じピクチャデータ毎に分類するための識別情報を検出する識別情報検出手段をさらに備え、前記境界情報と前記識別情報に基づいて、前記スライスデータを同じピクチャデータ毎に分類して、前記スライスデータを復号することを特徴とする復号装置。
Each picture data is divided into a plurality of slice data, a video stream in which the slice data is packetized, and a multiplexed stream in which an audio stream is multiplexed are input, and a decoding device for decoding the video stream,
The slice data is classified for each original picture data based on separation means for separating the video stream and the audio stream from the multiplexed stream, and information included in a header of a packet constituting the video stream. An AV separation unit comprising boundary information detection means for detecting boundary information for
A video decoding unit that classifies the slice data into the same picture data based on the boundary information notified from the boundary information detection unit of the AV separation unit, and decodes the slice data;
The video decoding unit further comprises identification information detecting means for detecting identification information for classifying the slice data for each same picture data from the header of the slice data, and based on the boundary information and the identification information, A decoding apparatus, wherein the slice data is classified into the same picture data and the slice data is decoded.
前記ビデオ復号部は、前記境界情報と前記識別情報のうち、前記境界情報を優先的に用いて前記スライスデータを同じピクチャデータ毎に分類して、前記スライスデータを復号することを特徴とする請求項1に記載の復号装置。   The video decoding unit decodes the slice data by classifying the slice data into the same picture data using the boundary information preferentially among the boundary information and the identification information. Item 4. The decoding device according to Item 1.
JP2006028545A 2006-02-06 2006-02-06 Decoding device Expired - Fee Related JP4731343B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006028545A JP4731343B2 (en) 2006-02-06 2006-02-06 Decoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006028545A JP4731343B2 (en) 2006-02-06 2006-02-06 Decoding device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2010282053A Division JP5201200B2 (en) 2010-12-17 2010-12-17 Decoding device

Publications (2)

Publication Number Publication Date
JP2007208917A JP2007208917A (en) 2007-08-16
JP4731343B2 true JP4731343B2 (en) 2011-07-20

Family

ID=38487929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006028545A Expired - Fee Related JP4731343B2 (en) 2006-02-06 2006-02-06 Decoding device

Country Status (1)

Country Link
JP (1) JP4731343B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4693427B2 (en) * 2005-01-27 2011-06-01 京セラ株式会社 Digital broadcast receiver
CN101227619B (en) * 2008-01-29 2011-06-15 华为技术有限公司 Method for realizing image error covering in video decipher and video decoder
JP4947389B2 (en) 2009-04-03 2012-06-06 ソニー株式会社 Image signal decoding apparatus, image signal decoding method, and image signal encoding method
US9049493B2 (en) * 2010-09-13 2015-06-02 Intel Corporation Techniques enabling video slice alignment for low-latecy video transmissions over mmWave communications
KR20130116782A (en) 2012-04-16 2013-10-24 한국전자통신연구원 Scalable layer description for scalable coded video bitstream

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07170513A (en) * 1993-12-15 1995-07-04 Hitachi Ltd Picture coding/decoding method
JPH08195035A (en) * 1995-01-13 1996-07-30 Hitachi Ltd Information recording method, reproducing method recording device and reproducing device
JP2004357322A (en) * 1996-09-02 2004-12-16 Toshiba Corp Decoding-demultiplexing apparatus in information transmission system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07170513A (en) * 1993-12-15 1995-07-04 Hitachi Ltd Picture coding/decoding method
JPH08195035A (en) * 1995-01-13 1996-07-30 Hitachi Ltd Information recording method, reproducing method recording device and reproducing device
JP2004357322A (en) * 1996-09-02 2004-12-16 Toshiba Corp Decoding-demultiplexing apparatus in information transmission system

Also Published As

Publication number Publication date
JP2007208917A (en) 2007-08-16

Similar Documents

Publication Publication Date Title
JP6961778B2 (en) Transmission method, reception method, transmitter and receiver
KR100768058B1 (en) Encoded stream reproducing apparatus
FI117844B (en) Procedure for arranging video data for transmission
CN102106146B (en) In scalable video decoding, enhancement layer packet loses the hidden method of mistake
JP2006295568A (en) Moving picture decoder and picture border judgement method
JP2007189688A (en) Method and apparatus for changing codec to reproduce video and/or audio data stream encoded by different codec within the same channel
EP0896479A2 (en) Synchronizing circuit and method for a video data decoder
JP4731343B2 (en) Decoding device
US8332736B2 (en) Decoder with resiliency to handle errors in a received data stream
US7839925B2 (en) Apparatus for receiving packet stream
US11128911B2 (en) Decoding device, reception device, transmission device, transmission/reception system, decoding method, and storage medium having decoding program stored therein
US8767840B2 (en) Method for detecting errors and recovering video data
US20030193940A1 (en) Apparatus and method of packetizing data stream
JP5201200B2 (en) Decoding device
JP4295861B2 (en) Transcoder device
WO2016157724A1 (en) Video decoding device
US8600176B2 (en) Error detection method and apparatus in DMB receiver
JP7472345B2 (en) Transmission method, reception method, transmission device, and reception device
JP5672320B2 (en) Decoder device
JP2008067212A (en) Moving image decoding apparatus
KR101114749B1 (en) Method for processing image data in mpeg-2 ts in order to not occurring blue screen and digital multimedia broadcasting receiver thereof
JP2006295567A (en) Packet-stream receiver
JP2008148004A (en) Video decoder, digital broadcast receiver, video-decoding method, video-decoding program, and recording medium with video-decoding program stored
JP2013106060A (en) Semiconductor device and signal processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080325

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100413

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100803

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20101019

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20101028

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101217

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20101228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110224

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110322

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110419

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140428

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140428

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

LAPS Cancellation because of no payment of annual fees