Abstract:
A digital image recording and/or reproducing apparatus using a plurality of compression methods may include, in a recording section, (a) data compression circuitry, including a plurality of compression circuits which have different compression methods, for changing a compression rate for input digital image data by changing a combination of the plurality of compression circuits compressing the digital input image data and (b) circuitry for recording (1) the digital image data compressed by the data compressing circuit and (2) data representing the compression rate of the digital image data compressed by the data compressing circuit. The apparatus may include a reproducing section having (a) a reproducing circuit for reproducing from the recording medium the digital image data compressed with the compression rate provided by the combination of different compression methods, (b) detecting circuitry for detecting the data representing the predetermined compression rate stored on the recording medium, and (c) reconstruction circuitry for reconstructing the digital image data reproduced by the reproducing circuitry according to the representing data detected by the detecting circuitry.

Description:
This application is a continuation of application Ser. No. 08/155,163 filed Nov. 19, 1993 abandoned, which is a continuation of application Ser. No. 07/863,545 filed Apr. 6, 1992 abandoned, which was a continuation of application Ser. No. 07/343,666, filed Apr. 27, 1989, all three now abandoned. 
    
    
     BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to digital image recording and/or reproducing apparatus, and more particularly to such apparatus which are capable of changing a time (or a compression rate) for (or at) which a digital signal is recorded on the same recording medium. 
     2. Related Background Art 
     In a conventional apparatus for recording a wideband video signal, a method of changing a track pitch to thereby change the time for which the video signal is recorded on the same recording medium is used as in a well-known video tape recorder (VTR). This method is intended to perform long-time recording by sacrificing the dynamic range of the S/N ratio of a signal to be recorded. In a VTR of this type, it is not difficult to set the track pitch at any value and it is relatively easy to set a desired recording time. Therefore, it is also easy technically to set various recording times. 
     With the advancement of the recent digital image signal processing techniques, a digital image recording apparatus (DVR) which digitizes a wideband analog signal such as a video signal, digitally modulates the resulting digital signal, records and reproduces the modulated signal has been also developed. In such a DVR, the S/N ratio of the reproduced signal does not depend on the quality of the reproduced data, but reproduction itself would become impossible if the S/N ratio of the reproduced signal decreases below a certain value. Therefore, in such a DVR, to change the track pitch and hence the recording time is senseless because images of the same quality are recorded and reproduced at any track pitch. Thus, it is desirable that in a DVR, a signal is recorded and reproduced with a track pitch determined such that digital data can be recovered sufficiently. It is not conceivable that the track pitch would be further increased or decreased to change the recording time in a DVR of this type. 
     It has been proposed to enable long-time recording by reducing a quantity of data to be recorded in a DVR of this type. Namely, it has been proposed to change the recording time by changing the number of tracks formed per unit time. 
     In order to change the quantity of data to be recorded, there are methods of changing the number of bits of each of pixels of a video signal, and methods of changing the sample frequency. 
     However, in such a DVR, a correct image cannot be obtained even if a quantity of data per unit time may be changed to various values unless reproduction corresponding to those changes in the quantity of data is made. Especially if images are recorded by changing the compression rates of the images picture by picture, it is very troublesome to perform such adjustment. 
     Conventionally, generally in a DVR, an area where a digital video signal is recorded (a video area) and an area where a digital audio signal is recorded (an audio area) are separately provided on a recording track and those signals are processed, recorded and reproduced by separate corresponding signal processing circuits. 
     However, in the conventional DVRs, audio data and video data must be processed by separate signal processing systems. In addition, since the audio area is small, all the audio data for one track may be nullified by a long time dropout. 
     SUMMARY OF THE INVENTION 
     It is therefore an object of the present invention to provide a digital image recording and/or reproducing apparatus which is capable of easily setting a desired compression rate in a predetermined range on the same recording medium. 
     In order to achieve such an object, a digital image recording apparatus as an embodiment of the present invention comprises means for variably compressing a quantity of digital image data, and means for adding data on the compression rate of the digital image data output by the compressing means to the digital image data and recording the resulting data. 
     According to the embodiment of the present invention, the digital image data is reproduced in accordance with the compressed and recorded digital image data and the data on the data compression rate added to the digital image data. 
     By such arrangement, optimal expansion corresponding to the compression rate by the data compression means is performed during reproduction and a high quality image is digitally reproduced. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a schematic of a DVR as one embodiment of the present invention; 
     FIG. 2 illustrates video data to be recorded; 
     FIG. 3 illustrates audio data to be recorded; 
     FIG. 4 illustrates the structure of a video sync block; 
     FIG. 5 illustrates the structure of an audio sync block; 
     FIG. 6A is a schematic of a digital processor  15  of FIG. 1; 
     FIG. 6B is a schematic of a digital processor  33  of FIG. 1; 
     FIG. 7 illustrates the order in which sync blocks are recorded; and 
     FIG. 8 illustrates one embodiment of a sync block changing circuit of FIG.  6 A. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     One embodiment of the present invention will now be described with reference to the drawings. FIG. 1 is a schematic of a DVR as one embodiment of the present invention. Image pickup means  1  such as a CCD or a MOS outputs an analog video signal in frames of two fields obtained by interlace scanning. The analog video signal comprises a luminance signal Y, and color difference signals I, Q input in parallel in conformity to an NTSC signal. 
     The video signal is sampled by a sample signal of a frequency equal to or more than twice the highest frequency of the video signal in an analog-to-digital (A/D) converter  2  and converted into a digital signal of about 8 bits. 
     More specifically, the luminance signal Y is sampled at a frequency of 4 f sc  where f sc  is a color sub-carrier frequency and I and Q are sampled at f sc . The output data is thinned out in such a manner that sample points do not align vertically between adjacent lines during interlace scan. Thus, the A/D converter  2  performs a so-called sample operation. The number of samples for Y at this time is (3.58 M÷15.75 K)×4/2, namely, 455 per horizontal scan interval (1 H). Actually, only the effective image is converted to data so as to be 372 samples per 1 H. The number of samples for each of I and Q is about {fraction (1/4+L )} of the number of samples per 1 H for Y, namely, 96. A block encoding circuit  3  divides the digital data output by the A/D converter  2  into groups each including (4×4) pixels (block) adjacent to the axis of ordinates on the screen, and reduces the number of transmitted bits per pixel by using the correlation of images in each group. If, for example, the data output by the A/D converter  2  has 8 bits allocated to every 16 pixels, transmitted data for one block is 128 (=8×16 pixels). If data on a pixel having the maximum value among all the pixels in each block is transmitted with 8 bits, data on a pixel having the minimum value is transmitted with 8 bits, and 3-bit data obtained by linearly quantizing the difference between the maximum and minimum values into 8 stages is transmitted, data to be transmitted will be composed of 64 (=8×2+3×16) bits, so that a quantity of data to be transmitted is reduced to {fraction (1/2+L )} without deteriorating the image quality significantly. 
     A frame thinning out circuit  4  outputs only the first field of one-frame image data of the output data from the block encoding circuit  3  and no second field data is output. Therefore, the output data from the frame thinning out circuit  4  is {fraction (1/4+L )} of the output data from the A/D converter  2 . 
     As described above, the DVR of the particular embodiment has three kinds of recording modes. A mode in which all the data output from the A/D converter  2  is recorded is called a standard mode, a mode in which the data output from the block encoding circuit  3  is recorded is called a two-fold mode, and a mode in which the data output from the frame thinning out circuit  4  is recorded is called a four-fold. The respective recording modes are designated by the user&#39;s manual operation of an operation part  5  at recording. In accordance with this operation, a system controller  6  connects a switch  7  to one of A, B and C terminals. 
     An ECC (Error Correction Code) adding circuit  12  adds an ECC to the image data output from the switch  7 . 
     Assume here that a video data block unit to which the ECC is added is a quantity of data corresponding to an image in one of 4 (vertical)×3 (horizontal) areas to which one screen (field) is divided as shown by the hatched portion in FIG.  2 . If the number of effective horizontal scan lines is 240, the quantity of data includes data on Ys at 60 (vertical)×124 (horizontal) (=372/3) sample points and data on I and Q each at 60 (vertical)×32 (horizontal) (=96/3) sample points. These data are disposed in a memory in the ECC adding circuit  12  as shown in an upper half of FIG.  2 . ECC codes C1 and C2 are added as shown in FIG. 2 to provide (192×64) data blocks where numerals in a lower half of FIG. 2 represent the number of bytes, and data at each sample point consists of 8 bits (one byte). 
     For example, a 4-channel (CH) audio signal is input from a microphone  10  into the A/D converter  20  where the audio signal is sampled at a frequency of 48 KHz and the results are delivered to a memory in the ECC adding circuit  13 . At this time, the number of samples per field of the video signal is 3,200 (=48 K/60×4). The 3200 samples are divided into four groups, one constituting an audio data block unit to which the ECC is added. In order to convert the audio data and video data to sync data and block data of the same size, 18 other data segments are added to each of the audio data and video data to thereby arrange the resulting (9×92) data segments in a memory as shown in FIG.  3  and add ECC codes C1 and C2 to those data segments in the ECC adding circuit  13  as shown in FIG.  3 . In the DVR of the embodiment, a one-field image signal is recorded in parallel in four memory areas. Therefore, three video data block and one audio data blocks are recorded in one memory area (hereafter referred to as “1MR”). These data blocks are read in units of 384 bytes from the memories  3  and  7 . 
     As shown in FIG. 4, a video signal is read in nits of data for two lines adjacent to the vertical line of the block of FIG.  2 . As shown in FIG. 5, an audio signals read in units of data for four vertical lines. These signals are input to a digital process circuit  15  of FIG.  6 A. 
     A switch  13  receives from a system controller  6  a timing signal ø 1  having a period of an interval required for storing data in 1MR, and data of 384 bytes is read from the ECC adding circuit  11  (32×3) times and from the ECC adding circuit  12  three times in each period. 
     A sync adding circuit  14  adds to every 384 byte data, mentioned above, 3 byte data (X) comprising a code Tx which comprises sync data (sync) of one byte, a sync block number and a mode (standard, two-fold or four-fold) selected by the switch  7 . Thus a sync block of 392 bytes results. The code Tx is received from the system controller  6  and is composed of a 2-bit signal corresponding to the state of the switch  7 . FIG. 4 shows a video sync block comprising two lines (namely, 384 bytes) of video data Vd and code C1. FIG. 5 illustrates an audio sync block comprising audio data Ad and a code C1 for four lines in all (namely, 384 bytes). Thus, recorded data comprising 3 audio sync blocks and 96 video sync blocks per track is obtained. 
     A sync block changing circuit  16  disperses audio sync blocks in video sync blocks (in the particular embodiment, the changing circuit disperses three successively input audio sync blocks into 96 video sync blocks, which dispersion is shown in FIG.  7 . A-1, A-2, A-3, V-1-1, V-1-2 . . . V-32-2, V-32-3, etc., each denote a sync block, and A-1, V-1-2, V-1-3, V-1-1 . . . V-12-1, A-2, V-13-3, V-13-1 . . . V-23-2, A-3, V-24-1 . . . V-32-2, and V-32-3 are read in this order from the ECC adding circuit  11 . The specific structure of the changing circuit  16  will be described later. 
     The data output from the circuit  16  is subjected to modulation such as well-known mapping and encoding by a digital converter  18 , and stored in the memory SM via an amplifier  17 , a switch  19  and a removable direct connection contact CT1. The memory SM is accommodated within a cartridge KT removable from the DVR, and the cartridge KT is mounted in the DVR to be connected electrically via the direct connection contact CT1 to the DVR. A power source BP is provided within the cartridge KT to backup the memory SM. 
     One embodiment of the sync block changing circuit  16  will now be described in FIG.  8 . In FIG. 8, a terminal  101  receives data comprising successive audio sync blocks from the sync adding circuit  14  as mentioned above. The input signal is written into memories  104  and  106  for each MR via a switch  102 . 
     The operation of the switch  102  is controlled by timing signal ø 1  shown in FIG. 6A receives at a timing signal input terminal  108  to switch between the memories  104  and  106  for each MR. Address of writting into the memories  104  and  106  are designated by W 1  and W 2  signals generated by address generators  103  and  105  controlled by a track timing signal to disperse and locate voice signal data in image signal data in memories  104  and  106 . 
     When data is read from the memories, read addresses are designated by R 1  and R 2  signals from address generators  103  and  105  and data are read from memories  104  and  106  in the order shown in FIG.  7 . 
     According to such structure, since the output from the block encoding circuit  3  can be recorded as compressed data comprising one half of the original data, it is unnecessary to provide separate {fraction (1/2+L )} and {fraction (1/4+L )} compression circuit to provide three kinds of image data. 
     The structure of the reproduction system of the DVR of the particular embodiment will be described briefly. The reading of the memory SM is controlled by a drive control circuit  21  and thus the reproduced signal is obtained from a terminal P of the switch  19 . This reproduced signal is delivered via an amplifier  31  to a digital process circuit  33  such as that shown in FIG.  6 B. 
     The signal received by the digital processor  33  is demodulated by a demodulator DM, the resulting signal is input to a sync detection circuit  22 , a data detection circuit  24 , a block number detection circuit  23  and a Tx detection circuit TD, the sync of the signal is detected by a sync detection circuit  22 , the respective data segments are recovered by the data detection circuit  24  in accordance with a clock generated by the detected sync, the sync block number of the data X is detected by the block number detection circuit  23 , and the Tx code is detected by the Tx detection circuit. 
     A sync block changing circuit  25  performs processing reverse to that performed by the circuit  16  to output 3 audio sync blocks and 96 video sync blocks successively. In order to perform this processing, the timing signal ø 1  from the system controller  6  is used and confirmed by the sync block number. The switch  26  feeds video data to an ECC decoding circuit  37  comprising a memory, and audio data to an ECC decoding circuit  38  comprising a memory. The data fed to the memories  37  and  38  is subjected to error correction by the respective ECC decoding operations. Then the audio data is returned to the original analog signal via the digital-to-analog converter  27  and output as a sound from a speaker terminal  28 . 
     Since the switch  40  is switched by the system controller  6  in accordance with the Tx code detected by the Tx detection circuit TD, the video data delivered via the ECC decoding circuit  37  is delivered intactly via a C terminal of the switch  40  to a digital-to-analog converter  41  to thereby be recovered as an analog video signal is video data in which the signal recorded in the standard mode. For a signal recorded in the two-fold mode, the data converted to the block code is recovered by the block decoding circuit  43 , and the resulting signal is delivered via a B terminal of the switch  40  to a D/A converter  41 . For the signal recorded in the four-fold mode, the data output from the block decoding circuit  43  is delivered to an interfield interpolation circuit  44  where the field data is thinned out, and data is recovered and delivered via an A terminal of the switch  40  to the D/A converter  41 , the output from which is delivered to an image display  42  for displaying purposes. It is to be noted that the switch is switched in accordance with data indicative of the recording mode recorded in the area shown by X in FIG.  4  and contained in the recording signals, as mentioned above. 
     In the DVR, a plurality of data quantity compression means is provided in series in setting three kinds of recording times on the same recording medium in order to enable data output from the intermediate taps of these means to be recorded, so that it is unnecessary to process data for another system comprising a data compression circuit for each recording mode only. One of the plurality of compression means uses a block encoding system to reduce the number of data segments per pixel and another uses a thinning-out system to reduce the number of pixels to be recorded, so that data can be easily extracted from the intermediate taps and even data compression in a plurality of stages will not greatly deteriorate the image. 
     While in the particular embodiment the use of the block encoding process has been described for reduction of the number of data segments for each pixel, of course, other processes such as difference decoding or prediction difference decoding may be used. While in the particular embodiment the mere thinning out of data segments is used to reduce the number of pixels, sampling using n fields as one period or variable density sampling may be used. While in the particular embodiment three stage modes, namely, the standard, two-fold and four-fold modes, have been described as being used, the number of mode stages may be increased or decreased or a quantity of data may be changed continuously. 
     In such DVR, two of three sync blocks of audio data can be recovered with high probability. If appropriate data replacement between audio data and ECC has been performed by the ECC adding circuit  12 , errors can be corrected with high probability. Even if error correction is not complete, it is ensured that two of three data segments are recovered completely, so that interpolation is easy. Thus even if a long time dropout occurs, the deterioration of the audio signal during reproduction is minimized. 
     As just described above, in a digital image recording apparatus according to the present invention, when a digital image signal and a digital audio signal are recorded in the same memory, audio sync blocks comprising a predetermined number of audio data segments and a predetermined number of sync data segments are dispersed and recorded in a video sync block including a predetermined number of video data segments and a predetermined number of sync data segments, and the compressed image data during recording is added to the video sync block. Therefore, even if the reproduced signal is missing for a considerably long time, a plurality of audio sync blocks does not disappear simultaneously, and the audio data can be recovered by interpolation or correction of errors. 
     While in the particular embodiment the memories have been illustrated as including a semiconductor memory for easy handling, for example, a bubble memory, an optical memory, a magnetic memory or a bio-memory may be used, of course. 
     As described above, according to the present invention, a device of a relatively simple structure can be used to store a digital image signal of three or more kinds of quantities of data in the same memory and to reproduce these data segments in an optimal manner.