JP2001346221A - Video encoder - Google Patents

Video encoder

Info

Publication number
JP2001346221A
JP2001346221A JP2000164152A JP2000164152A JP2001346221A JP 2001346221 A JP2001346221 A JP 2001346221A JP 2000164152 A JP2000164152 A JP 2000164152A JP 2000164152 A JP2000164152 A JP 2000164152A JP 2001346221 A JP2001346221 A JP 2001346221A
Authority
JP
Japan
Prior art keywords
address
signal
frequency
rom
color
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
JP2000164152A
Other languages
Japanese (ja)
Inventor
Yasunori Kawamura
泰則 河村
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.)
Rohm Co Ltd
Original Assignee
Rohm 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 Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP2000164152A priority Critical patent/JP2001346221A/en
Publication of JP2001346221A publication Critical patent/JP2001346221A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Of Color Television Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a video encoder capable of suppressing the capacity of a memory required for generation of a chrominance subcarrier from being increased, dealing with color television systems and eliminating the shift of an SCH phase. SOLUTION: In the case that shifting an address given to a ROM 2 synchronously with a clock signal of primary color signals R, G, B uses a signal read from the ROM 2 for a chrominance subcarrier, number of shifts from an address having been given just before an address going to be given to the ROM 2 at an interval of one horizontal scanning period is corrected depending on an error between actual number of shifts and number of shifts when the frequency of the signal read from the ROM 2 is equal to the frequency of the chrominance subcarrier with respect to number of shifts for one horizontal scanning period of an address given to the ROM 2.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、デジタルの原色信
号から映像信号を生成するビデオエンコーダに関するも
のである。
[0001] 1. Field of the Invention [0002] The present invention relates to a video encoder for generating a video signal from a digital primary color signal.

【0002】[0002]

【従来の技術】ビデオエンコーダでは、赤、緑、青のそ
れぞれの原色信号から、通常、輝度信号、搬送色信号
(クロマ信号)、及び、複合カラー映像信号(コンポジ
ット信号)の3つの信号を生成する。NTSC方式の場
合には、原色信号R、G、Bと、輝度信号Y及び搬送色
信号Cとの間には次のような関係がある。
2. Description of the Related Art In a video encoder, three signals of a luminance signal, a carrier chrominance signal (chroma signal), and a composite color video signal (composite signal) are generally generated from red, green, and blue primary color signals. I do. In the case of the NTSC system, the following relationship exists between the primary color signals R, G, and B, and the luminance signal Y and the carrier color signal C.

【0003】 Y=0.299・R+0.587・G+0.144・B C={(R−Y)/1.14}・cos(ωt)+
{(B−Y)/2.08}・sin(ωt) 但し、色副搬送波の周波数をfSCとすると、ω=2πf
SCである。尚、NTSC方式の場合には、fSC=3.5
79545[MHz]である。
[0003] Y = 0.299 R + 0.587 G + 0.144 BC C = {(RY) /1.14} .cos (ωt) +
{(B−Y) /2.08} · sin (ωt) where ω = 2πf, where f SC is the frequency of the color subcarrier.
SC . In the case of the NTSC system, f SC = 3.5
79545 [MHz].

【0004】したがって、搬送色信号Cを生成するため
には、位相が90゜ずれた2つの色副搬送波sin(ω
t)及びcos(ωt)が必要となるが、原色信号R、
G、Bがデジタル信号である場合には、sin(ωt)
及びcos(ωt)の値を所定の位相毎にアドレスと対
応づけてメモリに記憶させておき、読み出すアドレスを
原色信号のクロック信号に同期してシフトさせながらメ
モリから読み出すことにより、2つの色副搬送波sin
(ωt)及びcos(ωt)を生成している。
Therefore, in order to generate the carrier chrominance signal C, two color sub-carriers sin (ω
t) and cos (ωt) are required, but the primary color signals R,
When G and B are digital signals, sin (ωt)
And the value of cos (ωt) are stored in the memory in association with the address for each predetermined phase, and the address to be read out is read out from the memory while being shifted in synchronization with the clock signal of the primary color signal, so that the two color Carrier sin
(Ωt) and cos (ωt).

【0005】ここで、メモリに記憶させるsin(ω
t)及びcos(ωt)の値をどのようにして決定する
かについて説明する。メモリ内のアドレスのビット数を
nとすると、メモリのアドレス数は2nであるので、s
in(ωt)及びcos(ωt)に関して、0[deg]で
の値、(1/2n)・360[deg]での値、(2/2n
・360[deg]での値、…、{(2n−1)/2n}・3
60[deg]での値をそれぞれメモリのアドレス0、1、
2、…、2n−1に記憶させておく。
Here, sin (ω) to be stored in the memory
How to determine the values of t) and cos (ωt) will be described. Assuming that the number of bits of the address in the memory is n , the number of addresses of the memory is 2 n , so s
Regarding in (ωt) and cos (ωt), values at 0 [deg], values at (1/2 n ) · 360 [deg], (2/2 n )
・ Value at 360 [deg], ..., {(2 n -1) / 2 n } 3
The values at 60 [deg] are stored at addresses 0, 1, and
2,..., 2 n -1.

【0006】そして、クロック信号の1周期に相当する
数だけ、クロック信号に同期してアドレスをシフトさせ
ていけば、メモリからは位相が90゜ずれた2つの色副
搬送波sin(ωt)及びcos(ωt)が出力され
る。尚、クロック信号の1周期に相当するアドレスのシ
フト数ISは、クロック信号の周波数fCLKに対して、 IS=(fSC/fCLK)・2n である。
If the address is shifted by a number corresponding to one cycle of the clock signal in synchronization with the clock signal, two color subcarriers sin (ωt) and cos whose phases are shifted by 90 ° from the memory. (Ωt) is output. The address shift number IS corresponding to one cycle of the clock signal is IS = (f SC / f CLK ) · 2 n with respect to the frequency f CLK of the clock signal.

【0007】例えば、メモリのアドレスが10ビットで
ある場合には、図4の(イ)に示すように、それぞれ振
幅が1であるsin波A、cos波Bのそれぞれについ
て、位相が0から(1/210)・360[deg]おきの値
を、図4の(ロ)に示すように、アドレス0から順にメ
モリに記憶させておく。
For example, when a memory address is 10 bits, as shown in FIG. 4A, the phase of each of a sine wave A and a cos wave B having an amplitude of 1 is changed from 0 to ( As shown in (b) of FIG. 4, values every 1/2 10 ) · 360 [deg] are stored in the memory in order from address 0.

【0008】そして、クロック信号の周波数fCLK=1
3.5[MHz]、NTSC方式(色副搬送波の周波数fSC
3.579545[MHz])であるとともに、アドレスをシ
フトさせる演算をメモリのアドレスと同じ10ビットで
行うとすると、アドレスのシフト数Sを、その理論値I
Sが IS=(3.579545/13.5)・210 =271.515117… となるので、理論値ISの小数点以下を四捨五入した値
に設定しておけばよい、 すなわち、S=272 に設定しておけばよい。
The frequency f CLK of the clock signal is f = 1
3.5 [MHz], NTSC system (color subcarrier frequency f SC =
3.579545 [MHz]), and if the operation of shifting the address is performed with the same 10 bits as the address of the memory, the number of address shifts S is calculated by the theoretical value I
Since S is given by IS = (3.579545 / 13.5) · 2 10 = 271.515117..., The theoretical value IS may be set to a value obtained by rounding off the decimal point, that is, S = 272. You should keep it.

【0009】この方式には、アドレスのシフト数を可変
としておくことによって、メモリから読み出して得られ
る信号の周波数を調整することができるので、メモリの
容量を抑制した上で、NTSC、PAL、PAL−M、
PAL−N等の色副搬送波の周波数が異なる複数のテレ
ビジョン方式に対応することができるという利点があ
る。
In this method, the frequency of a signal read from the memory can be adjusted by changing the number of address shifts, so that the capacity of the memory can be suppressed and the NTSC, PAL, PAL can be adjusted. −M,
There is an advantage that it is possible to cope with a plurality of television systems having different frequencies of color subcarriers such as PAL-N.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、アドレ
スのシフト数は理論値の小数点以下を切り捨てた近似値
であることから、色副搬送波として生成される信号の周
波数は理論上の値に対して誤差をもっている。このた
め、SCH位相(NTSC方式では水平同期信号と色副
搬送波のゼロクロス点との位置関係を意味する)がずれ
るという問題があった。
However, since the number of address shifts is an approximate value obtained by truncating the decimal part of the theoretical value, the frequency of the signal generated as the chrominance subcarrier has an error with respect to the theoretical value. Have. For this reason, there has been a problem that the SCH phase (which means the positional relationship between the horizontal synchronization signal and the zero cross point of the color subcarrier in the NTSC system) is shifted.

【0011】そこで、本発明は、色副搬送波の生成に必
要となるメモリの容量の増大を抑制した上で、複数のカ
ラーテレビジョン方式に対応することができ、かつ、S
CH位相のずれを解消することができるようにしたビデ
オエンコーダを提供することを目的とする。
Therefore, the present invention can cope with a plurality of color television systems while suppressing an increase in the memory capacity required for generating color subcarriers, and
An object of the present invention is to provide a video encoder capable of eliminating a CH phase shift.

【0012】[0012]

【課題を解決するための手段】上記の目的を達成するた
め、本発明では、原色信号から色差信号を生成する色差
信号生成手段と、クロック信号に同期して所定数ずつシ
フトするアドレスを生成するアドレス生成手段と、正弦
波の複数の位相における値を記憶しているとともに、前
記アドレス生成手段により生成されたアドレスに記憶し
ている値を出力する記憶手段と、前記色差信号生成手段
により生成された色差信号と、前記記憶手段から出力さ
れた信号とを乗算する乗算手段と、を備えたビデオエン
コーダにおいて、前記アドレス生成手段で生成されるア
ドレスの1水平走査期間におけるシフト数と、前記記憶
手段から出力される信号の周波数が色副搬送波の周波数
となるときの、前記記憶手段に与えられるアドレスの1
水平走査期間におけるシフト数との誤差が小さくなるよ
うに、前記アドレス生成手段におけるアドレスのシフト
数を補正する手段を設けている。
In order to achieve the above object, according to the present invention, a color difference signal generating means for generating a color difference signal from a primary color signal, and an address which is shifted by a predetermined number in synchronization with a clock signal are generated. Address generating means, storing means for storing values at a plurality of phases of the sine wave, outputting the value stored at the address generated by the address generating means, and generating the color difference signal generated by the color difference signal generating means. And a multiplication unit for multiplying the color difference signal and the signal output from the storage unit, wherein the number of shifts of the address generated by the address generation unit in one horizontal scanning period; Of the address given to the storage means when the frequency of the signal output from
Means is provided for correcting the number of address shifts in the address generation means so that an error from the number of shifts in the horizontal scanning period is reduced.

【0013】この構成により、クロック信号の周波数と
1水平走査期間の周波数との関係、及び、色副搬送波の
周波数と1水平走査期間の周波数とアドレスをシフトさ
せる演算のビット数との関係によっては、1水平走査期
間おきに見た場合には、上記記憶手段から出力される信
号の周波数と色副搬送波の周波数との誤差が0となるよ
うにすることができる。
With this configuration, depending on the relationship between the frequency of the clock signal and the frequency in one horizontal scanning period, and the relationship between the frequency of the color subcarrier, the frequency in one horizontal scanning period, and the number of bits of the operation for shifting the address. When viewed every other horizontal scanning period, the error between the frequency of the signal output from the storage means and the frequency of the color subcarrier can be made zero.

【0014】[0014]

【発明の実施の形態】以下に、本発明の実施形態を図面
を参照しながら説明する。本発明の一実施形態であるビ
デオエンコーダのブロック図を図1に示す。輝度・色差
信号生成回路1は、8ビットのデジタル信号である原色
信号R、G、Bから、輝度信号Y及び色差信号R−Y、
B−Yを生成する。尚、輝度・色差信号生成回路1で生
成された色差信号R−Y、B−Yは振幅がそれぞれ1/
1.14、1/2.08に制限されている。尚、本実施形
態では、原色信号R、G、Bのクロック信号の周波数は
13.5[MHz]である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a block diagram of a video encoder according to an embodiment of the present invention. The luminance / color difference signal generation circuit 1 converts a luminance signal Y and a color difference signal RY, from primary color signals R, G, and B, which are 8-bit digital signals.
Generate BY. The color difference signals RY and BY generated by the luminance / color difference signal generation circuit 1 have amplitudes of 1 /
It is limited to 1.14, 1 / 2.08. In the present embodiment, the frequency of the clock signals of the primary color signals R, G, and B is 13.5 [MHz].

【0015】ROM2は、それぞれ振幅が1であるsi
n波、cos波の所定の位相における値を、位相とアド
レスとを対応づけた上で、それぞれsin値、cos値
として記憶しており、アドレス演算回路3から与えられ
るアドレスに記憶しているsin値、cos値をそれぞ
れ端子O1、O2から出力する。
The ROM 2 stores si signals each having an amplitude of 1.
The values of the predetermined phases of the n-wave and the cos-wave are stored as a sin value and a cos value, respectively, after associating the phase with the address, and stored at the address given from the address operation circuit 3. The value and the cos value are output from terminals O1 and O2, respectively.

【0016】アドレス演算回路3は、選択されたカラー
テレビジョン方式での色副搬送波の周波数をそれぞれも
つsin波、cos波をクロック信号の周波数でサンプ
リングしたときに得られる値がROM2の端子O1、O
2からそれぞれ出力されるように、ROM2に対してア
ドレスを与える。尚、アドレス演算回路3は、セレクト
信号Seを入力しており、選択されたカラーテレビジョ
ン方式をセレクト信号Seによって認識するようになっ
ている。
The address arithmetic circuit 3 calculates a value obtained when a sine wave and a cosine wave having the frequency of the color subcarrier in the selected color television system are sampled at the frequency of the clock signal. O
2 is given an address to the ROM 2 so as to be output from the ROM 2 respectively. The address calculation circuit 3 receives the select signal Se and recognizes the selected color television system by the select signal Se.

【0017】これにより、ROM2の端子O1から出力
される信号と、端子O2から出力される信号と2つの信
号は位相が90゜ずれた2つの色副搬送波となる。そし
て、ROM2の端子O1から出力される信号は、乗算回
路4により、輝度・色差信号生成回路1から出力される
色差信号B−Yと乗算される。一方、ROM2の端子O
2から出力される信号は、乗算回路5により、輝度・色
差信号生成回路1から出力される色差信号R−Yと乗算
される。
As a result, the signal output from the terminal O1 of the ROM 2 and the signal output from the terminal O2 become two color subcarriers whose phases are shifted by 90 °. Then, the signal output from the terminal O1 of the ROM 2 is multiplied by the multiplication circuit 4 with the color difference signal BY output from the luminance / color difference signal generation circuit 1. On the other hand, the terminal O of the ROM 2
The signal output from 2 is multiplied by the multiplication circuit 5 with the color difference signal RY output from the luminance / color difference signal generation circuit 1.

【0018】但し、ROM2の端子O2から出力される
信号については、NTSC方式の映像信号を生成する場
合には、スイッチ6が端子a側に固定されるようになっ
ており、そのまま乗算回路5に入力されるが、PAL方
式の映像信号を生成する場合には、1水平走査期間毎に
スイッチ6が端子a側と端子b側とに交互に切り換わる
ようになっており、端子b側では反転回路7を介して乗
算回路5に入力される、すなわち、1水平走査期間毎に
極性が反転して乗算回路5に入力される。
However, as for the signal output from the terminal O2 of the ROM 2, when generating an NTSC video signal, the switch 6 is fixed to the terminal a side. When a PAL video signal is generated, the switch 6 is alternately switched between the terminal a and the terminal b every horizontal scanning period. The signal is input to the multiplication circuit 5 via the circuit 7, that is, the polarity is inverted every horizontal scanning period before being input to the multiplication circuit 5.

【0019】加算回路8は、乗算回路4で得られた信号
と乗算回路5で得られた信号とを加算する。これによ
り、選択されたカラーテレビジョンの方式に対応した搬
送色信号Cが生成される。バースト抜き取り回路9は、
ROM2の端子O1から出力される信号を反転回路10
を介して入力しており、入力する信号を所定の位置で取
り出す。バースト抜き取り回路9で取り出される信号
は、加算回路11により、搬送色信号Cのバックポーチ
にカラーバーストとして挿入される。
The addition circuit 8 adds the signal obtained by the multiplication circuit 4 and the signal obtained by the multiplication circuit 5. As a result, a carrier color signal C corresponding to the selected color television system is generated. The burst sampling circuit 9
The signal output from the terminal O1 of the ROM 2 is inverted
, And the input signal is extracted at a predetermined position. The signal extracted by the burst extraction circuit 9 is inserted by the addition circuit 11 into the back porch of the carrier chrominance signal C as a color burst.

【0020】輝度・色差信号生成回路1で生成される輝
度信号Yは、加算回路12で水平同期信号、垂直同期信
号などの各種の同期信号から成る複合同期信号SYCが
加算される。加算回路11で得られた搬送色信号Cと加
算回路12で得られた輝度信号Yとは加算回路13で加
算される。これにより、複合カラー映像信号Vが生成さ
れる。
The luminance signal Y generated by the luminance / color difference signal generating circuit 1 is added to a composite synchronizing signal SYC composed of various synchronizing signals such as a horizontal synchronizing signal and a vertical synchronizing signal by an adding circuit 12. The carrier chrominance signal C obtained by the addition circuit 11 and the luminance signal Y obtained by the addition circuit 12 are added by the addition circuit 13. As a result, a composite color video signal V is generated.

【0021】以下、ROM2及びアドレス演算回路3に
ついて、さらに詳しく説明する。本実施形態では、RO
M2のアドレスは10ビットであり、前述したように
(図4参照)、sin値、cos値として、アドレス0
には0、1を、…、アドレス256には1、0を、…、
アドレス512には0、−1を、…、アドレス768に
は−1、0、…をそれぞれ記憶している。
Hereinafter, the ROM 2 and the address arithmetic circuit 3 will be described in more detail. In the present embodiment, RO
The address of M2 is 10 bits, and as described above (see FIG. 4), the address 0 is used as the sin value and the cos value.
, 0, 1, ..., address 256, 1, 0, ...,
The address 512 stores 0, -1,..., And the address 768 stores -1, 0,.

【0022】アドレス演算回路3では、ROM2のアド
レスよりも多いビット数で演算を行い、その演算結果を
ROM2のアドレスのビット数に変換することにより、
ROM2に対して与えるアドレスを求めるようになって
いる。本実施形態では、20ビットで演算を行い、演算
結果を10ビットに変換するようになっている。
The address operation circuit 3 performs an operation with a larger number of bits than the address of the ROM 2, and converts the operation result into the number of bits of the address of the ROM 2.
An address to be given to the ROM 2 is obtained. In this embodiment, the operation is performed with 20 bits, and the operation result is converted into 10 bits.

【0023】アドレス演算回路3の内部構成を図2に示
す。加算値設定回路31は、選択されたカラーテレビジ
ョン方式をセレクト信号Seによって認識し、通常は、
選択されたカラーテレビジョン方式に応じたシフト値を
出力する。
FIG. 2 shows the internal configuration of the address arithmetic circuit 3. The addition value setting circuit 31 recognizes the selected color television system by the select signal Se, and usually,
The shift value corresponding to the selected color television system is output.

【0024】また、アドレス演算回路3は、シフト値に
第1補正値を加算した値を、周波数が13.5[MHz]のク
ロック信号に1水平走査期間おきに現れるパルスに同期
して、シフト値の代わりに出力する。具体的には、例え
ば、後述するフリップフロップ回路33のクロック信号
CLKのパルスのうち、1水平走査期間の最後に含まれ
るパルスのトリガエッジの後から、次の1水平走査期間
の2つ目に含まれるパルスのトリガエッジの前までの間
のみ、シフト値の代わりに、シフト値に第1補正値を加
算した値を出力する。
The address operation circuit 3 applies a value obtained by adding the first correction value to the shift value in synchronization with a pulse appearing every other horizontal scanning period in a clock signal having a frequency of 13.5 [MHz]. Output instead of the value. Specifically, for example, after the trigger edge of the pulse included at the end of one horizontal scanning period among the pulses of the clock signal CLK of the flip-flop circuit 33 described later, for the second in the next one horizontal scanning period Only before the trigger edge of the included pulse, a value obtained by adding the first correction value to the shift value is output instead of the shift value.

【0025】さらに、アドレス演算回路3は、PAL方
式あるいはPAL−N方式が選択されている場合には、
シフト値に第1補正値及び第2補正値を加算した値を、
周波数が13.5[MHz]のクロック信号に1フレームおき
に現れるパルスに同期して、シフト値の代わりに出力す
る。具体的には、例えば、後述するフリップフロップ回
路33のクロック信号CLKのパルスのうち、1フレー
ムの最後に含まれるパルスのトリガエッジの後から、次
の1フレームの2つ目に含まれるパルスのトリガエッジ
の前までの間のみ、シフト値の代わりに、シフト値に第
1補正値及び第2補正値を加算した値を出力する。
Further, when the PAL system or the PAL-N system is selected, the address arithmetic circuit 3
A value obtained by adding the first correction value and the second correction value to the shift value,
It is output in place of a shift value in synchronization with a pulse appearing every other frame in a clock signal having a frequency of 13.5 [MHz]. Specifically, for example, of the pulses of the clock signal CLK of the flip-flop circuit 33 described later, after the trigger edge of the pulse included at the end of one frame, the pulse included in the second pulse of the next one frame Only before the trigger edge, a value obtained by adding the first correction value and the second correction value to the shift value is output instead of the shift value.

【0026】加算器32は、加算値設定回路31の出力
(20ビット)とフリップフロップ回路33の出力(2
0ビット)とを加算し、その加算結果を20ビットで出
力する。尚、加算回路32は桁あふれを無視して加算を
行うようになっており、加算回路32からは、加算結果
が1048576(=220)以上となったときには、加
算結果から1048576を減じた値が出力される。
The adder 32 outputs the output (20 bits) of the addition value setting circuit 31 and the output (2
0 bit) and outputs the addition result in 20 bits. The addition circuit 32 ignores overflow, and performs addition. When the addition result is 1048576 (= 2 20 ) or more, the addition circuit 32 subtracts 1048576 from the addition result. Is output.

【0027】加算回路32の出力(20ビット)はフリ
ップフロップ33に入力されている。フリップフロップ
33は周波数が13.5[MHz]のクロック信号CLKに同
期して動作する。よって、フリップフロップ回路33か
ら出力される値はクロック信号CLKに同期して加算値
設定回路31から出力される値だけ大きくなる。換算回
路34は、フリップフロップ回路33の出力(20ビッ
ト)を1024で除算することにより10ビットに変換
して出力する。そして、換算回路34の出力がROM2
に対してアドレスとして与えられる。
The output (20 bits) of the adding circuit 32 is input to the flip-flop 33. The flip-flop 33 operates in synchronization with a clock signal CLK having a frequency of 13.5 [MHz]. Therefore, the value output from flip-flop circuit 33 increases by the value output from addition value setting circuit 31 in synchronization with clock signal CLK. The conversion circuit 34 converts the output (20 bits) of the flip-flop circuit 33 into 1024 by dividing the output (1024 bits) into 10 bits and outputs the result. The output of the conversion circuit 34 is stored in the ROM 2
Is given as an address.

【0028】このように、sin値及びcos値を記憶
したROM2に与えるアドレスをシフトさせる演算をR
OM2のアドレスよりも多いビット数で行うことによ
り、アドレスのシフト数に含まれる誤差が小さくなるの
で、より精度の高い色副搬送波を生成することができ
る。
As described above, the operation of shifting the address given to the ROM 2 storing the sin value and the cos value is performed by R
By using a larger number of bits than the address of the OM2, the error included in the number of address shifts is reduced, so that a more accurate color subcarrier can be generated.

【0029】加算値設定回路31におけるシフト値、第
1補正値、及び、第2補正値について説明する。まず、
シフト値は、理論上のシフト数(すなわち、ROM2か
ら出力される信号の周波数を色副搬送波の周波数にする
ために、ROM2に与えるアドレスをクロック信号に同
期して1回毎にシフトさせるべき数)の小数点以下を四
捨五入した値に設定されている。尚、上記理論上のシフ
ト数ISは、色副搬送波の周波数fSC、クロック信号の
周波数fCLK、演算ビット数nに対して、IS=(fSC
/fCLK)・2nである。
The shift value, the first correction value, and the second correction value in the addition value setting circuit 31 will be described. First,
The shift value is a theoretical shift number (that is, a number by which an address given to the ROM 2 should be shifted each time in synchronization with a clock signal in order to make the frequency of the signal output from the ROM 2 the frequency of the color subcarrier). ) Is rounded down to the decimal point. Note that the theoretical shift number IS is IS = (f SC , with respect to the frequency f SC of the color subcarrier, the frequency f CLK of the clock signal, and the number of operation bits n.
/ FCLK ) 2n .

【0030】すなわち、本実施形態ではクロック信号の
周波数fCLK=13.5[MHz]、演算ビット数n=20で
あるので、NTSC方式(色副搬送波の周波数fSC
3.579545[MHz])が選択されている場合には、 IS=(3.579545/13.5)・220 =278031.4798… であるので、シフト値Sは、 S=278031 となる。
That is, in the present embodiment, since the frequency f CLK of the clock signal is 13.5 [MHz] and the number of operation bits is n = 20, the NTSC system (frequency f SC of the color subcarrier =
When 3.579545 [MHz] is selected, IS = (3.579545 / 13.5) · 2 20 = 278031.4798..., And the shift value S is S = 278031.

【0031】また、PAL方式(fSC=4.43361
875[MHz])が選択されている場合には、 IS=(4.43361875/13.5)・220 =344369.3492… であるので、シフト値Sは、 S=344369 となる。
The PAL system (f SC = 4.44331)
875 [MHz]), IS = (4.43361875 / 13.5) · 2 20 = 344369.3492..., And the shift value S is S = 344369.

【0032】また、PAL−M方式(fSC=3.575
61149[MHz])が選択されている場合には、 IS=(3.57561149/13.5)・220 =277725.955… であるので、シフト値Sは、 S=277726 となる。
The PAL-M system (f SC = 3.575)
When 61149 [MHz] is selected, since IS = (3.57561149 / 13.5) · 2 20 = 277725.955..., The shift value S is S = 277726.

【0033】また、PAL−N方式(fSC=3.582
05625[MHz])が選択されている場合には、 IS=(3.58205625/13.5)・220 =278226.5344… であるので、シフト値Sは、 S=278227 となる。
The PAL-N system (f SC = 3.582)
If 05625 [MHz]) is selected, then IS = (3.5820625 / 13.5) · 2 20 = 2782266.5344..., And the shift value S is S = 278227.

【0034】ここで、1水平走査期間のROM2から出
力される信号の波数と、1水平走査期間に含まれる色副
搬送波の波数との誤差EWNは、水平同期信号の周波数f
H、色副搬送波の周波数fSC、ROM2から出力される
信号の周波数fSC’に対して、 EWN=fSC’/fH−fSC/fH である。
Here, the error E WN between the wave number of the signal output from the ROM 2 during one horizontal scanning period and the wave number of the color subcarrier included in one horizontal scanning period is the frequency f of the horizontal synchronizing signal.
H, the color subcarrier frequency f SC, the signal output from the ROM 2 'with respect to, E WN = f SC' frequency f SC is a / f H -f SC / f H .

【0035】また、ROM2から出力される信号の
SC’は、加算値設定回路31から出力されるシフト値
S、クロック信号の周波数fCLKに対して、 fSC’=(S/220)・fCLK である。
The signal f SC ′ output from the ROM 2 is f SC ′ = (S / 2 20 ) with respect to the shift value S output from the addition value setting circuit 31 and the frequency f CLK of the clock signal. -F CLK .

【0036】したがって、上記誤差EWNに相当するアド
レス数(以下、「1水平走査期間におけるアドレスの誤
差」と称する)EADRSは、 EADRS=EWN・220 であることから、 EADRS=(fSC’/fH−fSC/fH)・220 =S・(fCLK/fH)−(fSC/fH)・220 となる。
Therefore, the number of addresses E ADRS corresponding to the error E WN (hereinafter, referred to as “address error in one horizontal scanning period”) is E ADRS = E WN · 2 20 , so that E ADRS = (f SC '/ f H -f SC / f H) · 2 20 = S · (f CLK / f H) - a (f SC / f H) · 2 20.

【0037】NTSC方式では、 S=278031 fCLK/fH=858 fSC/fH=227.5 であるので、 EADRS=−442 となる。In the NTSC system, since S = 278031 f CLK / f H = 858 f SC / f H = 227.5, E ADRS = −442.

【0038】PAL方式では、 S=344369 fCLK/fH=864 fSC/fH=283.7516 であるので、 EADRS=−301.7216 となる。In the PAL system, S = 344369 f CLK / f H = 864 f SC / f H = 283.7516, so that E ADRS = −301.7216.

【0039】PAL−M方式では、 S=277726 fCLK/fH=858 fSC/fH=227.25 であるので、 EADRS=13 となる。In the PAL-M system, since S = 277726 f CLK / f H = 858 f SC / f H = 227.25, E ADRS = 13.

【0040】PAL−N方式では、 S=278227 fCLK/fH=864 fSC/fH=229.2516 であるので、 EADRS=402.2784 となる。In the PAL-N system, since S = 278227 f CLK / f H = 864 f SC / f H = 229.2516, E ADRS = 402.2784.

【0041】そして、第1補正値は、1水平走査期間に
おけるアドレスの誤差EADRSの符号を反転させた上で絶
対値を四捨五入した値に設定されている。すなわち、N
TSC方式が選択されている場合には、第1補正値H
が、 H=442 となる。
The first correction value is set to a value obtained by inverting the sign of the address error E ADRS in one horizontal scanning period and then rounding the absolute value. That is, N
When the TSC method is selected, the first correction value H
Becomes H = 442.

【0042】PAL方式が選択されている場合には、第
1補正値Hが、 H=302 となる。
When the PAL system is selected, the first correction value H is H = 302.

【0043】PAL−M方式が選択されている場合に
は、第1補正値Hが、 H=−13 となる。
When the PAL-M system is selected, the first correction value H is H = -13.

【0044】PAL−N方式が選択されている場合に
は、第1補正値Hが、 H=−402 となる。
When the PAL-N system is selected, the first correction value H is H = -402.

【0045】以上より、NTSC方式及びPAL−M方
式が選択されている場合には、ROM2から出力される
信号の周波数が色副搬送波の周波数になるときの、RO
M2に与えられるアドレスの1水平走査期間におけるシ
フト数だけ、ROM2に与えられるアドレスが1水平走
査期間にシフトし、すなわち、1水平走査期間おきに見
た場合にはROM2から出力される信号の周波数と色副
搬送波の周波数との誤差が0となり、これにより、SC
H位相のずれを解消することができるようになる。
As described above, when the NTSC system and the PAL-M system are selected, the RO when the frequency of the signal output from the ROM 2 becomes the frequency of the chrominance subcarrier is determined.
The address given to the ROM 2 shifts in one horizontal scanning period by the number of shifts of the address given to M2 in one horizontal scanning period, that is, the frequency of the signal output from the ROM 2 when viewed every other horizontal scanning period. And the frequency of the chrominance subcarrier is zero, which results in SC
H phase shift can be eliminated.

【0046】ここで、−EADRS(1水平走査期間におけ
るアドレスの誤差EADRSの符号を反転させたもの)に対
して第1補正値が誤差(EADRSHをもっているとする
と、ROM2に与えられるアドレスが本来与えるべきア
ドレスに対して誤差(EADRSHずつ1水平走査期間毎
にずれていくので、1フレームで蓄積されるアドレスの
ずれ(以下、「1フレームにおけるアドレスの誤差」と
称する)(EADRSVは、1水平走査期間の周波数fH
1フレームの周波数fVに対して、 (EADRSV=(EADRSH・(fH/fV) である。
Here, assuming that the first correction value has an error (E ADRS ) H with respect to -E ADRS (the result of inverting the sign of the address error E ADRS during one horizontal scanning period), the value is given to the ROM 2. The address to be given is shifted by an error (E ADRS ) H from the address to be provided for each horizontal scanning period, so that the address stored in one frame is shifted (hereinafter referred to as “address error in one frame”). ) (E ADRS ) V is the frequency f H during one horizontal scanning period,
For a frequency f V of one frame, (E ADRS ) V = (E ADRS ) H · (f H / f V ).

【0047】NTSC方式及びPAL−M方式では、 (EADRSH=0 であるので、 (EADRSV=0 となる。In the NTSC system and the PAL-M system, since (E ADRS ) H = 0, (E ADRS ) V = 0.

【0048】PAL方式では、 (EADRSH=302−301.7216=0.2784 fH/fV=625 であるので、 (EADRSV=0.2784・625=174 となる。In the PAL system, (E ADRS ) H = 302−301.7216 = 0.2784 f H / f V = 625, so that (E ADRS ) V = 0.2784 · 625 = 174.

【0049】PAL−N方式では、 (EADRSH=−402−(−402.2784)=0.
2784 fH/fV=625 であるので、 (EADRSV=0.2784・625=174 となる。
In the PAL-N system, (E ADRS ) H = −402 − (− 402.2784) = 0.
Since 2784 f H / f V = 625, (E ADRS ) V = 0.2784 · 625 = 174.

【0050】そして、第2補正値は、1フレームにおけ
るアドレスの誤差(EADRSVの符号を反転させた値に
設定されている。すなわち、NTSC方式またはPAL
−M方式が選択されている場合には、第2補正値Vが、 V=0 となる。
The second correction value is set to a value obtained by inverting the sign of the address error (E ADRS ) V in one frame. That is, NTSC or PAL
When the −M method is selected, the second correction value V becomes V = 0.

【0051】PAL方式またはPAL−N方式が選択さ
れている場合には、第2補正値Vが、 V=−174 となる。尚、選択されたカラーテレビジョン方式、シフ
ト値、第1補正値、及び、第2補正値との関係をまとめ
た表を図3に示しておく。
When the PAL system or the PAL-N system is selected, the second correction value V becomes V = -174. FIG. 3 shows a table summarizing the relationship between the selected color television system, shift value, first correction value, and second correction value.

【0052】以上より、PAL方式またはPAL−N方
式が選択されている場合にも、ROM2から出力される
信号の周波数が色副搬送波の周波数になるときの、RO
M2に与えられるアドレスの1フレームにおけるシフト
数だけ、ROM2に与えられるアドレスが1フレームに
シフトし、すなわち、1フレームおきに見た場合にはR
OM2から出力される信号の周波数と色副搬送波の周波
数との誤差が0となり、これにより、SCH位相のずれ
を解消することができるようになる。
As described above, even when the PAL system or the PAL-N system is selected, the RO when the frequency of the signal output from the ROM 2 becomes the frequency of the chrominance subcarrier is obtained.
The address given to the ROM 2 shifts to one frame by the number of shifts of the address given to M2 in one frame.
The error between the frequency of the signal output from the OM2 and the frequency of the chrominance subcarrier becomes zero, thereby making it possible to eliminate the SCH phase shift.

【0053】[0053]

【発明の効果】以上説明したように、本発明によれば、
色副搬送波の生成に必要となるメモリの容量の増大を抑
制した上で、複数のカラーテレビジョン方式に対応する
ことができるようにしたビデオエンコーダにおいて、ク
ロック信号の周波数と1水平走査期間の周波数との関
係、及び、色副搬送波の周波数と1水平走査期間の周波
数とアドレスをシフトさせる演算のビット数との関係に
よっては、1水平走査期間おきに見た場合には、メモリ
から読み出すことにより色副搬送波として生成した信号
の周波数と本来の色副搬送波の周波数との誤差が0とな
るようにすることができるので、SCH位相のずれを解
消することができるようになる。
As described above, according to the present invention,
In a video encoder capable of coping with a plurality of color television systems while suppressing an increase in the memory capacity required for generating a color subcarrier, the frequency of a clock signal and the frequency of one horizontal scanning period And the relationship between the frequency of the color subcarrier, the frequency of one horizontal scanning period, and the number of bits of the operation for shifting the address, the data is read out from the memory when viewed every other horizontal scanning period. Since the error between the frequency of the signal generated as the color subcarrier and the frequency of the original color subcarrier can be made zero, it is possible to eliminate the SCH phase shift.

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

【図1】 本発明の一実施形態であるビデオエンコーダ
のブロック図である。
FIG. 1 is a block diagram of a video encoder according to an embodiment of the present invention.

【図2】 アドレス演算回路の内部の構成を示す図であ
る。
FIG. 2 is a diagram showing an internal configuration of an address operation circuit.

【図3】 選択されたカラーテレビジョン方式、シフト
値、第1補正値、及び、第2補正値との関係をまとめた
表を示した図である。
FIG. 3 is a diagram showing a table summarizing a relationship among selected color television systems, shift values, first correction values, and second correction values.

【図4】 メモリ(ROM)に記憶されている内容を説
明するための図である。
FIG. 4 is a diagram for explaining contents stored in a memory (ROM).

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

1 輝度・色差信号生成回路 2 ROM 3 アドレス演算回路 4 乗算回路 5 乗算回路 6 スイッチ 7 反転回路 8 加算回路 9 バースト抜き取り回路 10 反転回路 11 加算回路 12 加算回路 13 加算回路 31 加算値設定回路 32 加算回路 33 フリップフロップ回路 34 換算回路 DESCRIPTION OF SYMBOLS 1 Luminance / color difference signal generation circuit 2 ROM 3 Address calculation circuit 4 Multiplication circuit 5 Multiplication circuit 6 Switch 7 Inversion circuit 8 Addition circuit 9 Burst sampling circuit 10 Inversion circuit 11 Addition circuit 12 Addition circuit 13 Addition circuit 31 Addition value setting circuit 32 Addition Circuit 33 Flip-flop circuit 34 Conversion circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 原色信号から色差信号を生成する色差信
号生成手段と、 クロック信号に同期して所定数ずつシフトするアドレス
を生成するアドレス生成手段と、 正弦波の複数の位相における値を記憶しているととも
に、前記アドレス生成手段により生成されたアドレスに
記憶している値を出力する記憶手段と、 前記色差信号生成手段により生成された色差信号と、前
記記憶手段から出力された信号とを乗算する乗算手段
と、を備えたビデオエンコーダにおいて、 前記アドレス生成手段で生成されるアドレスの1水平走
査期間におけるシフト数と、前記記憶手段から出力され
る信号の周波数が色副搬送波の周波数となるときの、前
記記憶手段に与えられるアドレスの1水平走査期間にお
けるシフト数との誤差が小さくなるように、前記アドレ
ス生成手段におけるアドレスのシフト数を補正する手段
を設けたことを特徴とするビデオエンコーダ。
1. A color difference signal generating means for generating a color difference signal from a primary color signal, an address generating means for generating an address shifted by a predetermined number in synchronization with a clock signal, and storing values at a plurality of phases of a sine wave. Storage means for outputting a value stored at an address generated by the address generation means, and a color difference signal generated by the color difference signal generation means multiplied by a signal output from the storage means. Wherein the number of shifts of the address generated by the address generating means in one horizontal scanning period and the frequency of the signal output from the storage means become the frequency of the color subcarrier. Of the address given to the storage means in one horizontal scanning period, so that the error is small. Video encoder, characterized in that a means for correcting the number of shifts of the address in the generating means.
JP2000164152A 2000-06-01 2000-06-01 Video encoder Pending JP2001346221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000164152A JP2001346221A (en) 2000-06-01 2000-06-01 Video encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000164152A JP2001346221A (en) 2000-06-01 2000-06-01 Video encoder

Publications (1)

Publication Number Publication Date
JP2001346221A true JP2001346221A (en) 2001-12-14

Family

ID=18667811

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000164152A Pending JP2001346221A (en) 2000-06-01 2000-06-01 Video encoder

Country Status (1)

Country Link
JP (1) JP2001346221A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08107564A (en) * 1994-10-06 1996-04-23 Matsushita Electric Ind Co Ltd Digital color encoder
JP2586468B2 (en) * 1987-01-27 1997-02-26 ソニー株式会社 Digital chrominance subcarrier data generation circuit
JPH09116396A (en) * 1995-10-16 1997-05-02 Nec Ic Microcomput Syst Ltd Sawtooth signal data generation circuit
JPH1141616A (en) * 1997-07-16 1999-02-12 Sharp Corp Digital video signal modulation circuit
JPH11220755A (en) * 1998-02-02 1999-08-10 Hitachi Ltd Signal processor and image-pickup device
JPH11234694A (en) * 1998-02-12 1999-08-27 Rohm Co Ltd Multi-format video encoder
JP2000092507A (en) * 1998-09-16 2000-03-31 Nec Corp Clock frequency conversion circuit, conversion method therefor and receiver provided with clock frequency conversion function

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2586468B2 (en) * 1987-01-27 1997-02-26 ソニー株式会社 Digital chrominance subcarrier data generation circuit
JPH08107564A (en) * 1994-10-06 1996-04-23 Matsushita Electric Ind Co Ltd Digital color encoder
JPH09116396A (en) * 1995-10-16 1997-05-02 Nec Ic Microcomput Syst Ltd Sawtooth signal data generation circuit
JPH1141616A (en) * 1997-07-16 1999-02-12 Sharp Corp Digital video signal modulation circuit
JPH11220755A (en) * 1998-02-02 1999-08-10 Hitachi Ltd Signal processor and image-pickup device
JPH11234694A (en) * 1998-02-12 1999-08-27 Rohm Co Ltd Multi-format video encoder
JP2000092507A (en) * 1998-09-16 2000-03-31 Nec Corp Clock frequency conversion circuit, conversion method therefor and receiver provided with clock frequency conversion function

Similar Documents

Publication Publication Date Title
US4982179A (en) Composite video signal generation method and device
KR940005173B1 (en) Digital color signal processing with clock signal control for a video camera
US4482916A (en) Automatic color control for a digital television receiver
US4506286A (en) PAL digital video signal processing arrangement
JPS6312434B2 (en)
JP2001346221A (en) Video encoder
US7034894B1 (en) Digital-to-analog conversion multiple-format video encoder
JPH11196431A (en) Double loop pll circuit and color demodulation circuit using the pll circuit
JPH11355796A (en) Color demodulation circuit and digital image processor
JP3021140B2 (en) Color signal processing device
JP3087584B2 (en) Digital color encoder
JP3347921B2 (en) PAL color signal phase correction demodulator
JPH01152892A (en) Method forming color signal in pal system by digital processing
JP2002300425A (en) Digital video processor circuit and method therefor
JP2570030B2 (en) Color signal demodulator
JPH02301290A (en) Color signal processor
JP2004048088A (en) Signal processor
JPH11308632A (en) Color demodulation circuit
JPH02301288A (en) Color signal processor
JPH118857A (en) Digital color demodulator circuit
JPH0414985A (en) Digital color demodulation circuit
JP3409058B2 (en) PAL signal processing apparatus, method and computer-readable recording medium
JP2000152272A (en) Video signal decoding circuit
JPH09154160A (en) Scanning line number conversion circuit
JPH0514918A (en) Device for generating pal system video signal by digital processing

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070515

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100202

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100331

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100420

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100617

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100713