Keyer with variable shaping

Abstract: A keyer with variable shaping combines the benefits of a luminance keyer with those of a linear keyer using a single set of gain and clip controls. A key signal is input to a first amplifier (10) having a high gain that is variable over an upper portion of a gain control signal's range. The output of the first amplifier is compared (20) with a clip control signal and input to a second amplifier (30) having a low gain that is variable over a lower portion of the gain control signal's range. The second amplifier includes a feedback circuit (39) that provides minimum gain and shaping when the feedback signal is maximum, and provides maximum gain and shaping when the feedback signal is minimum. Therefore the overall gain of the variable gain amplifier varies so that the low gain end of the range includes gains required for linear keying with no visible shaping, and the high gain end of the range includes gains required for luminance keying together with the required shaping. Between the low and high gain ends the shaping is gradually added.

Description: Background of the Invention The present invention relates to video keyers used for video special effects, and more particularly to a keyer with variable shaping for combining a fill video signal with a background video signal by combining the benefits of luminance and linear keying. In video special effects systems key signals are generated to effectively "cut holes" in one video signal to insert another video signal. Two traditional key signal generators are a luminance keyer and a linear keyer. A luminance keyer is described in EP-A-0 360 518. The luminance keyer usually has two controls -- a clip and a gain control. The gain control determines the amount of gain used in the key processing, typically in a range of 5-150, and the clip control determines a reference level used in the key processing. The linear keyer has the same controls as the luminance keyer except that the amount of gain used in the key processing is much lower and includes unity gain, typically in a range of 0.2-20 so that the high and low levels enclose the unity gain function. Additionally luminance keyers require special processing called "shaping." The shaping of luminance keys is important as a method of reducing visual artifacts caused by discontinuities in a key control output signal between an intermediate ramp and high and low levels when clipped at the output. For linear keyers the shaping is undesirable since the input key signal is to be faithfully reproduced, and the input key signal may already be shaped. These two keyers are separate functions with a separate set of controls for each keyer. Therefore what is desired is a single keyer that produces both a luminance key signal and a linear key signal from the same set of controls so that the transition between the two key signal functions is continuous and relatively undetectable to an operator. Summary of the Invention According to features of this invention there is provided a keyer as claimed in claim 1 herein. Various further features of the invention are defined by the dependent claims. Thus the present invention provides a keyer with variable shaping that combines the benefits of a luminance and a linear keyer. A key input signal is amplified by a variable gain amplifier having gain as a function of a gain control signal in the range from 0.5-150. The amplified key signal is compared to a clip reference level that is a function of a clip control signal. The resulting key signal is clipped to a high and a low level. The clipped key signal is shaped to produce a key control signal. The variable gain amplifier has two amplifying sections with the first section being a high gain section that has variable gain during the upper part of the gain control signal range, and with the second section being a low gain section that has variable gain during the lower part of the gain control signal range. The second section uses a feedback amplifier and changes the amount of feedback. The feedback is used to remove the shaping added by the shaping circuit so that as feedback is applied to the second amplifier its gain is reduced and its shaping is reduced. Therefore the overall gain of the variable gain amplifier varies so that the low gain end of the range includes gains required for linear keying with no visible shaping, and the high gain end of the range includes gains required for luminance keying together with the required shaping. Between the low and high gain ends the shaping is gradually added. The objects, advantages and novel features of the present invention are apparent from the following detailed description when read in conjunction with the claims and drawing. Brief Description of the Drawing Fig. 1 is a block diagram of a keyer with variable shaping according to the present invention. Fig. 2 is a series of gain versus gain control graphs illustrating the operation of the keyer of Fig. 1. Description of the Preferred Embodiment Referring now to Fig. 1 a key signal is input to a first amplifier 10, the gain of which is controlled by a gain control signal. The output of the first amplifier 10 is input to a comparator 20 together with a clip control signal. The output of the comparator 20 is input to a second amplifier 30, the gain of which also is controlled by the gain control signal. The output of the second amplifier is a key control signal. The first amplifier 10 has an input high gain stage 12 to which the key signal is applied. The output of the high gain stage 12 is input to a first multiplier 14 to which a first modified gain control signal is applied. The gain control signal is input to a first non-additive mixer (NAM) 16 that has a linear output characteristic for gain control signal values above a threshold gain control value, V, and a fixed output for gain control values at or below V. The resultant gain of the first amplifier 10 is a fixed gain for gain control signal values below the threshold V and an increasing gain for gain control values over the threshold. The second amplifier 30 has an input adder 31 for combining the output of the comparator 20 with a feedback signal. The output of the adder 31 is input to a clipper 33 and then shaped by a shaping circuit 35. The output of the shaping circuit 35 is input to a low gain stage 37, the output of which is the key control signal. The key control signal is input to a second multiplier 39 to which is applied a second modified gain control signal. The second modified gain control signal is obtained from a second non-additive mixer (NAM) 40 to which the gain control signal is input. The output characteristic of the second NAM 40 is linear when the input gain control signal is below the threshold V, and a fixed output when the gain control signal is at or above the threshold V. As a result the second multiplier 39 varies the feedback applied to the second amplifier 30 from a maximum amount to zero when the gain control signal is below the threshold V, and causes zero feedback to be applied when the gain control is at or above the threshold V. In operation as shown in Fig. 2 the gain of the first amplifier 10 varies from one to maximum, i.e, 20 for the circuit shown in Fig. 1, during the upper part of the gain control signal's range, i.e., above V. The gain of the second amplifier 30 varies from low, i.e., 0.5 for the circuit shown in Fig. 1, to its maximum gain during the lower part of the gain control signal's range, i.e., below V. The overall gain for the keyer is continuous from 0.5 to 160 for the gain values shown in Figs. 1 and 2. The amount of feedback in the second amplifier 30 determines the maximum gain of the variable gain amplifier. With no feedback the overall amplifier gain is maximum. With full feedback the overall amplifier gain is reduced by the amount of available feedback. Between these points there is a continuous relationship for the resultant gain. It is characteristic of feedback amplifiers that the more feedback applied, the more reduction in distortion. The useful effect here is that shaping added by the shaping circuit 35 is removed by the feedback in the second amplifier 30. With no feedback shaping is unchanged, and with full feedback shaping is reduced by the amount of available feedback resulting in a continuous relationship between these points for the resultant shaping. Therefore as feedback is applied to the second amplifier its gain and shaping are reduced. If enough feedback is applied, the resultant shaping is reduced sufficiently so that it is practically non-existent. Each of the amplifier gains is varied in such a way so that the gain of the second amplifier 30 goes from minimum gain without shaping to its maximum gain with shaping, and then the gain of the first amplifier 10 varies from its minimum to its maximum. The result is that as the gain control signal is varied, the overall gain of the circuit varies so that the low gain end of the range includes gains required for linear keying with no visible shaping, and at gains above the maximum gain of the second amplifier 30 shaping required for luminance keying is fully present. At gains between unity and the maximum gain of the second amplifier 30 shaping is gradually added. Thus the present invention provides a keyer with variable shaping that combines the benefits of a luminance keyer and a linear keyer while using a single set of controls. A variable gain amplifier has two stages, the first stage varying in gain over the high gain range and the second stage varying in gain over the low gain range, the second stage including feedback that is maximum for the lowest gain of the second stage and minimum for the highest gain so that shaping is gradually added over the range of one to the maximum gain of the second stage.

Claims: A keyer with variable shaping comprising: a first amplifier (10) having a relatively high gain that is variable over an upper portion of a gain control signal's range to which a key signal is input; means (20) for comparing the output from the first amplifier with a clip control signal to produce a luminance key signal; a second amplifier (30) having a relatively low gain that is variable over a lower portion of the gain control signal's range to which the luminance key signal from the comparing means is input, the second amplifier providing a key control signal; and a feedback circuit (39, 40) as part of the second amplifier that couples the key control signal as a feedback signal to the input of the second amplifier for combination with the luminance key signal, the feedback circuit providing minimum gain and shaping for the second amplifier when the feedback signal is maximum and providing maximum gain and shaping for the second amplifier when the feedback signal is minimum, whereby the overall gain is a continuous relationship from less than unity to much greater than unity in dependence upon said gain control signal. The keyer as recited in claim 1 wherein the first amplifier comprises: a high gain stage (12) having the key signal as input; a first multiplier (14) to which the output of the high gain stage is input together with a first modified gain control signal, the output of the first multiplier being the output from the first amplifier which is input to the comparing means; and means for generating (16) the first modified gain control signal from the gain control signal so that the gain of the first amplifier varies over the upper portion of the gain control signal's range. The keyer as recited in claim 1 wherein the second amplifier comprises: means for clipping (33) the combination of the luminance key signal and the feedback signal between a high and a low level; means for shaping (35) the output of the clipping means; a low gain stage (37) to which the output of the shaping means is input to provide the key control signal; and means (31) for combining the feedback signal with the luminance key signal from the comparing means to provide the input to the clipping means. The keyer as recited in claim 1 wherein the feedback circuit comprises: a second multiplier (39) to which the key control signal is input together with a second modified gain control signal, the output of the second multiplier being the feedback signal; and means (40) for generating the second modified gain control signal from the gain control signal so that the gain of the second amplifier varies over the lower portion of the gain control signal's range.

Inventors: CHAPLIN DANIEL J, CHAPLIN, DANIEL J.
Applicants: GRASS VALLEY GROUP, THE GRASS VALLEY GROUP, INC.
Application year: 1991
Main classification: H04N5
IPC codes: H04N5