US20130058402A1 - Lossless video data compressor with very high data rate - Google Patents

Lossless video data compressor with very high data rate Download PDF

Info

Publication number
US20130058402A1
US20130058402A1 US13/567,856 US201213567856A US2013058402A1 US 20130058402 A1 US20130058402 A1 US 20130058402A1 US 201213567856 A US201213567856 A US 201213567856A US 2013058402 A1 US2013058402 A1 US 2013058402A1
Authority
US
United States
Prior art keywords
pixel
difference
pixel intensity
frame
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US13/567,856
Inventor
Leonid I. Rudin
Ping Yu
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cognitech Inc
Original Assignee
Cognitech Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cognitech Inc filed Critical Cognitech Inc
Priority to US13/567,856 priority Critical patent/US20130058402A1/en
Assigned to COGNITECH, INC. reassignment COGNITECH, INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: RUDIN, LEONID I., YU, PING
Publication of US20130058402A1 publication Critical patent/US20130058402A1/en
Priority to US14/635,989 priority patent/US9525880B2/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding

Definitions

  • Video data typically consists of a succession of video frames, each frame consisting of (in the case of NTSC video) 640 columns and 480 rows of picture elements (pixels). Typically, each pixel consists of an eight-bit byte representing the intensity value of the pixel.
  • Video data typically is generated at the rate of 30 frames per second (in the case of NTSC video).
  • each image consists of three different channels, one channel for each of three primary colors (e.g., red, green and blue). From the foregoing, the data rate of digital color video data is calculated to be about 27 megabytes per second.
  • the problem is how to write video data at 27 megabytes per second onto a disk that can be written no faster than half that rate.
  • This problem is solved by either compressing the video data by a factor of two prior to writing to the disk or by sharing the data writing operation among several disks of a disk array.
  • the main disadvantage of compressing the video data by a factor of two is that data compression techniques capable of such a high compression ratio tend to incapable of handling high incoming data rates in real time and, in addition, many such compression techniques are lossy.
  • the main disadvantage of using a disk array is high expense.
  • the present invention is directed to compressing incoming video data at a very high data rate (e.g., 27 megabytes per second) with a compression ratio of about two or more with no loss of image quality.
  • a conventional lossless video compression process is incapable of handling high speed incoming video data in real time because such a lossless video compression process is typically complex, requiring a relatively large number of computational steps for each pixel. Lossy compression may tend to be simpler in some cases (but not necessarily all cases) because they can employ a smaller number of computational steps for each pixel.
  • the problem is how to perform lossless video compression at high incoming data rates.
  • the problem with a complex lossless compression process at high incoming data rates can be understood with reference to the diagram of FIG. 1A , illustrating the architecture of a typical microprocessor 1 .
  • a common data bus 10 is shared by a high speed working memory or random access memory (RAM) 15 and an arithmetic logic unit (ALU) 20 .
  • RAM working memory
  • ALU arithmetic logic unit
  • a controller 25 controls the bus 10 , the RAM 15 and the ALU 20 to execute successive instructions of a program (stored in the RAM 15 , for example) implementing a compression process.
  • incoming uncompressed video data from a camera or VCR 30 is supplied to the bus 10 at an incoming port 35 , and compressed video data generated by the process is output on the bus 10 to a disk storage or write device 40 via an outgoing port 45 .
  • Access to the bus by the incoming and outgoing data ports 35 , 45 is controlled by the controller 25 .
  • the present invention seeks to store video data from the camera 30 on the disk storage 35 in real time without buffering the video data.
  • the compression process performed by the microprocessor 1 must provide a balance between the high data rate of the incoming video data from the camera (e.g., 27 megabytes per second) and the lower data rate at which the disk storage can write data (e.g., less than 10-14 megabytes per second).
  • the compression rate of the compression process performed by the microprocessor 1 must be at least as great as the ratio between the incoming video data rate and the write speed of the disk storage 40 .
  • the main problem is that a lossless compression process has too many instructions or operations to perform for each video pixel for the microprocessor to perform at 27 megabytes per second.
  • the reason is that for each arithmetic operation or instruction performed by the ALU 20 , a set of intermediate computational results are obtained which must be stored in the RAM 15 to await the computation of other intermediate results in accordance with other instructions or operations, with which they are to be combined in a yet later operation. Since the data bus 10 is shared by the RAM 15 and ALU 20 , it limits forces the microprocessor 1 to wait as each intermediate instruction is executed for the results from the ALU 15 to be stored via the bus 10 in the RAM 15 and other results fetched from the RAM 15 via the bus 10 to the ALU 20 for use by the next instruction or operation.
  • Such waiting is necessary to avoid conflicting use of the bus 10 , but limits the rate at which the succession of instructions representing the compression process can be performed.
  • a point is reached at which the processing of the previous video pixel data is still unfinished as the next video pixel data arrives from the camera 30 .
  • This occurs well below the real time video data rate of a typical color video camera (27 megabytes per second).
  • One way around this problem is to reduce the number of arithmetic operations performed by the compression process for each video pixel. However, such a reduction leads to a lossy compression process in which image quality of the compressed video data is compromised.
  • the more complicated compression algorithm will involve more processing steps and each processing step requires getting data from the RAM to and from the ALU or crossing the system bus several times. Since the system bus has limited bandwidth, this can create the processing bottle neck so that the system can not handle the real time data stream.
  • FIG. 1B illustrates one of the first steps in a standard video compression process, which is to divide each frame 100 of a video image into plural blocks 110 (step 210 of FIG. 2 ). Then, each block 110 is compressed in a succession of steps, the first of which is to perform a discrete cosine transform on each block (step 220 of FIG. 2 ). The result is a transformed block consisting of an array of discrete cosine transform coefficients, as illustrated in FIG. 3 . These coefficients are encoded using a minimum length encoding scheme, such as a Huffman code (step 230 of FIG. 2 ). Run length encoding may also be employed (step 240 of FIG. 2 ).
  • a minimum length encoding scheme such as a Huffman code
  • Run length encoding may also be employed (step 240 of FIG. 2 ).
  • the compression ratio is increased by discarding the higher order discrete cosine transform coefficients, namely those on the right side of the diagonal imaginary line of FIG. 3 .
  • the remaining coefficients are further quantized to reduce its range.
  • These higher order discrete cosine transform coefficients represent the higher spatial frequencies in the image, corresponding to fine detail features of the image.
  • the discrete cosine transform tends to reduce image quality obtained upon de-compressing the compressed video data, particularly where the higher order discrete cosine transform coefficients are discarded to enhance compression ratio.
  • blocking artifacts attributable to the division of the video frame into the plural blocks of FIG. 1 and discarding of higher order terms represent a further loss in image quality.
  • such trade-offs have been necessary in order to achieve a high compression ratio (such a compression ratio of two or more).
  • Such a reduction of image quality in the video compression process is referred to as lossy video compression.
  • lossless video compression at a sufficiently high compression rate to balance or compensate in real time for the difference in the data rates of the incoming video signal and the maximum writing speed of a disk storage medium has been unknown.
  • the compression ratio is very high (a compression ratio of two or more) and, significantly, the compression process operates at very high incoming video data rates in real time.
  • lossless video compression is achieve using a minimal number or arithmetic operations for each pixel.
  • the entire video frame may compressed as a whole or it may be compressed block-by-block.
  • the compression process compresses Incoming video data in real time without requiring data buffering and provides the required balance or compensation between the high incoming video data rate of a video camera and the lower write speed of a disk storage device.
  • a first step is to convert each pixel 8-bit byte to a difference byte representing the difference between the pixel and its immediate predecessor in a serialized stream of the pixel bytes.
  • each 8-bit pixel byte is subtracted from its predecessor.
  • This step reduces the dynamic range of the data.
  • a next step is to discard any carry bits generated in the subtraction process of two's complement arithmetic. This reduces the data range by a factor of two.
  • the 8-bit difference data can be divided into higher order bits part and lower bits part. Run length encoding can be implemented on the higher order bits.
  • the 8-bit difference pixel bytes (or the remaining lower order bits) thus produced are subject to a maximum entropy encoding process.
  • Such a maximum entropy encoding process may be referred to as a minimum length encoding process.
  • One example is Huffman encoding.
  • a code table for the entire video frame is constructed, in which a set of minimum length symbols are correlated to the sec of difference pixel bytes comprising the video frame, the more frequently occurring bytes being assigned to the shorter minimum length symbols.
  • This code table is then employed to convert the all of the difference pixel bytes of the entire video frame to minimum length symbols.
  • a different code table can be constructed for different ones of the successive video frames. The code table contents will depend upon the video frame content.
  • the set of minimum length symbols produced for the current video frame together with the code table generated for the current video frame constitutes one frame of compressed video data. It is this compressed video data that is record onto the disk.
  • the de-compression process begins by playing back the data recorded on the disk.
  • the playback process is followed by extracting the code table of the current frame using this table to convert the minimum length symbols of the current frame to the corresponding difference pixel bytes.
  • the difference pixel bytes are converted to pixel bytes by adding the previously computed pixel byte to the current difference byte, to generate a stream of pixel bytes from the difference bytes.
  • the stream of pixel bytes constitute the de-compressed video data.
  • the computation of the pixel bytes from the difference bytes inherently restores any information seemingly lost by the discarding of carry bits in the foregoing compression process.
  • the recovery of the difference bytes from the minimum length symbols in accordance with the minimum length coding table is an exact process without error.
  • the recovery of the pixel bytes from the difference bytes by the foregoing addition step is an exact process and produces the pixel bytes without error or loss. Therefore, the entire compression and decompression cycle is lossless.
  • the compression process achieves a compression ratio of two or more. As a result, the compression process is sufficient to record real time (30 frame per second) video data onto a single disk with no loss of information or image quality.
  • FIG. 1A is a simplified schematic block diagram of a typical microprocessor architecture.
  • FIG. 1B is a diagram of a video frame of picture elements in accordance with the prior
  • FIG. 2 depicts a video compression process in accordance with the prior art.
  • FIG. 3 depicts the discarding of higher order discrete cosine transform coefficients in the prior art process of FIG. 2 .
  • FIG. 4 is a diagram illustrating the serialization of the picture elements of an entire video frame in accordance with the present invention.
  • FIG. 5 illustrates a video compression apparatus in accordance with one aspect of the invention.
  • FIG. 6 illustrates a video frame histogram of the type generated by the apparatus of FIG. 5 .
  • FIG. 7 illustrates a video frame code table of the type generated by the apparatus of FIG. 5 .
  • FIG. 8 illustrates the format of one frame of compressed video data generated by the apparatus of FIG. 5 .
  • FIG. 9 illustrates a video system incorporating the compression apparatus of FIG. 5 .
  • FIG. 10 is a diagram illustrating a video compression process performed by the apparatus of FIG. 5 .
  • FIG. 11 illustrates a video decompression apparatus in accordance with another aspect of the invention.
  • FIG. 12 is a diagram illustrating a video decompression process carried out by the apparatus of FIG. 11 .
  • FIG. 13 is a diagram illustrating the transformation of an exemplary pixel byte stream into a difference byte stream in the compression process of FIG. 10 and the transformation of the difference byte stream into a pixel byte stream in the decompression process of FIG. 12 .
  • each individual frame 400 is a two-dimensional array of picture elements (“pixels”) 420 , the picture elements 420 being arranged in rows and columns of pixels.
  • each pixel is represented by a byte, such as an 8-bit byte, so that the digital representation of a video frame is a two dimensional array of 8-bit bytes corresponding to the array of pixels 420 of FIG. 4 , for example.
  • Such bytes may be referred to as “video pixel bytes”.
  • Each pixel byte represents the intensity of the corresponding pixel.
  • the term “video frame” shall refer to the array of video pixel bytes.
  • the video frame was derived from an NTSC video signal, then the video frame has 640 columns and 480 rows of video pixel bytes corresponding to the array of pixels 420 of FIG. 4 .
  • the pixels 420 of FIG. 4 shall be considered herein as synonymous with video pixel bytes.
  • each frame actually consists of three video frames, one for red, one for green and one for blue. In the following digital video processes described below, the same process is performed on each of the red, green and blue video frames representing one color video frame.
  • each video frame 400 is serialized by extracting individual pixels (video pixel bytes) 420 one at a time on a row-by-row basis.
  • FIG. 4 illustrates one way of performing this, in which the extraction pattern is a serpentine path through the rows and column of video pixels 420 of the frame 400 .
  • the video data is compressed on a frame-by-frame basis (rather than dividing each video frame in to blocks and compressing it on a block-by-block basis as was done in the prior art).
  • FIG. 5 illustrates the architecture of a video compression apparatus in accordance with one aspect of the invention.
  • an image processor 500 performs the foregoing row-by-row extraction of video pixel bytes to produce a serial stream 510 of the video pixel bytes 420 of the video frame 400 .
  • the serial byte stream 510 is fed to a one-byte delay buffer 520 .
  • a binary subtracter 530 has a first input connected to the input of the byte delay buffer 520 (so as to receive the current byte of the stream 510 directly) and a second input connected to the output of the byte delay buffer 520 (so as to receive the previous byte of the stream 510 ).
  • the subtracter 530 therefore produces the difference between each current pixel byte p(i) and its predecessor pixel byte p(i ⁇ 1), the result being a difference byte d(i). If the difference byte d(i) happens to be a negative number, the two's-complement arithmetic employed in the binary subtracter 530 produces an extra bit or carry bit, corresponding to a sign bit. If the two pixel bytes p(i) and p(i ⁇ 1) being subtracted are 8-bit bytes, then the extra bit is a ninth bit. In the invention, this extra bit is discarded in order to greatly enhance the compression ratio.
  • the subtracter 530 thus produces a stream 550 of difference bytes d(i) in place of the stream of pixel bytes p(i) representing the current video frame.
  • One advantage of thus converting the pixel byte stream to a stream of difference bytes is that the differencing process reduces the dynamic range of the video data, thus enhancing the ultimate compression ratio.
  • the stream of difference bytes d(i) of the entire video frame 400 can treated as a single set of bytes, which shall be referred to as a “frame set” of difference bytes.
  • the stream of difference bytes d(i) of the frame 400 may be divided into blocks, in which case each block is a “frame set” in the following description.
  • the frame set of difference bytes is subjected to a minimum length (maximum entropy) encoding process, such as Huffman encoding.
  • an encoder 540 constructs a histogram of the difference bytes of the frame set of difference bytes, and ranks each of the bytes in accordance with its frequency of occurrence in the frame set.
  • the encoder 540 may divide each difference byte d(i) into a higher order bit portion and a lower order bit portion, and rank only the higher order bit portions.
  • the steps carried out in encoding the higher order bit portions are the same as those described below for the entire difference byte, except that the number of bits is one half the full difference byte.
  • the lower order bit portions are not encoded by the encoder 540 but are simply carried separately through the process and written to the storage medium. Or, in a yet further alternative mode, they may be encoded separately by the encoder 540 in the manner described below.
  • a typical histogram generated by the encoder 540 is illustrated in the graph of FIG. 6 , in which the horizontal axis corresponds to the difference byte symbols while the vertical axis corresponds to the frequency of occurrence or population of these symbols in the current video frame. For example, if the pixel bytes are each 8-bits, then there are 256 different bytes that must be ranked (some of whose frequency of occurrence may be zero). From this ranking, the encoder 540 constructs a code table 545 associating the most frequently occurring bytes in the current video frame with the shortest symbols in a set of minimum length symbols. The code table therefore reflects the contents of the entire video frame or frame set of difference bytes. An example of such a code table is illustrated in FIG.
  • FIG. 7 illustrates a system in which a digital video camera 900 produces a frame of video data.
  • a compressor 910 corresponding to the compression apparatus of FIG. 5 compresses the video data, the compressed video data being written to a disk memory 920 .
  • the foregoing compression process is illustrated in the flow diagram of FIG. 10 .
  • the first step (block 610 of FIG. 10 ) is to access a current frame of video data and serialize is as illustrated in FIG. 4 .
  • a difference byte is computed by subtracting the pixel byte from the preceding pixel byte in the pixel byte stream (block 620 ).
  • any carry bits generated in the subtraction step of block 620 are discarded (block 630 ).
  • a stream of difference bytes is produced all having the same number of bits (block 640 ).
  • Each of the byte symbols is ranked against all other byte symbols in accordance with the frequency of its occurrence in the frame set of difference bytes corresponding to the current video frame (block 650 ).
  • the ranked symbols are then assigned to respective minimum length symbols of a predetermined set of minimum length symbols, the shorter minimum length symbols being assigned to the more frequently occurring byte symbols (block 660 ). If the bytes contain eight bits, then there are 256 symbols to be ranked in this manner.
  • Each difference byte of the current video frame is then replaced by a minimum length symbol in accordance with the code table (block 670 ), and the resulting stream of minimum length symbols for the current video frame are then stored on a disk or in a memory together with code table of the current video frame (block 680 ). It is the stream of minimum length symbols together with the code table that constitutes the compressed video data.
  • the compression ratio achieved in the foregoing compression process is about two.
  • the compression ratio may be defined as the ratio between the number of bits per video frame of the raw video data and the number of bits per video-frame of the compressed video data.
  • uncompressed color video data consisting of 8-bit pixel bytes at 30 frames per second has a data rate of about 27 megabytes per second, while the write speed of a typical disk drive is about half that rate.
  • the present Invention provides a compression rate of two with no loss of information. Therefore, the invention provides compressed video data that can be recorded in real time onto a single digital disk drive at 30 frames per second without loss of infounation or image quality.
  • FIG. 11 illustrates the architecture of a video decompression apparatus in accordance with another aspect of the invention.
  • the video data was compressed by the compression apparatus of FIG. 5 on a per-frame basis as described above. Therefore, the decompression apparatus of FIG. 11 decompresses the compressed video data on a per frame basis as well.
  • a minimum length decoder 710 extracts the code table from the compressed video data along with the minimum length symbols corresponding to the current compressed video frame.
  • the decoder 710 converts each of the minimum length symbols to the corresponding difference bytes in accordance with the extracted code table. This produces the stream of difference bytes d(i+1) that was originally generated by the compression apparatus of FIG. 5 .
  • an adder 720 and a one-byte delay buffer 730 are employed.
  • the adder 720 is an n-bit adder, where n is the number of bits per pixel byte.
  • One input 720 a of the adder 720 receives the stream of difference bytes d(i+1) one byte at a time.
  • the other input 720 b of the adder 720 receives the output of the one-byte delay buffer 730 .
  • the output of the adder 720 is applied to the input: of the one-byte delay buffer 730 .
  • the adder input 720 a receives the difference byte d(i+1) while the other adder input 720 b receives the pixel byte p(i) produced at the adder output during the previous sample time i.
  • the adder 720 produces the current pixel byte p(i+1) during the current sample time i+1.
  • the minimum length decoder 710 grabs the code table and the difference bytes of the current video frame from the compressed video data stream (block 810 of FIG. 11 ). Then, the decoder 710 substitutes for each minimum length symbol a corresponding one of the n-bit difference pixels in accordance with the code table (block 820 ). This produces a stream of difference bytes.
  • the adder 720 and the delay buffer 730 then compute each pixel byte by adding the present difference byte to the pixel byte computed for the previous sample time (block 830 ). The result is a stream of pixel bytes of the current video frame, which constitutes the decompressed video data.
  • the decompressed video data thus produced is an exact replica of the original video data constituting the video frame of FIG. 4 . This is because there is no loss of information in the entropy encoding performed by the minimum length encoder 540 and no loss in the differencing process performed by the buffer 520 and subtracter 530 of the compression apparatus of FIG. 5 .
  • FIG. 13 illustrates how the extra carry bit produced during the differencing process (of the video compressor of FIG. 5 ) can be discarded with no loss of information, to achieve a large gain in compression ratio.
  • a sequence of four pixel bytes is labeled P 1 , P 2 , P 3 and P 4 .
  • the corresponding row in the diagram of FIG. 13 is labeled appropriately Pixel Byte Stream.
  • Difference Byte Stream consists of a sequence of four difference bytes labeled D 1 , D 2 , D 3 and D 4 corresponding to the four pixel bytes. Each difference byte is the difference between the corresponding pixel byte and its predecessor.
  • the diagram of FIG. 13 shows how D 2 is computed from P 2 and P 1 .
  • D 3 is computed from P 3 and P 2 , and so forth.
  • P 1 has no predecessor, so that D 1 is equal to P 1 .
  • One advantage of the feature or the invention in which the carry bit is discarded is that the dynamic range of the data is reduced by a factor of two (since each bit represents a respective power of two in the binary numbering system). This reduction in dynamic range provides a corresponding increase in compression ratio for the entire compression process of FIG. 10 .
  • each difference byte may be computed as the difference between a current byte and a proceeding byte in the data stream.
  • the preceding byte is a byte immediately preceding the current byte.
  • the pair bytes may correspond to adjacent pixels in the same frame, for example, or they could be spaced apart (not adjacent).
  • each difference byte may be computed differently.
  • the preceding byte may be from a different frame.
  • the pair of bytes may be the same frame location (i.e., the same pixel location in the two different frames). Or, they may be different locations in the two frames, but they may correspond to the same location in a moving image.
  • U.S. Pat. No. 5,909,251 issued on Jun. 1, 1999 to Leonid Rudin and Frederic Guichand and assigned to the present assignee.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

Lossless video data compression is performed in real time at the data rate of incoming real time video data in a process employing a minimum number of computational steps for each video pixel. Each pixel 8-bit byte is converted to a difference byte representing the difference between the pixel and its immediate predecessor in a serialized stream of the pixel bytes. This reduces the dynamic range of the data. Any carry bits generated in the subtraction process of two's complement arithmetic are discarded. This reduces the data by a factor of two. Finally, the 8-bit difference pixel bytes thus produced are subject to a maximum entropy encoding process. Such a maximum entropy encoding process may be referred to as a minimum length encoding process.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • This application is a continuation of U.S. patent application Ser. No. 12/481,207, filed Jun. 9, 2009, which is a continuation of U.S. patent application Ser. No. 10/670,415, filed Sep. 24, 2003, now U.S. Pat. No. 7,548,658, the disclosures of which are incorporated by reference herein.
  • BACKGROUND OF THE INVENTION
  • The invention concerns the processing of video data for recording on a disk. Video data typically consists of a succession of video frames, each frame consisting of (in the case of NTSC video) 640 columns and 480 rows of picture elements (pixels). Typically, each pixel consists of an eight-bit byte representing the intensity value of the pixel. Video data typically is generated at the rate of 30 frames per second (in the case of NTSC video). In the case of color video, each image consists of three different channels, one channel for each of three primary colors (e.g., red, green and blue). From the foregoing, the data rate of digital color video data is calculated to be about 27 megabytes per second.
  • Storing video data as it is generated at 30 frames per second is difficult, since the average writing speed of a typical disk is near a range from 10 to 14 megabytes per second, or about half the video data rate. The problem is how to write video data at 27 megabytes per second onto a disk that can be written no faster than half that rate. This problem is solved by either compressing the video data by a factor of two prior to writing to the disk or by sharing the data writing operation among several disks of a disk array. The main disadvantage of compressing the video data by a factor of two is that data compression techniques capable of such a high compression ratio tend to incapable of handling high incoming data rates in real time and, in addition, many such compression techniques are lossy. The main disadvantage of using a disk array is high expense. The present invention is directed to compressing incoming video data at a very high data rate (e.g., 27 megabytes per second) with a compression ratio of about two or more with no loss of image quality.
  • A conventional lossless video compression process is incapable of handling high speed incoming video data in real time because such a lossless video compression process is typically complex, requiring a relatively large number of computational steps for each pixel. Lossy compression may tend to be simpler in some cases (but not necessarily all cases) because they can employ a smaller number of computational steps for each pixel. The problem is how to perform lossless video compression at high incoming data rates. The problem with a complex lossless compression process at high incoming data rates can be understood with reference to the diagram of FIG. 1A, illustrating the architecture of a typical microprocessor 1. In FIG. 1A, a common data bus 10 is shared by a high speed working memory or random access memory (RAM) 15 and an arithmetic logic unit (ALU) 20. A controller 25 controls the bus 10, the RAM 15 and the ALU 20 to execute successive instructions of a program (stored in the RAM 15, for example) implementing a compression process. For this purpose, incoming uncompressed video data from a camera or VCR 30 is supplied to the bus 10 at an incoming port 35, and compressed video data generated by the process is output on the bus 10 to a disk storage or write device 40 via an outgoing port 45.
  • Access to the bus by the incoming and outgoing data ports 35, 45 is controlled by the controller 25. Unlike conventional approaches of the prior art, the present invention seeks to store video data from the camera 30 on the disk storage 35 in real time without buffering the video data. In such a case, the compression process performed by the microprocessor 1 must provide a balance between the high data rate of the incoming video data from the camera (e.g., 27 megabytes per second) and the lower data rate at which the disk storage can write data (e.g., less than 10-14 megabytes per second). Specifically, the compression rate of the compression process performed by the microprocessor 1 must be at least as great as the ratio between the incoming video data rate and the write speed of the disk storage 40.
  • The main problem is that a lossless compression process has too many instructions or operations to perform for each video pixel for the microprocessor to perform at 27 megabytes per second. The reason is that for each arithmetic operation or instruction performed by the ALU 20, a set of intermediate computational results are obtained which must be stored in the RAM 15 to await the computation of other intermediate results in accordance with other instructions or operations, with which they are to be combined in a yet later operation. Since the data bus 10 is shared by the RAM 15 and ALU 20, it limits forces the microprocessor 1 to wait as each intermediate instruction is executed for the results from the ALU 15 to be stored via the bus 10 in the RAM 15 and other results fetched from the RAM 15 via the bus 10 to the ALU 20 for use by the next instruction or operation. Such waiting is necessary to avoid conflicting use of the bus 10, but limits the rate at which the succession of instructions representing the compression process can be performed. As the rate of the incoming (uncompressed) video data is increased, a point is reached at which the processing of the previous video pixel data is still unfinished as the next video pixel data arrives from the camera 30. This occurs well below the real time video data rate of a typical color video camera (27 megabytes per second). One way around this problem is to reduce the number of arithmetic operations performed by the compression process for each video pixel. However, such a reduction leads to a lossy compression process in which image quality of the compressed video data is compromised. In summary, the more complicated compression algorithm will involve more processing steps and each processing step requires getting data from the RAM to and from the ALU or crossing the system bus several times. Since the system bus has limited bandwidth, this can create the processing bottle neck so that the system can not handle the real time data stream.
  • FIG. 1B illustrates one of the first steps in a standard video compression process, which is to divide each frame 100 of a video image into plural blocks 110 (step 210 of FIG. 2). Then, each block 110 is compressed in a succession of steps, the first of which is to perform a discrete cosine transform on each block (step 220 of FIG. 2). The result is a transformed block consisting of an array of discrete cosine transform coefficients, as illustrated in FIG. 3. These coefficients are encoded using a minimum length encoding scheme, such as a Huffman code (step 230 of FIG. 2). Run length encoding may also be employed (step 240 of FIG. 2). In some video data compressors, the compression ratio is increased by discarding the higher order discrete cosine transform coefficients, namely those on the right side of the diagonal imaginary line of FIG. 3. The remaining coefficients are further quantized to reduce its range. These higher order discrete cosine transform coefficients represent the higher spatial frequencies in the image, corresponding to fine detail features of the image. The discrete cosine transform tends to reduce image quality obtained upon de-compressing the compressed video data, particularly where the higher order discrete cosine transform coefficients are discarded to enhance compression ratio. In addition, blocking artifacts attributable to the division of the video frame into the plural blocks of FIG. 1 and discarding of higher order terms represent a further loss in image quality. However, such trade-offs have been necessary in order to achieve a high compression ratio (such a compression ratio of two or more). Such a reduction of image quality in the video compression process is referred to as lossy video compression.
  • Heretofore, lossless video compression at a sufficiently high compression rate to balance or compensate in real time for the difference in the data rates of the incoming video signal and the maximum writing speed of a disk storage medium has been unknown. This has presented a fundamental limitation in applications such as forensic image processing, where every image detail must be preserved during image processing. With such a requirement, disk recording of a 30 frame per second video image for forensic purposes, for example, could not be accomplished without use of expensive disk arrays. Therefore, there has been a need for a lossless video compression process having a high compression ratio (e.g., a compression ratio of about two or more).
  • SUMMARY OF THE INVENTION
  • In the video compression process of the invention, there is no loss of image quality upon de-compression, while the compression ratio is very high (a compression ratio of two or more) and, significantly, the compression process operates at very high incoming video data rates in real time. This is achieved by a discovery of the invention in which lossless video compression is achieve using a minimal number or arithmetic operations for each pixel. The entire video frame may compressed as a whole or it may be compressed block-by-block. The compression process compresses Incoming video data in real time without requiring data buffering and provides the required balance or compensation between the high incoming video data rate of a video camera and the lower write speed of a disk storage device.
  • A first step is to convert each pixel 8-bit byte to a difference byte representing the difference between the pixel and its immediate predecessor in a serialized stream of the pixel bytes. Thus, each 8-bit pixel byte is subtracted from its predecessor. This step reduces the dynamic range of the data. A next step is to discard any carry bits generated in the subtraction process of two's complement arithmetic. This reduces the data range by a factor of two. Optionally the 8-bit difference data can be divided into higher order bits part and lower bits part. Run length encoding can be implemented on the higher order bits. Finally, the 8-bit difference pixel bytes (or the remaining lower order bits) thus produced are subject to a maximum entropy encoding process. Such a maximum entropy encoding process may be referred to as a minimum length encoding process. One example is Huffman encoding. In such an encoding process, a code table for the entire video frame is constructed, in which a set of minimum length symbols are correlated to the sec of difference pixel bytes comprising the video frame, the more frequently occurring bytes being assigned to the shorter minimum length symbols. This code table is then employed to convert the all of the difference pixel bytes of the entire video frame to minimum length symbols. A different code table can be constructed for different ones of the successive video frames. The code table contents will depend upon the video frame content. The set of minimum length symbols produced for the current video frame together with the code table generated for the current video frame constitutes one frame of compressed video data. It is this compressed video data that is record onto the disk.
  • The de-compression process begins by playing back the data recorded on the disk. The playback process is followed by extracting the code table of the current frame using this table to convert the minimum length symbols of the current frame to the corresponding difference pixel bytes. Then, the difference pixel bytes are converted to pixel bytes by adding the previously computed pixel byte to the current difference byte, to generate a stream of pixel bytes from the difference bytes. The stream of pixel bytes constitute the de-compressed video data. The computation of the pixel bytes from the difference bytes inherently restores any information seemingly lost by the discarding of carry bits in the foregoing compression process.
  • The recovery of the difference bytes from the minimum length symbols in accordance with the minimum length coding table is an exact process without error. The recovery of the pixel bytes from the difference bytes by the foregoing addition step is an exact process and produces the pixel bytes without error or loss. Therefore, the entire compression and decompression cycle is lossless. However, the compression process achieves a compression ratio of two or more. As a result, the compression process is sufficient to record real time (30 frame per second) video data onto a single disk with no loss of information or image quality.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1A is a simplified schematic block diagram of a typical microprocessor architecture.
  • FIG. 1B is a diagram of a video frame of picture elements in accordance with the prior
  • FIG. 2 depicts a video compression process in accordance with the prior art.
  • FIG. 3 depicts the discarding of higher order discrete cosine transform coefficients in the prior art process of FIG. 2.
  • FIG. 4 is a diagram illustrating the serialization of the picture elements of an entire video frame in accordance with the present invention.
  • FIG. 5 illustrates a video compression apparatus in accordance with one aspect of the invention.
  • FIG. 6 illustrates a video frame histogram of the type generated by the apparatus of FIG. 5.
  • FIG. 7 illustrates a video frame code table of the type generated by the apparatus of FIG. 5.
  • FIG. 8 illustrates the format of one frame of compressed video data generated by the apparatus of FIG. 5.
  • FIG. 9 illustrates a video system incorporating the compression apparatus of FIG. 5.
  • FIG. 10 is a diagram illustrating a video compression process performed by the apparatus of FIG. 5.
  • FIG. 11 illustrates a video decompression apparatus in accordance with another aspect of the invention.
  • FIG. 12 is a diagram illustrating a video decompression process carried out by the apparatus of FIG. 11.
  • FIG. 13 is a diagram illustrating the transformation of an exemplary pixel byte stream into a difference byte stream in the compression process of FIG. 10 and the transformation of the difference byte stream into a pixel byte stream in the decompression process of FIG. 12.
  • DETAILED DESCRIPTION OF THE INVENTION Compression
  • Referring to FIG. 4, each individual frame 400 is a two-dimensional array of picture elements (“pixels”) 420, the picture elements 420 being arranged in rows and columns of pixels. Following analog-to-digital conversion of the video frame, each pixel is represented by a byte, such as an 8-bit byte, so that the digital representation of a video frame is a two dimensional array of 8-bit bytes corresponding to the array of pixels 420 of FIG. 4, for example. Such bytes may be referred to as “video pixel bytes”. Each pixel byte represents the intensity of the corresponding pixel. Hereinafter, the term “video frame” shall refer to the array of video pixel bytes. If the video frame was derived from an NTSC video signal, then the video frame has 640 columns and 480 rows of video pixel bytes corresponding to the array of pixels 420 of FIG. 4. Hereinafter, the pixels 420 of FIG. 4 shall be considered herein as synonymous with video pixel bytes. If the video frame represents a color video signal, then each frame actually consists of three video frames, one for red, one for green and one for blue. In the following digital video processes described below, the same process is performed on each of the red, green and blue video frames representing one color video frame.
  • In order to digitally process the video data, each video frame 400 is serialized by extracting individual pixels (video pixel bytes) 420 one at a time on a row-by-row basis. FIG. 4 illustrates one way of performing this, in which the extraction pattern is a serpentine path through the rows and column of video pixels 420 of the frame 400. In the following compression process, the video data is compressed on a frame-by-frame basis (rather than dividing each video frame in to blocks and compressing it on a block-by-block basis as was done in the prior art).
  • FIG. 5 illustrates the architecture of a video compression apparatus in accordance with one aspect of the invention. Referring to FIG. 5, an image processor 500 performs the foregoing row-by-row extraction of video pixel bytes to produce a serial stream 510 of the video pixel bytes 420 of the video frame 400. The serial byte stream 510 is fed to a one-byte delay buffer 520. A binary subtracter 530 has a first input connected to the input of the byte delay buffer 520 (so as to receive the current byte of the stream 510 directly) and a second input connected to the output of the byte delay buffer 520 (so as to receive the previous byte of the stream 510). The subtracter 530 therefore produces the difference between each current pixel byte p(i) and its predecessor pixel byte p(i−1), the result being a difference byte d(i). If the difference byte d(i) happens to be a negative number, the two's-complement arithmetic employed in the binary subtracter 530 produces an extra bit or carry bit, corresponding to a sign bit. If the two pixel bytes p(i) and p(i−1) being subtracted are 8-bit bytes, then the extra bit is a ninth bit. In the invention, this extra bit is discarded in order to greatly enhance the compression ratio. It will be shown that this discarding does not result in any loss of information when the compression and decompression processes as a whole are taken into account. The subtracter 530 thus produces a stream 550 of difference bytes d(i) in place of the stream of pixel bytes p(i) representing the current video frame. One advantage of thus converting the pixel byte stream to a stream of difference bytes is that the differencing process reduces the dynamic range of the video data, thus enhancing the ultimate compression ratio.
  • The stream of difference bytes d(i) of the entire video frame 400 can treated as a single set of bytes, which shall be referred to as a “frame set” of difference bytes. Alternatively, the stream of difference bytes d(i) of the frame 400 may be divided into blocks, in which case each block is a “frame set” in the following description. The frame set of difference bytes is subjected to a minimum length (maximum entropy) encoding process, such as Huffman encoding. In such a process, an encoder 540 constructs a histogram of the difference bytes of the frame set of difference bytes, and ranks each of the bytes in accordance with its frequency of occurrence in the frame set.
  • Alternatively, the encoder 540 may divide each difference byte d(i) into a higher order bit portion and a lower order bit portion, and rank only the higher order bit portions. In this alternative mode, the steps carried out in encoding the higher order bit portions are the same as those described below for the entire difference byte, except that the number of bits is one half the full difference byte. In this alternative mode, the lower order bit portions are not encoded by the encoder 540 but are simply carried separately through the process and written to the storage medium. Or, in a yet further alternative mode, they may be encoded separately by the encoder 540 in the manner described below.
  • A typical histogram generated by the encoder 540 is illustrated in the graph of FIG. 6, in which the horizontal axis corresponds to the difference byte symbols while the vertical axis corresponds to the frequency of occurrence or population of these symbols in the current video frame. For example, if the pixel bytes are each 8-bits, then there are 256 different bytes that must be ranked (some of whose frequency of occurrence may be zero). From this ranking, the encoder 540 constructs a code table 545 associating the most frequently occurring bytes in the current video frame with the shortest symbols in a set of minimum length symbols. The code table therefore reflects the contents of the entire video frame or frame set of difference bytes. An example of such a code table is illustrated in FIG. 7, in which the left-hand column lists the n-bit bytes in order of their population in the current video frame while the right-hand column lists the corresponding encoded symbols in order of symbol length (from the shortest to the longest symbols). After the code table has been constructed, the encoder 540 uses this code table to replace each difference byte d(i) in the difference byte stream 550 with the corresponding minimum length symbol specified in the code table. This produces a stream 560 of minimum length symbols representing the current video frame. The stream compressed video data for one video frame is illustrated in FIG. 8, and consists of a stream of minimum length symbols 800 of the current video frame together with the code table 810 of the current video frame. It is the compressed video data of FIG. 8 that is written onto a disk drive 565. FIG. 9 illustrates a system in which a digital video camera 900 produces a frame of video data. A compressor 910 corresponding to the compression apparatus of FIG. 5 compresses the video data, the compressed video data being written to a disk memory 920.
  • The foregoing compression process is illustrated in the flow diagram of FIG. 10. The first step (block 610 of FIG. 10) is to access a current frame of video data and serialize is as illustrated in FIG. 4. Then, for each pixel byte, a difference byte is computed by subtracting the pixel byte from the preceding pixel byte in the pixel byte stream (block 620). Next, any carry bits generated in the subtraction step of block 620 are discarded (block 630). Thus, a stream of difference bytes is produced all having the same number of bits (block 640). Each of the byte symbols is ranked against all other byte symbols in accordance with the frequency of its occurrence in the frame set of difference bytes corresponding to the current video frame (block 650). The ranked symbols are then assigned to respective minimum length symbols of a predetermined set of minimum length symbols, the shorter minimum length symbols being assigned to the more frequently occurring byte symbols (block 660). If the bytes contain eight bits, then there are 256 symbols to be ranked in this manner. Each difference byte of the current video frame is then replaced by a minimum length symbol in accordance with the code table (block 670), and the resulting stream of minimum length symbols for the current video frame are then stored on a disk or in a memory together with code table of the current video frame (block 680). It is the stream of minimum length symbols together with the code table that constitutes the compressed video data.
  • The compression ratio achieved in the foregoing compression process is about two. The compression ratio may be defined as the ratio between the number of bits per video frame of the raw video data and the number of bits per video-frame of the compressed video data. As discussed earlier in this specification, uncompressed color video data consisting of 8-bit pixel bytes at 30 frames per second has a data rate of about 27 megabytes per second, while the write speed of a typical disk drive is about half that rate. The present Invention provides a compression rate of two with no loss of information. Therefore, the invention provides compressed video data that can be recorded in real time onto a single digital disk drive at 30 frames per second without loss of infounation or image quality.
  • Decompression:
  • FIG. 11 illustrates the architecture of a video decompression apparatus in accordance with another aspect of the invention. The video data was compressed by the compression apparatus of FIG. 5 on a per-frame basis as described above. Therefore, the decompression apparatus of FIG. 11 decompresses the compressed video data on a per frame basis as well.
  • A minimum length decoder 710 extracts the code table from the compressed video data along with the minimum length symbols corresponding to the current compressed video frame. The decoder 710 converts each of the minimum length symbols to the corresponding difference bytes in accordance with the extracted code table. This produces the stream of difference bytes d(i+1) that was originally generated by the compression apparatus of FIG. 5.
  • In order to convert the stream of difference bytes d(i+1) to a stream of the original pixel bytes p(i+1), an adder 720 and a one-byte delay buffer 730 are employed. The adder 720 is an n-bit adder, where n is the number of bits per pixel byte. One input 720 a of the adder 720 receives the stream of difference bytes d(i+1) one byte at a time.
  • The other input 720 b of the adder 720 receives the output of the one-byte delay buffer 730. The output of the adder 720 is applied to the input: of the one-byte delay buffer 730. At a given sample time i+1, the adder input 720 a receives the difference byte d(i+1) while the other adder input 720 b receives the pixel byte p(i) produced at the adder output during the previous sample time i. As a result, the adder 720 produces the current pixel byte p(i+1) during the current sample time i+1. This implements the definition of the current pixel byte p(i+1) in terms of the current difference byte d(i+1) and the previous pixel byte p(i): p(i+1)=d(i+1)+p(i). The stream of pixel bytes produced at the output of the buffer 730 is the decompressed video data.
  • The process performed by the decompression apparatus of FIG. 11 is illustrated in FIG. 12. First, the minimum length decoder 710 grabs the code table and the difference bytes of the current video frame from the compressed video data stream (block 810 of FIG. 11). Then, the decoder 710 substitutes for each minimum length symbol a corresponding one of the n-bit difference pixels in accordance with the code table (block 820). This produces a stream of difference bytes. The adder 720 and the delay buffer 730 then compute each pixel byte by adding the present difference byte to the pixel byte computed for the previous sample time (block 830). The result is a stream of pixel bytes of the current video frame, which constitutes the decompressed video data.
  • The decompressed video data thus produced is an exact replica of the original video data constituting the video frame of FIG. 4. This is because there is no loss of information in the entropy encoding performed by the minimum length encoder 540 and no loss in the differencing process performed by the buffer 520 and subtracter 530 of the compression apparatus of FIG. 5.
  • FIG. 13 illustrates how the extra carry bit produced during the differencing process (of the video compressor of FIG. 5) can be discarded with no loss of information, to achieve a large gain in compression ratio. In the diagram of FIG. 13, a sequence of four pixel bytes is labeled P1, P2, P3 and P4. In the example depicted, their respective values vary between the minimum and maximum values of an 8-bit byte, and are P1=0, P2=255, P3=255 and P4=0. The corresponding row in the diagram of FIG. 13 is labeled appropriately Pixel Byte Stream. The next row is labeled Difference Byte Stream, and consists of a sequence of four difference bytes labeled D1, D2, D3 and D4 corresponding to the four pixel bytes. Each difference byte is the difference between the corresponding pixel byte and its predecessor. Thus, the diagram of FIG. 13 shows how D2 is computed from P2 and P1. D3 is computed from P3 and P2, and so forth. P1 has no predecessor, so that D1 is equal to P1. The result is that D1=0, D2=255, D3=0 and D4=1, provided that all carry bits generated in the two's complement subtraction process are discarded in accordance with the invention. The last row is labeled Recovered Pixel Byte, in which the recovered pixel bytes are labeled P′1 through P′4. The diagram of FIG. 13 shows that each recovered pixel byte is determined by the sum of its predecessor and the current difference byte. In the present example, this sum produces the following values: P′1=0, P′2=255, P′3=255 and P′4=0, which are identical to the original values for P1, P2, P3 and P4. Therefore, discarding of the carry bits in the subtraction process did not cause any loss of information. One advantage of the feature or the invention in which the carry bit is discarded is that the dynamic range of the data is reduced by a factor of two (since each bit represents a respective power of two in the binary numbering system). This reduction in dynamic range provides a corresponding increase in compression ratio for the entire compression process of FIG. 10.
  • As described above, each difference byte may be computed as the difference between a current byte and a proceeding byte in the data stream. In one embodiment, the preceding byte is a byte immediately preceding the current byte. Thus, the pair bytes may correspond to adjacent pixels in the same frame, for example, or they could be spaced apart (not adjacent). However, each difference byte may be computed differently. For example, the preceding byte may be from a different frame. In this case, the pair of bytes may be the same frame location (i.e., the same pixel location in the two different frames). Or, they may be different locations in the two frames, but they may correspond to the same location in a moving image. One way of correlating pixels between two frames of a moving image is described in U.S. Pat. No. 5,909,251, issued on Jun. 1, 1999 to Leonid Rudin and Frederic Guichand and assigned to the present assignee.
  • While the invention has been described in detail by specific reference to preferred embodiments, it is understood that variations and modifications thereof may be made without departing from the true spirit and scope of the invention.

Claims (17)

1. A method using a computer of processing a video signal, said video signal including a stream of pixel values representing intensity of pixels of successive video frames, each of said video frames corresponding to a two-dimensional array of pixels, said method comprising:
converting said stream of pixel values into a stream of difference values by performing a subtraction between each pixel value and a preceding pixel value in said stream;
performing a maximum entropy encoding process on the difference values on a block by block basis;
the maximum entropy process including replacing difference values with corresponding characters in accordance with a code table for each block, so as to produce a stream of characters comprising a losslessly compressed version of said video signal.
2. The method of claim 1 further comprising writing said stream of characters and the corresponding code table for each block.
3. The method of claim 2 further comprising retrieving said stream of characters and said code table for each block.
4. The method of claim 3 further comprising:
converting each of said characters to a corresponding difference value in accordance with said code table for each block;
computing from each of said difference bytes a corresponding pixel value by adding a current one of the difference bytes and a pixel byte computed from a preceding one of the difference bytes.
5. The method of claim 1 wherein said code table corresponds to a Huffman code table.
6. The method of claim 1, wherein the subtraction between each pixel value and a preceding pixel value are for pixels in different frames.
7. The method of claim 6, wherein the pixels in different frames are in the same frame location.
8. The method of claim 6, wherein the pixels in different frames are in different frame locations.
9. The method of claim 8, wherein the different frame locations correspond to the same location in a moving image.
10. A method using a computer of processing a video signal comprised of a stream of pixel intensity values, comprising:
for each pixel intensity value, determining a difference between the pixel intensity value and another pixel intensity value;
performing a maximum entropy encoding process on the differences between pixel intensity values to obtain symbols of reduced length for the differences between pixel intensity values; and
storing in memory the symbols of reduced length for the differences between pixel intensity values and a table resulting from the maximum entropy encoding process.
11. The method of claim 10, wherein the symbols are minimum length symbols.
12. The method of claim 10, wherein determining the difference between the pixel intensity value and the other pixel intensity value comprises determining the difference between a pixel intensity value for a pixel in a first frame and a pixel intensity value for a pixel in a second frame, the first frame and the second frame being different frames.
13. The method of claim 12, wherein a location of the pixel in the first frame and a location of the pixel in the second frame are different locations.
14. The method of claim 13, wherein the different locations correspond to the same location in a memory image.
15. The method of claim 10, wherein the symbols obtained by the maximum entropy encoding process for frequently occurring differences between pixel intensity values are smaller than symbols obtained by the maximum entropy encoding process for less frequently occurring differences between pixel intensity values.
16. The method of claim 10, wherein the differences between pixel intensity values is determined by subtracting one pixel intensity value from another pixel intensity value, and discarding any carry bit.
17. A method using a computer of processing a losslessly compressed video signal, comprising:
receiving a plurality symbols corresponding to losslessly compressed video;
receiving a table including at least some differences between pixel intensity values for the losslessly compressed video;
using the table to correlate the symbols to differences between pixel intensity values for the compressed video;
computing pixel intensity values for a plurality of pixels by adding a difference in pixel intensity value to a previously computed pixel intensity value; and
providing the pixel intensity values to a memory.
US13/567,856 2003-09-24 2012-08-06 Lossless video data compressor with very high data rate Abandoned US20130058402A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US13/567,856 US20130058402A1 (en) 2003-09-24 2012-08-06 Lossless video data compressor with very high data rate
US14/635,989 US9525880B2 (en) 2003-09-24 2015-03-02 Lossless video data compressor with very high data rate

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US10/670,415 US7548658B1 (en) 2003-09-24 2003-09-24 Lossless video data compressor with very high data rate
US12/481,207 US8238679B1 (en) 2003-09-24 2009-06-09 Lossless video data compressor with very high data rate
US13/567,856 US20130058402A1 (en) 2003-09-24 2012-08-06 Lossless video data compressor with very high data rate

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US12/481,207 Continuation US8238679B1 (en) 2003-09-24 2009-06-09 Lossless video data compressor with very high data rate

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/635,989 Continuation US9525880B2 (en) 2003-09-24 2015-03-02 Lossless video data compressor with very high data rate

Publications (1)

Publication Number Publication Date
US20130058402A1 true US20130058402A1 (en) 2013-03-07

Family

ID=40748641

Family Applications (4)

Application Number Title Priority Date Filing Date
US10/670,415 Active 2027-12-25 US7548658B1 (en) 2003-09-24 2003-09-24 Lossless video data compressor with very high data rate
US12/481,207 Expired - Lifetime US8238679B1 (en) 2003-09-24 2009-06-09 Lossless video data compressor with very high data rate
US13/567,856 Abandoned US20130058402A1 (en) 2003-09-24 2012-08-06 Lossless video data compressor with very high data rate
US14/635,989 Expired - Lifetime US9525880B2 (en) 2003-09-24 2015-03-02 Lossless video data compressor with very high data rate

Family Applications Before (2)

Application Number Title Priority Date Filing Date
US10/670,415 Active 2027-12-25 US7548658B1 (en) 2003-09-24 2003-09-24 Lossless video data compressor with very high data rate
US12/481,207 Expired - Lifetime US8238679B1 (en) 2003-09-24 2009-06-09 Lossless video data compressor with very high data rate

Family Applications After (1)

Application Number Title Priority Date Filing Date
US14/635,989 Expired - Lifetime US9525880B2 (en) 2003-09-24 2015-03-02 Lossless video data compressor with very high data rate

Country Status (1)

Country Link
US (4) US7548658B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9525880B2 (en) 2003-09-24 2016-12-20 Cognitech, Inc. Lossless video data compressor with very high data rate

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3138282B1 (en) 2014-04-30 2021-12-29 Freedom Scientific, Inc. System and method for processing a video signal with reduced latency
US10462381B2 (en) 2014-04-30 2019-10-29 Freedom Scientific, Inc. System and method for processing a video signal with reduced latency
CN109031230A (en) * 2018-06-29 2018-12-18 西安空间无线电技术研究所 A kind of extraterrestrial target velocity and acceleration two dimension fast-compensation method
CN109151538B (en) * 2018-09-17 2021-02-05 深圳Tcl新技术有限公司 Image display method and device, smart television and readable storage medium
US10924625B2 (en) * 2019-03-20 2021-02-16 Xerox Corporation Dynamic compression acceleration using real-time image data entropy analysis

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040105598A1 (en) * 2002-08-15 2004-06-03 Sony Corporation Image processing device, computer program product and image processing method
US20040202374A1 (en) * 2003-04-10 2004-10-14 Kartik Venkataraman Compression system for integrated sensor devices

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644513A (en) 1989-12-22 1997-07-01 Rudin; Leonid I. System incorporating feature-oriented signal enhancement using shock filters
EP1330129A3 (en) * 1991-04-10 2006-03-15 Mitsubishi Denki Kabushiki Kaisha Encoder and Decoder
EP0634074A1 (en) * 1992-04-01 1995-01-18 Intel Corporation Method and apparatus for compressing and decompressing a sequence of digital video images using sync frames
US5325126A (en) * 1992-04-01 1994-06-28 Intel Corporation Method and apparatus for real time compression and decompression of a digital motion video signal
JP3292221B2 (en) * 1993-09-14 2002-06-17 ソニー株式会社 Image compression coding method
KR0155784B1 (en) * 1993-12-16 1998-12-15 김광호 Adaptable variable coder/decoder method of image data
US5534925A (en) 1994-05-02 1996-07-09 Cognitech Inc. Image compression by optimal reconstruction
US6101282A (en) * 1995-06-22 2000-08-08 Canon Kabushiki Kaisha Apparatus and method for image data encoding
US5909251A (en) 1997-04-10 1999-06-01 Cognitech, Inc. Image frame fusion by velocity estimation using region merging
US6762700B2 (en) 2001-05-07 2004-07-13 Jiannhwa Sun NEO method and system for lossless compression and decompression
US6657565B2 (en) 2002-03-21 2003-12-02 International Business Machines Corporation Method and system for improving lossless compression efficiency
US6720894B2 (en) 2002-05-29 2004-04-13 Broadcom Corporation Method of and system for performing differential lossless compression
US7548658B1 (en) 2003-09-24 2009-06-16 Cognitech, Inc. Lossless video data compressor with very high data rate

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040105598A1 (en) * 2002-08-15 2004-06-03 Sony Corporation Image processing device, computer program product and image processing method
US20040202374A1 (en) * 2003-04-10 2004-10-14 Kartik Venkataraman Compression system for integrated sensor devices

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9525880B2 (en) 2003-09-24 2016-12-20 Cognitech, Inc. Lossless video data compressor with very high data rate

Also Published As

Publication number Publication date
US7548658B1 (en) 2009-06-16
US9525880B2 (en) 2016-12-20
US8238679B1 (en) 2012-08-07
US20150172664A1 (en) 2015-06-18

Similar Documents

Publication Publication Date Title
US9525880B2 (en) Lossless video data compressor with very high data rate
US5675382A (en) Spatial compression and decompression for video
US7127116B2 (en) Image data compression
US6639945B2 (en) Method and apparatus for implementing motion detection in video compression
US20130021350A1 (en) Apparatus and method for decoding using coefficient compression
JPH01226274A (en) Method and system for picture compression processing
US11445160B2 (en) Image processing device and method for operating image processing device
JPH07231444A (en) Encoder/decorder and encoding and decoding method
US20210250575A1 (en) Image processing device
US11991347B2 (en) Image processing device
US5631849A (en) Decompressor and compressor for simultaneously decompressing and compressng a plurality of pixels in a pixel array in a digital image differential pulse code modulation (DPCM) system
JP2000244922A (en) Method for compressing picture data
KR100273110B1 (en) Decoder of moving picture experts group system and management method thereof
US11190810B2 (en) Device and method for compressing image data using quantization parameter and entropy tables
CN106954074B (en) Video data processing method and device
KR102543449B1 (en) Image processing device and method for operating image processing device
JP4139657B2 (en) Video signal encoding apparatus and decoding apparatus
US7209591B2 (en) Motion compensation method for video sequence encoding in low bit rate systems
US5774590A (en) Image data reproducing apparatus
JP2006502673A (en) In-stream lossless compression of digital image sensor data
JP2006502673A6 (en) In-stream lossless compression of digital image sensor data
JPH06315143A (en) Image processor
TW201941599A (en) Image processing device for performing data decompression and image processing device for performing data compression
KR20190091181A (en) Image processing device
JPH10271502A (en) Compression method for moving image information and its system

Legal Events

Date Code Title Description
AS Assignment

Owner name: COGNITECH, INC., CALIFORNIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:RUDIN, LEONID I.;YU, PING;REEL/FRAME:028847/0111

Effective date: 20030910

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION