ADAPTIVE COMPRESSION

Abstract: In a video signal compression method, compression ratio control signals (K) and a previous sum (Csum) are added (AD1) to generate a new sum, compression control signals (DC, en) are logically generated (CP, CNT) in dependence upon the previous sum (Csum) and the compression ratio control signals (K), and video signals are compressed (D) in dependence upon the compression control signals (DC, en) to generate compressed video signals.

Description: Adaptive compression. The invention relates to adaptive compression of video signal for e.g. PIP or double window display. GB-A-2, 182,522 discloses an adaptive filtering system. A picture-in-picture television receiver for which the viewer may change the size of the inset image includes an adaptive anti-aliasing filter. The filter includes a variable delay element and an adder. Signals are applied to one input port of the adder and to the delay element. The signals provided by the delay element are applied to a second input port of the adder. The delay element provides time delays which may be expressed by the equation T = Kiτ + PK 2 τ, where τ is a fixed amount of time, Ki and K 2 are constants, and P is a variable. The frequency response characteristic of the filter is changed by a selection signal that changes the value of P. It is, inter alia, an object of the invention to provide an adaptive filter having a simple control. To this end, a first aspect of the invention provides a video signal compression method and device as defined in claims 1 and 2. Claim 5 defines a display apparatus in accordance with a second aspect of this invention. Advantageous embodiments are defined in the dependent claims. In a video signal compression method in accordance with a primary aspect of this invention, compression ratio control signals and a previous sum are added to generate a new sum, compression control signals are logically generated in dependence upon the previous sum and the compression ratio control signals, and video signals are compressed in dependence upon the compression control signals to generate compressed video signals. These and other aspects of the invention will be apparent from and elucidated with reference to the embodiments described hereinafter. In the drawings: Fig. 1 shows a compression circuit in accordance with the invention; and Fig. 2 shows a display apparatus comprising such a compression circuit. For a PIP (picture in picture) mode called linear zoom we need a digital filter that compresses a video picture to a smaller size. The compression must be done in horizontal as well as in vertical direction. The main issue of linear zoom is that the reduction factor can be different for each new picture. For this problem we found a solution which can be applied to the horizontal and vertical compression filters. The basic scheme is shown in the drawing. In the drawing, K is a number between 0 and M, where M is the number of possible reduction factors. It is desired to zoom from 1 to 100% in 100 steps, M should be 100. The reduction factor is K/M. In the linear zoom application, K changes each field or each two or more fields. In PIP applications, the very common reduction factors 1/2, 1/4, 1/3 and 1/8 can be implemented using this circuit by choosing M = 96 and K = 48, 24, 32 and 12, respectively. Suppose the circuit shown in the drawing is used for a horizontal reduction. In the control path C, at the start of a line (indicated by the signal startlin), register REG A is reset to zero. For K>0, the enable signal en at the output of the comparator CP will then be 1 as K exceeds the output signal Csum of the register REG A. At each following clock cycle, K is added to Csum by a modulo M adder ADl, and the modulo M value is stored in register REG A. If Csum is smaller than K, the enable signal en becomes 1 and otherwise it becomes 0. The result is a regular sequence of l's and 0's at the enable output en. This is illustrated in the following tables. Compression ratio is 1/4, so that K/M = 24/96 As a result of the enable signal en having a 1 following three 0's, each time four input pixels are combined into one output pixel, so as to provide the compression ratio of 1/4. As a result, alternatingly two input pixels are combined into one output pixel (enable signal en having a 1 following one 0) and an input pixel is just passed (enable signal en having a 1 following no 0's), so as to provide the compression ratio of 2/3. A counter CNT counts the number of zero's, and applies the result increased by one (so 4 in the first example and alternatingly 2 and 1 in the second example) as a division control signal DC to a controllable divider DIN in the data path D of the circuit. In the data path D of the circuit, data samples DS representing pixels of a line arrive at the data input each clock cycle. The enable signal en is used to reset register REG B at zero, to enable register REG C, and to indicate a valid sample at the output (signal out-val at the output of the delay DL). Each clock cycle, if the enable signal en is 0, the adder AD2 adds the value of the new input data sample DS data to the output signal Dsum of the register REG B, and the sum is stored in the register REG B. If enable is 1, the sum is divided by the controllable divider DIV and stored into the register REG C. The circuit can be used for vertical reduction as well. Then the register REG B is a line memory, and the register REG A is enabled once per line. The display apparatus of Fig. 2 has a first or main channel input CHI and a second of PIP channel input CH2. The first channel input CHI is coupled to an input of a first horizontal reduction circuit HR1 of the type shown in Fig. 1. The second channel input CH2 is coupled to an input of a second horizontal reduction circuit HR2 which is also of the type shown in Fig. 1. An output of the second horizontal reduction circuit HR2 is coupled to an input of a vertical reduction circuit VR which is of the type shown in Fig. 1 with the above- mentioned modifications. In a double window display mode, a switch SW1 alternatingly couples an input of an output processor OP to an output of the first horizontal reduction circuit HR1 or an output of the vertical reduction circuit NR. In a PIP mode, the switch SW1 couples the input of an output processor OP to the output of the vertical reduction circuit VR. A switch SW2 couples an input of a display driver DD to the first or main channel input CHI or an output of the output processor OP. In a single display mode, the switch SW2 couples the input of the display driver DD to the first or main channel input CHI. In a PIP mode, the switch SW2 alternates between its two positions. In a double window mode, the switch SW2 couples the input of the display driver DD to the output of the output processor OP. An output of the display driver DD is coupled to a display DP. It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of other elements or steps than those listed in a claim. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the device claim enumerating several means, several of these means can be embodied by one and the same item of hardware.

Claims: CLAIMS: 1. A video signal compression method (C, D), comprising: adding (ADl) compression ratio control signals (K) and a previous sum (Csum) to generate a new sum; logically generating (CP, CNT) compression control signals (DC, en) in dependence upon said previous sum (Csum) and said compression ratio control signals (K); and compressing (D) video signals in dependence upon said compression control signals (DC, en) to generate compressed video signals. 2. A video signal compression device (C, D), comprising: adding means (ADl) coupled to receive compression ratio control signals (K) and a previous sum (Csum) for generating a new sum; logic means (CP, CNT) coupled to receive said previous sum (Csum) and said compression ratio control signals (K) for generating compression control signals (DC, en); and means (D) for compressing video signal in dependence upon said compression control signals (DC, en) to generate compressed video signals. 3. A device as claimed in claim 2, wherein said logic means (CP, CNT) comprise: comparing means (CP) for determining whether said compression ratio control signals (K) exceed said previous sum (Csum); and means (CNT) for counting a number of consecutive times that said compression ratio control signals (K) exceed said previous sum (Csum) to provide a division control signal (DC) in dependence upon said number. 4. A device as claimed in claim 2, wherein said compression means (D) comprise: means (AD2, REG B) for accumulating input data samples (DS) in dependence upon said compression control signals (DC, en) to obtain an accumulated signal; and controllable divider means (DP/) for dividing said accumulated signals in dependence upon said compression control signals (DC, en). 5. A display apparatus, comprising: at least one video signal compression device (HR1, HR2, VR) as claimed in claim 2 for generating compressed video signals; and a display device (DP) for displaying compressed video signals.

Inventors: VEERHOEK JACOB J, ZWARTENKOT HENDRIK T J, VEERHOEK, JACOB, J., ZWARTENKOT, HENDRIK, T., J.
Applicants: KONINKL PHILIPS ELECTRONICS NV, KONINKLIJKE PHILIPS ELECTRONICS N.V.
Application year: 1999
Main classification: H04N5
IPC codes: G06T9, H04N5