The present invention relates to a video display processor comprised apparatus for receiving digital input signal components of a signal to be displayed, apparatus for converting the components to a desired format, apparatus for scaling and blending the signals in the desired format, apparatus for outputting the scaled and blended signals for display or further processing, and an arbiter and local timing apparatus for controlling the apparatus substantially independently of a host cpu.
|
1. A video display processor comprising:
(a) means for receiving digital input signal components of a signal to be displayed; (b) means for converting said components to a desired format, (c) means for scaling and blending said signals components in said desired format, (d) means for outputting said scaled and blended signals for display or further processing, and (e) an arbiter and local timing means for operating and controlling all of said (a), (b), (c) and (d) means substantially independently of a host cpu.
0. 6. A method operating in a computer for combining a first image in a first format with a second image in a second format without requiring substantial involvement of a host central processing unit of the computer, the method comprising the steps of:
receiving said first image at a video display processor; scaling and blending, by said video display processor, said first image to a desired size to produce a scaled image; converting said scaled image, by said video display processor, to said second format to produce a converted image; combining said converted image with said second image; and providing control, by said video display processor, for said scaling and blending, said converting and said combining steps so that said converted image is combined with said second image without requiring substantial involvement of the host central processing unit of the computer.
2. A processor as defined in
3. A processor as defined in
4. A processor as defined in
5. A processor as defined in
0. 7. The method of
multiplexing said converted image with said second image.
|
This is a continuation of application Ser. No. 08/129,355 filed Sep. 30, 1993 now abandoned.
This invention relates to a video display processor for desktop computers processing multi-media signals.
Computer multi-media signal processing involves combining and manipulating graphical and video images, the video images involving high data rates, particularly for moving images. Such systems are typically required to convert signals of the form received from a TV station, usually in a YVU or YCrCb color model, to RBG, the form usually used by a computer display, or vice versa, while adjusting brightness and correcting for color. They are required to perform blends, and scale the signals (stretch and/or contract) for the display, so that for example different sized video images can be superimposed in separate different sized windows. The typical host CPU of a computer system is hard-pressed to service these requirements in real time, and at the same time maintain service to other computer peripherals and devices.
For example, graphical stretches and reductions previously tended to be software implementations, and were application specific. However these are unsuitable for stretching or reducing live video images, due to the intensity of use of the computer CPU, creating a large overhead. In order to minimize CPU overhead, hardware scalers were produced. However these were typically used in digital to analog converters which translate the output of the graphics or display circuit immediately previous to the display. These scalers have only been able to scale upwards to multiples of the image source size. Further, since the output of the scaler is an analog signal suitable for the display, the image signals could only be displayed, and could not be read back digitally or operated on again.
Display processors for desktop computers were in the past able to superimpose one object upon another, for example the display of a cursor over background graphics. Such a processor typically incorporates a destination register, which stores pixel data relating to pixels to be displayed. Such data is often referred to as destination data. Other pixel data, to be superimposed (i.e. mixed) over the destination data, is stored in a source register and is referred to source data. A computer program controls software comparisons of the pixel values, and selects for display the pixel value having either a component or a value which is in excess of the corresponding value of the destination pixel.
While such an operation has been successful for graphical data, even graphical data with a varying component, such as data which varies due to a moving cursor, it has not been very successful to provide a rich array of capabilities when video data is to be mixed with video data or with graphics data. Yet these capabilities have become increasingly important as multimedia demands are made on the desktop computer. One of the primary reasons for the inability to provide such capabilities is that with software comparisons, excessive interrupt and processing demands are made on the central processor, which inhibits it from servicing the remainder of the computer in a timely fashion.
A description of software processing of pixel data, including mixing of graphical data, may be found in the text "Graphics Programming For the 8514/A", by Jake Richter and Bud Smith, M&T Publishing, Inc., Redwood City, Calif., copyright 1990, and which is incorporated herein by reference.
In order to solve this problem, a separate graphics processor system has been designed, containing a video sub-system. Except for the loading of a video memory which interfaces the video subsystem, the present invention operates independently of the host CPU, thus greatly relieving it of major operational overhead. It can thus service the remainder of the system, increasing its response time. Yet full motion processed multi-media signals can be provided on a computer using the present video subsystem invention.
In accordance with the present invention a video display processor is comprised of apparatus for receiving digital input signal components of a signal to be displayed, apparatus for converting the components to a desired format, apparatus for scaling and blending the signals in the desired format, apparatus for outputting the scaled and blended signals for display or further processing and an arbiter and local timing apparatus for controlling all of the apparatus substantially independently of a host CPU.
A better understanding of the invention will be obtained by a consideration of the detailed description below of a preferred embodiment, in conjunction with the following drawings, in which:
Timing and control of the parts of the data translator 7, destination read circuit and multiplexer, as well as the reading of the memory 1 to read source data, for providing the signals to buffer 5 is provided by arbiter and host CPU interface 17. These elements interface a main computer bus 19, such as an ISA bus, to which the main CPU 21 of the computer is connected. The interface connects to the arbiter, which receives signals from and sends signals to the CPU 21. Arbiter signals are generated in arbiter 17 for each of the units 7, 9 and 11 to control their operation, and causes an address generator 23 to generate appropriate addresses for each of the units 7, 9 and 11 to complete control signals for unit 7, 9 and 11.
Further, CPU 21 establishes virtual connections between the units 7, 9 and 11 by sending signals via host interface 17 to memory 1 to set up a parameter list which defines the required operation (such as a color-space transformation, or a scaling of an image), and assigns specific trigger codes to that parameter list. There may be any number of virtual connections for any given process. Once all the virtual connections have been set up, the system operates independently of the CPU 21, thus relieving it from the video control, and allowing it to deal with other computer processes.
The system described herein triggers operation of the various units by sending a specific trigger code assigned to that operation, via a control bus 25. When any unit receives a trigger code, it locates the parameter list assigned to that specific message, and then performs the operation as defined in that parameter list. All this is performed independently of the computer CPU 21.
Parameter lists may be linked together, so that one trigger code can trigger a number of operations. Furthermore, as parameter lists exist in shared memory 1 and their structure is defined to all components, parameters can be altered concurrently with a process.
Preferably the control bus uses a serial bus protocol to facilitate event synchronization between components in a multi-media computing environment. Each device on the bus has an opportunity to transmit a preferably 16 bit message to the other devices on the bus.
The bus requires only two pins on each device to implement: clock and data. The arbiter provides a stable clock and polls for requests from all devices connected to the bus. Polling for requests is accomplished by transmitting a series of "invitations"; one for each of the devices (addressed by ID number) on the bus 25. While only one arbiter is required, any of the devices could be made capable of performing the function, by using appropriate circuitry.
The arbiter constantly cycles through a series of invitations to allow each device on the bus 25 to use a brief time slot for signalling other components in the system. An invitation begins with a start bit and is followed by a device ID signal--an "invitation to send". All devices receive the ID signal and decode its value. The device that matches the invitation ID can then choose to accept the invitation by asserting an invitation acknowledge bit into the bit stream. Following the invitation acknowledge bit, the selected device then broadcasts its signal event which represents some form of status or message. The significance of these messages is decoded by all devices on the bus 25 and 18 acted upon by the appropriate target device(s). The arbiter cycles through all of the device IDs that are connected so that each device has an opportunity to broadcast a message. Messages or "signal events" are preferably 16 bit fields containing a 4 bit function code and a 12 bit data field.
A typical data packet, as shown in
With respect to
Most of the time the bus 25 will contain only circulating invitations from the arbiter with no device actually accepting the invitations. In these cases the Signal Event portion of the packet is skipped. It is the responsibility of each device on the bus to monitor the invitation acknowledge of each invitation to determine when to begin looking for the next start bit. The abbreviated packet is depicted in FIG. 4.
It is not necessary for the arbiter to circulate ID codes that are never utilized. Consequently the arbiter could be programmable to allow some ID codes to be excluded. However, this will not have a large impact on worst case latency. For simplicity, it is sufficient to always cycle through each ID code from 0 to 7.
The problem of loss of synchronization can be dealt with by the following. If, for example, a device falsely detects a start bit then it must be able to re-sync within a brief period of time. For this purpose each bus device should monitor the bus to detect 10 consecutive low bits (called a "break"). Once a break is detected, each device knows that the next `1` that is seen is a start bit. It is for this reason that bit 14 of a data packet is preferably always `1` to ensure that the data packet can never contain 10 consecutive zeroes. The arbiter must insert a break after each set of 8 invitations to cause a re-synchronization.
A full data packet consists of an invitation (start bit followed by an invitation ID), an invitation acknowledge followed by a signal event. A signal event consists of a 4 bit function code followed by a 12 bit data field. The data field can also include an acknowledgment from the start (destination) of the signal event. The following table contains some of the function code definitions that could be used:
Function Code (4 Bits) | Data Field (12 Bits) | |
Audio Record Sync | 12 bit Time stamp | |
Audio Playback Sync | 12 bit Time stamp | |
Graphics scan line count | 12 bit Line number | |
Video Scan line count | 12 bit Line number | |
Service Request (0 × E) | 10 bit service number | |
1 switch over bit (ignore | ||
data) | ||
1 bit empty or ack from | ||
target device if possible | ||
Service complete (0 × F) | 10 bit service number | |
(always paired with | 1 bit (not used) | |
Service request) | 1 bit service successful | |
A service is a set of operations requested by one device (the source) and performed by another (the target).
A service request is sent by the source device and consists of a 10 bit service number indicating one of 1024 services to be performed, and a 1 bit acknowledge from the target device indicating that the service request was received. It is important that the host CPU 21 allocate unique service numbers to each target so that two request receivers will not accept the same service number. A service complete message should be sent by the receiver of a service request to indicate that it has finished processing the request. It should also return a 1 bit flag indicating that the service was performed successfully or unsuccessfully. The service number it returns should be the same as the service number that it received and acknowledged in the service request. If a service request is received and accepted by a device then it should return a completion message at some later time.
A preferred embodiment of the invention is shown in detailed block diagram as illustrated in
Video signals in e.g. RGB or YCrCb models are received or are transmitted (by an I/O interface to a high speed bus connected to memory 1, not shown) to scaler 531.
Scaler circuit 531 receives source signals pixel data via source bus 532 from the memory bus. A destination bus 533 carries an output signal from the scaler to the color conversion unit.
The structure is comprised of an ALU 539 for performing a vertical blend function and an ALU 541 for performing a horizontal blend function. ALU 539 receives the vertical blending coefficients aV and bV and the vertical accumulate Accv flag.
Similarly, the ALU 541 receives from screen memory, via the data portion of the packet described earlier, the horizontal blend coefficients aH and bH and the accumulate AccH flag. The Acc bits determine whether R should be added or zero should be added. Acc is a flag specified in the coefficient list.
ALU 539 receives adjacent pixel data relating to the first or input trajectory on input ports Q and P, the data for the Q port being received via line buffer 543 from the data source, which can be the screen memory, via source bus 532. The output of line buffer 543 is connected to the input of line buffer 545 via multiplexer 562, the output of line buffer 545 being connected to the P port of ALU 539.
The output of ALU 539 is applied to the input of pixel latch 560. The Q pixel data is applied from the output of ALU 539 to the Q input port of ALU 541 and the P pixel data is applied from the output of pixel latch 560 to the P input port of ALU 541. The P pixel data is also applied to the other input of multiplexer 562.
The output of ALU 541 is applied to the input of pixel accumulator 549, which provides an output signal on bus 533 for application to a color conversion unit.
The line buffers are ideally the maximum source line size in length. The accumulator value AccV and AccH applied to ALU 539 and ALU 541 respectively determine whether R should be forced to zero or should equal the value in the accumulator.
In operation, a first line of data from a source trajectory is read into line buffer 543. The data of line buffer 543 is transferred to line buffer 545, while a second line of data is transferred from the source trajectory to the line buffer 543. Thus it may be seen that the data at the P and Q ports of ALU 539 represent pixels of two successive vertical lines.
Thus the output of the vertical blend ALU 549 is applied directly to the Q port of the horizontal blend ALU 541, and the output of vertical blend ALU 539 is also applied through a pixel latch 560 to the P port of ALU 541. The output of line buffer 543 is connected to the input of a multiplexer 562; the output of pixel latch 560 is connected to another input of multiplexer 562. The Accv input is connected to the control input of multiplexer 562. The output of multiplexer 562 is connected to the input of line buffer 545.
The vertical blend ALU 539 can only accumulate into the line buffer 545. The blend equation becomes
wherein the result of the equation is assigned back to P if a vertical accumulate is desired.
For the rest of each horizontal line the data relating to two consecutive horizontal pixels are applied on input lines Q and P to ALU 541 and are blended in accordance with the equation
The result of this equation is output from ALU 541 and is stored in pixel accumulator 549.
The pixel data is transferred from line buffer 543 into line buffer 545. The source trajectory is read and transferred to line buffer 543. The steps described above for the vertical blending function is repeated for the rest of the image.
Coefficient generation in the vertical direction should be modified accordingly. Line buffer 545 is otherwise loaded whereby line buffer 543 data is transferred to it only when the source Y increment bit is set.
Smaller line buffer sizes, i.e. only 32 pixels strains the maximum source width, but has no effect on source height. Thus if the source width is greater than 32 pixels, the operation can be sub-divided into strips of less than 32 pixels wide. Since this may affect blending, the boundaries of these divisions should only occur after the destination has been written out (i.e. a horizontal destination increment). With a maximum stretch/reduce ratio of 16:1, the boundary thus lands between 16 and 32 pixels in the X direction. The coefficients at the boundary conditions should be modified accordingly.
In a successful prototype of the invention 32 pixel line buffers and a 128 element X coefficient cache were used. Y coefficients are not cached and were read on-the-fly. The embodiment is preferably pipelined, i.e. each block may proceed as soon as sufficient data is available.
It should be noted that the source trajectory should only increment with a source increment that is set in a coefficient list in the screen memory or equivalent. If the source is incremented in the X direction and not in the Y direction and the end of the source line is reached, the source pointer is preferred to be reset to the beginning of the current line. If the source is incrementing in both directions and the end of the source line is reached, it is preferred that the source pointer should be set to the beginning of the next line.
The destination trajectory should be incremented in a similar fashion as the source trajectory except that the destination increment bits of the coefficient list should be used.
Line buffer pointers should be incremented when the source increment bit is set in the X direction. They should be reset to zero when the end of the source line is reached. Data should not be written to line buffer 543 nor transferred to line buffer 545 if the source increment bit is not set in the Y direction. Destination data should only be written out from the pixel accumulator if both X and Y destination increments bits are set.
The X coefficient pointer in the screen memory should be incremented for each horizontal pixel operation, and the Y coefficient pointer should be incremented for each line operation.
The design described above which performs the vertical pixel blending prior to the horizontal pixel blending is arbitrary, and may be reversed in which horizontal blending is performed prior to vertical blending. It should be noted that blending in only one direction can be implemented, whereby one of the ALUs is provided with coefficients which provide unitary transformation, i.e. neither expansion nor contraction of the image.
In a successful prototype of the invention 532 pixel line buffers and a 128 element X coefficient cache were used. Y coefficients are not cached and were read on-the-fly.
The output of pixel accumulator 549 is applied via bus 533 to the input of a color space converter. This signal is typically comprised of three input signal components AinBinCin. The input signals are applied to clippers 417, 418 and 419 respectively.
Also applied to each of the clippers 417, 418 and 419 are ceiling and floor limit data signals or values which establish ranges within which the input signal components should be contained.
When the input signals exceed, either positively or negatively, the limits designated by the ceiling or floor values, the respective signal component is saturated (clipped) to the ceiling or floor (upward or downward limit) respectively.
The output signals of the clippers are applied to respective inputs of a matrix multiplier 421, in the preferred embodiment a [3×3]×[3×1] matrix multiplier. Also input to the multiplier is an array 423 of parameter data which forms a color transformation matrix. The transformation performed in the matrix multiplier will be described below.
The three outputs of the matrix multiplier 421 are applied to three inputs of a vector adder 425. A 3×1 array 427 of parameters is input to vector adder 425, which performs the function [3×1]+[3×1], as will be described below. The parameters 0x in the array 427 constitute offset vectors.
The three outputs of vector adder 425 are applied to respectively inputs of output clippers 429, 430 and 431 to which ceiling and floor limit data signals are applied. The output clippers operate similarly to the input clippers 417, 418 and 419, ensuring that the output signal components are contained within the range defined by the output ceiling and floor limits, and if the output signal components exceed those limits, they are clipped (saturated) to the ceiling and floor levels. The resulting output signals from clippers 429, 430 and 431, designated by Aout, Bout, and Cout constitute the three components of the output signal in either RGB or YCrCb format.
In a preferred embodiment, each of the R, G and B signals are equal or greater to zero and equal or smaller than 255 units, the Y component is equal to or larger than 16 and equal or smaller than 235, and the Cr and Cb components are equal to or larger than 16, or equal to or smaller than 240.
To convert from YCrCb to RGB, the matrix multiplier 21 and vector adder 425 should perform the following transformation:
To convert from RGB to YCrCb format, the multiplier and adder should perform the following transformations:
For brightness, contrast, color saturation and hue control for a YCrCb signal, the input signal is YCrCb and the output is YCrCb, and the following transformations should be performed in the matrix multiplier and adder:
The conversion from a YCrCb to a RGB signal can be expressed in the following matrix form.
or more precisely
where W is the color transformation matrix and O is the offset vector.
The matrix multiplication step is performed in the matrix multiplier 421 and the addition step is performed in the vector adder 425. The RGB elements constitute the values of the signal components in the input signal, and the numerical parameters in the b 3×3 matrix constitute the Wx transformation parameters, while the values in the 3×1 matrix constitute the offset vector O.
For conversion from an RGB to YCrCb format, the transformation that should be performed in the matrix multiplier and vector added is
or more concisely
For brightness, contrast, color saturation and hue control in a YCrCb type signal, the input signal is YCrCb and the output signal is YCrCb. The matrix multiplier and vector adder should perform the following transformation.
In summary, for brightness, contrast, color saturation and hue control when converting from a YCrCb format to RGB, the transformation can be reduced to
For brightness, contrast, color saturation and hue control when converting from an RGB signal to a YCrCb type signal, the following reduced transformation is performed.
For performing brightness, contrast, color saturation and hue control in an RGB signal, both the input and output signals are in RGB format. The transformation performed in the multiplier and vector adder in reduced form is
As noted above, the clippers 417 to 419 and 429-431 ensure that all data passing through them must be within the ranges specified. However if the input data is already between the specified ranges, the clippers may be deleted.
The three outputs of the matrix multiplier are respectively:
Aino=Ain*W11+Bin*W21+Cin*W31
Bino=Ain*W12+Bin*W22+Cin*W32
Cino=Ain*W13+Bin*W23+Cin*W33
The three outputs of the vector adder are
Aouto=Aouti+O1
Bouto=Bouti+O2
Couto=Couti+O3
All arithmetic is preferably performed on 10 bit wide signed integer data (1 bit sign, 1 bit integer and 8 bits fractional). This should be used under normal circumstances. However if over saturation, over contrast, or over brightness is desired, more integer bits may be rquired, increasing the number of total data bits and widening all other data paths. Floor and ceiling parameters on incoming and outgoing data channels are preferably 8 bits wide, and all other data paths are preferably 10 bits wide.
Preferred integer parameter sets for each respective operation are listed below. The dynamic range of Cr and Cb have been adjusted slightly such that all coefficients fall in the range [-512,+512). For YCrCb to RGB conversion:
The floor and ceiling parameters for the clipping registers preferably are:
A_in_ceil | 234 | |
A_in_floor | 16 | |
B_in_ceil | 240 | |
B_in_floor | 16 | |
C_in_ceil | 240 | |
C_in_floor | 16 | |
A_out_ceil | 255 | |
A_out_floor | 0 | |
B_out_ceil | 255 | |
B_out_floor | 0 | |
C_out_ceil | 255 | |
C_out_floor | 0 | |
For RGB to YCrCb conversion:
The floor and ceiling parameters for the clipping registers preferably are:
A_in_ceil | 255 | |
A_in_floor | 0 | |
B_in_ceil | 255 | |
B_in_floor | 0 | |
C_in_ceil | 255 | |
C_in_floor | 0 | |
A_out_ceil | 235 | |
A_out_floor | 16 | |
B_out_ceil | 240 | |
B_out_floor | 16 | |
C_out_ceil | 240 | |
C_out_floor | 16 | |
For brightness, contrast, color saturation and hue control of YCrCb=>YCrCb:
The floor and ceiling parameters for the clipping registers preferably are:
A_in_ceil | 235 | |
A_in_floor | 16 | |
B_in_ceil | 240 | |
B_in_floor | 16 | |
C_in_ceil | 240 | |
C_in_floor | 16 | |
A_out_ceil | 235 | |
A_out_floor | 16 | |
B_out_ceil | 240 | |
B_out_floor | 16 | |
C_out_ceil | 240 | |
C_out_floor | 16 | |
For brightness, contrast, color saturation and hue control of YCrCb=>RGB:
The clipping registers are set as with straight YCrCB to RGB conversion.
For brightness, contrast, color saturation and hue control of RGB=>YCrCb:
Clipping registers are set as with straight RGB to YCrCb conversion.
For brightness, contrast, color saturation and hue control in RGB=>RGB:
The floor and ceiling parameters for the clipping registers preferably are:
A_in_ceil | 255 | |
A_in_floor | 0 | |
B_in_ceil | 255 | |
B_in_floor | 0 | |
C_in_ceil | 255 | |
C_in_floor | 0 | |
A_out_ceil | 235 | |
A_out_floor | 0 | |
B_out_ceil | 255 | |
B_out_floor | 0 | |
C_out_ceil | 255 | |
C_out_floor | 0 | |
It is preferred that all matrix multiplications should be performed in floating point and only converted to integer just before loading the coefficients to the hardware color conversion unit. This minimizes transformation error.
It should be noted that the input clipping parameters and output clipping parameters are preferably programmable. Thus any three component number set may be transformed into any other three component set as long as that transformation is linear. In particular, any three component color model may be transformed to any other three component color model as long as that transformation is linear. If the multipliers and data paths were widened, it would be practical to perform other useful transformations, such as xyz coordinate transformation for example.
The output of the color space conversion circuit is input to an output multiplexer 620. Source data is data relating to a video or graphical signal which is to be mixed with destination pixel data (or in short, simply destination data). Destination data is data already in the memory 1 which is to be displayed, and can result from another source such as a video input, in a manner known in the art.
It is preferred that the source data should be passed through an output masking gate 623. The output masking gate 623 should be always enabled, although it may be set such that it does not mask anything.
The output multiplexer 620 has a control input 621 to which a keying signal is applied. Thus depending on the value of the keying signal, a pixel of either destination data or source data is provided at the output 622 of the multiplexer 620. Data at the output 622 is written to the destination memory, which can be a destination register or the memory 1.
The destination and source data is also provided to inputs of an input multiplexer 624. A mode signal applied to a control input 625 of multiplexer 624 selects which of the signals, a pixel of either destination or source, will be provided at its output, from which the keying signal, if provided for that pixel, will be derived. The mode signal can be a bit provided to the mixing unit from a control register of the display processor.
Various components of data defining each pixel (7:0, 15:8, 23:16 and/or 31:24) are then individually passed through respective gates 627, 628, 629 and 630, each of which receives 8 mask bits INASK from a control register of the display processor. This provides a means to mask off bits which will not participate in generating the keying signal, and thus to inhibit keying. OMASK and IMASK are preferably 32 bits wide, corresponding to the four 8 bit pixel components that are being operated upon. Since each of the components of data can define a particular characteristic of the pixel, e.g. color, embedded data, exact data, etc., this provides a means to inhibit or enable keying on one of those characteristics, or by using several of the components and masking switches, to inhibit or enable keying based on a range of colors, embedded data, etc.
The outputs of each of the gates 627, 628, 629, 630 is applied to one input of each of pairs of comparators 633A and 633B, 634A and 634B, 635A and 635B, and 636A and 636B. Data values A and B are applied via masking gates 638A and 638B, 639A and 639B, 640A and 640B, and 641A and 641B respectively to the corresponding respective inputs of the comparators 633A-636B. The same masking bits IMASK that are applied to the gates 627-630 are applied to the respective corresponding gates 638A-641B. The data values A and B are static, and are masked by the gates in a similar manner as the destination or source data. Compare function selection signals FNA1, FNB1; FNA2, FNB2; . . . --FNB4 are applied to select the compare function of the corresponding gates 633A-636B.
Each pair of comparators compares each 8 bit pixel component with two values, the respective masked pixel components from value A and from value B. Each component has a separate compare function with each of the two comparison values.
The result of all of the component comparisons with the A value are ANDed together in AND gate 643, and the result of all of the component comparisons with the B value are ANDed together in AND gate 645. The outputs of AND gates 643 and 645 are applied to logic circuit 647. A CSelect bit from a control register of the memory 1 is applied to a control input of logic circuit 647, to determine whether the results output from AND gates 643 and 645 should be ANDed or ORed together.
The output of logic circuit 647 is the keying signal. It is applied to control input 621 of the output multiplexer, preferably through inverter 649. A signal ISelect applied from a control register of the memory 1 processor to a control input of inverter 649 determines whether the keying signal should be inverter or not. This provides means to inverse key on the data, e.g. to instantly switch the other of the destination or source data as the keyed data into or around a keying boundary merely by implementing a 1 bit software switch command ISelect.
Thus if the key signal data is FALSE, destination data is output from multiplexer 620. If the key signal is TRUE, the source data is masked with the output mask 623 and written to the destination.
The state of the mixing unit can be programmed by the following configuration, which can be stored in control or configuration registers:
Register | Number | ||
Name | of Bits | Description | |
Mode | 1 | Selects either the source or destination | |
for comparison. | |||
CSelect | 1 | Selects AND or OR the results of the A | |
and B comparisons. | |||
ISelect | 1 | Sects INVERT or no operation. | |
ValueA | 32 | Value A to compare. | |
ValueB | 32 | Value B to compare. | |
IMask | 32 | Input mask for masking off bits which | |
will not participate in the comparison. | |||
OMask | 32 | Output mask for preventing bits from | |
being overwritten at the destination. | |||
FNA1 | 3 | Compare function for pixel component 1 | |
and value A. | |||
FNA2 | 3 | Compare function for pixel component 2 | |
and value A. | |||
FNA3 | 3 | Compare function for pixel component 3 | |
and value A. | |||
FNA4 | 3 | Compare function for pixel component 4 | |
and value A. | |||
FNB1 | 3 | Compare function for pixel component 1 | |
and value B. | |||
FNB2 | 3 | Compare function for pixel component 2 | |
and value B. | |||
FNB3 | 3 | Compare function for pixel component 3 | |
and value B. | |||
FNB4 | 3 | Compare function for pixel component 4 | |
and value B. | |||
The eight possible comparison functions are the following:
Function Number | Description |
000 | False |
001 | True |
010 | Data >= Value |
011 | Data < Value |
100 | DataI = Value |
101 | Data == Value |
110 | Data <= Value |
111 | Data > Value |
In the embodiment illustrated, four groups of bits, bits 0-7, bits 8-15, bits 16-23, and bits 24-31, defining four components of a single pixel, are separately processed, giving a very high degree of flexibility in keying. These four components can define the red, green and blue (RGB) color of a picture or can be each of the Y,U,V parameters for that type of picture. The fourth component is provided for in case a destination compare operation is desired to be performed. This fourth component is referred to as the alpha channel, and is usable by the application software.
However it will be noted that in some cases four, or three (if the alpha channel is not used), components need not be used. In a simpler system, such as a monochrome system, or in a system in which a color signal is to be processed by the use of only one component, only one mask 627, one pair of comparators 633A and 633B, and one pair of masks 638A and 638B can be used. AND gates 643 and 645 can then be dispensed with and the outputs of comparators 633A and 633B can be applied directly to inputs of logic circuit 647.
The live video windows may be partially obsured by other windows. To deal with odd clip regions, the program application software should assign an ID to each of the distinct regions: graphics, Video 1, Video 2, and Video 3. This ID should then be written to the alpha channel of each pixel in the destination. Each video source should then be keyed to its own ID using the mixing unit described above, so that writing is inhibited outside it's own region.
To implement this, and assuming that the alpha channel has been set up (channel 4, bits 0-7), the data provided from the control registers to the various control inputs described above, i.e. one possible video mixer configuration can be:
Register | Value | |
Mode | DESTINATION | |
CSelect | OR | |
ISelect | No operation | |
ValueA | REGION_ID | |
ValueB | don't care | |
IMask | 000000FF | |
OMask | FFFFFF00 | |
FNA1 | TRUE | |
FNA2 | TRUE | |
FNA3 | TRUE | |
FNA4 | Data == ValueA | |
FNB1 | FALSE | |
FNB2 | FALSE | |
FNB3 | FALSE | |
FNB4 | FALSE | |
A possible video mixer configuration to mix two video streams, one of which is blue screened to provide for video special effects) is as follows. The non-blue screened source may also be a computer generated background.
Register | Value | |
Mode | Blue-screened data is SOURCE | |
CSelect | AND | |
ISelect | INVERT | |
ValueA | Lower color bound | |
ValueB | Upper color bound | |
IMask | FFFFFF00 | |
OMask | FFFFFF00 | |
FNA1 | Data > ValueA | |
FNA2 | Data > ValueA | |
FNA3 | Data > ValueA | |
FNA4 | TRUE | |
FNB1 | Data < ValueB | |
FNB2 | Data < ValueB | |
FNB3 | Data < ValueB | |
FNB4 | TRUE | |
Mode | Blue-screened data is | |
DESTINATION | ||
CSelect | AND | |
ISelect | No operation | |
ValueA | Lower color bound | |
ValueB | Upper color bound | |
IMask | FFFFFF00 | |
OMask | FFFFFF00 | |
FNA1 | Data > ValueA | |
FNA2 | Data > ValueA | |
FNA3 | Data > ValueA | |
FNA4 | TRUE | |
FNB1 | Data < ValueB | |
FNB2 | Data < ValueB | |
FNB3 | Data < ValueB | |
FNB4 | TRUE | |
To overlay computer graphics or text on top of a video stream or graphical image, the following possible video mixer configuration can be used. It should be noted that this is similar to blue screening, except that the computer graphics signal is used to key on a specific color.
Register | Value | |
Mode | Graphics data is SOURCE | |
CSelect | OR | |
ISelect | INVERT | |
ValueA | Color Key | |
ValueB | Don't care | |
IMask | FFFFFF00 | |
OMask | FFFFFF00 | |
FNA1 | Data == ValueA | |
FNA2 | Data == ValueA | |
FNA3 | Data == ValueA | |
FNA4 | TRUE | |
FNB1 | TRUE | |
FNB2 | TRUE | |
FNB3 | TRUE | |
FNB4 | TRUE | |
Mode | Graphics data is DESTINATION | |
CSelect | OR | |
ISelect | NO operation | |
ValueA | Color Key | |
ValueB | Don't care | |
IMask | FFFFFF00 | |
OMask | FFFFFF00 | |
FNA1 | Data == ValueA | |
FNA2 | Data == ValueA | |
FNA3 | Data == ValueA | |
FNA4 | TRUE | |
FNB1 | TRUE | |
FNB2 | TRUE | |
FNB3 | TRUE | |
FNB4 | TRUE | |
A person skilled in the art understanding this invention may now design variations or other embodiments, using the principles described herein. All such variations or embodiments are considered to fall within the scope of the claims appended hereto.
Alford, Michael A., Chen, Keping, Lum, Sanford S., Wong, Samuel L. C., Bennett, Dwayne R.
Patent | Priority | Assignee | Title |
8125497, | Feb 01 2001 | Apple Inc. | Adjustment of color values for optimized image processing |
9213988, | Oct 25 2000 | REFINITIV US ORGANIZATION LLC | Electronic commerce infrastructure system |
Patent | Priority | Assignee | Title |
4864496, | Sep 04 1987 | HEWLETT-PACKARD DEVELOPMENT COMPANY, L P | Bus adapter module for interconnecting busses in a multibus computer system |
4980765, | Feb 08 1989 | Hitachi, Ltd. | Frame buffer memory for display |
4994912, | Feb 23 1989 | INTERNATIONAL BUSINESS MACHINES CORPORATION, A CORP OF NEW YORK | Audio video interactive display |
5020115, | Jul 10 1989 | McKesson Information Solutions LLC | Methods and apparatus for dynamically scaling images |
5105266, | Nov 30 1989 | Eastman Kodak Company | Single pass color substitution |
5124688, | May 07 1990 | CERPLEX GROUP, INC | Method and apparatus for converting digital YUV video signals to RGB video signals |
5227863, | Nov 14 1989 | Intelligent Resources Integrated Systems, Inc. | Programmable digital video processing system |
5243447, | Jun 19 1992 | Intel Corporation | Enhanced single frame buffer display system |
5260695, | Jan 31 1992 | Hewlett-Packard Company | Color map image fader for graphics window subsystem |
5444835, | Sep 02 1993 | Apple Inc | Apparatus and method for forming a composite image pixel through pixel blending |
5889499, | Jul 29 1993 | S3 GRAPHICS CO , LTD | System and method for the mixing of graphics and video signals |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Aug 11 2000 | ATI Technologies, Inc. | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Jan 20 2006 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Mar 15 2010 | REM: Maintenance Fee Reminder Mailed. |
Apr 22 2010 | M1553: Payment of Maintenance Fee, 12th Year, Large Entity. |
Apr 22 2010 | M1556: 11.5 yr surcharge- late pmt w/in 6 mo, Large Entity. |
Date | Maintenance Schedule |
Oct 05 2007 | 4 years fee payment window open |
Apr 05 2008 | 6 months grace period start (w surcharge) |
Oct 05 2008 | patent expiry (for year 4) |
Oct 05 2010 | 2 years to revive unintentionally abandoned end. (for year 4) |
Oct 05 2011 | 8 years fee payment window open |
Apr 05 2012 | 6 months grace period start (w surcharge) |
Oct 05 2012 | patent expiry (for year 8) |
Oct 05 2014 | 2 years to revive unintentionally abandoned end. (for year 8) |
Oct 05 2015 | 12 years fee payment window open |
Apr 05 2016 | 6 months grace period start (w surcharge) |
Oct 05 2016 | patent expiry (for year 12) |
Oct 05 2018 | 2 years to revive unintentionally abandoned end. (for year 12) |