METHOD AND APPARATUS FOR SECURE TRANSMISSION OF VIDEO SIGNALS

Abstract: Video signals are sampled at 4Fsc locked onto sub-carrier phase and frequency. The active lines of each field are divided into 6 blocks of 47 lines and the active portions of those lines scrambled on a block by block basis by line shuffling. The shuffling algorithm is generated by a line shuffling permutator driven by a PRBS generator (controls 36, 38). Active line samples for one block are written in unscrambled form into a first memory block (32) and samples from the previous block are read out in scrambled form from a second memory block (34) for transmission. The complementary process takes place in the decoder.

Description: OF VIDEO SIGNALS - 1 FIELD OF THE INVENTION This invention relates to the secure transmission of video signals. The invention is particularly concerned with the secure transmission of television signals from terrestrial transmitters. BACKGROUND OF THE INVENTION In recent years the advent of Pay-TV systems has generated a lot of interest in video scrambling. To operate a pay-TV system successfully, the video signal transmitted must be scrambled to a degree sufficient to render it unwatchable by a viewer not equipped with a suitable decoder. There are a number of scrambled services in operation at present, for example that operated by B Sky B Limited which broadcasts from the Astra satellite. However, all existing services are either DBS or cable services. The British Broadcasting Corporation has launched a subscription service to be broadcast at night time. The service uses existing terrestrial transmitters. GB 1503051 describes the scrambling method used by the B Sky B service. The system, known as line-cut and rotate (LCR) scrambles individual video lines by cutting the line at a point determined by a pseudo-random binary sequence generator (PRBS) and rotating the two line halves so that the second half of the line is transmitted first. To decode the signal a subscriber must have a suitable decoder supplied with the cut point sequence. In practice the sequence is regenerated in the decoder using keys stored in a smart card which subscribers pay a fee to receive. This scrambling system works well for satellite and cable services, and although used in terrestrial systems LCR may be found to be unsatisfactory under some conditions such as severe multipath propagation, line tilt etc. An alternative to LCR is line shuffling (LS) in which the video signal is scrambled by shuffling the line order whilst maintaining the integrity of individual lines. Examples of line shuffling systems are disclosed in EP-A-356200 of Screen . Electronics Limited and GB-A-2086181 of Telease Limited. SUMMARY OF INVENTION Although the applicants have appreciated that a system based on line shuffling is inherently more rugged than one based on line cut and rotate, neither of the LS systems referred to show hows to provide a sufficient degree of ruggedness for use with terrestrial transmitters and receivers. An aim of the present invention is to provide an encoding and decoding system based on a line shuffling system which is sufficiently secure and rugged for use with terrestrial broadcasts. The invention in its various aspects is defined in the independent claims to which reference should be made. In a preferred embodiment of the invention the active lines of each field are divided into an integral number of blocks and the signal scrambled by shuffling the line order within each block. Preferably, the number of lines in each block is the same. In one preferred embodiment six 47 line blocks scramble 282 lines of a 3122j a line PAL field. A PAL field has 287^ active lines. Of the remaining 5 lines, four carry data and the remaining l ' Jj are blanked. The term active line used throughout the description and claims means lines which carry picture information as opposed to lines which comprise the vertical blanking interval. The term active picture portion refers to those parts of active lines which carry picture information and excludes, for example, the line blanking interval. The preferred scrambling structure has a number of advantages. As the blocks do not straddle the field interval the impact of field-interval distortion is minimised. Also, the block structure is locked onto the picture reducing flicker on the de-scrambled picture. This also means that the scrambled pictures have less flicker and so are less likely to precipitate a fit in individuals who suffer from photosensitive epilepsy. As lines are scrambled within their blocks the range of displacement of any line is one block - 47 lines in the preferred embodiment. This has the advantage of minimising the effects of transmission impairments on the descrambled signal. The selection of 47 lines represents a block structure which is a good compromise between security, opacity and transparancy (immunity to transmission impairments). Other chosen structures may have reduced security and opacity by requring some lines to be broadcast in their correct locations, or reduced transparency needing more lines blanked. In the latter case black borders would have to be placed at the top and botton of the picture. Use of constant block size makes the system easy to implement and the overall scrambling format produces a good opacity rendering the scrambled picture unwatchable. According to a further aspect of the invention a memory management system is provided which stores line information from blocks to be scrambled in clear, unscrambled, format. This has the advantage of making synchronisation at the decoder and the encoder more easy and may improve security. Preferably, the memory structure comprises a pair of memory units, each of which can store one block of lines. At both the encoder and decoder block information is read from one memory unit whilst the next block is being written to the other memory. At the encoder, the memory read addressing is coupled to the output of a PRBS and a line permutation generator and at the decoder the memory write addressing is controlled in the same manner. In a preferred embodiment only the active video line samples are shuffled. That is, the active line samples of the active picture area. In. a preferred embodiment of the PAL signal example sampling at 4F«. C only 955 samples are shuffled. Preferably, these are samples 72 to 1026 inclusive but the cut points may vary in different embodiments between samples 61 and 75 and samples 1025 to 1039. The number of samples is not rigid but is preferably no more than 1024 to help memory management. Shuffling the active samples only means that the colour burst is left unscrambled. This has a number of advantages. Firstly, the transmitted signal comprises a completely standard PAL signal as a result of which digital equipment in the transmission chain is not likely to be disturbed which might be the case if the bursts were scrambled. Secondly, security is improved as the line sequence cannot be deduced from measuring burst phase on successive lines. A further advantage is that it is easier to implement a burst locked clock required for sampling according to the first aspect of the invention if the burst is unscrambled. Embodiments of the invention in its various aspects will now be described, by way of example only, and with reference to the accompanying drawings, in. which: BRIEF DESCRIPTION OF DRAWINGS Figure 1 shows a first block structure for a line shuffling system; Figure 2 shows an alternative block structure of an input signal, transmitted signal and output signal; Figure 3 is a timing diagram for a signal scrambled according to a system embodying the invention; Figure 4 illustrates an experimental coder embodying aspects of the invention; Figure 5 illustrates, in block form, the digital portion of a production decoder; Figure 6 shows in block form, the back porch reinsertion circuit of the decoder of Figure 5; Figure 7 shows the write address circuitry for the memory of a 56/59 line block decoder. Figure 8 shows the read address circuitry for the memory of system using a 56/59 block structure; Figure 9 illustrates the permutation steps through the transmission channel; Figure 10 shows the coder blanking delay in more detail; Figure 11 is a table showing how the delay of Figure 10 operates on the coder; Figure 12 shows how extra samples are inserted into two lines per picture; Figure 13 is a block diagram of the phase lock loop of Figure 5; Figure 14a) shows a circuit diagram of a permutation generator and pseudo random binary sequence generator embodying one aspect of the invention; Figure 14b) shows a circuit diagram of an M-box of the generator of Figure 14a); Figure 14c) shows a circuit diagram of an E-box of the generator of Figure 14a); and Figure 15 shows an alternative embodiment of the permutation generator. DESCRIPTION OF BEST MODE The system to be described is suitable for scrambling PAL video signals. The principles are equally applicable to other systems such as NTSC, MAC and SECAM. The invention should not be construed as limited to any one video standard. Figures 1 and 2 show two examples of line shuffling structures which embody one aspect of the invention. The prior art line shuffling systems either shuffle all the lines of a field in a single block or they divide the frames into a number of blocks of convenient size, for example, 32 lines. It has been found that neither approach is satisfactory and that the signal should be treated on a field by field basis such that each field comprises an integral number of blocks both in the clear and in the scrambled signal. A structure which involves blocks spanning or straddling the field blanking interval is more prone to field rate disturbances. Mixing lines from different fields in each block exaggerates any field interval distortion and can lead to differences between adjacent lines. The resulting line differences of the scrambled signal are too rapid to be corrected by receiver AGC. These line to line variations yield streaky noise on the descrambled picture. Furthermore, as the block runs through the picture, distortion of the average picture level within a block, for example such as might arise through multipath propagation or transmitter impairments, can cause flicker on the descrambled picture. The 625/50 PAL system is a 2:1 interlace signal in which each field comprises 312 lines. Of these lines, 287% are active picture lines and the remainder are the vertical blanking interval. The line shuffling system proposed scrambles only the active picture lines. In figure 1 the active picture is broken down into 5 blocks, the first of which is 59 lines long and the remaining four 56 lines. Picture information from the remaining 4h lines per field is discarded. As it is more simple to process blocks which are all of equal size, the alternative shown in figure 2 comprises six blocks of 47 lines. As such a structure only contains 282 lines the 1 remaining lines are discarded. These structures also have the advantage that the active lines of the scrambled signal are advanced relative to the blanking intervals which avoids the need to store the field-blanking intervals in the decoder. The structure adopted in figure 2 requires an overall delay of at least 125 lines between the input and output signals. The first field commences with an unscrambled blanking interval of 31 lines followed by six scrambled blocks of 47 lines. The transmitted signal comprises scrambled block 0 transmitted 78 lines after the beginning of the input signal (VBI = 31 lines + Block 0 = 47 lines). This block is followed by the VBI and then scrambled blocks 1 to 5 and scrambled block 0 of the next field advanced with respect to the blanking interval. The output is again VBI followed by blocks 0-5 but delayed with respect to the input signal by two blocks and the VBI, a total of 125 lines. For the block structure of figure 1 the corresponding delay is 148 lines. The block advance is not inherent in the block structures adopted, but it is desirable to avoid having to store the line blanking in the decoder. Where 4F βc sampling is used this is especially important as it reduces the number of samples to be stored to less than 1024, so helping memory management and cost. A further advantage of the block structure described is that the range of displacement of any line from its correct position is only one block. This mimimises the impact of transmission impairments on the descrambled picture as impairments tend to increase with the amount of displacement. The PAL signal is supplied to the encoder in analog form and is digitised prior to scrambling. Prior line shuffling systems have used sampling rates of twice colour subcarrier frequency 2Fee or 3F..C or locked to the line. The present system adopts a 4F-.<= sampling structure, sampling at 17,734475 MHz and locked to both the frequency and phase of the PAL colour subcarrier. As an alternative, any integral multiple n.4F_-c of 4F βc could be used, for example 8F=<=. However, processing speeds and memory costs may prohibit 8Fsc and greater values of n at present. The use of 4F«<= sampling provides a number of advantages which make its adoption attractive. It results in a convenient sampling structure, which gives an almost whole number (1135) of samples per picture line, which can be locked to a particular phase of the colour sub-carrier. The use of a higher sampling frequency at 4F β =, as opposed to 2F..__ or 3F= C , means that anti-aliasing filters for the analogue-to-digital converters. (ADCs) and the digital-to-analogue converters (DACs) will be less critical, than would be the case for a lower sampling frequency. From the point of view of security, the use of 4F«.c_ sampling has the advantage that movement of lines within the scrambling block leaves no additional clues from the sub-carrier phase as to how far a particular line has been moved. There are, of course, some disadvantages to using 4F BC sampling as opposed to a lower multiple of F_. c , namely that digital circuitry must be capable of operating at a higher speed, and that more video memory capacity is required. However, the convenience of using 4F= C sampling is such that the advantages out-weigh any disadvantages. The use of chrominance sub-carrier phase and frequency locked sampling has the advantage that there is less clock jitter than line-locked sampling and hence less chrominance jitter on the descrambled signal. In fact, at 4F»<= the number of samples per line is 1135.0064. If all lines were regarded as containing 1135 samples there would be 0.0064 x 625 = 4 samples per frame which did not belong to any line. This can be avoided by including two extra samples on one line per field, that line having 1137 samples. There will necessarily be a line by line shift between the real video timing, as expressed by the signal pulse and the pixel counter in view of the 0.0064 pixel remainder. At F_.= = 4.43361875 MHz this shift is 0.0064 x I = 0.36 nS per line. For a block of 47 lines this delay is 17 nS and for a block of 59 lines 21.nS. In the 59/56 block example the blocks are advanced by this amount relative to the blanking intervals. This shift can be automatically compensated for by the descrambling process. As mentioned previously, only the active picture lines are scrambled. However, of these lines, only the samples which comprise the active video line are scrambled. These are shown in Figure 3. Thus samples 1 to 71 are unscrambled, samples 72 to 1026 are scrambled (955 samples) and samples 1027 to 1135 are unscrambled. Prior to scrambling, the samples are digitised. The advantage of this structure is that the colour burst of each line is not scrambled so that the transmitted signal is a completely standard mathematical PAL signal. There is no danger of the digital equipment in the transmission chain being disturbed as it might be if presented with a scrambled sequence of colour bursts. Moreover, the security of the system is increased because the phase of the colour bursts on successive lines will give no clues to line re-ordering. The use of unscrambled colour bursts makes the use of phase locked sampling more easy to implement as the clock can be locked to the colour burst. The cut points can vary with different embodiments. The points may be chosen to be between samples 61 to 75 and samples 1025 to 1039. Sampling points are at 45° points of the reference subcarrier. That is, at the peaks and zero crossings of an ideal colour burst. This minimises the coding range required for each sample. In order that the decoder can descramble the signal Videocrypt data, which carries signal information and decoding instructions must be transmitted with the signal. This may be done by assigning 4 lines of each field as data carriers. The data can be carried in the active picture which increases compatibility with existing transmission standards and equipment. The decoder will blank the data lines prior to display. Thus, for the 47 line block, the video signal.structure is as follows: line no function 623 2nd half- 23 2nd half) vertical blanking interval 311-335 ) 23 2nd half, 310, 622, ) 623 1st half ) blanked by encoder 24-27, 336-339 Videocrypt data 28-209, 340-621 carries active line parts scrambled in 47 line blocks. Scrambling of lines within a block is effected by permuting the order of transmission of the lines within each block. The control word for the permutation generator changes from block to block according to the output of a pseudo-random binary sequence generator PRBS. The PRBS is preferably initialised once every TV picture according to a 20 bit seed value. Thus 12 values are generated by the PRBS each picture, one for each block. Because in the PAL system colour information is transmitted in phase relation between the burst and the active video subcarrier a very stable phase locked loop PLL is required. Active video lines are replaced by shuffled lines and chrominance noise will be present if there is any significant error. Permissible errors in timing are less than 1.5 nS which corresponds to a error of about 2 ° . The required accuracy is helped by measuring phase error only during those lines with a colour burst (lines 7 to 309 and 320 to 621). The phase lock loop will be described in detail later in the description. Referring now to Figure 4, the operation of the codec may be best understood by consideration of an experimental coder which does use a PRBS and permutation generator as store controller, producing direct and permutated address sequences as required. The architecture of the coder and decoder is necessarily almost identical, the major difference being that the line and field blanking intervals are delayed in the coder but not in the decoder and although the following description is directed to the coder the decoder operates in the same manner. To be compatible with conventional terrestrial transmitting standards the scrambled picture is transmitted as an analog signal. The received scrambled signal is first converted into digital format by analog-to-digital convertor 20. The ADC is regulated by a clock pulse generator CPG 22 to sample the received signal at 4F==. The ADC and DAC in the decoder uses 8 bit video samples. The clock pulse generator is frequency and phase locked to the colour burst signal sampling at 45° points as described previously. A suitable clock pulse generator is a voltage controlled crystal oscillator VCXO producing on 8F βc signal together with a divide-bγ-two circuit to produce an output signal at 4F βc with a 1:1 mark-space ratio. The ADC may be based on a TRW TDC 1007 ADC which can operate at frequencies up to 25 MHz. The coder ADC is a 10 bit ADC which is the standard for professional equipment. Stabilisation of the frequency and phase of the master clock signal relative to the colour burst of the sub-carrier is performed internally in the c.p.g. 22. A sync, separator 24 produces the necessary timing signals associated with the video wave form such as mixed sync, line pulses and identifies odd and even blocks. The output of the ADC is input in parallel to a blanking delay unit 26 which delays the blanking interval and to data inserter 28 which also receives the delayed output from the blanking delay 26. The data inserter 28 has an output directly to output Digital to Analog Convertor DAC 30 and also to 47 line stores A and B 32, 34. The stores are controlled by respective store controls 36, 38 which are controlled by clock and sync, signals provided by the sync, generator. The store controls control the reading and writing of data from and to the respective memory store and are provided with the scrambling sequence. The store controls comprise a PRBS generator and a permutation generator. The blanking delay element 26 of the coder is illustrated in greater detail in Figure 10. The delay performs two functions: firstly, it provides a 125 line delay for the samples corresponding to the vertical and horizontal blanking; secondly it provides a variable delay for the samples comprising the active portions of the active lines. This latter feature enables the shuffling to be performed with only two blocks of memory. Figure 10 shows how a switchable delay 500 of 0, 1, 31 and 125 lines delay time is used for the 47 line block structure. The blanking delay 500 takes in the video from the ADC and passes it on directly or delays it by approximately 1, 31 or 125 lines; the exact delays required are 1135, 35187 or 141,877 samples. The delay is selected by two control lines dl and dO according to the following: dl dO dela An additional fixed delay for pipelining can be added to all the outputs without problem. The delay has to change on a sample by sample basis. Since all the delay values are odd, the delay could be achieved by demultiplexing by two into two 128k x 8 static RAM devices. Thus each device would only be required to read or write in a clock period, with a corresponding relaxation of timing. If the samples are numbered 0 to 1134 on each line (except lines 312 and 624, which are numbered 0 to 1136), then samples containing the sync and burst waveforms, 1117 to 171, are always taken from the 125 line delay address. This delay is also used during the VBIs (lines 622 to 27 and lines 310 to 339) for samples 172 to 1116. The active samples 172 to 1116 of the lines from delay, those of Blocks 6 and 7 (lines 340 to 386 and 387 to 433) are taken with a lliπe delay, whilst all the other blocks are taken with a 31 line delay. Figure 11 shows how the blanking delay operates in the coder to ensure that the VBI period is .the correct number of lines, 30 or 31. Figure 12 shows how the 4F_.= samples are arranged with respect to each other around lines 624 and 312 which are the long 1137 sample lines. The scrambler coder operates by allowing incoming line and field blanking signals to pass straight through to the DAC to the output. The remaining active portions of the active lines (955 samples) are stored in the stores 32, 34. The first block, block 0 of Figure 1(b) is stored in store 32 and the next block, block 1 is stored in block 34. It is important to note that the samples are stored in the stores in clear; that is in unscrambled form. As the lines of block 1 are being stored in store 34, the lines of block 0 are read out from store 32 under the control of control 36 in scrambled form. Thus, the read addressing is scrambled but the write addressing is in clear. When block 1 has been written into store 34 block 0 will have been read from store 32 and block 2 can be written, again in clear, to store 32 while block 1 is read from store 34. The output of the two stores is fed into DAC 30. The critical timing described previously is such that the scrambled active line portions are re-inserted into the unscrambled blanking intervals with a minimum degree of error. The descrambler operates in a complementary fashion. During each picture, the active lines of incoming scrambled video are written to either the "A" or "B" store in descrambled order using the same sequence of addresses as in the scrambler. As in the coder, the line order is provided by a PRBS and permutation generator which comprise Store Controls 36, 38 to produce the memory addressing and control signals. This effectively descrambles the incoming video signal. At the same time, samples written to the other store during the previous block are read out to the DAC to produce a descrambled output signal. Once again the two RAM stores swap between the writing and reading functions on alternate blocks. It is important to note that at the coder the scrambled active line output signals are delayed at the stores relative to their own line syncs and colour bursts. Similarly, in the decoder the output descrambled signal is delayed relative to the syncs and burst of the received scrambled signal in the stores. Synchronisation is achieved by delaying the blanking intervals appropriately in the coder. The stores used in the encoder and decoder may conveniently be 10 and 8 bit dynamic RAMs respectively. SRAMs or VRAMs may also be used. The DAC may be a 10 bit (encoder) or 8 bit (decoder) device for example a TRW TDC 1016 J which can operate at speeds of up to 20 MHz. Referring now to Figure 5, the digital portion of a production decoder is illustrated. The corresponding encoder is substantially identical. An incoming scrambled video signal is first digitised in an ADC (not shown) and then fed to the phase lock loop 100, the Data retriever 110 and a multiplex and delay line 120. The data retriever 110 retrieves the Videocrypt data transmitted on lines 24-27 and 336-339. The mux and delay line is required to support the memory 160 which is a VRAM. The retrieved data is fed to the system CPU 130 which also interfaces with control logic 140 and PRBS 150. The control logic manages the timing of all elements of the system, with the exception of the memory 160 and delay line 120. The control logic is supplied with the system clock at and horizontal and vertical sync, signals HSY and VSY. The memory 160 comprises two 47 line blocks which operate in the manner described in the previous example. Memory management 180 controls the read and write addressing and is described in greater detail with reference to Figures 7 and 8. The memory management is controlled by the permutation generator 190, itself under the control of PRBS 150 the PRBS and permutation generator are shown in greater detail in Figures 14a) - c) and 15. The construction of the permutation generator and the PRBS may be of any desired form and is well documented in the art. The memory again stores the active line data in clear and the output is multiplexed back onto the unscrambled portions of the signal. Prior to D-to-A conversion and output the back porch of the signal is re-inserted at 200. The black level reinsertion circuit is shown in more detail in Figure 6. The back porch reinsertion is necessary in the decoder to ensure that clamps in circuitry downstream have a clean backporch for clamping. If this is not done in a line shuffling system, transmission impairments such as multipath can cause the clamping process to introduce streaky noise. The colour burst is passed on to the PAL decoder in the receiver without modification so that automatic colour correction circuits, which measure the amplitude of the burst, operate correctly and is easier than generating a new burst. In Figure 6 back porch reinsertion is performed using digital filtering techniques. The input video signal is fed through a chrominance band pass filter 400, to the output of which is added the prescribed black level value of 64 in adder 410. This signal is selected during the back porch by a control signal from the sync, separator which operates on multiplexer 420. The multiplexer has as its other input the digital video input delayed by compensating delay line 430 by the signal path delay through the filter 400 and adder 410. The delayed video is selected in the multiplexer at all times except the back-porch interval. Figures 4 and 5 have been described with reference to a 47 line block size. Suitable modification would be neccessary for the 56/59 line example referred to previously or any other block size and will be clear to one skilled in the art. Figure 7 shows the write address circuitry for the decoder required to write a scrambled signal in clear in the memory. The circuit shown is suitable for a 56/59 line block size. Figure 8 shows the read address circuitry for the decoder which reads from the memory to provide the output to a MUX 120 in Figure 5. In this example the circuitry is suitable for a 56/59 line block structure to illustrate the additional circuitry required to cope with blocks of different sizes. Referring to Figure 7 the 20 bit control word CW vis fed from the CPU to the PRBS 150 which controls the output of the line permutation generator 190. The generator 190 provides a six bit output to the address translator 210. As unequal block sizes are used 3 blocks overlap in the decoder as well as the encoder. The address translator moves the overlapping parts to an otherwise unused area of RAM. A block counter 220 steps from 0 to 4 and produces a shift input to the address translator to ensure that address are provided for the alternate block after each block of 47 lines. An odd/even counter 230 having an input from the block counter provides a 1 bit output to switch between memory blocks 32, 34 (Figure 4) which is necessary as there is an uneven number of blocks per field. The 56/59 block example may operate with the two blocks of memory being field stores, in which case the odd/even counter can be clocked from the field pulse. As block size changes counter 220, which steps from 0 to 4 must provide a signal to the generator 190 that the block size increases to 59 lines for the 4th block. Figure 8 shows how the odd/even counter 230 may be clocked in the 56/59 line example. A counter 340 steps between 0-55 and 0-58 depending on block size and provides an output to the address unit 310. The counter is cleared by a high output from OR gate 350 which has field pulse and end of block inputs. The end of block pulse is provided when the six inputs to either AND gate 360 or AND gate 370 go high, indicating that the count has reached 55 or 58 respectively. These outputs provide the input to OR gate 380 whose output is the 'end of block' pulse. The output of gate 380 is also used to clock the block counter 320, which, in this instance, steps between 0-4. The remainder of the circuitry operates as described with reference to Figure 7. The digital phase lock loop is shown in Figure 13. The ADC, clock generator and sync, separator are referred to by the same references as Figure 4. The digital output of ADC 20 is fed to a multiplier (controller generator) 600 which, receives as its other input a pulse train at «c derived from the F βc clock and a divide by four logic unit 610. The output from, the multiplier is passed to a 32 byte accumulator 620, a two line averager 630 a limiter 640, pulse width modulator 650 and loop filter 660 which supplies a control voltage to the voltage controlled crystal oscillator of the clock pulse generator 22. The accumulator 620 and 2 line averager 630 axe controlled by burst gate signals from the sync, separator 24. The accumulator 620 both adds and subtracts two succesive bytes, calculating 32 samples for each burst, corresponding to samples 11 to 42 in Figure 3. The samples are taken from the middle of the burst. The averager determines the phase error of the PLL summing the accumulator output over the previous 2 lines and retaining the information for one line. The accumulator 640 reduces the dynamic range of the signal so that quantisation to eight bits is sufficient. The pulse width modulator 650 produces a binary sequence whose average corresponds to the measured error. The PWM 650 may alternatively be a pulse density modulator, a rate multiplier or a DAC. The digital burst phase detector may be implemented in a number of different ways and the embodiment illustrated is just one example. The sync, separator may be analogue or digital or a combination of the two. The control logic 140 in Fig. 5 and the sync separator 24 in Fig. 4 may be based on sync signals generated by analog sync separation. It has to be ensured that resynchroniεation of the control logic occurs only when the system is out of tolerance with the incoming line pulses by more than a specified range of timing, as frequent resynchronising would disturb the decoded picture unnecessarily. The time difference between a respective line in two adjacent fields is monitored. If the pulse from the sync separator arrives one field later within duration of the synchronisation window the system is working satisfactorily and does not need to be re-synchronized. The time difference between two adjacent lines is not evaluated because of the non-integral number of samples per line. The size of the window can be reduced where Videocrypt data rate is high. A similar reduction of the time for which the window is open is also required, if two or more integrated circuits are used for scrambling in the encoder, to achieve a high time precision. In the decoder the window size is advantageously chosen according to the reception quality to have a minimum degree of interference caused by data reception quality (time precision requires a short window) and re-synchronization, i.e. image quality (requires long window). The synchronization window described can be switched off so that synchronization occurs every line. This can be used in an encoder where two Videocrypt chips with 8 bit video resolution are working in parallel to achieve a broader data bus, e.g. 10 bits for studio quality. In this case the horizontal reference for the second chip is generated by the master chip, whereby both chips work completely synchronously. Figures 9a) to 9c) to shows how the different permutation steps work. Figure 9a) shows how blocks are written into the encoder memory in clear. The first block is transmitted in clear but the second block undergoes a first permutation under control of the PRBS and permutation generator and is transmitted in scrambled form. However, due to the write address circuitry described with reference to Figure 7, the block is written in clear in the decoder memory. Similarly subsequent blocks undergo different permutations F2, P3 etc. but are written in clear into the decoder. Figure 9b shows that the reading from the decoder and the outgoing signal are identical but that block 0 (ALBERT) is output at time n, the time of input block 2 (MICHEL) illustrating the two block delay in the 47 line examples. The embodiment as described transmits pictures fully scrambled on every field. In some instances it is desirable to use partial scrambling only. For example the program provider may wish to interest non-subscribers by showing them sufficient low quality pictures for them to subscribe. The embodiment may be operated in one of two further modes to achieve this aim without disrupting the regular decoded picture when changing the scrambling mode. The first option is a 'clear delayed' mode in which the lines of each block are not scrambled but the picture is transmitted one block in advance. This has the effect that the bottom 47 lines of the picture appear at the top of the screen and the colour of the picture is false. Although very annoying to a regular subscriber, the viewer can discern sufficient detail to generate an interest in the programme being transmitted. The second mode is 'flash mode' in which alternate fields are scrambled and the intervening fields transmitted in clear delayed mode. The effect on the transmitted signal is to have the clear delayed picture with a superimposed scrambled picture. In view of the nature of scrambling process, it is not possible to change between fully clear and fully scrambled modes without losing one block of information. Transmitting in one of these two semi-scrambled modes enables the pictures to be shown in part to non-subscribers without disturbing the decoded picture. Referring now to Figures 14a) - c) and 15 the permutation generator 190 and pseudo-random binary sequence generator PRBS 150 are shown in more detail. The pseudo-random generator PRBS 150 has e.g. n = 20 binary outputs BITO ... BIT19. The number of possible states of the pseudo-random generator PRBS is thus 2 2 ° = 1048576. A control word CW from the CPU interface 130 is applied to the pseudo-random generator PRBS via an input PZG-E, and a predetermined state is assumed on each occasion. This state which defines each output of the PRBS is referred to as a keyword KW. Every 40mε a new control word different from the preceding and following control words is transmitted with the television signals and every 40ms a part of this control word is applied to the pseudo-random generator. The permutation generator 190 of Figure 14a) has a clear input, which is set to zero in an initialisation phase of the permutation generator and serves to define the circuit state of the circuit arrangement. The circuit arrangement 190 comprises a six-bit adder 192 with inputs A0 ... A5, whose values are added to the values on the inputs BO ... B5 five of which, B1-B5 are provided by the five output bits 0, 7, 17, 12, 3 of the pseudo-random generator 150. The sixth input, B0, of the -adder 5 is permanently at 5 volts and thus at the logical value 'I'. The adder 192 has six outputs SO — S5, which are connected to the data input of a clocked buffer register 194. The register 194 consists e.g. of two individual buffer register components which can buffer six bits. The Q outputs of the register 194 are connected to one input of six AND gates 196A ... 196F respectively, whose other inputs are each connected to the clear input. This clear input is at logical '1' in the normal operating state. The outputs of the AND gates are respectively connected to the inputs A0 A5 of the adder 192. Thus the values at the outputs of the adder 192 are fed back to the inputs. The intermediately buffered value in the register 194 is strobed in by a clock signal CLK on a clock input CK. The input CK of the register 194 is connected to a two input OR gate OR 198 to whose one input the clock signal CLK is applied and whose other input is connected to the output of an AND gate AND 202 which has three inputs. One of these inputs is connected to the CLEAR input of the circuit arrangement 190 the second to the ENABLE input EN " and the third to the output AK-A of the address comparator 204. The bits 2, 6, 15, 8, 4 and 13 at the output of the pseudo-random generator PRBS 150 and the Q outputs of the register 194 are applied to a first logic circuit 206 in which these signals can be combined in various ways. The first logic circuit 206 has six outputs, two of which are applied directly to a second logic circuit 208 and the remaining four via a four bit adder 210. Output bits 10, 19, 5 and 14 of the pseudo-random generator 150 are also applied to the four bit adder 210. The remaining output bits 1, 16, 11, 18 and 9 of the pseudo-random generator 150 are applied to the second logic circuit 208. The first and second logic circuits 206 and 208 include E-BOX circuits, M-BOX circuits and/or adders. An M-BOX circuit is shown in Figure 14b) and is essentially a reversing switch having the following truth table: A detailed circuit diagram of an E-BOX circuit is shown in Figure 14c). The E-BOX comprises an AND gate with two inputs and an Exclusive-OR gate, likewise with two inputs. The truth table for the E-BOX is as follows: Outputs EA1 EA2 0 0 0 0 0 1 0 1 1 0 1 1 1 1 1 0 The six PERMUTATION ADDRESS outputs of the second logic circuit form the six outputs of the permutation generator. At these outputs of the circuit arrangment 2 there can thus be generated 2 6 =64 different permutation addresses PAO ... PA63. A television field consists of e.g. a = 6 blocks, each with 47 lines Z0 ... Z46, i.e. 282 video lines as described previously. The sequence of the lines within each such block is permutated by the permutation generator. The address comparator 204, whose six inputs are connected to the PERMUTATION ADDRESS outputs of the circuit arrangement 190 now checks the allowability of a permutation address. In the present example the addresses PA47 — PA63 represents impermissible addresses, since a block only has 47 lines. If a generated permutation address is impermissible, the address comparator generates a control signal, which is applied to the AND gate AND 202 and causes the generation of a new address. Impermissible permutation addresses are thus automatically filtered out and not used for the switching of the sequence of television lines. A very large number of different permutations can be generated with the described permutation generator according to Figure 14. It can be shown that the permutation generator can generate 720896 different permutations according to the issuance of 1048576 control words from the PRBS 150. This means that 720896/log2 = 19.46 bits of the 20 bits of the pseudo-random generator PRBS are used effectively. The efficiency of the permutation generator thus amounts to 2 i9 - 46 /2 20 * 100% = 68.8%. Figure 15 shows a further, simplified embodiment of a permutation generator with a pseudo-random generator PRBS with n = 16 outputs, a six bit adder 192 as in Figure 14a) with its outputs fed back to its inputs, an XOR component 6 with six XOR gates and a further six bit adder 18 with six PERMUTATION ADDRESS outputs. Such a permutation generator, which has less than sixty implemented gate elements, is cost-effective, of small structure and nevertheless provides a very large number of different permutations. The pseudo-random generator PRBS 150 in Figures 14a) and Figure 15 is constructed as a feedback shift register or as a circuit which generates pseudo-random numbers in accordance with the Johnson theory. The generation of pseudo-random numbers with such a generator is also used as a solution to the so-called "unranking" problem in the generation of a plurality of permutations. ■ Various modifications to the embodiments described are possible and will occur to those skilled in the art. For example the block size may vary. The system has been described in terms of the PAL standard and is suitable for all the major PAL standards, i.e. system I,B,G,D and H. For system M PAL, used in Brazil, the number of active lines per field is only 243 and the number of shuffled lines per field may be 240. This may be arranged as six blocks of 40 lines, 4 blocks of 60 lines or 5 blocks of 48 lines. The number of pixels per line is only 909 and the subcarrier frequency Fsc = 3.57561149 MHz. For system N PAL, used in some South American countries, the system is very similar to the system I PAL embodiment described, except that the lower sub-carrier frequency, 3.58205625 MHz requires a lower sample rate of 917.0064 samples per line. For the NTSC standard such as is used in the United States of America and Japan, the number of lines per field and the block arrangement is the same as for system M PAL outlined above. In both cases the smallest block size is most desirable to minimise noise caused by field distortion and hum. The subcarrier frequency is higher, 3.579545 MHz and thus the sampling frequency and number of samples per line higher, 14.31818 MHz and 910 respectively. In both the system M and NTSC solutions outlined, 3 data lines are included in the active video, the three unshuffled lines. These lines carry Videocrypt data. One line of the vertical blanking interval is also required for data. Alternatively, a data compression algorithm could be used to compress the data onto three lines. The SECAM standard, used for example in France, is a 625 line system and uses the same block structure as the PAL example described. However, the phase locked loop requires modification. This may be achieved in two manners. Firstly, the PLL may be line locked, and secondly, one of the two colour difference sub-carriers only may be used and the system arranged as for the PAL example. In this case, the sub-carrier used could be the (R-Y) carrier, the higher frequency of the two which has a frequency of 4.406250 MHz giving 1128 pixels per line. Alternatively, the 4.250000 MHz sub-carrier could be used giving a sampling frequency of 17 MHz. The system may be adapted for use with other standards such as the MAC family and extended to high definitions standards. It may be convenient to increase the number of blocks to 12 x 47 lines for future HDTV broadcasts or to increase the block size to 94 lines. Such modifications all fall within the scope of the invention which is defined in the following claims.

Claims: CLAIMS 1. A memory system for a video signal encoder or decoder in which blocks of active video lines are shuffled to scramble the video signal, comprising first and second memory blocks, each memory block being of sufficient size to store a block of video lines, means for addressing the memory blocks to write video ■ lines for successive blocks alternately to the first and second blocks, the addressing means writing the video lines to the memory in unscrambled sequence in the encoder and scrambled sequence in the decoder, means for addressing the memory blocks to read video lines from the memory blocks in scrambled sequence in the encoder for transmission or uncrambled sequence from in the decoder for display, and control means for controlling the read and write address means to read video lines from one of the memory blocks and simultaneously to write video lines to the other memory block. 2. A memory system according to Claim 1, wherein the read addressing means for an encoder and the write address means for a decoder comprise a pseudo-random binary sequence generator and a line shuffling permutation generator for scrambling the active lines of the video signal. 3. A memory system according to Claim 2, comprising means for separating from a digitised video signal active parts of active picture lines of the video signal, wherein the write addressing means writes the separated active picture line parts to the first and second memory means. 4. A memory system according to Claim 3, wherein the line shuffling permutation generator comprises a first logic function operating on a first plurality of bits of a control word output by the pseudo -random binary sequence generator (PRBS), a second logic function operating on the output of the first logic function and a second plurality of bits of the control word output by the PRBS, and a third logic function operating on the output of the second logic function and a third plurality of bits of the control word from the PRBS to provide a permutation address. 5. A memory system according to Claim 4, wherein the first logic function comprises an adder means which adds the first plurality of bits of the control word to the output of the adder. 6. A memory system according to Claim 4, wherein one of the second and third logic functions includes an exclusive OR function. 7. A memory system according to Claim 4, wherein one of the second and third logic functions includes a further adder means for adding the respective second or third plurality of control word bits output from the first or second logic function. 8. A memory system according to Claim 4, wherein each of the second and third logic functions includes: a reversing switch for selectively reversing the position of two output bits in response to a control bit; and a further logic circuit comprising an AND gate receiving as one input an output from a previous logic function and as the other input a further control bit, and an exclusive OR gate receiving as one input an output from a previous logic function and as the other input the output from the AND gate, the further logic circuit having a pair of outputs provided by the output from the exclusive OR gate and one of the bits output from a previous logic function. 9. An adjustable delay for a video signal coder, the coder producing a scrambled output signal from a clear input signal by dividing the active picture lines of each field into blocks and shuffling the order of lines in each block, the coder having shuffling means including first and second memories, each memory storing a block of lines and arranged so that one of the memories reads a block of active lines while the other writes a scrambled block of lines to form the output signal, the adjustable delay being coupled to the first and second memories and controlled to apply a predetermined delay to blocks of video lines to be read into the first and second memories during active picture periods and to apply a delay to the coder output during the video blanking intervals. 10. An adjustable delay according to Claim 9, wherein the delay applied to the active video lines is different from that applied to the blanking intervals. 11. An adjustable delay according to Claim 9, wherein the delay applies different delays to the memories dependent upon the blocks of active video lines being read by the memories. 12. A video signal encoder for scrambling an analog input signal, comprising means for digitising the input signal, means for dividing the input signal into a number of block lines, and characterised by means for shuffling the active portions of the lines within each block to produce a scrambled signal, the beginning and end points of the active line portions of the picture lines being variable. 13. A video signal encoder according to Claim 12, wherein each picture line comprises 1135 samples and the respective cut points defining the beginning and end points of the active line portions are between samples 61 to 75 inclusive and samples 1025 and 1039 inclusive. 14. A video signal decoder for providing a clear video signal for display from a scrambled input, comprising means for digitising a received analog scrambled video signal, characterised by means for dividing the digitised signal into a number of blocks of lines and for shuffling the active portions of picture lines within each block according to a shuffling algorithm the same as that applied to scramble the signal, the beginning and end points of the active line portions of the picture lines being variable. 15. A video signal decoder according to claim 14, wherein each picture line comprises 1135 samples and the respective cut points defining the beginning and end points of the active line portions are between samples 61 and 75 inclusive and samples 1025 and 1039 inclusive. 16. A video signal transmission and reception system for transmitting video signals in scrambled form and displaying or recording received signals in clear form comprising: at a transmitter; a video signal encoder for scrambling an analog input signal, comprising means for digitising the input signal, means for dividing the input signal into a number of blocks of lines, and means for shuffling the active portions of the lines within each block; and means for transmitting the scrambled signal in analog scrambled form; and at a receiver; a video signal decoder for providing a clear video signal for display or recordanl comprising means for_receiving and demodulating the scrambled analog signal transmitted by the transmitter, means for digitising the received signal, means for dividing the digitised signal into a number of blocks of lines, equal in size to the blocks into which the signal is divided at the transmitter, and for shuffling the active protions of picture lines within , each block according to the shuffling algorithm applied to scramble the signal at the transmitter, and means for displaying or recording the signal, wherein the beginning and end points of the active line portions of picture line shuffled at the transmitter and receiver are variable.

Inventors: BOWER ANDREW JOHN, CLARKE CHRISTOPHER KEITH PERRY, COCHON ETIENNE, DORNER ALBERT, NACCACHE DAVID, POIVET MICHEL, ROBINSON ADRIAN PAUL, BOWER, ANDREW, JOHN, CLARKE, CHRISTOPHER, KEITH, PERRY, COCHON, ETIENNE, DORNER, ALBERT, NACCACHE, DAVID, POIVET, MICHEL, ROBINSON, ADRIAN, PAUL
Applicants: BRITISH BROADCASTING CORP, THOMSON CONSUMER ELECTRONICS, BRITISH BROADCASTING CORPORATION, THOMSON CONSUMER ELECTRONICS S.A.
Application year: 1992
Main classification: H04N7
IPC codes: H04N7