JP2003078877A - Image processor - Google Patents

Image processor

Info

Publication number
JP2003078877A
JP2003078877A JP2001269662A JP2001269662A JP2003078877A JP 2003078877 A JP2003078877 A JP 2003078877A JP 2001269662 A JP2001269662 A JP 2001269662A JP 2001269662 A JP2001269662 A JP 2001269662A JP 2003078877 A JP2003078877 A JP 2003078877A
Authority
JP
Japan
Prior art keywords
packet
packets
image
data
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2001269662A
Other languages
Japanese (ja)
Inventor
Eiji Nishimori
英二 西森
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 Ltd
Original Assignee
Fujitsu 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 Ltd filed Critical Fujitsu Ltd
Priority to JP2001269662A priority Critical patent/JP2003078877A/en
Publication of JP2003078877A publication Critical patent/JP2003078877A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Time-Division Multiplex Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent a noise from being generated in an image at special reproduction. SOLUTION: An input means 20a receives a transport stream. A detection means 20b detects it when a packet including image information with a different kind exists in packets configuring the transport stream received from the input means 20a. When the detection means 20 detects a plurality of packets with the different kind, a division means 20d divides the packet into a plurality of packets. A recording means 20d records the packets divided by the division means 20c. A reproduction means 20e reads the packets recorded by the recording means 20d in a prescribed sequence to realize special reproduction.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は画像処理装置に関
し、特に、複数のパケットから構成されるトランスポー
トストリームを入力し、その中に含まれている画像に対
して所定の処理を施す画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus for inputting a transport stream composed of a plurality of packets and subjecting an image contained therein to predetermined processing. Regarding

【0002】[0002]

【従来の技術】ディジタルテレビ放送では、MPEG
(Moving Picture Experts Group)IIトランスポートス
トリーム(以下、TSと称する)またはこれに準拠した
信号(米国DirecTV(商標)社DSS−TSな
ど)を使って放送が行なわれている。
2. Description of the Related Art MPEG is used in digital television broadcasting.
Broadcasting is performed using a (Moving Picture Experts Group) II transport stream (hereinafter referred to as TS) or a signal compliant with this (such as DSS-TS manufactured by DirecTV (trademark) in the US).

【0003】受信装置は、このような受信信号をNTS
C(National Television Standards Committee)等の
映像信号に変換して出力するとともに、VCR(Video
Cassette Recorder)やPVR(Personal Video Record
er:個人用途画像記録装置で一般にハードディスクによ
る映像蓄積装置を指す)に必要に応じて格納する。
The receiving device sends such a received signal to the NTS.
C (National Television Standards Committee) and other video signals are converted and output, and VCR (Video
Cassette Recorder) and PVR (Personal Video Record)
er: An image recording device for personal use, which generally means a video storage device using a hard disk).

【0004】ところで、受信装置では、見たい箇所を探
すための高速再生や動きの確認のための逆転再生等の特
殊再生を行なう必要がある。例えば、VCRは、任意の
データの読みとばし再生に向かないがデータをバッファ
することにより、また、PVRでは転送速度が速いため
必要なパケット群を高速に読み出すことにより特殊再生
を行なうことができる。
By the way, in the receiving device, it is necessary to perform special reproduction such as high-speed reproduction for searching for a desired portion and reverse reproduction for confirming movement. For example, the VCR is not suitable for skip-reading of arbitrary data, but buffering the data, and because the PVR has a high transfer rate, it can perform special reproduction by reading a necessary packet group at high speed.

【0005】蓄積系メディアであるDVD(Digital Ve
rsatile Disk)では、MPEGIIプログラムストリーム
(PS)によりデータが保存されている。DVDの場
合、画像再生を開始する起点を明確化する必要があるた
め、即座にデコードできるイントラピクチャ(以下I−
picと称する)からストリームが始まることが保証さ
れており、次の画像データへのインデックスを参照しな
がら特殊再生を行なうための各種工夫がなされている。
A DVD (Digital Ve
In the rsatile disk, data is stored by the MPEGII program stream (PS). In the case of a DVD, it is necessary to clarify the starting point for starting image reproduction, so an intra picture that can be immediately decoded (hereinafter referred to as I-
It is guaranteed that the stream starts from "(pic.)", and various measures are taken to perform special reproduction while referring to the index to the next image data.

【0006】放送メディアであるTSでは、起点を特に
定められることがなく、TSパケット単位でPES(Pa
cketized Elementary Stream)が始まることが保証され
ているのみであり、ピクチャ起動のタイミングは保証さ
れていない。また、ストリームを逐次映像化する放送メ
ディアの特徴から、特殊再生のための情報は、そのスト
リーム上に持っていない。
[0006] In TS which is a broadcasting medium, the starting point is not specified in particular, and PES (Pa
cketized Elementary Stream) is only guaranteed to start and the timing of starting the picture is not guaranteed. Also, due to the characteristics of the broadcast media that sequentially visualizes the stream, information for special reproduction is not included in the stream.

【0007】放送として受信したTSデータを蓄積する
場合、ストリームからピクチャスタートコードを検出し
解析することで、各パケットでどのピクチャの始まりが
あるかを知ることが可能であり、この情報に基づいて必
要な画像順序で画像データをデコーダに入力すれば、任
意の順序での再生が可能となる。
When storing the TS data received as broadcast, it is possible to know which picture starts in each packet by detecting and analyzing the picture start code from the stream, and based on this information. If the image data is input to the decoder in the required image order, the reproduction can be performed in any order.

【0008】この時、TSパケットをデコーダに入力す
るが、パケットが必要なピクチャデータのみで構成され
る保証が無く、以前または次のピクチャデータが混在す
る場合がある。この混在データをそのままデコードする
と、前後のデータの連続性が失われ、デコードできなく
なるか、画像に乱れが生じる。そのためこの混在データ
が不要かどうかをデコーダに指示し、その指示でデコー
ダが不要データを読み飛ばすことが出来ればそのような
不具合を防ぐことができる。
At this time, although the TS packet is input to the decoder, there is no guarantee that the packet is composed of only the necessary picture data, and the previous or next picture data may be mixed. If this mixed data is decoded as it is, the continuity of the preceding and following data is lost, and it becomes impossible to decode or the image is disturbed. Therefore, if the decoder can be instructed whether this mixed data is unnecessary and the decoder can skip the unnecessary data by such an instruction, such a problem can be prevented.

【0009】図12は従来のMPEG再生装置である。
この図に示すように、従来のMPEG再生装置は、パケ
ットデータ切り出し部10a、パケット制御部10b、
および、デスクランブラー10cから構成されるTSデ
コーダ10、ならびに、ビデオデコーダ11、テレビジ
ョン受像機12、記憶装置13、TS(Transport Stre
am)解析部14、パケット分解部15、特殊再生用ES
(Elementary Stream)生成部16、および、再パケッ
ト化部17によって構成されている。
FIG. 12 shows a conventional MPEG reproducing apparatus.
As shown in this figure, the conventional MPEG reproducing apparatus includes a packet data cutout unit 10a, a packet control unit 10b,
Also, a TS decoder 10 including a descrambler 10c, a video decoder 11, a television receiver 12, a storage device 13, and a TS (Transport Stre
am) analysis unit 14, packet decomposition unit 15, special playback ES
It is composed of an (Elementary Stream) generation unit 16 and a repacketization unit 17.

【0010】ここで、パケットデータ切り出し部10a
は、パケット制御部10bの解析結果を参照し、入力さ
れたTSパケットから画像データを切り出す処理を実行
する。
Here, the packet data cutout unit 10a
Performs a process of cutting out image data from the input TS packet with reference to the analysis result of the packet control unit 10b.

【0011】パケット制御部10bは、TSパケットの
ヘッダを解析し、データの種別やスクランブルの有無を
判定する。デスクランブラー10cは、画像データにス
クランブル処理が施されている場合には、これを解除す
る処理を施す。
The packet control unit 10b analyzes the header of the TS packet and determines the type of data and the presence or absence of scramble. The descrambler 10c performs a process for canceling the scramble process if the image data is scrambled.

【0012】ビデオデコーダ11は、デスクランブラー
10cから出力された画像データをNTSC信号に変換
して出力する。テレビジョン受像機12は、ビデオデコ
ーダ11から出力されたNTSC信号を表示出力する。
The video decoder 11 converts the image data output from the descrambler 10c into an NTSC signal and outputs it. The television receiver 12 displays and outputs the NTSC signal output from the video decoder 11.

【0013】記憶装置13は、例えば、HDD(Hard D
isk Drive)等によって構成されており、デスクランブ
ラー10cから出力されたTSパケットを記録する。T
S解析部14は、記憶装置13から読み出したTSを逐
次解析して画像データの開始点を求める。
The storage device 13 is, for example, an HDD (Hard D
The TS packet output from the descrambler 10c is recorded. T
The S analysis unit 14 sequentially analyzes the TS read from the storage device 13 to obtain the start point of the image data.

【0014】パケット分解部15は、TSパケットに複
数のピクチャデータが含まれている場合にはこれを分解
し、単一のピクチャデータのみが含まれるようにする。
特殊再生用ES生成部16は、パケット分解部15から
出力されたピクチャデータを必要に応じて並べ替えたり
間引きすることにより、特殊再生用のESを生成する。
The packet disassembling unit 15 disassembles a plurality of picture data in the TS packet so as to include only a single picture data.
The special reproduction ES generation unit 16 generates special reproduction ES by rearranging or thinning out the picture data output from the packet decomposition unit 15 as necessary.

【0015】再パケット化部17は、ESパケットをT
Sパケットに再度変換し、TSデコーダ10に再度入力
する。次に、以上の従来例の動作について説明する。
The repacketizing unit 17 converts the ES packet into T
It is converted again into an S packet and input again into the TS decoder 10. Next, the operation of the above conventional example will be described.

【0016】TSパケットが入力されると、TSデコー
ダ10のパケット制御部10bは、TSパケットのPI
D(Packet Identification)によりデータの種別を判
定し、paylビットにより新しいPESパケットが始
まるか否かを判定し、また、DESフラグによりスクラ
ンブルされたストリームか否かを判定する。
When a TS packet is input, the packet controller 10b of the TS decoder 10 causes the TS packet PI
The type of data is determined by D (Packet Identification), whether a new PES packet is started is determined by the payload bit, and it is determined whether the stream is scrambled by the DES flag.

【0017】パケットデータ切り出し部10aは、パケ
ット制御部10bの解析結果に応じて、TSパケット画
像データを切り出す。デスクランブラー10cは、パケ
ット制御部10bによってスクランブルが施されている
と判定された場合にはパケット切り出し部10aから切
り出されたピクチャデータに対してデスクランブル処理
を施す。
The packet data cutout unit 10a cuts out TS packet image data according to the analysis result of the packet control unit 10b. The descrambler 10c performs descramble processing on the picture data cut out by the packet cutout unit 10a when the packet control unit 10b determines that the scramble is applied.

【0018】記憶装置13は、必要に応じてデスクラン
ブル処理が施されたTSパケットを順次記憶する。TS
解析部14は、TSに含まれているピクチャスタートコ
ードを検出し、それよりも前にピクチャデータが含まれ
ている場合には、複数のピクチャデータを含むパケット
であるとし、パケット分解部15に通知する。
The storage device 13 sequentially stores the TS packets descrambled as needed. TS
The analysis unit 14 detects the picture start code included in the TS, and if the picture data is included before it, the analysis unit 14 determines that the packet includes a plurality of picture data, Notice.

【0019】パケット分解部15は、複数のピクチャデ
ータを含むパケットを、ピクチャ毎に分解して出力す
る。特殊再生用ES生成部16は、例えば、高速再生す
る場合には、B−picを間引きして出力する。
The packet disassembling unit 15 disassembles a packet containing a plurality of picture data for each picture and outputs it. For example, in the case of high speed reproduction, the special reproduction ES generation unit 16 thins out B-pics and outputs the thinned out B-pics.

【0020】再パケット化部17は、特殊再生用ES生
成部16から出力されるESパケットを、TSパケット
に変換して出力する。再パケット化部17から出力され
たTSパケットは、TSデコーダ10を介してビデオデ
コーダ11に供給され、そこでNTSC信号に変換され
た後、テレビジョン受像機12に供給される。
The repacketizing unit 17 converts the ES packet output from the special reproduction ES generating unit 16 into a TS packet and outputs it. The TS packet output from the repacketizing unit 17 is supplied to the video decoder 11 via the TS decoder 10, converted into an NTSC signal there, and then supplied to the television receiver 12.

【0021】その結果、例えば、記憶装置13に格納さ
れている画像データを、高速再生または逆転再生するこ
とが可能になる。図13は、従来のMPEG再生装置の
他の構成例を示す図である。
As a result, for example, the image data stored in the storage device 13 can be reproduced at high speed or in reverse. FIG. 13 is a diagram showing another configuration example of a conventional MPEG reproducing apparatus.

【0022】この図の例は、特願2000−35711
8に記載されているものである。この図の例は、パケッ
トデータ切り出し部30a、パケット制御部30b、デ
スクランブラー&インデックス生成部30c、および、
不連続検出処理部30dによって構成されるTSデコー
ダ30、ならびに、ビデオデコーダ40、テレビジョン
受像機41、記憶装置42、パケット処理部43によっ
て構成されている。
The example of this figure is shown in Japanese Patent Application No. 2000-35711.
8 are described. In the example of this figure, a packet data cutout unit 30a, a packet control unit 30b, a descrambler & index generation unit 30c, and
It is composed of a TS decoder 30 configured by the discontinuity detection processing unit 30d, a video decoder 40, a television receiver 41, a storage device 42, and a packet processing unit 43.

【0023】ここで、パケットデータ切り出し部30a
は、パケット制御部30bの解析結果を参照し、入力さ
れたTSパケットから画像データを切り出す処理を実行
する。
Here, the packet data cutout unit 30a
Performs a process of cutting out image data from the input TS packet with reference to the analysis result of the packet control unit 30b.

【0024】パケット制御部30bは、TSパケットの
ヘッダを解析し、データの種別やスクランブルの有無を
判定する。デスクランブラー&インデックス生成部30
cは、画像データにスクランブル処理が施されている場
合には、これを解除する処理を施すとともに、ピクチャ
スタートコードを検出し、その位置を示すインデックス
を生成して出力する。
The packet controller 30b analyzes the header of the TS packet and determines the type of data and the presence / absence of scramble. Descrambler & index generator 30
When the image data has been scrambled, c performs processing for canceling the scramble, detects the picture start code, and generates and outputs an index indicating the position.

【0025】不連続検出処理部30dは、TSパケット
に不連続なデータが含まれていることが示されている場
合には、これを検出し、ビデオデコーダ40に通知す
る。ビデオデコーダ40は、不連続検出処理部30dか
ら出力された画像データをNTSC信号に変換するとと
もに、不連続なデータが含まれている場合にはそのデー
タに対するデコード処理を一時的に停止する。
When it is indicated that the TS packet contains discontinuous data, the discontinuity detection processing unit 30d detects this and notifies the video decoder 40 of this. The video decoder 40 converts the image data output from the discontinuity detection processing unit 30d into an NTSC signal, and when discontinuous data is included, temporarily stops the decoding process for the data.

【0026】テレビジョン受像機41は、ビデオデコー
ダ40から出力されたNTSC信号を表示出力する。記
憶装置42は、例えば、HDD等によって構成されてお
り、デスクランブラー&インデックス生成部30cから
出力されたTSパケットを記録する。
The television receiver 41 displays and outputs the NTSC signal output from the video decoder 40. The storage device 42 is composed of, for example, an HDD or the like, and records the TS packet output from the descrambler & index generation unit 30c.

【0027】パケット処理部43は、記憶装置42に記
憶されているインデックスを参照し、TSパケットを所
定の順序で読み出すとともに、パケットが不連続なデー
タを含む場合にはその旨を示す情報を挿入して出力す
る。
The packet processing unit 43 refers to the index stored in the storage device 42, reads the TS packets in a predetermined order, and inserts information indicating that when the packets include discontinuous data. And output.

【0028】次に、以上の従来例の動作について説明す
る。TSパケットが入力されると、TSデコーダ30の
パケット制御部30bは、TSパケットのPIDにより
データの種別を判定し、paylビットにより新しいP
ESパケットが始まるか否かを判定し、また、DESフ
ラグによりスクランブルされたストリームか否かを判定
する。
Next, the operation of the above conventional example will be described. When a TS packet is input, the packet control unit 30b of the TS decoder 30 determines the data type based on the PID of the TS packet, and a new P based on the payload bit.
It is determined whether the ES packet starts, and whether the stream is scrambled by the DES flag.

【0029】パケットデータ切り出し部30aは、パケ
ット制御部30bの判定結果に応じて、TSパケットか
ら画像データを切り出す。デスクランブラー&インデッ
クス生成部30cは、パケット制御部30bによってス
クランブルが施されていると判定された場合にはパケッ
ト切り出し部30aから切り出された画像データに対し
てデスクランブル処理を施す。また、ピクチャスタート
コードが検出された場合には、その位置を示す情報をイ
ンデックス情報として記憶装置42にTSパケットとと
もに記録させる。
The packet data cutout unit 30a cuts out the image data from the TS packet according to the determination result of the packet control unit 30b. The descrambler & index generation unit 30c performs descramble processing on the image data cut out by the packet cutout unit 30a when the packet control unit 30b determines that the scramble is performed. When the picture start code is detected, the information indicating the position is recorded as index information in the storage device 42 together with the TS packet.

【0030】記憶装置42は、デスクランブラー&イン
デックス生成部30cから出力されたTSパケットおよ
びインデックスを順次記録する。パケット処理部43
は、記憶装置42に格納されているインデックスを参照
し、ピクチャデータの先頭を検出して、ピクチャデータ
単位でTSパケットを読み出すとともに、例えば、高速
再生の場合にはB−picを間引きして出力する。ま
た、TSパケットが不連続なデータを含んでいる場合、
即ち、TSパケットが不要なデータを含む場合にはその
旨を示す情報を挿入して出力する。
The storage device 42 sequentially records the TS packet and index output from the descrambler & index generator 30c. Packet processing unit 43
Refers to the index stored in the storage device 42, detects the beginning of the picture data, reads the TS packet in units of picture data, and, for example, in the case of high-speed reproduction, thins out B-pic and outputs it. To do. When the TS packet contains discontinuous data,
That is, when the TS packet includes unnecessary data, the information indicating that is inserted and output.

【0031】パケット処理部43から出力されたTSパ
ケットは、パケットデータ切り出し部30aおよびデス
クランブラー&インデックス生成部30cを介して不連
続検出処理部30dに供給される。
The TS packet output from the packet processing unit 43 is supplied to the discontinuity detection processing unit 30d via the packet data cutout unit 30a and the descrambler & index generation unit 30c.

【0032】不連続検出処理部30dは、TSパケット
に不連続な画像データが含まれていることを示す情報が
パケット処理部43によって挿入されている場合には、
その旨をビデオデコーダ40に通知する。
The discontinuity detection processing unit 30d, when information indicating that the TS packet contains discontinuous image data is inserted by the packet processing unit 43,
This is notified to the video decoder 40.

【0033】ビデオデコーダ40は、不連続検出処理部
30dから出力されたTSパケットをNTSC信号に変
換して出力するとともに、TSパケットに不連続なピク
チャデータを含むことを示す情報が挿入されている場合
には、そのパケットについては、それ以降のピクチャデ
ータについてはデコードを中止する。
The video decoder 40 converts the TS packet output from the discontinuity detection processing unit 30d into an NTSC signal and outputs the NTSC signal, and also inserts information indicating that the TS packet contains discontinuous picture data. In that case, decoding of the packet is stopped for the subsequent picture data.

【0034】テレビジョン受像機41は、ビデオデコー
ダ40から出力されたNTSC信号を表示出力する。以
上の従来例によれば、図12の場合と同様に、記憶装置
42に格納されている画像データを、高速再生または逆
転再生することが可能になる。
The television receiver 41 displays and outputs the NTSC signal output from the video decoder 40. According to the conventional example described above, the image data stored in the storage device 42 can be reproduced at high speed or in reverse as in the case of FIG.

【0035】[0035]

【発明が解決しようとする課題】しかし、図12に示す
従来例では、TS解析部14およびパケット分解部15
等によりTSパケットをリアルタイムに解析し、分解等
の処理を行なう必要があるので、スムーズな特殊再生が
困難であるという問題点があった。
However, in the conventional example shown in FIG. 12, the TS analysis unit 14 and the packet disassembly unit 15 are provided.
Therefore, it is necessary to analyze the TS packet in real time and perform processing such as disassembling, so that there is a problem that smooth special reproduction is difficult.

【0036】また、図13に示す従来例では、ビデオデ
コーダ40に対して不連続なピクチャデータが含まれて
いることを通知するために、MPEG規格では定義され
ていない特殊な情報を挿入するため、特定のデコーダで
しか再生できないという問題点があった。
Further, in the conventional example shown in FIG. 13, in order to notify the video decoder 40 that discontinuous picture data is included, special information not defined in the MPEG standard is inserted. However, there is a problem that it can be played back only by a specific decoder.

【0037】本発明はこのような点に鑑みてなされたも
のであり、MPEGトランスポートストリームにおい
て、高速再生や逆転再生などの特殊再生を行なう場合で
あっても、ノイズの発生や画像の乱れを生じることな
く、スムーズかつ普遍性を有する画像処理装置を提供す
ることを目的とする。
The present invention has been made in view of the above circumstances, and noise or image disturbance is generated even in special reproduction such as high speed reproduction or reverse reproduction in an MPEG transport stream. An object of the present invention is to provide an image processing device that is smooth and has universality without any occurrence.

【0038】[0038]

【課題を解決するための手段】本発明では上記課題を解
決するために、図1に示す、複数のパケットから構成さ
れるトランスポートストリームを入力し、その中に含ま
れている画像に対して所定の処理を施す画像処理装置2
0において、前記トランスポートストリームを入力する
入力手段20aと、前記入力手段20aから入力された
トランスポートストリームを構成するパケットのうち、
異なる種類の画像情報を含むパケットが存在する場合に
はこれを検出する検出手段20bと、前記検出手段20
bによって複数のパケットが含まれていることが検出さ
れた場合には、そのパケットを複数のパケットに分割す
る分割手段20cと、を有することを特徴とする画像処
理装置20が提供される。
In order to solve the above-mentioned problems, the present invention inputs a transport stream composed of a plurality of packets, as shown in FIG. 1, with respect to an image contained therein. Image processing device 2 for performing predetermined processing
0, of the input means 20a for inputting the transport stream and the packets forming the transport stream input from the input means 20a,
When there is a packet containing different types of image information, a detecting means 20b for detecting this and the detecting means 20
When it is detected by b that a plurality of packets are included, the image processing apparatus 20 is provided which includes a dividing unit 20c that divides the packet into a plurality of packets.

【0039】ここで、入力手段20aは、トランスポー
トストリームを入力する。検出手段20bは、入力手段
20aから入力されたトランスポートストリームを構成
するパケットのうち、異なる種類の画像情報を含むパケ
ットが存在する場合にはこれを検出する。分割手段20
cは、検出手段20bによって複数のパケットが含まれ
ていることが検出された場合には、そのパケットを複数
のパケットに分割する。
Here, the input means 20a inputs the transport stream. The detection unit 20b detects a packet, which is included in the transport stream input from the input unit 20a, and includes a packet including different types of image information, when the packet includes the image information. Dividing means 20
When the detecting unit 20b detects that the packet includes a plurality of packets, the packet c is divided into a plurality of packets.

【0040】[0040]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。図1は、本発明の動作原理を説明
する原理図である。この図に示すように、本発明の画像
処理装置20は、入力手段20a、検出手段20b、分
割手段20c、記録手段20d、および、再生手段20
eによって構成されている。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a principle diagram for explaining the operation principle of the present invention. As shown in this figure, the image processing apparatus 20 of the present invention includes an input unit 20a, a detection unit 20b, a dividing unit 20c, a recording unit 20d, and a reproducing unit 20.
It is composed of e.

【0041】ここで、入力手段20aは、複数のパケッ
トから構成されるトランスポートストリームを入力す
る。検出手段20bは、入力手段20aから入力された
トランスポートストリームを構成するパケットのうち、
異なる種類の画像情報を含むパケットが存在する場合に
はこれを検出する。
Here, the input means 20a inputs a transport stream composed of a plurality of packets. The detection means 20b, out of the packets forming the transport stream input from the input means 20a,
If there is a packet containing different types of image information, this is detected.

【0042】分割手段20cは、検出手段20bによっ
て複数の画像が含まれているパケットが検出された場合
には、そのパケットを複数のパケットに分割する。記録
手段20dは、分割手段20cによって分割されたパケ
ットおよび通常のパケットを記録する。
When the detecting means 20b detects a packet containing a plurality of images, the dividing means 20c divides the packet into a plurality of packets. The recording unit 20d records the packet divided by the dividing unit 20c and the normal packet.

【0043】再生手段20eは、記録手段20dに記録
されているパケットを所定の順序で読み出し、特殊再生
を実行する。次に、以上の原理図の動作について説明す
る。
The reproducing means 20e reads the packets recorded in the recording means 20d in a predetermined order and executes special reproduction. Next, the operation of the above principle diagram will be described.

【0044】いま、図1に示すように、第1のパケット
〜第4のパケットが画像処理装置20に入力されたとす
る。なお、第1のパケットは、I−picのみを含んで
おり、第2のパケットはI−picおよびB−picの
双方を含んでいる。更に、第3および第4のパケットは
B−picのみを含んでいる。
Now, it is assumed that the first to fourth packets are input to the image processing apparatus 20, as shown in FIG. The first packet contains only I-pic, and the second packet contains both I-pic and B-pic. Furthermore, the third and fourth packets contain only B-pics.

【0045】入力手段20aは、これら第1〜第4のパ
ケットを入力し、検出手段20bに供給する。検出手段
20bは、入力手段20aから供給されたパケットのう
ち、異なる種類の画像情報を含むパケットが存在する場
合にはこれを検出する。いまの例では、第2のパケット
がI−picとB−picの双方を含むため、検出手段
20bは第2のパケットが該当するパケットであるとし
てこれを検出する。
The input means 20a inputs these first to fourth packets and supplies them to the detection means 20b. The detection unit 20b detects a packet including different types of image information among the packets supplied from the input unit 20a, if any. In the present example, since the second packet includes both I-pic and B-pic, the detecting means 20b detects this as the corresponding packet.

【0046】分割手段20cは、検出手段20bによっ
て複数のパケットが含まれていることが検出された場合
には、そのパケットを複数のパケットに分割する。いま
の例では、第2のパケットがI−picとB−picの
2種類の画像を含んでいるので、分割手段20cは、第
2のパケットを第2aのパケットと、第2bのパケット
に分割する。なお、分割の方法としては、例えば、第2
のパケットの複製を作成し、複製元を第2aのパケット
とし、複製先を第2bのパケットとする。そして、第2
aのパケットについては、B−picが含まれている領
域についてゼロスタッフィングを行ない、また、第2b
のパケットについては、I−picが含まれている領域
についてゼロスタッフィングを行なう。このようにする
ことで、パケットをそれぞれの画像毎に分割することが
できる。
When the detecting means 20b detects that a plurality of packets are included, the dividing means 20c divides the packet into a plurality of packets. In the present example, since the second packet includes two types of images, I-pic and B-pic, the dividing means 20c divides the second packet into the 2a packet and the 2b packet. To do. As a method of division, for example, the second
A duplicate of the packet is created, the duplicate source is the second packet, and the duplicate destination is the second packet. And the second
For packet a, zero stuffing is performed on the area including B-pic, and the second b
The zero stuffing is performed on the area including the I-pic. By doing so, the packet can be divided for each image.

【0047】記録手段20dは、分割手段20cによっ
て分割されたパケットを順次格納する。なお、このと
き、再生時にデータの読み出し処理を容易にするため
に、インデックスを生成して格納する。
The recording means 20d sequentially stores the packets divided by the dividing means 20c. At this time, an index is generated and stored in order to facilitate the data reading process during reproduction.

【0048】再生手段20eは、記録手段20dに記録
されているインデックスを参照し、必要なパケットを所
定の順序で読み出すことにより、高速再生や逆転再生等
の特殊再生を実行する。例えば、高速再生の場合には、
B−picを飛ばして再生することにより実現できる。
このとき、全てのパケットは単一の種類の画像しか含ま
ないため、パケットを飛ばして再生した場合であって
も、ノイズの発生を防止することが可能になる。
The reproducing means 20e refers to the index recorded in the recording means 20d and reads out necessary packets in a predetermined order to execute special reproduction such as high speed reproduction and reverse reproduction. For example, in case of high speed playback,
It can be realized by skipping B-pic and reproducing.
At this time, since all the packets include only a single type of image, it is possible to prevent noise even when the packets are skipped and reproduced.

【0049】以上に説明したように、本発明の画像処理
装置20によれば、複数の種類の画像を含むパケットに
ついては、画像毎に分割してパケットを生成するように
したので、特殊再生時に問題となるノイズの発生を防止
することが可能になる。
As described above, according to the image processing apparatus 20 of the present invention, for a packet including a plurality of types of images, the packet is generated by dividing each image, so that the special reproduction is performed. It is possible to prevent the generation of problematic noise.

【0050】次に、本発明の実施の形態について説明す
る。図2は、本発明の実施の形態の構成例を示す図であ
る。この図に示すように、本発明の実施の形態は、TS
デコーダ60、ビデオデコーダ70、テレビジョン受像
機71、記憶装置72、および、パケット処理部73に
よって構成されている。
Next, an embodiment of the present invention will be described. FIG. 2 is a diagram showing a configuration example of the embodiment of the present invention. As shown in this figure, the embodiment of the present invention is
It is composed of a decoder 60, a video decoder 70, a television receiver 71, a storage device 72, and a packet processing unit 73.

【0051】ここで、TSデコーダ60は、パケットデ
ータ切り出し部60a、パケット制御部60b、デスク
ランブラー&PES長差し替え部60c、コピー制御処
理部60d、第1のパケットバッファ部60e、第2の
パケットバッファ部60f、および、選択パケット出力
部60gによって構成されており、TSパケットを入力
し、必要に応じてデスクランブル処理を施すとともに、
単一のパケットに複数の種類の画像が含まれている場合
にはこれを分割して記憶装置72に出力する。
Here, the TS decoder 60 includes a packet data cutout unit 60a, a packet control unit 60b, a descrambler & PES length replacement unit 60c, a copy control processing unit 60d, a first packet buffer unit 60e, and a second packet buffer unit. 60 f and a selection packet output unit 60 g, which inputs TS packets, performs descrambling processing as necessary, and
When a single packet contains a plurality of types of images, it is divided and output to the storage device 72.

【0052】ここで、パケットデータ切り出し部60a
は、パケット制御部60bの解析結果を参照し、入力さ
れたTSパケットから画像データを切り出す処理を実行
する。
Here, the packet data cutout unit 60a
Performs a process of cutting out image data from the input TS packet with reference to the analysis result of the packet control unit 60b.

【0053】パケット制御部60bは、TSパケットの
ヘッダを解析し、データの種別やスクランブルの有無を
判定する。デスクランブラー&PES長差し替え部60
cは、画像データにスクランブル処理が施されている場
合にはこれを解除する処理を施すとともに、PESデー
タ長の差し替え処理、および、スタートコードを検出す
る処理を実行する。
The packet control unit 60b analyzes the header of the TS packet and determines the type of data and the presence or absence of scramble. Descrambler & PES long replacement part 60
When the image data has been scrambled, the c performs a process of canceling the scramble process, a process of replacing the PES data length, and a process of detecting the start code.

【0054】コピー制御処理部60dは、パケットを第
1のパケットバッファ部60eおよび第2のパケットバ
ッファ部60fにコピーする制御を実行するとともに、
インデックスを抽出する処理を行なう。
The copy control processing unit 60d executes control for copying a packet to the first packet buffer unit 60e and the second packet buffer unit 60f, and
Perform the process of extracting the index.

【0055】第1のパケットバッファ部60eは、パケ
ットを分割する際に、第1のパケットを格納する。第2
のパケットバッファ部60fは、パケットを分割する際
に、第2のパケットを格納するとともに、パケットを分
割しない場合には通常のパケットを格納する。
The first packet buffer section 60e stores the first packet when dividing the packet. Second
The packet buffer unit 60f stores the second packet when the packet is divided, and stores the normal packet when the packet is not divided.

【0056】選択パケット出力部60gは、第1のパケ
ットバッファ部60eまたは第2のパケットバッファ部
60fの何れかに格納されているパケットを選択して記
憶装置72に出力する。
The selected packet output unit 60g selects a packet stored in either the first packet buffer unit 60e or the second packet buffer unit 60f and outputs it to the storage device 72.

【0057】記憶装置72は、例えば、HDD等によっ
て構成されており、TSデコーダ60から出力されたパ
ケットを順次記録する。パケット処理部73は、特殊再
生を行なう際に、記憶装置72に記憶されているパケッ
トをインデックスを参照して所定の順序で読み出し、T
Sデコーダ60に供給する。
The storage device 72 is composed of, for example, an HDD or the like, and sequentially records the packets output from the TS decoder 60. When performing trick play, the packet processing unit 73 reads out the packets stored in the storage device 72 in a predetermined order by referring to the index, and
It is supplied to the S decoder 60.

【0058】ビデオデコーダ70は、TSデコーダ60
から出力されたパケットを、NTSC信号に変換し、テ
レビジョン受像機71に供給する。テレビジョン受像機
71は、ビデオデコーダ70から出力されたNTSC信
号を表示出力する。
The video decoder 70 is the TS decoder 60.
The packet output from is converted into an NTSC signal and supplied to the television receiver 71. The television receiver 71 displays and outputs the NTSC signal output from the video decoder 70.

【0059】次に、以上の実施の形態の動作について説
明する。TSパケットが入力されると、パケット制御部
60bは、TSパケットのPIDによりデータの種別を
判定し、paylビットにより新しいPESパケットが
始まるか否かを判定し、また、DESフラグによりスク
ランブルされたストリームか否かを判定し、判定結果を
パケットデータ切り出し部60aに通知する。
Next, the operation of the above embodiment will be described. When a TS packet is input, the packet control unit 60b determines the data type from the PID of the TS packet, determines whether a new PES packet starts with the payl bit, and scrambles the stream with the DES flag. It is determined whether or not, and the determination result is notified to the packet data cutout unit 60a.

【0060】パケットデータ切り出し部60aは、パケ
ット制御部60bから通知される情報に応じて、TSか
らパケットを切り出し、デスクランブラー&PES長差
し替え部60cに供給する。
The packet data cutout unit 60a cuts out a packet from the TS according to the information notified from the packet control unit 60b and supplies it to the descrambler & PES length replacement unit 60c.

【0061】デスクランブラー&PES長差し替え部6
0cは、デスクランブル処理が必要な場合にはデスクラ
ンブル処理を施す。また、パケットに複数の種類の画像
が含まれているか否かを判定し、複数の種類の画像が含
まれている場合には、これを分割するようにコピー制御
処理部60dに通知する。
Descrambler & PES long replacement section 6
0c performs descramble processing when descramble processing is necessary. In addition, it is determined whether or not the packet includes a plurality of types of images, and if a plurality of types of images are included, the copy control processing unit 60d is notified to divide the images.

【0062】ここで、通常のパケットでは、シーケンス
ヘッダコードまたはグループオブピクチャコード(GO
P)がピクチャスタートコードに先行して挿入される場
合があるが、デスクランブラー&PES長差し替え部6
0cは、これらをまとめてピクチャスタートコードとし
て扱い、また、PESヘッダコードおよびこれに続くP
ESヘッダ本体は、ピクチャデータ本体ではないためこ
れを除き、ピクチャスタートコードの前にデータが存在
する場合には、パケットに複数の異なる種類の画像が含
まれていると判定する。
Here, in a normal packet, a sequence header code or a group of picture code (GO) is used.
P) may be inserted before the picture start code, but the descrambler & PES length replacement unit 6
0c collectively treats these as a picture start code, and also a PES header code and P following this.
Except for this, the ES header body is not the picture data body, and if there is data before the picture start code, it is determined that the packet contains a plurality of different types of images.

【0063】より詳細には、デスクランブラー&PES
長差し替え部60cは、デスクランブルされたTSパケ
ットのデータより、00−00−01−xxで始まるス
タートコードを検出した場合において、xx=00であ
るならばそのコードは、ピクチャスタートコードである
ので、その前に異なる画像データが存在する場合は、ス
タートコードの最初のデータからパケットを分割するた
め、その開始位置情報を保存する。また、以前の画像デ
ータが存在するか否かの判定方法としては、PESスタ
ートコードがある場合、PESヘッダ分のデータを無視
し、スタートコード(スライススタートコードは除く)
からパケットが始まっていれば、前の画像は存在しない
ものと判定できる。なお、xx=B3(シーケンスヘッ
ダ)、xx=B8(GOP)も同様にパケット分割の起
点であり、その後のピクチャスタートコードと同一の画
像の情報であるため、そのピクチャスタートコードは新
たな画像の開始とは判断しない。
More specifically, the descrambler & PES
When the long replacement unit 60c detects a start code beginning with 00-00-01-xx from the descrambled TS packet data, if xx = 00, the code is a picture start code. If different image data exists before that, the start position information is saved because the packet is divided from the first data of the start code. As a method of determining whether or not the previous image data exists, when there is a PES start code, the data for the PES header is ignored and the start code (excluding the slice start code) is used.
If the packet starts from, it can be determined that the previous image does not exist. Note that xx = B3 (sequence header) and xx = B8 (GOP) are also the starting points of packet division and are the same image information as the subsequent picture start code, so the picture start code is for the new image. It is not judged as the start.

【0064】更に、デスクランブラー&PES長差し替
え部60cは、後述するように、ピクチャスタートコー
ドが分割されて2つのパケットに格納されている場合で
あって、前のパケットに格納されているピクチャスター
トコードをゼロスタッフィングにより削除する場合には
データ長が増えるため、PES長の差し替えを行なう。
Further, as will be described later, the descrambler & PES length replacing section 60c stores the picture start code stored in the previous packet when the picture start code is divided and stored in two packets. Since the data length increases when is deleted by zero stuffing, the PES length is replaced.

【0065】コピー制御処理部60dは、デスクランブ
ラー&PES長差し替え部60cからパケットが複数の
異なる画像を含む旨が通知された場合には、図3に示す
ように、もとのパケット(図3(A)参照)を、第1の
パケットバッファ部60eと第2のパケットバッファ部
60fにコピーする。
When the copy control processing unit 60d is notified by the descrambler & PES length replacing unit 60c that the packet includes a plurality of different images, the copy control processing unit 60d, as shown in FIG. (See A)) is copied to the first packet buffer unit 60e and the second packet buffer unit 60f.

【0066】そして、第1のパケットバッファ部60e
に対しては、図3(B)に示すように、P−picのヘ
ッダであるpic.hと、実データであるP−picに
対してゼロスタッフィングを行なう。
Then, the first packet buffer unit 60e
3B, as shown in FIG. 3 (B), pic. Zero stuffing is performed on h and actual data P-pic.

【0067】一方、第2のパケットバッファ部60fに
対しては、図3(C)に示すように、実データであるB
−picに対してゼロスタッフィングを行なう。なお、
TSのスタートコード前に0を挿入してもデータストリ
ームとしては、特に問題にはならないので、このような
方法によってパケットを分割した場合でも、後段のブロ
ックにおいて問題が発生することはない。
On the other hand, for the second packet buffer unit 60f, as shown in FIG.
Perform zero stuffing on pic. In addition,
Even if 0 is inserted before the start code of the TS, there is no particular problem as a data stream. Therefore, even if the packet is divided by such a method, no problem occurs in the subsequent block.

【0068】次に、選択パケット出力部60gは、パケ
ットが分割された場合には、先ず、第1のパケットバッ
ファ部60eからパケットを読み出し、記憶装置72に
供給し、続いて、第2のパケットバッファ部60fから
パケットを読み出し、記憶装置72に供給して記憶させ
る。また、パケットの分割がなされない場合には、パケ
ットは第2のパケットバッファ部60fに格納されてい
るので、これを読み出して記憶装置72に供給し、記憶
させる。
Next, when the packet is divided, the selected packet output unit 60g first reads the packet from the first packet buffer unit 60e and supplies it to the storage device 72, and then the second packet. The packet is read from the buffer unit 60f and supplied to the storage device 72 for storage. If the packet is not divided, the packet is stored in the second packet buffer unit 60f, and is read out and supplied to the storage device 72 for storage.

【0069】なお、コピー制御処理部60dは、パケッ
トに対するシリアル番号を生成するとともに、そのパケ
ットに格納されている画像データの種類を示すデータを
生成し、これをインデックスとして記憶装置72に供給
するので、記憶装置72にはパケットと、インデックス
とが対応付けされて記憶されることになる。
The copy control processing unit 60d generates a serial number for the packet, generates data indicating the type of image data stored in the packet, and supplies this to the storage device 72 as an index. The packet and the index are associated with each other and stored in the storage device 72.

【0070】パケット処理部73は、記憶装置72に記
憶されているインデックスを参照し、所定の順序でパケ
ットを読み出してTSデコーダ60に供給することによ
り、特殊再生を実行する。
The packet processing unit 73 refers to the index stored in the storage device 72, reads out the packets in a predetermined order and supplies them to the TS decoder 60, thereby executing special reproduction.

【0071】図4は、特殊再生の具体例を説明するため
の図である。一般的に、TSでは、データは188バイ
ト単位のパケットに収められる。ビデオデータのような
PESデータであって、アダプテーションフィールドが
存在しない場合、パケットは、TSヘッダ4バイトとP
ESデータ184バイトから構成される。
FIG. 4 is a diagram for explaining a specific example of trick play. Generally, in TS, data is stored in packets of 188 bytes. When PES data such as video data and no adaptation field exists, the packet has a TS header of 4 bytes and a P header.
It consists of 184 bytes of ES data.

【0072】図4(A)は、入力されたパケットの一例
を示す図である。この例では、第1〜第4のパケット
と、第5のパケットの前半にI−picが格納され、第
5のパケットの後半と第6のパケットの前半にB−pi
cが格納されている。以下、B−pic、P−pic、
B−pic、B−pic、および、P−picが図に示
すように第6〜第17のパケットにそれぞれ格納されて
いる。
FIG. 4A is a diagram showing an example of the input packet. In this example, the I-pic is stored in the first half of the first to fourth packets and the fifth packet, and the B-pi is stored in the latter half of the fifth packet and the first half of the sixth packet.
c is stored. Hereinafter, B-pic, P-pic,
B-pic, B-pic, and P-pic are stored in the sixth to seventeenth packets, respectively, as shown in the figure.

【0073】図4(B)は、図4(A)に示すパケット
が、分割処理を経た後に、記憶装置72に記憶された場
合の例を示す図である。図4(A)に示す例では、第5
のパケットには、I−picとB−picの2種類が格
納されているので、第5のパケットは第5aのパケット
と、第5bのパケットに分割されて格納されている。ま
た、第6のパケットについても第6aのパケットと、第
6bのパケットに分割されている。同様にして、第8、
第13、第14、および、第17のパケットも2つに分
割されることになる。
FIG. 4B is a diagram showing an example in which the packet shown in FIG. 4A is stored in the storage device 72 after undergoing the dividing process. In the example shown in FIG. 4A, the fifth
Since two types of packets, I-pic and B-pic, are stored in this packet, the fifth packet is divided into a 5a packet and a 5b packet and stored. Further, the sixth packet is also divided into a sixth packet and a sixth packet. Similarly,
The thirteenth, fourteenth, and seventeenth packets will also be divided into two.

【0074】なお、記憶装置72には、第1のパケット
から第5aのパケットまでI−picが格納され、第5
bのパケットから6aのパケットまでB−picが格納
されているといったようなインデックスがコピー制御処
理部60dによって格納される。
It should be noted that the storage device 72 stores I-pics from the first packet to the fifth packet,
The copy control processing unit 60d stores an index such that B-pics are stored from the packet of b to the packet of 6a.

【0075】図4(C)は高速再生の場合におけるパケ
ット処理部73からのパケットの出力態様を示してい
る。この例では、図4(B)に示すパケット群のうち、
B−picが省略されている。このように、B−pic
を省いて出力することにより、この例では3倍の高速再
生が可能となる。即ち、一般にMPEGではI−pic
〜P−picの間にB−picを2枚ずつ挿入するの
で、B−picを省略することにより、3倍の高速再生
が可能となる。この3倍速再生のためには、第1〜第5
a,第8b〜第11,第14b〜第17aのパケットの
順にパケットを読み出し、TSデコーダに供給すればよ
い。第5b〜第8aのパケットの間には、他のピクチャ
のデータが存在せず、また、各ピクチャを順次再生する
ことはMPEGデコーダの基本機能であるので、このよ
うにB−picを省略した場合であっても画像を正常に
再生することが出来る。
FIG. 4C shows a packet output mode from the packet processing unit 73 in the case of high speed reproduction. In this example, among the packet groups shown in FIG.
B-pic is omitted. In this way, B-pic
By omitting and outputting, it is possible to achieve triple speed reproduction in this example. That is, in general, in MPEG, I-pic is used.
Since two B-pics are inserted between P-pics, the B-pics can be omitted to achieve triple speed reproduction. For this 3 × speed reproduction,
The packets may be read out in the order of a, 8b to 11th, and 14b to 17a and supplied to the TS decoder. Since there is no other picture data between the 5bth to 8ath packets and the sequential reproduction of each picture is a basic function of the MPEG decoder, the B-pic is omitted in this way. Even in this case, the image can be reproduced normally.

【0076】図5は、逆転再生する場合の動作の概要を
説明する図である。図5(A)は、入力ストリームの一
例を示す図である。この例では、一つの矩形は1つの種
類の画像(I−pic、B−pic等)を格納している
ものとする。
FIG. 5 is a diagram for explaining the outline of the operation for reverse reproduction. FIG. 5A is a diagram showing an example of the input stream. In this example, one rectangle stores one type of image (I-pic, B-pic, etc.).

【0077】先ず、高速逆方向再生を行なう場合につい
て考える。P−picはI−picとの差分のデータを
有し、次のP−picはその前のP−picとの差分の
データを有するため、I17を再生後にP14を再生す
るためには、I2,P5,P8,P11,P14とデー
タを送りI2〜P11を表示せずP14をI17の次に
表示する必要がある。
First, consider the case of performing high speed reverse reproduction. Since P-pic has difference data with I-pic, and the next P-pic has difference data with the previous P-pic, in order to reproduce I17 and then P14, I2 , P5, P8, P11, P14 are sent, and it is necessary to display P14 next to I17 without displaying I2 to P11.

【0078】以下同様にI2,P5,P8,P11と送
り次のP11を、I2,P5,P8を送りP8を、I
2,P5を送りP5を、I2を送りI2を順次表示す
る。ここで、P11を表示する場合には、実際にはP1
4を表示した時にP11を基準画像として保持している
ので、I2,P5,P8,P11を送り直さなくてもP
11を表示することが出来るので、点線で書かれている
P11の時点でP8,P5を、最後の5つの画像データ
の前でI2を表示することもできる。
Similarly, I2, P5, P8 and P11 are sent and the next P11 is sent, I2, P5 and P8 are sent and P8 is sent to I
2, P5 is fed, P5 is fed, I2 is fed, and I2 is sequentially displayed. Here, when displaying P11, P1 is actually
Since P11 is held as the reference image when 4 is displayed, P2 is not necessary even if I2, P5, P8 and P11 are sent again.
Since 11 can be displayed, P8 and P5 can be displayed at the time of P11 written with a dotted line, and I2 can be displayed before the last five image data.

【0079】なお、このような逆転再生を実現するため
には、パケット処理部73に、このシーケンスで順次正
しく表示するシーケンサを用意しておけばよい。低速再
生では、B−picも表示することでなめらかに逆方向
再生を行なう必要があり、B−picの場合その表示の
ために前後の基準画像であるI−picまたはP−pi
cをデコードしておく必要がある。B13を表示するた
めにI2〜P14を先に送り、P14を表示し、P11
を基準画像と残しておき、次にB13を送りP11また
はP14を参照しB13を表示し、B12を送信しP1
1またはP14を参照しB12を表示していくことにな
る。先の高速逆再生と同様に、点線部分の画像は保持し
ておくことが可能なので、シーケンサの構成により送信
を省きデコードを高速に行なうことが出来る。
In order to realize such a reverse reproduction, a sequencer for displaying correctly in this sequence may be prepared in the packet processing unit 73. In the low-speed reproduction, it is necessary to smoothly perform the backward reproduction by displaying the B-pic as well. In the case of the B-pic, the I-pic or P-pi which is the reference image before and after is displayed for the display.
It is necessary to decode c. Send I2-P14 first to display B13, display P14, and P11
Is left as the reference image, then B13 is sent, P11 or P14 is referred to, B13 is displayed, B12 is sent, and P1 is sent.
B12 is displayed with reference to 1 or P14. As in the case of the high-speed reverse reproduction described above, the image of the dotted line portion can be held, so that transmission can be omitted and decoding can be performed at high speed due to the configuration of the sequencer.

【0080】なお、以上のようにしてパケット処理部7
3によって読み出されたパケットは、TSデコーダ60
を経てビデオデコーダ70に供給され、そこで、NTS
C信号に変換された後、テレビジョン受像機71によっ
て表示される。
The packet processing unit 7 is operated as described above.
The packet read by 3 is TS decoder 60
Is supplied to the video decoder 70 via the
After being converted into a C signal, it is displayed by the television receiver 71.

【0081】以上に示すように、本発明の実施の形態で
は、TSパケットが必ず1つのピクチャのデータを有す
るため、簡単なインデックスを用意することにより、パ
ケットの並べ替えだけで高速再生や逆転再生などの特殊
再生が可能となる。
As described above, in the embodiment of the present invention, since the TS packet always has the data of one picture, a simple index is prepared so that the high speed reproduction and the reverse reproduction can be performed only by rearranging the packets. Special playback such as is possible.

【0082】また、再生処理としては、MPEGの通常
処理(逆再生時の表示スキップは除く)を行なうため、
一般のMPEGデコーダで再生可能であり、コスト低減
のためにデコーダを持たない記録装置の構成を採用する
場合でも基本的な高速再生やI−picのみの逆転再生
が任意のデコーダ装置を使って実行可能となる。
As the reproduction processing, since the normal MPEG processing (excluding the display skip at the time of reverse reproduction) is performed,
It can be played back by a general MPEG decoder, and even if a recording device configuration without a decoder is adopted for cost reduction, basic high-speed playback or I-pic reverse playback can be performed using any decoder device. It will be possible.

【0083】更に、同一のデコーダを用いる場合には、
特殊再生のためのハード機構を設ける必要がなくなり、
また、記録または再生管理系の外部処理も簡単となり、
コストの低減を図ることが出来る。
Further, when the same decoder is used,
There is no need to provide a hardware mechanism for special playback,
In addition, the external processing of the recording or playback management system becomes easy,
The cost can be reduced.

【0084】ところで、以上の実施の形態では、ピクチ
ャスタートコードが1つのパケットに完全に格納されて
いる場合を例に挙げて説明したが、ピクチャスタートコ
ードが2つのパケットにまたがる場合も考えられる。そ
こで、そのような場合における対処方法について以下に
説明する。
In the above embodiments, the case where the picture start code is completely stored in one packet has been described as an example, but the picture start code may extend over two packets. Therefore, a coping method in such a case will be described below.

【0085】ピクチャスタートコードは4バイトで構成
され、これがパケットをまたぐ場合には、後続のパケッ
トを読み込むまでコードの判別が出来ず、処理が困難と
なる。ピクチャスタートコードは、最終スライスの次に
現れるスタートコードであり、それ以前にシーケンスヘ
ッダを読み出し最終スライスを識別し、その後に出現す
るスタートコードについて処理すればよい。なお、この
スタートコードは前述の通り、シーケンスヘッダ、GO
P、ピクチャスタートコードの3つを含む。
The picture start code is composed of 4 bytes, and if it extends over a packet, the code cannot be discriminated until a subsequent packet is read, which makes processing difficult. The picture start code is a start code that appears next to the last slice. The sequence header may be read before that to identify the last slice, and the start code that appears after that may be processed. As described above, this start code is the sequence header and GO.
Includes P and picture start code.

【0086】例えば、図6(A),(B)に示すよう
に、ピクチャスタートコード(00−00−01−0
0)が前後のパケットに分割して格納されている場合に
おいて、アダプテーションフィールドおよびslice
−Nからなるパケット(図6(C)参照)と、アダプテ
ーションフィールドおよびピクチャスタートコードから
なるパケット(図6(D))と、アダプテーションフィ
ールド、ヘッダ、および、ピクチャ本体からなるパケッ
ト(図6(E))を生成する方法が考えられる。
For example, as shown in FIGS. 6A and 6B, a picture start code (00-00-01-0)
0) is divided and stored in the preceding and following packets, the adaptation field and slice
-N (see FIG. 6C), a packet including an adaptation field and a picture start code (FIG. 6D), and a packet including an adaptation field, a header, and a picture body (see FIG. 6E). )) Can be considered.

【0087】しかしながら、このような方法では、図6
(C)に示すパケットを生成する際に、slice−N
をパケットの末尾に移動させるとともに、アダプテーシ
ョンフィールドを生成する必要が生じるので、処理量が
大きくなる。
However, in such a method, as shown in FIG.
When the packet shown in (C) is generated, slice-N
Needs to be moved to the end of the packet and an adaptation field needs to be generated, resulting in a large amount of processing.

【0088】そこで、図7(A)に示すように、ピクチ
ャスタートコードの3バイト目までが第1のパケットに
存在する場合には、図7(B)に示すように、最後の
“01”を“00”に変換しておくことで、これら3バ
イトをゼロスタッフィングとして扱い、後続のパケット
に不足分のバイトを追加すれば第2の画像を後続のパケ
ットに格納することが可能になる。
Therefore, as shown in FIG. 7 (A), when the third byte of the picture start code exists in the first packet, as shown in FIG. 7 (B), the last "01" Is converted to “00”, these 3 bytes are treated as zero stuffing, and the second image can be stored in the subsequent packet by adding the insufficient bytes to the subsequent packet.

【0089】その場合、後続パケットのデータ量が増え
ることになるが、図8(B)に示すように、アダプテー
ションフィールドとピクチャスタートコードのみからな
るパケットを生成し、図8(C)に示すように、図8
(A)のパケットのピクチャスタートコード部分をアダ
プテーションフィールドに変換したパケットを生成する
ようにすれば、少ない処理量でパケットの分割を行なう
ことが出来る。
In this case, the data amount of the subsequent packet increases, but as shown in FIG. 8 (B), a packet including only the adaptation field and the picture start code is generated, and as shown in FIG. 8 (C). In Fig. 8
If a packet is generated by converting the picture start code portion of the packet of (A) into an adaptation field, the packet can be divided with a small processing amount.

【0090】この方式では、1〜3バイトではあるが、
データ量が増えるため、PESデータ長(PESスター
トコード後にある)を書き換える必要が生じる。なお、
この機能は、前述したように、デスクランブラー&PE
S長差し替え部60cが実行する。但し、TSにおいて
はPESデータ長=0でデータ長不定と定義されてお
り、PESデータ長が与えられている場合にはこれを0
に変換することで正常なPESデータ長を持つTSとす
ることが出来る。
In this method, although it is 1 to 3 bytes,
Since the amount of data increases, it becomes necessary to rewrite the PES data length (after the PES start code). In addition,
As mentioned above, this function is used for descrambler & PE.
The S-long replacement unit 60c executes this. However, in the TS, the data length is defined as indefinite when the PES data length = 0, and when the PES data length is given, this is set to 0.
A TS having a normal PES data length can be obtained by converting the TS into a TS.

【0091】また、図9(A)に示すように、ピクチャ
スタートコードがパケットで分断された場合であって、
後続のパケットにアダプテーションフィールドがあり、
ここに不要データが存在する場合(通常、アダプテーシ
ョンフィールドコントロールが00hである場合。な
お、PCRがあり、その後無効データがある場合を含
む)、例えば前パケットに3バイトのヘッダがある場合
には、図9(B)に示すように、アダプテーションデー
タ長を3バイト短くして、全てのピクチャスタートコー
ド“00−00−01−00”を挿入すればよい。
Further, as shown in FIG. 9A, when the picture start code is divided into packets,
Subsequent packets have adaptation fields,
If there is unnecessary data here (usually, if the adaptation field control is 00h, including PCR and then invalid data), for example, if the previous packet has a 3-byte header, As shown in FIG. 9B, the adaptation data length may be shortened by 3 bytes and all picture start codes “00-00-01-00” may be inserted.

【0092】PCR以外を削除する場合には、アダプテ
ーションフィールドコントロールの下位4bit(OP
CR,SPLICING POINT,PRIVATE
DATA,ADAPTATION EXTENSIO
Nの存在を示すビット)を“0”に変換することで「無
効データ」と定義されるので、追加ヘッダのバイト数を
アダプテーション部の長さから減じればよい。
When deleting other than PCR, the lower 4 bits of the adaptation field control (OP
CR, SPLICING POINT, PRIVATE
DATA, ADAPTATION EXTENSIO
It is defined as "invalid data" by converting the bit indicating the presence of N) into "0", so the number of bytes of the additional header may be subtracted from the length of the adaptation part.

【0093】前のパケットに“00”が1バイトのみ存
在し、後続パケットのアダプテーション長が“0”とな
っている場合には、アダプテーションを無くし、必要な
“00”を追加することも当然可能である。
If "00" is present in only 1 byte in the previous packet and the adaptation length of the subsequent packet is "0", it is naturally possible to eliminate the adaptation and add the necessary "00". Is.

【0094】以上の実施の形態によれば、ピクチャスタ
ートコードが2つのパケットにまたがって格納されてい
る場合であっても、画像を正常に特殊再生することが可
能になるとともに、画像処理装置の処理量を削減するこ
とが可能になる。
According to the above-described embodiments, even when the picture start code is stored in two packets, the image can be normally reproduced specially and the image processing apparatus It is possible to reduce the processing amount.

【0095】次に、パケットの分割方法に関する他の実
施の形態について説明する。先に述べた実施の形態で
は、図3に示すように、ゼロスタッフィングによって不
要なデータを削除し、パケットを分割するようにした
が、図10に示すようにアダプテーションフィールドを
追加することにより不要データを削除し、パケットを分
割することも可能である。
Next, another embodiment of the packet dividing method will be described. In the above-described embodiment, unnecessary data is deleted by zero stuffing to divide the packet as shown in FIG. 3, but unnecessary data is added by adding an adaptation field as shown in FIG. Can be deleted and the packet can be divided.

【0096】即ち、図10(B)に示すように、第1の
パケット内の第1のピクチャのデータをパケットの末尾
に格納し、空いた領域をTSの非映像データとして定義
されるアダプテーションフィールドとし、第2のパケッ
トについては、図10(C)に示すように、元のパケッ
ト(図10(A)参照)をコピーしてB−picをアダ
プテーションフィールドとすることによりパケットを分
割することも可能である。
That is, as shown in FIG. 10 (B), the data of the first picture in the first packet is stored at the end of the packet, and the empty area is an adaptation field defined as non-video data of TS. For the second packet, as shown in FIG. 10C, the original packet (see FIG. 10A) may be copied to divide the packet by using B-pic as an adaptation field. It is possible.

【0097】具体的には、このような方法によりパケッ
トを分割する場合、TSヘッダからスタートコードの開
始場所までの有効データを図2に示す第2のパケットバ
ッファ部60fの末尾にコピーする。第1のパケットバ
ッファ部60e上でスタートコード以前のデータを無効
とするため、TSヘッダ上のアダプテーション有効ビッ
トを“1”に書き換え、第5バイトに無効とするデータ
長(アダプテーション長)を、第6バイトに“00”
(有効なアダプテーションデータが無いことを示すコー
ド)を書き込む。
Specifically, when a packet is divided by such a method, valid data from the TS header to the start position of the start code is copied to the end of the second packet buffer section 60f shown in FIG. In order to invalidate the data before the start code on the first packet buffer unit 60e, the adaptation valid bit in the TS header is rewritten to "1", and the invalid data length (adaption length) is set to the fifth byte. "00" in 6 bytes
Write (code indicating that there is no valid adaptation data).

【0098】同様に第2のパケットバッファ部60f上
の非書込部を無効とするためにTSヘッダ上のアダプテ
ーション有効ビット、第5バイトのデータ長、第6バイ
トに“00”を書き込む。
Similarly, in order to invalidate the non-writing section on the second packet buffer section 60f, "00" is written in the adaptation valid bit on the TS header, the data length of the fifth byte, and the sixth byte.

【0099】なお、第2のパケットバッファ部60fに
格納されるデータ長が1バイトの場合には、第1のパケ
ットバッファ部60eの有効データが183バイトとな
り、第6バイトからデータが始まるため第5バイトのデ
ータ長が“00”となるので、第6バイトにアダプテー
ション部の属性を示す“00”を書き込んではならな
い。
When the data length stored in the second packet buffer unit 60f is 1 byte, the valid data in the first packet buffer unit 60e becomes 183 bytes, and the data starts from the 6th byte. Since the data length of 5 bytes is "00", "00" indicating the attribute of the adaptation part must not be written in the 6th byte.

【0100】ところで、元々のパケットがあらかじめア
ダプテーション部を有する場合には、第6バイトの第5
ビットのPCRデータが有効データ送信を示すため、第
1のパケットバッファ部60e上のこのビットを保持
し、第7バイトから第12バイトに格納されているPC
Rのデータを書き換えてはならない。
By the way, when the original packet has an adaptation part in advance, the fifth byte of the sixth byte
Since the PCR data of the bit indicates the valid data transmission, the PC which holds this bit on the first packet buffer unit 60e and is stored in the 7th to 12th bytes
Do not rewrite R data.

【0101】TSヘッダにはパケットの連続性を示すc
c(Continuity Counter)があり、パケットの挿入を伴
う本方式では、パケット書き出しのたびにccの値を1
ずつインクリメントした正常なcc値を各パケットバッ
ファ上で書き換える必要がある。このcc値は、各ビデ
オストリーム毎に保持するものであり、複数のビデオス
トリームを処理する場合には、各々のビデオストリーム
毎にcc値を保持しておき、ビデオストリームごとに適
用する必要がある。
In the TS header, c indicating the continuity of packets is shown.
In this method, which has a c (Continuity Counter) and involves packet insertion, the value of cc is set to 1 each time a packet is written.
It is necessary to rewrite the normal cc value incremented by 1 in each packet buffer. This cc value is held for each video stream, and when processing a plurality of video streams, it is necessary to hold the cc value for each video stream and apply it for each video stream. .

【0102】パケットを分割する場合、前述の処理によ
り第2のパケットバッファ部60f上にパケット前半部
分のデータが置かれているので、第2のパケットバッフ
ァ部60fに格納されているデータを先に記憶装置72
に送り、その後、第1のパケットバッファ部60eのデ
ータを記憶装置72に送ればよい。
When the packet is divided, since the data of the first half of the packet is placed on the second packet buffer section 60f by the above-mentioned processing, the data stored in the second packet buffer section 60f is processed first. Storage device 72
Then, the data in the first packet buffer unit 60e may be sent to the storage device 72.

【0103】以上の方法によれば、アダプテーションフ
ィールド内を書き換える必要がない(先頭2バイトは長
さとデータ情報のため書き換える必要があるが、それ以
降は無効データとなる)ため、書き換え情報量を減少さ
せることができることから、処理量を低減することが可
能になる。また、第2パケットの第1ピクチャをアダプ
テーションフィールドとすれば、第2ピクチャがパケッ
ト後半にあることからデータの移動が不要となり、処理
量を一層減少させることが可能になる。
According to the above method, it is not necessary to rewrite the adaptation field (the first 2 bytes need to be rewritten because of length and data information, but after that, it becomes invalid data), so the rewriting information amount is reduced. As a result, the processing amount can be reduced. Further, if the first picture of the second packet is used as an adaptation field, the second picture is in the latter half of the packet, so that data movement is unnecessary and the processing amount can be further reduced.

【0104】次に、以上の実施の形態の機能を実現する
ためのフローチャートについて説明する。図11は、以
上の実施の形態の機能を実現するためのフローチャート
である。このフローチャートが開始されると、以下のス
テップが事項される。
Next, a flow chart for realizing the functions of the above embodiments will be described. FIG. 11 is a flowchart for realizing the functions of the above embodiments. When this flow chart is started, the following steps are performed.

【0105】ステップS10:パケットデータ切り出し
部60aは、パケットを入力する。 ステップS11:コピー制御処理部60dは、後述する
ステップS23においてコード残情報が格納されている
か否かを判定し、格納されている場合にはステップS2
4に進み、それ以外の場合にはステップS12に進む。
Step S10: The packet data cutout unit 60a inputs the packet. Step S11: The copy control processing unit 60d determines whether or not the code remaining information is stored in step S23, which will be described later, and if it is stored, the step S2
4. If not, proceed to step S12.

【0106】ステップS12:デスクランブラー&PE
S長差し替え部60cは、ピクチャスタートコードを検
出する。
Step S12: Descrambler & PE
The S-length replacement unit 60c detects a picture start code.

【0107】ステップS13:デスクランブラー&PE
S長差し替え部60cは、ピクチャスタートコードが検
出できた場合にはステップS14に進み、それ以外の場
合にはステップS19に進む。
Step S13: Descrambler & PE
If the picture start code can be detected, the S-length replacing unit 60c proceeds to step S14, and otherwise proceeds to step S19.

【0108】ステップS14:コピー制御処理部60d
は、パケットの前半部分から第1のパケットを合成する
処理を実行する。
Step S14: Copy control processing unit 60d
Performs a process of combining the first packet from the first half of the packet.

【0109】ステップS15:選択パケット出力部60
gは、ステップS14において合成された第1のパケッ
トを第1のパケットバッファ部60eから取得し、記憶
装置72に出力する。
Step S15: Selected packet output unit 60
The g acquires the first packet combined in step S14 from the first packet buffer unit 60e and outputs it to the storage device 72.

【0110】ステップS16:コピー制御処理部60d
は、第2のパケットバッファ部60fにコピーされたパ
ケットに対してアダプテーションフィールドを挿入する
ことにより、第2のパケットを合成する。
Step S16: Copy control processing unit 60d
Inserts an adaptation field into the packet copied to the second packet buffer unit 60f to combine the second packet.

【0111】ステップS17:選択パケット出力部60
gは、第2のパケットバッファ部60fから第2のパケ
ットを取得し、記憶装置72に出力する。
Step S17: Selected packet output unit 60
g acquires the second packet from the second packet buffer unit 60f and outputs it to the storage device 72.

【0112】ステップS18:コピー制御処理部60d
は、インデックス(index)を記憶装置72に出力す
る。
Step S18: Copy control processing unit 60d
Outputs the index to the storage device 72.

【0113】ステップS19:デスクランブラー&PE
S長差し替え部60cは、ピクチャスタートコードを途
中までしか検出できずに判定不能であるか否かを判定
し、判定不能である場合にはステップS21に進み、そ
れ以外の場合にはステップS20に進む。
Step S19: Descrambler & PE
The S-length replacing unit 60c determines whether or not the picture start code can only be detected halfway and cannot be determined. If the determination is not possible, the processing proceeds to step S21. Otherwise, the processing proceeds to step S20. move on.

【0114】ステップS20:選択パケット出力部60
gは、第2のパケットバッファ部60fに格納されてい
るパケットを記憶装置72に出力する。
Step S20: Selected packet output unit 60
g outputs the packet stored in the second packet buffer unit 60f to the storage device 72.

【0115】ステップS21:選択パケット出力部60
gは、第2のパケットバッファ部60fに格納されてい
るパケットを記憶装置72に出力する。
Step S21: Selected packet output unit 60
g outputs the packet stored in the second packet buffer unit 60f to the storage device 72.

【0116】ステップS22:コピー制御処理部60d
は、ピクチャスタートコードが“00−00−01”で
ある場合には、“00−00−00”に変換する。
Step S22: Copy control processing unit 60d
Converts the picture start code to "00-00-00" when the picture start code is "00-00-01".

【0117】ステップS23:コピー制御処理部60d
は、コード残情報を保存する。 ステップS24:デスクランブラー&PES長差し替え
部60cは、ピクチャスタートコードを検出する。
Step S23: Copy control processing unit 60d
Saves the remaining code information. Step S24: The descrambler & PES long replacement unit 60c detects a picture start code.

【0118】ステップS25:デスクランブラー&PE
S長差し替え部60cが、ピクチャスタートコードを検
出した場合にはステップS26に進み、それ以外の場合
にはステップS27に進む。
Step S25: Descrambler & PE
If the S-length replacing unit 60c detects a picture start code, the process proceeds to step S26, and if not, the process proceeds to step S27.

【0119】ステップS26:コピー制御処理部60d
は、インデックス情報を記憶装置72に出力する。 ステップS27:コピー制御処理部60dは、アダプテ
ーションフィールドが存在するか否かを判定し、存在す
る場合にはステップS32に進み、それ以外の場合には
ステップS28に進む。
Step S26: Copy control processing unit 60d
Outputs the index information to the storage device 72. Step S27: The copy control processing unit 60d determines whether or not there is an adaptation field, and if it exists, the process proceeds to step S32, and otherwise proceeds to step S28.

【0120】ステップS28:コピー制御処理部60d
は、スタートコードを含むパケットを第1のパケットバ
ッファ部60eに生成する。
Step S28: Copy control processing unit 60d
Generates a packet including the start code in the first packet buffer unit 60e.

【0121】ステップS29:選択パケット出力部60
gは、第1のパケットバッファ部60eから第1のパケ
ットを取得し、記憶装置72に出力する。
Step S29: Selected packet output unit 60
g acquires the first packet from the first packet buffer unit 60 e and outputs it to the storage device 72.

【0122】ステップS30:コピー制御処理部60d
は、第2のパケットバッファ部60fにパケットをコピ
ーし、アダプテーションフィールドを挿入することで、
第2のパケットを生成する。
Step S30: Copy control processing unit 60d
By copying the packet to the second packet buffer unit 60f and inserting the adaptation field,
Generate a second packet.

【0123】ステップS31:選択パケット出力部60
gは、第2のパケットバッファ部60fから第2のパケ
ットを取得し、記憶装置72に出力する。
Step S31: Selected packet output unit 60
g acquires the second packet from the second packet buffer unit 60f and outputs it to the storage device 72.

【0124】ステップS32:コピー制御処理部60d
は、第2のパケットバッファ部60fに対して格納され
ているパケットのアダプテーションフィールドを修正す
るとともに、ピクチャスタートコードを付加する。
Step S32: Copy control processing unit 60d
Corrects the adaptation field of the packet stored in the second packet buffer unit 60f and adds the picture start code.

【0125】ステップS33:選択パケット出力部60
gは、第2のパケットバッファ部60fからピクチャス
タートコードが付加されたパケットを取得し、記憶装置
72に出力する。
Step S33: Selected packet output unit 60
g acquires the packet to which the picture start code is added from the second packet buffer unit 60f and outputs it to the storage device 72.

【0126】以上の処理によれば、図2に示す実施の形
態において実行される機能を実現することが可能にな
る。なお、図2に示す実施の形態では、デスクランブル
されたコードのみを保存する構成になっているが、シス
テムLSIでは、別入力のためのデスクランブラーが内
蔵されている場合があり、同一スクランブルコードでス
クランブルしたり、コピーガード対策のために別方式で
スクランブルしたりする場合があり、その場合には再度
スクランブルして保存することが要求される場合もあ
る。
According to the above processing, the function executed in the embodiment shown in FIG. 2 can be realized. In the embodiment shown in FIG. 2, only the descrambled code is stored. However, the system LSI may include a descrambler for another input, and the same scramble code may be stored. May be scrambled or may be scrambled by another method as a measure against copy guard, and in that case, it may be required to re-scramble and save.

【0127】しかしながら、そのような場合には、選択
パケット出力部60gから出力されたパケットに対して
再度スクランブル処理を施すことになるが、そのような
場合であっても、インデックス情報とパケット番号の対
応関係は失われることはないので、問題なくスクランブ
ルすることが出来る。
However, in such a case, the packet output from the selected packet output section 60g will be re-scrambled. Even in such a case, the index information and the packet number will not be used. Correspondence is not lost, so you can scramble without problems.

【0128】また、以上の実施の形態では、MEPGII
方式を例に挙げて説明を行なったが、本発明はこのよう
な場合のみに限定されるものではないことはいうまでも
ない。要は、異なる種類の画像が単一のパケットに格納
される可能性を有する方式であれば適用可能である。
Further, in the above embodiments, the MPEGII
Although the method has been described as an example, it goes without saying that the present invention is not limited to such a case. In short, it is applicable as long as it is a method in which different types of images may be stored in a single packet.

【0129】更に、以上の実施の形態では、図2に示す
ようなハードウエアによって画像を特殊再生する場合を
例に挙げて説明を行なったが、上記の処理機能は、コン
ピュータによって実現することができる。
Further, in the above embodiments, the case where the image is specially reproduced by the hardware as shown in FIG. 2 has been described as an example, but the above processing functions can be realized by a computer. it can.

【0130】その場合、画像処理装置が有すべき機能の
処理内容を記述したプログラムが提供される。そのプロ
グラムをコンピュータで実行することにより、上記処理
機能がコンピュータ上で実現される。処理内容を記述し
たプログラムは、コンピュータで読み取り可能な記録媒
体に記録しておくことができる。コンピュータで読み取
り可能な記録媒体としては、磁気記録装置、光ディス
ク、光磁気記録媒体、半導体メモリなどがある。磁気記
録装置には、ハードディスク装置(HDD)、フレキシ
ブルディスク(FD)、磁気テープなどがある。光ディ
スクには、DVD(Digital Versatile Disk)、DVD−
RAM(Random Access Memory)、CD−ROM(Compact
Disk Read Only Memory)、CD−R(Recordable)/R
W(ReWritable)などがある。光磁気記録媒体には、MO
(Magneto-Optical disk)などがある。
In that case, a program describing the processing contents of the functions that the image processing apparatus should have is provided. By executing the program on a computer, the above processing functions are realized on the computer. The program describing the processing content can be recorded in a computer-readable recording medium. Computer-readable recording media include magnetic recording devices, optical disks, magneto-optical recording media, semiconductor memories, and the like. The magnetic recording device includes a hard disk device (HDD), a flexible disk (FD), a magnetic tape, and the like. Optical discs include DVD (Digital Versatile Disk) and DVD-
RAM (Random Access Memory), CD-ROM (Compact
Disk Read Only Memory), CD-R (Recordable) / R
There is W (ReWritable). The magneto-optical recording medium has an MO
(Magneto-Optical disk).

【0131】プログラムを流通させる場合には、たとえ
ば、そのプログラムが記録されたDVD、CD−ROM
などの可搬型記録媒体が販売される。また、プログラム
をサーバコンピュータの記憶装置に格納しておき、ネッ
トワークを介して、サーバコンピュータから他のコンピ
ュータにそのプログラムを転送することもできる。
In order to put the program into the market, for example, a DVD or a CD-ROM in which the program is recorded
Portable recording media such as. It is also possible to store the program in the storage device of the server computer and transfer the program from the server computer to another computer via the network.

【0132】プログラムを実行するコンピュータは、た
とえば、可搬型記録媒体に記録されたプログラムもしく
はサーバコンピュータから転送されたプログラムを、自
己の記憶装置に格納する。そして、コンピュータは、自
己の記憶装置からプログラムを読み取り、プログラムに
従った処理を実行する。なお、コンピュータは、可搬型
記録媒体から直接プログラムを読み取り、そのプログラ
ムに従った処理を実行することもできる。また、コンピ
ュータは、サーバコンピュータからプログラムが転送さ
れる毎に、逐次、受け取ったプログラムに従った処理を
実行することもできる。
The computer executing the program stores, for example, the program recorded in the portable recording medium or the program transferred from the server computer in its own storage device. Then, the computer reads the program from its own storage device and executes processing according to the program. The computer can also read the program directly from the portable recording medium and execute processing according to the program. In addition, the computer can also sequentially execute processing according to the received program each time the program is transferred from the server computer.

【0133】(付記1) 複数のパケットから構成され
るトランスポートストリームを入力し、その中に含まれ
ている画像に対して所定の処理を施す画像処理装置にお
いて、前記トランスポートストリームを入力する入力手
段と、前記入力手段から入力されたトランスポートスト
リームを構成するパケットのうち、異なる種類の画像情
報を含むパケットが存在する場合にはこれを検出する検
出手段と、前記検出手段によって複数のパケットが含ま
れていることが検出された場合には、そのパケットを複
数のパケットに分割する分割手段と、を有することを特
徴とする画像処理装置。
(Supplementary Note 1) An input for inputting a transport stream composed of a plurality of packets, and for inputting the transport stream in an image processing apparatus for performing a predetermined process on an image included therein. Means, detecting means for detecting a packet containing different types of image information among the packets forming the transport stream input from the input means, and a plurality of packets by the detecting means. An image processing apparatus comprising: a dividing unit that divides the packet into a plurality of packets when it is detected that the packet is included.

【0134】(付記2) 前記分割手段によって分割さ
れたパケットおよび通常のパケットを記録する記録手段
と、前記記録手段に記録されているパケットを所定の順
序で読み出して再生する再生手段と、を更に有すること
を特徴とする付記1記載の画像処理装置。
(Supplementary Note 2) Recording means for recording the packets divided by the dividing means and normal packets, and reproducing means for reading and reproducing the packets recorded in the recording means in a predetermined order are further included. The image processing device according to appendix 1, further comprising.

【0135】(付記3) 前記分割手段は、パケットの
複製を生成し、それぞれのパケットにおいて不要な画像
に関する情報をアダプテーションフィールドに変換する
ことにより、パケットを分割することを特徴とする付記
1記載の画像処理装置。
(Additional remark 3) The dividing unit divides the packet by generating a duplicate of the packet and converting information relating to an unnecessary image in each packet into an adaptation field. Image processing device.

【0136】(付記4) 前記分割手段は、パケットの
複製を生成し、それぞれのパケットにおいて不要な画像
に関する情報部分に対してゼロスタッフィングすること
により、パケットを分割することを特徴とする付記1記
載の画像処理装置。
(Supplementary Note 4) The supplementary means divides the packet by generating a duplicate of the packet and zero-stuffing the information portion relating to the unnecessary image in each packet. Image processing device.

【0137】(付記5) 画像の開始を意味するピクチ
ャスタートコードが2つのパケットに分割されて含まれ
ている場合には、前記分割手段は、前方のパケットのピ
クチャスタートコード部分に対してゼロスタッフィング
を行ない、ピクチャスタートコードとアダプテーション
フィールドから構成されるパケットを前記前方のパケッ
トの後に挿入し、後方のパケットのピクチャスタートコ
ード部分をアダプテーションフィールドに変換して出力
することを特徴とする付記1記載の画像処理装置。
(Supplementary Note 5) When the picture start code indicating the start of an image is included in two packets by being divided, the dividing means performs zero stuffing on the picture start code portion of the preceding packet. The packet of the picture start code and the adaptation field is inserted after the preceding packet, and the picture start code part of the following packet is converted into the adaptation field and output. Image processing device.

【0138】(付記6) 画像の開始を意味するピクチ
ャスタートコードが2つのパケットに分割されて含まれ
ている場合には、前記分割手段は、前方のパケットのピ
クチャスタートコード部分に対してゼロスタッフィング
を行ない、前記後方のパケットにアダプテーションフィ
ールドが含まれている場合には、その部分を縮退すると
ともに、縮退によって発生した領域にピクチャスタート
コードを挿入することを特徴とする付記1記載の画像処
理装置。
(Supplementary Note 6) When the picture start code indicating the start of an image is divided into two packets and included, the dividing means performs zero stuffing on the picture start code portion of the preceding packet. The image processing apparatus according to appendix 1, wherein when the rear packet includes an adaptation field, the portion is degenerated and a picture start code is inserted in an area generated by the degeneration. .

【0139】(付記7) 複数のパケットから構成され
るトランスポートストリームを入力し、その中に含まれ
ている画像に対して所定の処理を施す画像処理方法にお
いて、前記トランスポートストリームを入力する入力ス
テップと、前記入力ステップにおいて入力されたトラン
スポートストリームを構成するパケットのうち、異なる
種類の画像情報を含むパケットが存在する場合にはこれ
を検出する検出ステップと、前記検出ステップによって
複数のパケットが含まれていることが検出された場合に
は、そのパケットを複数のパケットに分割する分割ステ
ップと、を有することを特徴とする画像再生方法。
(Supplementary Note 7) In an image processing method for inputting a transport stream composed of a plurality of packets and performing a predetermined process on an image contained therein, an input for inputting the transport stream. Step, a detection step of detecting a packet containing different types of image information among the packets forming the transport stream input in the input step, and a plurality of packets by the detection step. And a dividing step of dividing the packet into a plurality of packets when it is detected that the packet is included in the image reproducing method.

【0140】(付記8) 複数のパケットから構成され
るトランスポートストリームを入力し、その中に含まれ
ている画像に対して所定の処理を施す機能をコンピュー
タに実現させるプログラムにおいて、コンピュータを、
前記トランスポートストリームを入力する入力手段、前
記入力手段から入力されたトランスポートストリームを
構成するパケットのうち、異なる種類の画像情報を含む
パケットが存在する場合にはこれを検出する検出手段、
前記検出手段によって複数のパケットが含まれているこ
とが検出された場合には、そのパケットを複数のパケッ
トに分割する分割手段、として機能させることを特徴と
するプログラム。
(Supplementary Note 8) In a program that causes a computer to realize a function of inputting a transport stream composed of a plurality of packets and performing a predetermined process on an image included therein,
An input unit for inputting the transport stream, a detection unit for detecting a packet including different types of image information among the packets forming the transport stream input from the input unit, if any.
A program which, when the detecting means detects that a plurality of packets are included, causes the packet to function as a dividing means for dividing the packet into a plurality of packets.

【0141】[0141]

【発明の効果】以上説明したように本発明では、複数の
パケットから構成されるトランスポートストリームを入
力し、その中に含まれている画像に対して所定の処理を
施す画像処理装置において、トランスポートストリーム
を入力する入力手段と、入力手段から入力されたトラン
スポートストリームを構成するパケットのうち、異なる
種類の画像情報を含むパケットが存在する場合にはこれ
を検出する検出手段と、検出手段によって複数のパケッ
トが含まれていることが検出された場合には、そのパケ
ットを複数のパケットに分割する分割手段と、を設ける
ようにしたので、ノイズの発生のない特殊再生を容易に
実現することが可能になる。
As described above, according to the present invention, a transport stream composed of a plurality of packets is input, and an image processing apparatus that performs a predetermined process on an image contained therein is used as a transport stream. The input means for inputting the port stream, the detecting means for detecting a packet containing different types of image information among the packets forming the transport stream input from the input means, and the detecting means. When it is detected that a plurality of packets are included, a dividing unit that divides the packet into a plurality of packets is provided, so that special playback without noise can be easily realized. Will be possible.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の動作原理を説明する原理図である。FIG. 1 is a principle diagram illustrating an operation principle of the present invention.

【図2】本発明の実施の形態の構成例である。FIG. 2 is a configuration example of an embodiment of the present invention.

【図3】図2に示す実施の形態におけるパケットの分割
の一例を示す図である。
FIG. 3 is a diagram showing an example of packet division in the embodiment shown in FIG.

【図4】図2に示す実施の形態におけるパケットの分割
の一例と特殊再生の一例を説明する図である。
FIG. 4 is a diagram illustrating an example of packet division and an example of trick play in the embodiment shown in FIG.

【図5】図2に示す実施の形態における逆転再生する場
合の動作の概要を説明する図である。
FIG. 5 is a diagram illustrating an outline of an operation when reverse reproduction is performed in the embodiment shown in FIG.

【図6】図2に示す実施の形態においてピクチャスター
トコードが2つのパケットにまたがるデータが入力され
た場合の動作の一例を説明する図である。
FIG. 6 is a diagram illustrating an example of an operation when data in which a picture start code spans two packets is input in the embodiment shown in FIG. 2;

【図7】ピクチャスタートコードの先頭の3バイトが格
納されているパケットに対する処理の一例を説明する図
である。
FIG. 7 is a diagram illustrating an example of processing for a packet in which the first 3 bytes of a picture start code are stored.

【図8】図7に続くパケットに対する処理の一例を説明
する図である。
FIG. 8 is a diagram illustrating an example of processing for a packet following FIG. 7.

【図9】図8に続くパケットに対する処理の一例を説明
する図である。
FIG. 9 is a diagram illustrating an example of processing for a packet following FIG.

【図10】パケットの他の分割方法について説明する図
である。
FIG. 10 is a diagram illustrating another packet division method.

【図11】図2に示す本発明の実施の形態において実行
されるフローチャートを説明するための図である。
FIG. 11 is a diagram for explaining a flowchart executed in the embodiment of the present invention shown in FIG.

【図12】従来のMPEG再生装置の構成例を示す図で
ある。
FIG. 12 is a diagram showing a configuration example of a conventional MPEG playback device.

【図13】従来のMPEG再生装置の他の構成例を示す
図である。
FIG. 13 is a diagram showing another configuration example of a conventional MPEG playback device.

【符号の説明】[Explanation of symbols]

20 画像処理装置 20a 入力手段 20b 検出手段 20c 分割手段 20d 記録手段 20e 再生手段 60 TSデコーダ 60a パケットデータ切り出し部 60b パケット制御部 60c デスクランブラー&PES長差し替え部 60d コピー制御処理部 60e 第1のパケットバッファ部 60f 第2のパケットバッファ部 60g 選択パケット出力部 70 ビデオデコーダ 71 テレビジョン受像機 72 記憶装置 73 パケット処理部 20 Image processing device 20a input means 20b detection means 20c dividing means 20d recording means 20e reproduction means 60 TS decoder 60a Packet data cutout unit 60b Packet control unit 60c descrambler & PES long replacement section 60d Copy control processing unit 60e First packet buffer unit 60f Second packet buffer unit 60g Select packet output unit 70 Video Decoder 71 television receiver 72 storage device 73 Packet Processor

フロントページの続き Fターム(参考) 5C053 FA22 FA23 GB38 HA24 KA03 KA24 LA07 5C059 MA00 RB02 RB10 RC01 SS17 TA00 TB00 TC00 TD11 UA05 UA32 UA38 5D044 AB07 BC01 CC04 FG24 GK11 5K028 AA04 EE03 KK32 Continued front page    F term (reference) 5C053 FA22 FA23 GB38 HA24 KA03                       KA24 LA07                 5C059 MA00 RB02 RB10 RC01 SS17                       TA00 TB00 TC00 TD11 UA05                       UA32 UA38                 5D044 AB07 BC01 CC04 FG24 GK11                 5K028 AA04 EE03 KK32

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数のパケットから構成されるトランス
ポートストリームを入力し、その中に含まれている画像
に対して所定の処理を施す画像処理装置において、 前記トランスポートストリームを入力する入力手段と、 前記入力手段から入力されたトランスポートストリーム
を構成するパケットのうち、異なる種類の画像情報を含
むパケットが存在する場合にはこれを検出する検出手段
と、 前記検出手段によって複数のパケットが含まれているこ
とが検出された場合には、そのパケットを複数のパケッ
トに分割する分割手段と、 を有することを特徴とする画像処理装置。
1. An image processing apparatus for inputting a transport stream composed of a plurality of packets and performing a predetermined process on an image contained therein, comprising: input means for inputting the transport stream. Among the packets forming the transport stream input from the input means, if there is a packet containing different types of image information, a detection means for detecting this and a plurality of packets are included by the detection means. When it is detected that the packet is detected, the image processing device comprising: a dividing unit that divides the packet into a plurality of packets.
【請求項2】 前記分割手段によって分割されたパケッ
トおよび通常のパケットを記録する記録手段と、 前記記録手段に記録されているパケットを所定の順序で
読み出して再生する再生手段と、 を更に有することを特徴とする請求項1記載の画像処理
装置。
2. The recording medium further comprises: recording means for recording the packets divided by the dividing means and normal packets; and reproducing means for reading and reproducing the packets recorded in the recording means in a predetermined order. The image processing apparatus according to claim 1, wherein:
【請求項3】 前記分割手段は、パケットの複製を生成
し、それぞれのパケットにおいて不要な画像に関する情
報をアダプテーションフィールドに変換することによ
り、パケットを分割することを特徴とする請求項1記載
の画像処理装置。
3. The image according to claim 1, wherein the dividing unit divides the packet by generating a duplicate of the packet and converting information regarding an unnecessary image in each packet into an adaptation field. Processing equipment.
【請求項4】 前記分割手段は、パケットの複製を生成
し、それぞれのパケットにおいて不要な画像に関する情
報部分に対してゼロスタッフィングすることにより、パ
ケットを分割することを特徴とする請求項1記載の画像
処理装置。
4. The packet dividing unit according to claim 1, wherein the dividing unit divides the packet by generating a duplicate of the packet and zero-stuffing an information portion relating to an unnecessary image in each packet. Image processing device.
【請求項5】 画像の開始を意味するピクチャスタート
コードが2つのパケットに分割されて含まれている場合
には、前記分割手段は、前方のパケットのピクチャスタ
ートコード部分に対してゼロスタッフィングを行ない、
ピクチャスタートコードとアダプテーションフィールド
から構成されるパケットを前記前方のパケットの後に挿
入し、後方のパケットのピクチャスタートコード部分を
アダプテーションフィールドに変換して出力することを
特徴とする請求項1記載の画像処理装置。
5. When the picture start code indicating the start of an image is included in two packets in a divided manner, the dividing means performs zero stuffing on the picture start code portion of the preceding packet. ,
2. The image processing according to claim 1, wherein a packet including a picture start code and an adaptation field is inserted after the preceding packet, and a picture start code portion of the succeeding packet is converted into an adaptation field and output. apparatus.
JP2001269662A 2001-09-06 2001-09-06 Image processor Withdrawn JP2003078877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001269662A JP2003078877A (en) 2001-09-06 2001-09-06 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001269662A JP2003078877A (en) 2001-09-06 2001-09-06 Image processor

Publications (1)

Publication Number Publication Date
JP2003078877A true JP2003078877A (en) 2003-03-14

Family

ID=19095442

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001269662A Withdrawn JP2003078877A (en) 2001-09-06 2001-09-06 Image processor

Country Status (1)

Country Link
JP (1) JP2003078877A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009521163A (en) * 2005-12-23 2009-05-28 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Apparatus and method for processing a data stream

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009521163A (en) * 2005-12-23 2009-05-28 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Apparatus and method for processing a data stream

Similar Documents

Publication Publication Date Title
KR100958325B1 (en) Method and apparatus for trick mode playback of an mpeg video presentation recorded on a storage medium
US8170210B2 (en) Device for and a method of processing data stream
US7139470B2 (en) Navigation for MPEG streams
EP1137005B1 (en) Error correction of digitally transmitted signals
CA2669552C (en) System and method for signaling characteristics of pictures' interdependencies
JP4579290B2 (en) Recording apparatus, recording medium manufacturing method, management information manufacturing method, reproducing apparatus, reproducing method, and program
JP3900050B2 (en) Data processing apparatus, video camera, and data processing method
US8571208B2 (en) Method and apparatus for performing trick play on scrambled data stream
KR20020026169A (en) Method and apparatus for editing digital video recordings, and recordings made by such methods
KR20000047359A (en) Method for generating additional information so as to guarantee seamless playback between data stream, recording medium storing the information, and recording, editing and/or playback apparatus using the same
KR100932393B1 (en) Changing the playback speed for video presentations recorded in non-sequential frame structure format
US20060051060A1 (en) Method and system for digitally recording broadcast content
US20070147429A1 (en) Stream file format for digital video recording
JP2003078877A (en) Image processor
EP1111916B1 (en) Recording/reproducing device, mpeg video stream recording/reproducing device, and medium
JP2000278643A (en) Data conversion device
KR20030088482A (en) Av data recording/reproducing apparatus and method and recording medium on which data is recorded by the av data recording/reproducing apparatus or method
JP2005508586A (en) Method and system for changing video by inserting shadow intra pictures
JP4568230B2 (en) Data processing device
JP4464101B2 (en) Transport stream editing method and apparatus
JP2005197839A (en) Special reproduction method of transport stream and recording and reproducing apparatus for transport stream
JP2003224810A (en) Audio/video data recording and reproducing apparatus and method, recording medium recorded by the audio/ video data recording and reproducing apparatus and method, audio/video data reproducing apparatus, audio/ video data recording and reproducing system and method, recording medium recorded by the audio/video data recording and reproducing system and method, and data structure
EP1148723B1 (en) Special reproduction data generating device, medium, and information aggregate
JP4861221B2 (en) RECORDING DEVICE, RECORDING METHOD, VIDEO RECORDING / REPRODUCING DEVICE, AND RECORDING FILE PROCESSING METHOD THEREOF
KR100677110B1 (en) Apparatus for recording and/or editing of data ensuring seamless playback between data stream

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20081202