METHOD OF CODING A VIDEO SIGNAL FOR TRANSMISSION IN A RESTRICTED BANDWIDTH

Abstract: A video signal is coded for transmission in a restricted bandwidth by sub-dividing a frame of picture information into a set of constituent blocks, measuring the amount of picture activity in each block, sampling the information in each block at a rate related to the amount of picture activity in that block, and adding to the coded block a supplementary signal indicating the sampling rate used for the block. Thus a decision is made on a block-by-block basis as to whether the block is transmitted with full accuracy or whether it can be adequately reconstructed from the previous frames.

Description: Method of coding a video signal for transmission in a restricted bandwidth. BACKGROUND OF THE INVENTION This invention relates to the coding of video signals and more particularly to the coding of a video signal using adaptive sub-sampling to reduce the bandwidth/bit rate thereof. The advent of high-definition television (HDTV) signals has led to a considerable amount of research into ways of reducing the bandwidth of such a transmitted HDTV signal without compromising the picture quality thereof unacceptably. In theory, it is possible to realise such a reduction in transmitted bandwidth by optimising the sampling rate according to the varying amounts of picture information present in a picture frame. SUMMARY OF THE INVENTION According to the present invention there is provided a method of coding a video signal for transmission in a restricted bandwidth, the method comprising the steps of sub-dividing a frame (or field) of picture information of the video signal into a set of constituent blocks, measuring the amount of picture activity in each block, sampling the picture information in a block at a rate related to the amount of measured activity in that block and adding to each thus coded block a supplementary signal which is related to the sampling rate used in that block. Thus a decision is made on a block-by-block basis as to whether the block is transmitted to high accuracy or whether it can be adequately reconstructed from the previous frames. In the method according to the invention, each video component is formed into two parts. The first part consists of the component signal sub-sampled in some manner. The samples occurring at an irregular rate can be written into a buffer store and read out, for transmission, at a regular rate. The samples may be transmitted in an analogue or digital form. The second part consists of a pilot signal to indicate the status of the sub-sampling. BRIEF DESCRIPTION OF THE DRAWINGS Specific embodiments of the present invention will now be described by way of example with reference to the accompanying drawings in which: Figure 1 is a block, diagram of a coder for use in the method of the present invention; Figure 2 is a schematic diagram of a sub-sampler used in the coder of Figure 1; and Figure 3 is a diagram illustrating the principle of motion- compensated coding In accordance with the invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Referring to Figure 1, a picture is first sampled and split into blocks. For simplicity only the luminance component is shown. For the purposes of explanation the blocks have been limited to cover 4 samples by 4 picture lines, in practice there will be substantially more samples than this. The "activity" of each block is then measured by a method such as one of those described below. For a fixed proportion of the blocks in each frame, i.e, the most active in that frame, all of (or a high percentage of) the samples within these blocks are written into a buffer store before transmission. It Is of course equally the case that the present invention could be applied to a video signal on a field-bv-field basis instead of frame-by-frame. For the remaining blocks within each picture, only a small percentage (which may be zero) of the samples from each of these blocks are written into the buffer store before transmission. The sub-sampling may be accompanied by some pre-filtering of the source samples. For example, if only one sample per block is to be transmitted for each inactive block, then this sample may have a value which corresponds to the mean value of the sample values within that block. It is preferred to pre-filter the source samples before sub- sampling so as to prevent aliasing in subsampled areas of the picture, thereby improving the quality of the decoded picture. Analogue video signals are converted to digital signals at a high enough sampling rate to give a full-resolution picture by an analogue-to-digital converter 10. The digital video signal is then sub-sampled on a block-by-block basis by a sub-sampler 12 which also derives the appropriate pilot data signal 14 containing the sampling mode information. The samples from the sub-sampler emerge at an irregular rate. A buffer store 16 smooths the rate at which the samples are transmitted after which they are reconverted to analogue form by a digital-to-analogue converter 18. The exact proportion of the blocks that can be transmitted with a high sample rate is determined by the bandwidth of the transmission channel and the restrictions that this imposes on the average, or "smoothed", sample rate that may be transmitted over the channel. By transmitting this part of the signal in analogue form a lower transmission bandwidth can be used than would be necessary for digital signals. The second part of the signal, namely a one-bit-per-block (digital) pilot signal, describes whether the block has been transmitted with a high or low sample rate. The two parts of the signal may, most simply, be combined for transmission by time division multiplexing; transmitting the pilot data signal for a whole frame at the 'beginning of the frame interval, for example. The decoder which comprises a frame store then receives the pilot data signal and a sequence of sample values. Using the pilot data signals the decoder can assign the sample values to appropriate blocks within each frame and also to appropriate 1 positions within each block. Thus, there are two subsampling modes: "high accuracy", in which all or nearly all of the samples in the block are transmitted, and "low accuracy" in which only a very few samples (or even none at all) are transmitted. The choice of subsampling mode for each block has to be transmitted to the decoder as a digital data signal. Only one bit of digital data is required for each block. In order to construct sample values for all the sample sites within a frame the decoder must estimate, by extrapolation or interpolation, sample values for those sample sites contained within the blocks which have been transmitted at a low sample rate. Using the information transmitted this may be done in one of several ways. Choice of the optimum method will depend on application, complexity and/or quality requirements. The method of extrapolation or interpolation may be switched on a frame-by-frame basis as a function of picture content, preferably with appropriate signalling from the coder to the decoder. Any of the following methods may be used, at the decoder (and also at the coder if It is required to form a locally-decoded signal), to estimate the sample values for sample sites within inactive blocks which have been transmitted at a low sample rate: a) The current block of samples may be the repeat of the corresponding block of samples from the previous frame: i.e., I' (i,.i,k) = • I 1 (i,.i,k-l) where: I (i,j,k) refers to the sample value at coordinate position (i,j,k) where i,.i,k are Integers, i refers to the horizontal sample position along a line, refers to the vertical position within a frame (i.e., line number within a frame) and k refers to the frame number. I r (i,j,k) represents the decoded sample value (at coder or decoder) at the coordinate location (i,j,k). If this method of interpolation is used the coder transmits no samples for each Inactive block. b) The inactive block may be updated at a rate of one (or more) sample(s) per frame. In this case, the coder transmits one (or more) sample(s) per Inactive block per frame such that an inactive block would be completely refreshed after sixteen frames (or less) for 4 by 4 samples per block depending on the number of samples updated per frame. As mentioned, there are of course substantially more samples per block in a practical example. c) One sample per inactive block may be transmitted and this sample used to approximate the mean of the (input) sample values within the block. The sample values at sites within each inactive block can then be estimated by spatial interpolation using the mean values of the surrounding blocks, be they active or inactive. d) As in (c) above, the mean, 1^, of each inactive block may be transmitted but the decoder reconstructs each inactive block by adding to this received mean the "shape" of the block from the corresponding position in the previous frame. The "shape" of a block is a set of values corresponding to the difference between the individual sample values and the mean value of the block. i.e.,. I' (i,.i,k) = " ϊ k + [I'(i,.i,k-1) - I k _ 1 ] Thus the displayed samples for that block are updated in dependence upon the change in the mean sample value. The advantage of this method is that following a scene change a low-resolution version of the new scene will be available immediately and the detail will be built up over several frames. This corresponds closely with the way in which the eye's spatial frequency response changes followin a scene change. Methods (a) or (d) above can be used in conjunction with motion compensation. In this case it is required that at least one motion vector measurement is transmitted for each inactive block. This motion vector data can be transmitted along with the digital pilot data part of the signal. The decoder can then form estimates of the sample values within the inactive blocks in the current frame using information from the previous frame shifted according to the local I motion vector. For example method (a) becomes: I'(i,.i,k) = I' [i-d χ (i,j,k), .i-d y (i, ,k), k-1] where d χ (i, ,k)/d__ (i,i,k) represent the horizontal/vertical components of the motion between frames k-1 and k for information at location (i,j,k). One or more motion vectors per inactive block may be transmitted. In this case d„x (i,j,k) and d,y, (i,i,k) will be the same for all samples within the given block. The motion vector can be derived as described in a paper presented at the 128th SMPTE Technical Conference, October 24-29, 1986 New York, Preprint No. 128-49, "HDTV Bandwidth Reduction by Adaptive Subsampling and Motion Compensation DATV Techniques". In order to decide whether to transmit a block at high or at low accuracy, the "activity" of the block is measured. If the activity exceeds some threshold, the block, known as an "active" block, is transmitted at high accuracy. "Inactive" blocks are transmitted at low accuracy. The activity of a block can be defined in several ways. One technique, for example, is to define the activity as the maximum value (or alternatively the mean square value) of the inter-frame difference occurring within a block, using either the input or the reconstructed frame to define the previous frame. Use of the reconstructed frame is preferred. However, this requires that the coder also contains elements of a decoder in order to reconstruct a frame from information which has been (or will be) transmitted to the actual decoder. Alternatively, a measure of activity derived from the peak-to- peak variation inside a block, or the mean-square deviation from the mean within the block, could be used. The above activity measures can be advantageously modified to form an "accumulating activity measure" as follows: for a given block, the activity measure is accumulated from picture frame to picture frame. The accumulating sum is only reset to zero when a block Is transmitted at a high sample rate. The advantage of this cumulative modification over the more conventional measurement of activity is that it reduces the possibility of those areas or blocks of relative inactivity being ignored for excessive periods which could give rise to noticeable impairment of picture quality. The above activity measures can also be modified to Include the effect of motion compensation if this is also used for extrapolation/estimation of the sample values in the inactive blocks. The picture activity- of a block of samples within a frame (or field) may be measured in many ways, four examples of which are given below. The examples described below involve only the luminance component of the picture. However, when calculating how many blocks can be transmitted at high accuracy, it has been assumed that the colour difference transmitted sample rate is half that of the luminance in active blocks and equal to that of the luminance in inactive blocks. a) Spatial activity measure (As): block where I k is the mean of the samples within the given block and / I (i,j,k) represents the sum over all coordinate values i and j within a given block in a given frame k. Typically Ot- = 2. Active blocks are transmitted at high accuracy, whereas for each inactive block only one sample, corresponding to I j _, is transmitted. In the decoder, samples in inactive blocks are reconstructed by linear interpolation between the means of surrounding blocks. Alternatively, the maximum peak-to-peak variation or the peak variation from the mean within the block could be used. b) Temporal activity measure (Ak) In its simplest form, this technique is the same as conditional replenishment operated on a block-by-block basis. The activity measure for a block is an estimate of how the block has changed from the previous frame to the current frame. For example: Ak = _/_ |l (i,.i,k) - I (i,j,k-l)| block or A'k = (i,.i,k) - I' (i,j,k-l)| block Ak is the preferred activity measure. Here - can be greater than 2, and this may reflect the perceived picture activity more closely. Again, the maximum peak difference could be used rather than an averaged measure. As before, active blocks are transmitted at high accuracy, but inactive blocks are reconstructed using information from the previous frame. One way to do this is simply to repeat the block from the previous frame. c) Accumulating activity measure ([Ak] Q __) Any of the previous activity measures may be accumulated or integrated from frame to frame for a given block as shown in the following examples using the temporal activity measure, Ak. Assuming, say, that the block in question is transmitted at the high rate in frames (k-1) and (k+N) and at the lower rate for frames k to (k+N-1), then ^'^acc = A 'k ^'k+l^acc = A 'k + A k+1 CA 'k+N ] = A k + A k+1 + + A k+N-1 + A k+N ^k+ +l^ cc = A k+N+1 An alternative, more general, form for the accumulating activity measure Is as follows, again using the activity measure Ak by way of an example. where a, b and V * are constants. This last accumulating sum is again cleared when the block in question is transmitted at the high rate. In one example of a system embodying the invention it was possible to transmit an average proportion p - 0.20 of the blocks at high accuracy. The picture quality obtainable at this value of p is reasonable, if rather noisy. One way to Increase the value of p significantly is to transmit the active blocks at half the full sample rate, by subsampling the block in a field quincunx pattern. With this technique, nearly half the blocks can be transmitted at high accuracy and the subjective quality is good; however, the full range of spatial frequencies that ought to be carried is not available and impairments can be seen on some critical moving sequences. Another way to increase the proportion of transmitted samples Is to increase the block size to, say, 8 x 8. d) A block adaptive sub-sampling technique may be used in conjunction with motion compensation. In this case, the blocks which are not transmitted at the high sample rate are updated using lniormacion rrom the previous tra e, snitted by an amount corresponding to an estimate of the motion between frames; i.e., the best estimate, " * (i,j,k), of the current frame (that is available to the decoder) is given by (i,j,k) = I'd-d-- (i,j,k), j-dy (i,j,k), k-1) dx (i,j,k) and d v y (i,j,k) need not necessarily be measured to the nearest Integer number of pixel intervals provided that the appropriate spatial interpolation of the previous frame information is employed. The average motion for each 8 x 8 block can be measured by means of an exhaustive search, in which motion vectors extending to +7 pixels horizontally and +7 field-lines vertically are applied in turn to the block, and a minumum value of the resulting mean square difference with the previous decoded frame is sought. Motion vectors are calculated for all blocks and the contribution to the integrated activity measure from the current frame is taken to be the minumum mean square error found during the searching process. The integrated activity measure is modified slightly to approximate accumulation along the direction of motion. Each inactive block is reconstructed using the block in the previous frame, displaced according to the motion vector, as illustrated in Figure 3. Another way of generating the motion vectors is as described in the above-mentioned SMPTE paper No. 128-49. Suitable modifications of the temporal activity measure and the accumulating temporal activity measure could be made as follows: [MA 'k ] = ,<___. I 1 ( i.-LO - I ( i- x ( i,.1,k ) , j-dy ( i,.1,k ) , k-l ) j block or ' |T |'l U' ..1.I - . ■ oC - [MA' k ] - -^* • * . (-i,j,k)| block and [MA' k . acc = a(MA',_) + bfMA'^] ace where, again, the accumulating sum is cleared when a block is sent to full accuracy. can be applied, in particular where one motion vector has been used as an average estimate of the motion vector for all samples within a given block, by taking into account, in the accumulation, the fact that information from surrounding blocks has, because of motion, entered the current block between frames k-1 and k. An accumulating activity measure, [MA(i,j,k-l)]y , is first assigned to each sample site in the previous frame by sharing out the accumulating measure of a block between the samples of that block. e.g. [MA'(i,j,k-l)] Macc « i [MA^-Macc for each block in frame k-1, where N-, is the number of samples In a block. Then, for a given block In frame k + b ____ Ci_d x' -i "d? > k ~ 1 ] 1 MlaceI (block 'where a, b, and V typically have values of unity, d and d y are the horizontal and vertical components of the block motion vector (for frame k) respectively. Again, a given accumulating sum is cleared when the corresponding block is sent with a high sample rate. This version of the motion-compensated accumulating activity measure works well in particular for pictures where there is τ global' motion in the scene as, for example, with a camera pan. The example of a bandwidth reduction system described above is essentially a "two-pass" system. The activities of all the blocks within a frame are measured during the first "pass". Then, in the second pass a fixed proportion of the blocks within a frame can be selected for transmission at a high rate. This means that the number of samples transmitted per picture frame is constant. This simplifies the decoder at the expense of extra frame stores in the coder. A block diagram, giving an example of a hardware implementation of a block-adaptive sub-sampling coder using motion compensated, previous frame extrapolation, is shown in Fig.2. In this example, the motion vector is measured between the Input frame and the locally decoded frame. This tends to prevent a build-up of translational error. Alternatively, the motion could be measured across adjacent frames of the input picture sequence. The receiver circuitry can be similar to that used to produce the locally decoded frame. It is possible to have a "one-pass" system in which the proportion of blocks transmitted per picture frame is not constant but has an average value equal to that of the two-pass case. The occupancy of the sample transmission buffer would then be used to vary an activity threshold level. Blocks with an activity measure above this threshold would be transmitted with a high sample rate. In this case the buffer would need to be large enough to be able to smooth out short term variations in average sample rate produced by rapid changes in picture activity. In a practical bandwidth reduction system the number of bits per inactive block that can be allocated for describing the motion vector will be limited. One solution is to construct a limited set or "palette" of suitable motion vectors for each picture frame. Data describing this palette of vectors could be transmitted at the beginning of each frame, for example, along with the other (pilot) data signals. The pilot data signal describing the sub-sampling mode of each block could then be accompanied, for each inactive block, by a number describing the number of the most appropriate I motion vector within the palette.

Claims: CLAIMS 1. A method of coding a video signal for transmission in a restricted bandwidth, the method comprising the steps of: sub-dividing a frame of picture information of the video signal into a set of constituent blocks; measuring the amount of picture activity in each block; sampling the picture information in a block at a rate related to the amount of measured activity in that block; and adding to each thus coded block a supplementary signal which is related to the sampling rate used in that block. 2. A method as claimed in claim 1, wherein those blocks of a frame of picture information having a level of activity above a threshold are sampled at a higher resolution sampling rate than those having a level of activity below the threshold. 3. A method as claimed in claim 2, wherein the average sample rate of a frame Is controlled by adjusting the said threshold. 4. A method as claimed in claim 3, wherein the threshold level is adjusted according to the measured the activity of those blocks In a frame to be encoded. 5. A method as claimed in claim 4, wherein the threshold level is variable in inverse relationship to the activity in a block. 6. A method as claimed in claim 1, wherein the signals corresponding to each sampled block are fed into a buffer store for retrieval and transmission at a regular rate. 7. A method as claimed in claim 1, wherein the video signal is transmitted in analogue form. 8. A method as claimed in claim 1, including the step of pre- filtering the video signal prior to sampling. 9. A method as claimed in claim 1, wherein in blocks where a low sampling rate is used a sample is transmitted representing the mean sample value for that block. 10. A method as claimed in claim 1, wherein the measurement of picture activity in each block is made on a cummulatlve basis frame by frame taken from the last frame transmitted at a high sampling rate. 11. A method as claimed in claim 1, wherein the measurement of picture activity comprises the sum of a function of the difference between successive frames of the samples in a block. 12. A method as claimed in claim 11, wherein the said function is a power of greater than 2. ^» 13. A method as claimed in claim 1, wherein at least one motion vector measurement is transmitted for each inactive block. 14. A method as claimed in claim 13, wherein a set of motion vectors are determined for each frame and one of the set of motion vectors is transmitted for each block. 15. A method of decoding a video signal encoded according to the method of Claim 1, the method comprising: receiving the transmitted sampled video signal and associated supplementary signals; separating the supplementary signals; decoding the sampled video signal relating to each block by assuming a sampling rate in accordance with the corresponding supplementary signal; and storing the decoded samples. 16. A method as claimed In claim 15, wherein in blocks where a low sampling rate Is used a sample is received representing the mean value for that block, and the other decoded samples for that block are updated In dependence upon the change in the mean sample value. 17 * A method as claimed in claim 15, wherein at least one motion vector Is received, and estimates are formed of sample values written blocks transmitted at a low sampling rate using Information from a previous frame shifted in dependence upon the motion vector. 18. Video signal coding apparatus for coding a video signal for transmission In a restricted banbwidth, comprising: means for sub-dividing a frame of picture Information of the video signal into a set of constituent blocks; means for measuring the amount of picture activity In each block; means for sampling the picture information in a block at a rate related to the amount of measured activity In that block; anji means for adding to each thus-coded block a supplementary signal which is related to the sampling rate used in that block. 19. Video signal decoding apparatus for decoding a video signal encoded by the apparatus of claim 18, comprising: means for receiving transmitted sampled video signals and associated supplementary signals; means for separating the supplementary signals; means for decoding the sampled video signal relating to each block by assuming a sampling rate indicated by the corresponding supplementary signal; and a frame store for storing the decoded samples.

Inventors: KNEE MICHAEL JAMES, SANDBANK CHARLES PETER, WELLS NICHOLAS DOMINIC, KNEE, MICHAEL, JAMES, SANDBANK, CHARLES, PETER, WELLS, NICHOLAS, DOMINIC
Applicants: BRITISH BROADCASTING CORP, BRITISH BROADCASTING CORPORATION
Application year: 1986
Main classification: H04N7
IPC codes: H04N7