Video compression noise immunity
Abstract
This record has no abstract on file.
Term
Term ended
Projected expiry passed 20 May 2025, 1.3 years ago.
- Priority
- Filed
- Published
- Projected expiry
- Today
20 claims: 5 independent, 15 dependent
- 1Claims of equivalent WO 2006007135 A2 CLAIMS 1. A vidqo code device, comprising:an input to receive a serial stream of color pixel values;a threshold analyzer to receive a current one of said color pixel values;and a video compressor in communication with the threshold analyzer to communicate to the threshold analyzer a color pixel value standard comprising a previously identified one of said color pixel values in the stream of color pixel values;and wherein said threshold analyzer performs color space hysteresis on said current color pixel value to determine whether said current one of said color pixel values satisfies at least one of: (a) a predetermined positional relationship in a current or previous frame relative to said color pixel value standard, and (b) a predetermined positional relationship in a current run of pixels that includes another pixel having said predetermined positional relationship in a current or previous frame relative to said color pixel value standard.
- 6A video code device, comprising:an input to receive a serial stream of color pixel values;and an encoder to store a first one of said color pixel values, and to receive a current one of said color pixel values, wherein said encoder determines whether said current one of said color pixel values exceeds said first one of said color pixel values by less than a threshold and, if so, encodes said current pixel value by color match encoding.
- 12A method, comprising:receiving a stream of serial video data comprising pixel color values, identifying a current one of said pixel color values, identifying a standard pixel color value equal to a prior pixel color value in the stream of serial video data having a predetermined positional relationship with the current one of said pixel color values, determining by how much the current one of said pixel color values exceeds the standard pixel color value;and if said current one of said pixel color values exceeds the standard pixel color value by less than a predetermined threshold, encoding said current one of said pixel color values by color match encoding.
- 17A method, comprising:receiving a stream of serial video data comprising pixel color values, identifying a current one of said pixel color values, identifying first and second standard pixel color values equal to two different . prior pixel color values immediately adjacent a run of pixels including the current one of . said pixel color values, determining by how much the current one of said pixel color values exceeds the first standard pixel color value;if said current one of said pixel color values exceeds the standard pixel color value by less than a predetermined threshold, encoding said current one of said pixel color values by bit-based encoding where said bits are encoded to one of two binary states corresponding with, respectively, said first standard pixel color value;if said current one of said pixel color values exceeds the first standard pixel color . value by more than the predetermined threshold: determining by how much the current one of said pixel color values exceeds the second standard pixel color value;and if said current one of said pixel color values exceeds the second standard pixel color value by less than a predetermined threshold, encoding said current one of said pixel color values by bit-based encoding where said bits are encode to one of two binary states corresponding with said second standard pixel color value.
- 19A video system having an encoder to compress a video stream using a plurality of different compression command types at least some of which are comparative command types that employ comparative analysis of current pixel values in the video stream with known pixel values, the improvement comprising:a system in the encoder to selectively add predetermined hysteresis functions to corresponding ones of the comparative command types such that the hysteresis functions will provide customized sensitivity reductions in the respective comparative analyses . associated with the different compression command types.
Independent claims5
49 paragraphs in 7 sections, as filed
Description of equivalent WO 2006007135 A2
TITLE OF THE INVENTION
VIDEO COMPRESSION NOISE IMMUNITY
CROSS-REFERENCES TO RELATED APPLICATIONS
0004[0001] This application relates to U.S. Patent Application No. 10/260,534, Dambrackas, "Video Compression System" filed on October 1, 2002 (the "Dambrackas Application"), the entire contents of which are incorporated herein by reference.
FIELD OF THE INVENTION
0006[0002] This invention relates to digital video and more particularly to video compression noise immunity.
BACKGROUND AND SUMMARY OF THE INVENTION
0008[0003] Run length encoding schemes for compressing digital video streams are a known method of reducing the bandwidth required to transmit video over a transmission medium. In run-length encoding, pixels of a certain color value are transmitted by identifying a copy command rather than the actual pixel color itself. Ideally, with run- length encoding, multiple consecutive pixels of a common color can be defined by one (or a few) commands indicating, essentially, that a run of X length of common pixel colors can be drawn using a known color as the copy standard. Thus, rather than sending a stream of information identifying independent colors of consecutive pixels, the encoder issues a command to draw X number of pixels of a previously identified pixel color. [0004] The difference in the amount of bandwidth required between individual pixel identification and run length encoding can be substantial, especially in the computer arts, where long lengths of pixels are the same color (for example, background). As described in the Dambrackas Application, several different ways of run length encoding can be envisioned, such as copying a run from a pixel to the left of the run, copying a run from a pixel in a previous frame, copying a run from a pixel above the first pixel in the run, or other such methods. [0005] The present invention can be employed in any kind of run length encoding., scheme, including for example, the run length encoding scheme of the Dambrackas application.
0009[0006] As those of ordinary skill in the art will understand, pixel colors are represented by a color space, typically an RGB color space so that any particular color in a color palette can be represented by a value of red, combined with a value of blue, combined with a value of green. The number of bits available for each one of the color components (R, G, and B) will define the depth or richness of the color palette. The present invention is not limited in any way to the number of bits provided by the particular color palette, but for simplicity and purposes of explanation only, the present invention will be described with respect to an eight bit per color RGB color space. [0007] In Figure 1, this eight bit per component color scheme is shown as orthogonal definitions of a 8 x 8 x 8 RGB color matrix. Every color in the color palette can be defined by a location within the orthogonal projections as (1) a value for R between 0x00 and OxFF, (2) a value of G between 0x00 and OxFF, and (3) a value of B between 0x00 and OxFF. In uncompressed digital video, each pixel is defined by its unique 8 x 8 x 8 orthogonal location. Because screens of information can include millions of pixels, such video schemes require huge bandwidths for communication. [0008] Thus, for the scan line of pixels shown in Figure 3, the prior art of Figure 4 attempts to identify each individual pixel color Cl, C2, C3, etc. as individual triplets of bytes of the pixel information shown in Figure 1. That is, in Figure 4, the pixel color Cl is identified as an independent triplet of bytes with a header H, an eight-bit R component (Rox), an eight-bit green component (G<sub>ox</sub>), and an eight-bit blue component (B<sub>0x</sub>), effectively identifying a single color in the 8 x 8 x 8 matrix of Figure 1. The next triplet of bytes following the Cl triplet is the C2 triplet independently identifying the pixel color C2 in a manner similar to that shown in Cl. Similarly, subsequent pixel colors C3, C4, . etc. are identified by their own independent triplets of bytes. As one can see in Figure.4, the pixel scan line of Figure 3 is being identified by a stream of bytes that are uncompressed. With potentially millions of pixels per monitor screen and rapid refresh rates, the number of bytes required to employ the uncompressed video of Figure 4 makes it essentially unworkable. [0009] Known run length encoding, which compresses the video of Figure 4 into a fewer number of bytes, is shown in Figure 5. In this example, suppose that C1-C7 are the same color (for example in a background scan portion). In the example of Figure 5, the first pixel color Cl in the scan line of Figure 3 is encoded as an independent triplet of bytes (for each of the R, G, and B components), just like it was in the uncompressed video of Figure 4. The Cl color, that is now. known to the decoder at the monitor end, then becomes a standard by which the next six subsequent pixel colors C2-C7 (which in this example are the same color as Cl) are identified by a single RLE (run length encoding) byte comprised of a header, a copy left (CL) command, and a payload identifying the run length of six pixels. The encoding of Figure 5 communicates all the information needed to transmit the exact seven colors in the scan line of Figure 3 with a first triplet of bytes followed by a single RLE byte, where the embodiment of Figure 4 required seven triplets of bytes.
0010[0010] The embodiment of Figure 5 works very well as long as the color encoder is able to identify long runs of exact match colors. Thus, in the example described above with respect to Figure 5, the colors C1-C7 were assumed to be identical. A problem occurs, however, when the colors C1-C7 are identical in fact, but the encoder does not recognize them as identical. Such mistaken identity of colors usually occurs due to noise intrusion. Thus, if the encoder recognizes C2, C4 and C6 as even minutely different colors as Cl, C3 and C5, the run length encoding will be thwarted because the encoder will not recognize the Cl-C7.scan portion as a true run of identical colors. This can occur even when the encoder inaccurately perceives C2, C4 and C6 as neighbors to Cl, C3 and C5 in orthogonal. location (Figure 1).
0011[0011] The present invention liberalizes the identification of matches among consecutive pixels so run lengths of matching colors<sup>'</sup> will not be interrupted by certain noise conditions.
BRIEF DESCRIPTION OF THE DRAWINGS
0013[0012] FIGURE 1 is a graphical representation of conventional eight bit RGB color palette;
0014[0013] FIGURE 2 is a graphical representation of transitions in an example color palette; [0014] FIGURE 3 is a graphical representation of a scan line of pixel colors being output. by a video source;
0015[0015] FIGURE 4 is a conventional uncompressed video packetization of the scan line of
0016Figure.3;
0017[0016] FIGURE 5 is a conventional run length encoding example of a scan line of Figure
00183.;
0019[0017] FIGURE 6 is a system according to an example embodiment of the present invention;
0020[0018] FIGURE 7 is a flow diagram ofan example method according to the present invention;
0021[0019] FIGURE 8 is a flow diagram according to another example method;
0022[0020] FIGURE 9 is a flow diagram according to another example method;
0023[0021] FIGURE 10A-B is a flow diagram according to another example method; and
0024[0022] FIGURE 11 is a graphical representation of RGB hysteresis according to an example aspect of the invention.
DETAILED DESCRIPTION OF THE PRESENTLY PREFERRED EMBODIMENT
0026[0023] Image compression algorithms, such as the algorithms described in the Dambrackas application, exist to allow the information in an image to be represented in as few bytes as possible. Compression, however, does not come for free. Generally, the more efficient a compression algorithm is in representing the image in a small number of bytes, the more costly it is computationally. This means either more or faster hardware is needed to perform the computations, or more time is needed to process the image. [0024] The information contained within the image that is to be represented by compression resides in the spatial placement of color data. In other words, in general, one can not separate the spatial information from the color information. Any attempt to do so either creates or destroys information from the original image. [0025] Compression algorithms fall into two categories: lossy and loss-less. Loss-less compression algorithms preserve all spatial and color information in an image. They tend to require much more processing capability, and compress less efficiently than the lossy algorithms, however,. the original image cah.be faithfully reproduced from the <sup>;</sup> compressed data. Lossy compression algorithms enhance compression but do so at the <sup>'</sup>. expense of retention and fidelity of the spatial color information. [0026] For purposes of the example described herein, an incoming pixel is assumed to be represented by three analog signals representing the R, G, and B color components of the pixel. Thus, in Figure 6, the analog video signal 60 is received from any kind of analog video source as traditional red, green and blue color components. Of course, other color schemes are common and can be used in the present context in lieu of RGB schemes. [0027] In addition to carrying the video information, each of the RGB color components in analog video signal 60 will also carry unwanted noise. There are a number of ways in which noise may be introduced into, the analog, video signals 60, and the exact noise types are neither important to — nor constraining on—the present invention. For purposes of this description, we assume that any noise discussed is additive noise which is not correlated with any data represented by the video signals, and is independent of any noise appearing on any other pixel or color component.
0027[0028] As shown in Figure 1, a pixel's three color components can be thought of as coordinates in a three-dimensional color space, where the red, green and blue components form orthogonal axes. Color components from computer video sources typically get digitized into eight bits, resulting in 256 possible levels for each of the three color components. Of course, as described previously,- the present invention is not limited to any particular number of bits or any particular color scheme (such as RGB) but has application wherever pixel encoding requires comparative analysis. The example of Figure 1 illustrates a possible color space that contains over 16 million unique colors, and is often referred to as 24. bit color. <sub>;</sub>
0028[0029] Figure 2 is a two dimensional representation of a portion of Figure 1 corresponding to just the R-G plane. In Figure 2, very few of the colors defined by the R-G plane are shown for the purpose of illustrating one example context in which the present invention can improve compression. In the matrix of colors of Figure 2, colors of increasing green value proceed to the right and colors of increasing red value proceed upwardly. The following description applies with respect to each of the color . . components, but for purposes of explanation, only the green component will be used to describe, this system.
0029[0030] In Figure 2, the green value between 0x00 and OxFF (256 different color values) are defined by the hexadecimal representation corresponding to the green intensity. For example, a typical video signal may reflect an intensity of the green component that varies over a range from OmV to 70OmV. When that signal is digitized to eight green bits, the voltage variations are resolved in steps of 2.75mV. Thus, if the green component is exactly OmV, it will be encoded as 0x00, and if the green component is exactly 2.75mV, then it will be encoded as 0x01. In the case when the green component is exactly 1.375mV, the smallest amount of noise will push the green color component closer to OV or closer to 2.75mV (depending on whether the noise is additive positively or negatively), resulting in a chance that the pixel will be encoded as either 0x00 or 0x01. Thus, for component values at transition locations, noise in the signal can have an impact on the actual color value selected. [0031] Of course, with 256 possible green intensity values and in the context of, specifically, computer video, to the user looking at a particular pixel, a portion of which is the 1.375mV green component, the difference between a 0x00 or 0x01 encoding may not make a significant difference in the perceived video presentation. Thus, in most computer contexts the problem of noise at the transitions between color values is not a problem of video perception per se, but may be a problem in the context of moving or still photograph video where slight changes in color are important to the user's shade perception. In the computer arts, while slight color variation may not on first blush appear critical, they become a real problem in the context of optimizing run length encoding of the computer video.
0030[0032] This can be seen in the examples of Figures 3-5. In situations where the encoder is determining whether a scan line, such as Figure 3, includes a run of matched color values, if one of the colors C1-.C7 is misperceived as a non-matching color, solely as a result of noise, the run will be ended and the encoding compression will suffer. Consider for example, the embodiment of Figure 2 in which the green component is 35OmV. This value is at.the transition between color 20 and color 21 such that the smallest amount of noise decreasing analog intensity will encode the color as element 20 (0x7F) and the smallest amount of noise increasing color intensity will encode the color as element 21 . (0x80). In other words, the smallest amount of noise driving the signal downwards results in the signal being encoded as 0x7F and any noise forcing the signal upward will result in. the signal being encoded as 0x80. In this example, the problem is particularly acute because the smallest amount of noise can make all of the bits in the digitized version change (0x7F versus 0x80).
0031[0033] The illustration of Figures 2 arid 3 is somewhat simplified, but it illustrates the general principle that if we require exact matches between pixel values in determining run lengths, compression efficiency will suffer.
0032[0034] Another illustrative example of noise-induced inefficiency occurs when run length encoding is augmented by palette encoding. One method of compressing video is to reduce the number of bytes needed to transmit a color image by reducing the number of bits used to represent the color of a pixel. In the. extreme case, each pixel could be represented as a single bit, resulting in a compression ratio of 24:1. This extreme color compression requires that half of the RGB colors get mapped to a 1 and the others get mapped to a 0. We do this by dividing our three dimensional color space of Figure 1 into two distinct regions. A pixel which is mapped to one of these regions gets represented by a 1 and. a pixel which gets mapped to the other region gets mapped to a 0. As an example, define a 1 as all pixels whose components sum is greater than 384, that is, the output from our color space compression will be
00330 ifR+G+B<=384 . Y =
00341 ifR+G+B>384 where Y is the resulting 1 bit color value of the pixel, R is the red color component of the incoming pixel, G is the green color component of the incoming pixel, and B is the blue color component of the incoming pixel.
0035[0035] That color space conversion then gets interesting when noise is added to the system. In the three dimensional color space, addition of a small amount of noise to a. single color component has only a small overall effect. Unfortunately, when the color space is reduced by mapping to new color values, the effect of a small amount of noise can be quite large; For example, if our incoming pixel color is (R,G,B)=(128,128,128) then its displayed color will be a mid level gray. When<sup>'</sup> we compress this color using the function above, the sum of its components is 128+128+128=384, resulting in a compressed pixel value Y=O. If we add a noise value of 1 to only the red component of the nominal pixel value, we get (129,128,128). The sum of the noisy pixel's components is 129+128+128=385, resulting in a compressed pixel value of Y=I . The small noise tipped the color value from Y=O to Y=I. A small amount of noise added to the incoming pixel can have a tremendous effect on the resulting color-compressed value. [0036] As it turns out, many areas of the computer video arts are unique compared to the picture video arts because of the high contrast that usually occurs between adjacent pixels and the relatively few colors that are employed. In most computer video the primary interest is compressing images which are computer-generated desktop and windows applications.
0036[0037] The limited number of colors and limited need to handle moving video can be put to good use when designing a compression algorithm. Because of these characteristics, in the above example, the Y=O. and Y=I change of pixel value may not materially affect the picture when it occurs in the computer arts. After.all, Y=O and Y=I are nearly . equally valid representations for a pixel value which lies on the boundary between the two regions. To take. advantage of the high contrast of the information presented in typical screens, one can ignore small variations hi color value of nearby pixels and generally lose little if any important information contained in the image. Ignoring any .. small color value changes over small spatial separations helps to compress data more efficiently, and may also help avoid transmitting noise information. [0038] Because most of the information of interest within an incoming image lies in high contrast between neighboring pixels, small color changes between adjacent pixels can be ignored under the assumption that these small changes are artifacts of additive noise. One can then purposely bias the "measurement" of any pixel's color value based on the color value of that pixel's neighbors. In this example, the result is, in effect a type of spatial filtering, but. hot linear spatial filtering, which may risk either amplifying the effects of noise or losing high-contrast image information. Rather, in this example, the effect is dependent upon the amplitude of the change, in color between adjacent pixels. That means reducing the low-amplitude noise-induced variations, while preserving the large-amplitude image content.
0037[0039] That spatial filtering can come into efficient use in any analytical encoder in which comparative analysis is performed between pixel values. In one example of such an application, the spatial filtering is applied to run-length encoding schemes. Most compression<sup>'</sup> algorithms make use of the general similarity of nearby pixels in order to reduce the number of bytes needed to encode any particular pixel. For example, as introduced previously with respect to Figure 5, in run length encoding (RLE)<sub>5</sub> pixels are encoded by a color value and a run length, which indicates the number of subsequent pixels which have the same color value. As soon as the encoding algorithm detects a pixel with a different value, the run ends, and a new run begins. [0040] The weakness of these types of algorithms is that any difference (such as that caused by noise) between a pixel and the pixel to which it is compared (the standard) can result in a mismatch being detected, and the run being prematurely terminated. Spatial filtering employing color space hysteresis relaxes the requirement that a pixel exactly match the color value of a run, so that a pixel value only needs to be within a threshold value to the run value to be regarded as a match.
0038[0041] In RLE, after using color space conversion to reduce the number of colors to be represented in the compressed image, the first pixel which the compression algorithm processes will set the color value of the first run. Then,, taking the 24 bit color value of the pixel, determining the region in the color space into which that color value falls, and replacing the value with the 24 bit color of that region, yields a basis for the run. When the next pixel is measured, if its color value maps to the same region in the color space, then the run continues. However, if the "true" color of the next pixel (the color value prior to being corrupted with noise) is near the edge of the color space region, then noise can easily push that color value into an adjacent color spatial region. [0042] So instead of comparing the new pixel to see if the new pixel falls into the region which forms the basis for a run in the color space map, the run's color region is replaced with one which is slightly expanded in all three color dimensions. The slightly expanded color region is larger in 3-D space than the true pixel color, but operates as a test region which can be used to test whether the encoder will treat the measured value as in fact within the true color space. If the pixel falls into the test region, then the run continues; if not, the run terminates and the new pixel forms the basis of a new run. This larger test region now prevents pixels which have been corrupted by small amounts of noise from . being pushed out of the run's region, thus preserving longer runs that would otherwise be interrupted by noise. Larger color changes such as those expected from non-noise information within the input image will not be filtered and will thus terminate runs for screen areas of high pixel contrast.
0039[0043] Color space hysteresis is most simply implemented when the color space is divided into regular cubical regions as shown in Figure 1 IA. To appreciate this figure, take as an example a simple RLE run, where the actual run color value is at the geometric center of cubical regions normal(R0x01<sub>5</sub>GOxO I<sub>5</sub>BOxOO), the normal color space region, and test(R0x01, GOxO I<sub>5</sub>BOxOO), the slightly expanded color region. A new pixel value which falls within region normal(R0x01<sub>5</sub>GOxO I<sub>5</sub>BOxOO) corresponds to the actual run color value represented in three dimensions. A new pixel of the same color, but which has been noise-corrupted and therefore pushed outside of the normal color space region normal(R0x01, GOxO I<sub>3</sub>BOxOO)<sub>5</sub> would nonetheless fall within the expanded test region test(R0x01<sub>5</sub>GOxO 1,BOxOO). This relaxed spatial requirement allows such a pixel to still correspond to the actual run color value, and prevents interruption of the current run. [0044] The regions need not be cubical. Figure 1 IB shows a configuration of circular regions having an actual color value of CVR, where normaI(R0x01<sub>5</sub>GOxOl) represents the normal color space region and test(ROx01<sub>5</sub>GOxOl) represents the expanded test region. As shown, the blue bits can be completely dropped from the hysteresis to reduce the algorithm complexity. . . .
0040[0045] Although each of the color components appear in two-bit form in Figures 1 IA and 1 IB<sub>5</sub> these components can have larger bit size allocations such as five bits or eight bits, for purposes of higher resolution. Also, a region need not be limited in size to the digital-value limits shown on the axes of Figure 1 IA and 1 IB<sub>5</sub> as it may be. sized to cover larger dimensions. . .
0041[0046] A single number n<sub>test</sub> can be used to describe the "expansion" of the region (test (ROxOl<sub>5</sub> GOxOl<sub>5</sub> BOxOO)) for the purpose of implementing hysteresis, or a different value of n<sub>test</sub> can be used for each color axis. In the latter case, hysteresis can be customized in the R, G, arid B axes, respectively, to accommodate different levels of sensitivity for the different components. In such a case, the hysteresis block and the actual color block of Figure 11 would not be cubical or circular, but could form any variety of shape depending upon the bits from the color components and the n<sub>test</sub> values chosen for each component axis.
0042[0047] Although not shown in Figure 1 IA, each of the. cubes defining an RGB pixel color will receive similar nt<sub>es</sub>t hysteresis expansions so that adjacent cubes actually <sup>■</sup> overlap in ascertainable value compared to adjacent color cubes. The actual value of hysteresis employed can vary depending on levels of sensitivity desired in video perception and richness of color, versus the opportunity to enhance compression by recognition of greater run length. As described above, the actual value can also depend upon the color axis, to create other than cubical hysteresis.
0043[0048] The present invention can be embodied with respect to any kind of encoding that compares pixels for commonality, such as run length encoding, and is not limited to any particular kind of run length encoding. Solely for brevity and purposes of illustrating an example of the present invention, one embodiment will be described with respect to a scan line shown in Figure 3 and a run. length encoding in which a run length of pixel colors C2-C7 are encoded based on a copy left (CL) command from the standard color Cl. Examples of how such run length encoding can be accomplished within the context of computer monitors and computer networks is.described in the Dambrackas application. [0049] The Dambrackas application describes five different types of commands to encode a series of pixels. The first three are run-length encoding commands and include: (1) the copy-left command (encoding a run-length of pixel values based on a pixel value to the immediate left of the run), (2) the copyrold command (encoding a run-length of pixel values based on a pixel value in the same location as the first pixel in the run but in the immediately preceding frame), and (3). the copy-above command (encoding a run- length of pixel values based on a pixel value immediately above the first pixel in the run). Hysteresis provides advantage in the context of all of those run-length encoding techniques.
0044[0050] The hysteresis method also provides advantage in the context of the fourth . encoding command described in the Dambrackas application, the so-called make-series command. The make-series command is also a comparative analysis command because it uses as standards two different current pixel color values and encodes by binary ones and zeros a subsequent set of pixels that fall within one of the two color standards. The command is effective for text encoding that comprises a string of 2-color (text and background) runs. Hysteresis provides advantage both (1) for the comparison of the two different color standards (to decide whether they are, in fact, high enough in contrast to be considered two different colors), and (2) for the comparison of subsequent pixels to determine whether they match one of the two color standards. Of course, the hysteresis values for the "two-color difference" determination can be the same or different in sensitivity (thresholds) than the "color match" determinations. [0051] Figure 6 illustrates an example system that includes hysteresis to ease the requirement for exact matches in calculating run length and other comparative conditions. Analog video signal 60 is input to analog digital converter 61 which it is digitized into a stream of digital video signals for the encoder 62. The encoder 62 may be an encoder such as that described hi the Dambrackas application or any other similar kind of comparative analysis encoder. Within the encoder 62 is a threshold analysis routine 63, which run a threshold routine described below. Also included within encoder 62 is the compression routine 64, which provides the run length encoding of the digital video stream received from the A to D converter 61. Transmission medium 65 communicates the encoded video from the encoder 62 to the decoder 66 where decompression routine 67 reverses the process of the compression routine 64 to retrieve the digital video stream. The decompressed digital video stream is directed to a display 68, such as a flat panel display or in an alternative embodiment (after being passed through a D to A converter) to an analog video monitor. .
0045[0052] The specific application of the system of Figure 6 can vary. For example, the system could be a video extender for a remote PC. It may also be employed in video communication on network systems, remote. PC controllers, KVM switch applications, or any other application in which digital video is encoded by run length encoding or .other . encoding which analyzes for match or mis-match conditions. Further, the routines involved in compression (64) and threshold analysis (63) can be in a single processor, ASIC, FPGA or other suitable device to perform the kinds of routines described in, for example, the.several embodiments of Figures 7-10, or in still other alternative embodiments.
0046[0053] In an example embodiment of the present invention, instead of requiring an exact match for a rim length condition to apply, the threshold routine 63 subtracts one pixel value from another pixel value, and compares the absolute value of the result to a threshold value. If the absolute value of the difference is less than or equal to the . threshold, then it is treated as if it were an exact match. Specifically, a current pixel's red, green, and blue components Rj, Gj<sub>5</sub> B; are identified as an incoming pixel value in a stream of video received by the encoder 62 from the converter 61. The encoder 62 also identifies R<sub>s</sub>, G<sub>8</sub>, B<sub>3</sub> as a known pixel value (a standard) either in the present frame or a prior frame. Once the encoder 62 knows the value of R;, Gj, Bj and R<sub>8</sub>, G<sub>8</sub>, B<sub>8</sub>, the encoder 62 attempts to determine whether a match condition exists between the two. As previously described, in prior systems, the encoder 62 would determine whether the value of Ri, Gj, Bi was the same as R<sub>8</sub>, B<sub>s</sub>, G<sub>8</sub>, to determine identity. As described with respect to Figure 2, in some instances, that identity may fail as a result of mismatch identifications that don't really exist.
0047[0054] Accordingly, in the example embodiment, the encoder 62 subtracts the value of R<sub>8</sub>, G<sub>8</sub> and B<sub>8</sub> components from the values of R;, Gi, B; components in order to obtain difference signals Rd, G<sub>d</sub>, B<sub>d</sub>. The absolute values of R<sub>d</sub> G<sub>d</sub> and B<sub>d</sub> are analyzed to determine whether they are less than a threshold value of C<sub>thresh</sub>- If so, the run length is incremented at step 79 and a new Rj, Gi, Bi is identified. In other words, if the difference values R<sub>d</sub>, G<sub>d</sub> and B<sub>d</sub> are less than the threshold, the match condition is assumed to be the case, and the run length is not interrupted.
0048[0055] When R<sub>d</sub>, G<sub>d</sub> or B<sub>d</sub> exceed the threshold, the encoder 62 first determines whether any run.length is currently in. process. If so, that run length is ended and encoded by the . compression routine 64, and a new Ri, G; and Bj, js identified. If, on the other hand, no prior run length has been<sup>'</sup> identified (prior to the current R;, G; and Bi presently being analyzed) then R;, G; and Bj are encoded according to some other encoding arrangement other than run length encoding by the compression routine 64. Again, another Rj, Gj. and Bi is then identified. [0056] Some examples will now be described to explain the impact of the compression. The examples are described in the context of the copy-old commands (CO), copy<sub>÷</sub>left commands (CL), copy-above commands (CA), and make-series commands (MS) previously introduced.
0049[0057] First,, a method of incrementing the count of a CO command (Figure 7) is . described. Recall that the copy-old command is a run length command in which the present pixel value is compared to the pixel value in a prior frame corresponding to the location of the first pixel in the present pixel run. In Figure 7, an incoming pixel value is identified by encoder 62 as Rj, Gi and Bj at step 70. The previously sent value for the copy old pixel location (that is, the value currently displayed by the client) is identified by encoder 62 as R<sub>8</sub>-, G<sub>8</sub> and B<sub>s</sub> at step 71. C<sub>thres</sub>h is the assigned color component threshold. Then, Rd = R<sub>5</sub> - Rj, G<sub>d</sub> = G<sub>s</sub> - Gi, B<sub>d</sub> = B<sub>3</sub> -Bi (where Rd, G<sub>d</sub>, and B<sub>d</sub> are the color component differences) is calculated at step 72. If |Rd| < C<sub>t</sub>hres<sub>h</sub> and |Gd |< C<sub>thresh</sub> and |Bd| < Qhr<sub>es</sub>h at steps 73-75, then the incoming pixel value matches the previously sent value, and the CO count is incremented at step 79. If the match fails at any of steps . 73-75, then the CO command is terminated. Thereafter, if a run existed prior to Rj G; B;, but is now ending due to the current mis-match (step 76), the run is encoded at step 77. If not, the pixel Rj G; Bj is encoded using a method other than RLE at step 78. [0058] Next, a method of incrementing the count of a CL command (Figure 8) is described. Recall that a copy-left command is a run length encoding command in which the present pixel value is compared to a prior pixel value immediately to the left of the first pixel in the present run. hi Figure 8, incoming pixel value is identified by encoder 62 as Rj, Gi, B;, at step 80. The value of the pixel sent prior to the start of the CL command is RL, GL, BL at step 81, and Cthresh is the assigned color component threshold. Then, Rd = R<sub>L</sub> - Ri, G<sub>d</sub> = G<sub>L</sub> - G<sub>;</sub>, B<sub>d</sub> = B<sub>L</sub> - Bj, (where R<sub>11</sub>, G<sub>d</sub>, and B<sub>d</sub> are the color component differences) is calculated at step<sup>"</sup>82. If |Rd| < Qhresh and |Gd |< Cthresh and |Bd| < C<sub>thresh</sub> at steps 83-85, then the incoming pixel value matches the previously, sent value, and the CL count is incremented at step 89. If the match fails at any of steps 83-85, then the CL command is terminated. Thereafter, if a run existed prior to Rj G; B; but is now <sup>■</sup>„ ending due to the current mismatch (step 86), the run is encoded at step 87. If not, the . pixel R<sub>f</sub> Gi B; is encoded using a method other than run-length encoding at step.88. [0059] Next a method of incrementing the count of a CA command (Figure.9) is described. Recall that the copy-above command is a command in which the present pixel . ■ value is compared to a pixel value immediately above the first pixel in a present<sup>'</sup>run. In Figure 9, prior to starting a CA command, a list of color values must be stored which corresponds to the last color values sent for each pixel column position within the image (i.e., one previous row). The values contained in this array will not change during execution of the C A. command. An incoming pixel value is identified by encoder 62 as Ri(x,y), Gi(x,y), Bi(x,y) at step 90. The value of.the corresponding array entry is identified as RA(X), G<sub>A</sub>(X), BA(X) at step..91. <sup>'</sup>Cthresh is the color component threshold, x is the pixel column of the current pixel and y is the row of the current pixel. Then, R<sub>d</sub> = R<sub>A</sub>(x) - Ri(x,y), G<sub>d</sub> = G<sub>A</sub>(x) - Gi(x,y), Bd = B<sub>A</sub>(x) - B<sub>;</sub>(x,y) (where R<sub>d</sub>, G<sub>d</sub>, and B<sub>d</sub> are the color component differences), is calculated at step 92. If |Rd| < Cthresh and |Gd |< Cthresh and |Bd| < C<sub>th</sub>re<sub>sh</sub> at steps 93-95, then the incoming pixel value matches the previously sent value, and the. CA.count is incremented at step 99. If the match fails at any of steps 93-95, then the CA command is terminated. Thereafter, if the run existed but is now ending due to the current, mismatch (at step 96), the run is encoded at step 97. If no immediately previous run existed, the pixel R<sub>1</sub>GiB,- is encoded with other than run length encoding at step 98.
0050[0060] Finally a method of testing a pixel to see if it fits in a MS command (Figures 10 A-B) is described. Recall that the make-series command is a command that fills bytes with a sequence of bits corresponding in binary value to two (and only two), color values of the two pixel colors immediately to the left of the first pixel in the make-series run. In the make-series command, two most recently sent pixel values are stored, which pixel values correspond to two different colors. AU subsequent pixels in the run must be identified as coming from one or the other of those two colors, or the run terminates. . First, prior to the start of the MS command, the two most recently sent pixel values must be stored. The. most recently sent value is Rpo, Gpo, Bpo; the next most recently sent value is Rp<sub>1</sub>, Gp<sub>1</sub>, Bpi. Also note that these two values must differ by at least the threshold value; that is, these values are valid only if |Rp<sub>0</sub> - Rp<sub>1</sub>I > Cthr<sub>es</sub>h or |Gp<sub>0</sub> - G<sub>P1</sub>[ >. Cthresh or |Bpo - Bpi| >C<sub>thresh</sub>, at step 102. If, at step 1.02, the two color values are different by the threshold, the Rpo and R<sub>P1</sub> are updated at step 102A for use in steps 104 and/or 109. A different threshold value Cthreshx can be used for step 102, i.e., a different threshold than <sup>■</sup>■ used later in steps 104-107. If step 102 fails, then the previous two pixels are not "two colors," and the current pixel is<sup>'</sup> encoded using a technique other than the two-color MS command at step 103.
0051[0061] If the MS command applies at step 102, and |R<sub>P0</sub> - R;| < C<sub>thresh</sub> and |Gp<sub>0</sub> - Gj| < Cthresh and |Bp<sub>0</sub> - Gi| < Cthresh at steps 104-107, then the pixel can be represented as a 0 (corresponds to the first color standard) in the MS byte at the bit location for the current pixel, at step 108.
0052[0062] Similarly, if the MS command applies at step 102, and IRp<sub>1</sub> -R;| < C<sub>t</sub>hresh and |Gpi- Gi| < Cthresh and IBp<sub>1</sub> - Gi| < Cthresh at steps 109-112, then the pixel can be represented as a 1 (corresponding to the. second color standard) in the MS byte at the bit location for the current pixel, at step 113. . . .
0053[0063] If the MS command fails at any of steps 105-107 and for any of steps 110-112, then the MS command fails for the current pixel, the MS byte is created and sent, and the current pixel is encoded by some other command (other than MS) at step 103. [0064] For each of the above scenarios C<sub>thr</sub>e<sub>sh</sub> can be determined based on the designer's choice of greater color contrast versus greater compression efficiency. In effect, the hysteresis introduces potential color information loss to what might otherwise be an essentially lossless compression scheme. The amount of loss to be tolerated through the hysteresis can be determined based on the communications bandwidth, system speed, color palette, color depth (e.g., bits per pixel color component), and other such design criteria. Cthresh can then be assigned based on the degree of loss permitted. Cthresh need not be identical for every run length command type, nor for every color component type, nor for evaluating match conditions versus evaluating mis-match conditions.. [0065] In one example embodiment, C<sub>thre</sub>sh *<sup>s</sup> different for one or more of the various encoding techniques employed by the algorithm. Thus, as just one illustrative example, the "no change" run length encoding technique can employ a Cthre<sub>sh</sub> different from the "copy above" or "copy left" encoding techniques. Similarly, the "copy above" and "copy left" techniques could employ the same or different thresholds, although employiήg.the same threshold is preferred in order to address artifacts consistently in the horizontal and vertical dimensions. Similarly, thresholds for the MS commands can be the same or different from any or all of the run length encoding commands, depending upon the sensitivities desired for the different command types.
0054[0066] Unlike prior usages of hysteresis in video processing, in which the hysteresis was used as a filter for the video, the present systems are unusual in providing hysteresis for individually different command types within a compression algorithm. Thus, hysteresis can be tailored to a particular command type (such as by setting unique thresholds and/or unique numbers of bits evaluated for each color component), rather than to the video signal per se. In the preferred embodiment, five command types are described (copy old, copy left, copy above, make a series, and make a pixel), each of which has a hysteresis associated with it that may (or may not) be unique compared to the hysteresis characteristics of the other command types. The present systems thus improve the . efficiencies of each command type and can be tailored to the unique noise sensitivities of those command types. Of course, the present invention is in no way limited to a particular one or more command types, but may be applied to tailor hysteresis to any one or combination of command types.
0055[0067] While the invention has been described in connection with what is presently considered to be the. most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Contents7
15 members in 8 offices
Priority claims9
| Document | Office | Kind | Date |
|---|---|---|---|
| 875679 | United States of America | – | |
| 87567904 | United States of America | A | |
| 87567904 | United States of America | A | |
| 2005017626 | United States of America | W | |
| 2005017626 | United States of America | W | |
| 875679 | – | – | – |
| US20040875679 | – | – | – |
| US2005017626 | – | – | – |
| WO2005US17626 | – | – | – |
Members15
| Document | Office | Kind | |
|---|---|---|---|
| US2005286790A1 | United States of America | A1 | |
| TW200601848A | Taiwan Province of China | A | |
| CA2571478A1 | Canada | A1 | |
| WO2006007135A2 | World Intellectual Property Organization (WIPO) | A2 | |
| WO2006007135A3 | World Intellectual Property Organization (WIPO) | A3 | |
| EP1759331A2This record | European Patent Office (EPO) | A2 | |
| IL180027A0 | Israel | A0 | |
| US2008019441A1 | United States of America | A1 | |
| JP2008504732A | Japan | A | |
| US7457461B2 | United States of America | B2 | |
| MY140182A | Malaysia | A | |
| EP1759331A4 | European Patent Office (EPO) | A4 | |
| JP5039545B2 | Japan | B2 | |
| CA2571478C | Canada | C | |
| US8805096B2 | United States of America | B2 |
13 legal events, as the office reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | |
|---|---|---|
| Application withdrawnWithdrawn18W | 18W | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: THE APPLICATION HAS BEEN WITHDRAWNSTAA | STAA | |
| Party data changed (applicant data changed or rights of an application transferred)RAP1 | RAP1 | |
| First examination report despatched17Q | 17Q | |
| Supplementary search report drawn up and despatchedA4 | A4 | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | |
| Information provided on ipc code assigned before grantRIC1 | RIC1 | |
| Request for extension of the european patent (deleted)DAX | DAX | |
| Designated contracting states (corrected)RBV | RBV | |
| Request for examination filed17P | 17P | |
| Designated contracting statesAK | AK | |
| Public reference made under article 153(3) epc to a published international application that has entered the european phaseORIGINAL CODE: 0009012PUAI | PUAI |
Numbers
- Publication
- 1759331
- Publication, DOCDB
- 1759331
- Publication, EPODOC
- EP1759331
- Application
- 5754824
- Application, DOCDB
- 05754824
- Application, EPODOC
- EP20050754824
Titles3
- German
- UNEMPFINDLICHKEIT GEGEN KOMPRESSIONSRAUSCHEN IN VIDEOBILDERN
- English
- VIDEO COMPRESSION NOISE IMMUNITY
- French
- IMMUNITE AU BRUIT DE LA COMPRESSION VIDEO
Classification
- CPC, 7
- H04N19/507
- H04N19/105
- H04N19/172
- H04N19/593
- H04N19/186
- H04N19/182
- H04N19/93
- IPC, 4
- G06K9 00
- G06K9 36
- H04N7 26
- H04N7 36
Designated states1
- Contracting states, 1
- Netherlands (Kingdom of the)