JP2001112017A - Color matrix converter - Google Patents

Color matrix converter

Info

Publication number
JP2001112017A
JP2001112017A JP28195499A JP28195499A JP2001112017A JP 2001112017 A JP2001112017 A JP 2001112017A JP 28195499 A JP28195499 A JP 28195499A JP 28195499 A JP28195499 A JP 28195499A JP 2001112017 A JP2001112017 A JP 2001112017A
Authority
JP
Japan
Prior art keywords
stage
matrix
bit
bits
conversion 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
JP28195499A
Other languages
Japanese (ja)
Other versions
JP3494599B2 (en
Inventor
Junichi Aoki
順一 青木
Hiroshi Uchiki
寛 打木
Hisao Kumai
久雄 熊井
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP28195499A priority Critical patent/JP3494599B2/en
Publication of JP2001112017A publication Critical patent/JP2001112017A/en
Application granted granted Critical
Publication of JP3494599B2 publication Critical patent/JP3494599B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Of Color Television Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To configure an inexpensive video device whose circuit scale is reduced and which is made correspondent to color matrix conversion in compliance with a plurality of standards. SOLUTION: Three digital signals consisting of a luminance signal and color difference signals are separated into two system (b, c) and one system (a), the two systems are respectively bit decomposed, the bits is combined in pairs, the pairs are used as select signals, a result of the arithmetic operations corresponding to them is selected. The one-system signal is bit decompose, signals resulting from two bits each segmented from the LSB are used for select signals and an arithmetic result corresponding to the signals is selected (1st stage in Figure), then arithmetic results of matrix coefficients selected respectively are arranged from the lower-orders by matching digits and combined in pairs from the low-order and summed respectively with bit extension (2nd stage). Similarly, they are summed and the low-order bits not reflected on the final arithmetic result are thrown away in each process (3 to 4th stages). Finally offsets are summed and rounding and saturation are conducted (6th stage).

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタル映像信
号の輝度色差信号とRGB信号におけるカラーマトリク
ス変換処理に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a color matrix conversion process for a luminance / color difference signal and an RGB signal of a digital video signal.

【0002】[0002]

【従来の技術】一般に、テレビジョン等の映像信号を伝
送する場合、送信側はカメラから得られたR(赤)G
(緑)B(青)の三原色信号を輝度色差信号に変換する
ことで、人間の目の特性を生かしたフィルタリングや符
号化、変調等の各種処理を施して伝送する。受信側では
受け取った信号の各種デコード処理をして得られた輝度
色差信号をRGB信号に変換してモニタに表示する。
2. Description of the Related Art Generally, when transmitting a video signal of a television or the like, a transmitting side uses an R (red) G signal obtained from a camera.
By converting the three primary color signals (green) and B (blue) into luminance color difference signals, the signals are subjected to various processes such as filtering, encoding, and modulation that make use of the characteristics of the human eye, and transmitted. On the receiving side, the luminance and color difference signals obtained by performing various decoding processes of the received signals are converted into RGB signals and displayed on a monitor.

【0003】この時、使われる輝度色差信号とRGB信
号のカラーマトリクス変換には、規格により異なるが、
例えば、ITU−R709によれば次の様なマトリクス
係数との積和演算式が使われる。 EY=0.7154EG+0.0721EB+0.212
5ER EPb=−0.386EG+0.500EB−0.500
ER EPr=−0.454−0.046EB+0.500ER ここでEYは輝度信号、EPb,EPrは色差信号、E
R,EG,EBはそれぞれR(赤),G(緑),B
(青)信号であり、各信号はアナログ信号に対応してい
る。
At this time, the color matrix conversion of the luminance / color difference signal and the RGB signal used differs depending on the standard.
For example, according to ITU-R709, a product-sum operation expression with the following matrix coefficient is used. EY = 0.7154EG + 0.0721EB + 0.212
5ER EPb = -0.386EG + 0.500EB-0.500
ER EPr = −0.454−0.046 EB + 0.500 ER where EY is a luminance signal, EPb and EPr are color difference signals,
R, EG, EB are R (red), G (green), B
(Blue) signals, and each signal corresponds to an analog signal.

【0004】これらの信号をディジタル化して8bit
の画像データとして扱う場合、アナログ信号のオーバー
シュート等を考慮した演算結果のスケーリングやオフセ
ット、特に、色差信号の場合はマイナスレベルの底上げ
をするためのオフセットが与えられるが、基本的には係
数を適当に選ぶことにより以下の式で表すことができ
る。 Y=(a*G+b*B+c*R)/P+J Cb=(d*G+e*B+f*R)/P+K Cr=(g*G+h*B+i*R)/P+L
[0004] These signals are digitized to 8 bits.
When the image data is treated as image data, the scaling and offset of the calculation result in consideration of the overshoot of the analog signal, etc., and in particular, in the case of the color difference signal, an offset for raising the negative level is given. It can be expressed by the following equation by selecting it appropriately. Y = (a * G + b * B + c * R) / P + J Cb = (d * G + e * B + f * R) / P + K Cr = (g * G + h * B + i * R) / P + L

【0005】ここで、Yは輝度信号、Cb,Crは色差
信号、a〜iはマトリクス係数、J〜Lはオフセット係
数である。また、Pはマトリクス係数のビット精度に対
応したビットシフト係数であり、例えば、マトリクス係
数が8bitの精度とすれば、Pは256で演算後に8
bitシフトすることを意味する。逆に輝度差信号から
RGB信号を得る場合も上式で各係数を適当に設定する
ことで対応できる。
[0005] Here, Y is a luminance signal, Cb and Cr are color difference signals, a to i are matrix coefficients, and J to L are offset coefficients. Further, P is a bit shift coefficient corresponding to the bit precision of the matrix coefficient. For example, if the matrix coefficient has an 8-bit precision, P is 256 and 8
Bit shift is meant. Conversely, the case where RGB signals are obtained from the luminance difference signal can be dealt with by appropriately setting each coefficient in the above equation.

【0006】尚、マトリクス係数はアナログ値が仮に
0.7154とすれば 0.7154*256=183(8bitデータ) である。ここで、実際に0.7154の精度を保つため
にはマトリクス係数は14bitの精度が必要である
が、説明はすべて8bit精度で行う。
The matrix coefficient is 0.7154 * 256 = 183 (8-bit data) if the analog value is assumed to be 0.7154. Here, in order to actually maintain the accuracy of 0.7154, the matrix coefficient needs to have an accuracy of 14 bits, but the description will be made with an 8-bit accuracy.

【0007】よって、マトリクス変換回路は上式から乗
算器と加算器の組み合わせで表現できるが、乗算器はR
OM等を使ったルックアップテーブル方式(図7)と片
方のデータをビット分解してもう片方にマスクをかけ、
それらの総和と出す方式(図8)が考えられる。係数の
精度を8bitとした場合、図7に示したルックアップ
テーブル方式ではROMのアドレスに(係数8bit+
データ8bit)の計16bit、出力データは16b
it必要で、ROMは1Mbitの容量が必要である。
これに対し、図8に示したビット分解による方式では、
高ビットレートのデータを処理するため総和をとる段階
でパイプライン処理をしたとして、図8に示す様に、レ
ジスタ128個と加算器7個で構成できる。
Therefore, the matrix conversion circuit can be expressed by a combination of a multiplier and an adder from the above equation, but the multiplier uses R
Look-up table method using OM etc. (Fig. 7) and one-bit data is decomposed into bits and the other is masked.
A method (FIG. 8) of calculating the sum of them can be considered. When the precision of the coefficient is 8 bits, in the look-up table method shown in FIG.
16 bits of data (8 bits), output data is 16 bits
and the ROM needs a capacity of 1 Mbit.
On the other hand, in the scheme based on the bit decomposition shown in FIG.
Assuming that the pipeline processing is performed at the stage of summing in order to process high bit rate data, as shown in FIG. 8, it can be constituted by 128 registers and 7 adders.

【0008】回路を構成する場合、前者(図7)の方が
簡単であるが回路規模は後者(図8)の方が勝る。いず
れの場合も、これらの乗算器を3個使い、結果を加算し
てビットシフトした後、オフセット値を加算することで
輝度もしくは色差のデータを1個得ることができ、マト
リクス変換回路としては、これらを3セット用いて構成
することができる。
When a circuit is constructed, the former (FIG. 7) is simpler, but the latter (FIG. 8) has a larger circuit scale. In any case, three multipliers are used, the result is added and the result is bit-shifted, and then an offset value is added to obtain one luminance or color difference data. As a matrix conversion circuit, These can be configured using three sets.

【0009】[0009]

【発明が解決しようとする課題】前述のように、図8に
示したビット分解して総和をとる方式を使った構成は、
図7に示したルックアップテーブル方式を使った構成よ
りも回路規模を小さくできるが、それでも、概算で、レ
ジスタ数は1000個を越える。係数を固定にすれば回
路規模は大幅に削減できるが、放送方式のディジタル化
にともない映像フォーマットの多様化が計られ、一般家
庭で用いる映像機器においても複数の規格に対応する必
要性がでてきた。
As described above, the configuration using the method of decomposing bits and taking the sum shown in FIG.
Although the circuit scale can be made smaller than that of the configuration using the look-up table method shown in FIG. 7, the number of registers exceeds 1,000 in general. If the coefficients are fixed, the circuit scale can be greatly reduced.However, with the digitization of the broadcasting system, the diversification of video formats has been measured, and the need for video equipment used in ordinary homes to support multiple standards has emerged. Was.

【0010】本発明は、上述のような状況に鑑みてなさ
れたもので、複数規格のカラーマトリクス変換に対応
し、かつ、回路規模を削減した安価な映像装置を構成で
きるようにするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above situation, and is intended to be able to configure an inexpensive video device which supports color matrix conversion of a plurality of standards and has a reduced circuit scale. .

【0011】[0011]

【課題を解決するための手段】本発明は、(a)1段目
においてRGBもしくは輝度色差の3系統のディジタル
信号を2系統と1系統に分け、2系統に対応するマトリ
クス係数b,cの4パターンの演算即ち(0,b,c,
b+c)と1系統に対応するマトリクス係数aの4パタ
ーンの演算即ち(0,a,2a,3a)を行い、2系統
はそれぞれビット分解して各ビット毎にペアをつくり、
これをセレクト信号として前述のこれらに対応する演算
結果を選択し、また1系統のほうはビット分解してLS
Bから2ビット毎に区切ったものをセレクト信号として
前述のこれらに対応する演算結果を選択する手段と、
(b)2段目において1段目でそれぞれ選択されたマト
リクス係数の演算結果を下位から桁を合わせて並べ、下
位からペアをつくってそれぞれビット拡張しながら加算
を行う手段と、(c)3段目から5段目まで2段目と同
様にして加算をしていきその過程で最終的な演算結果に
反映されない下位ビットをその都度切り捨てていく手段
と(d)最終段の6段目にオフセット値を加算して、丸
め処理とサチレーションを行う手段を具備したことを特
徴としたものである。
According to the present invention, there are provided (a) a first stage in which three digital signals of RGB or luminance and chrominance are divided into two systems and one system, and matrix coefficients b and c corresponding to the two systems are divided; Operation of four patterns, that is, (0, b, c,
b + c) and a matrix coefficient a corresponding to one system is operated in four patterns, that is, (0, a, 2a, 3a), and the two systems are bit-separated to form a pair for each bit.
This is used as a select signal to select the operation results corresponding to the above-mentioned ones.
Means for selecting a calculation result corresponding to those described above as a select signal using a signal divided every two bits from B;
(B) means for arranging the calculation results of the matrix coefficients selected in the first stage in the second stage, with the digits aligned from the lower order, forming pairs from the lower order, and performing bit expansion to add each; and (c) 3 Means for performing addition in the same manner as the second stage from the stage to the fifth stage, and cutting off lower bits not reflected in the final operation result each time in the process, and (d) the sixth stage of the final stage It is characterized by comprising means for adding an offset value to perform rounding processing and saturation.

【0012】また、本発明は、前記(a)〜(c)の手
段と、(d)4段目において、上位のペアがない演算結
果とオフセット値を桁合わせして加算し5段目に渡す手
段と、(e)5段目において、2段目と同様に加算し、
最終的な演算結果に反映されない下位ビットを切り捨て
ていく手段と、(f)6段目において、丸め処理とサチ
レーションを行う手段を具備したことを特徴としたもの
である。
Further, according to the present invention, in the means of (a) to (c) and (d) in the fourth stage, the operation result having no upper pair and the offset value are digit-aligned and added, and Means for passing, and (e) in the fifth stage, add in the same manner as in the second stage,
(F) A means for cutting off lower bits not reflected in the final operation result and (f) means for performing rounding and saturation in the sixth stage.

【0013】更に、本発明は、前記カラーマトリクス変
換装置の前段に外部から入力されるフォーマット情報等
のデータを外部から得て、これらに対応したマトリクス
係数及びオフセット値を映像の垂直ブランキング期間等
のある時点において設定する手段を有し、これらの設定
値に基づいてカラーマトリクス変換を行うことを特徴と
したものである。
Further, according to the present invention, data such as format information input from the outside is obtained before the color matrix conversion apparatus, and matrix coefficients and offset values corresponding to these are obtained from a vertical blanking period of an image. And means for setting at a certain point in time, and performing color matrix conversion based on these set values.

【0014】更に、本発明は、前記カラーマトリクス変
換装置の後段に、外部へ出力するフォーマット情報等の
データを外部から得て、これらに対応した同期信号を生
成する手段を有し、出力フォーマットに応じて同期を含
んだ画像データを出力することを特徴としたものであ
る。
Further, the present invention further comprises means for obtaining data such as format information to be output to the outside from the outside at the subsequent stage of the color matrix conversion device, and generating a synchronization signal corresponding to the data. It is characterized by outputting image data including synchronization in response.

【0015】更に、本発明は、前記カラーマトリクス変
換装置において、マトリクス係数に任意の係数を掛け合
わせることによって、出力のダイナミックレンジを変更
することができることを特徴としたものである。
Further, the present invention is characterized in that in the color matrix conversion device, the dynamic range of the output can be changed by multiplying the matrix coefficient by an arbitrary coefficient.

【0016】更に、本発明は、前記カラーマトリクス変
換装置において、マトリクス係数を0にすることによっ
て映像を非表示にすることを特徴としたものである。
Further, the present invention is characterized in that, in the color matrix conversion device, an image is not displayed by setting a matrix coefficient to 0.

【0017】更に、本発明は、前記カラーマトリクス変
換装置において、マトリクス係数を徐々に0に近づけて
いくことによって映像をフェードアウトさせることを特
徴としたものである。
Further, the present invention is characterized in that in the color matrix conversion device, an image is faded out by gradually approaching a matrix coefficient to zero.

【0018】更に、本発明は、前記カラーマトリクス変
換装置において、マトリクス係数を0から徐々に規定値
に近づけていくことによって映像をフェードインさせる
ことを特徴としたものである。
Further, the present invention is characterized in that in the color matrix conversion device, the image is faded in by gradually approaching a matrix coefficient from 0 to a specified value.

【0019】[0019]

【発明の実施の形態】図1は、本発明によるマトリクス
変換装置のレジスタ構成を説明するための機能ブロック
図で、図中のa,b,cはそれぞれディジタル信号系列
で、1段目において、これらの3系統のディジタル信号
a,b,cを、図2に示すように、2系統(b,cの
組)と1系統(aの組)に分け、2系統に対応するマト
リクス係数b,cの4パターンの演算即ち(0,b,
c,b+c)と1系統に対応するマトリクス係数aの4
パターンの演算即ち(0,a,2a,3a)を行い、2
系統(b,c)はそれぞれビット分解して各ビット毎に
ペアをつくり、これをセレクト信号としてこれらに対応
する2系統の演算結果を選択し、また、1系統(a)の
ほうはビット分解してLSBから2ビット毎にペアをつ
くり、これをセレクト信号として対応する1系統の演算
結果を選択する。2段目において、1段目でそれぞれ選
択されたマトリクス係数の演算結果を下位から桁を合わ
せて並べ、下位からペアをつくってそれぞれビット拡張
しながら加算を行う(演算結果に反映されない部分を切
り捨てる)。3段目において、2段目と同様にして加算
をし、その過程で最終的な演算結果に反映されない下位
ビットを切り捨て、4段目において、上位のペアがない
演算結果とオフセット値を桁合わせして加算する。5段
目において、2段目と同様に加算し、最終的な演算結果
に反映されない下位ビットを切り捨て、6段目におい
て、丸め処理とサチレーションを行う。(実施例1)図
3は、本発明によるカラーマトリクス変換装置の実施形
態における構成の一例で、図中、1,2,3,は演算回
路で、これら演算回路は、輝度信号Yと色差信号Pb,
PrからRGB信号への変換を行う。前述のように、I
TU−R709によれば次の様なマトリクス係数との積
和演算式が使われる。 EY=0.7154EG+0.0721EB+0.212
5ER EPb=−0.386EG+0.500EB−0.115
ER EPr=−0.454EG−0.046EB+0.500
ER
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a functional block diagram for explaining a register configuration of a matrix conversion device according to the present invention, wherein a, b and c in the figure are digital signal sequences, respectively. As shown in FIG. 2, these three systems of digital signals a, b, and c are divided into two systems (a set of b and c) and one system (a set of a), and matrix coefficients b and b corresponding to the two systems. Calculation of four patterns of c, that is, (0, b,
c, b + c) and 4 of the matrix coefficient a corresponding to one system
The operation of the pattern, that is, (0, a, 2a, 3a) is performed, and 2
Each of the systems (b, c) is bit-separated to form a pair for each bit, and the pair is used as a select signal to select two operation results corresponding thereto. Then, a pair is formed every two bits from the LSB, and this is used as a select signal to select a corresponding one-system operation result. In the second stage, the operation results of the matrix coefficients selected in the first stage are arranged with the digits aligned from the lower order, pairs are formed from the lower order, and addition is performed while expanding the bits (a portion not reflected in the operation result is rounded down). ). In the third stage, the addition is performed in the same manner as in the second stage. In the process, the lower bits not reflected in the final operation result are discarded, and in the fourth stage, the operation result having no upper pair and the offset value are digit-aligned. And add. In the fifth stage, the addition is performed in the same manner as in the second stage, the lower bits not reflected in the final operation result are discarded, and in the sixth stage, rounding and saturation are performed. (Embodiment 1) FIG. 3 shows an example of the configuration of an embodiment of a color matrix conversion device according to the present invention. In the figure, 1, 2, 3, and 3 denote arithmetic circuits, and these arithmetic circuits comprise a luminance signal Y and a color difference signal. Pb,
Conversion from Pr to RGB signals is performed. As mentioned above, I
According to TU-R709, a product-sum operation expression with the following matrix coefficient is used. EY = 0.7154EG + 0.0721EB + 0.212
5ER EPb = −0.386EG + 0.500EB−0.115
ER EPr = −0.454EG−0.046EB + 0.500
ER

【0020】ここでEYは輝度信号、EPb,EPrは
色差信号、ER,EG,EBはRGB信号であり、各信
号はアナログ信号に対応している。
Here, EY is a luminance signal, EPb and EPr are color difference signals, ER, EG and EB are RGB signals, and each signal corresponds to an analog signal.

【0021】上記のアナログ信号を8bitの画像デー
タとして扱い、係数の精度を8bitとすると以下の式
で表すことができる。 G=(256Y−48Pb−120Pr)/256+8
4 B=(256Y+475Pb)/256−238 R=(256Y+403Pr)/256−202 ここで、Yは輝度信号、Pb,Prは色差信号に対応し
ている。
If the above analog signal is treated as 8-bit image data and the precision of the coefficient is 8 bits, it can be expressed by the following equation. G = (256Y-48Pb-120Pr) / 256 + 8
4B = (256Y + 475Pb) / 256-238 R = (256Y + 403Pr) / 256-202 Here, Y corresponds to a luminance signal, and Pb and Pr correspond to color difference signals.

【0022】上記の式で表されるマトリクス変換装置は
映像データの3出力G,B,Rに対して、それぞれ上記
の式で示される係数が設定された演算回路1,2,3を
使用することで実現することができる。また、各々の演
算回路は画像データ8bit、係数10bit(符号:
1bit,マトリクス係数:9bit)の入力と、画像
データ8bitの出力を持ち、図4に示すようなレジス
タで構成される。
The matrix conversion device represented by the above equation uses arithmetic circuits 1, 2, and 3 in which the coefficients represented by the above equation are set for the three outputs G, B, and R of the video data. This can be achieved by: Each arithmetic circuit has an image data of 8 bits and a coefficient of 10 bits (code:
It has an input of 1 bit and a matrix coefficient of 9 bits) and an output of 8 bits of image data, and is constituted by a register as shown in FIG.

【0023】図4は、本発明によるカラーマトリクス変
換装置の一実施例(実施例1)を説明するためのレジス
タ構成図で、 (a):まず、1段目において、輝度色差の3系統のデ
ィジタル信号を、図5に示すように、Yの組とPr,P
bの組の2系統に分け、それぞれビット分解して、各ビ
ット毎に、Yについて4パターンの演算即ち(0,Y,
2Y,3Y)を行い、Pr,Pbについても4パターン
の演算即ち(0,Pb,Pr,Pb+Pr)を行う。そ
して、ビット分解した画像データをセレクト信号として
前述のこれらに対応する演算結果を選択する。
FIGS. 4A and 4B are register configuration diagrams for explaining an embodiment (Embodiment 1) of the color matrix conversion device according to the present invention. (A): First, in the first stage, three systems of luminance and color difference are provided. As shown in FIG. 5, the digital signal is represented by a set of Y and Pr, P
b is divided into two systems, each bit is decomposed, and for each bit, four patterns of Y are calculated, that is, (0, Y,
2Y, 3Y), and four patterns of calculations, ie, (0, Pb, Pr, Pb + Pr) are also performed on Pr and Pb. The bit-decomposed image data is used as a select signal to select the above-described operation results corresponding to these.

【0024】輝度信号Yについては0ビット目が0,1
ビット目も0の値を持つとすると1段目のビット分解さ
れた画像データの演算結果はALL0となり、0ビット
目が1,1ビット目が0の時の演算結果はY,0ビット
目が0,1ビット目が1の時は2Y,どちらも1の場合
は3Yを選択する。同様にして、2ビット目と3ビット
目というように隣り合わせたビットをペアにして演算を
行う。色差信号Pb,Prについては例えば0ビット目
について演算結果の選択を行うとすると、そのビットの
色差信号同士をペアとして扱い、それぞれの画像データ
の値をセレクト信号として輝度信号の場合と同様の処理
を行う。
For the luminance signal Y, the 0th bit is 0, 1
Assuming that the bit also has a value of 0, the operation result of the first-stage bit-separated image data is ALL0, the operation result when the 0th bit is 1 and the 1st bit is 0 is Y, and the 0th bit is If the 0th and 1st bits are 1, 2Y is selected, and if both are 1, 3Y is selected. Similarly, the operation is performed by pairing adjacent bits such as the second bit and the third bit. For example, assuming that the calculation result is selected for the 0th bit for the color difference signals Pb and Pr, the color difference signals of the bits are treated as a pair, and the respective image data values are used as select signals in the same processing as the case of the luminance signal. I do.

【0025】(b):2段目においては、1段目におい
てそれぞれ選択されたマトリクス係数の演算結果をビッ
ト分解に対応した桁を揃えて並べ、下位からペアをつく
ってそれぞれビット拡張しながら加算を行い、 (c):3段目から5段目までは、2段目と同様にして
加算をしていき、その過程で最終的な演算結果に反映さ
れない下位ビットを3段目,4段目にて1bit,5段
目にて3bit切り捨てる。
(B): In the second stage, the operation results of the matrix coefficients selected in the first stage are arranged with the digits corresponding to the bit decomposition aligned, and pairs are formed from the lower order and added while each bit is expanded. (C): From the third stage to the fifth stage, addition is performed in the same manner as in the second stage, and in the process, lower bits not reflected in the final operation result are added to the third and fourth stages. Cut off 1 bit at the eyes and 3 bits at the 5th step.

【0026】(d):最終6段目において、オフセット
値を加算して、切り捨てられる下位ビットの最上位ビッ
トが1の時は切り上げ処理を行い、0の時は切り捨てを
する(丸め処理)。さらに、演算結果が8bitの精度
を超えることが考えられるので、サチレーションを行
う。具体的には、6段目のMSB(符号ビット)が1で
ある時は演算結果がマイナスになっているということな
ので0x00に、13ビット目もしくは12ビット目が
1の時は出力データが0xFFを超えているということ
なので0xFFに丸め込む。
(D): At the final sixth stage, the offset value is added, and when the most significant bit of the lower bits to be rounded down is 1, the round-up process is performed, and when it is 0, the round-down process is performed (rounding process). Further, since the calculation result may exceed the precision of 8 bits, saturation is performed. Specifically, when the MSB (sign bit) of the sixth stage is 1, the operation result is negative, so that the output data is 0x00 when the 13th or 12th bit is 1, and the output data is 0xFF. Is rounded to 0xFF.

【0027】上述のようにレジスタ構成された図3の
1,2,3にそれぞれY,Pb,Prを入力してやり、
これら3つの演算回路1,2,3に対して前述の積和演
算式で得られた対応するマトリクス係数を設定すると、
RGBの画像データが得られる。
Y, Pb, and Pr are respectively input to 1, 2, and 3 in FIG.
When the corresponding matrix coefficients obtained by the above product-sum operation formula are set for these three operation circuits 1, 2, and 3,
RGB image data is obtained.

【0028】(実施例2)図6は、本発明の他の実施例
(実施例2)を説明するための図であるが、図4に示し
た実施例1と同様のレジスタ構成を持つ演算回路なの
で、以下異なる点のみ説明する。図6に示した実施例2
においては、図4に示した実施例1では6段目で加算し
ていたオフセット値を、4段目におけるペアの無い上位
ビットの演算結果と桁合わせして加算している。この演
算結果を5段目に渡し、6段目にて丸め込み処理とサチ
レーションを行う。この手段によって、実施例1では6
段目でオフセット値を加算していた処理を4段目に移す
ことが可能となったので、パイプライン処理では段数と
レジスタの個数を減らすことができる。
(Embodiment 2) FIG. 6 is a diagram for explaining another embodiment (Embodiment 2) of the present invention. An operation having a register configuration similar to that of Embodiment 1 shown in FIG. Since it is a circuit, only different points will be described below. Embodiment 2 shown in FIG.
In the first embodiment, the offset value added in the sixth stage in the first embodiment shown in FIG. 4 is digit-aligned with the operation result of the upper bit having no pair in the fourth stage and added. This calculation result is passed to the fifth stage, and rounding processing and saturation are performed at the sixth stage. By this means, in the first embodiment, 6
Since the processing in which the offset value is added at the stage can be shifted to the fourth stage, the number of stages and the number of registers can be reduced in the pipeline processing.

【0029】(実施例3)図7は、前記実施例1もしく
は実施例2の演算回路を含んだマトリクス変換装置の一
例を示す図で、図中、1,2,3は図2に示した演算回
路、4は係数設定回路、5は同期生成及び同期付加回路
である。係数設定回路4では外部からの入・出力フォー
マット情報からマトリクス係数を演算回路1,2,3に
設定してやる。ここでのマトリクス係数とは、ITU−
Rで規定されているマトリクス変換の積和演算式に対し
て、画像データ幅・係数の精度を決めることによって得
られる積和演算式のマトリクス係数である。前述のマト
リクス係数の設定を変更することにより、ITU−R6
01で規定される色差信号からRGB信号への変換、I
TU−R709で規定される色差信号からITU−R6
01の色差信号への変換をすることができる。また、マ
トリクス変換係数を0に設定することにより映像を非表
示にすることも可能である。また、マトリクス係数を徐
々に0に近づけて行くことによって、映像をフェードア
ウトさせることができる。また、マトリクス係数を0か
ら徐々に規定値に近づけていくことによって、映像をフ
ェードインさせることができる。
(Embodiment 3) FIG. 7 is a diagram showing an example of a matrix conversion device including the arithmetic circuit of the embodiment 1 or 2, wherein 1, 2 and 3 are shown in FIG. An arithmetic circuit, 4 is a coefficient setting circuit, and 5 is a synchronization generation and synchronization addition circuit. In the coefficient setting circuit 4, matrix coefficients are set in the arithmetic circuits 1, 2, 3 based on external input / output format information. Here, the matrix coefficient is defined as ITU-
This is a matrix coefficient of the product-sum operation expression obtained by determining the precision of the image data width and the coefficient with respect to the product-sum operation expression of the matrix conversion specified by R. By changing the setting of the matrix coefficient described above, the ITU-R6
01 to RGB signal conversion from the color difference signal specified by
From the color difference signal specified by TU-R709, ITU-R6
01 can be converted to a color difference signal. It is also possible to hide the video by setting the matrix conversion coefficient to 0. Also, the video can be faded out by gradually approaching the matrix coefficient to zero. Also, the video can be faded in by gradually approaching the matrix coefficient from 0 to the specified value.

【0030】同期生成及び同期付加回路5では出力フォ
ーマットに対応した垂直・水平同期信号を生成し、規定
された映像信号の領域にマトリクス変換された映像デー
タを組み込むことによって同期を付加した形の映像デー
タを出力する。映像信号に対する同期のオフセットのレ
ベルは例えばSMPTEの規定では、輝度信号,RGB
では映像信号の黒レベルと同じ値となっており、色差信
号ではセンターの値と等しくなっている。そのため、出
力の映像信号が色差信号であるかRGB信号であるかに
より、同期信号のオフセットの値を切り替える必要があ
る。この切り替えも同期を付加する際に行っている。
The synchronization generation / synchronization adding circuit 5 generates a vertical / horizontal synchronization signal corresponding to the output format, and incorporates the matrix-converted video data into a specified video signal area to add a video with synchronization. Output data. The level of the synchronous offset with respect to the video signal is, for example, a luminance signal, RGB
Has the same value as the black level of the video signal, and has the same value as the center value in the color difference signal. Therefore, it is necessary to switch the offset value of the synchronization signal depending on whether the output video signal is a color difference signal or an RGB signal. This switching is also performed when synchronization is added.

【0031】信号の流れとしては外部から入・出力フォ
ーマット情報等が与えられ、対応したマトリクス変換係
数をマトリクス演算回路に設定する。同様にして、外部
から与えられた出力フォーマットにより同期信号が生成
され、マトリクス変換された映像信号を同期信号に組み
込んで映像信号を出力する。
As a signal flow, input / output format information and the like are given from the outside, and a corresponding matrix conversion coefficient is set in a matrix operation circuit. Similarly, a synchronization signal is generated according to an output format given from the outside, and a video signal output by incorporating the matrix-converted video signal into the synchronization signal.

【0032】[0032]

【発明の効果】発明に係るマトリクス変換装置は、従来
の方式に比べ、回路規模を削減することが可能になると
共に処理速度を向上させ、コストダウンを図ることが可
能となる。
The matrix conversion device according to the present invention can reduce the circuit scale, improve the processing speed, and reduce the cost as compared with the conventional method.

【0033】また、一つの回路で様々なマトリクスの変
換を行うことが可能となる。具体的には、画像データに
同期を付加する際に、出力フォーマットに応じた同期を
付加して出力することが可能となる。或いは、出力の画
像データのダイナミックレンジを外部のアナログ回路で
変更せずに、マトリクス変換装置内で変更することが可
能となる。或いは、外部装置を使わずにマトリクス変換
装置内の処理で、映像を非表示にすること、或いは、映
像をフェードアウトさせること、或いは、映像をフェー
ドインさせることが可能となる。
Further, it is possible to convert various matrices with one circuit. Specifically, when synchronizing image data, synchronizing according to an output format can be added and output. Alternatively, the dynamic range of the output image data can be changed in the matrix conversion device without being changed by an external analog circuit. Alternatively, it is possible to hide a video, fade out a video, or fade a video in by processing in a matrix conversion device without using an external device.

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

【図1】本発明によるマトリクス変換装置の一実施例を
示すレジスタ構成図である。
FIG. 1 is a register configuration diagram showing an embodiment of a matrix conversion device according to the present invention.

【図2】3系統のディジタル信号を2系統と1系統に分
ける例を示す図である。
FIG. 2 is a diagram illustrating an example in which a digital signal of three systems is divided into two systems and one system.

【図3】本発明によるマトリクス変換装置が適用される
演算位置のブロック図である。
FIG. 3 is a block diagram of a calculation position to which the matrix conversion device according to the present invention is applied.

【図4】本発明によるマトリクス変換装置の輝度、色差
による一実施例を示すレジスタ構成図である。
FIG. 4 is a register configuration diagram showing one embodiment of a matrix conversion device according to the present invention based on luminance and color difference.

【図5】輝度、色差の3系統を2系統と1系統に分ける
例を示す図である。
FIG. 5 is a diagram showing an example in which three systems of luminance and color difference are divided into two systems and one system.

【図6】本発明によるマトリクス変換装置の他の実施例
を示す構成図である。
FIG. 6 is a configuration diagram showing another embodiment of the matrix conversion device according to the present invention.

【図7】本発明によるマトリクス変換装置の他の実施例
を示すブロック図である。
FIG. 7 is a block diagram showing another embodiment of the matrix conversion device according to the present invention.

【図8】バックアップテーブルを使用した乗算器の例を
示す図である。
FIG. 8 is a diagram illustrating an example of a multiplier using a backup table.

【図9】ビット分解による乗算器のイメージ図である。FIG. 9 is an image diagram of a multiplier by bit decomposition.

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

1,2,3…マトリクス演算回路、4…係数設定回路、
5…同期生成及び同期付加回路。
1, 2, 3 ... matrix operation circuit, 4 ... coefficient setting circuit,
5. Synchronization generation and synchronization addition circuit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 熊井 久雄 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 Fターム(参考) 5C066 AA01 AA02 AA03 BA20 CA01 CA25 DA08 ED06 EE01 EE03 GA01 GA02 GA05 GA12 GB08 HA02 HA06 KE01 KE02 KE03 KE04 KE09 KE24 KF05 KG01 ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Hisao Kumai 22-22, Nagaikecho, Abeno-ku, Osaka-shi, Osaka F-term (reference) 5C066 AA01 AA02 AA03 BA20 CA01 CA25 DA08 ED06 EE01 EE03 GA01 GA02 GA05 GA12 GB08 HA02 HA06 KE01 KE02 KE03 KE04 KE09 KE24 KF05 KG01

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 (a)1段目において、RGBもしくは
輝度、色差の3系統のディジタル信号を2系統と1系統
に分け、2系統に対応するマトリクス係数b,cの4パ
ターンの演算即ち(0,b,c,b+c)と1系統に対
応するマトリクス係数aの4パターンの演算即ち(0,
a,2a,3a)を行い、2系統はそれぞれビット分解
して各ビット毎にペアをつくり、これをセレクト信号と
してこれらに対応する演算結果を選択し、また、1系統
のほうはビット分解してLSBから2ビット毎に区切っ
たものをセレクト信号としてこれらに対応する演算結果
を選択する手段と、 (b)2段目において、1段目でそれぞれ選択されたマ
トリクス係数の演算結果を下位から桁を合わせて並べ、
下位からペアをつくってそれぞれビット拡張しながら加
算を行う手段と、 (c)3段目から5段目までにおいて、前記2段目と同
様にして加算をしていきその過程で最終的な演算結果に
反映されない下位ビットをその都度切り捨てていく手段
と、 (d)最終段の6段目において、オフセット値を加算し
て、丸め処理とサチレーションを行う手段を具備したこ
とを特徴とするカラーマトリクス変換装置。
1. (a) In the first stage, digital signals of three systems of RGB or luminance and color difference are divided into two systems and one system, and calculation of four patterns of matrix coefficients b and c corresponding to the two systems, ie, ( (0, b, c, b + c) and the matrix coefficient a corresponding to one system, that is, calculation of four patterns, ie, (0, b, c, b + c)
a, 2a, 3a), the two systems are bit-separated to form a pair for each bit, and this is used as a select signal to select the operation result corresponding to these. The one system is bit-separated. Means for selecting a result obtained by dividing the LSB every two bits as a select signal and selecting an operation result corresponding to the select signal. (B) In the second stage, the operation result of the matrix coefficient selected in the first stage is calculated from the lower order. Align the digits,
Means for forming pairs from the lower order and performing addition while expanding bits, and (c) performing addition in the third to fifth stages in the same manner as in the second stage, and performing a final operation in the process. A color matrix comprising: means for cutting off lower bits not reflected in the result each time; and (d) means for performing rounding and saturation by adding an offset value at the sixth stage in the final stage. Conversion device.
【請求項2】 (a)1段目において、RGBもしくは
輝度、色差の3系統のディジタル信号を2系統と1系統
に分け、2系統に対応するマトリクス係数b,cの4パ
ターンの演算即ち(0,b,c,b+c)と1系統に対
応するマトリクス係数aの4パターンの演算即ち(0,
a,2a,3a)を行い、2系統はそれぞれビット分解
して各ビット毎にペアをつくり、これをセレクト信号と
してこれらに対応する演算結果を選択し、また、1系統
のほうはビット分解してLSBから2ビット毎に区切っ
たものをセレクト信号としてこれらに対応する演算結果
を選択する手段と、 (b)2段目において、1段目でそれぞれ選択されたマ
トリクス係数の演算結果を下位から桁を合わせて並べ、
下位からペアをつくってそれぞれビット拡張しながら加
算を行う手段と、 (c)3段目から5段目までにおいて、前記2段目と同
様にして加算をしていきその過程で最終的な演算結果に
反映されない下位ビットをその都度切り捨てていく手段
と、 (d)4段目において、上位のペアがない演算結果とオ
フセット値を桁合わせして加算し5段目に渡す手段と、 (e)5段目において、2段目と同様に加算し、最終的
な演算結果に反映されない下位ビットを切り捨てる手段
と、 (f)6段目において、丸め処理とサチレーションを行
う手段を具備したことを特徴とするカラーマトリクス変
換装置。
2. (a) In the first stage, digital signals of three systems of RGB or luminance and chrominance are divided into two systems and one system, and calculation of four patterns of matrix coefficients b and c corresponding to the two systems, ie, ( (0, b, c, b + c) and the matrix coefficient a corresponding to one system, that is, calculation of four patterns, ie, (0, b, c, b + c)
a, 2a, 3a), the two systems are bit-separated to form a pair for each bit, and this is used as a select signal to select the operation result corresponding to these. The one system is bit-separated. Means for selecting a result obtained by dividing the LSB every two bits as a select signal and selecting an operation result corresponding to the select signal. (B) In the second stage, the operation result of the matrix coefficient selected in the first stage is calculated from the lower order. Align the digits,
Means for forming pairs from the lower order and performing addition while expanding bits, and (c) performing addition in the third to fifth stages in the same manner as in the second stage, and performing a final operation in the process. (D) means for discarding the lower bits not reflected in the result each time; (d) means for digitizing and adding the operation result having no upper pair and the offset value in the fourth stage and passing the result to the fifth stage; (e) (5) In the fifth stage, means for adding the same as in the second stage and cutting off lower bits not reflected in the final operation result; and (f) In the sixth stage, means for performing rounding and saturation are provided. Characteristic color matrix conversion device.
【請求項3】 請求項1又は請求項2記載のカラーマト
リクス変換装置の前段に外部から入力されるフォーマッ
ト情報等のデータを外部から得て、これらに対応したマ
トリクス係数及びオフセット値を映像の垂直ブランキン
グ期間等のある時点において設定する手段を有し、これ
らの設定値に基づいてカラーマトリクス変換を行うこと
を特徴とするカラーマトリクス変換装置。
3. A method of obtaining color matrix data and offset values corresponding to the externally input data such as format information from an external device at a stage preceding the color matrix converting device according to claim 1 or 2. A color matrix conversion device comprising means for setting at a certain point in time such as a blanking period, and performing color matrix conversion based on these set values.
【請求項4】 請求項1乃至請求項3のいずれかに記載
のカラーマトリクス変換装置の後段に、外部へ出力する
フォーマット情報等のデータを外部から得て、これらに
対応した同期信号を生成する手段を有し、出力フォーマ
ットに応じて同期を含んだ画像データを出力することを
特徴とするカラーマトリクス変換装置。
4. A color matrix conversion device according to claim 1, wherein data such as format information to be output to the outside is obtained from the outside, and a synchronization signal corresponding to the data is generated. Means for outputting image data including synchronization according to an output format.
【請求項5】 請求項1乃至請求項4のいずれかに記載
のカラーマトリクス変換装置において、マトリクス係数
に任意の係数を掛け合わせることによって、出力のダイ
ナミックレンジを変更することができることを特徴とす
るカラーマトリクス変換装置。
5. The color matrix conversion device according to claim 1, wherein the dynamic range of the output can be changed by multiplying the matrix coefficient by an arbitrary coefficient. Color matrix conversion device.
【請求項6】 請求項1乃至請求項5のいずれかに記載
のカラーマトリクス変換装置において、マトリクス係数
を0にすることによって映像を非表示にすることを特徴
とするカラーマトリクス変換装置。
6. The color matrix conversion device according to claim 1, wherein a video is not displayed by setting a matrix coefficient to zero.
【請求項7】 請求項1乃至請求項6のいずれかに記載
のカラーマトリクス変換装置において、マトリクス係数
を徐々に0に近づけていくことによって映像をフェード
アウトさせることを特徴とするカラーマトリクス変換装
置。
7. The color matrix conversion device according to claim 1, wherein the video is faded out by gradually approaching a matrix coefficient to zero.
【請求項8】 請求項1乃至請求項7のいずれかに記載
のカラーマトリクス変換装置において、マトリクス係数
を0から徐々に規定値に近づけていくことによって映像
をフェードインさせることを特徴とするカラーマトリク
ス変換装置。
8. A color matrix conversion apparatus according to claim 1, wherein the image is faded in by gradually approaching a matrix coefficient from 0 to a specified value. Matrix conversion device.
JP28195499A 1999-10-01 1999-10-01 Color matrix converter Expired - Fee Related JP3494599B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28195499A JP3494599B2 (en) 1999-10-01 1999-10-01 Color matrix converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28195499A JP3494599B2 (en) 1999-10-01 1999-10-01 Color matrix converter

Publications (2)

Publication Number Publication Date
JP2001112017A true JP2001112017A (en) 2001-04-20
JP3494599B2 JP3494599B2 (en) 2004-02-09

Family

ID=17646229

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28195499A Expired - Fee Related JP3494599B2 (en) 1999-10-01 1999-10-01 Color matrix converter

Country Status (1)

Country Link
JP (1) JP3494599B2 (en)

Also Published As

Publication number Publication date
JP3494599B2 (en) 2004-02-09

Similar Documents

Publication Publication Date Title
JP3568485B2 (en) Color correction circuit
JP3432468B2 (en) Color conversion apparatus and color conversion method
US7313274B2 (en) Method and apparatus for RGB color conversion that can be used in conjunction with lossless and lossy image compression
SE453237B (en) Digital Filter
US6049399A (en) Method and apparatus with reduced look-up tables for converting luminance-chrominance color space signals to RGB color space signals
JP2001112017A (en) Color matrix converter
JP2964923B2 (en) Image processing apparatus and image processing method
JP2938115B2 (en) Color signal conversion circuit
JP3937458B2 (en) Imaging device
US5831687A (en) Color video signal processing method and apparatus for converting digital color difference component signals into digital RGB component signals by a digital conversion
CN105100762A (en) Image processing method and image processing apparatus
JP4023267B2 (en) Color image processing apparatus and color image processing method
JPH0564000A (en) Method for compressing and expanding image data
JP3567479B2 (en) Adaptive filter device and adaptive filter processing method
KR100238293B1 (en) Chromaticity signal composition apparatus
JP3442953B2 (en) Clipping equipment
JPH01279377A (en) Spatial filter picture processor
KR960012599B1 (en) A ditial color-space converting circuit
JPH0619686A (en) Multiplying circuit and picture processor equipped with the same
JP4826022B2 (en) Image processing circuit and image processing system
JP3240743B2 (en) Imaging device
JPH06303632A (en) Luminance matrix digital arithmetic operation unit
JPH05136992A (en) Color correction circuit
JPH10108212A (en) Color encoder matrix device and signal synthesizing method
JPH09134155A (en) Method and device for processing video signal

Legal Events

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

Free format text: PAYMENT UNTIL: 20081121

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091121

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091121

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20101121

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111121

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111121

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20121121

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees