JPH09261647A - Moving image reproduction control method and moving image reproduction controller - Google Patents

Moving image reproduction control method and moving image reproduction controller

Info

Publication number
JPH09261647A
JPH09261647A JP6396196A JP6396196A JPH09261647A JP H09261647 A JPH09261647 A JP H09261647A JP 6396196 A JP6396196 A JP 6396196A JP 6396196 A JP6396196 A JP 6396196A JP H09261647 A JPH09261647 A JP H09261647A
Authority
JP
Japan
Prior art keywords
decoding
frame
unit
transferred
transfer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6396196A
Other languages
Japanese (ja)
Inventor
Masamitsu Wada
匡充 和田
Hideyo Tsuruta
英世 鶴田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP6396196A priority Critical patent/JPH09261647A/en
Publication of JPH09261647A publication Critical patent/JPH09261647A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a moving image reproduction control method and a moving image reproduction device in which decoding processing is executed with high efficiency at high speed and a succeeding reproduction is not delayed even on the occurrence of delayed decoding. SOLUTION: An image decoding section 101 and an image transfer section 104 are operated independently and the image transfer section 104 increases a time-out counter 107 by 1 every time the section 104 detects delayed decoding in order to reduce the stop time of the decoding processing in the image decoding section 101. Every time the image decoding section 101 recovers one frame of decoding delay, the section 101 decrements the time-out counter 107 by 1. According to the control as above, synchronization is taken and processing efficiency is improved and real time display is attained.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、圧縮された動画デ
ータを伸長再生するための動画再生制御方法およびその
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture reproduction control method and apparatus for expanding and reproducing compressed moving picture data.

【0002】[0002]

【従来の技術】近年、動画データの圧縮技術の進歩によ
り、パーソナルコンピュータやゲーム機器において動画
データの取り扱いが可能となっている。動画データの圧
縮符号化・復号化は、以前は専用ハードウェアを必要と
していたが半導体技術の進歩によりソフトウェアでも実
現されつつある。
2. Description of the Related Art In recent years, moving image data can be handled in personal computers and game machines due to the progress of moving image data compression technology. The compression encoding / decoding of moving image data used to require dedicated hardware before, but is being realized by software due to the progress of semiconductor technology.

【0003】代表的な動画圧縮符号化技術として、MPEG
1ビデオ(国際標準ISO/IEC 11172-2)がある。MPEG1
ビデオでは3つのピクチャータイプの画像データ(Iピ
クチャー、Pピクチャー、Bピクチャー)が定義されてい
る。Iピクチャーは、Intra符号化画像の略称で、フレー
ム間予測を使わずに1枚のフレームのみで圧縮された画
像である。このIピクチャーの復号はそれ自身の圧縮画
像データのみ行われる。Pピクチャーは、予測(Predict
ive)符号化画像の略称で、先行するIピクチャー又はP
ピクチャーに対してフレーム間予測を行って圧縮された
画像である。このPピクチャーの復号は、それ以前に復
号したIピクチャー又はPピクチャーを復号した1フレー
ムが必要になる。Bピクチャーは、双方向予測(Bidirec
tionally Predictive)符号化画像の略称で、先行するI
又はPピクチャーと後行するI又はPピクチャーとを用い
て双方向に予測を行って圧縮された画像である。このB
ピクチャーの復号は、それ以前に復号したIピクチャー
もしくはPピクチャーの復号後の2つの画像データが復
号に必要になる。
MPEG is a typical moving picture compression coding technique.
There is one video (international standard ISO / IEC 11172-2). MPEG1
In video, three picture type image data (I picture, P picture, B picture) are defined. The I picture is an abbreviation for Intra coded image, and is an image compressed with only one frame without using inter-frame prediction. Decoding of this I picture is performed only on its own compressed image data. P picture is
ive) Abbreviation of coded image, preceding I picture or P
It is an image compressed by performing inter-frame prediction on a picture. The decoding of this P picture requires one frame which is the decoded I picture or P picture decoded before that. B picture is bidirectional prediction (Bidirec
abbreviation for coded image, preceded by I
Alternatively, it is an image compressed by performing bidirectional prediction using a P picture and a subsequent I or P picture. This B
Decoding of a picture requires two image data after decoding of a previously decoded I picture or P picture.

【0004】圧縮動画データ内には、これらのピクチャ
ータイプが画像の性質により選択されて符号化されるた
め、実際の表示順序と圧縮画像データ内の画像の順序と
は異なっている。図6に、表示順序と復号順序とを表し
た説明図を示す。同図では表示順序がI1,B1,B2,P1,B3,B
4,・・・という場合を例示している。この場合、復号順
序は、図示のようにI1,P1,B1,B2,P2,B3,B4・・・という
順序になる。
Since these picture types are selected and coded in the compressed moving image data according to the nature of the image, the actual display order and the order of the images in the compressed image data are different. FIG. 6 is an explanatory diagram showing the display order and the decoding order. In the figure, the display order is I1, B1, B2, P1, B3, B
The case of 4, ... Is illustrated. In this case, the decoding order is I1, P1, B1, B2, P2, B3, B4 ... As illustrated.

【0005】図7は、第1の従来例のソフトウェアによ
るMPEG1ビデオの動画再生制御装置を示す。表示部50
1は、後述の画像転送部502より転送された画像デー
タを可視情報として出力する。画像転送部502は、タ
イマー504からの通知を受けた時点、あるいは通知を
既に受けていた場合には復号が完了した時点で前記画像
データを前記表示部501に転送する。画像復号部50
3は、圧縮動画データを復号し、前記画像データを生成
する。タイマー504は、指定の時間を前記画像転送部
502に通知する。フレームバッファ505は、前記画
像復号部503が生成した前記画像データを蓄える領域
である。
FIG. 7 shows a moving picture reproduction control apparatus for MPEG1 video by means of the first conventional software. Display unit 50
1 outputs the image data transferred from the image transfer unit 502, which will be described later, as visible information. The image transfer unit 502 transfers the image data to the display unit 501 at the time of receiving the notification from the timer 504, or at the time of completing the decoding if the notification has already been received. Image decoding unit 50
3 decodes the compressed moving image data to generate the image data. The timer 504 notifies the image transfer unit 502 of the designated time. The frame buffer 505 is an area for storing the image data generated by the image decoding unit 503.

【0006】第1の従来例の動作を、図8に示すフロー
チャートを参照しながら以下に簡単に説明する。画像復
号部503は1画面分の圧縮動画データを復号し生成し
た画像データをフレームバッファ505に蓄える(ステ
ップ601)。画像復号部503は、画像転送部502
が表示部501へ転送する画像データを選択する。次に
転送する画像データがない場合は、ステップ601へ戻
る(ステップ602)。次に転送する画像データがある
場合は、画像復号部503は、画像転送部502を呼び
出す(ステップ603)。呼び出された画像転送部50
2は、画像データを転送する時刻が過ぎているか判断す
る。その時刻が過ぎている場合はステップ606へ進む
(ステップ604)。その時刻が過ぎていない場合、画
像転送部502は、画像データ転送時刻になったという
通知をタイマー504から受けるまで待つ(ステップ6
05)。次いで画像転送部502は表示部501を呼び
出し、画像データを転送する(ステップ606)。表示
部501は、転送された画像データを可視情報として出
力する(ステップ607)。さらに全ての動画圧縮デー
タの復号が終了したか判定する。終了していなけれはス
テップ601へ戻る(ステップ608)。
The operation of the first conventional example will be briefly described below with reference to the flowchart shown in FIG. The image decoding unit 503 stores the image data generated by decoding the compressed moving image data for one screen in the frame buffer 505 (step 601). The image decoding unit 503 includes an image transfer unit 502.
Selects the image data to be transferred to the display unit 501. If there is no image data to be transferred next, the process returns to step 601 (step 602). If there is image data to be transferred next, the image decoding unit 503 calls the image transfer unit 502 (step 603). The called image transfer unit 50
2 determines whether the time to transfer the image data has passed. If the time has passed, the process proceeds to step 606 (step 604). If the time has not passed, the image transfer unit 502 waits until the timer 504 receives a notification that the image data transfer time has come (step 6).
05). Next, the image transfer unit 502 calls the display unit 501 and transfers the image data (step 606). The display unit 501 outputs the transferred image data as visible information (step 607). Furthermore, it is determined whether or not the decoding of all moving image compressed data has been completed. If it has not been completed, the process returns to step 601 (step 608).

【0007】次に、第2の従来例としてのMPEG1ビデオ
の動画再生制御装置は、第1の従来例に示した図7とほ
ぼ同様であるが、ハードウェア処理である点が異なる。
また、第2の従来例における画像転送部502は、タイ
マー504からの通知を受けた時点で前記画像データを
表示部に転送する。第2の従来例におけるフレームバッ
ファ505は、前記画像復号部503により復号された
画像データをピクチャータイプ別に格納する3つの領域
0〜2を有する。領域0はIピクチャー若しくはPピクチ
ャー、領域1はIピクチャー若しくはPピクチャー、領域
2はBピクチャーを格納する。領域0と1は、Bピクチャ
ー復号時には参照画像として利用される。
Next, a moving picture reproduction control apparatus for MPEG1 video as a second conventional example is almost the same as that shown in FIG. 7 shown in the first conventional example, except that it is a hardware process.
Further, the image transfer unit 502 in the second conventional example transfers the image data to the display unit when the notification from the timer 504 is received. The frame buffer 505 in the second conventional example has three areas 0 to 2 for storing the image data decoded by the image decoding unit 503 for each picture type. Area 0 stores an I picture or P picture, area 1 stores an I picture or P picture, and area 2 stores a B picture. Areas 0 and 1 are used as reference images during B picture decoding.

【0008】第2の従来例では、圧縮画像データが I,
P,P,・・・の順に符号化蓄された圧縮動画データを復号
する際の動作を説明する。まず、Iピクチャーを復号す
るための領域0が選択され、第1番目のIピクチャーが
復号される。次に、2番目のPピクチャーを復号するた
め領域1が選択され、2番目の圧縮画像データが復号さ
れる。さらに、3番目のPピクチャーを復号するため領
域を選択する。このとき、すでにフレームバッファ50
5内の領域0の画像データが転送されていれば、フレー
ムバッファ505内の領域0を確保し、3番目の圧縮画
像データを復号する。転送されていなければ、フレーム
バッファ505内の領域0の画像データが転送されるの
を待って、その転送後に復号する。
In the second conventional example, the compressed image data is I,
The operation when decoding the compressed moving image data encoded and stored in the order of P, P, ... will be described. First, the area 0 for decoding the I picture is selected, and the first I picture is decoded. Next, area 1 is selected to decode the second P picture, and the second compressed image data is decoded. Further, an area is selected for decoding the third P picture. At this time, the frame buffer 50
If the image data of the area 0 in 5 has been transferred, the area 0 in the frame buffer 505 is secured and the third compressed image data is decoded. If it has not been transferred, it waits for the image data of the area 0 in the frame buffer 505 to be transferred, and then decodes after the transfer.

【0009】ところで、MPEGの圧縮画像データは、
動画の内容によってフレーム毎に復号の処理量が異なっ
ている。例えば相関性(類似度)の高いフレーム間で予
測符号化(Pピクチャー又はIピクチャーの符号化)がな
された場合には、符号量が少ないので復号処理量も少な
いが、逆に相関性の低いフレーム間で予測符合化がなさ
れた場合には、符号量が多くなり復号処理も長くかかっ
てしまう。マイクロプロセッサの高性能化に伴ってソフ
トウェア処理による復号が可能になってきているが、上
記のように符号量の多いピクチャーの場合には復号遅れ
が生じる可能性を内在している。
By the way, the compressed image data of MPEG is
The amount of decoding processing differs for each frame depending on the content of the moving image. For example, when predictive coding (encoding of P picture or I picture) is performed between frames with high correlation (similarity), the amount of code is small, so the amount of decoding processing is small, but on the contrary, the correlation is low. When predictive coding is performed between frames, the code amount increases and the decoding process also takes a long time. Decoding by software processing has become possible as the performance of microprocessors has improved, but there is an inherent possibility that decoding delay will occur in the case of a picture with a large code amount as described above.

【0010】[0010]

【発明が解決しようとする課題】上記第1の従来例で
は、次に表示すべき画像データの復号が完了した後、そ
の画像データの転送が開始されるのを待っている(ステ
ップ604、605)ので、アイドル時間が発生すると
いう問題があった。その結果、復号遅れが発生しがちで
あり、十分高速な処理速度が得られていないという問題
があった。このような復号遅れが生じると、その画像の
表示が遅れてしまい、さらに後続する画像の表示まで本
来の表示時刻からずれてしまい、動画の実時間表示がで
きないという問題があった。
In the first conventional example, after the decoding of the image data to be displayed next is completed, the transfer of the image data is awaited (steps 604, 605). ), So there was a problem that idle time occurs. As a result, there is a problem that a decoding delay tends to occur, and a sufficiently high processing speed cannot be obtained. When such a decoding delay occurs, the display of the image is delayed, and the display of the subsequent image is also deviated from the original display time, which causes a problem that the moving image cannot be displayed in real time.

【0011】また、第2の従来例では、Pピクチャー又
はIピクチャーを復号すべき場合には、バッファ内の領
域2が未使用であるにも拘らず領域0又は1が使用可能
になるまで復号処理を停止しているため、処理の高速化
が十分に図られていないという問題があった。上記の課
題に鑑み本発明は、復号処理を効率良く行い高速化を図
るとともに、復号遅れが発生した場合でもそれ以後の再
生を遅らせない動画再生制御方法および動画再生装置を
提供することを目的とする。
Further, in the second conventional example, when a P picture or an I picture is to be decoded, it is decoded until the area 0 or 1 becomes usable even though the area 2 in the buffer is unused. Since the processing is stopped, there is a problem that the processing speed is not sufficiently increased. In view of the above problems, it is an object of the present invention to provide a moving image reproduction control method and a moving image reproduction device that efficiently perform the decoding process to increase the speed and do not delay the subsequent reproduction even if a decoding delay occurs. To do.

【0012】[0012]

【課題を解決するための手段】上記の課題を解決するた
め本発明の動画再生方法は、予測符号化による動画圧縮
データをフレーム単位で復号してバッファに格納する復
号処理と、バッファ内の復号フレームを所定周期で表示
部へ転送する転送処理とからなる動画再生制御方法であ
って、前記転送処理は、前記所定周期毎に前記復号処理
を中断させるステップと、バッファ中に転送すべきフレ
ームがあるか否かを判定するステップと、転送すべきフ
レームが有ると判定された場合には、当該フレームを前
記表示部へ転送するステップと、転送すべきフレームが
無いと判定された場合には、復号遅れが発生したことを
示す情報を所定記憶部に設定する設定ステップと、復号
処理を再開させるステップとを有し、前記復号処理は、
動画圧縮データにおいて復号すべきフレームを決定する
ステップと、決定されたフレームを復号するステップ
と、前記記憶部を参照して復号遅れが発生したか否かを
判定するステップと、復号遅れがあったと判定された場
合にバッファ中の1フレームを無効にし、前記情報を記
憶部から消去するステップと、復号遅れがないと判定さ
れた場合、および消去がなされた場合に前記決定ステッ
プを起動するステップとを有する さらに、前記転送処理における設定ステップは、転送す
べきフレームが無いと判定された場合には所定記憶部と
してのカウンタに1加算し、前記復号処理における判定
ステップは、前記カウンタが1以上か否かを判定し、前
記消去ステップは、前記カウンタを1減算することによ
り、1フレーム分の復号遅れが発生したことを示す情報
を消去するように構成してもよい。
In order to solve the above-mentioned problems, a moving picture reproducing method of the present invention comprises a decoding process for decoding moving picture compressed data by predictive coding in frame units and storing in a buffer, and a decoding process in the buffer. A moving image reproduction control method comprising a transfer process of transferring a frame to a display unit at a predetermined cycle, wherein the transfer process includes a step of interrupting the decoding process at every predetermined cycle, and a frame to be transferred in a buffer. If it is determined that there is a frame to be transferred, a step of determining whether there is a frame to be transferred, a step of transferring the frame to the display unit, and a case where it is determined that there is no frame to be transferred, There is a setting step of setting information indicating that a decoding delay has occurred in a predetermined storage unit, and a step of restarting the decoding process, and the decoding process comprises:
Determining a frame to be decoded in the compressed video data, decoding the determined frame, determining whether or not a decoding delay has occurred by referring to the storage unit, and determining that there is a decoding delay. A step of invalidating one frame in the buffer when it is determined, and erasing the information from the storage section, and a step of activating the deciding step when it is determined that there is no decoding delay and when the erasure is performed. Further, the setting step in the transfer processing increments a counter as a predetermined storage unit by 1 when it is determined that there is no frame to be transferred, and the determination step in the decoding processing is whether the counter is 1 or more. It is determined whether or not there is a decoding delay of one frame by subtracting 1 from the counter in the erasing step. You may comprise so that the information which shows and may be erased.

【0013】また、上記課題を解決する動画再生制御装
置は、予測符号化による動画圧縮データをフレーム単位
で復号してバッファに格納する復号処理部と、バッファ
内の復号フレームを所定周期で表示部へ転送する転送処
理部とからなる動画再生制御装置であって、前記転送処
理部は、前記所定周期毎に前記バッファ中に転送すべき
フレームがあるか否かを判定する判定手段と、転送すべ
きフレームが有ると判定された場合には、当該フレーム
を前記表示部へ転送する転送手段と、転送すべきフレー
ムが無いと判定された場合には、復号遅れが発生したこ
とを示す情報を所定の記憶部に設定する設定手段とを備
え、前記復号処理部は、動画圧縮データにおいて復号す
べきフレームを決定する決定手段と、決定されたフレー
ムを復号する復号手段と、前記記憶部を参照して復号遅
れが発生したか否かを判定する判定手段と、復号遅れが
あったと判定された場合にバッファ中の1フレームを無
効にし、前記記憶部内の情報を復号後れを取り戻したこ
とを示す情報に更新する更新手段と、復号遅れがないと
判定された場合、および消去がなされた場合に前記決定
手段を起動する制御手段とを備ている。
Further, a moving picture reproduction control apparatus for solving the above-mentioned problem is a decoding processing section for decoding moving picture compressed data by predictive coding in frame units and storing it in a buffer, and a decoding section for displaying decoded frames in the buffer at a predetermined cycle. And a transfer processing unit for transferring to the transfer processing unit, wherein the transfer processing unit transfers the transfer processing unit and a determination unit that determines whether or not there is a frame to be transferred in the buffer at each predetermined cycle. If it is determined that there is a frame to be transferred, transfer means that transfers the frame to the display unit, and if it is determined that there is no frame to be transferred, information indicating that a decoding delay has occurred is specified. And a setting unit configured to set the storage unit of the decoding unit, and the decoding processing unit determines a frame to be decoded in the compressed video data, and a decoding unit to decode the determined frame. And a determination unit that determines whether or not a decoding delay has occurred by referring to the storage unit, invalidates one frame in the buffer when it is determined that the decoding delay has occurred, and stores the information in the storage unit. There is provided updating means for updating the information indicating that the delay in decoding has been regained, and control means for activating the deciding means when it is determined that there is no decoding delay and when erasure is made.

【0014】さらに、前記記憶部はカウンタであり、転
送処理部内の前記設定手段は、転送すべきフレームが無
いと判定された場合に前記カウンタを1加算し、復号処
理部内の前記判定手段は、前記カウンタが1以上か否か
を判定し、復号処理部内の前記更新手段は、1フレーム
を無効にしたとき前記カウンタを1減算するように構成
してもよい。
Further, the storage unit is a counter, the setting means in the transfer processing unit increments the counter by 1 when it is determined that there is no frame to be transferred, and the determination means in the decoding processing unit, The updating unit in the decoding processing unit may determine whether or not the counter is 1 or more, and subtract 1 from the counter when one frame is invalidated.

【0015】また、前記バッファは、復号フレームを保
持する少なくとも4つの領域を有し、前記動画再生制御
装置は、さらに、格納領域内の復号フレームが表示手段
に転送済みか否かを示す転送フラグを領域に対応させて
保持する転送フラグ保持手段と、領域内の復号フレーム
が復号処理に不要か否かを示す不要フラグを領域に対応
させて保持する不要フラグ保持手段と、次の転送時刻に
転送すべき復号フレームを保持する領域を指すポインタ
を保持するポインタ保持手段とを備え、前記転送処理部
は、ポインタが指す領域が未転送であれば復号フレーム
を表示部に転送して転送フラグを転送済みにセットし、
ポインタが指す領域が転送済であれば前記カウンタを1
加算し、前記複号処理部は、フレームの複号完了後ポイ
ンタを更新し、転送フラグ及び不要フラグに基づいて新
たなフレームの格納先領域の決定及び両フラグの更新を
行うように構成してよい。
Further, the buffer has at least four areas for holding decoded frames, and the moving picture reproduction control apparatus further has a transfer flag indicating whether or not the decoded frames in the storage area have been transferred to the display means. , A transfer flag holding means for holding each of the areas in correspondence with an area, an unnecessary flag holding means for holding an unnecessary flag indicating whether or not a decoded frame in the area is unnecessary for decoding processing, and a next transfer time. And a pointer holding unit that holds a pointer that points to an area that holds a decoded frame to be transferred. If the area pointed to by the pointer has not been transferred, the transfer processing section transfers the decoded frame to the display section and sets a transfer flag. Set it to transferred
If the area pointed to by the pointer has already been transferred, the counter is set to 1
In addition, the decoding processing unit is configured to update the pointer after the decoding of the frame is completed, determine the storage destination area of a new frame based on the transfer flag and unnecessary flag, and update both flags. Good.

【0016】[0016]

【発明の実施の形態】以下、本発明の動画再生制御装置
の実施の一形態を図面を用いて説明する。図1は、本実
施形態におけるMPEG1ビデオの動画再生制御装置を機能
的に分割した構成図である。動画再生制御装置は、画像
復号部101、フレームバッファ102、タイマー10
3、画像転送部104、表示部105、識別子保持部1
06、タイムアウトカウンタ107、転送フラグ保持部
108、不要フラグ保持部109から構成される。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of a moving picture reproduction control apparatus of the present invention will be described below with reference to the drawings. FIG. 1 is a functional block diagram of a moving picture reproduction control device for MPEG1 video according to the present embodiment. The moving image reproduction control device includes an image decoding unit 101, a frame buffer 102, and a timer 10.
3, image transfer unit 104, display unit 105, identifier holding unit 1
06, a timeout counter 107, a transfer flag holding unit 108, and an unnecessary flag holding unit 109.

【0017】画像復号部101は、1画面分の圧縮動画
データを復号し、復号された画像データをフレームバッ
ファ102へ蓄えるとともに識別子保持部106に転送
すべき画像及びその順序を示す情報を設定する。復号処
理に際して、画像復号部101は、復号遅れを感知した
場合(タイムアウトカウンタ107が1以上の場合)
に、復号遅れを取り戻すため識別子保持部106に設定
する転送すべき画像を飛ばす処理を行う。
The image decoding unit 101 decodes compressed moving image data for one screen, stores the decoded image data in the frame buffer 102, and sets information to be transferred to the identifier holding unit 106 and information indicating the order thereof. . In the decoding process, the image decoding unit 101 detects a decoding delay (when the timeout counter 107 is 1 or more).
In order to recover the decoding delay, the image to be transferred set in the identifier holding unit 106 is skipped.

【0018】フレームバッファ102は、4フレーム分
の容量をもち(4つの領域の識別子を0から3とす
る)、復号された画像データおよび画像復号部101が
復号処理中の画像データを格納する。タイマー103
は、約1/30秒の周期でタイムアウトを発生し、タイムア
ウト毎に画像転送部104を起動する。
The frame buffer 102 has a capacity of 4 frames (the identifiers of the four areas are 0 to 3), and stores the decoded image data and the image data being decoded by the image decoding unit 101. Timer 103
Causes a timeout at a cycle of about 1/30 second, and activates the image transfer unit 104 at each timeout.

【0019】画像転送部104は、タイマー103によ
り周期的に起動され、識別子保持部106の内容に基づ
いてフレームバッファ102内の画像データを表示部1
05に転送する。より具体的には、周期的に起動される
転送時刻において、転送すべき画像データがあれば表示
部105に転送するが、転送すべき画像データがなけれ
ばその転送時刻における転送をしないでタイムアウトカ
ウンタ107を1加算する。ここでタイムアウトカウン
タを1加算するのは、復号処理の遅れが発生しているこ
とを画像復号部101に通知するためである。
The image transfer unit 104 is periodically activated by the timer 103, and the image data in the frame buffer 102 is displayed on the display unit 1 based on the contents of the identifier holding unit 106.
Transfer to 05. More specifically, if there is image data to be transferred at the periodically activated transfer time, it is transferred to the display unit 105, but if there is no image data to be transferred, the transfer at that transfer time is skipped and a timeout counter 107 is incremented by 1. The reason why the timeout counter is incremented by 1 here is to notify the image decoding unit 101 that a delay in the decoding process has occurred.

【0020】表示部105は、画像転送部104より転
送された画像データを可視情報として表示するCRT、
LCD等のディスプレイ装置である。識別子保持部10
6は、フレームバッファ102において転送すべき画像
データが格納されている前記領域の識別子を、転送すべ
き順序を付けて保持する。保持内容は、主として画像復
号部101によって設定及び更新される。図2(a)〜
(c)は、フレームバッファ102の状態と、それに対
応する識別子保持部106の保持内容とを示す説明図で
ある。同図のように識別子保持部106は、4つの識別
子セット(識別子とポインタのセット)と読み出しポイ
ンタと書き込みポインタとを有する。読み出しポインタ
及び書き込みポインタは、常に何れかの識別子セットを
指す。
The display unit 105 is a CRT which displays the image data transferred from the image transfer unit 104 as visible information,
A display device such as an LCD. Identifier holding unit 10
Reference numeral 6 holds the identifier of the area in the frame buffer 102 in which the image data to be transferred is stored, in order of transfer. The held contents are set and updated mainly by the image decoding unit 101. FIG.
(C) is an explanatory view showing the state of the frame buffer 102 and the contents held in the identifier holding unit 106 corresponding thereto. As shown in the figure, the identifier holding unit 106 has four identifier sets (a set of identifiers and pointers), a read pointer and a write pointer. The read pointer and the write pointer always point to either set of identifiers.

【0021】ここで、識別子セットは、転送すべき復号
後の画像データの格納領域の識別子とその次順位の識別
子を指すポインタを表す。このポインタにより全識別子
セットはループ上に連結されている。読み出しポインタ
は、転送中又は次の転送時刻から転送すべき領域の識別
子を持つ識別子セットを指す。読み出しポインタが指す
識別子セットの識別子が無効(null)であるときは転送
すべき領域が存在しないことを表す。
Here, the identifier set represents a pointer indicating the identifier of the storage area of the decoded image data to be transferred and the identifier of the next rank. The entire identifier set is linked on the loop by this pointer. The read pointer indicates an identifier set having an identifier of an area to be transferred during or after the next transfer time. When the identifier of the identifier set pointed by the read pointer is invalid (null), it means that there is no area to be transferred.

【0022】書き込みポインタは、次順位の転送すべき
領域の識別子を持つ識別子セットを指す。書き込みポイ
ンタが指す識別子セットの識別子が無効(null)である
ときは書き込みが可能であることを表す。これらの読み
出しポインタ及び書き込みポインタは、それぞれが示す
識別子セット内のポインタに従って更新される。同図
(a)では、フレームバッファ102において、領域0
が復号作業に使用され、領域1から3が無効(null)で
ある場合を例示している。この場合、4つの識別子セッ
トの識別子は全て無効となっている。読み出しポインタ
は、転送すべきデータがないので無効の識別子を持つ識
別子セットを指している。書き込みポインタも無効の識
別子を持つ識別子セットを指している。
The write pointer points to an identifier set having an identifier of an area to be transferred next in order. When the identifier of the identifier set pointed to by the write pointer is invalid (null), it indicates that writing is possible. These read pointers and write pointers are updated according to the pointers in the identifier set indicated by each. In the same figure (a), in the frame buffer 102, the area 0
Is used for decoding work, and areas 1 to 3 are null. In this case, all the identifiers of the four identifier sets are invalid. The read pointer points to an identifier set that has an invalid identifier because there is no data to transfer. The write pointer also points to an identifier set with an invalid identifier.

【0023】同図(b)では、フレームバッファ102
中の領域0が復号済み(Iピクチャーで転送順位が1
位)、領域1が復号済み(Pピクチャーで転送順位が未
定)、領域2が復号済み(Bピクチャーで転送順位が2
位)、領域3が復号作業(Bピクチャーで転送順位が3
位)に使用されている場合を例示している。この場合、
識別子セットは、識別子として0、2、3を保持する。
識別子セットのポインタは、これらの識別子を転送順
(0、2、3の順)に連結している。読み出しポインタ
は識別子0をもつ識別子セットを指している。書き込み
ポインタは無効の識別子をもつ識別子セットを指してい
る。
In FIG. 2B, the frame buffer 102
Area 0 in the area has been decoded (I-picture has a transfer order of 1
Area), area 1 has been decoded (P picture has no transfer order), area 2 has been decoded (B picture has transfer order 2)
Area), area 3 is decoding work (B picture has transfer order 3
Rank) is used as an example. in this case,
The identifier set holds 0, 2, and 3 as identifiers.
The identifier set pointer connects these identifiers in a transfer order (order of 0, 2, 3). The read pointer points to the identifier set with identifier 0. The write pointer points to an identifier set with an invalid identifier.

【0024】同様に同図(c)の場合も、識別子保持部
106はフレームバッファ102中の状態を反映してい
る。タイムアウトカウンタ107は、画像転送部104
と画像復号部101の同期をとるために、画像転送部1
04によって復号遅れが感知された時に1加算され、画
像復号部101によって1フレーム分の復号遅れを取り
戻す処理がなされた場合に1減算される。すなわち、タ
イムアウトカウンタ107は、転送時刻になっても読み
出しポインタが無効の識別子を持つ識別子セットを指し
ているときは画像転送部104によって1加算され、復
号処理においてタイムアウトカウンタ107が1以上で
あれば画像復号部101によって復号済のフレームが破
棄されるとともに1減算される。このようにタイムアウ
トカウンタ107は、画像転送部104によって復号遅
れが感知されたことを画像復号部101に伝える媒体と
して備えられていてる。
Similarly, in the case of FIG. 6C, the identifier holding unit 106 reflects the state in the frame buffer 102. The timeout counter 107 includes the image transfer unit 104.
To synchronize the image decoding unit 101 with the image transfer unit 1,
When the decoding delay is sensed by 04, 1 is added, and when the image decoding unit 101 performs the processing of regaining the decoding delay for one frame, 1 is subtracted. That is, the timeout counter 107 is incremented by 1 by the image transfer unit 104 when the read pointer points to an identifier set having an invalid identifier even at the transfer time, and when the timeout counter 107 is 1 or more in the decoding process. The frame decoded by the image decoding unit 101 is discarded and 1 is subtracted. As described above, the timeout counter 107 is provided as a medium for notifying the image decoding unit 101 that the image transfer unit 104 has detected the decoding delay.

【0025】転送フラグ保持部108は、フレームバッ
ファ102の各領域に対応して、転送済みを表す転送フ
ラグを保持する。各転送フラグは、転送終了時に画像転
送部104によって”1”にセットされ、復号画像が格
納されたときに画像復号部101によって”0”にリセ
ットされる。起動時(初期化時)には全部”1”であ
る。図3(a)に転送フラグの具体例を示す。同図
(a)ではフレームバッファ102中の領域2の画像デ
ータが転送済みであることを示している。
The transfer flag holding unit 108 holds a transfer flag indicating that transfer has been completed, corresponding to each area of the frame buffer 102. Each transfer flag is set to "1" by the image transfer unit 104 at the end of transfer, and reset to "0" by the image decoding unit 101 when the decoded image is stored. At startup (at initialization), all are "1". FIG. 3A shows a specific example of the transfer flag. FIG. 9A shows that the image data of the area 2 in the frame buffer 102 has been transferred.

【0026】不要フラグ保持部109は、フレームバッ
ファ102の各領域に対応して、参照フレームとして復
号処理に不要であることを表す不要フラグを保持する。
ここで参照フレームとはP又はIピクチャーであって他の
(P又はB)ピクチャーの復号に使用されるフレームをい
う。各不要フラグは、画像復号部101によって、P又
はIピクチャーが復号されたときに”0”にリセットさ
れ、P又はIピクチャーが参照フレームとして必要なくな
ったときに”1”にセットされる。Bピクチャーについ
ては、復号されてから後転送終了までの間”1”がセッ
トされる。起動時(初期化時)には全部”1”である。
図3(b)に不要フラグの具体例を示す。同図(b)で
はフレームバッファ102中の領域2、3が復号には不
要であることを示している。
The unnecessary flag holding unit 109 holds, as a reference frame, an unnecessary flag indicating that it is unnecessary for the decoding process, corresponding to each area of the frame buffer 102.
Here, the reference frame is a frame that is a P or I picture and is used for decoding another (P or B) picture. Each unnecessary flag is reset by the image decoding unit 101 to "0" when the P or I picture is decoded, and is set to "1" when the P or I picture is no longer needed as a reference frame. For the B picture, "1" is set after the decoding until the end of the post transfer. At startup (at initialization), all are "1".
FIG. 3B shows a specific example of the unnecessary flag. FIG. 2B shows that the areas 2 and 3 in the frame buffer 102 are unnecessary for decoding.

【0027】以上のように構成された動画再生制御装置
について、以下その動作を説明する。図4は、画像復号
部101の詳細な動作を示すフローチャートである。ま
ず画像復号部101は、圧縮画像データ中のヘッダ内情
報から次に復号すべき画像について、そのピクチャータ
イプを判別し(ステップ201)、復号すべき画像デー
タが第1番目のフレームかどうかを判別する。
The operation of the moving picture reproduction control apparatus having the above-mentioned structure will be described below. FIG. 4 is a flowchart showing the detailed operation of the image decoding unit 101. First, the image decoding unit 101 determines the picture type of the image to be decoded next from the information in the header of the compressed image data (step 201), and determines whether the image data to be decoded is the first frame. To do.

【0028】復号すべき画像データが第1フレームであ
る場合(ステップ202:yes)、フレームバッファ1
02中の領域を獲得して複号する(ステップ207、2
08、209、216、213:no)。復号すべき画像
データが第1フレームでない場合(ステップ202:n
o)、画像復号部101は、前回復号した画像データの
ピクチャータイプと今回復号する圧縮画像データのピク
チャータイプとに基づいて、復号済み画像データのうち
次に転送すべき画像データを保持する領域を判断する
(ステップ203)。転送すべき画像データがない場合
は、ステップ206へ進む。
If the image data to be decoded is the first frame (step 202: yes), the frame buffer 1
The area in 02 is obtained and decoded (steps 207, 2).
08,209,216,213: no). If the image data to be decoded is not the first frame (step 202: n
o), the image decoding unit 101 stores the image data to be transferred next in the decoded image data based on the picture type of the previously decoded image data and the picture type of the compressed image data to be decoded this time. Is determined (step 203). If there is no image data to be transferred, the process proceeds to step 206.

【0029】さらに画像復号部101は、タイムアウト
カウンタ107が1以上の場合、つまり復号処理の遅れ
が生じている場合には、復号遅れを取り戻すためにステ
ップ203で判断された領域を転送済みとみなしての転
送フラグをセットする(ステップ204、215)。ま
た、画像復号部101は、タイムアウトカウンタ107
が0の場合には、ステップ203で判断された領域を識
別子保持部106の読み出しポインタに設定し(ステッ
プ205)、復号処理に不要となる画像データが存在す
れば、その領域に対応する不要フラグをセットする。不
要となる画像データが存在しない場合は何もしない(ス
テップ206)。
Further, when the time-out counter 107 is 1 or more, that is, when there is a delay in the decoding process, the image decoding unit 101 regards the area determined in step 203 as being transferred in order to recover the decoding delay. All transfer flags are set (steps 204 and 215). Also, the image decoding unit 101 uses the timeout counter 107.
Is 0, the area determined in step 203 is set as the read pointer of the identifier holding unit 106 (step 205), and if there is image data unnecessary for decoding processing, the unnecessary flag corresponding to that area is set. Set. If there is no unnecessary image data, nothing is done (step 206).

【0030】次に、画像復号部101は、転送フラグ保
持部108と不要フラグ保持部109を参照して復号作
業に使用する領域を選択し、この選択に従って識別子保
持部106の書き込みポインタを更新する。具体的に
は、対応する転送フラグと不要フラグが共に”1”(転
送済みでかつ参照フレームとして不要)であることを条
件として、この条件を満たす領域を選択し、さらに、識
別子セットの1つに選択した領域の識別子を設定し、さ
らに書き込みポインタを当該識別子セットを指すように
更新する(ステップ207)。さらに、選択した領域に
対応する不要フラグと転送フラグとを”0”にリセット
する(ステップ208)。
Next, the image decoding unit 101 refers to the transfer flag holding unit 108 and the unnecessary flag holding unit 109 to select an area to be used for decoding work, and updates the write pointer of the identifier holding unit 106 according to this selection. . Specifically, on the condition that both the corresponding transfer flag and unnecessary flag are "1" (transferred and unnecessary as a reference frame), an area that satisfies this condition is selected, and one of the identifier sets is selected. The identifier of the selected area is set to, and the write pointer is updated to point to the identifier set (step 207). Further, the unnecessary flag and the transfer flag corresponding to the selected area are reset to "0" (step 208).

【0031】さらに画像復号部101は、今回復号する
圧縮画像データがIピクチャーもしくはPピクチャーの場
合は、1フレーム分の復号を行う(ステップ209、2
16)。また、画像復号部101は、今回復号する圧縮
画像データがBピクチャーである場合は、タイムアウト
カウンタ107が1以上である場合は、復号遅れを取り
戻すため、当該Bピクチャーの復号を中止してステップ
201へ戻る(ステップ209、210)。この場合、
タイムアウトカウンタ107が0である場合は、1マク
ロブロックの復号処理を行って(ステップ211)、ス
テップ210に戻る。これにより、Bピクチャーの復号
処理においては、ステップ210〜212のループ処理
によって、1マクログロック毎にタイムアウトカウンタ
107を監視して転送処理との同期を図っている。
Further, when the compressed image data to be decoded this time is an I picture or a P picture, the image decoding unit 101 decodes one frame (steps 209 and 2).
16). Further, when the compressed image data to be decoded this time is a B picture, and when the timeout counter 107 is 1 or more, the image decoding unit 101 cancels the decoding of the B picture in order to recover the decoding delay, and the step 201. Return to (steps 209 and 210). in this case,
If the timeout counter 107 is 0, decoding processing for one macroblock is performed (step 211) and the process returns to step 210. As a result, in the decoding process of the B picture, the timeout process is monitored every 1 macroblock by the loop process of steps 210 to 212 to synchronize with the transfer process.

【0032】こうしてBピクチャー1フレーム分の復号
処理が終了した場合には、ステップ210へ戻る(ステ
ップ212、213)。全画像データの復号が終了し、
かつ転送処理も終了した場合には終了する(ステップ2
14)。図5は、画像転送部104の詳細な動作を示す
フローチャートである。
When the decoding process for one B picture frame is completed in this way, the process returns to step 210 (steps 212 and 213). Decoding of all image data is completed,
If the transfer process is also completed, the process is completed (step 2).
14). FIG. 5 is a flowchart showing the detailed operation of the image transfer unit 104.

【0033】画像転送部104は1/30秒毎のタイマ
ー割込により起動される。起動直後、画像転送部104
は、タイムアウトか否か、つまり識別子保持部106の
読み出しポインタに設定された領域が転送済みであるか
否かを判定し、タイムアウトであれば(ステップ30
1:yes)複号処理に遅れが生じているので、画像復号
部101にその旨通知するためにタイムアウトカウンタ
107を1加算して(ステップ303)、割込処理をぬ
ける。
The image transfer unit 104 is activated by a timer interrupt every 1/30 seconds. Immediately after startup, the image transfer unit 104
Determines whether it has timed out, that is, whether the area set to the read pointer of the identifier holding unit 106 has been transferred, and if it has timed out (step 30
1: Yes) Since the decoding process is delayed, the timeout counter 107 is incremented by 1 to notify the image decoding unit 101 (step 303) and the interrupt process is skipped.

【0034】また、画像転送部104は、タイムアウト
が発生していなければ(ステップ301:no)、識別子
保持部106の読み出しポインタが指す領域の復号フレ
ームを表示部105に転送して(ステップ302)、当
該領域に対応する転送フラグをセットする(ステップ3
04、305)。以上説明してきたように、本発明の動
画再生制御装置によれば、画像復号部101は、画像転
送部104による転送処理が行われていない間は、複号
処理を進めので復号処理を効率良く行うことができ、高
速化が図られている。さらに、画像転送部104が復号
遅れが発生したことを検出した場合にタイムアウトカウ
ンタ107を介して画像復号部101に通知し、この通
知を受けて画像復号部101は復号遅れを取り戻すの
で、復号遅れがあってもそれ以降の標示を遅らせること
なく実時間表示を保つことができる。また、フレームバ
ッファ102は、少なくとも4つの領域を備え、どのピ
クチャータイプの復号データにも利用できるので、複号
処理に融通性を持たせることができる。
If the timeout has not occurred (step 301: no), the image transfer section 104 transfers the decoded frame in the area pointed to by the read pointer of the identifier holding section 106 to the display section 105 (step 302). , Set a transfer flag corresponding to the area (step 3)
04, 305). As described above, according to the moving image reproduction control apparatus of the present invention, the image decoding unit 101 advances the decoding process while the transfer process by the image transfer unit 104 is not being performed, so that the decoding process can be performed efficiently. It can be done and the speed is increased. Furthermore, when the image transfer unit 104 detects that a decoding delay has occurred, it notifies the image decoding unit 101 via the timeout counter 107, and the image decoding unit 101 receives the notification and recovers the decoding delay. Even if there is, the real-time display can be maintained without delaying the subsequent labeling. Further, since the frame buffer 102 has at least four areas and can be used for decoded data of any picture type, the decoding processing can be made flexible.

【0035】[0035]

【発明の効果】本発明の動画再生方法は、復号処理と転
送処理とからなり、前記転送処理は、前記所定周期毎に
前記復号処理を中断させるステップと、バッファ中に転
送すべきフレームがあるか否かを判定するステップと、
転送すべきフレームが有ると判定された場合には、当該
フレームを前記表示部へ転送するステップと、転送すべ
きフレームが無いと判定された場合には、復号遅れが発
生したことを示す情報を所定記憶部に設定する設定ステ
ップと、復号処理を再開させるステップとを有し、前記
復号処理は、動画圧縮データにおいて復号すべきフレー
ムを決定するステップと、決定されたフレームを復号す
るステップと、前記記憶部を参照して復号遅れが発生し
たか否かを判定するステップと、復号遅れがあったと判
定された場合にバッファ中の1フレームを無効にし、前
記情報を記憶部から消去するステップと、復号遅れがな
いと判定された場合、および消去がなされた場合に前記
決定ステップを起動するステップとを有する構成によれ
ば、転送処理を行っている時間以外は復号処理を実行す
ることができるので、アイドル時間を生じさせないで復
号処理の高速化が図られている。加えて、復号遅れが発
生した場合、つまり転送処理において転送すべきフレー
ムがない場合には、その旨を表す情報が記憶部を介して
転送処理から復号処理に通知され、復号処理において復
号遅れを取り戻すので、動画の実時間表示を維持するこ
とができるという効果がある。
The moving image reproducing method of the present invention comprises a decoding process and a transfer process. The transfer process includes a step of interrupting the decoding process at every predetermined cycle, and a frame to be transferred in the buffer. Determining whether or not,
When it is determined that there is a frame to be transferred, a step of transferring the frame to the display unit, and when it is determined that there is no frame to be transferred, information indicating that a decoding delay has occurred is displayed. And a step of restarting the decoding process, the decoding process determining a frame to be decoded in the moving image compressed data, a step of decoding the determined frame, A step of determining whether or not a decoding delay has occurred by referring to the storage section; a step of invalidating one frame in the buffer when the decoding delay is determined, and deleting the information from the storage section; According to the configuration including the step of activating the determination step when it is determined that there is no decoding delay and when the deletion is performed, the transfer processing is performed. Since Except The times may perform decoding processing, faster decoding processing is achieved without causing idle time. In addition, when a decoding delay occurs, that is, when there is no frame to be transferred in the transfer processing, information indicating that is transmitted from the transfer processing to the decoding processing via the storage unit, and the decoding delay is notified in the decoding processing. Since it is regained, there is an effect that the real-time display of the moving image can be maintained.

【0036】さらに、前記転送処理における設定ステッ
プは、転送すべきフレームが無いと判定された場合には
所定記憶部としてのカウンタに1加算し、前記復号処理
における判定ステップは、前記カウンタが1以上か否か
を判定し、前記消去ステップは、前記カウンタを1減算
することにより、1フレーム分の復号遅れが発生したこ
とを示す情報を消去するように構成により、復号遅れが
生じているフレーム枚数をカウント値によって表すこと
ができ、前記記憶部がカウンタという簡単な構成により
実現できるという効果がある。
Further, in the setting step in the transfer processing, when it is determined that there is no frame to be transferred, 1 is added to the counter as the predetermined storage unit, and in the determination step in the decoding processing, the counter is 1 or more. The number of frames in which the decoding delay occurs is determined by determining whether or not the decoding step determines whether or not the information indicating that the decoding delay of one frame has occurred is subtracted in the erasing step. Can be represented by a count value, and there is an effect that the storage unit can be realized by a simple configuration of a counter.

【0037】また、予測符号化による動画圧縮データを
フレーム単位で復号してバッファに格納する復号処理部
と、バッファ内の復号フレームを所定周期で表示部へ転
送する転送処理部とからなり、前記転送処理部は、前記
所定周期毎に前記バッファ中に転送すべきフレームがあ
るか否かを判定する判定手段と、転送すべきフレームが
有ると判定された場合には、当該フレームを前記表示部
へ転送する転送手段と、転送すべきフレームが無いと判
定された場合には、復号遅れが発生したことを示す情報
を所定の記憶部に設定する設定手段とを備え、前記復号
処理部は、動画圧縮データにおいて復号すべきフレーム
を決定する決定手段と、決定されたフレームを復号する
復号手段と、前記記憶部を参照して復号遅れが発生した
か否かを判定する判定手段と、復号遅れがあったと判定
された場合にバッファ中の1フレームを無効にし、前記
記憶部内の情報を復号後れを取り戻したことを示す情報
に更新する更新手段と、復号遅れがないと判定された場
合、および消去がなされた場合に前記決定手段を起動す
る制御手段とを備てる構成によれば、転送処理を行って
いる時間以外は復号処理を実行することができるので、
アイドル時間を生じさせないで復号処理の高速化が図ら
れている。加えて、復号遅れが発生した場合、つまり転
送処理において転送すべきフレームがない場合には、そ
の旨を表す情報が記憶部を介して転送処理から復号処理
に通知され、復号処理において復号遅れを取り戻すの
で、動画の実時間表示を維持することができるという効
果がある。
Further, it comprises a decoding processing unit for decoding the compressed video data by predictive coding frame by frame and storing it in the buffer, and a transfer processing unit for transferring the decoded frames in the buffer to the display unit at a predetermined cycle. The transfer processing unit determines whether or not there is a frame to be transferred in the buffer at each of the predetermined cycles, and when it is determined that there is a frame to be transferred, displays the frame in the display unit. And a setting unit configured to set information indicating that a decoding delay has occurred in a predetermined storage unit when it is determined that there is no frame to be transferred, and the decoding processing unit, Determining means for determining a frame to be decoded in the moving image compressed data, decoding means for decoding the determined frame, and determining whether or not a decoding delay has occurred by referring to the storage section. Setting means, an updating means for invalidating one frame in the buffer when it is determined that there is a decoding delay, and updating the information in the storage unit to information indicating that the decoding delay has been recovered, and there is no decoding delay. According to the configuration provided with the control means that activates the determining means when it is determined that, and when the erasing is performed, the decoding process can be executed except the time when the transfer process is performed,
The decoding process is speeded up without causing idle time. In addition, when a decoding delay occurs, that is, when there is no frame to be transferred in the transfer processing, information indicating that is transmitted from the transfer processing to the decoding processing via the storage unit, and the decoding delay is notified in the decoding processing. Since it is regained, there is an effect that the real-time display of the moving image can be maintained.

【0038】さらに、前記記憶部はカウンタであり、転
送処理部内の前記設定手段は、転送すべきフレームが無
いと判定された場合に前記カウンタを1加算し、復号処
理部内の前記判定手段は、前記カウンタが1以上か否か
を判定し、復号処理部内の前記更新手段は、1フレーム
を無効にしたとき前記カウンタを1減算する構成によれ
ば、復号遅れが生じているフレーム枚数をカウント値に
よって表すことができ、前記記憶部がカウンタという簡
単な構成により実現できるという効果がある。
Further, the storage unit is a counter, and the setting unit in the transfer processing unit increments the counter by 1 when it is determined that there is no frame to be transferred, and the determination unit in the decoding processing unit is According to the configuration of determining whether or not the counter is 1 or more, the updating unit in the decoding processing unit subtracts 1 from the counter when one frame is invalidated. Can be represented by, and the storage unit can be realized by a simple configuration of a counter.

【0039】また、前記バッファは、復号フレームを保
持する少なくとも4つの領域を有し、前記動画再生制御
装置は、さらに、格納領域内の復号フレームが表示手段
に転送済みか否かを示す転送フラグを領域に対応させて
保持する転送フラグ保持手段と、領域内の復号フレーム
が復号処理に不要か否かを示す不要フラグを領域に対応
させて保持する不要フラグ保持手段と、次の転送時刻に
転送すべき復号フレームを保持する領域を指すポインタ
を保持するポインタ保持手段とを備え、前記転送処理部
は、ポインタが指す領域が未転送であれば復号フレーム
を表示部に転送して転送フラグを転送済みにセットし、
ポインタが指す領域が転送済であれば前記カウンタを1
加算し、前記複号処理部は、フレームの複号完了後ポイ
ンタを更新し、転送フラグ及び不要フラグに基づいて新
たなフレームの格納先領域の決定及び両フラグの更新を
行う構成によれば、バッファの領域を効率よく使用で
き、しかも転送処理部と復号処理部との間でで転送フラ
グ、不要フラグおよびポインタという単純な情報のやり
とりにより同期をとることができる。
Further, the buffer has at least four areas for holding decoded frames, and the moving picture reproduction control apparatus further comprises a transfer flag indicating whether or not the decoded frames in the storage area have been transferred to the display means. , A transfer flag holding means for holding each of the areas in correspondence with an area, an unnecessary flag holding means for holding an unnecessary flag indicating whether or not a decoded frame in the area is unnecessary for decoding processing, and a next transfer time. And a pointer holding unit that holds a pointer that points to an area that holds a decoded frame to be transferred. If the area pointed to by the pointer has not been transferred, the transfer processing section transfers the decoded frame to the display section and sets a transfer flag. Set it to transferred
If the area pointed to by the pointer has already been transferred, the counter is set to 1
According to the configuration, the decoding processing unit updates the pointer after the decoding of the frame is completed, determines the storage area of a new frame based on the transfer flag and the unnecessary flag, and updates both flags. The buffer area can be used efficiently, and moreover, the transfer processing unit and the decoding processing unit can be synchronized by simply exchanging information such as a transfer flag, an unnecessary flag, and a pointer.

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

【図1】本発明の実施形態における動画再生制御装置の
構成図である。
FIG. 1 is a configuration diagram of a moving image reproduction control device according to an embodiment of the present invention.

【図2】フレームバッファ102の状態と、それに対応
する識別子保持部106の保持内容とを示す説明図であ
る。
FIG. 2 is an explanatory diagram showing a state of a frame buffer 102 and contents held in an identifier holding unit 106 corresponding to the state.

【図3】(a) 転送フラグの具体例を示す図である。 (b) 不要フラグの具体例を示すずである。FIG. 3A is a diagram showing a specific example of a transfer flag. (B) It is not a specific example of the unnecessary flag.

【図4】画像復号部101の詳細な動作を示すフローチ
ャートである。
FIG. 4 is a flowchart showing a detailed operation of the image decoding unit 101.

【図5】画像転送部104の詳細な動作を示すフローチ
ャートである。
5 is a flowchart showing a detailed operation of the image transfer unit 104. FIG.

【図6】MPEGにおけるピクチャーの表示順序と復号
順序とを説明する図である。
FIG. 6 is a diagram illustrating a display order and a decoding order of pictures in MPEG.

【図7】第1の従来技術のソフトウェアによるMPEG1ビ
デオの動画再生制御装置を示す。
FIG. 7 shows a moving image playback control device for MPEG1 video by software of the first prior art.

【図8】第1の従来技術の動作を示すフローチャートで
ある。
FIG. 8 is a flowchart showing the operation of the first conventional technique.

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

101 画像復号部 102 フレームバッファ 103 タイマー 104 画像転送部 105 表示部 106 識別子保持部 107 タイムアウトカウンタ 108 転送フラグ保持部 109 不要フラグ保持部 Reference Signs List 101 image decoding unit 102 frame buffer 103 timer 104 image transfer unit 105 display unit 106 identifier holding unit 107 timeout counter 108 transfer flag holding unit 109 unnecessary flag holding unit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 予測符号化による動画圧縮データをフレ
ーム単位で復号してバッファに格納する復号処理と、バ
ッファ内の復号フレームを所定周期で表示部へ転送する
転送処理とからなる動画再生制御方法であって、 前記転送処理は、 前記所定周期毎に前記復号処理を中断させるステップ
と、 バッファ中に転送すべきフレームがあるか否かを判定す
るステップと、 転送すべきフレームが有ると判定された場合には、当該
フレームを前記表示部へ転送するステップと、 転送すべきフレームが無いと判定された場合には、復号
遅れが発生したことを示す情報を所定記憶部に設定する
設定ステップと、 復号処理を再開させるステップとを有し、 前記復号処理は、 動画圧縮データにおいて復号すべきフレームを決定する
ステップと、 決定されたフレームを復号するステップと、 前記記憶部を参照して復号遅れが発生したか否かを判定
するステップと、 復号遅れがあったと判定された場合にバッファ中の1フ
レームを無効にし、前記情報を記憶部から消去するステ
ップと復号遅れがないと判定された場合、および消去が
なされた場合に前記決定ステップを起動するステップと
を有することを特徴とする動画再生制御方法。
1. A moving image reproduction control method comprising a decoding process of decoding compressed moving image data by predictive coding in frame units and storing it in a buffer, and a transfer process of transferring a decoded frame in the buffer to a display unit at a predetermined cycle. In the transfer processing, the step of interrupting the decoding processing at each of the predetermined cycles, the step of determining whether there is a frame to be transferred in the buffer, and the step of determining that there is a frame to be transferred are determined. If the frame is transferred, the frame is transferred to the display unit, and if it is determined that there is no frame to be transferred, a setting step of setting information indicating that a decoding delay has occurred in a predetermined storage unit. And a step of restarting the decoding process, wherein the decoding process determines a frame to be decoded in the compressed video data, and the determined frame. Decoding a frame, determining whether a decoding delay has occurred by referring to the storage unit, invalidating one frame in the buffer when it is determined that a decoding delay has occurred, and And a step of activating the determination step when it is determined that there is no decoding delay, and when the deletion has been performed.
【請求項2】 前記転送処理における設定ステップは、
転送すべきフレームが無いと判定された場合には所定記
憶部としてのカウンタに1加算し、 前記復号処理における判定ステップは、前記カウンタが
1以上か否かを判定し、 前記消去ステップは、前記カウンタを1減算することに
より、1フレーム分の復号遅れが発生したことを示す情
報を消去することを特徴とする請求項1記載の動画再生
制御方法。
2. The setting step in the transfer processing comprises:
When it is determined that there is no frame to be transferred, 1 is added to the counter as the predetermined storage unit, the determination step in the decoding process determines whether or not the counter is 1 or more, and the erasing step is the 2. The moving image reproduction control method according to claim 1, wherein the information indicating that the decoding delay for one frame has occurred is subtracted by subtracting 1 from the counter.
【請求項3】 予測符号化による動画圧縮データをフレ
ーム単位で復号してバッファに格納する復号処理部と、
バッファ内の復号フレームを所定周期で表示部へ転送す
る転送処理部とからなる動画再生制御装置であって、 前記転送処理部は、 前記所定周期毎に前記バッファ中に転送すべきフレーム
があるか否かを判定する判定手段と、 転送すべきフレームが有ると判定された場合には、当該
フレームを前記表示部へ転送する転送手段と、 転送すべきフレームが無いと判定された場合には、復号
遅れが発生したことを示す情報を所定の記憶部に設定す
る設定手段とを備え、 前記復号処理部は、 動画圧縮データにおいて復号すべきフレームを決定する
決定手段と、 決定されたフレームを復号する復号手段と、 前記記憶部を参照して復号遅れが発生したか否かを判定
する判定手段と、 復号遅れがあったと判定された場合にバッファ中の1フ
レームを無効にし、前記記憶部内の情報を復号後れを取
り戻したことを示す情報に更新する更新手段と、 復号遅れがないと判定された場合、および消去がなされ
た場合に前記決定手段を起動する制御手段とを備えるこ
とを特徴とする動画再生装置。
3. A decoding processing unit for decoding moving image compressed data by predictive coding in frame units and storing the decoded data in a buffer.
A moving image reproduction control device comprising a transfer processing unit for transferring a decoded frame in a buffer to a display unit at a predetermined cycle, wherein the transfer processing unit has a frame to be transferred in the buffer at every predetermined cycle. Determination means for determining whether or not there is a frame to be transferred, transfer means for transferring the frame to the display unit, and if it is determined that there is no frame to be transferred, The decoding processing unit includes a setting unit that sets information indicating that a decoding delay has occurred in a predetermined storage unit, and the decoding processing unit determines a frame to be decoded in the compressed video data, and a decoding unit that decodes the determined frame. Decoding means, a judging means for judging whether or not a decoding delay has occurred by referring to the storage section, and invalidating one frame in the buffer when it is judged that the decoding delay has occurred. Then, updating means for updating the information in the storage unit to information indicating that the decoding delay has been recovered, and control means for activating the determining means when it is determined that there is no decoding delay and when the erasing is performed. A video playback device comprising:
【請求項4】 前記記憶部はカウンタであり、 転送処理部内の前記設定手段は、転送すべきフレームが
無いと判定された場合に前記カウンタを1加算し、 復号処理部内の前記判定手段は、前記カウンタが1以上
か否かを判定し、 復号処理部内の前記更新手段は、1フレームを無効にし
たとき前記カウンタを1減算することを特徴とする請求
項3記載の動画再生制御装置。
4. The storage unit is a counter, the setting unit in the transfer processing unit increments the counter by 1 when it is determined that there is no frame to be transferred, and the determination unit in the decoding processing unit is 4. The moving image reproduction control apparatus according to claim 3, wherein it is determined whether the counter is 1 or more, and the updating unit in the decoding processing unit subtracts 1 from the counter when one frame is invalidated.
【請求項5】 前記バッファは、復号フレームを保持す
る少なくとも4つの領域を有し、 前記動画再生制御装置は、さらに格納領域内の復号フレ
ームが表示手段に転送済みか否かを示す転送フラグを領
域に対応させて保持する転送フラグ保持手段と、 領域内の復号フレームが復号処理に不要か否かを示す不
要フラグを領域に対応させて保持する不要フラグ保持手
段と、 次の転送時刻に転送すべき復号フレームを保持する領域
を指すポインタを保持するポインタ保持手段とを備え、 前記転送処理部は、ポインタが指す領域が未転送であれ
ば復号フレームを表示部に転送して転送フラグを転送済
みにセットし、ポインタが指す領域が転送済であれば前
記カウンタを1加算し、 前記複号処理部は、フレームの複号完了後ポインタを更
新し、転送フラグ及び不要フラグに基づいて新たなフレ
ームの格納先領域の決定及び両フラグの更新を行うこと
を特徴とする請求項4記載の動画再生制御装置。
5. The buffer has at least four areas for holding decoded frames, and the moving picture reproduction control device further sets a transfer flag indicating whether or not the decoded frames in the storage area have been transferred to the display means. A transfer flag holding unit that holds the area, a unnecessary flag holding unit that holds an unnecessary flag indicating whether the decoded frame in the area is unnecessary for the decoding process, and a transfer flag at the next transfer time. A pointer holding unit that holds a pointer that points to an area that holds a decoded frame to be transferred, and the transfer processing unit transfers the decoded frame to the display unit and transfers a transfer flag if the area pointed to by the pointer has not been transferred. If the area pointed to by the pointer has been transferred, the counter is incremented by 1, and the decoding unit updates the pointer after the decoding of the frame is completed and transfers the transfer flag. Video playback control apparatus according to claim 4, wherein the making a decision and updating of both flag storage destination area of a new frame based on grayed and unnecessary flag.
JP6396196A 1996-03-21 1996-03-21 Moving image reproduction control method and moving image reproduction controller Pending JPH09261647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6396196A JPH09261647A (en) 1996-03-21 1996-03-21 Moving image reproduction control method and moving image reproduction controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6396196A JPH09261647A (en) 1996-03-21 1996-03-21 Moving image reproduction control method and moving image reproduction controller

Publications (1)

Publication Number Publication Date
JPH09261647A true JPH09261647A (en) 1997-10-03

Family

ID=13244423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6396196A Pending JPH09261647A (en) 1996-03-21 1996-03-21 Moving image reproduction control method and moving image reproduction controller

Country Status (1)

Country Link
JP (1) JPH09261647A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009005345A (en) * 2007-06-20 2009-01-08 Nvidia Corp Uniform video decoding and display
US8339406B2 (en) 2004-01-30 2012-12-25 Nvidia Corporation Variable-length coding data transfer interface
US8502709B2 (en) 2007-09-17 2013-08-06 Nvidia Corporation Decoding variable length codes in media applications
US8849051B2 (en) 2007-09-17 2014-09-30 Nvidia Corporation Decoding variable length codes in JPEG applications
US8934539B2 (en) 2007-12-03 2015-01-13 Nvidia Corporation Vector processor acceleration for media quantization
US9307267B2 (en) 2008-12-11 2016-04-05 Nvidia Corporation Techniques for scalable dynamic data encoding and decoding

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8339406B2 (en) 2004-01-30 2012-12-25 Nvidia Corporation Variable-length coding data transfer interface
US8427494B2 (en) 2004-01-30 2013-04-23 Nvidia Corporation Variable-length coding data transfer interface
JP2009005345A (en) * 2007-06-20 2009-01-08 Nvidia Corp Uniform video decoding and display
US8477852B2 (en) 2007-06-20 2013-07-02 Nvidia Corporation Uniform video decoding and display
US8502709B2 (en) 2007-09-17 2013-08-06 Nvidia Corporation Decoding variable length codes in media applications
US8849051B2 (en) 2007-09-17 2014-09-30 Nvidia Corporation Decoding variable length codes in JPEG applications
US8934539B2 (en) 2007-12-03 2015-01-13 Nvidia Corporation Vector processor acceleration for media quantization
US9307267B2 (en) 2008-12-11 2016-04-05 Nvidia Corporation Techniques for scalable dynamic data encoding and decoding

Similar Documents

Publication Publication Date Title
CN110366033B (en) Video playing method, device, equipment and storage medium
JP4889573B2 (en) Image processing device
US20030121044A1 (en) System and method for enhancing performance of personal video recording (PVR) functions on hits digital video streams
JP4411310B2 (en) Information processing apparatus and program
US20030012284A1 (en) Method and apparatus for decoding motion video game
JPH09261647A (en) Moving image reproduction control method and moving image reproduction controller
JP4879381B2 (en) Image decoding method and image decoding apparatus
JPH09182026A (en) Disk format for fast reproduction and fast reproduction device and method for image data using the disk format
TWI316812B (en)
JP3110390B2 (en) Image playback device
US6834155B1 (en) Device and method for image regeneration capable of executing automatic pause display at correct frame
JPH09139913A (en) Video display method and device therefor
CN113709574B (en) Video screenshot method and device, electronic equipment and computer readable storage medium
JP2007531435A (en) Method and apparatus for generating menu
CN116737248B (en) Dormancy and awakening method of hard decoder
CN111467797A (en) Game data processing method and device, computer storage medium and electronic equipment
JP2001285877A (en) Device and method for decoding compression encoding data
US6839500B2 (en) Apparatus for implementing still function of DVD and method thereof
US20040086262A1 (en) Video data reproducing system and method
JPH10191257A (en) Digital animation decoding device and its method
JP3098485B2 (en) Image decoding device
JP2002232884A (en) Image encoder and image encoding method
JP2001103427A (en) Compressed image reproducing device and program recording medium
JPH08214301A (en) Method and device for decoding image signal
JP2001025022A (en) Video display and display method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050705

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050712

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20051108