CA2063972A1 - Method and apparatus for determining a quantizing factor for multi-generation data compression/decompression processes - Google Patents

Method and apparatus for determining a quantizing factor for multi-generation data compression/decompression processes

Info

Publication number
CA2063972A1
CA2063972A1 CA002063972A CA2063972A CA2063972A1 CA 2063972 A1 CA2063972 A1 CA 2063972A1 CA 002063972 A CA002063972 A CA 002063972A CA 2063972 A CA2063972 A CA 2063972A CA 2063972 A1 CA2063972 A1 CA 2063972A1
Authority
CA
Canada
Prior art keywords
data
quantizing
image data
values
factor
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
CA002063972A
Other languages
French (fr)
Inventor
John Watney
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.)
Ampex Corp
Original Assignee
Ampex Corp
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 Ampex Corp filed Critical Ampex Corp
Publication of CA2063972A1 publication Critical patent/CA2063972A1/en
Abandoned legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/92Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
    • H04N5/926Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback by pulse code modulation
    • H04N5/9261Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback by pulse code modulation involving data reduction
    • H04N5/9264Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback by pulse code modulation involving data reduction using transform coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • 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/124Quantisation
    • H04N19/126Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
    • 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
    • H04N19/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • 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/146Data rate or code amount at the encoder output
    • H04N19/149Data rate or code amount at the encoder output by estimating the code amount by means of a model, e.g. mathematical model or statistical model
    • 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/154Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion
    • 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/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/192Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding the adaptation method, adaptation tool or adaptation type being iterative or recursive
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • 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
    • 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/124Quantisation
    • 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/146Data rate or code amount at the encoder output

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Mathematical Analysis (AREA)
  • Algebra (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

ABSTRACT OF THE DISCLOSURE
The invention provides techniques for changing the quantization used in multiple generations of data quantization such that the errors incurred in subsequent generations are substantially the same as the error incurred in the first generation even though the complexity of the data has been changed. To this end, in a preferred embodiment, quantizing factors are selected from a preselected finite non-degenerative set of quantizing factors provided in the form of arrays of a periodic series of individual quantizer values, wherein a special numerical relationship is maintained between corresponding quantizer values in successive arrays. A different quantizing factor may be selected for each generation of compression/decompression as required by changing data complexity as when performing a layering process during the generations. In another embodiment, an over-quantizing factor is chosen large enough to compress the data to a greater extent than that required in the first generation, such that sufficient compression still is provided in subsequent generations even though the same quantizing factor is used while the complexity of the data is being changed. If for some reason the complexity of the data changes faster than expected, it is necessary to change the quantizing factor to fit the data into the allotted space. To moderate the associated increase in noise, the invention technique includes a dither rounding process wherein a psuedo random number sequence in the range of 0...1.0 is selectively added as determined by a threshold. The invention also includes estimating a quantizing factor applied in a previous generation of image recording if this information is not available explicitly, by distinguishing the peaks and/or valleys of a histogram. The amplitudes of the peaks and/or valleys represent the number of counts of the respective values of frequency coefficients to be quantized.

Description

3(~7~ ~ 2IpA~ 9.

MET~IOD ~ND APPARATUS FOR DETERM~NrNG A QUANTIZL~G
FACTOR FOR MULTl-GENERATlON DATA
COMPRESSION/DECOMPRESSION PROCESSES
John P. Watney BACKCROUND OF Tl-~E INVENTION
The invention relates to data compression processes and ~ articuZarly to ~ method for determinillg preferred quantizing factors 1O tVhiCIl limit degradation in image quality generated during multi-generation compression and decompression cycles to substantially the degradation incurred in the first generation. The method also concerns supplying an optimal rounding algorithm and estimating the quantizing factors applied in a pre~ious generation if they are not explicitly available.
1~ Typical television broadcast and post production equipment and processes have used digital technology to take advantage of the power and flexibility inheren~ in the digital format. The advantages in using the digital format are particularly evident when applied to the manipulation of images in, for example, post production processes during which the 20 information content of the images may be increased, decreased and/or rearranged such as is done in the process commonly known as "layering".
In such processes, the storage and manipulation of television images using digital technology was first performed with random access disc recorders. The utility of the digital disc recorders was not so much in their 25 random access capability, as it was in their a~ility to re-record images for multiple generations without the loss of fidelity caused, for example, when recording multiple generations with analog recorders.
By way c,f explanation of the terms "multiple generations" or "multi-generations" as employed in the description herein, each sequence 30 of recording and playing back of a video image signal results in the reproduction of a copy that is a "generation" removed from the original or preceding video image signal. Thus, "multi-generations" defines a sequence of selected repetitions of an image signal through a given signal 2 ~ 7 2 3674 Cl PATE.~T

process such as, for example, consecutive recorded lape reproductions, post production editing or layering processes, etc In practice, some deterioration of the video image signal occurs during the record and reproduce processes because of imperfections in the record and reproduce 5 equipment. This deterioration is manifested in the reproduced video images as signal amplitude, frequency and/or phase errors. nle extent of cleterioration is cumulative and thus increases markedly as the number of record and playback sequences, that is, "generations" experienced by the video image signal increases. Even in the absence of layering, a few ~0 record/playback se(~uences of an analog video image through imperfect or misadjusted equipment, such as may occur during electronic editing processes, produce severe deterioration in the final generation of the video image signal obtained.
It is well known that the size and cost of any present or future 1~ digital recorder is directly related to its data rate and storage capacity.
Accordingly, there are increasing numbers of applications in which there is a strong incentive to reduce these requirements as, for example, by using some form of data compression. This is particularly true for digital video tape recorders, disc recorders and other high density television and data 20 recorders. Various configurations of these recorders commonly are used in television post production processes, where 10 to 20 generations of, for example, video image data are cornmon and more than S~ generations are occasional requirements. To be acceptable, a compression algorithm used in these recorders must meet the same multi-generation requirements as 2~ are imposed on D-l component and D-2 composite color ~ideo tape recording standards, that is, a 4.5 image rating on the CCIR 600 five point scale.
In the event that image data is compressed before being recorded by a digital disc or an analog or digital tape recorder, it is well known that the 30 process experiences an inherent initial quantization error which is generally a one time error occurrence. In the absence of uncorrectable recorder errors, initial quantization errors generally do not get worse with subsequent mulliple generations of compression and decompression.
This is only true, however, if there is no additional processing of the 35 television image between the generations. Image processing such as the 3674 Cl il~A&I~

process of image "layering" mentioned above, wl~erein additional image data are s~lperimposed on, or undesired image data are removed from, an e.Yisting video image, introduces quantization roundoff errors, otherwise .~no~vn as rounding errors. The rounding errors are the inherent 5 distortion introduced into the signal by the quantization process, wherein a range of values is divided into a finite number of smaller sub-ranges, each of which is represented by an assigned or "quantized" value ~vithin the sub-range. The introduction of rounding errors in subsequent generations after the first generation, tvill degrade the signal-to-noise ratio 10 in some way with each generation. Fortunately it is extremely rare for any one area of an image to be processed more than a few times even if it is re-recorded very many times.
In the case of compression and decompression cyc1es an additional requirement is that the compression ratio, that is, the quantizing factor, is 15 constant for e~ch area of the image, for each generation. In order to achieve some worthwhile compression ratio, most compression algorithms do not compress all areas of the image to the same degree.
Busy areas in the picture produce more data than quiet areas and thus a coarser quantizing factor generally is applied to the data in busy areas.
20 Accordingly, in typical data compression processes, the average compression parameters are selected and/or adjusted to provide the desired total recorded data per image. That is, in video image compression applications it generally is desirable to compress video images to a particular data block size (in bits) or average data rate (in bits per second).
25 The quantizing factor, other parameters being constant, is chosen to yield the desired compressed data block size or average data rate that will just fit the data into a desired data block length, and/or into an allotted recording space on the disc or tape. To this end, some compression algorithms adjust their parameters dynamically from block to block of data. Others 30 adjust a single set of parameters each generation for use over a relatively large area of the image, up to the entire image.
rt has been determined that if the same image is compressed and decompressed many generations, it ~ill not suffer any substantial degradation beyond the first generation, particularly if the same 35 quantizing factor is used for each area. However, if the image is changed 20~972 3674 Cl PATE.~T

in some way between generations, that is, if an image layering process is performed, and the usual different optimum quantizing factors ~vhich precisely fit the compressed data into the allotted space are used to achieve ~he same compression in each generation, the complexities of the collditions can lead to a rapid degradation in image quality. ln addition, tlle normal rounding technique of adding a constant 0.5 and truncating the fractional part, accelerates the degradation.
It follows that it would be highly desirable to provide a compression/decompression techniq-le for accomplishing multiple 10 generation image layering without degrading image quality, wherein each generation introduces an increased or decreased layer of data over a portion of the existing image whereby tlle layer is more or less complex than the portion of the image it replaces. Such multiple layering processing results in slightly more, or slightly less, compression being 15 required with each generation. The technique should compensate for the increase or decrease in compression required, whi]e still maintaining the optimal image fidelity throughout the successive generations after the first.
SUM~vlARY OF THE INVENTION
. _ . . ... _ The present invention overcomes the shortcomings of typical prior art, by providing techniques and associated embodiments for compressing and decompressing images through multiple generations while limiting the image degradation to little more than that which inherently is suffered in the first generation of compression. That is, the invention technique 2~ provides for changing quantization in multiple generations of quantization in which the image complexity may be varied, such that the errors after the final quantization generation are app~oximately the same as the errors generated in the first quantization.
In the preferred embodiments, the invention provides for the selection of an "over-quantizing";factor, a finite "non-degenerative set of quantizing" factors, and/or a "dither rounding" algorithm, which minirnize degradation in image quality typically incurred as a result of performing a data layering process during multi-generation cc,mpression and decompression cycles.

2~3972 3674 Cl PATEj~T

More particularly, in a basic concept of the invention technique, a ~rial quantizing fac~or first is selected by experience as a mid-range value for an image of average information complexity. After additional iterations if necessary, in which the trial quantizing f~ctor is refined, an o~er-quantizing factor is chosen wllose value is large enough to compress the irnage to a greater extent than that required in the first generation That is, the over-quantizing factor is sufficiently large enough that sufficient compression still is provided in subsequent generations even though the same over-quantizing factor is used, while the complexity of ~0 the image is being increased by ]ayering processes during the multiple generations. More particularly, the over-compression selected, for example, in the first generation, is a function of the expected cumulative increase in image complexity by any successive layering operations performed during subsequent generations. It follotvs that the quantizing 15 factor need not be changed in subsequent generations even though there is an increase in image complexity, due to the fact that a larger over-quantizing factor was selected for the first generation than would be required for ideal quantization if only a single generation were performed.
If for some reason the complexity of the image due to layering 20 increases faster than expected, whereby the number of bits or the data rate of the compressed image becomes unacceptable, it becomes necessary to increase the quantizing factor in order to fit the image into the available space. ~Iso, it may be necessary to decrease the quantizing factor in the event that the image complexity decreases by a significant amount. If such 25 a change in the quantizing factor is unavoidable, the invention technique includes an optimal rounding algorithm, or "dither rounding" technique where, instead of adding a constant 0.5 before truncating in the rounding process as is commonly done at present in compression processes, random numbers with, for example, a generally uniformly distributed energy 30 spectrum in the range 0...1.0, are selectively added as determir~ed by a threshold. In this way, any image degrading rounding sequences are broken up, although at the expense of additional random errors.
However, the distribution of the random numbers may be selected to minimize the visibility of the errors.

.

2~39~
367~ Cl PATE~;T

In a preferred embodiment of the invention, the quantizing factor ma-I:e selected from the predefined finite non-degenerat;ve set of quantizing factors of previous mention. A trial quantizing factor first is estimated and, ~ ia additional iterations if necessary, a quantizing factor of the non-5 degenerative set which comfortably fits the compressed data into the allotteddata block length and/or recording space, then is selected for the first generation. In subsequent generations of compression/decompression ~ith layering of additional image data, different respective quantizing factors of the non-degenerative set, each of which readily fits the compressed data into the 10 allotted block length and/or recording space, may be selected with no additional degradation in the image quality in the subsequent generations. By ~ay of example, a finite non-degenerative set of quantizing factors are provided in the form of "arrays" of a periodic series of individual quantizing values, herein termed l'quantizer values", wherein a special nurnerical 15 relationship is maintained between corresponding quantizer values in different arrays. It has been found that the preferred numerical relationship between corresponding quantizer values of the non-degenerative set of quantizing factors is a ratio of the order of three, although other numerical relationships are possible. For example, for a linear non-degenerative set of 20 quantizing factors the preferred numerical relationship is the ratio of the order of three. However, a non-linear non-degenerative set of quantizing factors does not require a ratio of three but still must meet other criteria imposed on the non-degenerative technique, as described herein. Further, it is to be understood that although the ratio of three is preferred, any number 25 in a given range centered about three is equa]ly well suited. For example, a ratio of 3.005, 3.01 or 3.1, or of 2.995, 2.99 or 2.9, etc. may be used with only correspondingly slightly increased degradation in picture quality.
In the example described herein, a ~uantizing factor is fully described by an 8x8 array of individual quanti~er values which, in the compression 30 process, are applied to an 8x8 array of discrete cosine transform coefficients.
The coefficients, in turn, represent an 8x8 group of pixels taken from the video image. By way of example only, the transform coefficients are depicted herein as comprising 12 bit digital samples generated by a transform process from resp~ctiv~ 8 bi~ san~ples of the video image.

29~3972 367~ Cl P~.T1~!-r A further feature of the invention includes estimating a quantizing factor applied in a previous generation of image recording, where tllis information is not available explicitly. The latter feature consists of finding the separation between peaks and/or valleys in a histogram, 5 wherein the arnplitudes of the peaks and/or valleys represent the number of counts of the respective values of frequency coefficients to be quantized.
The separation between peaks is tlle reciprocal of the desired multiplica~ive quantizer if a quantizer of less than I is used, and is equal to the di~ iding quantizer if a quantizer of greater than I is used.
In the example herein, quantization is applied to frequency coefficients after taking a discrete cosine transform (DCT), but the technique is applicable to many other compression algorithms using other transformations which at some stage involve quantization.
BRIEF DESCR~PTION OF THE DRAWINGS
1~ FIG. 1 is a functional block diagram illustrating a data record/playback process in which compression/decompression processes also are performed, wherein the entire cycle of compression, recording, playback and decompression constitutes one generation of a multi-generation process as discussed herein relative to the invention.
FIG. 2 is a block diagram of a data compression and decompression system illustrating an environment in which the present invention is used.
FIG. 3 is a block diagram showing in further detail the Q estimator circuits of the system of FIG. 2.
FIG. 4 is a graph illustrating a histogram of the measured outputs of the first five AC cc,efficients generated in a computer simulation of a data compression process used to compress a boat scene.
FIG. 5 is a block diagram illustrating an alternative embodiment of the previous Q estimator circuit of FIG. 3.
FIG. 6 is a functional block diagram illustrating a prior art rounding technique used to hide c0l1tours when performing data quantization.

.
. " .' .
, ' , ' ,, , ~3~
367~ Cl PATENT

I~IGs. 7 alld 8 are func~ional block diagrams illustrating dither rounding and recovery for compression and decompression processes, resF-ectively, in accordance with the invelltion.
FIC. 9 is a graph qualitatively comparing Rl\IS errors generated 5 ~uring multi-generation data compression processes when using prior art techniclues and when using the invention techniques described herein.

DESCRII'TION OF THE PREFERRED EMBODIMENTS
In a data processing operation sucll as data compression, quantizing 10 conventionally is performed by effectively mùltiplying each coefficient by a quantizer which is less than 1, (or by effectively dividing each coefficient by a quantizer which is greater than 1), then rounding the result by the addition of 0.5 and truncating the fractional part of the summation. It has been determined experimentally that if the complexity of the data being 1~ processed is increased or decreased during multiple generations, and if the quantizer is changed from generation to generation, the resulting errors due to rounding and truncation grow at an unacceptably large rate.
Accordingly, the invention proposes limiting the choice of quantizing factors to (I) an over-quantizing value which then is used through all 20 subsequent generations, and (2) quantizer values selected from a non-degenerative set of quantizing factors, wherein linear values therein have a preselected nurnerical relationship between corresponding values in different arrays, e.g., of the order of three. In the event the first mentioned over-quantizing technique is applied in generations succeeding the first, 25 and the previous quantizing factor is not availab]e explicitly, the invention estimates the previous quantizing factor frorn histograms of unquantized transform coefficients. In a further embodiment, in the event an over-quantizing factor must be changed in a subsequent generation, the invention employs a dither rounding algorithm which 30 minimizes the growth of the roundoff errors due to quantization in the corresponding subsequent generation.
~IG. 1 illustrates in functional block diagram a complete "generation" of a recordtplayback process using the further processes of , .
~' 2~3972 3674 Cl P,4TE.~;T

data compression and decompression, in which the invention !echniques are employed to circumvent problems generated when performing data "layering" during multiple generations of the recording/playback processes. As previously mentioned, layering is a process Yhereby S additional image data is added to (or removed from) an existing image during consecutive recording and playback cycles, and which accordingly increases or decreases image complexity. Thus, in FIC. 1 image data correspondillg, for example, to a video image, are applied via an input bus lO to a means 7 for compressing and encoding the data, whereupon the 10 compressed/ellcoded data are supplied in a suitable format to data recorder/playback apparatus, or to a transmission channel or other utilization apparatus, as depicted via the block 8. The resulting compressed image data subsequently may be supplied to means 9 for decoding and decompressing the data, whereupon the decompressed 15 image data corresponding to the original video image are provided on an output bus 12 to complete a "generation" of data processing. The image data on output bus 12 may be applied to a layering means 13, whose output subsequently may be applied to the input bus 10 to form a generation loop which includes a layering process.
As may be seen, the apparatus loop of FIG. 1 illustrates one record/pla~bac~
generation commonly performed by a video tape recorder or other recording apparatus. The loop also depicts the processes of compressing/encoding and the inverse processes of decoding/decompressing the data, as well as the process of layering of data on the original image, as an integral part of the complete generation. It follows that the passage of additional cycles of the same data throu the apparatus loop of FIG. 1 such as employed, for example, in television post production facilities, constitutes the multi-generation process referred to in the description herein. As well known in the art, the layering processes may be performed, for example, by apparatus such as video switchers, digital optics data manipulating apparatus and/or graphic art systems.
Although the invention is described herein relative to video image data, it is to be understood that other types of data and respective processing systems may utilize the invention techniques. For example, the data may be a stream of data bits which are supplied to a transmission channel for transmission to and from a preselected utilization apparatus 2~6~2 367~ C~ PATE.`~:T

such dS a satellite, etc., wherein the comF~ressed data is fitted ints a stre~m of data block lengths or have a preselected data rate, rather tllan be recorded in allotted spaces on magnetic tapes or disks.
In addition, to facilitate the descriptior herein, the invention is described by way of example only, in terms of the standards imposed by the oint Photograpllic Experts Group (lPEG), which concern technical ~escriptions of, for example, encoding and decoding algorithms and the encoded data format. In tlle standards, 8x8 blocks of pixel data are transformed via a suitable transform such as a discrete cosine transform (DCT), into respective 8x8 arrays of DCT coefficients. The 8x8 blocks of samples of pixel data are obtained by dividing the input sample array into contiguous 8x8 blocks of pixels which, in turn, are derived from a subdivision of, for example, a luminance component (Y), and chrominance components (R-Y, B-Y) image, with vertical resolution of 576 1~ rows and horizontal resolution of 720 columns of the Y component, or 360columns of the R-Y, B-Y components. The 8x8 array of DCT coefficients is ordered with the DC component in the upper left corner, with increasing horizontal "frequencies" to the right of the array and with increasing vertical "frequencies" towards the bottom of the array.
~IG. 2 illustrates in block diagram a data compression/decompression system modified in accordance with the present invention, for compressing ar,d e~icoding video image data corresponding, for example, to the image data signal of FIC. 1, and also for decoding and decompressing the previously compressed ar.d encoded data. The video image data are formed of a serial stream of 8 bit digit~l samples of the 8x~ blocks of pixel data recommended, for example, by the JPEG
standard of previous mention, and are supplied, via the input bus 10, to a transform process herein illustrated as a discrete cosine transform (DCT) circuit 1 by way of example only. It is to be understood that other transform processes a.~d other block sizes may be used instead. The resulting ~x8 array of transform coefficients is supplied as 12 bit samples from the DCT circuit 14 to a delay circuit 16 and thence to a quantizer circuit 18. The delay circuit 16 provides a time de!ay equivalent to the time required to estimate and select a quantizing factor via aparallel channel further described below. As shown, the quantizer circuit 18 typically includes a circuit 17 for effectively dividing the transform coefficients ~!~
selected quantizer values, and a circuit 19 for rounding (truncating) the resulti~lg~

-10- . -367~Cl I~A~ 3j9 7 ~alues of the division process. The qu~ntizer circuit 18 is coupled to an entro~ -encoder circuit 20 which is illustrated herein by way of example only, as a l-~uffman encoder. It is to be understood that other equivalent encoding proce~e~
may be used instead. The signal is provided on an output bus 22 as a S compressed/encoded video data signal, which is in a suitable format of 8 bit ~1icitl~.
samples for recording on tape or disc, or for transmission to other utilization apparatus. The output signal from the encoder circuit 20 may be a serial stream o~
digital samples of varying numbers of bits. A typical system for providing the fullctions of the compression/encoder circuits 14, 18, 20 may be found in the application USSN -07/560, 606, filed July 31, 1990, and entitled Data Compression Using A Feedforward Quantization Estimator, assigned to the same assignee as this application, and incorporated herein by reference.
In accordance with the invention, the compression/decompression system also supplies the output of the DCT circuit 14 to a "required" Q estimator circuit 24 as well as to a "previous" Q estimator circuit 26. As implied by the titles, the circuit 24 provides means for determining the quantizing factors for a subsequent compression/decompression process, and the circuit 26 provides means for determining unknown quantizing factors used in a previous compression/decompression process, as further described in FIGs. 3-5. For simplifying the description, the letter "Q" is used herein at times as a convenient identification for an array of individual quantizer values, one for each coefficient to be quantized. The outputs of the two estimator circuits 24, 26 are supplied for example, as 7 bit digital samples, to a Q selector 28 whose output, in turn, enables one Q factor from a Q lookup table circuit 27. In the JPEG standard, each array may contain 8x8 or 64 individual quantizer values.The table circuit 27 contains a selected number of arrays of quantizer values, and for the 7 bit input shown here contains 12~ arrays of 6~ z~s Ya~es, ~?e ~uanlize~ ~a~s ~espo7?ding to the selected array are supplied to the quantizer circuit 18 via a bus 2$, anddetermine the compression ratio resulting from the compression process. More particularly, Q selector 28 and table circuit 27 supply digital values corresponding to the quantizer values to be used by the divider circuit 17 in the compression process.
Thus, in a first generation of a record/playback process, the transform coefficients from the DCT circuit 14 are supplied to the required Q estimator circuit 24, which also receives a trial array of quantizer values ~, .

. .

, 2~6397~
367~ Cl PATE.~:T

s-lpplied via a Irial Q bus 30. The trial array of quantizer values is a mid-range value selected by experience for an image of average information complexity. The required Q estimator circuit 24 generates a signal indicative of ho-v much quantization is required to pro~ide the number of 5 bits of compressed data which just fills the allotted space in the data block to be recorded, or whicll provides the desired data block length or average data rate in a serial stream of data samples. More particularly, the Q
estin~ator circuit 24 in turn provides, to the Q selector 28, a Q factor identifier signal which identifies the array which will properly compress 10 the video image data to the preselected extent needed for the particular application. The Q lookup table circuit 27 then supplies the individual quantizer values of the selected array to the quantizer circuit 18. The preferred embcdiment herein describes the use of lookup tables to provide individual quantizers, but a combination of lookup tables and 15 computation is equally applicable. For example, if i and j represent re~pectively the horizontal row and vertical column numbers of an array, and k represents the Q factor identifier number, then an individual quantizer value q may be computed from an equation such as the following: q jj = 3 to the power of (integer((i+j)/k)). A typical system for 20 providing the functions of the required Q estimator circuit 24 may be found in the application USSN 07/560,606 of previous mention.
In a next generation of a multi-generation process in which layering may have increased or decreased the image complexit~, the transform coefficients corresponding to the new video image data are supplied from 25 the DCT circuit 14 to the previous Q estimator circuit 26 as well as to the required Q estirnator circuit 24 as in the previous generation. The previous Q estimator circuit 26, supplies a signal indicative of how much quantization, if any, was used previously on the incoming video image data. The input signal may be that supplied in a second or later 30 generation, or may be an unknown signal recovered from a new tape wherein the data might or might not have been compressed. The new Q
factor identifier signal from the previous Q estirnator circuit 26 also is supplied to the Q selector 28 along with the output frorn the required Q
estimator circuit 2d,. Thus, after the first generation, the signal supplied by 35 the Q selector 28 is based not only on the estimate of what Q factor is required, but also on what Q factor was used in the compression process of :
~ , ., 2~3972 3674 Cl PATE~:T

the last generation. That is, the Q se1ector 28 selects one of the va]ues from ~he tu~o estimator circuits 24, 26. The Q factor selected is the one which p rovides the greater compression, unless the Q factor from the required Q
estima~or 24 provides significantly less compression (typically a factor of 5 five) than the Q factor from the previous Q estimator 26. In this situation, the complexity of the image has decreased so significantly that it tvould be impractical to not lower accordingly the compression ratio, and thus the Q
factor from the required Q estimator 24 is selected. As in the previous generation, the appropriate individual quantizer values generated on bus ]0 2~ via the Q lookup table circuit 27, are supplied to the quantizer circuit 18 al1d are applied to the video irnage data signal which has been suitably delayed by the delay circuit 16. The compressed and encoded video image clata then are supplied via the output bus 22 to a recorder for subsequent recording, to a transmission channel for other utilization, or to other 15 utilizing means, as depicted previously via the block 8 in FIG. 1.
The identities of the Q factors, or of the individual quantizer values, used in the compression process also are suitably recorded or transmitted as overhead along with the compressed video image data, as depicted via the line 32. The Q factors or quantizer values used in the compression 20 process thus are available for use in a subsec~uent decompression process, ~hich is another condition of the ]PEG standard.
In a subsequent decompression process when the previously compressed and recorded video image data is recovered from an outside source such as the tape recorder of previous mention, the compressed 25 image data is supplied via a bus 34 to a decoder circuit 36. In addition, as depicted via a bus 38, a signal identifying the Q factors or quantizer values used in the previous compression process also is recovered as the Q factor identifier signal which was previously inserted as overhead in the data signal. The identifier signal is supplied to a Q lookup table circuit 29 30 similar to the Q lookup table circuit 27, wllerein the former supplies the individual quantizer values of the same array prevlously used in the compression process, to a dequantizer circuit 40. The dequantizer circuit ~0 includes a circuit 39 for multiplying and a circuit 41 for rounding, ~fvhich perform the inverse processes of the quantizing process performed 35 by circuit 18, in generally conventional fashion. The decoder circuit 36 , 2~3972 367~ Cl PATE,~; T

decodes the recovered image data and supplies the decoded data to the dequantizer circuit 40. The resulting transrorm coefficients are supplied, for example, as 12 bit digital san-ples to an inverse transform circuit 42.
The lat~er circuit supplies a video image data signal on the output bus 12, 5 which signal is a reconstruction of the original video image data signal on input bus 10, ~-~ith some degeneration in the signal due to the rounding process inl1erent in the reconstruction part of the compressiol1/decon1pression processes.
Various manufacturers supply clata compression/decornpression integrated chips that include tl1e DCT circuit 14, the quantizer circuit 18 and the entropy encoder circuit 20 within a single chip. Thus, since this and simi]ar cl1ips are readily available, a practical implementation of the circuit of FIG. 2, including the required and previous Q estimator circuits 24, 26, is illustrated in FIG. 3. Like cornponents are similarly numbered, 15 with a prime symbol added to components in the integrated chips of FIG. 3 which might not be precisely the same but are in essence equivalent.
As in FIG. 2, the image data are supplied via the bus 10 to the delay 16, and thence to an integrated compression chip 51 containing a DCT
circuit 14`, a quantizer circuit 18' and an encoder circuit 20'. The quantizer 20 circuit 18' is supplied with the individual quantizer va]ues via the bus 25, and the encoder circuit 20' supplies the compressed/encoded signal on the output bus 22. In like fashion, the required Q estimator circuit 24' includes an integrated compression chip 50 wl1ich includes the DCT circuit 14', the quantizer circuit 18' and the encoder circuit 20'. As in FIG. 2, the trial array25 of quantizer values is supplied to the quantizer circuit 18' via the bus 30.
The encoder 20' of the chip 50 supplies a digital data stream corresponding to the actual number of data bits generated for a given data block to be recorded after the data is compressed, to counter means 52 of the required Q estimator circuit 24'. The output of the counter means 52 comprises the 30 number of data bits counted per data block, and is supplied to a lookup table circuit 54. The lookup table in circuit 54 stores a Q factor identifier for each of a selected number of ranges of possible count results from the trial compression carried out in the chip 50. Each Q factor is that which, based on experimental data from a wide range of images, would produce the 35 desired compression if used in place of the trial array of quantizer values ''~
;., ~ , 2~63972 367~ C1 P~TE.~T

first supp]ied on the bus 30. The number of bits produced by the trial compression thus determines the identification of the required Q factor to be selected. In the over-quantizing embodiment, the lookup table circuit 54 includes means for providing an offset in the stored lookup tables.
5 Thus, a suitable input from, for example, a control panel (not shown) may set a selected offset of one or more lookup tables, to thereby supply, for e:~amyle, the over-quantizing factor. The offset corresponds to the expected increase in image complexity. The corresponding identifier signal is supplied to the Q selector 28 at a field or frame rate depending 10 upon whetller the data source is field or frame based. The seleclor 28 may be a maxim-lm value selector in a simple embodiment. The selector 28 supplies the resulting Q factor identifier signal to the tape recorder via the bus 32 and also supplies it to the Q lookup table circuit 27 at the field or frame rate. The circuit 27, in turn, supplies the individual quantizer 15 values to the quantizer circuit 18' of the chip 51. Given a particular Q
factor identifier signal, the Q lookup table circuit 27 produces the actual quantizer values of the array which is identified by the Q factor identifier signal.
In subsequent generations, as described in FIG. 2, the previous Q
20 estimator circuit 26' also supplies a Q factor identifier signal corresponding to the Q factor previously used, to the Q selector 28. To this end, the transform coefficients from the DCT circuit 14' are supplied to a histogram counter circuit 46, which counts the occurrences of selected coefficients in terms of expected maximum and minimum amplitudes. As generally 25 known, the histogram counter circuit 46 includes a plurality of counters, each of which is clocked in response to the receipt of its respective digital number. The resulting count signals are supplied to a peak detection/peak separation estimator circuit 48 which uses cornbinational logic or lookup tables to distinguish the maximum and minimum counts and thus the 30 peaks and valleys of the histogram. To this end, the circuit 48 detects, for example, the separation between the peaks and then generates a signal indicative of the previously used Q factor identified by the peaks. Thus the circuit 48 includes a Q identifier which associates a particular Q factor with each value of peak separation The identifier signal is supplied to the 35 Q selector 28 which, along with the Q table circuit 27, supply the cluantizervalues to the quantizer circuit 18' via the bus 25, as previously described.

367~ (~1 2 ~ 2 As discussed above, irt situations wllere the previous Q factor is not clvailable explicitly such as in second or subsequent generations wherein the o- er-quantizing factor selection technique is being applied, the Q factor is estimated from histograms of unquantized transform coefficients. In 5 order for the described technique to determine the precise Q factor used, the Q factors must be drawn from a discreet set of Q factors which differ sufficiently for an un/lmbiguous determination to be made. Furthermore, the Q factor should be uniquely determined from an estimate of relatively few cluantizer values in the Q factor array. If some group of qualltizer 10 values in each array have the same value, then the precision of the techlli~lue is improved by including amplitudes from all the corresponding coefficients in a single histogram. For a DCT based system, for e~ample, the lo~est 3 or 5 ~C coefficients may all be multiplied by the same c~uantizer value in any given array. The va]ue of this quantizer 15 value should differ from array to array, and will uniquely identify the array and hence distinguish all the quantizer values in the array.
In a first algorithm, for a known set of Q factors, the histogram accumulation may be limited to selected discreet amplitudes which represent selected known minima and maxima which could result from 20 the set. Simplistically the largest maximum or smallest minimum should uniquely identify a particular Q factor. In practice some logical function of several maxima and minima will give a more reliable estimate. As an example, each quantizer may be represented by p histogram counters at expected maxima and expected minima. An estimator such as previous Q
25 estimator 26 then identifies a particular Q factor only if its maximum counters are among the r highest coU1lts and its minimum are among the m lowest. The choice of p, r and m depends on the set of Q factors to be discriminated and on the experimentally determined ilistogram variability for a particular application.
FIG. 4 illustrates a histogram of measured outputs of the first five AC coefficients generated in a computer simulation, and further augments the description above of the previous Q estimator circuits 26, 26'. The curves of the histogram depict the coefficient count versus amplitude of the original picture or image after the image data is transformed. In particular and as labeled in FIG. 4, the curves represent the original image , .

~6~7~
367-~ C1 P~TE.'~T

data .~i~h no qualllization, and the image data during first generations in ~vhich data compressions are performed using dividing quantizer ~alues of 20 and 60, drawn from Q factors labeled for convenience Q20 and Q60.
Th-ls, the l~istogram counter circuit a.6 of FIG. 3 counts thé number of S occurrences of selected coefficients as represented by the Q20 and Q60 curves in FIG. 4. The peak detection/peak separation estimator circuit 48 then distinguishes the peaks and/or valleys of the curves in Ihe histogram, whereby the quantizing factor value used in the previous compression process is determined. That is, the separation between peaks 10 in a histogram is equal to the dividing quantizer used. Several different algorithms may be used to measure the separation, as discussed in FlGs. 3 and 5.
In the general technique where over-quantizing Q factors are selected, the Q selector 28 supplies the over-quantizing factor vaZue to the quantizer circuit 18' of chip 51. Then as described previously in FIG. 2, in subsequent generations after the first, the Q selector 28 first compares the required and previous Q factor values from circuits 24', 26', respectively. If the required Q factor is smaller than the previous Q factor used the last generation, then the Q selector 28 supplies the previous Q factor to the 20 quantizer circuit 18'. That is, the value of the previously used larger Q
factor from circuit 26' is used, as was used in the first generation. The same procedure is followed in subsequent generations, wherein the same preselected over-quantizing factor preferably is used throughout all the follo-ving generations.
FIG. 5 illustrates an a~ternative embodiment of the previous Q
estimator circuit 26' of FIG. 3, wherein an auto correlation, Fourier, or similar transform is applied to the histogram. In the corresponding algorithm, the funclamental frequency derived in the resulting output provides the period or peak separation directly. To this end, the transform coefficients are supplied from the DCT circuit 14' to a histogram counter circuit 53 similar to the circuit 46 of FIG. 3 in that the counters therein count the occurrences of selected coefficients in terms of their amplitudes.
The resulting count signals are supplied to a genera]ly conventional auto correlator circuit 55 which provides the fundamental frequency indicative of the peak separation directly. The resulting signal is supplied to a first 2~9~2 367~ C1 P~ rE.~ r order peak estimator circuit 57, which scans lhe auto correlator circui. ~
outyut for the l.1rgest non-zero order peak. Thus the estimator circuit ~7 scans from a zero offset upwards while looking for a first minimum and then continues to scan until it finds a first maximum. Being dependent on many. histogram values, this peak may be accurately determined. The circuit 57 supplies the previously used Q factor identifier signal to the (2 selector 28.
It is to be understood that the previous Q estimator 26 and Q
selector 28 of FlGs. 2, 3 are not required in the event that the invention 10 techt1ique of using a non-degenerative set of quantizing factors is used.
That is, since a different Q factor is selected every generation without an increase in noise, there is no need to know the Q factor previously used, only the required Q factor.
If the Q factor is not changed during multiple generations of image 1~ data, it is acceptable in the quantizing process to employ a normal rounding algorithm of adding a constant 0.5 followed by truncation.
However, if the Q factor is changed prior to a subsequent generation, then it is desirable, in accordance with the invention, to modify or "dither" the rounding algorithm to add a pseudo random number in the range 0...1 20 (instead of the constant 0.5) to all coefficient numbers greater than a preselected threshold. The preferred threshold generally is in the range of + 1 to 2. Information sufficient to allow the re-creation of the sequence of pseudo random numbers is forwarded along with the data. The regenerated sequence is effectively subtracted when the image data is 2~ decompressed.
The use of dither rounding is not applied in certain embodiments of the invention, such as when the Q factor is selected from the finite non-degenerative set of Q factors of previous mention. That is, dither rounding preferably is applied with the embodiment which uses over-30 quantizing factors, and then only when the Q factor is changed in asubsequent generation after the first generation. The dither rounding technique has advantages particularly when no attempt is made to use precisely the previous Q factor.

, ' ~

.
, ~ , 2~3~2 367~ C1 PATE,~T

To further illustrate the technique of dither rounding, FIG 6 depi~ts in ful1ctional block diagram, a typical rounding technique of adding a constant 0 5 to the coefficient values, and then truncating the fractional part of the resulting summations To simplify the illustration, the coefficients are shown separated into an integer part and a fraction part, al1d the parts are supplied to an adder 60 A second input of a constant 0 also is supplied to the adder 60, which adds the 0 5 to the coefficient ~alues The results of the rounding process are provided by the integer palt of the sumn1ation, with the fraction part of the summation being lO truncated to provide the rounding ~ n accordance witl1 the dither rounding technique of the in~ention, in FIG 7 tl1e coefJicients agail1 are depicted as integer and fraction parts, ~- ith the coefficient values supplied to an adder 62 A random number generator 6~, w hich is initialized by an initialize signal input on a line 61, supplies a 1~ pseudo random number sequence to a second input of the adder 62 ~!ia a s-vitch 63 A second contact of the switch 63 is coupled to a constant 0 5 signalsource A selector 65 which is responsive to a threshold input, is coupled to receive the coefficients generated by the DCT circuit In a situation u here the coefficient is less than the threshold, the selector 65 switches the switch to the 20 constant 0 5 input and the conventional rounding technique is applied to the incoming coefficient In accordance with the invention, when the coefficient is larger than the threshold, the selector 65 couples the psuedo random number generator 64 to the adder 62 via the switch 63 In the latter situation, the adder 62 adds the successive pseudo random numbers to respecti~ e 25 coefficients, and supplies the integer parts of the summations t~ the encoderThe fraction parts of the summations are truncated, that is, are discarded Optionally, the error introduced may be minimized by subtracting ~he pseudo random numbers The initialize signal is forwarded along with the data, whereby lhe noise added due to the pseudo random numbers is partially 30 subtracted from the signal in the decompression process That is, the initialize signal identifies the start of the pseudo random sequence whereby it may be used in the decompression process A certain amount of noise rema.ins in the signal due to the information lost in the truncation process As mentioned, the selector 65 switches in the dither rounding portion of the 35 circuit only for coefficient values above the threshold which may be of the order of, for example, + 1 through +3 The frequency spectrum of the pseudo 2~3~72 3674 C l P,4TE,~'T

random number sequence generally is selected to minimize the visibility of the residual noise, for example, may be evenly distributed or may be -eighted to~-~ards higher frequencies.
F~G. 8 depicts one example of clither rounding recovery in the S deconlpression process. The integers corresponding to the coefficients are supplied to a selector 67, to a first contact of a switch 68 and to a positi-e input of an adder/subtractor 66. The selector 67 also is supplied v ith a thresllOId illpUt of, for example, + I througl1 ~3. A constant 0.; input signal is supplied to a second positive input of the adder/subtractor 66. A
10 random number generator 64 receives the initialize signal forwarded from the compression process via the line 61, and supplies the same pseudo random number sequence to a negative input of the adder/subtractor 66.
The adder/subtractor 66 provides an OUtpllt of the combined integer and fraction parts corresponding to the transform coefficients, to a second 1~ input of the switch 68. The common output of the switch 68 sl~pplies the coefficients to the inverse transform circuit 42 as in FIG. 2. Thus, the selector 67 provides the means for adaptively switching the switch 68 to the pseudo random number generator, that is, to the adder/subtractor 66 output when the coefficient value exceeds tlle threshold value, and vice 20 versa. The coefficients are either rounded in accordance with a typical constant 0.5 rounding procedure, or are rounded in accordance with the dither rounding procedure of the invention, as determined by the threshold. It is to be noticed that the dither rounding is applied uniquely directly to the transform coefficients supplied by the dequantizer 40.
2~ It is to be understood that any procedure which is mathematically equivalent to the above dither rounding technique, is equally applicable.
For example, an appropriate pseudo randorn number sequence in the range -0.5 to +0.5 is equivalent to the original sequence of 0...1Ø
The importance of the strategy of not changing the Q factor ~-/ith 30 each generation is emphasized in FIG. 9, which qualitatively illustrates the relationships between the invention embodiments of selecting an over-quantizing Q factor, of selecting a Q factor frorm the non-de~enerati~e set of Q factors, and of dither rounding in the event an over-quantizing factor must be changed in a subsequent generation of multi-generations. The .
-;' ' .~',~

. .

2~63~72 3674 C1 PATEJ~.T

rclatio;lships apply in si~uations wherein image complexi~y is increased ordecreased by clata layering during a generation. The curves illuslrate the relative root mean squared (RMS) errors for an image of varying complexity ~vhen applying the inven~ on embodiments, and depict the R.~1S errors for a first and several subsequent generations, given specific Q
factors chosen to provide a constant comyression with and ~I.ithout the ditller process of previo-ls description. The 'with dither" and "no dither"
curves 70, 72 alld 74, 76, respectively, (both pairs of solid line and short dash curves) ~pply to prior art techniques, as well as to the invention 10 o-er-quantizing tecllnique when the same over-quantizing value is changed in a subsequent generation of a multi-generation process. ;\'ote that the units used for RMS errors are qualitative and are used herein only as a means for comparing the decrease in RMS errors when using the invention techniques. It can be seen from the "first generation" cur-e 78 15 (solid line curve) that a significantly small change in I~MS error results with increased or decreased complexity of the image, under conditions ~vllere the image data is being processed through a single generation, and an optimum Q factor is selected for each compression/decompression first generation. An optimum Q factor is that Q factor which precisely fits the 20 data compressed thereby into the allotted data recording space or data rate, as is commonly done in prior art compression systems. The "over-compression" curve 80 (short dash dot curve) also illustrates the embodiment of over-quantizing the image data on the first generation, and then maintaining the same over-quantizing factor for subsequent 25 generations in which layering may or may not be performed.
For example, assuming a Q factor which provides a compression ratio of 3:1 for the given image complexity, the R~S error for a first generation using an optimum selection of the Q factor is illustrated herein by curve 78 as about i.7. In a second generation during which image 30 complexity is increased due to layering, if a larger Q factor is used to provide the same 3:1 compression ratio, the ~MS error will increase in accordance with the "no dither" curve 76 to about 2.8. However, if the larger (over-~uantizing) Q factor had been selected for the first generation with RMS noise of about 2.1, and had been used again in the second 35 generation, the R~IS error will increase in accordance with the "over compression" curve 80 and would still remain at 2.1. That is, there is no 2~6~97~
3674 Cl PATEJ~`1 r increase in noise over that incurred in the first generation. Similarly, after five genera~ions, with the image complexity increasing each generation due to layering, the RMS error generated by using a new, optimum Q
factor each generation (as in the prior art) would be about 6.0 as depicted by S the "no dither" curve 76. On the other hand, if the Q factor used in the fifth generation is still the same over-quantizing Q factor used in the first generation, and if the salne over-quantizing Q factor has been used in the secon~ thro~lgh fourth generations, then the Rl~S error is still only about 2.1 as depicted by the over-quantizing curve 80. This is a marked 10 improvement on tlle RMS error of 6.0 generated by the prior art system of selecting nc~v, optimum Q factors for each generation.
In the event that an over-quantizing Q factor is selected and the complexity of the layered image after a few generations exceeds the capabilities of the over-quantizing Q factor, then the excessive R~S errors 15 that would be generated may be sharply reduced by applying the dither rounding technique of the invention. To illustrate, changing the Q factors thlough the generations up to the fifth generation without using the o-er-quantizing technique or the dither rounding technique (see curve 76) would generate an RMS error of 6Ø On the other hand, applying the 20 dither rounding technique reduces the RMS error to about 2.65 as deri~ed from the "with dither" curve 72 of FIG. 9.
As illustrated by the curve 82 labeled "non-degenerative Q factors" (dashed heavy line), consistently lo~v RMS errors are experienced in multi-generations of image data compression/decompression with layering, if the Q factor values are 25 selected from the pre-defined finite non-degenerative sets of Q factors of previous mention. In such technique, a new and different Q factor may be selected for each subsequen~ generation of compression/decompression if, and only if, each Q factor is selected from the non-degenerative set. Thus, for example, if all quantizer values in the first generation Q factor array are 1, and if 30 layering increases the complexity of the image data, then an effective Q factor for the second generation may be selected by changing some of the corresponding quantizer values in the subsequent array to 3 and/or 9. The numl~ers selected are commensurate with the added complexity of the image due to the layerin~
process. Subsequent generations may utilize arrays wherein selected 35 corresponding quantizer values are increased to 3 or 9 or even 27. That is, in a ,, 20~3~72 3674 (~1 PATE.~iT

preferred embodiment, the corresponding linear quantizer values in successi-e arrdys l1ave a preferred numerical relationship of a ratio of the order of threeThus the corresponding quantizer values of a non degenerative set of arravs ma\-~e selected dS a sequence 0.5, 1.5, 4.5, etc. or 2, 6, 18, etc., or any other usable sequence having a numerical relationship between corresponding quanti7ers o~
successive arrays of the order of three.
In this latter non-degenerative Q factor embodiment, the Q factors m~y be said to be "over-quantizing" values in that they generally compress the image data sufficiently to allow the compressed data to readily fit into 10 tl1e desired data block spaces. That is, the non-degenerative set of Q factors generally do not precisely fit the compressed data into a given space in time or block length. Th-ls as depicted by the curve 82 in FIG. 9, the RMS
error generated in the first generation mentioned above, using a corresponding Q factor (which is taken from a non-degenerative set of Q
li factors), is about 1.7. A second generation after layering has been performed and using a Q factor from the non-degenerative set, in which some of the quantizer values of the array are three times larger, provides an R~IS error of about 1.9, and in the fifth generation an RMS error of about 2.25 is experienced. This RMS error also clearly is preferable to the 20 error of 6.0 generated with the conventional method of changing Q factors each generation without dither rounding (curve 76), or the 2.65 error generated when further using dither rounding (cur-~e 72).
As depicted by comparing the first generation curve 78 with the short dash curves 70, 74 labeled "with dither" and "no dither", 25 respectively, it also is preferable to over-~uantize and then maintain the same Q factor in a particular multi-generation operation, even when the complexity of the image is decreased after a first generation. As may be seen from the curve 74, the use of a smaller Q factor with each generation of less complexity, without using the dither rounding process, causes a 30 significant increase in RMS error. Use of the dither rounding technique lessens the RMS error as shown by curve 70. However, it is preferable to maintain the same Q factor through the generations of decreasing image complexity, unless there is a significant decrease in image complexity. If there is a large ~ecrease in complexity, (e.g., a factor of five) it is more 35 practical to change the Q factor accordingly, to improve the picture quality.

2~6~72 3674 Cl PATE.~'T

This is particularly ~rue since the short dash curves 70, 7~ curve do--~n-~ardly to meet the curve 78 if they are plotted further to the left of the scale sho-~n in FIG. 9.
l-lo~vever, it is even more preferable to use Q factors of the non-5 degenerative set during each of the generations, since then it is notnecessary to determine the Q factor used in a previous generation of compression. Neither is it necessary to use the dither rounding process.
I-io-~ever, there is a compromise made in picture resolution due to the larger steps betweell the non-degenerative quantizer values in successive 10 arrays.
Thus, it may be seen that, if successive generations of images increase in complexity, requiring an effective increase in compression ratio, a lower Rl~,~S error results by using either of the two techniques of the invention for selecting Q factors. In the first technique, the first 1~ generation is over-compressed and then the same quantizing factor is held constant for no further degradation in the image quality. It also is preferable to hold the Q factor constant even when successive generations would allow an effectively lower compression ratio. In the second technique, a Q factor is chosen from the predefined non-degenerative set 20 of Q factors whose corresponding quantizer values have the special numerical relationship to each other, whereby a lower RMS error results even though a different Q factor may be selected for every generation of compression.
Concerning the second technique, criteria for selecting a non-2;~ degenerative set of quantizing factors are as follows. First, if quantizationis increased in a particular generation, then the quantizer transfer function output = F (input~, for each of the frequency components, must not have threshold values which are close to recc,nstruction values from the previous generation quantizer transfer function. In the absence df such a 30 condition, reconstructed values which are spread slightly by the transform and other rounding processes, would split into two ranges, acdding errors.
Second, the reconstruction values must minimize errors for both a uniform distribution (firsL generation) and for values clustered around the reconstruction values of the previous ger,eration. This implies that 2~9~2 367~ C l PA~E,~T

reconstruction values must lie approximately half way between threshold ~ alues, and must also be substantially a subset of the reconstruction values of the finer guantizer. Third, tlle reconstruction values preferably should also include the value zero to provide compression using run length 5 cocling. If there is to be freedom to choose any Q factor from ~he set at any geIleration, then the relationship of the above criteria should hold betweell all corresponding quantizer values in the set of arrays.
Examples of three non-degenerative linear quantizing transfer functiolls ~hich meet the above criteria and which exemplify 10 ~rogressively coarser linear quantizing values, are as follows. As may be seen, reconstruction values are selected half way between threshold v~lues, but clearly there are a range of values about the half way value which may be used as well. Likewise, a subset can have a range of values w hich effectively may be used, as contemplated by the invention.

~ (a) quantizing threshold +0.5 +1.5 _2.5 +3.5 +~.
q=l reconstruction value 0 +1 +2 +3 +~
~(b) quantizing threshold +1.5 +4.5 +7.5 +10.5 +13.
q=3 reconstruction value 0 +3 +6 ~9 +12 +~
Flc) quantizing threshold +4.5 +13.5 +22.5 +31.5 +~0.
q=9 reconstruction value 0 +9 +18 +27 +36 +~
Examp]es of three non-degenerative non-linear quantizing transfer functions which have closer ratios than the ratio of 3:1 exemplified in the linear functions illustrated above, also may be constructed which meet the above first, second and third criteria, It is to be noticed however that the 20 non-linear quantizing transfer functions do not have to comply with the condition of having a numerical relationship of the order of three between corresponding values in different arrays. The following series of threshold values is one example of acceptable progressively coarser non-linear quantizing values. Reconstruction values again are selected half Z5 way between threshold values, but may use a range of values.

2~3~72 3674 Cl PATE.~'T

F (a) quantizing threshold +0.5 +1.5 +2.5 +3.5 q=1 reconstruction value 0 +1 +2 +3 +~ +~
I~(b) quantizing threshold +1.5 +2.5 +S.5 +6.~ +9.;
q=2 reconstruction value 0 +2 +4 +6 +8 +10 I~(c) quantizing threshold +2.5 +5.5 +10.5 +13.5 '18.~
q=4 reconstruction value 0 +4 +8 +12 +16 +20 This set has the advantage of smaller average ratios bet~veen arrays of the set, but the thresl1old intervals are not constant. Implementation would be more complex and would be inconsistel1t with the JPEC~
specification of previous mention.
A simpler technique for obtaining linear non-degenerative Q factors with individual quantizer values, may be derived from the relationship q value = K~(3"~n), where K is a constant for any one transforrn coefficient across the set of Q factors, and n is any positive integer including zero.
10 This ecluation may be used, for example, to generate the exemplary sequence 1, 3, 9, 27, for K=1. Normal rounding is assumed. If it is desired, for psychophysical reasons, to maintain particular ratios between quantizer val~les in an array, then n must be a constant for each array and K is selected for the psychophysical reasons, resulting in Q factors w hich 1~ grow by a factor of the order of three from array to array. This normally would not allow sufficient resolution in selecting a Q factor. If n is allowed to vary over the array elements, then the effective average Q
factor may be changed in smaller steps but there would be abrupt changes in the quanti~er value for a particular transform coefficient from one 20 quantizer array to another.
Thus, as depicted in FIG. 9, there is a negligible multi-generation penalty in noise for an increase in quantization by a factor of the order of three, as, when using Q factors from the linear non-degenerative set of arrays. There is a slightly increased penalty for choosing Q factors 25 intermediate the factor of approximately three, as shown by the "non-degenerative" curve 82 for the second through fourth generations. I.t is of interest to note that the "non-degenerative" curve 82 starts at the first generation with the same RMS error of 1.7 as shown by the first ~''' ' , ' ' .
,~: ,.

7 ~
367~ Cl PATE.~'T

getleration compression process. ITo--ever, the "non-degenerative" c-;r-e 82 generates !he same R.~fS value as does the "first generation" curve /8 at a gualltizer val~le of the order of three times the first generation quantizer value. As previously discussed, three is the preferred ratio of the inventioll embodimellt which uses the linear non-degenerative set of Q
factors.
By ~ay of furtller illustration, there follows an example of a set of "non-degenerative" arrays, wherein the quantizer ~alues q have been selected using the formula of previous mention. To facilitate the 10 clescription, the base table and the arrays Q1 through Q4 llave only a 4 by 4matrix, rather than the 8x8 matrix of previous discussion. Also, only four arrays are depicted although in practice, dozens or even hundreds of arrays are used. The base table provides the value of K for each frequency coefficient, which values may be based on psychophysical tests. ]n the 15 subsequent arrays, a change in n within an array provides the associated change in the corresponding quantizer values from array to array, allowing smaller steps in the increasing quantizer values in the arrays.

~397~
3674 Cl PATE.~;T

Base Table 10 10 1~
10 1~ 15 1~ 19 Ql Q2 10 15 1~ 10 10 45 45 I ~ 15 19 23 45 45 57 207 S Q3 Q~
10 ~0 45 10 10 30 45 45 4~ 57 30 45 45 171 The Q factor may be selected from any member of this set at any generation without incurring a multi-generation penalty in noise. It may be seen in FIG., 9 that most of the set results in RMS errors which are only 10 slightly worse than for the default weighting used in the earlier simulations with variable Q factor. In any particular application, the slightly higher RMS error of using the non-degenerative set of Q factors, is a trade off for a simpler implementation which does not require the previous Q estimator circuit 26, 26' or the Q selector 28, nor the risk of 15 selecting an inadequate margin as in the technique which selects an over-quantizing Q factor at the first generation compression.

Claims (51)

3674 Cl PATENT

WHAT IS CLAIMED IS:
1. A method of selecting quantizing factors which limits the quantizing noise introduced during a corresponding data quantizing/dequantizing process when performing multi-generations of data quantizing/dequantizing, comprising the steps of:
determining quantizing factors for first and subsequent generations which limit the degradation in the quality of the data typically caused by variations in the data being introduced in subsequent generations to substantially the degradation incurred in the quantizing/dequantizing process in the first generation.
2. The method of Claim 1 wherein the step of determining includes the steps of:
estimating an optimum quantizing factor which compresses the data sufficiently to fit the data into an allotted data space;
selecting an over-quantizing factor which is larger than said optimum quantizing factor to substantially over-compress the data such that the data does not fill the allotted data space; and using the same larger over-quantizing factor in subsequent compression processes during the corresponding successive multi-generations of data quantizing/dequantizing.

3674 Cl PATENT
3. The method of Claim 2 wherein the data represent an image and the complexity of the image data is changed in selected generations, wherein the step of selecting includes:
providing excess compression by selecting an over-quantizing factor as a function of the expected cumulative change in image data complexity performed in subsequent generations.
4. The method of Claim 3 including:
supplying a trial array of quantizer values;
determining whether the trial array of quantizer values fits the image data into the allotted data space;
performing any necessary iterations on the quantizer values until the image data fits into the allotted data space;
identifying said over-quantizing factor which substantially over-compresses the image data in response to said iterations;
selecting an array of quantizer values corresponding to the over-quantizing factor which over-compresses the image data; and quantizing the image data in response to the selected array of quantizer values which over-compress the image data.

3674 Cl PATENT
5. The method of Claim 2 including the steps of:
transforming the data into selected transform coefficients prior to over-compressing the data;
changing the larger over-quantizing factor in one of the successive multi-generations of data processing; and applying a pseudo random number sequence to selected transform coefficients which exceed a selected threshold, to randomly roundoff the coefficients.
6. The method of Claim 5 including the step of:
generating the pseudo random number sequence within a range of 0 to 1.0 and with a pre-selected energy spectrum, for use in the step of applying.
7. The method of Claim 2 wherein a generation subsequent to a first generation is to be compressed and said over-quantizing factor is not known, including the steps of:
transforming the data into respective transform coefficients prior to compressing the data;
generating a histogram of selected coefficients of the respective transform coefficients; and detecting the peaks or valleys of the histogram to determine the quantizing factor used previously.

3674 Cl PATENT
8. The method of Claim 7 wherein:
said step of generating a histogram includes counting the occurrences of the amplitudes of the selected coefficients; and said step of detecting the peaks or valleys includes determining the amplitude which has the largest or smallest number, respectively of occurrences.
9. The method of Claim 7 including a step of:
detecting the valleys which occur in the histogram half way between the peaks to refine any ambiguity in detecting the peaks or the separation between the peaks.
10. The method of Claim 7 wherein the step of detecting includes:
providing a fundamental frequency signal indicative of the peak separation; and scanning the fundamental frequency signal to provide the largest non-zero order peak commensurate with the quantizing factor.
11. The method of Claim 1 wherein the step of determining includes the steps of:
selecting a first quantizing factor which would just fit the compressed data into the allotted data space;
selecting a second quantizing factor which is larger than the first quantizing factor;
compressing the data in response to the second quantizing factor; and using the same larger second quantizing factor in subsequent compression processes performed during the corresponding successive multi-generations of data quantizing/dequantizing.
12. The method of Claim 1 wherein the step of determining includes the steps of:
providing a finite non-degenerative set of quantizing factors;
selecting a quantizing factor from said non-degenerative set which provides sufficient compression to fit the compressed data into the allotted data space; and repeating the step of selecting for each subsequent multi-generation of data processing.
13. The method of Claim 12 wherein the data represents an image and the step of providing includes;
providing a set of quantizing factors corresponding to multiple arrays of quantizer values, wherein corresponding quantizer values in successive arrays have a predetermined numerical relationship
14. The method of Claim 13 wherein the numerical relationship is of the order of three and the non-degenerative set of quantizing factors are linear.
15. The method of Claim 14 wherein the image data are in the form of transform coefficients, including the step of:
deriving the linear non-degenerative set of quantizing factors from the relationship q value = K*(3**n), where K is a constant for any one transform coefficient across the set of quantizing factors, and n is any positive integer including zero.
16. The method of Claim 13 wherein the quantizing factors are an approximation of the non-degenerative set of quantizing factors.
17. The method of Claim 13 wherein the non-degenerative set of quantizing factors are non-linear and the numerical relationship is less than on the order of three.

3674 Cl PATENT
18. The method of Claim 13 wherein the image data are in the form of a data array of selected transform values, including the step of:
applying different quantizer values to different transform values of a data array to provide a selected average quantization.
19. The method of Claim 13 wherein the transform values of the data array are ordered by their significance, including the step of:
applying coarser quantization. to the less significant transform values.
20. The method of Claim 13 including:
storing a plurality of lookup tables corresponding to the non-degenerative multiple arrays of quantizer values; and selecting the lookup table which properly compresses the image data to readily fit the data into the allotted data space.
21. The method of Claim 13 further including a decompression process, including the step of:
forwarding, along with the compressed image data, a signal which identifies the multiple arrays of quantizer values used in the compression process, for use in the decompression process.

3674 Cl PATENT
22. The method of Claim 13 further including:
supplying a trial array of quantizer values;
determining whether the trial array of quantizer values fits the image data into the allotted data space;
performing any necessary iterations on the quantizer values until the image data fits into the allotted data space;
identifying a quantizing factor from said non-degenerative set which provides sufficient compression to provide said image data fit;
selecting an array of quantizer values from said non-degenerative set which corresponds to said quantizing factor; and quantizing the image data in response to the selected array of quantizer values.

3674 Cl PATENT
23. The method of Claim 1 including the steps of:
transforming the data into selected arrays of transform values;
providing a plurality of arrays of quantizer values wherein each array has a quantizing factor commensurate with an average of the quantizer values;
selecting a quantizing factor from a plurality of lookup tables which provides sufficient compression to fit the data, after compression, into the allotted data space;
quantizing the arrays of transform values in response to the selected quantizing factor; and repeating the above steps for subsequent data compressed during each of said multi-generations.
24. The method of Claim 23 including the step of:
storing a signal which identifies the quantizing factors used in the compression process together with the compressed data.
25. The method of Claim 24 wherein the compressed data is decompressed in a decompression process, including the steps of:
recovering the compressed data along with the signal identifying the quantizing factors used in the compression process;
storing a plurality of lookup tables corresponding to the lookup tables used in the compression process; and decompressing the compressed data in response to a lookup table selected by the identifying signal.

3674 Cl PATENT
26. In a system for quantizing/dequantizing image data, apparatus, for selecting quantizing factors which limit the amount of distortion incurred by the image data in subsequent generations due to variations of the image data being introduced during at least some of subsequent multi-generations of quantizing/dequantizing, said apparatus, comprising:
means for selecting quantizing factors which limit the degradation in image quality caused by variations in the image data being introduced in subsequent generations to substantially the degradation incurred in the first generation.
27. The apparatus of Claim 26 for compressing the image data into an allotted data space, comprising:
means for transforming the image data into selected arrays of transform values;
means receiving the transform values for selecting an over-quantizing factor which over-compresses the image data such that the data does not fill the allotted data spaces;
means receiving the selected arrays of transform values for quantizing the transform values in response to the over-quantizing factor, to provide the over-compressed image data; and wherein said quantizing means applies the same over-quantizing factor to transform values in said successive multi-generations.

3674 Cl PATENT
28. The apparatus of Claim 26 for compressing the image data into an allotted data space, comprising:
means for transforming the image data into selected arrays of transform values;
means receiving the transform values for estimating a quantizing factor for properly fitting the data when compressed into the allotted data space;
means for providing a predetermined finite non-degenerative set of quantizing factors in the form of arrays of quantizer values;
means storing the arrays of quantizer values for supplying an array commensurate with the estimated quantizing factor in response to the estimating means; and means for compressing an array of transform values in response to a respective array of quantizer values 3674 Cl PATENT
29. Apparatus for selecting quantizing factors for compressing image data into allotted data spaces through successive multi-generations of image data processing during which the complexity of the image data is changed, comprising:
means for varying the complexity of the image data in at least one of the multi-generations;
means for transforming the image data into selected arrays of transform coefficients in each of the multi-generations;
means receiving the transform coefficients for selecting quantizing factors which limit the degradation incurred by the image data in the successive multi-generations to the degradation inherent in the compression process during the first generation, while providing sufficient compression to fit the compressed data into the allotted data spaces in each of the multi-generations; and means receiving the selected arrays of transform coefficients for quantizing the transform coefficients of each of the multi-generations in response to the respective selected quantizing factor.
30. The apparatus of Claim 29 wherein the selecting means provides an over-quantizing factor which substantially over-compresses the image data such that the data does not fill an allotted data space, and wherein the selecting means further provides the same over-quantizing factor through the successive multi-generations of image data processing.
31. The apparatus of Claim 30 wherein the selecting means includes:
means for providing a trial array of quantizer values which correspond to a mid-range quantizing factor for an image of average image complexity;
means for storing a preselected number of arrays of selectively increasing quantizer values; and means responsive to the trial array for deriving said over-quantizing factor in the form of one of said stored arrays of quantizer values.
32. The apparatus of Claim 31 wherein:
said deriving means includes quantizer circuit means for compressing the transform coefficients into a selected stream of data bits;
means for identifying the number of compressed data bits in the stream; and said storing means includes a lookup table circuit containing said stored arrays of quantizer values, and responsive to the identifying means, for providing one of the arrays of quantizer values as said over-quantizing factor.
33. The apparatus of Claim 30 including;
means for producing a histogram of selected arrays of the transform coefficients; and means for detecting the peaks or valleys of the histogram to determine a quantizing factor used in a previous generation.
34. The apparatus of Claim 30 wherein the over-quantizing factor is changed to another quantizing factor, including;
means for applying a psuedo random number sequence to the arrays of transform coefficients which exceed a selected threshold, to randomly roundoff the coefficients.
35. The apparatus of Claim 29 wherein the selecting means includes;
means for providing a finite non-degenerative set of quantizing factors;
means for selecting a quantizing factor from the non-degenerative set which provides sufficient compression to fit the compressed image data into an allotted data space of a respective generation; and wherein said selecting means thereafter selects a quantizing factor from the non-degenerative set in response to the change in complexity of the image data in each of the successive multi-generations.

3674 Cl PATENT
36 The apparatus of Claim 29 wherein the compressed image data are decompressed, including:
means for identifying the array of quantizer values used to compress the respective array of transform values;
means for recovering the identity of the respective array of quantizer values along with the corresponding compressed image data;
and means for decompressing the compressed image data in response to the respective identified array of quantizer values.
37. A method for rounding a transform coefficient in a compression process, comprising the steps of generating a pseudo random number sequence;
adding the pseudo random number sequence to the transform coefficient; and truncating any fractional part of the summation to leave only an integer part thereof as the rounded transform coefficient.
38. The method of Claim 37 including the steps of:
providing a preselected threshold; and adding the pseudo random number sequence to transform coefficients which are greater than the preselected threshold.
39. The method of Claim 38 wherein the thresllold is in the rallge of +1 to +3, and the pseudo random number sequence is within a range of 0 to 1.0 with a preselected energy spectrum distribution.
40. The method of Claim 37 including a decompression process for the previously compressed transform coefficient, comprising:
identifying the start of the pseudo random number sequence;
adding a constant 0.5 to the previously compressed data; and subtracting the pseudo random number sequence from the previously compressed data in response to the start identification.
41. The method of Claim 40 including the steps of:
providing a preselected threshold; and adding the 0.5 and subtracting the pseudo random number sequence from previously compressed data which are greater than the preselected threshold.
42. Apparatus for rounding a transform coefficient in a compression process, comprising:
means for generating a pseudo random number sequence;
means for adding the pseudo random number sequence to the transform coefficient; and means for truncating any fractional part of the summation to leave only an integer part as the rounded transform coefficient.
43. The apparatus of Claim 42 including:
means for providing a preselected threshold; and wherein the adding means adds the pseudo random number sequence to transform coefficients which are greater than the preselected threshold.
44. The apparatus of Claim 43 wherein the generating means provides a pseudo random number sequence having a range of 0 to 1.0 with a preselected energy spectrum distribution.

3674 Cl PATENT
45. The apparatus of Claim 42 wherein the previously compressed data is decompressed, including:
means for identifying the start of the pseudo random number sequence;
means for adding a constant 0.5 to the decompressed data;
and means for subtracting the pseudo random number sequence from the decompressed data in response to the identifying means.
46. A method for determining a quantizing factor used in compressing image data in a previous generation of multi-generations, comprising the steps of:
transforming the image data into corresponding transform values;
generating a histogram formed of selected values of the transform values; and distinguishing the peaks or valleys of the histogram which are indicative of the quantizing factor used previously, so that the same quantizing factor is used in the next generation.
47. The method of Claim 46 wherein the steps of generating and distinguishing include:
plotting the number of occurrences of selected amplitudes of the transform values; and determining the amplitude which has the largest number of occurrences to determine the quantizing factor.

3674 Cl PATENT
48. Apparatus for determining a quantizing factor used in a previous generation of image data compression, comprising:
means for transforming the image data into corresponding transform values;
means receiving the transform values for determining the number of occurrences of amplitudes of selected transform values; and means responsive to the determining means for distinguishing the amplitude which has the largest or the smallest number of occurrences indicative of the previous quantizing factors.
49. The apparatus of Claim 48 wherein the determining means includes:
counter means for counting the number of occurrences of the amplitudes of selected transform values; and means for generating a histogram of the amplitude occurrences.
50. The apparatus of Claim 49 wherein the distinguishing means includes means for detecting the peaks or valleys of the histogram indicative of the quantizing factor.
51. The apparatus of Claim 50 wherein the detecting means includes:
auto correlation means for providing a fundamental frequency signal indicative of the peak separation; and first order peak estimator means for scanning the fundamental frequency signal for the largest non-zero order peak commensurate with the quantizing factor.
CA002063972A 1991-04-18 1992-03-25 Method and apparatus for determining a quantizing factor for multi-generation data compression/decompression processes Abandoned CA2063972A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US68892391A 1991-04-18 1991-04-18
US688,923 1991-04-18
US73155791A 1991-07-17 1991-07-17
US731,557 1991-07-17

Publications (1)

Publication Number Publication Date
CA2063972A1 true CA2063972A1 (en) 1992-10-19

Family

ID=27104310

Family Applications (1)

Application Number Title Priority Date Filing Date
CA002063972A Abandoned CA2063972A1 (en) 1991-04-18 1992-03-25 Method and apparatus for determining a quantizing factor for multi-generation data compression/decompression processes

Country Status (6)

Country Link
US (1) US5930398A (en)
JP (1) JPH05153406A (en)
KR (2) KR920020959A (en)
CA (1) CA2063972A1 (en)
MX (1) MX9201788A (en)
TW (1) TW256010B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999039508A2 (en) * 1998-01-30 1999-08-05 Koninklijke Philips Electronics N.V. System for extracting coding parameters from video data
CN116760988A (en) * 2023-08-18 2023-09-15 瀚博半导体(上海)有限公司 Video coding method and device based on human visual system

Families Citing this family (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100355375B1 (en) * 1995-11-01 2002-12-26 삼성전자 주식회사 Method and circuit for deciding quantizing interval in video encoder
ID20721A (en) * 1997-02-08 1999-02-18 Matsushita Electric Ind Co Ltd QUANTITY MEASUREMENT MATRICES FOR IMMEDIATE SECURITY IMAGES
JP4240554B2 (en) * 1997-07-11 2009-03-18 ソニー株式会社 Image encoding apparatus, image encoding method, image decoding apparatus, and image decoding method
GB2333657B (en) 1998-01-22 2002-08-21 Snell & Wilcox Ltd Video signal compression
GB2333656B (en) * 1998-01-22 2002-08-14 British Broadcasting Corp Compressed signals
KR100293523B1 (en) * 1998-02-25 2001-09-17 구본준, 론 위라하디락사 Lcd
GB2335104B (en) 1998-03-06 2002-01-30 British Broadcasting Corp Cascading of up conversion and down conversion
GB2335815B (en) * 1998-03-25 2002-02-27 Sony Uk Ltd Data compression
GB2337389B (en) 1998-05-15 2002-05-29 Snell & Wilcox Ltd Video signal processing
KR100327368B1 (en) * 1998-07-10 2002-03-06 구자홍 Method of video coding and decoding
US7142235B2 (en) * 1998-07-30 2006-11-28 Hewlett-Packard Development Company, L.P. Opportunistic improvement of digital camera image quality
EP1043898A4 (en) * 1998-10-06 2008-05-07 Sony Corp Encoding device and method, decoding device and method, and recording medium
GB9822094D0 (en) 1998-10-09 1998-12-02 Snell & Wilcox Ltd Improvements in data compression
GB9822087D0 (en) * 1998-10-09 1998-12-02 Snell & Wilcox Ltd Improvements in data compression
GB9822092D0 (en) * 1998-10-09 1998-12-02 Snell & Wilcox Ltd Analysis of compression decoded sequences
JP2000125136A (en) * 1998-10-19 2000-04-28 Internatl Business Mach Corp <Ibm> Image data compression device and its method
GB9824061D0 (en) 1998-11-03 1998-12-30 Snell & Wilcox Ltd Film sequence detection (nt4)
US6700623B1 (en) 1998-12-10 2004-03-02 Snell & Wilcox Limited Video signal processing using triplets of pixels
US7187805B1 (en) * 1999-11-23 2007-03-06 Xerox Corporation Maximum likelihood estimation of JPEG quantization values
US6810082B1 (en) * 1999-12-17 2004-10-26 Koninklijke Philips Electronics N.V. Chroma based adaptive signal peaking
GB2361126B (en) * 2000-04-05 2004-04-21 Snell & Wilcox Ltd Spatial video processing
US7239708B2 (en) * 2001-06-27 2007-07-03 Microsoft Corporation Protecting decrypted compressed content and decrypted decompressed content at a digital rights management client
AU2003263001B2 (en) * 2002-08-29 2009-02-26 Opentv, Inc. A method and apparatus for selecting compression for an incoming video signal in an interactive television system
US7130474B2 (en) * 2002-09-27 2006-10-31 Eastman Kodak Company Method and system for generating digital image files for a limited display
TWI220246B (en) * 2003-05-23 2004-08-11 Mediatek Inc Method for generating an initial screen of an image display system
US20050052468A1 (en) * 2003-09-05 2005-03-10 Xerox Corporation. Method of detecting half-toned uniform areas in bit-map
JP4273996B2 (en) * 2004-02-23 2009-06-03 ソニー株式会社 Image encoding apparatus and method, and image decoding apparatus and method
US7609904B2 (en) * 2005-01-12 2009-10-27 Nec Laboratories America, Inc. Transform coding system and method
JP2006287634A (en) * 2005-03-31 2006-10-19 Pioneer Electronic Corp Signal processing apparatus, signal processing method, and noise reduction apparatus
US7506071B2 (en) * 2005-07-19 2009-03-17 International Business Machines Corporation Methods for managing an interactive streaming image system
US7616821B2 (en) * 2005-07-19 2009-11-10 International Business Machines Corporation Methods for transitioning compression levels in a streaming image system
US20070028286A1 (en) 2005-07-28 2007-02-01 Greene David P Systems, methods, and media for detecting content change in a streaming image system
GB2432069A (en) * 2005-11-03 2007-05-09 Tandberg Television Asa Reducing block noise by applying a dither signal in areas of low spatial detail
BRPI0622134A2 (en) * 2006-12-11 2011-12-27 Thomson Licensing Image coding method with device implementation for said method
US8150187B1 (en) * 2007-11-29 2012-04-03 Lsi Corporation Baseband signal quantizer estimation
JP5263681B2 (en) * 2009-07-15 2013-08-14 富士ゼロックス株式会社 Image encoding apparatus and program thereof
US8396119B1 (en) * 2009-09-30 2013-03-12 Ambarella, Inc. Data sample compression and decompression using randomized quantization bins
US20110310961A1 (en) * 2010-06-17 2011-12-22 Microsoft Corporation Video rate control based on transform-coefficients histogram
US9602841B2 (en) * 2012-10-30 2017-03-21 Texas Instruments Incorporated System and method for decoding scalable video coding
CN103077723B (en) * 2013-01-04 2015-07-08 鸿富锦精密工业(深圳)有限公司 Audio transmission system

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4831636A (en) * 1985-06-28 1989-05-16 Fujitsu Limited Coding transmission equipment for carrying out coding with adaptive quantization
JP2670259B2 (en) * 1985-11-29 1997-10-29 ソニー株式会社 High efficiency coding device
IT1190565B (en) * 1986-04-07 1988-02-16 Cselt Centro Studi Lab Telecom PROCEDURE AND CODING DEVICE FOR NUMBERED SIGNALS BY VECTOR QUANTIZATION
US5072290A (en) * 1986-09-19 1991-12-10 Canon Kabushiki Kaisha Color image signal encoding device
US4920426A (en) * 1986-11-10 1990-04-24 Kokusai Denshin Denwa Co., Ltd. Image coding system coding digital image signals by forming a histogram of a coefficient signal sequence to estimate an amount of information
US5073821A (en) * 1989-01-30 1991-12-17 Matsushita Electric Industrial Co., Ltd. Orthogonal transform coding apparatus for reducing the amount of coded signals to be processed and transmitted
JP2520306B2 (en) * 1989-05-24 1996-07-31 三菱電機株式会社 Transform coding device
US5065229A (en) * 1989-07-24 1991-11-12 Eastman Kodak Company Compression method and apparatus for single-sensor color imaging systems
US5142380A (en) * 1989-10-23 1992-08-25 Ricoh Company, Ltd. Image data processing apparatus
JP2969782B2 (en) * 1990-05-09 1999-11-02 ソニー株式会社 Encoded data editing method and encoded data editing device
US5146324A (en) * 1990-07-31 1992-09-08 Ampex Corporation Data compression using a feedforward quantization estimator
US5150208A (en) * 1990-10-19 1992-09-22 Matsushita Electric Industrial Co., Ltd. Encoding apparatus
TW223690B (en) * 1991-02-13 1994-05-11 Ampex
EP0514663A3 (en) * 1991-05-24 1993-07-14 International Business Machines Corporation An apparatus and method for motion video encoding employing an adaptive quantizer

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999039508A2 (en) * 1998-01-30 1999-08-05 Koninklijke Philips Electronics N.V. System for extracting coding parameters from video data
WO1999039508A3 (en) * 1998-01-30 1999-09-30 Koninkl Philips Electronics Nv System for extracting coding parameters from video data
US6101278A (en) * 1998-01-30 2000-08-08 Philips Electronics North America Corp. System for extracting coding parameters from video data
CN116760988A (en) * 2023-08-18 2023-09-15 瀚博半导体(上海)有限公司 Video coding method and device based on human visual system
CN116760988B (en) * 2023-08-18 2023-11-10 瀚博半导体(上海)有限公司 Video coding method and device based on human visual system

Also Published As

Publication number Publication date
TW256010B (en) 1995-09-01
JPH05153406A (en) 1993-06-18
KR100252594B1 (en) 2000-04-15
US5930398A (en) 1999-07-27
KR920020959A (en) 1992-11-21
MX9201788A (en) 1993-02-01

Similar Documents

Publication Publication Date Title
CA2063972A1 (en) Method and apparatus for determining a quantizing factor for multi-generation data compression/decompression processes
EP0509576B1 (en) Method and apparatus for determining a quantizing factor for processes involving multiple compression/decompression of data
US5301018A (en) Method and apparatus for shuffling image data into statistically averaged data groups and for deshuffling the data
EP0619059B1 (en) Method and apparatus for image data compression using combined luminance/chrominance coding
KR0150955B1 (en) Compressive and extensive method of an image for bit-fixing and the apparatus thereof
US5136371A (en) Digital image coding using random scanning
US5629779A (en) Image coding method and apparatus therefor
US5122873A (en) Method and apparatus for selectively encoding and decoding a digital motion video signal at multiple resolution levels
US6160844A (en) Processing digitally encoded signals
CA1333090C (en) Digital video compression system
EP0677969B1 (en) Moving picture coding method and an apparatus therefor
EP0550012B1 (en) Apparatus for compression encoding video signals
US6348945B1 (en) Method and device for encoding data
US5475502A (en) Variable length-adaptive image data compression method and apparatus
JPH0583696A (en) Picture encoding device
EP1280106A2 (en) Apparatus for digital image compression
GB2259824A (en) Image data compression with dynamically controlled quantiser
US5613091A (en) Data compression
JPH06319112A (en) Quantization control circuit
US7634526B2 (en) Selectable quantization in an encoder
GB2266635A (en) Image data compression
JPH05168001A (en) Image coder
US6442299B1 (en) Automatic bit-rate controlled encoding and decoding of digital images
KR100209879B1 (en) Apparatus for emphasizing image quality partially using variable quantization
KR950003634B1 (en) Recording/playing method and apparatus of digital image

Legal Events

Date Code Title Description
EEER Examination request
FZDE Discontinued
FZDE Discontinued

Effective date: 20021230