Abstract:
Method and apparatus for converting multibit pixel data to a lesser number of bit pixel data and re-expanding the compressed data. Luminance data for each pixel is established as the 5 most significant bits of the original luminance signal. The chrominance information for groups of pixels is subsampled, and a common chrominance value assigned to each of the pixels in a group. The resulting compressed pixels may be 8 bits wide providing economical possibilities to store the 8 bit wide data. The data is expanded for display by adding lower order data bits to the compressed luminance signal data bits. A subsampled chrominance data signal is appended to the expanded luminance data for display.

Description:
The present invention relates to digital display systems. Specifically, a technology for compressing and expanding pixel data to decrease buffer memory size requirements and reduce data transfer time is described. 
     Digital display technology may be divided into two basic display systems. The first relates to natural imagery which is provided by a camera, and the second relates to computer generated graphics. The natural imagery includes a luminance (Y) component defining image brightness and a chrominance component, usually expressed as U and V components defining the color of a pixel (picture element) of the scene. The resolution of any displayed image depends on the number of pixels and the precision in which the pixel luminance and chrominance is displayed. 
     Pixel luminance and chrominance data is advantageously stored in a frame buffer. The size of the frame buffer must be large enough to accommodate 640 x 480 pixels, having a data width of 24 bits per pixel to derive adequate resolution for many applications. 
     The cost of digital display systems is directly related to the frame memory size. For each megabyte of memory storage, a cost of as much as several hundred dollars may be incurred. Therefore, any reduction in data width for each pixel provides a source of cost reduction for the digital display system. 
     Interest in multimedia display systems which not only display natural scene images but can also be used to display computer graphics, is prompting more effort to reduce buffer memory storage requirements. Computer graphics may be implemented with only 8 bit pixel data which selects one of 256 displayable colors. The number of colors for such graphic pixels need not be as large as the number of colors for natural scene pixels to preserve image quality. A similar reduction in pixel data width for natural scenery images would therefore aid in keeping total memory requirements to a minimum. 
     SUMMARY OF THE INVENTION 
     It is a primary object of this invention to reduce the number of bits necessary to represent pixels of an image of a natural scene. 
     It is a more specific object of this invention to provide data compression of pixel data to reduce frame buffer memory size requirements. 
     It is yet another object of the invention to expand compressed pixel data stored in a frame memory to a full width pixel data signal. 
     These and other objects are provided by a pixel data compression and expansion technique in accordance with the invention. 
     The invention makes use of an encoding scheme which reduces the pixel luminance data width to 5 bits of digital data (Y 5 ). Additionally, the chrominance is subsampled to obtain for each group of pixels common U and V chrominance values for each pixel of the group. 
     In carrying out the invention in accordance with a preferred embodiment, the subsampled chrominance values U and V are compressed to their 6 most significant bits. The compressed chrominance U and V data values are packed with the unique reduced width luminance values Y 5  of each pixel for storage in a frame memory. 
     The preferred packing of U and V chrominance data includes further reducing the compressed U and V data values into portions which comprise the most significant bits and the least significant bits. The four portions, U H , U L , V H  and VL are appended to the luminance values Y 5  for the four pixels. 
     These pixel values may be stored as 8 bit pixels in a frame memory, thus providing a saving for memory storage space, or stored in permanent memory storage devices such as a CD ROM. The compressed data may be expanded by reading out the group of four pixels, and combining the U H , U L  portions as well as V H , V L  portions to obtain total U and V chrominance values. The luminance Y 5  and recombined chrominance U, V may be further expanded by combining a number of bits as lower order data bits to obtain 8 bit luminance, 8 bit U chrominance and 8 bit V chrominance data. 
    
    
     BRIEF DESCRIPTION OF THE FIGURES 
     FIG. 1 is a block diagram of a system for compressing, storing and expanding pixel data for display on a CRT display. 
     FIG. 2 is a schematic illustration of a circuit for compressing pixel data. 
     FIG. 3 is a schematic illustration of a decoder for expanding pixel data. 
     FIG. 4 illustrates a technique for interpolating expanded pixel data to reduce image transitions produced by pixel data compression. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     Referring now to FIG. 1, there is shown a digital display system in which compressed and expanded data may be displayed, in accordance with a preferred embodiment of this invention. The system shown in FIG. 1 has a processor 10 which accesses one of two mass storage memories 11 or 12, and transfers the data of these memories 12 to various components to provide pixel data for display on CRT 22. 
     The system illustrated in FIG. 1 is representative of a multimedia display system wherein computer graphics, as well as natural scenery graphics, may be accessed for display on the CRT 22. Data defining natural scenery is contained in the mass data storage unit 11. This may be a CD ROM or other storage device capable of storing up to 24 bits per pixel. The multimedia systems shown in FIG. 1 may be used to display prestored natural scenery picture information or graphics data from storage memory 12, which may be alternatively displayed on the CRT 22. The graphics data in memory 12 may define each pixel to be displayed with only 8 bits. Computer graphics generally can be defined by one of 256 different colors, thus avoiding the need for a wide and diverse gray scale as is found necessary for the quality display of natural scenery images. 
     The system shown in FIG. 1 is schematic only of a system generally capable of displaying either the graphics data or natural scenery images. 
     To efficiently store the natural scenery image in a frame buffer 14 the full width luminance and chrominance pixel data is compressed into 8 bit data slices for each pixel. The compression of the 24 bit pixel data into 8 bit data slices is provided by an encoder 13. The compressed pixel data is of the type having 5 bits of luminance, packed with 3 bits of averaged U chrominance or 3 bits of averaged V chrominance. The U and V chrominance components represent a color vector as is known in color systems. The Y luminance level is the gray scale level and is defined by 5 bits of data, while each of the U chrominance values is also defined by 3 additional bits. 
     Shown in FIG. 1 is a decoder 15 which, upon presentation of the 8 bit compressed pixel data in the frame buffer 14, will expand and interpolate the data to full width 24 bit Y, U and V pixel data. A driver 16 is shown converting the 24 bit wide pixel data to a conventional R, G and B drive for the CRT 22. 
     The graphics data is similarly displayed on CRT 22. However, no compression is necessary with 8 bit graphics data which may be directly stored in a second frame buffer 19. The RGB driver 20 similarly drives the CRT 22 when each pixel is read from the frame buffer during scanning of the CRT 22. The RGB drivers 16 and 20 are connected by a combiner 21 to the CRT 22. The drivers 16 and 20 are effectively isolated from each other by combiner 21. 
     Reducing the data width of each pixel defining the natural scenery entails certain compromises. Referring to FIG. 2, there is shown the preferred encoding system of the present invention which encodes the 24 bit wide Y, U, V pixel data into 8 bit pixel data. The embodiment of FIG. 2 makes use of a subsampling the chrominance of four pixels which may be consecutive, row-organized pixels. Each of registers 30, 31, 32 and 33 will store the full width pixel data for the four consecutive pixels 1-4. 
     The invention makes use of a reduced luminance resolution by using only the first 5 significant bits of the luminance data for each pixel. Registers 41, 42, 43 and 44 include the compressed pixel data having a 5 bit luminance component, which are the 5 most significant bits of the original luminance pixel data. 
     In employing the foregoing technique, it may also be advantageous to employ luminance dithering to change the value of the encoded lower order luminance bit on some periodic basis. 
     The chrominance for each of the four pixels is subsampled. An average chrominance value U and V is taken for the 4 consecutive pixels. An average circuit 35 is shown, averaging each of the 8 bits of U chrominance data for pixels 1, 2, 3 and 4. Similarly, the V chrominance component is averaged in a circuit 37 to provide an average V chrominance. 
     In accordance with the preferred embodiment of the invention, each of the averaged U and V chrominance values are compressed by using the 6 most significant bits thereof. These 6 most significant bits are partitioned in two registers 36 and 38 between a portion representing the 3 most significant bits UH, VH and a portion representing the 3 least significant bits of the compressed data, UL and VL. As a further feature of the preferred embodiment, the higher order U and V bits are appended to the luminance data of pixels 1 and 3. The lower order compressed chrominance data U L  and V L  is appended to the luminance component of pixel 2 and pixel 4. 
     In this particular embodiment of the invention, the frame memory 14 will store each of the pixels in consecutive order. The 4 pixels are read out together and the data expanded in accordance with the technique to be described. 
     The foregoing invention makes use of a reduced luminance signal and subsampled chrominance signals for each of consecutive, spatially related pixels. The luminance signal need only be 5 bits wide. The expansion process to be explained will minimize the artifacts produced from subsampling the pixels. The natural scenery data may then be stored as 8 bit pixel data, reducing the requirement for memory size for the frame buffer 14 and realizing a respective cost saving. Further, the processor 10 can transfer such data at an increased speed over the previous 24 bit wide pixel data. 
     It is possible to achieve similar savings in mass storage by storing the compressed data in mass data storage unit 11. Those skilled in the art may therefore elect to compress the data in accordance with the foregoing before storing the data in the mass data storage unit 11. 
     Referring now to FIG. 3, there is shown a particular expansion technique for expanding the compressed data back to a 24 bit wide luminance and chrominance signal. 
     The decoder includes a first set of registers 50, 51, 52 and 53 for receiving the compressed luminance Y value, for each of the 4 pixels read from buffer memory 14, as well as the compressed and subsampled chrominance values U H , U L , V H  and V L . A recombining network 56 combines each of the lower order portions and higher order portions of the chrominance U H , U L  and V H , V L  to produce a 6 bit compressed U and V chrominance signal. The output from network 56 is used directly to form the U and V chrominance signal for pixels 2 and 3 which are regarded as interior pixels in relation to pixels 1 and 4. Two lower order bits equal to 00 are added to the values of U and V, making U and V a full 8 bits wide. The restored pixel data for pixels 2 and 3 are inserted in registers 63 and 64. 
     The same expansion technique is applied to the luminance data in each of the registers 62, 63, 64 and 66. Three bits are added to the lower order compressed luminance pixel data, thus expanding the luminance signal to a full 8 bits wide. These lower order bits may be zeroes. 
     The boundary pixels 1 and 4 have U and V chrominance values which are averaged from preceding and succeeding groups of 4 pixels. The preceding groups of 4 pixels have an averaged U and V chrominance signal which is added to each of averaging circuits 58 and 59. These chrominance values for the preceding 4 pixels are averaged with the chrominance values for the 4 pixels represented in FIG. 3 to supply 6 bits of U and V chrominance for pixel Additionally, two lower order bits which may be 00 are added to the averaged compressed U and V chrominance components to provide a full 8 bit U and V chrominance signal for pixel 1 in register 62. In a similar manner, pixel 4 may be represented by U and V chrominance values derived from averaging circuits 60 and 61. These circuits average the U and V chrominance values for the subsampled U and V chrominance signals obtained from the succeeding group of pixels. The succeeding group of pixels will similarly, through a combination network 56, provide the U and V values for summation with the present U and V values of chrominance signals in averaging circuits 60, 61. The averaged chrominance U and V signal components are additionally expanded by adding lower order data bits, such as 00, to provide a full 8 bit wide U and V chrominance component in register 66. 
     The foregoing process of expanding the stored compressed data may be seen in FIG. 4. This Figure represents three groups of pixels, each having their own unique luminance component 5 bits wide, represented by Y 0  through Y 11  As described with respect to the encoder of FIG. 2, each of these pixels includes a portion of the U or V luminance component, U H , U L , V H , V L . 
     In expanding the data it is seen that the interior pixels represented by luminance levels Y 5  and Y 6  of pixel group 2 are decoded to have a value of subsampled U and V chrominance components equal to that appended to the pixels of group 2. The boundary pixels identified by luminance levels Y 4  and Y 7  have a value of U and V chrominance depending on the U and V chrominance of pixel groups 1, 2 and 3. These pixels may be further expanded using the foregoing technique of adding lower order data to each of the Y, U and V data components to obtain 24 bit wide pixel data. 
     The expanded data, when used to represent natural scenery, does not provide objectionable artifacts due to the judicious selection of subsampling in accordance with FIG. 4. Further, it is found that the reduced luminance resolution does not adversely effect the displayed image due to averaging the human eye. This is especially evident when dithering is employed during compression of the pixel luminance data. 
     Thus, there has been described one embodiment comprising a system for compressing natural scenery image pixels. The resulting frame buffer requirements are significantly relaxed, avoiding the unnecessary costs associated with large frame buffers. These principles may also be utilized to compress the data before storing in mass storage, thus realizing the saving of mass storage space. Those skilled in the art will recognize yet other embodiments which are described by the claims which follow.