JP2003051964A - Image processing device - Google Patents
Image processing deviceInfo
- Publication number
- JP2003051964A JP2003051964A JP2001240464A JP2001240464A JP2003051964A JP 2003051964 A JP2003051964 A JP 2003051964A JP 2001240464 A JP2001240464 A JP 2001240464A JP 2001240464 A JP2001240464 A JP 2001240464A JP 2003051964 A JP2003051964 A JP 2003051964A
- Authority
- JP
- Japan
- Prior art keywords
- time
- stream data
- priority
- image processing
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Picture Signal Circuits (AREA)
- Controls And Circuits For Display Device (AREA)
- Processing Or Creating Images (AREA)
Abstract
(57)【要約】
【課題】 描画処理とAV処理との時間的な同期を可能
にする。
【解決手段】 演算部33aは、第1のタイムスタンプ
と表示フレームに描画すべき複数のオブジェクトデータ
とを有する第1のストリームデータを入力し、第1種演
算処理を行ない、その演算処理の結果をメモリ領域4に
設定する。制御部35Aは、表示出力同期信号を入力し
て、第n番目の表示フレームを表示する時刻間隔を示す
第nタイムを生成し、前記第1のストリームデータを入
力する。そしてnタイムと第1のタイムスタンプとを比
較し、その比較結果をもとに、メモリ領域4への設定を
第nタイムと同期させる。
(57) [Summary] [PROBLEMS] To enable temporal synchronization between drawing processing and AV processing. SOLUTION: An operation unit 33a receives first stream data having a first time stamp and a plurality of object data to be drawn in a display frame, performs a first type operation process, and executes a result of the operation process. Is set in the memory area 4. The control unit 35A receives the display output synchronization signal, generates an n-th time indicating a time interval for displaying the n-th display frame, and inputs the first stream data. Then, the n time is compared with the first time stamp, and the setting in the memory area 4 is synchronized with the n time based on the comparison result.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、描画処理およびA
V(AUDIO VIDEO)処理を同期して行なう画像処理装置
に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to drawing processing and A
The present invention relates to an image processing device that performs V (AUDIO VIDEO) processing in synchronization.
【0002】[0002]
【従来の技術】描画処理およびAV処理を行なう従来の
画像処理システムについて、図8〜10を参照しながら
説明する。2. Description of the Related Art A conventional image processing system for performing drawing processing and AV processing will be described with reference to FIGS.
【0003】図8は従来の画像処理システムの構成例を
示すブロック図である。図8における画像処理システム
では、システムバス6上に、CPU1、主記憶2、並び
に描画処理およびAVデコード処理を行なうLSI30
が接続されている。また、ローカルメモリ4は、LSI
30が専用に使用するメモリ領域である。さらに、LS
I30はCPUインターフェース31、メモリインター
フェース32、描画処理部33B、ビデオデコード部3
4、制御部35B、および表示出力部36を備えてい
る。そして、制御部35Bは、タイムスタンプ検出部3
5a、フレームスタンプ検出部35e、およびタイムカ
ウンタ35dを内蔵している。タイムスタンプ検出部3
5aはデコードされたビデオストリームデータ内のタイ
ムスタンプを検出する。フレームスタンプ検出部35e
は、表示フレームに描画すべき複数のオブジェクトデー
タを有する描画ストリームデータ(以下、「DL(DISP
LAYLIST)」と呼ぶ。)内のフレームスタンプを検出す
る。タイムカウンタ35dは、表示出力部36から出力
される表示フレームを表示する期間を示す表示出力同期
信号に同期して時間をカウントアップする。また、表示
出力部36からの出力結果は、モニタ5に表示される。FIG. 8 is a block diagram showing a configuration example of a conventional image processing system. In the image processing system in FIG. 8, the CPU 1, the main memory 2, and the LSI 30 that performs drawing processing and AV decoding processing on the system bus 6.
Are connected. The local memory 4 is an LSI
30 is a memory area used exclusively. Furthermore, LS
I30 is a CPU interface 31, a memory interface 32, a drawing processing unit 33B, a video decoding unit 3
4, a control unit 35B, and a display output unit 36. Then, the control unit 35B controls the time stamp detection unit 3
5a, a frame stamp detector 35e, and a time counter 35d are built in. Time stamp detector 3
5a detects a time stamp in the decoded video stream data. Frame stamp detector 35e
Is rendering stream data (hereinafter, referred to as “DL (DISP
LAY LIST) ". ) Inside the frame stamp is detected. The time counter 35d counts up the time in synchronization with the display output synchronization signal indicating the period for displaying the display frame output from the display output unit 36. The output result from the display output unit 36 is displayed on the monitor 5.
【0004】図9は、主記憶2およびローカルメモリ4
に記憶される画像処理用のデータの配列を示す概略図で
ある。図9において、21はMPEG等のビデオストリーム
データ、22はDLであり、また21Aはビデオストリ
ームデータ21に付加されたタイムスタンプ、22Cは
DL22に付加されたフレームスタンプである。ビデオ
ストリームデータ21は、タイムスタンプ21Aをフィ
ールドとして含み、以降、表示出力同期信号が示す表示
期間内にデコードすべき複数のビデオストリームデータ
が連続する構成となっている。一方、DL22はフレー
ムスタンプ22Cをフィールドとして含み、以降、描画
すべき複数の描画コマンドが連続する構成となってい
る。またDL22は、一のフレームスタンプから次のフ
レームスタンプまでにある複数の描画コマンドを、1フ
レーム(1表示画面)分の描画用データとして管理す
る。なお、ビデオストリームデータ21およびDL22
は、保持されるメモリのアドレスに対してそれぞれリニ
アに並べられる。FIG. 9 shows a main memory 2 and a local memory 4.
3 is a schematic diagram showing an array of image processing data stored in FIG. In FIG. 9, 21 is video stream data such as MPEG, 22 is DL, 21A is a time stamp added to the video stream data 21, and 22C is a frame stamp added to the DL 22. The video stream data 21 includes a time stamp 21A as a field, and thereafter, a plurality of video stream data to be decoded are consecutive within the display period indicated by the display output synchronization signal. On the other hand, the DL 22 includes a frame stamp 22C as a field, and thereafter has a configuration in which a plurality of drawing commands to be drawn are continuous. Further, the DL 22 manages a plurality of drawing commands from one frame stamp to the next frame stamp as drawing data for one frame (one display screen). The video stream data 21 and DL 22
Are linearly arranged with respect to the address of the held memory.
【0005】CPU1は、主記憶2からビデオストリー
ムデータ21およびDL22をLSI3に転送する。こ
れらのデータは、CPUインターフェース31およびメ
モリインターフェース32によってローカルメモリ4に
一時保持されるが、主記憶2と同じアドレスにリニアに
保持される。そして、ビデオストリームデータ21およ
びDL22は、LSI30によって順次読み出される。
読み出されたビデオストリームデータ21やDL22に
含まれるタイムスタンプ21Aおよびフレームスタンプ
22Cは、制御部35Bが内蔵するタイムスタンプ検出
部35aおよびフレームスタンプ検出部35eによって
検出される。制御部35Bは、モニタ5に使用される表
示出力同期信号とともに、描画処理部33B、ビデオデ
コード部34および表示出力部36を制御する。The CPU 1 transfers the video stream data 21 and DL 22 from the main memory 2 to the LSI 3. These data are temporarily held in the local memory 4 by the CPU interface 31 and the memory interface 32, but are linearly held at the same address as the main memory 2. Then, the video stream data 21 and the DL 22 are sequentially read by the LSI 30.
The time stamp 21A and the frame stamp 22C included in the read video stream data 21 and DL 22 are detected by the time stamp detecting unit 35a and the frame stamp detecting unit 35e incorporated in the control unit 35B. The control unit 35B controls the drawing processing unit 33B, the video decoding unit 34, and the display output unit 36 together with the display output synchronization signal used for the monitor 5.
【0006】図10は従来の画像処理における表示フレ
ームの合成例を示す図である。図10において、(a)
は描画フレームメモリへの描画結果の時間経過を示して
おり、(b)はデコードフレームメモリへのデコード結
果の時間経過を示しており、(c)は表示フレームへの
合成結果の時間経過を示している。また表示出力同期信
号101〜103、111〜117、および121〜1
27は、それぞれ描画処理部33、ビデオデコード部3
4、および表示出力部36のフレームメモリの切り替え
を行うときに、制御部35Bが参照した表示出力同期信
号を示している。FIG. 10 is a diagram showing an example of combining display frames in conventional image processing. In FIG. 10, (a)
Shows the time elapse of the drawing result in the drawing frame memory, (b) shows the time elapse of the decoding result in the decode frame memory, and (c) shows the time elapse of the combining result in the display frame. ing. Further, display output synchronization signals 101 to 103, 111 to 117, and 121 to 1
27 is a drawing processing unit 33 and a video decoding unit 3 respectively.
4 and the display output synchronization signal referred to by the control unit 35B when the frame memory of the display output unit 36 is switched.
【0007】以下に、従来の画像処理システムにおける
制御の概略について、図8〜図10を参照しながら具体
的に説明する。なお、ここでは、LSI30が描画処理
とビデオデコード処理を並行して行なう場合について説
明する。The outline of the control in the conventional image processing system will be specifically described below with reference to FIGS. 8 to 10. Here, a case where the LSI 30 performs the drawing process and the video decoding process in parallel will be described.
【0008】CPU1は、主記憶2に書き込まれた描画
処理用のデータとして生成されたDL22を、ビデオス
トリームデータ21とともに、ローカルメモリ4に書き
込む。それとともに、CPU1は制御部35Bに処理の
開始を指示する。制御部35Bは、描画処理部33Bお
よびビデオデコード処理部34を制御する。DL22
は、描画処理部33Bにおいて表示フレーム期間と同期
して処理が行われるが、描画処理の進捗により、毎表示
フレーム単位の更新は必ずしも行われない。すなわち、
図10(a)において、描画フレームメモリの切り替え
は表示出力同期信号101〜103に基づいて行われ
る。一方、ビデオストリームデータ21は、ビデオデコ
ード処理部34において表示フレーム期間と同期して処
理が行われ、毎表示フレーム単位の更新が行われる。す
なわち、図10(b)において、デコードフレームメモ
リの切り替えは表示出力同期信号111〜117に基づ
いて行われる。そのため、デコードフレームメモリの切
り替えは、表示出力同期信号121〜127に一致して
行なわれる。The CPU 1 writes the DL 22 generated as data for drawing processing written in the main memory 2 into the local memory 4 together with the video stream data 21. At the same time, the CPU 1 instructs the control unit 35B to start processing. The control unit 35B controls the drawing processing unit 33B and the video decoding processing unit 34. DL22
Is processed in synchronization with the display frame period in the drawing processing unit 33B, but is not necessarily updated for each display frame due to the progress of the drawing process. That is,
In FIG. 10A, switching of the drawing frame memory is performed based on the display output synchronization signals 101 to 103. On the other hand, the video stream data 21 is processed in the video decoding processing unit 34 in synchronization with the display frame period, and updated for each display frame. That is, in FIG. 10B, the switching of the decode frame memory is performed based on the display output synchronization signals 111 to 117. Therefore, the switching of the decode frame memory is performed in accordance with the display output synchronization signals 121 to 127.
【0009】以下に、描画フレームメモリ、デコードフ
レームメモリ、および表示フレームの制御について、図
10を参照しながら具体的に説明する。The control of the drawing frame memory, the decoding frame memory, and the display frame will be specifically described below with reference to FIG.
【0010】<描画フレームメモリの制御>まず、描画
フレームメモリの制御について、図10(a)を参照し
ながら説明する。<Control of Drawing Frame Memory> First, the control of the drawing frame memory will be described with reference to FIG.
【0011】前提として、制御部35Bは、第1の描画
フレームメモリと第2の描画フレームメモリをローカル
メモリ4に用意する。As a premise, the control unit 35B prepares a first drawing frame memory and a second drawing frame memory in the local memory 4.
【0012】まず、表示出力同期信号101を入力した
時点で、描画処理部33によって、第2の描画フレーム
の描画は既に完了しているとする。この時、制御部35
Bは、描画処理部33Bが演算結果を出力する先として
第1の描画フレームメモリを指定する。それと同時に、
制御部35Bは、表示出力部36が合成表示する場合に
参照する描画フレームメモリとして第2の描画フレーム
メモリを指定する。制御部35Bは、描画処理部33B
が第1の描画フレームメモリへの描画を開始した後に、
表示出力同期信号をモニタしており、表示出力部36に
表示する描画フレームメモリは、第1の描画フレームメ
モリへの描画が完了するまでは切り替えない。First, it is assumed that the drawing processing unit 33 has already completed drawing of the second drawing frame at the time when the display output synchronizing signal 101 is input. At this time, the control unit 35
B designates the first drawing frame memory as a destination to which the drawing processing unit 33B outputs the calculation result. At the same time,
The control unit 35B designates the second drawing frame memory as a drawing frame memory to be referred to when the display output unit 36 performs composite display. The control unit 35B controls the drawing processing unit 33B.
After starting drawing to the first drawing frame memory,
The display output synchronization signal is monitored, and the drawing frame memory displayed on the display output unit 36 is not switched until the drawing in the first drawing frame memory is completed.
【0013】具体的には、制御部35Bは例えば第n番
目のDL22に対する演算の開始を描画処理部33Bに
指示する。すると、描画処理部33Bは、DL22内の
全てのオブジェクトを第1の描画フレームメモリに出力
し、描画が完了した時に、演算の終了を制御部35Bに
通知する。そして、制御部35Bは、第n番目のDL2
2に対する演算の終了を検出する。その後、表示出力同
期信号102を入力した時に、表示出力部36が参照す
る描画フレームメモリを第1の描画フレームメモリに変
更するとともに、描画処理部33Bが描画を行なう描画
フレームメモリとして第2の描画フレームメモリを指定
する。Specifically, the control unit 35B instructs the drawing processing unit 33B to start the calculation for the nth DL 22, for example. Then, the drawing processing unit 33B outputs all the objects in the DL 22 to the first drawing frame memory, and when the drawing is completed, notifies the control unit 35B of the end of the calculation. Then, the control unit 35B controls the n-th DL2.
The end of the operation for 2 is detected. After that, when the display output synchronization signal 102 is input, the drawing frame memory referred to by the display output unit 36 is changed to the first drawing frame memory, and the drawing processing unit 33B performs the second drawing as the drawing frame memory for drawing. Specify the frame memory.
【0014】そして、制御部35Bは、次の描画フレー
ム用の第n+1番目のDL22に対する演算の開始を描
画処理部33Bに指示する。制御部35Bは、表示フレ
ーム期間を示す表示出力同期信号を入力し、描画処理部
33Bによる描画が終了した場合は、表示すべき描画フ
レームメモリを選択して表示出力部36に通知する。以
上のように、描画フレームメモリの制御は、DL内の複
数のオブジェクトに対応する全ての処理を行なうことを
前提として行われる。Then, the control unit 35B instructs the drawing processing unit 33B to start the calculation for the (n + 1) th DL 22 for the next drawing frame. The control unit 35B inputs the display output synchronization signal indicating the display frame period, and when the drawing processing unit 33B finishes drawing, selects the drawing frame memory to be displayed and notifies the display output unit 36 of the selected drawing frame memory. As described above, the control of the drawing frame memory is performed on the assumption that all the processes corresponding to the plurality of objects in the DL are performed.
【0015】<デコードフレームメモリの制御>次に、
デコードフレームメモリの制御について、図10(b)
を参照しながら説明する。<Control of Decode Frame Memory> Next,
Regarding the control of the decode frame memory, FIG.
Will be described with reference to.
【0016】前提として、制御部35Bは、第1のビデ
オフレームメモリと第2のビデオフレームメモリをロー
カルメモリ4に用意する。As a premise, the control unit 35B prepares the first video frame memory and the second video frame memory in the local memory 4.
【0017】まず、表示出力同期信号111を入力した
時点で、ビデオデコード部34によて、第2のビデオフ
レームメモリのデコード処理は既に完了しているとす
る。この時、制御部35Bは、ビデオデコード部34が
デコード結果を出力する先として第1のビデオフレーム
メモリを指定する。それと同時に、表示出力部36が合
成表示する場合に参照するビデオフレームメモリとして
第2のビデオフレームメモリを指定する。制御部35B
は、ビデオデコード部34が第1のビデオフレームメモ
リへのデコードを開始した後に、表示出力同期信号をモ
ニタしており、表示出力部36に表示するビデオフレー
ムメモリは、表示出力同期信号とともに切り替える。First, it is assumed that the video decoding unit 34 has already completed the decoding process of the second video frame memory when the display output synchronizing signal 111 is input. At this time, the control unit 35B designates the first video frame memory as the destination to which the video decoding unit 34 outputs the decoding result. At the same time, the second video frame memory is designated as the video frame memory to be referred to when the display output unit 36 performs the composite display. Control unit 35B
Monitors the display output synchronization signal after the video decoding unit 34 starts decoding to the first video frame memory, and the video frame memory displayed on the display output unit 36 is switched together with the display output synchronization signal.
【0018】具体的には、制御部35Bは例えば第n番
目のビデオストリームデータ21に対するデコードの開
始をビデオデコード部34に指示する。ビデオデコード
部34は、タイムスタンプ21Aから開始されるビデオ
ストリームデータ21を順次デコードし、第1のデコー
ドフレームメモリに出力する。この処理が表示出力同期
信号の入力間隔時間内に行われる場合には、デコードフ
レームメモリおよび表示フレームをそれぞれ更新するた
めの表示出力同期信号111〜117および表示出力同
期信号121〜127は、同じ表示出力同期信号を使用
することができるので、モニタ5への出力は表示出力同
期信号毎に更新されることになる。Specifically, the control unit 35B instructs the video decoding unit 34 to start decoding of the nth video stream data 21, for example. The video decoding unit 34 sequentially decodes the video stream data 21 starting from the time stamp 21A and outputs the video stream data 21 to the first decoded frame memory. When this processing is performed within the input interval time of the display output synchronization signal, the display output synchronization signals 111 to 117 and the display output synchronization signals 121 to 127 for updating the decode frame memory and the display frame respectively have the same display. Since the output synchronizing signal can be used, the output to the monitor 5 is updated every display output synchronizing signal.
【0019】また、制御部35Bは表示フレーム期間を
示す表示出力同期信号を入力して、内蔵したタイムカウ
ンタ35dをインクリメントする。このタイムカウンタ
35dとビデオデコードが行われているビデオストリー
ムデータ21に含まれるタイムスタンプ21Aとを比較
し、タイムカウンタ35dに示されたタイムに一致する
タイムスタンプ21Aを有するビデオフレームメモリを
選択し、表示出力部36に通知する。Further, the control section 35B inputs the display output synchronizing signal indicating the display frame period and increments the built-in time counter 35d. The time counter 35d is compared with the time stamp 21A included in the video stream data 21 being video-decoded, and the video frame memory having the time stamp 21A matching the time indicated by the time counter 35d is selected. The display output unit 36 is notified.
【0020】そして、制御部35Bは第n番目のビデオ
ストリームデータ21に対するビデオデコードの終了を
検出する。その後、表示出力同期信号112を入力した
時に、表示出力部36が参照するビデオフレームメモリ
を第1のビデオフレームメモリに変更するとともに、ビ
デオデコード部34がビデオデコードを行なうビデオフ
レームメモリとして第2のビデオフレームメモリを指定
する。そして、制御部35Bは、次のビデオフレームメ
モリ用の第n+1番目のビデオストリームデータ21に
対する演算の開始をビデオデコード部34に指示する。Then, the control unit 35B detects the end of video decoding for the nth video stream data 21. After that, when the display output synchronization signal 112 is input, the video frame memory referred to by the display output unit 36 is changed to the first video frame memory, and the video decoding unit 34 serves as the second video frame memory for performing video decoding. Specify the video frame memory. Then, the control unit 35B instructs the video decoding unit 34 to start the calculation on the (n + 1) th video stream data 21 for the next video frame memory.
【0021】さらに、制御部35Bは表示出力同期信号
を入力し、ビデオデコード部34によるビデオデコード
が終了した場合は、出力すべきビデオフレームメモリを
選択して表示出力部36に通知する。ビデオデコード部
34によるビデオデコードが終了しなかった場合には、
第n−1番目のビデオフレームメモリを表示し続ける等
の対応が行われる。しかしながら、表示出力同期信号と
タイムスタンプ21Aを基準として表示フレームが決定
されるため、ビデオストリームデータはリアルタイム処
理が行われることになる。Further, the control unit 35B inputs the display output synchronizing signal, and when the video decoding by the video decoding unit 34 is completed, it selects the video frame memory to be output and notifies the display output unit 36. If the video decoding by the video decoding unit 34 is not completed,
Correspondence such as continuing to display the (n-1) th video frame memory is performed. However, since the display frame is determined based on the display output synchronization signal and the time stamp 21A, the video stream data is processed in real time.
【0022】なお、ビデオデコード部34の演算能力等
のために、表示フレーム期間内にビデオデコード処理が
間に合わない場合がある。この場合、現在行っているビ
デオデコード処理を中止する場合があり、このときはビ
デオデコード処理の中止を制御部35Bに通知する。Note that the video decoding process may not be completed in time within the display frame period due to the calculation capability of the video decoding unit 34 and the like. In this case, the current video decoding process may be stopped, and in this case, the control unit 35B is notified of the stop of the video decoding process.
【0023】<表示フレームの制御>最後に、表示フレ
ームの制御について、図10(c)を参照しながら説明
する。<Display Frame Control> Finally, display frame control will be described with reference to FIG.
【0024】表示出力部17は、図10(a)で示した
描画フレームメモリと図10(b)で示したデコードフ
レームメモリを合成し、表示フレームとして出力する機
能を有している。このため、表示出力部36は、制御部
35Bよって指定される描画フレームメモリとデコード
フレームメモリを重ね合わせて、モニタ5に出力する。The display output unit 17 has a function of synthesizing the drawing frame memory shown in FIG. 10A and the decoding frame memory shown in FIG. 10B and outputting it as a display frame. Therefore, the display output unit 36 superimposes the drawing frame memory and the decoding frame memory designated by the control unit 35B, and outputs them to the monitor 5.
【0025】以上のような制御によって、モニタ5に出
力される合成された表示フレームは、描画結果について
は3フレーム同期期間は更新されない。一方、ビデオデ
コード結果については毎フレーム更新される。By the control as described above, the combined display frame output to the monitor 5 is not updated in the drawing result for the three-frame synchronization period. On the other hand, the video decoding result is updated every frame.
【0026】[0026]
【発明が解決しようとする課題】しかしながら、上記従
来の技術には以下の問題がある。However, the above-mentioned conventional techniques have the following problems.
【0027】第1に、描画オブジェクトの描画と重ね合
わされるビデオ表示画面は時間的な同期をとることが困
難であるという問題がある。First, there is a problem that it is difficult to synchronize the video display screen superimposed with the drawing of the drawing object in terms of time.
【0028】この問題は、特定の時間で特定の描画オブ
ジェクトを表示する必要があるような画像処理を行なう
場合に生じる。上記のように、制御部35Bは、タイム
カウンタ35dとビデオストリームデータに含まれるタ
イムスタンプ21Aとの比較結果に基づいて、ビデオデ
コード部34に対してビデオストリームデータ21を表
示画面に設定するように命じる。一方、描画について
も、制御部35Bは、この比較結果に基づいて、描画処
理部33Bに対して表示画面に描画するように命じる。
そのため、表示フレーム同期の誤差要因となる画像処理
装置の描画性能やビデオデコード性能による影響を受け
る。したがって、表示出力同期信号単位で描画およびビ
デオ表示画面を同期させることが困難になる。This problem occurs when image processing is performed in which it is necessary to display a specific drawing object at a specific time. As described above, the control unit 35B sets the video stream data 21 to the display screen for the video decoding unit 34 based on the comparison result between the time counter 35d and the time stamp 21A included in the video stream data. Order. On the other hand, also for drawing, the control unit 35B instructs the drawing processing unit 33B to draw on the display screen based on the comparison result.
Therefore, it is affected by the rendering performance and video decoding performance of the image processing device, which causes an error in display frame synchronization. Therefore, it becomes difficult to synchronize the drawing and video display screens in units of display output synchronization signals.
【0029】第2に、画像処理装置の最大性能でのデー
タ処理が困難であるという問題がある。Second, there is a problem that it is difficult to process data with the maximum performance of the image processing apparatus.
【0030】この問題は、画像処理装置内で描画処理と
ビデオデコード処理を同じ演算部で行なう場合や、描画
処理部33Bとビデオデコード部34が、ユニファイド
メモリに対する処理を行なう場合などに生じる。すなわ
ち、メモリを時分割で使用して描画処理およびビデオデ
コード処理を行なうことに起因する問題である。リアル
タイム性が要求されてビデオデコード処理を最優先に処
理する場合は、表示出力同期信号の入力間隔内にビデオ
デコード処理を終了しなければならない。このため、描
画処理はビデオストリームデータ21に付加されたタイ
ムスタンプ21Aと非同期に行われる。This problem occurs when the drawing processing and the video decoding processing are performed by the same arithmetic unit in the image processing apparatus, or when the drawing processing unit 33B and the video decoding unit 34 perform processing on the unified memory. That is, this is a problem caused by performing drawing processing and video decoding processing by using the memory in a time division manner. When the real-time property is required and the video decoding process is processed with the highest priority, the video decoding process must be completed within the input interval of the display output synchronization signal. Therefore, the drawing process is performed asynchronously with the time stamp 21A added to the video stream data 21.
【0031】したがって、一の描画フレームの描画を終
了してから次の表示出力同期信号が入力されるまで、描
画処理は開始されない。このため、ビデオデコード処理
が終了し、かつ描画処理も終了しているにも関わらず、
次の表示出力同期信号が入力されるまで描画処理を待た
なければならない期間が、数フレームに1回の頻度で必
ず発生する。このような理由で、CPU1は、画像処理
装置の最大性能を前提としたDL22の生成を行うこと
ができないために、画像処理装置の最大性能でのデータ
処理が困難になる。Therefore, the drawing process is not started after the drawing of one drawing frame is completed and until the next display output synchronizing signal is input. Therefore, even though the video decoding process and the drawing process have finished,
A period in which the drawing process must be waited until the next display output synchronization signal is input occurs without fail at a frequency of once every several frames. For this reason, the CPU 1 cannot generate the DL 22 based on the maximum performance of the image processing apparatus, which makes it difficult to perform data processing with the maximum performance of the image processing apparatus.
【0032】以上の問題点に鑑み、本発明は、第1に描
画処理とAV処理との時間的な同期を可能にする画像処
理装置を課題とする。また、第2に最大性能でのデータ
処理を可能にする画像処理装置を提供することを課題と
する。In view of the above problems, the first object of the present invention is to provide an image processing apparatus capable of temporally synchronizing drawing processing and AV processing. A second object is to provide an image processing apparatus that enables data processing with maximum performance.
【0033】[0033]
【課題を解決するための手段】上記課題を解決するた
め、請求項1記載の発明が講じた手段は、第1のタイム
スタンプと表示フレームに描画すべき複数のオブジェク
トデータとを有する第1のストリームデータに対して、
第1種演算処理を行ない、その結果をメモリ領域に描画
する演算部と、第n番目の表示フレームを表示する時刻
間隔を示す第nタイムを表示出力同期信号に基づいて生
成し、前記第nタイムと前記第1のストリームデータの
前記第1のタイムスタンプとを比較し、その比較結果を
もとに、前記メモリ領域への描画を前記第nタイムと同
期させる制御部とを備えるものである。Means for Solving the Problems In order to solve the above problems, the means of the invention according to claim 1 has a first time stamp and a plurality of object data to be drawn in a display frame. For stream data,
An arithmetic unit that performs the first-type arithmetic processing and draws the result in a memory area, and an n-th time indicating a time interval for displaying the n-th display frame are generated based on the display output synchronization signal. And a control unit for comparing the time with the first time stamp of the first stream data, and synchronizing the drawing in the memory area with the nth time based on the comparison result. .
【0034】請求項1の発明によると、制御部は、タイ
ムスタンプを有する第1のストリームデータを入力する
ため、ユーザー側のソフトプログラムにより、オブジェ
クトデータに対する時間管理が可能となる。そして、第
nタイムと第1のタイムスタンプとを比較することによ
り、表示の時間軸となる第nタイムと同期して第1のス
トリームデータの描画をすることができる。According to the first aspect of the present invention, since the control unit inputs the first stream data having the time stamp, the time management for the object data can be performed by the software program on the user side. Then, by comparing the nth time and the first time stamp, the first stream data can be drawn in synchronization with the nth time which is the time axis of display.
【0035】また、請求項2の発明では、請求項1記載
の発明において、前記オブジェクトデータには、前記メ
モリ領域に描画する必要度を示す優先度が付加され、前
記演算部は、前記優先度に基づいて、前記第1種演算処
理を行なうものとする。According to a second aspect of the present invention, in the first aspect of the invention, the object data is added with a priority indicating the degree of necessity of drawing in the memory area, and the arithmetic unit is configured to perform the priority processing. Based on the above, the first type arithmetic processing is performed.
【0036】請求項2の発明によると、オブジェクトデ
ータに対して、描画すべき必要度を示す優先度を付加す
ることにより、ユーザー側のソフトプログラムにより、
異なる描画処理性能を有する画像処理装置に対応可能な
描画処理システムを構築できる。According to the second aspect of the present invention, by adding the priority indicating the necessity degree for drawing to the object data, the software program on the user side allows
It is possible to construct a drawing processing system capable of coping with image processing apparatuses having different drawing processing performance.
【0037】また、請求項3の発明では、請求項1記載
の画像処理装置において、前記演算部は、さらに、第2
のタイムスタンプと表示フレームにデコードすべきデー
タとを有する第2のストリームデータに対して、第2種
演算処理を行ない、その結果を前記メモリ領域に設定
し、前記制御部は、さらに、前記第nタイムと前記第2
のストリームデータの前記第2のタイムスタンプとを比
較し、その比較結果をもとに、前記設定を前記第nタイ
ムと同期させるものとする。According to a third aspect of the present invention, in the image processing apparatus according to the first aspect, the arithmetic unit further includes a second
The second stream data having the time stamp of 1 and the data to be decoded in the display frame is subjected to the second type arithmetic processing, and the result is set in the memory area. n time and the second
The second time stamp of the stream data is compared with the second time stamp, and the setting is synchronized with the nth time based on the comparison result.
【0038】また、請求項4の発明では、請求項2記載
の画像処理装置において、前記演算部は、さらに、第2
のタイムスタンプと表示フレームにデコードすべきデー
タとを有する第2のストリームデータに対して、第2種
演算処理を行ない、その結果を前記メモリ領域に設定
し、前記制御部は、さらに、前記第nタイムと前記第2
のストリームデータの前記第2のタイムスタンプとを比
較し、その比較結果をもとに、前記設定を前記第nタイ
ムと同期させるものとする。According to a fourth aspect of the invention, in the image processing apparatus according to the second aspect, the arithmetic unit further comprises a second
The second stream data having the time stamp of 1 and the data to be decoded in the display frame is subjected to the second type arithmetic processing, and the result is set in the memory area. n time and the second
The second time stamp of the stream data is compared with the second time stamp, and the setting is synchronized with the nth time based on the comparison result.
【0039】請求項3や請求項4の発明によると、制御
部は、さらに第2のタイムスタンプを有する第2のスト
リームデータを入力して、第nタイムと第1のタイムス
タンプと第2のタイムスタンプとを比較することによ
り、第1のストリームデータの描画と第2のストリーム
データの設定の同期をとることができる。According to the invention of claim 3 or claim 4, the control unit further inputs the second stream data having the second time stamp to input the nth time, the first time stamp and the second time stamp. By comparing with the time stamp, the drawing of the first stream data and the setting of the second stream data can be synchronized.
【0040】また、請求項5の発明では、請求項3記載
の画像処理装置において、前記制御部は、前記第nタイ
ムから第n+1タイムにインクリメントされるまでの第
1の時間間隔において、前記第nタイムに処理すべき第
2のストリームデータの第2種演算処理を完了するよう
に、前記演算部を制御し、前記演算部は、前記第1の時
間間隔から、前記第nタイムに処理すべき第2のストリ
ームデータの第2種演算処理に要する第2の時間間隔を
差し引いた第3の時間間隔において、前記第1のストリ
ームデータの前記第1種演算処理が開始し、前記制御部
は、前記第3の時間間隔内に前記第1種演算処理が未完
了である場合、前記第n+1タイム以降のタイムに処理
すべき第1のストリームデータの第1種演算処理をスキ
ップして、前記第nタイムに処理すべき第1のストリー
ムデータの第1種演算処理の継続を前記演算部に対して
命じるものとする。According to a fifth aspect of the present invention, in the image processing apparatus according to the third aspect, the control unit is configured to perform the first time interval from the nth time to the (n + 1) th time. The arithmetic unit is controlled so as to complete the second-type arithmetic processing of the second stream data to be processed in n times, and the arithmetic unit processes from the first time interval to the nth time. The first type arithmetic processing of the first stream data starts at a third time interval after subtracting the second time interval required for the second type arithmetic processing of the power second stream data, and the control unit If the first type arithmetic processing is not completed within the third time interval, the first type arithmetic processing of the first stream data to be processed at the time after the (n + 1) th time is skipped, First The continuation of the first type processing the first stream data to be processed in the time assumed to command to the arithmetic unit.
【0041】請求項5の発明によると、第1種演算処理
が第3の時間間隔内に完了しない場合、第n+1タイム
に処理すべき第1のストリームデータの第1種演算処理
をスキップして、第nタイムに処理すべき第1のストリ
ームデータの第1種演算処理を継続することにより、第
1のストリームデータの描画と第2のストリームデータ
の設定の同期をとることができる。According to the invention of claim 5, when the first type arithmetic processing is not completed within the third time interval, the first type arithmetic processing of the first stream data to be processed in the (n + 1) th time is skipped. By continuing the first type arithmetic processing of the first stream data to be processed at the nth time, the drawing of the first stream data and the setting of the second stream data can be synchronized.
【0042】また、請求項6の発明では、請求項3記載
の画像処理装置において、前記制御部は、前記第nタイ
ムから第n+1タイムにインクリメントされるまでの第
1の時間間隔において、前記第nタイムに処理すべき第
2のストリームデータの第2種演算処理を完了するよう
に、前記演算部を制御し、前記演算部は、前記第1の時
間間隔から、前記第nタイムに処理すべき第2のストリ
ームデータの第2種演算処理に要する第2の時間間隔を
差し引いた第3の時間間隔において、前記第1のストリ
ームデータの前記第1種演算処理が開始し、前記制御部
は、前記第3の時間間隔内に前記第1種演算処理が完了
する場合、前記第1種演算処理の完了時から前記第n+
1タイムにインクリメントされるまでの間、前記第n+
1タイムに処理すべき第1のストリームデータの第1種
演算処理の中止を前記演算部に対して命じるものとす
る。According to a sixth aspect of the present invention, in the image processing apparatus according to the third aspect, the control unit is configured to perform the first time interval from the nth time to the (n + 1) th time. The arithmetic unit is controlled so as to complete the second-type arithmetic processing of the second stream data to be processed in n times, and the arithmetic unit processes from the first time interval to the nth time. The first type arithmetic processing of the first stream data starts at a third time interval after subtracting the second time interval required for the second type arithmetic processing of the power second stream data, and the control unit If the first-type arithmetic processing is completed within the third time interval, the n + th time is calculated from the completion of the first-type arithmetic processing.
Until the time is incremented by 1 time, the nth +
It is assumed that the arithmetic unit is instructed to stop the first-type arithmetic processing of the first stream data to be processed in one time.
【0043】請求項6の発明によると、第1種演算処理
が第3の時間間隔内に完了した場合、第3の時間間隔が
終了するまで第1種演算処理を中止することにより、第
1のストリームデータの描画と第2のストリームデータ
の設定の同期をとることができる。According to the sixth aspect of the present invention, when the first type arithmetic processing is completed within the third time interval, the first type arithmetic processing is stopped until the third time interval ends, whereby the first type arithmetic processing is completed. It is possible to synchronize the drawing of the stream data and the setting of the second stream data.
【0044】また、請求項7の発明では、請求項4記載
の画像処理装置において、前記制御部は、前記第nタイ
ムから第n+1タイムにインクリメントされるまでの第
1の時間間隔において、前記第nタイムに処理すべき前
記第2のストリームデータの前記第2種演算処理を完了
するように、前記演算部を制御し、前記演算部は、所定
の優先度の値を保持する優先度レジスタを備え、前記第
1種演算処理が完了している前記優先度の値を保持する
優先度レジスタを備え、前記第1の時間間隔から、前記
第nタイムに処理すべき第2のストリームデータの第2
種演算処理に要する第2の時間間隔を差し引いた第3の
時間間隔において、前記第1のストリームデータの前記
第1種演算処理を開始し、前記第n+1タイムにインク
リメントされた時に、前記第1種演算処理が完了してい
るオブジェクトデータの優先度の値に、前記優先度レジ
スタの値を更新し、前記第n+1タイム以降に処理すべ
き第1のストリームデータの第1種演算処理は、前記優
先度レジスタが保持する値以上の優先度の値が付加され
たオブジェクトデータを演算し、前記優先度レジスタが
保持する前記優先度の値よりも低い値が付加された前記
オブジェクトデータを演算しないものとする。According to a seventh aspect of the present invention, in the image processing apparatus according to the fourth aspect, the control section is configured to perform the first time interval from the n-th time to the (n + 1) -th time increment. The arithmetic unit is controlled so as to complete the second-type arithmetic processing of the second stream data to be processed in n times, and the arithmetic unit stores a priority register that holds a value of a predetermined priority. And a priority register for holding the value of the priority for which the first-type arithmetic processing has been completed, the second stream data to be processed in the n-th time from the first time interval. Two
At the third time interval after subtracting the second time interval required for the seed operation processing, the first seed operation processing of the first stream data is started, and when the first time is incremented to the (n + 1) th time, the first The first type arithmetic processing of the first stream data to be processed after the (n + 1) th time is updated by updating the value of the priority register to the priority value of the object data for which the seed arithmetic processing is completed. Object data with a priority value greater than or equal to the value held by the priority register is operated, and object data with a value lower than the priority value held by the priority register is not operated And
【0045】請求項7の発明によると、第1種演算処理
が第3の時間間隔内に完了しない場合に優先度レジスタ
が保持する優先度の値を参照して、その優先度の値より
も低いデータの第1種演算処理をしない。これにより、
第1のストリームデータの描画と第2のストリームデー
タの設定の同期をとることができる。加えて、画像処理
装置の最大性能を利用した第1種演算処理を行なうこと
ができる。According to the invention of claim 7, when the first type arithmetic processing is not completed within the third time interval, the priority value held by the priority register is referred to, and the priority value is more than the priority value. The first-class arithmetic processing of low data is not performed. This allows
The drawing of the first stream data and the setting of the second stream data can be synchronized. In addition, it is possible to perform the first type arithmetic processing utilizing the maximum performance of the image processing apparatus.
【0046】また、請求項8の発明では、請求項4記載
の画像処理装置において、前記制御部は、前記第nタイ
ムから第n+1タイムにインクリメントされるまでの第
1の時間間隔において、前記第nタイムに処理すべき第
2のストリームデータの第2種演算処理を完了するよう
に、前記演算部を制御し、前記演算部は、所定の優先度
の値を保持する優先度レジスタを備え、前記第1の時間
間隔から、前記第nタイムに処理すべき第2のストリー
ムデータの第2種演算処理に要する第2の時間間隔を差
し引いた第3の時間間隔において、前記第1のストリー
ムデータの前記第1種演算処理を開始し、前記第1種演
算処理は、前記優先度レジスタが保持する値以上の優先
度の値が付加された前記オブジェクトデータを演算し、
前記第1種演算処理が、前記第n+1タイムにインクリ
メントされるまでの間に、第n−1タイムに前記優先度
レジスタが保持する優先度に対応するオブジェクトデー
タの前記第1種演算処理を完了する場合、前記第n+1
タイムにインクリメントされるまでの間、前記第n−1
タイム以前に前記優先度レジスタが保持する前記優先度
の値を考慮して、前記第n−1タイムに前記優先度レジ
スタが保持する前記優先度の値よりも低い値を有する優
先度に対応するオブジェクトデータを追加演算するとと
もに、前記第n+1タイムにインクリメントされた時に
前記第1種演算処理が完了しているオブジェクトデータ
の優先度の値に、前記優先度レジスタの値を更新するも
のとする。Further, in the invention of claim 8, in the image processing apparatus of claim 4, the control section is configured to perform the first time interval from the n-th time to the (n + 1) -th time increment. controlling the arithmetic unit so as to complete the second-type arithmetic processing of the second stream data to be processed in n times, and the arithmetic unit comprises a priority register for holding a value of a predetermined priority; At the third time interval obtained by subtracting the second time interval required for the second type arithmetic processing of the second stream data to be processed at the n-th time from the first time interval, the first stream data Starting the first type arithmetic processing of, the first type arithmetic processing calculates the object data to which the value of the priority higher than the value held by the priority register is added,
The first type arithmetic processing of the object data corresponding to the priority held in the priority register is completed at the (n-1) th time until the first type arithmetic processing is incremented at the (n + 1) th time. In the case of
Until the time is incremented, the n-1 th
Considering the priority value held by the priority register before the time, it corresponds to the priority having a value lower than the priority value held by the priority register at the (n-1) th time. It is assumed that the object data is additionally calculated, and the value of the priority register is updated to the priority value of the object data for which the first-type operation processing is completed when incremented in the (n + 1) th time.
【0047】請求項8の発明によると、第1種演算処理
が第3の時間間隔内に完了した場合、優先度レジスタが
保持する優先度の値を下げるため、さらに多くのオブジ
ェクトデータの描画を行なうことができるので、第1の
ストリームの描画と第2のストリームデータの設定を同
期できる。加えて、画像処理装置の最大性能を利用した
第1種演算処理を行なうことができる。According to the eighth aspect of the present invention, when the first type operation processing is completed within the third time interval, the priority value held by the priority register is lowered, so that more object data is drawn. Since it can be performed, the drawing of the first stream and the setting of the second stream data can be synchronized. In addition, it is possible to perform the first type arithmetic processing utilizing the maximum performance of the image processing apparatus.
【0048】また、請求項9の発明では、請求項8記載
の画像処理装置において、前記制御部は、前記優先度レ
ジスタが保持する値が更新された場合、前記優先度レジ
スタの値を、前記第1のストリームデータを生成出力す
るストリームデータ出力部に通知し、前記ストリームデ
ータ出力部は、前記第1のストリームデータの中から、
前記優先度レジスタが保持する更新された値以上の優先
度の値が付加された前記オブジェクトデータのみを選択
して出力するものとする。According to a ninth aspect of the present invention, in the image processing apparatus according to the eighth aspect, the control unit sets the value of the priority register to the value when the value held by the priority register is updated. The stream data output unit that generates and outputs the first stream data is notified, and the stream data output unit selects, from the first stream data,
It is assumed that only the object data to which the priority value greater than or equal to the updated value held by the priority register is added is selected and output.
【0049】請求項9の発明によると、画像処理装置の
内部における第1種演算処理の過程で優先度レジスタの
値が更新された場合、システムバス上の第1のストリー
ムデータを生成するCPU等のストリームデータ出力部
に通知して、第1のストリームデータの生成量を調整す
ることができる。このため、システムバス上の第1のス
トリームデータの転送を最小限にすることができる。し
たがって、システムバス上のデータ転送にかかわる画像
処理装置のデータ処理能力の低減を防止することができ
る。According to the ninth aspect of the invention, when the value of the priority register is updated in the process of the first type arithmetic processing inside the image processing apparatus, the CPU or the like which generates the first stream data on the system bus. The stream data output unit can be notified to adjust the generation amount of the first stream data. Therefore, the transfer of the first stream data on the system bus can be minimized. Therefore, it is possible to prevent the reduction of the data processing capability of the image processing device involved in the data transfer on the system bus.
【0050】また、請求項10の発明では、請求項8記
載の画像処理装置において、前記第1のストリームデー
タを入力し、前記優先度レジスタが保持する更新された
値以上の優先度の値が付加されたオブジェクトデータの
みを選択して、前記第1のストリームデータを再構成
し、前記再構成した前記第1のストリームデータをバッ
ファに保持させるインターフェース部をさらに備えるも
のとする。According to the tenth aspect of the present invention, in the image processing apparatus according to the eighth aspect, the first stream data is input, and the priority value equal to or higher than the updated value held by the priority register is set. It is further provided with an interface unit that selects only the added object data, reconstructs the first stream data, and holds the reconstructed first stream data in a buffer.
【0051】請求項10の発明によると、インターフェ
ース部は、描画優先度の異なるオブジェクトに対応する
第1のストリームデータのうち、画像処理装置が描画可
能な優先度のレベルのオブジェクトデータのみを選択し
て内部データ転送を行なうようにする。このため、ユニ
ファイドメモリ上に描画フレームおよび表示フレームを
マッピングして使用するといったデータ処理の場合のデ
ータ転送量を最小にすることができる。したがって、内
部転送にかかわる画像処理装置のデータ処理能力の低減
を防止することができる。According to the tenth aspect of the present invention, the interface section selects only the object data of the priority level that can be drawn by the image processing apparatus from the first stream data corresponding to the objects having different drawing priorities. Internal data transfer. Therefore, it is possible to minimize the data transfer amount in the case of data processing in which a drawing frame and a display frame are mapped and used on the unified memory. Therefore, it is possible to prevent the reduction of the data processing capability of the image processing device involved in the internal transfer.
【0052】[0052]
【発明の実施の形態】本発明の各実施形態について、図
面を参照しながら説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS Each embodiment of the present invention will be described with reference to the drawings.
【0053】(第1の実施形態)本発明の第1の実施形
態については、図1〜図3を参照しながら説明する。(First Embodiment) A first embodiment of the present invention will be described with reference to FIGS.
【0054】図1は、本発明の第1の実施形態における
画像処理システムの構成例を示すブロック図である。図
1に示す画像処理装置システムでは、システムバス6上
に、CPU1、主記憶2、並びに描画処理(第1種演算
処理に対応する)およびAVデコード処理(第2種演算
処理に対応する)を行なうLSI3が接続されている。
また、ローカルメモリ4(メモリ領域に対応する)は、
LSI3が専用に使用するメモリ領域である。さらに、
LSI3は、CPUインターフェース31、メモリイン
ターフェース32、描画処理部33A(演算部に対応す
る)、ビデオデコード部34(演算部に対応する)、制
御部35A、および表示出力部36を備えている。FIG. 1 is a block diagram showing an example of the arrangement of an image processing system according to the first embodiment of the present invention. In the image processing apparatus system shown in FIG. 1, a CPU 1, a main memory 2, a drawing process (corresponding to a first type arithmetic process) and an AV decoding process (corresponding to a second type arithmetic process) are arranged on a system bus 6. The LSI 3 to be executed is connected.
In addition, the local memory 4 (corresponding to the memory area) is
This is a memory area used exclusively by the LSI 3. further,
The LSI 3 includes a CPU interface 31, a memory interface 32, a drawing processing unit 33A (corresponding to a calculation unit), a video decoding unit 34 (corresponding to a calculation unit), a control unit 35A, and a display output unit 36.
【0055】そして、制御部35Aは、タイムスタンプ
検出部35a、タイムスタンプ検出部35b、優先度検
出部35c、およびタイムカウンタ35dを内蔵してい
る。タイムスタンプ検出部35aは、後述する図2に示
すビデオストリームデータ(第2のストリームデータに
対応する)21内のタイムスタンプ(第2のタイムスタ
ンプに対応する)21Aを検出する。タイムスタンプ検
出部35bは、表示フレームに描画すべき複数のオブジ
ェクトデータを有するDL(第1のストリームデータに
対応する)22内のタイムスタンプ(第1のタイムスタ
ンプに対応する)22Aを検出する。優先度検出部35
cは、オブジェクトデータの描画すべき優先順位を示す
優先度を検出する。タイムカウンタ35dは、表示出力
部36から出力される表示フレームを表示する期間を示
す表示出力同期信号に同期してカウントアップして表示
フレームを表示する時刻間隔を生成する。なお、タイム
カウンタ35dは、例えば第n番目の表示フレームを表
示する時刻間隔を示す第nタイムを生成する。また、表
示出力部36からの出力結果は、モニタ5に表示され
る。また、描画処理部33Aは優先度の値を保持する優
先度レジスタ33aを備えている。The control section 35A has a time stamp detecting section 35a, a time stamp detecting section 35b, a priority detecting section 35c, and a time counter 35d built therein. The time stamp detection unit 35a detects a time stamp (corresponding to the second time stamp) 21A in the video stream data (corresponding to the second stream data) 21 shown in FIG. 2 described later. The time stamp detection unit 35b detects a time stamp (corresponding to the first time stamp) 22A in the DL (corresponding to the first stream data) 22 having a plurality of object data to be drawn in the display frame. Priority detection unit 35
c detects the priority indicating the priority of object data to be drawn. The time counter 35d counts up in synchronization with a display output synchronization signal indicating a period for displaying the display frame output from the display output unit 36, and generates a time interval for displaying the display frame. The time counter 35d generates, for example, the nth time indicating the time interval for displaying the nth display frame. The output result from the display output unit 36 is displayed on the monitor 5. The drawing processing unit 33A also includes a priority register 33a that holds a priority value.
【0056】図2は、本実施形態における画像処理用の
データの配列を示す概略図である。図2において、21
はMPEG等のビデオストリームデータ、22はDLであ
り、また21Aはビデオストリームデータ21に付加さ
れたタイムスタンプ、22AはDL22に付加されたタ
イムスタンプである。ビデオストリームデータ21は、
タイムスタンプ21Aをフィールドとして含み、以降、
表示出力同期信号が示す表示期間内にデコードすべき複
数のビデオストリームデータが連続する構成となってい
る。一方、DL22はタイムスタンプ22Aをフィール
ドとして含み、以降、描画すべき複数の描画コマンド2
2Bが連続する構成となっている。さらに、DL22に
は描画コマンド22Bに対して描画すべきオブジェクト
の必要度を示す優先度が付加されている。そして、描画
処理部33Aは、優先度が付加されたDL22を順次入
力し、一つ一つのオブジェクトを描画の必要度を考慮し
た上で描画する。すなわち、描画処理部33Aは、決め
られた値以上の優先度を持つオブジェクトを優先度の高
低にかかわらず表われた順に描画する。なお、ビデオス
トリームデータ21およびDL22は、保持されるメモ
リのアドレスに対してそれぞれリニアに並べられる。FIG. 2 is a schematic diagram showing an array of image processing data in this embodiment. In FIG. 2, 21
Is a video stream data such as MPEG, 22 is a DL, 21A is a time stamp added to the video stream data 21, and 22A is a time stamp added to the DL 22. The video stream data 21 is
It includes the time stamp 21A as a field,
A plurality of video stream data to be decoded are consecutive within the display period indicated by the display output synchronization signal. On the other hand, the DL 22 includes a time stamp 22A as a field, and thereafter, a plurality of drawing commands 2 to be drawn
2B is continuous. Further, the DL 22 is added with a priority indicating the necessity of an object to be drawn with respect to the drawing command 22B. Then, the drawing processing unit 33A sequentially inputs the DL 22 to which the priority is added, and draws each object in consideration of the necessity of drawing. That is, the drawing processing unit 33A draws objects having priorities equal to or higher than the determined value in the order in which they appear regardless of the priority. The video stream data 21 and the DL 22 are arranged linearly with respect to the address of the held memory.
【0057】CPU1は、主記憶2からビデオストリー
ムデータ21およびDL22をLSI3に転送する。こ
れらのデータは、CPUインターフェース31およびメ
モリインターフェース32によってローカルメモリ4に
一時保持されるが、主記憶2と同じアドレスにリニアに
保持される。そして、ビデオストリームデータ21およ
びDL22は、LSI3によって順次読み出される。読
み出されたビデオストリームデータ21およびDL22
に含まれるタイムスタンプ21Aおよび22Aは、制御
部35Aが内蔵するタイムスタンプ検出部35aおよび
35bによって検出される。制御部35Aは、モニタ5
に使用される表示出力同期信号とともに、描画処理部3
3A、ビデオデコード部34および表示出力部36を制
御する。The CPU 1 transfers the video stream data 21 and DL 22 from the main memory 2 to the LSI 3. These data are temporarily held in the local memory 4 by the CPU interface 31 and the memory interface 32, but are linearly held at the same address as the main memory 2. Then, the video stream data 21 and the DL 22 are sequentially read by the LSI 3. Read video stream data 21 and DL 22
The time stamps 21A and 22A included in are detected by the time stamp detection units 35a and 35b incorporated in the control unit 35A. The control unit 35A uses the monitor 5
Together with the display output synchronization signal used for
3A, the video decoding unit 34, and the display output unit 36 are controlled.
【0058】制御部35Aには、図2で示すタイムスタ
ンプ22Aが付加されたDL22が入力される。このた
め、制御部35Aは、描画処理部33Aが現在描画中の
描画フレームメモリに描画している描画コマンド22B
が、何時モニタ5に表示されるようにCPU1から出力
されたかを前提に制御できる。具体的には、制御部35
Aは表示フレーム期間を示す表示出力同期信号を入力し
て、内蔵したタイムカウンタ35dをインクリメントす
る。ここでは、例えば第n番目の表示フレームを表示す
る時刻間隔を示す第nタイムを生成する。そして、この
第nタイムと描画処理が行なわれているDL22に含ま
れるタイムスタンプ22Aとを比較して、タイムカウン
タ35dに示された第nタイムに一致するタイムスタン
プ21Aを有するDL22を選択する。この時、選択し
たDL22を表示出力部36に通知し、表示出力部36
は選択したDL22を表示画面に表示する。The control unit 35A receives the DL 22 to which the time stamp 22A shown in FIG. 2 is added. Therefore, the control unit 35A causes the drawing processing unit 33A to draw the drawing command 22B that is being drawn in the drawing frame memory currently being drawn.
However, it can be controlled on the basis of when the output from the CPU 1 is made to be displayed on the monitor 5. Specifically, the control unit 35
A inputs the display output synchronizing signal indicating the display frame period and increments the built-in time counter 35d. Here, for example, the n-th time indicating the time interval for displaying the n-th display frame is generated. Then, the n-th time is compared with the time stamp 22A included in the DL 22 on which the drawing process is performed, and the DL 22 having the time stamp 21A matching the n-th time indicated by the time counter 35d is selected. At this time, the selected DL 22 is notified to the display output unit 36, and the display output unit 36 is notified.
Displays the selected DL 22 on the display screen.
【0059】このように、描画オブジェクトの描画と重
ね合わされるビデオ表示画面の時間的な同期をとること
が可能になる。In this way, it becomes possible to synchronize the drawing of the drawing object and the video display screen superimposed on each other in time.
【0060】また、優先度を付加したDL22を用いた
画像処理装置における表示フレームの合成について、図
3を参照しながら説明する。Also, the synthesis of display frames in the image processing apparatus using the DL 22 to which the priority is added will be described with reference to FIG.
【0061】図3は、本実施形態に係る画像処理装置に
おける表示フレームの合成例を示す図である。図3にお
いて、(a)は、描画性能の低い画像処理装置でDL2
2を演算した結果を保持する描画フレームメモリの時間
経過を示す図であり、(b)は、描画性能の高い画像処
理装置でDL22を演算した結果を保持する描画フレー
ムメモリである。また(c)は、ビデオストリームデー
タ21をビデオデコード処理した結果を保持するデコー
ドフレームメモリである。さらに、(d)は描画性能の
低い画像処理装置の表示フレーム、(e)は描画性能の
高い画像処理装置の表示フレームである。FIG. 3 is a diagram showing an example of combining display frames in the image processing apparatus according to this embodiment. In FIG. 3, (a) is an image processing device with low drawing performance, which is DL2.
FIG. 6 is a diagram showing the elapsed time of a drawing frame memory that holds the result of calculating 2; FIG. 6B is a drawing frame memory that holds the result of calculating DL 22 in an image processing device with high drawing performance. Further, (c) is a decode frame memory that holds the result of video decoding processing of the video stream data 21. Further, (d) is a display frame of an image processing apparatus having low drawing performance, and (e) is a display frame of an image processing apparatus having high drawing performance.
【0062】例えば、優先度レベル1から4を含むDL
22が生成されているとすると、DL22が、描画性能
の低い画像処理装置に出力された場合は(d)に示す表
示フレームとなり、描画性能の高い画像処理装置に出力
された場合は(e)に示す表示フレームとなる。すなわ
ち、(d)に示す表示フレームは、(a)に示す優先度
レベル1の描画オブジェクトのみが描画された描画フレ
ームメモリと(c)に示すデコードフレームメモリとが
合成表示されたものとなる。また、(e)に示す表示フ
レームは、(b)に示す優先度レベル1から4までの描
画オブジェクトが描画された描画フレームメモリと
(c)に示すデコードフレームメモリとが合成表示され
たものとなる。For example, a DL including priority levels 1 to 4
22 is generated, the DL 22 becomes the display frame shown in (d) when it is output to the image processing apparatus with low drawing performance, and (e) when it is output to the image processing apparatus with high drawing performance. It becomes the display frame shown in. That is, the display frame shown in (d) is a combined display of the drawing frame memory shown in (a) in which only the drawing object of priority level 1 is drawn and the decoding frame memory shown in (c). Further, the display frame shown in (e) is such that the drawing frame memory in which the drawing objects of priority levels 1 to 4 shown in (b) are drawn and the decoding frame memory shown in (c) are combined and displayed. Become.
【0063】しかしながら、優先度レベル1(レベル1
は優先度が高い値であることを意味する)は、描画性能
の異なる画像処理装置を有する複数のユーザーに対して
必須の情報を含んでいる。したがって、このレベルの描
画オブジェクトを表示すれば、複数のユーザーはシステ
ム上問題のない処理を行なうことができる。一方、優先
度レベル1から4(レベル2以降は優先度の値が順に低
くなることを意味する)までの全ての描画オブジェクト
を描画できる描画性能の高い画像処理装置のユーザー
は、さらに詳細な情報を得ることが出来る。例えば、画
像処理装置の描画および表示結果を踏まえて、ユーザー
が描画コマンド22Bを動かすための入力をCPU1に
指示し、CPU1が描画コマンド22Bの変化を踏まえ
たDL22を生成するようなアプリケーションにおい
て、ユーザーが動きを指示する描画オブジェクトを優先
度1、背景のオブジェクトを優先度2などと指定するよ
うな場合を想定できる。However, priority level 1 (level 1
Means that the value has a high priority) contains essential information for a plurality of users having image processing devices having different drawing performances. Therefore, by displaying a drawing object at this level, a plurality of users can perform processing without causing a system problem. On the other hand, a user of an image processing apparatus having high drawing performance capable of drawing all drawing objects from priority levels 1 to 4 (meaning that the priority values are sequentially decreased from level 2 onward) has more detailed information. Can be obtained. For example, in an application in which the user instructs the CPU 1 to input an input for moving the drawing command 22B based on the drawing and display results of the image processing device, and the CPU 1 generates the DL 22 based on the change of the drawing command 22B, A case can be assumed in which the drawing object instructing the movement is designated as priority 1 and the background object is designated as priority 2.
【0064】以上のように、本実施形態によると、タイ
ムスタンプ22Aを付加したDL22を制御部35Aに
入力することによって、制御部35Aは表示出力同期信
号から生成した第nタイムとタイムスタンプ22Aとを
比較することによって、描画オブジェクトの描画とビデ
オ表示画面の表示を時間的に同期することを可能にす
る。このため、描画を時間単位で行なうことが必要とな
るアプリケーションに関して必須の制御である。また、
優先度を付加したDL22Aを描画処理部33Aに入力
することによって、描画処理性能その他の理由により、
タイムスタンプ22Aが指定する時間内に描画処理が間
に合わない場合であっても、描画処理部33Aは描画オ
ブジェクトをその優先度に応じて選択することを可能に
する。このため、ユーザーが表示結果を踏まえて次の時
間に入力すべき操作を決定する場合に、最小限必要な描
画コマンド22Bを指定できるので、画像処理装置に要
求される描画処理性能に幅を持たせて画像処理装置の最
大性能でのデータ処理が可能になる。As described above, according to the present embodiment, by inputting the DL 22 with the time stamp 22A added to the control unit 35A, the control unit 35A generates the nth time and the time stamp 22A generated from the display output synchronization signal. It is possible to temporally synchronize the drawing of the drawing object with the display of the video display screen by comparing. Therefore, this control is indispensable for an application that requires drawing in time units. Also,
By inputting the DL 22A to which the priority is added to the drawing processing unit 33A, due to the drawing processing performance and other reasons,
Even when the drawing process is not in time within the time specified by the time stamp 22A, the drawing processing unit 33A enables the drawing object to be selected according to its priority. Therefore, when the user decides the operation to be input at the next time based on the display result, the minimum necessary drawing command 22B can be specified, so that the drawing processing performance required for the image processing apparatus has a wide range. Thus, data processing can be performed with the maximum performance of the image processing apparatus.
【0065】なお、図1において、描画処理部33Aと
ビデオデコード処理部34は、分離して示しているが、
同一の演算部を用いた時分割処理を行なう場合について
も、本発明は同様に実施可能である。また、同一の演算
部を用いたAV−CGの同期処理については、後述する
第2の実施形態において説明する。Although the drawing processing unit 33A and the video decoding processing unit 34 are shown separately in FIG.
The present invention can be similarly applied to the case where the time division processing is performed using the same arithmetic unit. Also, AV-CG synchronization processing using the same arithmetic unit will be described in a second embodiment described later.
【0066】(第2の実施形態)本発明の第2の実施形
態について、カーナビゲーションシステムの場合を例に
して、図1、図2、図4〜図7を参照しながら説明す
る。なお、図中、第1の実施形態と共通の構成要素には
同一の符号が付されている。(Second Embodiment) A second embodiment of the present invention will be described by taking a case of a car navigation system as an example with reference to FIGS. 1, 2, and 4 to 7. It should be noted that in the figure, the same reference numerals are given to constituent elements common to the first embodiment.
【0067】<カーナビゲーションシステムの概要>ま
ず、カーナビゲーションシステムの概要について、図4
を参照しながら説明する。<Outline of Car Navigation System> First, FIG. 4 shows an outline of the car navigation system.
Will be described with reference to.
【0068】図4は、本実施形態における建物描画方法
を用いたカーナビゲーションシステムの構成例を示す図
である。図4に示すカーナビゲーションシステムは、カ
ーナビゲーション装置41と、液晶画面装置42と、自
車センサー43と、GPSアンテナ44と、VICSア
ンテナ45と、ディスク46と、リモコン装置47と、
受光装置48と、ディジタルAV装置49とを備えてい
る。FIG. 4 is a diagram showing a configuration example of a car navigation system using the building drawing method according to the present embodiment. The car navigation system shown in FIG. 4 includes a car navigation device 41, a liquid crystal screen device 42, a vehicle sensor 43, a GPS antenna 44, a VICS antenna 45, a disk 46, a remote control device 47,
A light receiving device 48 and a digital AV device 49 are provided.
【0069】カーナビゲーション装置41は、自車の現
在位置から目的地への最適経路を選択してその経路を地
図情報とともに描画し、またディジタルAVストリーム
をデコードする機能を有する。液晶画面装置42は、カ
ーナビゲーション装置41による描画結果を表示する。
自車センサー43は、自車の速度を知るための速度セン
サーと加減速や旋回を知るためのジャイロセンサーとを
含んでいる。GPSアンテナ44は、自車位置を正確に
知るためのアンテナである。VICSアンテナ45は、
渋滞などの道路交通情報を知るためのアンテナである。
ディスク46は、地図データやAVデータなどを記録し
たDVD−ROMやCD−ROMのような記録メディア
である。リモコン装置47は、カーナビゲーション装置
41に対して、ユーザが目的地の設定や経路選択の条件
の設定やディジタルAVストリームの制御を行なうため
の装置である。受光装置48はリモコン装置47のため
の装置である。ディジタルAV装置49は、地上波ディ
ジタル放送やDVD−Vide0のようなディジタルA
Vストリームを読み込む装置である。The car navigation device 41 has a function of selecting an optimum route from the current position of the vehicle to the destination, drawing the route along with map information, and decoding the digital AV stream. The liquid crystal screen device 42 displays the drawing result by the car navigation device 41.
The own vehicle sensor 43 includes a speed sensor for knowing the speed of the own vehicle and a gyro sensor for knowing acceleration / deceleration and turning. The GPS antenna 44 is an antenna for accurately knowing the vehicle position. The VICS antenna 45 is
It is an antenna for knowing road traffic information such as traffic jams.
The disk 46 is a recording medium such as a DVD-ROM or a CD-ROM in which map data and AV data are recorded. The remote control device 47 is a device for the user to set a destination, set conditions for route selection, and control a digital AV stream for the car navigation device 41. The light receiving device 48 is a device for the remote control device 47. The digital AV device 49 is a digital A device such as a terrestrial digital broadcast or a DVD-Video 0.
A device for reading a V stream.
【0070】図5は、カーナビゲーション装置41の構
成例の概略を示すブロック図である。図5におけるカー
ナビゲーション装置41は、システムバス6を介して、
CPU1と、主記憶2と、表示出力部36と、ディスク
読取部52と、GPS受信部53と、VICS受信部5
4と、自車情報解析部55と、リモコン信号入力部56
と、ディジタルAV入力部57と、描画部60とを備え
ている。なお、図5における表示出力部36の出力先
は、図4でも示した液晶表示装置42である。また図5
には示していないが、GPS受信部53にはGPSアン
テナ44が接続され、VICS受信部54にはVICS
アンテナ45が接続され、自車情報解析部55には自車
センサー43が接続され、ディジタルAV入力部57に
はディジタルAV装置49が接続されている。また、リ
モコン信号入力部56には、液晶画面装置42を介して
受光装置48が接続され、リモコン装置47から受光装
置48が受信したユーザの指示内容を示す信号が入力さ
れる。FIG. 5 is a block diagram showing an outline of a configuration example of the car navigation system 41. The car navigation device 41 in FIG.
CPU 1, main memory 2, display output unit 36, disk reading unit 52, GPS receiving unit 53, VICS receiving unit 5
4, a vehicle information analysis unit 55, and a remote control signal input unit 56
A digital AV input section 57 and a drawing section 60. The output destination of the display output unit 36 in FIG. 5 is the liquid crystal display device 42 also shown in FIG. Also in FIG.
Although not shown in the figure, the GPS antenna 44 is connected to the GPS receiving section 53, and the VICS receiving section 54 is connected to the VICS.
The antenna 45 is connected, the own vehicle sensor 43 is connected to the own vehicle information analysis unit 55, and the digital AV device 49 is connected to the digital AV input unit 57. Further, the light receiving device 48 is connected to the remote control signal input unit 56 via the liquid crystal screen device 42, and a signal indicating the user's instruction content received by the light receiving device 48 is input from the remote control device 47.
【0071】ここで、CPU1は主記憶2に格納された
プログラムに従って、カーナビゲーション装置41全体
を制御するためにさまざまな処理を行なう。CPU1が
行なう処理としては、例えば、描画部60に対するレン
ダリングパラメータの計算を含む図2で示した描画コマ
ンド22Bの発行や、描画部60に対するディジタルA
Vストリームの発行も含まれる。Here, the CPU 1 performs various processes for controlling the entire car navigation device 41 according to the program stored in the main memory 2. As the processing performed by the CPU 1, for example, the drawing command 22B shown in FIG. 2 including the calculation of the rendering parameter for the drawing unit 60 is issued, and the digital A for the drawing unit 60 is issued.
It also includes issuing V-streams.
【0072】<描画部60の具体的動作>次に、描画部
60の具体的動作について、図5を参照しながら説明す
る。<Specific Operation of Drawing Unit 60> Next, a specific operation of the drawing unit 60 will be described with reference to FIG.
【0073】まず、描画部60は、図1に示した演算部
と制御部35Aが行なう処理に対応する処理を行なう。
すなわち、描画部60は、描画処理と、ディジタルAV
ストリームのデコード処理と、描画およびデコードの同
期処理とを行なう。First, the drawing unit 60 performs a process corresponding to the process performed by the arithmetic unit and the control unit 35A shown in FIG.
That is, the drawing unit 60 performs the drawing process and the digital AV.
The stream decoding process and the drawing and decoding synchronization process are performed.
【0074】描画部60は、描画制御部50と、レンダ
リング部51と、DLおよびAV用メモリ4aと、表示
用メモリ4b(メモリ領域に対応する)とを備えてい
る。なお、DLおよびAV用メモリ4aと表示用メモリ
4bは、図1におけるローカルメモリ4に対応してい
る。The drawing unit 60 includes a drawing control unit 50, a rendering unit 51, a DL / AV memory 4a, and a display memory 4b (corresponding to a memory area). The DL and AV memory 4a and the display memory 4b correspond to the local memory 4 in FIG.
【0075】CPU1から発行された描画コマンド22
Bは、システムバス6を経由してDLおよびAV用メモ
リ4aに格納される。描画制御部50は、DLおよびA
V用メモリ4aから、順次描画コマンド22Bを取り出
して、描画コマンド22Bをレンダリング部51によっ
て解釈することが可能なプリミティブな描画命令とレン
ダリングパラメータとに分解する。そして、描画コマン
ド22Bのパラメータとして与えられたモデリング座標
を描画座標に座標変換したうえで、描画コマンド22B
の属性を反映させた描画命令をレンダリング部51に対
して発行する。レンダリング部51は、描画制御部50
から受けた描画命令とレンダリングパラメータとに従っ
て表示用メモリ4bに描画する。Drawing command 22 issued from CPU 1
B is stored in the DL and AV memory 4a via the system bus 6. The drawing control unit 50 uses DL and A
The drawing commands 22B are sequentially fetched from the V memory 4a, and the drawing commands 22B are decomposed into primitive drawing commands and rendering parameters that can be interpreted by the rendering unit 51. Then, after the modeling coordinates given as the parameters of the drawing command 22B are converted into the drawing coordinates, the drawing command 22B
A rendering command reflecting the attribute of is issued to the rendering unit 51. The rendering unit 51 uses the drawing control unit 50.
Drawing is performed in the display memory 4b in accordance with the drawing command and the rendering parameter received from.
【0076】また、CPU1から発行されたディジタル
AVストリームは、システムバス6を経由しDLおよび
AV用メモリ4aに格納される。描画制御部50は、D
LおよびAV用メモリ4aから、ディジタルAVストリ
ームを順次取り出して、デコード処理を行なう。また描
画制御部50は、デコード結果を表示用メモリ4bに格
納する。表示出力部36は、表示用メモリ4bに描画さ
れた内容を液晶画面装置42に対してビデオ出力を行な
う。The digital AV stream issued from the CPU 1 is stored in the DL and AV memory 4a via the system bus 6. The drawing control unit 50
Digital AV streams are sequentially taken out from the L and AV memories 4a, and decoded. The drawing control unit 50 also stores the decoding result in the display memory 4b. The display output unit 36 video-outputs the contents drawn in the display memory 4b to the liquid crystal screen device 42.
【0077】描画処理またはディジタルAVストリーム
のデコード処理用として、DLおよびAV用メモリ4a
と表示用メモリ4bを描画部60に設定することによっ
て、描画部60は描画処理またはデコード処理のどちら
か一方または両方の処理を行なう。すなわち、同一垂直
ブランキング期間において、描画制御部50は、描画処
理およびディジタルAVストリームのデコード処理を時
間的に切り替えて行なう。また、DLおよびAV用メモ
リ4aや表示用メモリ4bにおいて、描画処理用および
ディジタルAVストリームのデコード処理用の領域を同
時に保持することによって、描画とディジタルAVとを
同期して表示画面に同時に表示させることが可能にな
る。The DL and AV memory 4a is used for drawing processing or digital AV stream decoding processing.
By setting the display memory 4b in the drawing unit 60, the drawing unit 60 performs either one or both of the drawing process and the decoding process. That is, in the same vertical blanking period, the drawing control unit 50 temporally switches the drawing process and the decoding process of the digital AV stream. Further, the DL and AV memories 4a and the display memory 4b simultaneously hold areas for drawing processing and digital AV stream decoding processing, so that drawing and digital AV can be simultaneously displayed on the display screen in synchronization. It will be possible.
【0078】なお、本実施形態では、描画制御部50
は、描画処理とともに、ディジタルAVストリームのデ
コード処理をいわゆるソフトデコードとして行なうこと
としている。しかしながら、いわゆるハードデコードと
して、描画制御部50とは別のデコーダエンジンによっ
てディジタルAVストリームのデコード処理を行なう場
合であっても本発明は同様に実施可能である。In this embodiment, the drawing control unit 50
Together with the drawing process, the decoding process of the digital AV stream is performed as so-called soft decoding. However, the present invention can be similarly implemented even when the decoding process of the digital AV stream is performed by a decoder engine other than the drawing control unit 50 as so-called hard decoding.
【0079】<同期処理>次に、同期処理について具体
的に説明する。<Synchronization Processing> Next, the synchronization processing will be specifically described.
【0080】まず、ディジタルAVストリームのデコー
ドと描画の同期処理は、第1の実施形態で説明と同じよ
うに、ディジタルAVストリーム(第2のストリームデ
ータに対応する)とDL22(第1のストリームデータ
に対応する)にそれぞれ含まれるタイムスタンプ(第1
および第2のタイムスタンプに対応する)を用いる。す
なわち、描画制御部50は、表示出力同期信号より例え
ば第n番目の表示フレームに対応する第nタイムを生成
して、それぞれのタイムスタンプと比較することによっ
て、ディジタルAVストリームのデコードと描画の同期
を行なう。なお、ここでは、第2のストリームデータ
は、映像(ビデオ)情報と音声(オーディオ)情報のデ
ータの場合について説明しているが、例えば文字情報な
どの付加情報であっても、本実施形態は同様に実施可能
である。First, the digital AV stream decoding and drawing synchronization processing is the same as that described in the first embodiment, with the digital AV stream (corresponding to the second stream data) and the DL 22 (first stream data). Corresponding to the time stamp (first
And corresponding to the second time stamp). That is, the drawing control unit 50 generates, for example, the n-th time corresponding to the n-th display frame from the display output synchronization signal and compares it with the respective time stamps to synchronize the decoding and drawing of the digital AV stream. Do. It should be noted that, here, the case where the second stream data is data of video (video) information and audio (audio) information has been described, but even if the second stream data is additional information such as character information, the present embodiment It can be similarly implemented.
【0081】また、ディジタルAVストリームのデコー
ド処理において、オーディオのデコードとビデオのデコ
ードは、それぞれのストリームに付加されているタイム
スタンプによって同期する。ディジタルAVのストリー
ムは、ディジタルAV入力部57からCPU1、主記憶
2、およびシステムバス6経由してDLおよびAV用メ
モリ4aに格納される。Further, in the decoding process of the digital AV stream, the audio decoding and the video decoding are synchronized by the time stamps added to the respective streams. The digital AV stream is stored in the DL and AV memory 4a from the digital AV input section 57 via the CPU 1, the main memory 2, and the system bus 6.
【0082】具体的には、図6を参照しながら説明す
る。図6はディジタルAVのデコードと描画の同期処理
を説明するための図である。A concrete description will be given with reference to FIG. FIG. 6 is a diagram for explaining a digital AV decoding and drawing synchronization process.
【0083】ディジタルAVストリームデータ61は、
アクセスユニット61Aに分解することができ、各アク
セスユニット61Aは各タイムスタンプ73a(オーデ
ィオ)、73v(ビデオ)を持っている。また、ディジ
タルAVストリームは、DLおよびAV用メモリ4aの
中の、オブジェクトごとに設定されるデコードバッファ
64に、各アクセスユニット61Aが示すオブジェクト
ごとに格納される。そして描画制御部50は、デコード
バッファ64ごとにデコード処理を行なう。The digital AV stream data 61 is
The access unit 61A can be disassembled, and each access unit 61A has time stamps 73a (audio) and 73v (video). The digital AV stream is stored for each object indicated by each access unit 61A in the decode buffer 64 set for each object in the DL and AV memory 4a. Then, the drawing control unit 50 performs a decoding process for each decode buffer 64.
【0084】その際、オーディオストリームのデコード
におけるタイムスタンプ73aを基準として、ビデオス
トリームのデコードにおけるタイムスタンプ73vが進
みすぎる場合には、ビデオストリームのデコードを1V
OP(Video Ojeck Plane)(VOPとは、ビデオスト
リームに含まれるVO(Video Ojeck)を構成する各画
面である。)の時間分止めて同じVOPを表示するフリ
ーズ処理を行なう。At this time, if the time stamp 73v in the video stream decoding is too advanced with reference to the time stamp 73a in the audio stream decoding, the video stream is decoded by 1V.
A freeze process is performed in which the OP (Video Ojeck Plane) (VOP is each screen that constitutes a VO (Video Ojeck) included in a video stream) is stopped for the time and the same VOP is displayed.
【0085】一方、ビデオストリームのデコードにおけ
るタイムスタンプ73vが遅れすぎる場合には、ビデオ
ストリームを次に現れるIピクチャまで飛ばしてビデオ
ストリームのデコードを続けるスキップ処理を行なう。
このようにして、オーディオストリームのデコードを基
準にして、進みすぎるビデオデコードを遅らせ、また遅
れすぎるビデオデコードを進めることによって、オーデ
ィオストリームとビデオストリームのデコードを同期さ
せる。On the other hand, when the time stamp 73v in the video stream decoding is too late, the video stream is skipped to the next I picture, and the skip processing for continuing the video stream decoding is performed.
In this way, the decoding of the audio stream is synchronized with the decoding of the audio stream by delaying the video decoding that is too advanced and advancing the video decoding that is too late based on the decoding of the audio stream.
【0086】次に、DL22の描画の同期処理につい
て、図6を参照しながら説明する。Next, the DL 22 synchronous processing will be described with reference to FIG.
【0087】描画処理もタイムスタンプによって同期す
る。DL22は、複数の描画コマンド22Bに分解する
ことができ、同一垂直ブランキング期間内(第1の時間
間隔に対応する)のフレームで描画したいDL22の先
頭に、タイムスタンプ73dを設定する描画コマンド2
2Bを置く。すなわち、先頭に置かれたこの描画コマン
ド22B以降に続くDL22は同じ時刻に描画表示され
ることが期待される。The drawing process is also synchronized by the time stamp. The DL 22 can be decomposed into a plurality of drawing commands 22B, and a drawing command 2 that sets a time stamp 73d at the beginning of the DL 22 to be drawn in a frame within the same vertical blanking period (corresponding to the first time interval)
Put 2B. That is, it is expected that the DL 22 following the drawing command 22B placed at the head will be drawn and displayed at the same time.
【0088】また、上記したように、同一垂直ブランキ
ング期間において、描画制御部50は、描画処理および
ディジタルAVストリームのデコード処理を時間的に切
り替えて行なう。したがって、描画処理は、同一垂直ブ
ランキング期間からビデオデコードに要する時間(第2
の時間間隔に対応する)を差し引いたこの垂直ブランキ
ング期間が終了するまでの時間(第3の時間間隔に対応
する)内に、描画処理が開始されて完了することが望ま
れる。しかしながら、描画性能その他の要因によって、
描画処理が第3の時間間隔内に完了しない場合や、逆に
第3の時間間隔内の垂直ブランキング期間が終了するま
でに完了する場合がある。この場合の描画処理の同期
は、描画のフリーズ処理やスキップ処理による速度調整
型の方式や、描画オブジェクトの優先度に基づいて描画
オブジェクトの量を調整するオブジェクト調整型の方式
を併用することによって行なわれる。As described above, in the same vertical blanking period, the drawing control unit 50 temporally switches the drawing process and the decoding process of the digital AV stream. Therefore, the drawing process takes time (second second) from the same vertical blanking period to video decoding.
It is desired that the drawing process be started and completed within the time (corresponding to the third time interval) until this vertical blanking period is subtracted by subtracting (corresponding to the time interval). However, due to drawing performance and other factors,
The drawing process may not be completed within the third time interval, or conversely, may be completed by the end of the vertical blanking period within the third time interval. In this case, the drawing process is synchronized by using the speed adjustment type system by the drawing freeze process or the skip process and the object adjustment type system that adjusts the amount of the drawing object based on the priority of the drawing object. Be done.
【0089】このように、両方式を併用するのは、画像
処理装置の描画処理の性能が不足するとき、描画の調節
として2つの場合があるからである。すなわち、たとえ
描画でコマ落ちが起こっても1コマにおける所望のオブ
ジェクトをすべて描画する必要がある場合と、逆に、た
とえ所望のオブジェクトのすべてを描画できなくてもコ
マ落ちを起こさない必要がある場合とがある。本実施形
態では、以下にその両方の場合における調節を可能にす
る方法を述べる。The reason why both types are used together is that there are two cases for adjusting the drawing when the drawing processing performance of the image processing apparatus is insufficient. In other words, even if all the desired objects in one frame need to be drawn even if the dropped frames occur, on the contrary, it is necessary that the dropped frames do not occur even if all the desired objects cannot be drawn. There are cases. In this embodiment, a method for enabling adjustment in both cases will be described below.
【0090】なお、同期に関してオーディオデコードを
基準にするのは、ビデオに比べてオーディオの再生速度
の変化はユーザにとって目立ち易いため、可能な限りオ
ーディオの再生速度を一定にする必要があるからであ
る。このため、描画処理部50における処理のうち、オ
ーディオデコード処理はビデオデコード処理および描画
処理に対して優先する。また、同期の基準とすべきオー
ディオストリームのデコードにおけるタイムスタンプ7
3aがない場合は、CPU1が時刻管理を行いタイムス
タンプ73aを生成することによって、同様の同期処理
を行なうことができる。The reason why the audio decoding is used as a reference for the synchronization is that the change in the audio reproduction speed is more noticeable to the user than the video, and therefore the audio reproduction speed needs to be as constant as possible. . Therefore, of the processing in the drawing processing unit 50, the audio decoding processing has priority over the video decoding processing and the drawing processing. In addition, the time stamp 7 in the decoding of the audio stream that should be the reference for synchronization
If there is no 3a, the CPU 1 manages the time and generates the time stamp 73a, so that the same synchronization process can be performed.
【0091】(1)描画の速度調整型同期処理 まず、描画の速度調整型同期処理について説明する。(1) Rendering speed adjustment type synchronous processing First, the speed adjustment type synchronization processing of drawing will be described.
【0092】この処理は、上記した通り、たとえ描画で
コマ落ちが起こっても1コマにおける所望のオブジェク
トをすべて描画する必要がある場合に、描画の同期処理
を調節する方式である。描画処理におけるタイムスタン
プ73dが、オーディオのタイムスタンプ73aと比較
して進みすぎる場合、例えば第nタイムに対応するDL
22の描画処理が第3の時間間隔内に完了する場合は、
第nタイムに対応するDL22の描画処理を中止して同
じフレームを表示するフリーズ処理を行なう。As described above, this processing is a method of adjusting the synchronous processing of drawing when it is necessary to draw all desired objects in one frame even if a frame drop occurs in drawing. When the time stamp 73d in the drawing process is too advanced compared to the audio time stamp 73a, for example, the DL corresponding to the nth time
If the drawing process of 22 is completed within the third time interval,
The drawing process of the DL 22 corresponding to the nth time is stopped and the freeze process for displaying the same frame is performed.
【0093】また、描画処理におけるタイムスタンプ7
3dがオーディオのタイムスタンプ73aと比較して遅
れすぎる場合、すなわち、第nタイムに対応するDL2
2の描画処理が第3の時間間隔内に完了しない場合は、
第n+1タイムでの描画処理において第n+1タイムに
対応するDL22は飛ばして第nタイムに対応するDL
22の描画処理を継続して、描画処理を続けるスキップ
処理を行なう。Further, the time stamp 7 in the drawing process
3d is too late compared to the audio time stamp 73a, that is, DL2 corresponding to the nth time.
If the drawing process of 2 is not completed within the third time interval,
In the drawing processing at the (n + 1) th time, the DL 22 corresponding to the (n + 1) th time is skipped and the DL corresponding to the nth time is skipped.
The drawing process of 22 is continued, and the skip process of continuing the drawing process is performed.
【0094】このように、オーディオデコードを基準に
して、進みすぎる描画処理を遅らせ、また遅れすぎる描
画処理を進めることによって、オーディオデコード処理
と描画処理を同期させることができる。As described above, the audio decoding process and the drawing process can be synchronized by delaying the drawing process that is too advanced and advancing the drawing process that is too late based on the audio decoding.
【0095】(2)描画のオブジェクト調整型同期処理
次に、描画のオブジェクト調整型同期処理について説明
する。(2) Drawing Object Adjustment Type Synchronous Processing Next, the drawing object adjustment type synchronous processing will be described.
【0096】この処理は、上記した通り、たとえ所望の
描画オブジェクトのすべてを描画できなくてもコマ落ち
を起こさない必要がある場合に、描画の同期処理を調節
する方式である。この方式では、描画オブジェクトごと
に指定される優先度が、描画優先度(ここで描画優先度
とは、画像処理装置が描画可能なオブジェクト示す優先
度のことを意味する)と同じかまたは描画優先度よりも
高いオブジェクトのみを描画し、描画優先度よりも低い
描画オブジェクトは描画しない。その結果、第nタイム
に対応する上記第3の時間間隔内に、優先度レジスタ3
3aが保持している第n−1タイムに対応する描画優先
度と同じかまたは描画優先度よりも高い優先度を有する
オブジェクトのすべての描画を完了している場合は、描
画優先度を下げることによって次の第n+1タイムに対
応する第3の時間間隔内における描画すべきオブジェク
トを増やす。また、この際、第n−1タイム以前におい
て優先度レジスタ33aが保持するする優先度の値を考
慮して、例えば表示画面がブレないように優先度レジス
タ33aの値の統計を取るなどして、第nタイムに対応
する垂直ブランキング期間が終了するまで、さらに、優
先度の低い値のオブジェクトを追加演算するこもでき
る。As described above, this processing is a method of adjusting the synchronous processing of drawing even when all desired drawing objects cannot be drawn and it is necessary to prevent dropping of frames. In this method, the priority specified for each drawing object is the same as the drawing priority (here, the drawing priority means the priority indicating an object that can be drawn by the image processing apparatus) or the drawing priority. Only objects that are higher than the drawing priority are drawn, and drawing objects that are lower than the drawing priority are not drawn. As a result, within the third time interval corresponding to the nth time, the priority register 3
If all the objects having the same or higher priority than the drawing priority corresponding to the (n-1) th time held by 3a have been drawn, lower the drawing priority. The number of objects to be drawn in the third time interval corresponding to the next (n + 1) th time is increased by. At this time, considering the priority value held by the priority register 33a before the (n-1) th time, for example, statistics of the value of the priority register 33a are taken so that the display screen is not blurred. , Until the vertical blanking period corresponding to the nth time ends, it is possible to additionally calculate objects having lower priority values.
【0097】一方、第nタイムに対応する第3の時間間
隔内に、優先度レジスタ33aが保持する描画優先度と
同じかまたは描画優先度よりも高い優先度を有するオブ
ジェクトのすべての描画が未完了である場合は、上記し
た速度調整型同期処理の方式におけるスキップ処理を行
なう。それとともに、描画優先度を上げることによって
次の第n+1タイムに対応する第3の時間間隔内におけ
る描画すべきオブジェクトを減らす。このように描画優
先度を考慮して描画処理を行なうと、コマ落ちを防い
で、画像処理装置の最大性能によって描画とビデオ表示
画面の同期を行なうことができる。On the other hand, within the third time interval corresponding to the nth time, all of the objects having the same priority as the drawing priority held by the priority register 33a or higher than the drawing priority have not been drawn. If it is completed, the skip processing in the speed adjustment type synchronization processing method described above is performed. At the same time, the drawing priority is increased to reduce the objects to be drawn in the third time interval corresponding to the next (n + 1) th time. By thus performing the drawing process in consideration of the drawing priority, it is possible to prevent dropping of frames and synchronize the drawing and the video display screen with the maximum performance of the image processing apparatus.
【0098】(3)AVとCGの同期処理
最後に、上記で述べてきたことの繰り返しになるが、A
VとCGの同期処理について、図7を参照しながら説明
する。図7は、AVとCGの同期処理を説明するための
フローチャート図である。(3) AV and CG synchronization processing Finally, the above description is repeated.
The synchronization process of V and CG will be described with reference to FIG. 7. FIG. 7 is a flowchart for explaining the AV and CG synchronization processing.
【0099】まず、処理S1では画像処理システムにオ
ーディオデータがあるか否かを判別する。オーディオデ
ータがある場合(処理S1でYES)は、処理S2に進
む。処理S2では、オーディオデータを基準にして同期
を行なうために、オーディオデータのデコードを行って
タイムスタンプ73aを抽出し、処理S4に進む。一
方、オーディオデータがない場合(処理S1でNO)
は、処理S3に進み、同期の基準となるタイムスタンプ
73aがCPU1によって生成される。そして処理S4
に進む。First, in step S1, it is determined whether or not the image processing system has audio data. If there is audio data (YES in process S1), the process proceeds to process S2. In step S2, the audio data is decoded to extract the time stamp 73a in order to perform synchronization based on the audio data, and the process proceeds to step S4. On the other hand, when there is no audio data (NO in step S1)
In step S3, the CPU 1 generates a time stamp 73a which serves as a synchronization reference. And process S4
Proceed to.
【0100】次に、処理S4では画像処理システムにビ
デオデータがあるか否かを判別する。ビデオデータがな
い場合(処理S4でNO)は、処理S9に進む。一方、
ビデオデータがある場合(処理S4でYES)は、処理
S5に進む。処理S5では、ビデオデータのデコードを
行ってタイムスタンプ73vを抽出し、処理S6に進
む。処理S6では、タイムスタンプ73aとタイムスタ
ンプ73vとを比較し、基準のタイムスタンプ73aに
対してビデオデコードが進んでいるか遅れているかを判
別する。ビデオデコードが進んでいる場合(処理S6で
YES)は、処理S7に進み、ビデオデコードのフリー
ズ処理を行なう。そして、処理S9に進む。一方、ビデ
オデコードが遅れている場合(処理S6でNO)は、処
理S8に進み、ビデオデコードのスキップ処理を行な
う。そして、処理S9に進む。Next, in step S4, it is determined whether or not the image processing system has video data. When there is no video data (NO in step S4), the process proceeds to step S9. on the other hand,
If there is video data (YES in process S4), the process proceeds to process S5. In process S5, the video data is decoded to extract the time stamp 73v, and the process proceeds to process S6. In step S6, the time stamp 73a is compared with the time stamp 73v to determine whether the video decoding is ahead or behind the reference time stamp 73a. If video decoding is in progress (YES in process S6), the process proceeds to process S7, and freeze process of video decoding is performed. Then, the process proceeds to step S9. On the other hand, when the video decoding is delayed (NO in step S6), the process proceeds to step S8, and the video decoding skip process is performed. Then, the process proceeds to step S9.
【0101】次に、処理S9では画像処理システムに描
画データがあるか否かを判別する。描画データがない場
合(処理S9でNO)は、1表示フレーム期間における
処理を終える。一方、描画データがある場合(処理S9
でYES)は、処理S10に進み、描画優先度と同じ優
先度かまたは描画優先度よりも高い優先度をもつオブジ
ェクトを描画し、描画優先度よりも低い優先度をもつ描
画オブジェクトは描画しない。そして、処理S11に進
む。処理S11では、垂直ブランキング期間が終了する
までに所望の描画処理を完了したか否かを判別する。所
望の描画処理を完了した場合(処理S11でYES)
は、処理S12に進み、描画優先度を下げることによっ
て以降の描画における描画すべきオブジェクトの量を増
やして処理を終了する。一方、所望の描画処理を完了し
なかった場合(処理S12でNO)は、処理S13に進
み、描画のスキップ処理を行って以前の描画結果を再度
表示するとともに、描画優先度を上げることによって以
降の描画における描画すべきオブジェクトの量を減らし
て処理を終了する。Next, in step S9, it is determined whether or not the image processing system has drawing data. If there is no drawing data (NO in step S9), the process in one display frame period ends. On the other hand, if there is drawing data (process S9
If YES), the process advances to step S10 to draw an object having the same priority as the drawing priority or a priority higher than the drawing priority, and does not draw a drawing object having a priority lower than the drawing priority. Then, the process proceeds to step S11. In step S11, it is determined whether or not the desired drawing process has been completed by the end of the vertical blanking period. When the desired drawing process is completed (YES in process S11)
In step S12, the drawing priority is lowered to increase the amount of objects to be drawn in the subsequent drawing, and the process ends. On the other hand, if the desired drawing process has not been completed (NO in step S12), the process proceeds to step S13, the drawing skip process is performed to display the previous drawing result again, and the drawing priority is increased. The processing is ended by reducing the amount of objects to be drawn in the drawing.
【0102】以上のように、本実施形態によると、オー
ディオデコードを基準にして、進みすぎる描画処理を遅
らせ、また遅れすぎる描画処理を進めることによって、
AVデコード処理と描画処理を同期させることができ
る。また、描画優先度を考慮して描画処理およびAVデ
コード処理を同期するため、画像処理装置に要求される
描画処理性能に幅を持たせて画像処理装置の最大性能で
のデータ処理が可能になる。As described above, according to the present embodiment, the drawing process that is too advanced is delayed and the drawing process that is too delayed is advanced based on the audio decoding.
The AV decoding process and the drawing process can be synchronized. Further, since the drawing process and the AV decoding process are synchronized in consideration of the drawing priority, it is possible to allow the data processing at the maximum performance of the image processing device by giving a range to the drawing processing performance required of the image processing device. .
【0103】ここで、本発明の本実施形態に係る変形例
について説明する。Here, a modification of the embodiment of the present invention will be described.
【0104】従来、複数の画像処理装置がネットワーク
上に接続されて、例えばネットワーク対戦型のゲームを
行なう場合のような、ネットワーク上に様々な描画性能
およびビデオデコード性能を有する複数のマルチメディ
ア端末があり、これらの端末間でリアルタイム性が要求
される処理の場合に、描画オブジェクトの描画と重ね合
わされるビデオ表示画面を時間的に同期をとることが困
難であるという問題があった。この問題は、描画オブジ
ェクトの描画とビデオ表示画面の表示を同期させること
に意味があるマルチメディアアプリケーションの実現を
大きく阻むものとなっていた。Conventionally, a plurality of multimedia terminals having various drawing performances and video decoding performances on a network, such as when a plurality of image processing apparatuses are connected to the network and playing a network battle type game, have been used. However, in the case of a process requiring real-time processing between these terminals, there is a problem in that it is difficult to synchronize the video display screen superimposed with the drawing of the drawing object in time. This problem has largely hindered the realization of multimedia applications, which makes sense to synchronize the drawing of a drawing object with the display of a video display screen.
【0105】このような場合、各端末からの入力がネッ
トワーク上のサーバーに集められ、その後描画ストリー
ムデータおよびビデオストリームデータの配信はサーバ
ーが設定する時間間隔毎に行われる。そして、各端末側
は描画結果およびビデオデコード処理の結果を判断し
て、次のネットワークに対する出力操作を行なう必要が
ある。そのため、描画ストリームデータおよびビデオス
トリームデータの配信を受けると、描画処理およびビデ
オデコード処理を同時に行わなければならない。In such a case, the input from each terminal is collected by the server on the network, and thereafter the drawing stream data and the video stream data are distributed at every time interval set by the server. Then, it is necessary for each terminal side to judge the drawing result and the result of the video decoding process and perform the output operation to the next network. Therefore, when the drawing stream data and the video stream data are delivered, the drawing process and the video decoding process must be performed at the same time.
【0106】しかしながら、上記した本発明によると、
複数の画像処理装置がネットワーク上に接続されリアル
タイム性が要求されるアプリケーションを想定している
場合であっても、描画と表示フレームへの表示との同期
が可能になる。However, according to the present invention described above,
Even when an application in which a plurality of image processing apparatuses are connected on a network and which requires real-time processing is assumed, it is possible to synchronize drawing and display in a display frame.
【0107】また、本発明の本実施形態に係る別の変形
例について、再度図1を参照しながら説明する。Another modification of the embodiment of the present invention will be described with reference to FIG. 1 again.
【0108】図1の画像処理装置において、制御部35
Aに内蔵された優先度検出部35cは、画像処理装置が
描画可能な優先度を検出している。そのため、この優先
度が更新された場合には、制御部35Aは割り込み信号
1S等の手段を用いて、更新された優先度をCPU1に
通知する。この更新された優先度に基づいて、例えばC
PU1(ストリームデータ出力部に対応する)がDL2
2を生成する場合、画像処理装置が描画処理可能な優先
度を有する描画オブジェクトのみを選択してLSI3に
出力する。In the image processing apparatus of FIG. 1, the control unit 35
The priority detection unit 35c incorporated in A detects the priority that can be drawn by the image processing apparatus. Therefore, when the priority is updated, the control unit 35A notifies the CPU 1 of the updated priority by using a means such as the interrupt signal 1S. Based on this updated priority, for example, C
PU1 (corresponding to the stream data output unit) is DL2
In the case of generating 2, the image processing apparatus selects only a drawing object having a priority capable of drawing processing and outputs it to the LSI 3.
【0109】このようにすると、DLの生成量を調節で
きるため、システムバス6上を転送させるデータ量を最
小限にできる。このため、システムバス6上のデータ転
送に関わる画像処理装置のデータ処理能力の低減を防止
することができる。In this way, since the amount of DL generated can be adjusted, the amount of data transferred on the system bus 6 can be minimized. Therefore, it is possible to prevent the reduction of the data processing capability of the image processing apparatus related to the data transfer on the system bus 6.
【0110】さらに別の変形例について、同様に図1を
参照しながら説明する。Still another modification will be described with reference to FIG.
【0111】図1の画像処理装置において、まず、CP
U1が全ての優先度を有するDL22を生成してLSI
3に出力する。この場合、CPUインターフェース31
(インターフェース部に対応する)は、制御部35Aか
ら現在描画可能な優先度である描画優先度情報を含む優
先度通知信号31Sを受け、システムバス6を介して入
力したDL22を一部デコードした結果と比較する。そ
して、現在描画可能な優先度を有する描画オブジェクト
のみを用いてDLを再構成し、メモリインターフェース
32を介してローカルメモリ4に再構成されたDLを一
時保持させる。その後、描画処理部33Aは、再構成さ
れたDL22を入力して描画処理を行ない、描画フレー
ムメモリに対して出力する。In the image processing apparatus of FIG. 1, first, CP
U1 creates DL22 with all priorities to create an LSI
Output to 3. In this case, the CPU interface 31
(Corresponding to the interface unit) receives the priority notification signal 31S including the drawing priority information which is the currently drawable priority from the control unit 35A, and partially decodes the DL 22 input via the system bus 6. Compare with. Then, the DL is reconfigured using only the drawing object having the currently drawable priority, and the reconfigured DL is temporarily held in the local memory 4 via the memory interface 32. Thereafter, the drawing processing unit 33A inputs the reconstructed DL 22, performs drawing processing, and outputs the drawing frame memory.
【0112】このようにすると、描画処理は、従来の描
画処理と同様に全てのDL22に対して実行されるが、
LSI3に入力されたDL22の中から、描画可能な優
先度を有するオブジェクトデータのみを選択して再構成
する。そして、再構成したDL22を内部転送するた
め、内部転送に関わる画像処理装置のデータ処理能力の
低減を防止することができる。In this way, the drawing process is executed for all DLs 22 as in the conventional drawing process.
From the DL 22 input to the LSI 3, only object data having a drawable priority is selected and reconstructed. Then, since the reconfigured DL 22 is internally transferred, it is possible to prevent a reduction in the data processing capability of the image processing apparatus related to the internal transfer.
【0113】[0113]
【発明の効果】上述のように、本発明によると、複数の
描画オブジェクトを有する描画ストリームデータ(D
L)にタイムスタンプを付加して第1のストリームデー
タを入力する。そのため、描画オブジェクトに対する描
画処理の時間管理が可能となる。そして、表示の時間軸
となる第nタイムを生成して、第nタイムと第1のタイ
ムスタンプとを比較する。その比較結果をもとにする
と、表示の時間軸と同期して第1のストリームデータを
描画することができる。As described above, according to the present invention, drawing stream data (D
A time stamp is added to L) and the first stream data is input. Therefore, it becomes possible to manage the time of the drawing process for the drawing object. Then, the nth time, which is the time axis of the display, is generated, and the nth time and the first time stamp are compared. Based on the comparison result, the first stream data can be drawn in synchronization with the display time axis.
【図1】 本発明の第1および第2の実施形態に係る画
像処理システムの構成例を示すブロック図である。FIG. 1 is a block diagram showing a configuration example of an image processing system according to first and second embodiments of the present invention.
【図2】 本発明の第1および第2の実施形態に係る画
像処理用のデータの配列を示す概略図である。FIG. 2 is a schematic diagram showing an array of image processing data according to the first and second embodiments of the present invention.
【図3】 本発明の第1の実施形態に係る画像処理装置
における表示フレームの合成例を示す図である。FIG. 3 is a diagram showing an example of combining display frames in the image processing apparatus according to the first embodiment of the present invention.
【図4】 本発明の第2の実施形態に係るカーナビゲー
ションシステムの構成例を示す図である。FIG. 4 is a diagram showing a configuration example of a car navigation system according to a second embodiment of the present invention.
【図5】 本発明の第2の実施形態に係るカーナビゲー
ション装置の構成例を示すブロック図である。FIG. 5 is a block diagram showing a configuration example of a car navigation device according to a second embodiment of the present invention.
【図6】 本発明の第2の実施形態に係るディジタルA
Vのデコードと描画の同期処理を説明するための図であ
る。FIG. 6 shows a digital A according to a second embodiment of the present invention.
It is a figure for demonstrating the synchronous process of V decoding and drawing.
【図7】 本発明の第2の実施形態に係る描画とAVデ
コードの同期処理を説明するためのフローチャート図で
ある。FIG. 7 is a flowchart diagram for explaining a synchronization process of drawing and AV decoding according to the second embodiment of the present invention.
【図8】 従来の画像処理システムの構成例を示すブロ
ック図でる。FIG. 8 is a block diagram showing a configuration example of a conventional image processing system.
【図9】 従来の画像処理用のデータのデータの配列を
示す概略図である。FIG. 9 is a schematic diagram showing a data array of conventional image processing data.
【図10】 従来の画像処理装置における表示フレーム
の合成例を示す図である。FIG. 10 is a diagram showing an example of combining display frames in a conventional image processing apparatus.
1 CPU(ストリーム出力部)
2 主記憶
3 LSI
4 ローカルメモリ(メモリ領域に対応する)
5 モニタ
6 システムバス
31 CPUインターフェース(インターフェース
部に対応する)
32 メモリインターフェース
33A 描画処理部(演算部に対応する)
33a 優先度レジスタ
34 ビデオデコード部(演算部に対応する)
35A 制御部
35a タイムスタンプ検出部
35b タイムスタンプ検出部
35c 優先度検出部
35d タイムカウンタ
36 表示出力部
60 描画部
50 描画制御部(演算部および制御部に対応す
る)
51 レンダリング部
4a DLおよびAV用メモリ
4b 表示用メモリ(メモリ領域に対応する)
60 描画部
61 AVストリームデータ(第2のストリームデ
ータ)
61A アクセスユニット
64 デコードバッファ
73a オーディオのタイムスタンプ(第2のタイム
スタンプ)
73v ビデオのタイムスタンプ(第2のタイムスタ
ンプ)
73d 描画のタイムスタンプ(第1のタイムスタン
プ)
22 DL(第1のストリームデータ)
22B 描画コマンド1 CPU (stream output unit) 2 main memory 3 LSI 4 local memory (corresponding to memory area) 5 monitor 6 system bus 31 CPU interface (corresponding to interface unit) 32 memory interface 33A drawing processing unit (corresponding to arithmetic unit) ) 33a Priority register 34 Video decoding unit (corresponding to arithmetic unit) 35A Control unit 35a Time stamp detection unit 35b Time stamp detection unit 35c Priority detection unit 35d Time counter 36 Display output unit 60 Drawing unit 50 Drawing control unit (Calculation) 51 rendering unit 4a DL and AV memory 4b display memory (corresponding to memory area) 60 drawing unit 61 AV stream data (second stream data) 61A access unit 64 decoding buffer 73a audio time stamp (second time stamp) 73v video time stamp (second time stamp) 73d drawing timestamp (first time stamp) 22 DL (first stream data) 22B drawing commands
───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B050 AA10 BA10 CA06 CA09 EA10 EA24 FA02 5C021 PA78 PA82 YB01 YB03 ZA03 5C082 CB01 DA22 MM08 ─────────────────────────────────────────────────── ─── Continued front page F-term (reference) 5B050 AA10 BA10 CA06 CA09 EA10 EA24 FA02 5C021 PA78 PA82 YB01 YB03 ZA03 5C082 CB01 DA22 MM08
Claims (10)
描画すべき複数のオブジェクトデータとを有する第1の
ストリームデータに対して、第1種演算処理を行ない、
その結果をメモリ領域に描画する演算部と、 第n番目の表示フレームを表示する時刻間隔を示す第n
タイムを表示出力同期信号に基づいて生成し、前記第n
タイムと前記第1のストリームデータの前記第1のタイ
ムスタンプとを比較し、その比較結果をもとに、前記メ
モリ領域への描画を前記第nタイムと同期させる制御部
とを備えることを特徴とする画像処理装置。1. A first-kind arithmetic processing is performed on first stream data having a first time stamp and a plurality of object data to be drawn in a display frame,
A calculation unit that draws the result in the memory area and an n-th time interval indicating the time interval for displaying the n-th display frame
A time is generated based on a display output synchronization signal,
A control unit that compares time with the first time stamp of the first stream data, and synchronizes drawing in the memory area with the nth time based on the comparison result. Image processing device.
る必要度を示す優先度が付加され、 前記演算部は、前記優先度に基づいて、前記第1種演算
処理を行なうことを特徴とする画像処理装置。2. The image processing apparatus according to claim 1, wherein the object data is added with a priority indicating the necessity of drawing in the memory area, and the arithmetic unit is configured to perform the operation based on the priority. An image processing apparatus, characterized by performing a first-type arithmetic processing.
レームにデコードすべきデータとを有する第2のストリ
ームデータに対して、第2種演算処理を行ない、その結
果を前記メモリ領域に設定し、 前記制御部は、さらに、前記第nタイムと前記第2のス
トリームデータの前記第2のタイムスタンプとを比較
し、その比較結果をもとに、前記設定を前記第nタイム
と同期させることを特徴とする画像処理装置。3. The image processing apparatus according to claim 1, wherein the arithmetic unit further includes a second type of second stream data having a second time stamp and data to be decoded in a display frame. Arithmetic processing is performed, the result is set in the memory area, and the control unit further compares the n-th time with the second time stamp of the second stream data, and also compares the comparison result. In addition, the image processing apparatus, wherein the setting is synchronized with the n-th time.
レームにデコードすべきデータとを有する第2のストリ
ームデータに対して、第2種演算処理を行ない、その結
果を前記メモリ領域に設定し、 前記制御部は、さらに、前記第nタイムと前記第2のス
トリームデータの前記第2のタイムスタンプとを比較
し、その比較結果をもとに、前記設定を前記第nタイム
と同期させることを特徴とする画像処理装置。4. The image processing apparatus according to claim 2, wherein the arithmetic unit is of a second type for the second stream data having a second time stamp and data to be decoded in the display frame. Arithmetic processing is performed, the result is set in the memory area, and the control unit further compares the n-th time with the second time stamp of the second stream data, and also compares the comparison result. In addition, the image processing apparatus, wherein the setting is synchronized with the n-th time.
れるまでの第1の時間間隔において、前記第nタイムに
処理すべき第2のストリームデータの第2種演算処理を
完了するように、前記演算部を制御し、 前記演算部は、 前記第1の時間間隔から、前記第nタイムに処理すべき
第2のストリームデータの第2種演算処理に要する第2
の時間間隔を差し引いた第3の時間間隔において、前記
第1のストリームデータの前記第1種演算処理を開始
し、 前記制御部は、 前記第3の時間間隔内に前記第1種演算処理が未完了で
ある場合、 前記第n+1タイム以降のタイムに処理すべき第1のス
トリームデータの第1種演算処理をスキップして、前記
第nタイムに処理すべき第1のストリームデータの第1
種演算処理の継続を前記演算部に対して命じることを特
徴とする画像処理装置。5. The image processing apparatus according to claim 3, wherein the control unit performs processing at the nth time in the first time interval from the nth time to the (n + 1) th time. The arithmetic unit is controlled so as to complete the second type arithmetic processing of the second stream data, and the arithmetic unit performs the second stream data of the second stream data to be processed at the n-th time from the first time interval. Second required for second-type arithmetic processing
In a third time interval after subtracting the time interval of, the first type arithmetic processing of the first stream data is started, and the control unit is configured to perform the first type arithmetic processing within the third time interval. If not completed, the first type arithmetic processing of the first stream data to be processed at the time of the (n + 1) th time and thereafter is skipped, and the first stream data of the first stream data to be processed at the nth time is skipped.
An image processing apparatus, characterized in that the operation unit is instructed to continue the seed operation process.
れるまでの第1の時間間隔において、前記第nタイムに
処理すべき第2のストリームデータの第2種演算処理を
完了するように、前記演算部を制御し、 前記演算部は、 前記第1の時間間隔から、前記第nタイムに処理すべき
第2のストリームデータの第2種演算処理に要する第2
の時間間隔を差し引いた第3の時間間隔において、前記
第1のストリームデータの前記第1種演算処理が開始
し、 前記制御部は、 前記第3の時間間隔内に前記第1種演算処理が完了する
場合、 前記第1種演算処理の完了時から前記第n+1タイムに
インクリメントされるまでの間、前記第n+1タイムに
処理すべき前記第1のストリームデータの前記第1種演
算処理の中止を前記演算部に対して命じることを特徴と
する画像処理装置。6. The image processing apparatus according to claim 3, wherein the controller is configured to perform processing at the nth time in a first time interval from the nth time to the (n + 1) th time. The arithmetic unit is controlled so as to complete the second type arithmetic processing of the second stream data, and the arithmetic unit performs the second stream data of the second stream data to be processed at the n-th time from the first time interval. Second required for second-type arithmetic processing
In a third time interval after subtracting the time interval of, the first type arithmetic processing of the first stream data is started, and the control unit is configured to perform the first type arithmetic processing within the third time interval. When completed, the first type arithmetic processing of the first stream data to be processed at the (n + 1) th time is stopped from the completion of the first type arithmetic processing to the increment to the (n + 1) th time. An image processing apparatus for instructing the arithmetic unit.
れるまでの第1の時間間隔において、前記第nタイムに
処理すべき第2のストリームデータの第2種演算処理を
完了するように、前記演算部を制御し、 前記演算部は、 所定の優先度の値を保持する優先度レジスタを備え、 前記第1の時間間隔から、前記第nタイムに処理すべき
第2のストリームデータの第2種演算処理に要する第2
の時間間隔を差し引いた第3の時間間隔において、前記
第1のストリームデータの前記第1種演算処理を開始
し、 前記第n+1タイムにインクリメントされた時に、前記
第1種演算処理が完了しているオブジェクトデータの優
先度の値に、前記優先度レジスタの値を更新し、 前記第n+1タイム以降に処理すべき第1のストリーム
データの第1種演算処理は、前記優先度レジスタが保持
する値以上の優先度の値が付加されたオブジェクトデー
タを演算し、前記優先度レジスタが保持する前記優先度
の値よりも低い値が付加された前記オブジェクトデータ
を演算しないことを特徴とする画像処理装置。7. The image processing apparatus according to claim 4, wherein the controller is configured to perform processing at the nth time in a first time interval from the nth time to the (n + 1) th time. The arithmetic unit is controlled so as to complete the second type arithmetic processing of the stream data of No. 2, and the arithmetic unit includes a priority register that holds a value of a predetermined priority, and from the first time interval. , The second required for the second type arithmetic processing of the second stream data to be processed at the n-th time.
In the third time interval after subtracting the time interval of, the first type arithmetic processing of the first stream data is started, and when the first type arithmetic processing is incremented to the (n + 1) th time, the first type arithmetic processing is completed. The value of the priority register is updated to the value of the priority of the existing object data, and the first-class arithmetic processing of the first stream data to be processed after the (n + 1) th time is the value held by the priority register. An image processing apparatus, which calculates object data to which the above priority value is added, and does not calculate the object data to which a value lower than the priority value held in the priority register is added. .
れるまでの第1の時間間隔において、前記第nタイムに
処理すべき第2のストリームデータの第2種演算処理を
完了するように、前記演算部を制御し、 前記演算部は、 所定の優先度の値を保持する優先度レジスタを備え、 前記第1の時間間隔から、前記第nタイムに処理すべき
第2のストリームデータの第2種演算処理に要する第2
の時間間隔を差し引いた第3の時間間隔において、前記
第1のストリームデータの前記第1種演算処理を開始
し、 前記第1種演算処理は、前記優先度レジスタが保持する
値以上の優先度の値が付加された前記オブジェクトデー
タを演算し、 前記第1種演算処理が、前記第n+1タイムにインクリ
メントされるまでの間に、第n−1タイムに前記優先度
レジスタが保持する優先度に対応するオブジェクトデー
タの前記第1種演算処理を完了する場合、 前記第n+1タイムにインクリメントされるまでの間、
前記第n−1タイム以前に前記優先度レジスタが保持す
る前記優先度の値を考慮して、前記第n−1タイムに前
記優先度レジスタが保持する前記優先度の値よりも低い
値を有する優先度に対応するオブジェクトデータを追加
演算するとともに、前記第n+1タイムにインクリメン
トされた時に前記第1種演算処理が完了しているオブジ
ェクトデータの優先度の値に、前記優先度レジスタの値
を更新することを特徴とする画像処理装置。8. The image processing apparatus according to claim 4, wherein the controller is configured to perform processing at the nth time in a first time interval from the nth time to the (n + 1) th time. The arithmetic unit is controlled so as to complete the second type arithmetic processing of the stream data of No. 2, and the arithmetic unit includes a priority register that holds a value of a predetermined priority, and from the first time interval. , The second required for the second type arithmetic processing of the second stream data to be processed at the n-th time.
At a third time interval from which the first time interval is subtracted, the first type arithmetic processing of the first stream data is started, and the first type arithmetic processing has a priority equal to or higher than a value held by the priority register. The object data to which the value of is added is calculated, and the first type calculation processing is performed on the priority held by the priority register at the (n-1) th time until it is incremented at the (n + 1) th time. When completing the first type operation processing of the corresponding object data, until the n + 1 time is incremented,
In consideration of the priority value held by the priority register before the (n-1) th time, the priority register has a value lower than the priority value held by the priority register at the (n-1) th time. The object data corresponding to the priority is additionally calculated, and the value of the priority register is updated to the priority value of the object data for which the first type calculation processing is completed when incremented in the (n + 1) th time. An image processing device characterized by:
された場合、前記優先度レジスタの値を、前記第1のス
トリームデータを生成出力するストリームデータ出力部
に通知し、 前記ストリームデータ出力部は、前記第1のストリーム
データの中から、前記優先度レジスタが保持する更新さ
れた値以上の前記優先度の値が付加された前記オブジェ
クトデータを選択して出力することを特徴とする画像処
理装置。9. The image processing apparatus according to claim 8, wherein the control unit generates a value of the priority register to generate the first stream data when a value held by the priority register is updated. The stream data output unit to be output is notified, and the stream data output unit adds, from the first stream data, the priority value greater than or equal to the updated value held by the priority register. An image processing apparatus which selects and outputs object data.
て、 前記第1のストリームデータを入力し、前記優先度レジ
スタが保持する更新された値以上の優先度の値が付加さ
れたオブジェクトデータを選択して、前記第1のストリ
ームデータを再構成し、前記再構成した前記第1のスト
リームデータをバッファに保持させるインターフェース
部をさらに備えることを特徴とする画像処理装置。10. The image processing apparatus according to claim 8, wherein the first stream data is input, and object data to which a priority value greater than or equal to an updated value held by the priority register is added is selected. The image processing apparatus further includes an interface unit that reconstructs the first stream data and holds the reconstructed first stream data in a buffer.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001240464A JP2003051964A (en) | 2001-08-08 | 2001-08-08 | Image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001240464A JP2003051964A (en) | 2001-08-08 | 2001-08-08 | Image processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2003051964A true JP2003051964A (en) | 2003-02-21 |
Family
ID=19071073
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001240464A Pending JP2003051964A (en) | 2001-08-08 | 2001-08-08 | Image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2003051964A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2008105092A1 (en) * | 2007-02-28 | 2008-09-04 | Panasonic Corporation | Graphics plotting device and graphics plotting method |
| WO2010134242A1 (en) * | 2009-05-22 | 2010-11-25 | 株式会社日立製作所 | Data processing system that performs reverse reproduction in stream data processing |
-
2001
- 2001-08-08 JP JP2001240464A patent/JP2003051964A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2008105092A1 (en) * | 2007-02-28 | 2008-09-04 | Panasonic Corporation | Graphics plotting device and graphics plotting method |
| WO2010134242A1 (en) * | 2009-05-22 | 2010-11-25 | 株式会社日立製作所 | Data processing system that performs reverse reproduction in stream data processing |
| JP2010272022A (en) * | 2009-05-22 | 2010-12-02 | Hitachi Ltd | Data processing system for reverse reproduction in stream data processing |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI258309B (en) | Video data processing apparatus | |
| US8212830B2 (en) | Image converting apparatus and image converting method | |
| US6441813B1 (en) | Computer system, and video decoder used in the system | |
| KR100862630B1 (en) | System and method for synchronizing video frames and audio frames | |
| JP2011133649A (en) | Image display control apparatus | |
| CN103248941A (en) | Multi-channel video source synchronous display method and device | |
| US10412320B1 (en) | Method and system for switching display from first video source to second video source | |
| US6249640B1 (en) | System and method for rapidly decoding sub-pictures in a DVD player | |
| JP2000322039A (en) | Display device, control device, and multi-screen display system | |
| US6587635B1 (en) | Subpicture master control | |
| US6718119B1 (en) | Video/audio decoding apparatus and method | |
| JP2003536285A (en) | Method and apparatus for down conversion of video data | |
| JP2001523848A (en) | System and method for two-tap / 3-tap flicker filtering | |
| JPH11213558A (en) | Audio data processing apparatus, computer system, and audio data processing method | |
| JP2003051964A (en) | Image processing device | |
| US20020194354A1 (en) | Displaying image data | |
| JP2012222399A (en) | Video playback system, video playback method, and video playback device and program | |
| US6741794B1 (en) | System and method for flexibly blending multiple image planes in a video device | |
| WO2001045411A1 (en) | System and method for delivering interactive audio/visual product by server/client | |
| JP2005086592A (en) | Movie display control system | |
| JP2006098935A (en) | Video graphics display | |
| US20100097521A1 (en) | Video-signal processing apparatus, video-signal processing method, video-signal processing computer program, and video-signal control circuit | |
| CN113014964A (en) | Method, device and system for generating spliced wall echo code stream and readable storage medium | |
| JP3880221B2 (en) | GAME DEVICE AND GAME SYSTEM | |
| JP2002262238A (en) | Video playback device, video distribution device, and recording medium |