JPH08163371A - Encoding/decoding device - Google Patents

Encoding/decoding device

Info

Publication number
JPH08163371A
JPH08163371A JP30401194A JP30401194A JPH08163371A JP H08163371 A JPH08163371 A JP H08163371A JP 30401194 A JP30401194 A JP 30401194A JP 30401194 A JP30401194 A JP 30401194A JP H08163371 A JPH08163371 A JP H08163371A
Authority
JP
Japan
Prior art keywords
encoding
decoding
signal
data
decoding device
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.)
Granted
Application number
JP30401194A
Other languages
Japanese (ja)
Other versions
JP3333336B2 (en
Inventor
Tadanori Ryu
忠則 笠
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP30401194A priority Critical patent/JP3333336B2/en
Publication of JPH08163371A publication Critical patent/JPH08163371A/en
Application granted granted Critical
Publication of JP3333336B2 publication Critical patent/JP3333336B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To provide the encoding/decoding device which doesn't require the external circuit which changes the timing of a vertical synchronizing signal neither the change of a parameter value set to an internal register. CONSTITUTION: The operation required for encoding and decoding of digitized picture data is started based on the vertical synchronizing signal which indicates the division of one picture of digitized picture data. This encoding/decoding device 10 is provided with a timing control part 103 which generates a signal START, which has the same period as the vertical synchronizing signal and is delayed by a prescribed extent and initializes the encoding and decoding operation, and sets the extents of delay for encoding and decoding based on information from the outside (CPU).

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ディジタル化された画
像データを実時間で符号化および復号化する符号化/復
号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coding / decoding device for coding and decoding digitized image data in real time.

【0002】[0002]

【従来の技術】JPEG(静止画符号化の国際基準)な
どにおいては、画像の圧縮技術として離散コサイン変換
(DCT)などの直交変換を使用した画像の符号化/復
号化方式が用いられる。そして、画像の符号化時には、
ディジタル化された映像データを直接に符号化/復号化
装置に供給して符号化を行い、復号化時には、復号化さ
れたデータをそのまま映像データとして表示するシステ
ムになっている。
2. Description of the Related Art In JPEG (International Standard for Still Image Coding) and the like, an image coding / decoding method using orthogonal transform such as discrete cosine transform (DCT) is used as an image compression technique. And when encoding the image,
The system is such that the digitized video data is directly supplied to the encoding / decoding device to be encoded, and at the time of decoding, the decoded data is displayed as it is as video data.

【0003】上記システムの構成を図5に示す。A/D
変換器22は、図示しないVTRやカメラなどの外部か
らのアナログ映像信号をディジタル映像データに変換す
る。符号化/復号化装置20は、符号化時には前記A/
D変換器22にてディジタル化された映像データを符号
化して外部メモリ24へ出力し、復号化時には外部メモ
リ24から符号データを読み出して映像データへの復号
化を行う。この復号化された映像データは、D/A変換
器23へ出力される。D/A変換器23は、符号化/復
号化装置20からのディジタル映像データをアナログ映
像信号に変換し、このアナログ映像信号を外部のモニタ
ーなどへ出力する。
The configuration of the above system is shown in FIG. A / D
The converter 22 converts an analog video signal from the outside such as a VTR or a camera (not shown) into digital video data. The encoding / decoding device 20 uses the A /
The video data digitized by the D converter 22 is encoded and output to the external memory 24. At the time of decoding, the coded data is read from the external memory 24 and decoded into video data. The decoded video data is output to the D / A converter 23. The D / A converter 23 converts the digital video data from the encoding / decoding device 20 into an analog video signal, and outputs this analog video signal to an external monitor or the like.

【0004】ラインメモリ21は、符号化時には映像デ
ータのラスターからブロックへの変換に、復号化時には
ブロックからラスターへの変換に、それぞれ用いられ
る。
The line memory 21 is used for converting video data from raster to block during encoding, and for converting block to raster during decoding.

【0005】図6は、ラスター/ブロック変換を示した
概念図である。同図(a)に示すように、画像データ
は、ラスター順(画面の左上から順に右下)に送られて
くる。離散コサイン変換などの直交変換のためには、同
図(b)に示すように、画像データを8画素×8画素の
ブロック毎のデータとする必要がある。このため、8ラ
イン分のデータをラインメモリ21に一旦書き込み、読
出アドレスを制御して再びラインメモリ21からデータ
を読み出すことにより8画素×8画素のブロックの画素
データを得る。
FIG. 6 is a conceptual diagram showing the raster / block conversion. As shown in FIG. 7A, the image data is sent in raster order (from the upper left of the screen to the lower right). For orthogonal transform such as discrete cosine transform, it is necessary to make image data into blocks of 8 pixels × 8 pixels as shown in FIG. Therefore, the data for 8 lines is once written in the line memory 21, the read address is controlled, and the data is read again from the line memory 21 to obtain pixel data of a block of 8 pixels × 8 pixels.

【0006】前記符号化/復号化装置20は、映像信号
の垂直同期信号および水平同期信号に同期して動作を行
い、映像信号の有効なデータのみを処理する。この有効
な信号期間は、図7に示すように、垂直同期信号からの
ブランキング期間と有効ライン期間、水平同期信号から
のブランキング期間と有効画素数で決定され、符号化/
復号化装置20においては、これらのパラメータ値を内
部レジスタに設定することで行う。
The encoding / decoding device 20 operates in synchronization with the vertical synchronizing signal and the horizontal synchronizing signal of the video signal, and processes only valid data of the video signal. As shown in FIG. 7, this effective signal period is determined by the blanking period and the effective line period from the vertical synchronizing signal, the blanking period from the horizontal synchronizing signal, and the effective pixel number, and the encoding / coding is performed.
In the decoding device 20, these parameter values are set in the internal register.

【0007】図8は、上記符号化/復号化装置20の内
部構成を示したブロック図である。このブロック図に基
づいて、連続して画像を符号化する場合の動作を以下に
説明する。
FIG. 8 is a block diagram showing the internal configuration of the encoding / decoding device 20. Based on this block diagram, the operation of continuously encoding images will be described below.

【0008】符号化/復号化装置20は、符号化時にお
いて外部から符号化開始のコマンドを受けると、垂直同
期信号の立ち上がり(垂直同期信号が負理論の場合は、
立ち下がりだが、ここでは正理論の信号として立ち上が
りとする。)で内部を初期化して動作を開始する。
When the encoding / decoding device 20 receives an encoding start command from the outside during encoding, the vertical sync signal rises (when the vertical sync signal is in the negative theory,
It is a fall, but here it is a positive theory signal and it is a rise. ) To initialize the inside and start operation.

【0009】ラスター/ブロック変換部201は、垂直
同期信号の立ち上がりからのブランキング期間ではデー
タを取り込まずに有効期間になったタイミングで前記A
/D変換器22から出力されるディジタルの映像データ
を取り込む。そして、直交変換を行うためにラインメモ
リ21を用いて前述したようにラスターからブロックへ
の変換を行う。
The raster / block conversion unit 201 does not take in data during the blanking period from the rising of the vertical synchronizing signal and becomes the valid period at the timing A.
The digital video data output from the / D converter 22 is captured. Then, in order to perform the orthogonal transformation, the line memory 21 is used to perform the transformation from the raster to the block as described above.

【0010】ブロック化された画素データは、符号化/
復号化部202へ送られる。符号化/復号化部202で
は、符号化処理を実行し、符号データを外部のメモリ2
4に出力する。有効領域の画像データをすべて符号化
し、この符号データを出力し終えると動作は終了する。
動作終了後、再び垂直同期信号が入力されると上記動作
を繰り返す。
Blocked pixel data is encoded /
It is sent to the decoding unit 202. The encoding / decoding unit 202 executes the encoding process and stores the encoded data in the external memory 2
4 is output. The operation ends when all the image data in the effective area is encoded and the output of this encoded data is completed.
When the vertical synchronizing signal is input again after the operation is completed, the above operation is repeated.

【0011】一方、復号化時には、符号化時と同様、外
部から動作開始の指示を受けると、符号化/復号化装置
20は、垂直同期信号の立ち上がりで内部(メモリ内容
等)を初期化して動作を開始する。動作を開始すると、
符号化/復号化部202は、外部メモリ24から符号デ
ータを読み出して復号化を行い、この復号化されたブロ
ックデータをラスターブロック変換部201に送る。ラ
スターブロック変換部201では、符号化時とは逆にブ
ロックデータをラインメモリ21に一旦書き込み、読出
アドレスを制御して再びラインメモリ21からデータを
読み出すことにより、ラスター順に画素データを出力す
る。
On the other hand, at the time of decoding, as in the case of encoding, when an operation start instruction is received from the outside, the encoding / decoding device 20 initializes the inside (memory contents etc.) at the rising edge of the vertical synchronizing signal. Start operation. When the operation starts,
The coding / decoding unit 202 reads the coded data from the external memory 24, decodes the coded data, and sends the decoded block data to the raster block conversion unit 201. The raster block conversion unit 201 outputs the pixel data in raster order by temporarily writing the block data in the line memory 21, contrary to the encoding, and controlling the read address to read the data again from the line memory 21.

【0012】出力された画素データは、画像の有効期間
に同期して出力される。そして、全ての画像データを出
力し終えると、動作を終了する。動作終了後、再び垂直
同期信号が入力されると、上記動作を繰り返す。この復
号化時には、符号化時と異なり、符号化復号化装置20
から画像データを出力する場合には、データを出力する
前にラインメモリ21へデータを書き込んでおく必要が
ある。
The output pixel data is output in synchronization with the effective period of the image. Then, when the output of all the image data is completed, the operation is completed. When the vertical synchronizing signal is input again after the operation is completed, the above operation is repeated. At the time of this decoding, unlike at the time of encoding, the encoding / decoding device 20
In the case of outputting image data from, it is necessary to write the data in the line memory 21 before outputting the data.

【0013】[0013]

【発明が解決しようとする課題】以上のようにして連続
的な符号化処理および復号化処理が行われるが、この連
続的な符号化および復号化処理を行うには、更に条件が
必要である。
The continuous encoding processing and the decoding processing are performed as described above, but further conditions are required to perform the continuous encoding and decoding processing. .

【0014】ここで、符号化時のタイミングチャートを
図9に示す。この図において有効画面とは、前記図7の
有効領域(斜線部)を表したものであり、“H”状態が
有効画面であることを示している。後述の図10につい
ても同様である。そして、符号化時には、画像データ
は、ラインメモリ21を経由して符号化されるため、ラ
インメモリ分(8ライン分)の遅れが生じる。
FIG. 9 shows a timing chart at the time of encoding. In this figure, the valid screen represents the valid area (hatched portion) in FIG. 7, and indicates that the "H" state is the valid screen. The same applies to FIG. 10 described later. Then, at the time of encoding, since the image data is encoded via the line memory 21, a delay of the line memory (eight lines) occurs.

【0015】従って、1フィールド画像の全体に対して
の符号化処理が終了するまでには、最終画像データを入
力してから8水平期間+内部処理時間(図ではαと表記
している。)が必要となる。
Therefore, by the time the encoding processing for the entire one field image is completed, 8 horizontal periods from the input of the final image data + internal processing time (denoted by α in the figure). Is required.

【0016】また、復号化時のタイミングチャートを図
10に示す。復号化時には、前述したように、符号化時
と異なり、符号化復号化装置22からデータを出力する
場合には、データを出力する前にラインメモリ21にラ
インメモリ分(8ライン分)のデータを書き込んでおく
必要がある。
FIG. 10 shows a timing chart at the time of decoding. As described above, at the time of decoding, unlike the case of encoding, when outputting data from the encoding / decoding device 22, the data of line memory (eight lines) is stored in the line memory 21 before outputting the data. Need to be written.

【0017】しかしながら、NTSC等のTV規格で
は、垂直同期信号の立ち上がり前のブランキング期間と
立ち上がり後のブランキング期間が規格化されているわ
けではないため、符号化/復号化に適したブランキング
タイミングになっていない場合がある。
However, the TV standard such as NTSC does not standardize the blanking period before the rising of the vertical synchronizing signal and the blanking period after the rising of the vertical synchronizing signal. Therefore, blanking suitable for encoding / decoding is performed. The timing may not be reached.

【0018】例えば、図11に示すように、最終画像デ
ータから次の垂直同期信号までのブランキング期間が
5.5水平期間であったとすると、符号化の動作途中で
垂直同期信号が立ち上がって初期化されてしまうため、
ラインメモリ21に格納されているデータの全てを符号
化することができず、正常に動作できなくなる。
For example, as shown in FIG. 11, if the blanking period from the final image data to the next vertical synchronizing signal is 5.5 horizontal periods, the vertical synchronizing signal rises in the middle of the encoding operation and is initialized. Because it will be
All the data stored in the line memory 21 cannot be encoded, and normal operation cannot be performed.

【0019】また、復号化時において、図12に示すよ
うに、垂直同期信号立ち上がりからのブランキング期間
が4水平期間であったとすれば、復号化の動作が開始さ
れてから外部に復号化データを出力する前に画面の有効
領域が始まってしまう。即ち、有効領域になってもデー
タが出力されないという不都合を生じる。
Further, at the time of decoding, as shown in FIG. 12, if the blanking period from the rising edge of the vertical synchronizing signal is 4 horizontal periods, the decoded data is externally output after the decoding operation is started. The effective area of the screen starts before the output of. That is, there is an inconvenience that data is not output even when the effective area is reached.

【0020】このため、従来においては、符号化/復号
化装置20に供給する垂直同期信号として本来の垂直同
期信号とタイミングを異ならせた信号を供給し、この信
号にて符号化/復号化装置20を動作させていた。しか
し、これでは、垂直同期信号のタイミングを変更する外
部回路が必要となり、そのハード規模が大きいことから
コスト高になる。また、この外部回路による垂直同期信
号のタイミング変更とともに、符号化/復号化装置20
における前記内部レジスタに設定するパラメータ値の変
更も必要になり、更に、その変更は、符号化動作と復号
化動作とで各々行う必要が生じる。
Therefore, in the prior art, as the vertical synchronizing signal supplied to the encoding / decoding device 20, a signal whose timing is different from that of the original vertical synchronizing signal is supplied, and this signal is used for the encoding / decoding device. 20 was working. However, this requires an external circuit that changes the timing of the vertical synchronizing signal, and the hardware scale is large, which increases the cost. Also, the timing of the vertical synchronizing signal is changed by this external circuit, and the encoding / decoding device 20
It is also necessary to change the parameter value set in the internal register in 1., and further, it is necessary to change the parameter value in each of the encoding operation and the decoding operation.

【0021】本発明は、上記の事情に鑑み、前記垂直同
期信号のタイミングを変更させるための外部回路を必要
とせず、前記内部レジスタに設定するパラメータ値の変
更も要しない符号化/復号化装置を提供することを目的
とする。
In view of the above circumstances, the present invention does not require an external circuit for changing the timing of the vertical synchronizing signal, and does not need to change the parameter value set in the internal register. The purpose is to provide.

【0022】[0022]

【課題を解決するための手段】本発明の符号化/復号化
装置は、上記の課題を解決するために、ディジタル化さ
れた画像データの1画面の区切りを示す第1の信号に基
づいてデジタル化された画像データの符号化及び復号化
に必要な動作を開始する符号化/復号化装置において、
前記第1の信号と周期が同一で所定量だけ遅延され符号
化及び復号化の動作を初期化させる第2の信号を発生す
る手段と、符号化時および復号化時の各々の遅延量を外
部からの情報に基づいて設定する手段とを備えたことを
特徴としている。
In order to solve the above-mentioned problems, an encoding / decoding device of the present invention uses a digital signal based on a first signal indicating a division of one screen of digitized image data. In an encoding / decoding device that starts an operation required for encoding and decoding the encoded image data,
Means for generating a second signal which has the same period as the first signal and is delayed by a predetermined amount to initialize the encoding and decoding operations; and the respective delay amounts at the time of encoding and at the time of decoding. And means for setting based on the information from.

【0023】また、上記の構成において、符号化時およ
び復号化時の各々の遅延量を設定するための前記外部か
らの情報として負の値が設定できるように構成されてい
てもよい。
Further, in the above structure, a negative value may be set as the information from the outside for setting the respective delay amounts at the time of encoding and at the time of decoding.

【0024】[0024]

【作用】上記第1の構成によれば、第1の信号と周期が
同一で所定量だけ遅延された第2の信号によって符号化
及び復号化の動作が初期化される。従って、例えば、外
部側で最終画像データから次の第1の信号までのブラン
キング期間が5.5水平期間であったとしても、符号化
/復号化装置内では8水平期間+内部処理時間が確保さ
れるような第2信号が設定されることにより、符号化の
動作途中で第1の信号が立ち上がっても初期化はされ
ず、データの全てを符号化することができる。復号化時
においても、外部側で第1の信号の立ち上がりからのブ
ランキング期間が4水平期間であったとしても、符号化
/復号化装置内では8水平期間+内部処理時間が確保さ
れるような第2信号を設定することにより、復号化の動
作が開始されてから外部に復号化データを出力する前に
画面の有効領域が始まるといったことを防止できる。
According to the first configuration, the encoding and decoding operations are initialized by the second signal having the same period as the first signal and delayed by a predetermined amount. Therefore, for example, even if the blanking period from the final image data to the next first signal is 5.5 horizontal periods on the external side, 8 horizontal periods + internal processing time are set in the encoding / decoding device. By setting the second signal that is ensured, initialization is not performed even if the first signal rises during the encoding operation, and all the data can be encoded. Even at the time of decoding, even if the blanking period from the rising edge of the first signal is 4 horizontal periods on the external side, 8 horizontal periods + internal processing time are secured in the encoding / decoding device. By setting the second signal, it is possible to prevent the effective area of the screen from starting after the decoding operation is started and before outputting the decoded data to the outside.

【0025】従って、第1の信号のタイミングを変更さ
せる外部回路は必要ではなくなり、この外部回路よりも
小さなハードで第2信号の発生手段を構成し得ることか
らコスト低減が可能となる。そして、符号化/復号化装
置内での第1の信号から有効画面開始までのブランキン
グ期間は変化しないので、符号化/復号化装置の内部レ
ジスタに設定するパラメータ値の変更も要しないことに
なる。
Therefore, an external circuit for changing the timing of the first signal is not necessary, and the cost of the second signal can be reduced because the second signal generating means can be constructed with hardware smaller than this external circuit. Since the blanking period from the first signal in the encoder / decoder to the start of the valid screen does not change, it is not necessary to change the parameter value set in the internal register of the encoder / decoder. Become.

【0026】また、第2の構成によれば、符号化時およ
び復号化時の各々の遅延量を設定するための前記外部か
らの情報として負の値が設定できる。従って、外部から
符号化/復号化装置への第2信号の遅延量として桁数の
多い正の値を与えることに代えてこれと等価な桁数の小
さい負の値を与えることが可能となり、当該遅延量の設
定が容易に行えることになる。
Further, according to the second configuration, a negative value can be set as the information from the outside for setting the respective delay amounts at the time of encoding and at the time of decoding. Therefore, instead of giving a positive value with a large number of digits as the delay amount of the second signal from the outside to the encoding / decoding device, it is possible to give a negative value with a small number of digits equivalent thereto. The delay amount can be easily set.

【0027】[0027]

【実施例】以下、本発明をその実施例を示す図に基づい
て説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings showing its embodiments.

【0028】図1は、本発明の符号化/復号化装置10
を示す概略のブロック図である。この符号化/復号化装
置10の周辺には、従来例で示した図5と同様の周辺回
路が配置されるが、図1では、ラインメモリ11のみを
示している。そして、符号化/復号化装置10には、従
来と同様に、ラスター/ブロック変換部101、符号化
/復号化部102、及びCPUインターフェイス104
が備えられている。
FIG. 1 shows an encoding / decoding device 10 of the present invention.
It is a schematic block diagram showing. Peripheral circuits similar to those of the conventional example shown in FIG. 5 are arranged around the encoding / decoding device 10, but only the line memory 11 is shown in FIG. Then, in the encoding / decoding device 10, the raster / block conversion unit 101, the encoding / decoding unit 102, and the CPU interface 104, as in the conventional case.
Is provided.

【0029】ラスター/ブロック変換部101、及び符
号化/復号化部102は、従来例で説明したように、ラ
インメモリ11を用いてラスター/ブロック変換および
符号化/復号化処理を実行するが、後述するSTART
信号を受け取ったときには、その立ち上がりによって初
期化されるようになっている。
The raster / block conversion unit 101 and the encoding / decoding unit 102 execute the raster / block conversion and the encoding / decoding process using the line memory 11 as described in the conventional example. START described later
When a signal is received, it is initialized by the rising edge of the signal.

【0030】上記の符号化/復号化装置10には、タイ
ミングコントロール部103が設けられている。このタ
イミングコントロール部103には、垂直同期信号(第
1の信号)および水平同期信号が入力されるとともに、
図示しないCPUから前記CPUインターフェイス10
4を介して後述するN設定情報と全ライン数情報、及び
動作開始指示信号が入力されるようになっている。そし
て、タイミングコントロール部103は、上記の情報に
基づいてSTART信号(第2の信号)を生成し、これ
を前記のラスター/ブロック変換部101及び符号化/
復号化部102に出力する。
The above encoding / decoding device 10 is provided with a timing control section 103. A vertical synchronizing signal (first signal) and a horizontal synchronizing signal are input to the timing control unit 103, and
From a CPU (not shown) to the CPU interface 10
The N setting information, the total number of lines information, and the operation start instruction signal, which will be described later, are input via the command line 4. Then, the timing control unit 103 generates a START signal (second signal) based on the above-mentioned information, and uses this to generate the raster / block conversion unit 101 and the encoding / coding unit.
Output to the decoding unit 102.

【0031】図2は、上記タイミングコントロール部1
03の内部構成を示す概略のブロック図である。
FIG. 2 shows the timing control section 1 described above.
3 is a schematic block diagram showing an internal configuration of 03. FIG.

【0032】パルス発生回路600には、垂直同期信
号、動作開始指示信号、及びクロックが入力される。パ
ルス発生回路600は、前記動作開始指示信号により動
作を開始し、垂直同期信号の立ち上がりを検出して前記
クロックに同期したパルスを発生し、これをSTART
信号遅延回路601に出力する。
A vertical synchronizing signal, an operation start instruction signal, and a clock are input to the pulse generating circuit 600. The pulse generation circuit 600 starts operation in response to the operation start instruction signal, detects the rising edge of the vertical synchronization signal, generates a pulse synchronized with the clock, and outputs this pulse to START.
The signal is output to the signal delay circuit 601.

【0033】START信号遅延回路601は、前記パ
ルス発生回路600からのパルス及び水平同期信号を入
力するとともに、遅延量算出回路602からは遅延量情
報を入力し、この遅延量情報による遅延量の分だけ遅ら
せてSTART信号を出力する。例えば、遅延量算出回
路602から遅延量として“5”といった情報を受け取
っている場合は、水平同期信号の5パルスをカウントし
たときにSTART信号を出力する。なお、START
信号遅延回路601はクロックを用いて、START信
号をパルス化している。また、START信号は、垂直
同期信号が立ち上がる毎に発生される。
The START signal delay circuit 601 inputs the pulse and the horizontal synchronizing signal from the pulse generation circuit 600, the delay amount information from the delay amount calculation circuit 602, and the delay amount according to the delay amount information. Only after that, the START signal is output. For example, when information such as "5" is received as the delay amount from the delay amount calculation circuit 602, the START signal is output when 5 pulses of the horizontal synchronizing signal are counted. In addition, START
The signal delay circuit 601 uses a clock to pulse the START signal. The START signal is generated every time the vertical synchronizing signal rises.

【0034】遅延量算出回路602は、N設定レジスタ
603からのN値情報と、全ライン数レジスタ604か
らの全ライン数情報とを受け取り、これらの情報に基づ
いて遅延量情報を生成する。例えば、N設定レジスタ6
03からのN値情報が正の値であれば、これをそのまま
遅延量とし、N設定レジスタ603からのN値情報が負
の値であれば、全ライン数レジスタ604からの情報で
ある全ライン数からN値を減じた値を遅延量とする。
The delay amount calculation circuit 602 receives the N value information from the N setting register 603 and the total line number information from the total line number register 604, and generates the delay amount information based on these information. For example, N setting register 6
If the N value information from 03 is a positive value, this is used as it is as a delay amount, and if the N value information from the N setting register 603 is a negative value, all lines which are information from the total line number register 604. The value obtained by subtracting the N value from the number is the delay amount.

【0035】N設定レジスタ603及び全ライン数レジ
スタ604には、内部バスを通じてCPUから前記各々
の情報が転送され、格納されるようになっている。
Each of the above information is transferred from the CPU to the N setting register 603 and the total line number register 604 and stored therein.

【0036】次に、上記構成を有する符号化/復号化装
置10について、符号化時および復号化時の動作につい
てそれぞれ説明する。
Next, the operation of the encoding / decoding device 10 having the above-described configuration at the time of encoding and at the time of decoding will be described.

【0037】(符号化時)ラスター/ブロック変換部1
01では、垂直同期信号、及び水平同期信号から有効画
面の領域の判定を行い、入力された映像データをライン
メモリ11に8ライン分書き込んだ後、ラインメモリ1
1からブロック順にデータを読み出してラスターからブ
ロックへの変換を行う。そして、ブロック化されたデー
タを符号化/復号化部103へ転送する。
(At the time of encoding) Raster / block converter 1
In 01, the area of the effective screen is determined from the vertical synchronizing signal and the horizontal synchronizing signal, and the input video data is written into the line memory 11 for 8 lines, and then the line memory 1
Data is read from 1 in block order and conversion from raster to block is performed. Then, the blocked data is transferred to the encoding / decoding unit 103.

【0038】符号化/復号化部103は、ブロック化さ
れたデータに対してDCT変換および量子化を行った後
に符号化を行い、この符号化データを外部(メモリ2
4)へ出力する。そして、1画面分の有効領域(有効画
面)のデータの符号化を終えると自動的に動作を終了す
る。その後、垂直同期信号が立ち上がると、再び同じ動
作を開始することになる。
The encoding / decoding unit 103 performs DCT conversion and quantization on the block data and then encodes the coded data, and outputs the coded data to the outside (memory 2).
Output to 4). Then, when the coding of the data of the effective area (effective screen) for one screen is completed, the operation is automatically ended. After that, when the vertical synchronizing signal rises, the same operation is started again.

【0039】ここで、図3に示すように、有効画面の終
了から次の垂直同期信号までが5.5水平期間しかなか
ったとする。そして、符号化/復号化装置10の内部の
処理時間を最大1水平期間が必要であると仮定した場
合、1フィールド画像の全体に対しての符号化処理が終
了するまでには、最終画像データを入力してから8水平
期間+1水平期間の合計9水平期間が必要になる。
Here, as shown in FIG. 3, it is assumed that there is only 5.5 horizontal periods from the end of the effective screen to the next vertical synchronizing signal. If it is assumed that the processing time inside the encoding / decoding device 10 requires a maximum of one horizontal period, the final image data will be processed by the time the encoding process for the entire one-field image is completed. After inputting, a total of 9 horizontal periods of 8 horizontal periods + 1 horizontal period are required.

【0040】このような仮定の下では、例えば、STA
RT信号の発生が垂直同期信号から5水平期間だけ遅れ
るようにN値を設定する。この場合、最終画像データを
入力してからSTART信号が発生するまでに、前記
5.5水平期間+5水平期間で合計10.5水平期間が
確保される。START信号は、ラスター/ブロック変
換部101、及び符号化/復号化部102の初期化信号
となるものであり、最終画像データを入力してから1
0.5水平期間の後に初期化が行われることから、この
間に、1フィールド画像の全体に対しての符号化処理が
終了する。即ち、ラインメモリ11に格納されているデ
ータの全てを符号化することができ、正常に動作するこ
とになる。
Under such an assumption, for example, STA
The N value is set so that the generation of the RT signal is delayed by 5 horizontal periods from the vertical synchronizing signal. In this case, a total of 10.5 horizontal periods is ensured by the above 5.5 horizontal periods + 5 horizontal periods from the input of the final image data to the generation of the START signal. The START signal serves as an initialization signal for the raster / block conversion unit 101 and the encoding / decoding unit 102, and is set to 1 after the final image data is input.
Since the initialization is performed after 0.5 horizontal period, the encoding process for the entire one-field image ends during this period. That is, all the data stored in the line memory 11 can be encoded, and the normal operation is performed.

【0041】(復号化時)復号化時は、外部(CPU)
から動作開始の指示を受けると、タイミングコントロー
ル部103からSTART信号が出力され、このSTA
RT信号の立ち上がりでラスター/ブロック変換部10
1および符号化/復号化部102が初期化され、動作を
開始する。
(At the time of decryption) At the time of decryption, external (CPU)
When an operation start instruction is received from the STA, the timing control unit 103 outputs a START signal.
Raster / block converter 10 at the rise of RT signal
1 and the encoding / decoding unit 102 are initialized, and the operation is started.

【0042】即ち、符号化/復号化部102は、外部
(外部メモリ)に読み出し信号を出力することにより符
号データを読み出してその復号化を行い、復号化された
ブロックデータをラスター/ブロック変換部101に転
送する。ラスター/ブロック変換部101では、符号化
時とは逆にブロックデータをラインメモリ11に一旦書
き込み、再びラインメモリ11からデータを読み出すこ
とによりラスター順にデータを変換して出力する。出力
データは、画像の有効期間に同期して出力される。そし
て、すべての画像データを出力し終えると動作を終了す
る。動作終了後、再び垂直同期信号が入力されると、上
記動作を開始する。
That is, the encoding / decoding unit 102 reads code data by outputting a read signal to the outside (external memory) to decode the code data, and decodes the decoded block data to the raster / block conversion unit. Transfer to 101. In the raster / block conversion unit 101, the block data is once written in the line memory 11 contrary to the time of encoding, and the data is read again from the line memory 11 to convert and output the data in the raster order. The output data is output in synchronization with the valid period of the image. Then, when the output of all the image data is completed, the operation ends. When the vertical synchronizing signal is input again after the operation is completed, the above operation is started.

【0043】ここで、図4に示すように、垂直同期信号
の立ち上がりから有効画面の始まりまでの期間が4水平
期間しかなかったとする。そして、符号化/復号化装置
10の内部の処理時間を最大1水平期間が必要であると
仮定した場合、垂直同期信号の立ち上がりから有効画面
の始まりまでの期間は、8水平期間+1水平期間の合計
9水平期間が必要になる。
Here, as shown in FIG. 4, it is assumed that the period from the rising of the vertical synchronizing signal to the beginning of the effective screen is only four horizontal periods. Assuming that the processing time inside the encoding / decoding device 10 requires a maximum of 1 horizontal period, the period from the rise of the vertical synchronization signal to the start of the effective screen is 8 horizontal periods + 1 horizontal period. A total of 9 horizontal periods are required.

【0044】このような仮定の下では、例えば、STA
RT信号の発生が垂直同期信号から5水平期間だけ進む
ようにN(N=−5)を設定する。この場合、全ライン
数から“5”が減算された値が遅延量となるため、ST
ART信号が発生してから有効画面の始まりまでに、前
記4水平期間+5水平期間で合計9水平期間が確保され
る。従って、有効画面が始まるまでに、既にラインメモ
リ11への8ライン分のデータの書き込みが終了してい
ることになり、正常に復号化動作が行われることにな
る。
Under such an assumption, for example, STA
N (N = -5) is set so that the generation of the RT signal proceeds from the vertical synchronizing signal by 5 horizontal periods. In this case, the value obtained by subtracting “5” from the total number of lines is the delay amount, so ST
From the generation of the ART signal to the start of the effective screen, a total of 9 horizontal periods are secured in the above 4 horizontal periods + 5 horizontal periods. Therefore, by the start of the valid screen, the writing of the data of 8 lines to the line memory 11 has already been completed, and the decoding operation is normally performed.

【0045】なお、上記のごとく、N=−5のように遅
延量として負の設定が行えるため、垂直同期信号の立ち
上がり前後の動作開始タイミングの設定が容易になる。
即ち、外部から符号化/復号化装置10へのSTART
信号の遅延量として桁数の多い正の値を与えることに代
えてこれと等価な桁数の小さい負の値を与えることが可
能となり、当該遅延量の設定が容易に行えることにな
る。特に、走査線数の多いHDTVにおいてその利点が
大きい。
As described above, since the delay amount can be set to a negative value such as N = -5, it is easy to set the operation start timing before and after the rising of the vertical synchronizing signal.
That is, START from the outside to the encoding / decoding device 10
Instead of giving a positive value with a large number of digits as a signal delay amount, it is possible to give a negative value with a small number of digits equivalent to this, so that the delay amount can be set easily. In particular, the advantage is great in an HDTV having a large number of scanning lines.

【0046】また、本実施例では、水平同期信号をカウ
ントしてSTART信号を遅延させたが、水平同期信号
の代わりにクロックにより遅延させてもよい。
Further, in this embodiment, the horizontal synchronizing signal is counted and the START signal is delayed, but it may be delayed by a clock instead of the horizontal synchronizing signal.

【0047】[0047]

【発明の効果】以上のように、本発明によれば、垂直同
期信号のタイミングを変更させる外部回路は必要ではな
くなり、コスト低減が可能になるとともに、符号化/復
号化装置の内部レジスタに設定するパラメータ値の変更
も要しないことになる。また、符号化時および復号化時
の各々の遅延量を設定するための前記外部からの情報と
して負の値が設定できる構成とすることにより、遅延量
の設定が容易に行えるという効果も奏する。
As described above, according to the present invention, the external circuit for changing the timing of the vertical synchronizing signal is not required, the cost can be reduced, and the internal register of the encoding / decoding device can be set. Therefore, it is not necessary to change the parameter value. Further, by adopting a configuration in which a negative value can be set as the information from the outside for setting the respective delay amounts at the time of encoding and at the time of decoding, it is possible to easily set the delay amount.

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

【図1】本発明の符号化/復号化装置を示す概略のブロ
ック図である。
FIG. 1 is a schematic block diagram showing an encoding / decoding device of the present invention.

【図2】本発明の符号化/復号化装置のタイミングコン
トロール部を示す概略のブロック図である。
FIG. 2 is a schematic block diagram showing a timing control unit of the encoding / decoding device of the present invention.

【図3】本発明の符号化時における各種信号を示すタイ
ムチャートである。
FIG. 3 is a time chart showing various signals during encoding according to the present invention.

【図4】本発明の復号化時における各種信号を示すタイ
ムチャートである。
FIG. 4 is a time chart showing various signals at the time of decoding according to the present invention.

【図5】符号化/復号化装置およびその周辺回路を示す
ブロック図である。
FIG. 5 is a block diagram showing an encoding / decoding device and its peripheral circuit.

【図6】ラスター/ブロック変換を説明する概念図であ
る。
FIG. 6 is a conceptual diagram illustrating raster / block conversion.

【図7】画面の有効領域を説明する概念図である。FIG. 7 is a conceptual diagram illustrating an effective area of a screen.

【図8】従来の符号化/復号化装置を示す概略のブロッ
ク図である。
FIG. 8 is a schematic block diagram showing a conventional encoding / decoding device.

【図9】従来の符号化時において符号化が良好に行える
場合の各種信号のタイムチャートである。
[Fig. 9] Fig. 9 is a time chart of various signals in the case where encoding can be performed favorably during conventional encoding.

【図10】従来の復号化時において復号化が良好に行え
る場合の各種信号のタイムチャートである。
FIG. 10 is a time chart of various signals when good decoding can be performed during conventional decoding.

【図11】従来の符号化時において符号化が良好に行え
ない場合の各種信号のタイムチャートである。
FIG. 11 is a time chart of various signals when encoding cannot be performed favorably during conventional encoding.

【図12】従来の復号化時において復号化が良好に行え
ない場合の各種信号のタイムチャートである。
FIG. 12 is a time chart of various signals when decoding cannot be performed well in conventional decoding.

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

10 符号化/復号化装置 101 ラスター/ブロック変換部 102 符号化/復号化部 103 タイミングコントロール部 104 CPUインターフェイス 600 パルス発生回路 601 START信号遅延回路 602 遅延量算出回路 603 N設定レジスタ 604 全ライン数レジスタ 10 Encoding / decoding device 101 Raster / block conversion unit 102 Encoding / decoding unit 103 Timing control unit 104 CPU interface 600 Pulse generation circuit 601 START signal delay circuit 602 Delay amount calculation circuit 603 N setting register 604 Total line number register

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 7/24 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical indication H04N 7/24

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ディジタル化された画像データの1画面
の区切りを示す第1の信号に基づいてデジタル化された
画像データの符号化及び復号化に必要な動作を開始する
符号化/復号化装置において、前記第1の信号と周期が
同一で所定量だけ遅延され符号化及び復号化の動作を初
期化させる第2の信号を発生する手段と、符号化時およ
び復号化時の各々の遅延量を外部からの情報に基づいて
設定する手段とを備えたことを特徴とする符号化/復号
化装置。
1. An encoding / decoding device for starting an operation required for encoding and decoding of digitized image data based on a first signal indicating a division of one screen of digitized image data. A means for generating a second signal which has the same cycle as the first signal and is delayed by a predetermined amount to initialize the encoding and decoding operations, and the respective delay amounts at the time of encoding and at the time of decoding And a means for setting based on information from outside, the encoding / decoding device.
【請求項2】 符号化時および復号化時の各々の遅延量
を設定するための前記外部からの情報として負の値が設
定できるように構成されていることを特徴とする請求項
1に記載の符号化/復号化装置。
2. A negative value can be set as the information from the outside for setting each delay amount at the time of encoding and at the time of decoding. Encoding / decoding device.
JP30401194A 1994-12-07 1994-12-07 Encoding / decoding device Expired - Fee Related JP3333336B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30401194A JP3333336B2 (en) 1994-12-07 1994-12-07 Encoding / decoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30401194A JP3333336B2 (en) 1994-12-07 1994-12-07 Encoding / decoding device

Publications (2)

Publication Number Publication Date
JPH08163371A true JPH08163371A (en) 1996-06-21
JP3333336B2 JP3333336B2 (en) 2002-10-15

Family

ID=17927996

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30401194A Expired - Fee Related JP3333336B2 (en) 1994-12-07 1994-12-07 Encoding / decoding device

Country Status (1)

Country Link
JP (1) JP3333336B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007052918A1 (en) * 2005-11-02 2007-05-10 Mtekvision Co., Ltd. Image signal processor and deferred vertical synchornout signal outputting method
KR100766766B1 (en) * 2005-06-01 2007-10-17 도요다 지도샤 가부시끼가이샤 Electronic control apparatus for vehicle

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100766766B1 (en) * 2005-06-01 2007-10-17 도요다 지도샤 가부시끼가이샤 Electronic control apparatus for vehicle
US7957862B2 (en) 2005-06-01 2011-06-07 Toyota Jidosha Kabushiki Kaisha Electronic control apparatus for vehicle
WO2007052918A1 (en) * 2005-11-02 2007-05-10 Mtekvision Co., Ltd. Image signal processor and deferred vertical synchornout signal outputting method
US8154749B2 (en) 2005-11-02 2012-04-10 Mtekvision Co., Ltd. Image signal processor and deferred vertical synchronous signal outputting method

Also Published As

Publication number Publication date
JP3333336B2 (en) 2002-10-15

Similar Documents

Publication Publication Date Title
US7139020B2 (en) Digital camera including the compression of size-reduced images after picture taking is completed
JP2001275116A (en) Image processor
JP3114228B2 (en) Image processing device
US7336302B2 (en) Frame memory device and method with subsampling and read-out of stored signals at lower resolution than that of received image signals
US6661452B1 (en) Digital camera capable of decreasing a required memory capacity
JPH08294115A (en) Apparatus and method for decoding mpeg
KR100207705B1 (en) Apparatus and method of addressing for dct block and raster scan
JP3333336B2 (en) Encoding / decoding device
CN101867808B (en) Method for accessing image data and relevant device thereof
Okada et al. A single chip motion JPEG codec LSI
US20070008325A1 (en) Method and apparatus providing for high efficiency data capture for compression encoding
JPH09275563A (en) Compressed image data decoding device having osd function and osd data compression method used for the decoding device
JPS63217783A (en) Television telephone system
KR100219176B1 (en) Apparatus and method of image data scaling
JPH1070735A (en) Digital still camera
JP2006171524A (en) Image processor
JPH1023403A (en) Device for decoding and displaying encoded picture data
JP2002125145A (en) Image pickup device and drive method for solid-state image pickup element
JP3233480B2 (en) Image compression / expansion circuit device
JP4167730B2 (en) Video compression / decompression apparatus and computer system
KR100202560B1 (en) Apparatus and method displaing gray-level image in television having fax function
JPH11220731A (en) Picture processor
JPH08115200A (en) Image processing system
JPS61192185A (en) Two-screen television receiver
JPH11306340A (en) Image pickup display device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070726

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080726

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090726

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090726

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100726

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110726

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees