Image processing method and apparatus

Abstract: It is an object of the invention to efficiently transmit a video signal including a luminance signal and a chrominance signal. The invention comprises: a first processor to extract the inputted luminance signal every first block which is constructed by a plurality of pixels; a second processor to extract the inputted chrominance signal every second block which is constructed by a plurality of pixels; and encoding means for encoding a predetermined macro block including the first and second blocks as a unit. Another object of the invention is to provide a movement compensating method whereby a circuit scale, a calculating time, and costs in case of executing the movement compensation can be reduced by using the correlation between the luminance signal and the chrominance signal. To accomplish the above object, there is provided a method of performing a movement compensation between the frames or fields, whereby a movement vector of the luminance signal is detected and the movement compensation of the luminance signal and the chrominance signal is executed on the basis of the movement vector.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to image processing method and apparatus for transmitting a video signal, a movement image signal, or the like including luminance component and chrominance component. Related Background Art Hitherto, there has been known a method whereby in case of processing a video signal in a real-time manner, the processing system is divided into a plurality of phases and processes are executed in parallel in consideration of a processing speed. On the other hand, generally, a luminance signal has a frequency band wider than that of a chrominance signal. For example, in an A/D converting unit, a sampling rate when converting an analog signal into a digital signal is set to a value which is twice as high as the sampling rate of the chrominance signal. In the above conventional example, however, since the luminance signal and the chrominance signal are independently processed in parallel, for example, in case of performing a movement compensating operation, in order to balance the contents of the video images between the luminance signal and the chrominance signal, it is necessary to match the movement information (movement vector) in the luminance signal with that of the chrominance signal. When the operator tries to communicate the movement information between the luminance signal and the chrominance signal for this purpose, there are drawbacks such that the scale of hardware required to realize the process is large and additionally the processing operation is complicated. Further, when the luminance signal and the chrominance signal are transmitted, if an uncorrectable error occurs, its correcting operation is complicated. Hitherto, a band compression encoding in which a movement image signal is transmitted at a low bit rate is indispensable to effectively use a transmission path and to reduce the communication costs. Therefore, various kinds of band compressing methods have been examined. Among them, a movement compensation encoding method for encoding in consideration of the movement of an image is promising. However in the conventional apparatus for encoding by performing movement compensation since the luminance signal and the chrominance signal are independently processed by different circuits, there are the following problems: (1) the circuit scale is large; (2) a long calculating time is required; and (3) the costs are high. European Patent Application EP-A-0,455,727 discloses a variable length coding method in which a different number of coding bits are assigned in accordance with information content. The invention is made in consideration of the above problems and it is a concern of the invention to efficiently process a video signal including luminance component and chrominance component. For this purpose, an embodiment of the invention provides a method of efficiently encoding or decoding the video signal. In accordance with the present invention there is provided image processing apparatus as set out in claim 1. An embodiment of the invention provides an encoding/decoding method which can easily correct a transmission error. An embodiment of the invention provides a movement compensating method whereby a scale of a movement compensation circuit can be decreased by using the correlation between the luminance signal and the chrominance signal and a movement compensating time can also be reduced. The features and advantages of the present invention will become apparent from the following detailed description and the appended claims with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram of an embodiment 1 of the invention; Figs. 2A to 2C are detailed diagrams showing macro blocks; Fig. 3 is a block diagram for realizing the formation of macro blocks; Fig. 4 is a detailed block diagram in case of performing the movement compensating operation by a source encoding in Fig. 1; Fig. 5 is a block diagram of an embodiment 2; Fig. 6 is a diagram showing a variable length encoding method; Fig. 7 is a diagram showing a construction of an apparatus on the receiving side; Fig. 8 is a block diagram of an encoding apparatus according to an embodiment 3 of the invention; and Fig. 9 is a specific block diagram of a movement compensating process according to the embodiment 3. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the invention will now be described hereinbelow mainly with respect to the phase division in case of processing a video signal in parallel by the multiphase division and a processing unit block construction in the phase. (Embodiment 1) Fig. 1 is a block diagram showing a whole construction of the first embodiment of the invention. In Fig. 1, reference numeral 10 denotes an A/D converter to convert a luminance signal Y/G and chrominance signals P B /B and P R /R which were inputted into digital signals. Thesampling frequency for the luminance signal Y/G is set to a value which is twice as high as the frequency for each of the chrominance signals P B /B and P R /R (that is,the data amount is twice as large as the data amount of the chrominance signal). Reference numeral 20 denotes a pre-processing unit. For each of the signals, the pre-processing unit 20 executes a filtering process such as smoothing, edge emphasis, or the like and a process to rearrange data individually for each of fundamental processing blocks for encoding. Reference numeral 30 denotes a source encode unit for compressing the data by a quantization or a variable length encoding of the data which is transmitted from the pre-processing unit 20. Reference numeral 40 denotes a channel encode unit for adding an SYNC signal to synchronize with the receiving side, a code for an error correcting process, and the like to the data encoded by the source encode unit 30, thereby constructing a data format for transmission. Reference numeral 50 denotes a line interface for modulating the data sent from the channel encode unit 40 and transmitting the modulated data to a transmission path in order to construct a format suitable for an external transmission path. A decode unit is constructed by the line interface (I/F) 50, a channel decode unit 60, a source decode unit 70, a post-processing unit 80, and a D/A converter 90. By executing the processes opposite to the processes executed by the above encode unit, the decode unit decodes the transmitted encoded data to the same original data as that inputted to the encoder. In the present embodiment a transmission processing unit in the source encode unit 30 is constructed by a macro block as will be explained hereinbelow. That is, in a signal processing block format according to the invention, a certain plurality of blocks each of which is constructed by allowing luminance and chrominance data to mixedly exist with every delimiter of the amount of data which was transmitted and in which time bases were matched are set to a fundamental processing unit (hereinafter, referred to as a macro block) and source encoding and decoding processes are executed, so that there is no need to perform the communication of information between the luminance signal and the chrominance signals in association with the movement compensating operation. The scale of hardware required to realize the above processes can be also simplified. Figs. 2A to 2C show examples of macro blocks in case of performing the source encoding process by using a DCT (discrete cosine transformation). Fig. 2A shows macro blocks in the case where a processing unit of the DCT is set to a pixel block of (8 x 8) pixels. Since it is now assumed that a sampling rate of the luminance signal is twice as high as that of the chrominance signal, the number of pixels in the horizontal direction (H) of the luminance signal is twice as large as that of the chrominance signal. That is, one macro block is constructed by total eight DCT blocks comprising four DCT blocks (Y 0 , Y 1 , Y 2 , Y 3 ) of the luminance signal, two DCT blocks (C B0 , C B1 /C R0 , C R1 ) of each of the chrominance signals of red and blue. To enable the movement compensating process to be easily executed, the number of lines in the vertical direction (V) is set to 16 which is integer times as large as the number of DCT blocks. Fig. 2B shows an example of a transmitting order in the case where the macro block in Fig. 2A is encoded and transmitted. In the macro block, the signals are sequentially serially encoded from the luminance signal in accordance with the order of Y 0 , Y 1 , Y 2 , Y 3 , C B0 , C B1 , C R0 , and C R1 and are transmitted. In the construction of the conventional example, according to the transmitting order, the luminance signal and the chrominance signal are transmitted in parallel. In the source encode unit 30 in the invention, the luminance signal and the chrominance signal are serially processed every macro block by a common encoding circuit. Fig. 2C shows a state in which the video signal according to the BTA-S001 standard was divided into macro block units. The diagram shows a state in which one horizontal line is divided into eight phases (phases 1 to 8) in consideration of the actual processing speed and each phase is processed in parallel. Since each phase has a data sequence construction using the macro block as a fundamental unit, each phase is referred to as a macro-block line hereinbelow. Since the luminance signal and the chrominance signal mixedly exist in each phase, the meaning of "parallel" differs from that in the conventional example. A developing state of Fig. 2C will now be described. In the embodiment, since the video signal conforms with the BTA-S001 standard, each item has been standardized as follows. Sampling frequency: luminance... 74.25 MHz Color... 37.125 MHz The number of horizontal effective pixels: luminance... 1920 pixels Color... 960 pixels The number of quantization bits: 8 bits Therefore, when one horizontal line is divided into eight phases, one phase, namely, one macro-block line is constructed as follows: namely, the luminance 1920/8 = 240 pixels and the color (960/8) x 2 (red, blue) = 240 pixels. Since the total number of pixels of one macro-block line in the vertical direction (V) is equal to 16 due to this, 240 PIX x 16 lines x 2 (luminance, color) = 7680 pixels The total number of pixels of the macro block is as follows from Fig. 2A. 8 PIX x 8 lines x 8 (Y 0 - Y 3 , C B0 - C B1 , C R0 - C R1 ) = 512 pixels From the relation between the above equations (1) and (2), 7680/512 = 15 That is, from the equation (3), the following relation is derived. One macro-block line = 15 macro blocks In Figs. 2A to 2C, since the macro-block lines having the relation as mentioned above are transmitted in parallel by eight phases, a processing block speed per one phase is equal to 18.5625 MHz and has an actual numerical value. Fig. 3 shows the details of a block to produce the macro block in Fig. 2. This block is located in the pre-processing unit 20 in Fig. 1. The operation will now be briefly explained. It is now assumed that the digital signal which was A/D converted by the A/D converter 10 is set to a time sequential signal of total eight phases comprising four phases for the luminance signal in which the time base was expanded to 1/4 by a DIV120 and two phases of each of the chrominance signals of red and blue in which the time base was expanded into 1/2 by a DIV130 in consideration of the processing speed. Namely, with respect to each of the signals Y/G, P B /B and P R /R, the signal of eight bits is outputted from the A/D converter 10 every pixel. In the DIV120, the luminance signal is frequency divided into 1/4 so as to form the macro block in Fig. 2A. Thus, the data of 8 bits x 4 phases (= 32 bits) per one macro block is outputted in parallel. On the other hand, in the DIV130, by frequency dividing the chrominance signal into 1/2, the data of 8 bits x 2 phases (= 16 bits) is outputted in parallel with respect to each of the signals P B /B and P R /R. The parallel data of total 64 bits is distributed to each of the above-mentioned Phase 1 to Phase 8 by a selector 140. Reference numeral 150 denotes an address converting unit for rearranging the order in the macro block. The address converting unit 150 is constructed by two memories 160 and an address generator 170. The memories 160 are used as double buffers. The address converting unit 150 is provided for each of the eight phases of Phase 1 to Phase 8. A processing speed of each phase when the data was developed into eight phases is equal to 18.5625 MHz from the relation of the sampling frequencies of the luminance signal and the chrominance signal. Each of the phases can be considered as being a first block which is to be subsequently divided into smaller block units. In the address converting unit 150, the memories 160 have a construction of two banks and the writing and reading operations are alternately executed. The data is extracted by an address generator 170 on a macro block unit basis of every 8 x 8 (= 64 pixels) blocks. The selector 140 divides one picture plane into eight regions in the horizontal direction as shown in Fig. 2C and selectively sends the image data which is sequentially inputted in the horizontal direction to the address converting unit of the phase corresponding to each of the eight regions. The operation of the selector 140 is controlled by an address signal indicative of the address on one picture plane which is generated from a circuit (not shown). Although each of the phases has been set to 240 pixels in the horizontal direction in the embodiment, each phase can also be set to an arbitrary number of pixels by the control of the selector 140. A data sequence which is outputted from the address converting unit 150 is as shown in Fig. 2B. After that, the source encode unit 30 and the channel encode unit 40 are provided in parallel with respect to eight phases. Fig. 4 is a detailed block diagram in case of presuming the case where the movement compensation predicting operation is executed in the source encode unit 30 of the CODER section in Fig. 1. For simplicity of explanation, the source encode unit 30 of one certain phase will now be described as an example. The operation will now be briefly explained. The operating mode is mainly classified into two modes of INTRA (operation in a field or a frame: namely, intra-frame operation) and INTER (operation between fields or frames: namely, inter-frame operation). In the INTER mode, the encoding process is executed to the difference value between the input data and the prediction value which is calculated from the past data than the input data. In the INTRA mode, the encoding process is executed to the input data itself. Each of the above two modes is adaptively selected on the basis of the result of comparison between the input data and the difference value between the input data and prediction value. Such a selecting operation is executed by an INTRA/INTER selector 200. In the general operation, electric power components of those data are calculated, either smaller one of the data sequences is selected, and a switch 290 is switched. The movement compensation predicting operation is executed in the INTER mode. The INTRA mode will be first explained. When the INTRA mode is selected by the selector 200, the switch 290 is switched to the INTRA side. The digital signal sequence which was subjected to the macro block forming process in the pre-processing unit 20 is supplied to a DCT unit (orthogonal transformation unit) 220, by which the time-sequential data is converted into the coefficient value indicative of the distribution of the frequency region. A quantization unit 230 produces the compressed digital data sequence and sends to an inverse quantization unit 240 and the channel encode unit. In the INTER mode, on the other hand, when the INTRA mode is selected by the selector 200, the switch 290 is switched to the INTER side. The inverse quantization unit 240 and an IDCT unit 250 produce the digital data (difference value) of the original time sequence. This digital data is added by an adder 260 to the past prediction value which is the past value with respect to the time and has already been formed. From the locally decoded data and the data which was newly inputted, the movement component of the video signal which was newly inputted is detected as a vector by a movement vector detection unit 280. On the basis of this vector, a movement vector detection unit 270 calculates a prediction value. A subtracter 210 calculates a difference between the prediction value and the data which was newly inputted. The difference is sent to the DCT unit 220. After that, the compressed digital data sequence is produced by the operations similar to those in the INTRA mode and is sent to the inverse quantization unit 240 and the channel encode unit. The DCT unit 220 for performing the orthogonal transformation executes the discrete cosine transformation every (8 x 8) pixel blocks. The IDCT unit 250 execute the inverse discrete cosine transformation. The quantization unit 230 coarsely quantizes, particularly, the high frequency component every (8 x 8) blocks by using a predetermined quantization matrix. The inverse quantization unit 240 executes the inverse quantization by using the coefficients of the same quantization matrix as that mentioned above. As will be understood from the above description, since the operation to calculate the prediction value and the operation to calculate the difference value in the movement compensating operation in the INTER mode of the source encode unit can be executed irrespective of the luminance signal and the chrominance signal since the above macro block is used as input data, a scale of hardware can be remarkably simplified. Although the invention has been described with respect to the case of the CODEC apparatus as an example, the invention is not limited to such a case but can be widely applied to other apparatuses such as a digital VTR or the like so long as it executes the digital compression signal processing operation. The construction of the macro blocks and the bit unit have been shown as an example in Fig. 2 and the invention is not limited to them. As described above, by using the macro block construction as in the above embodiment of the invention, even in the case where the hardware scale is large and complicated as in the movement compensating operation, the luminance signal and the chrominance signal can be simultaneously handled. Therefore, a complicated operation such as to match the operations between the luminance signal and the chrominance signal is eliminated. The hardware scale can be also reduced. Data can be easily handled. The costs of the system can be also fairly reduced. (Embodiment 2) The second embodiment of the invention will now be described with reference to Fig. 5. The embodiment 2 is realized by further adding a construction of the variable length encoding, error correction, and the like to the construction of the embodiment 1 mentioned above. According to the embodiment, since it uses the above macro-block format, even when an error correction is executed, the error can be easily corrected on a macro block unit basis. Fig. 5 shows a detailed block diagram of the channel encode unit 40. The operation will be briefly explained. The data compressed by the source encode unit is further subjected to a variable length encoding process according to a generation probability of data by a variable length encode unit 300 in the channel encode unit 40 in order to more efficiently reduce a bit rate. In a buffer memory 310 at the next stage, quantizing steps of the quantization unit 230 and inverse quantization unit 240 in the source encode unit 30 are controlled by an occupation amount in the buffer memory 310 so that a rate of data which is transmitted is adapted to a bit rate of the transmission path. Further, as a countermeasure for protection in the case where an erroneous propagation occurs on the transmission path, an error correction code is added by an error correction code adding unit 320. Further, a detailed block in the variable length encode unit 300 is shown. Different from the two-dimensional Huffman code or the like in which the run length and the non-zero coefficient are combined which has already been standardized in MPEG, H.261, or the like, the variable length encoding shown in the above relates to the case of a one-dimensional B2 code which mainly intends to simplify the hardware and is a candidate of the recommendation 723. The operation will now be briefly explained. First, the DCT blocks (8 x 8 = 64 blocks in case of the example of the blocks in Figs. 2A to 2C) which were discrete cosine transformed by the source encode unit 30 construct a matrix indicative of a distribution of the frequency components. Since a probability such that the levels of the frequency DC components are uniformly distributed is high, even when the variable length encoding process is applied, the reduction of the bit rate cannot be expected. Therefore, a DPCM process is executed in a DC-DPCM 420. On the other hand, since the frequency AC components have a Laplacian distribution as a probability, data is sequentially read out by a zigzag scan unit 400 in accordance with the order from a high generation probability and is variable length encoded by a B2 encode unit 410. In a buffer memory 430 at the next stage, the data which is generated with variable lengths is divided into data of an arbitrary data length. The divided data is sent to the next stage. For this purpose, the above frequency AC components are necessary. Fig. 6 shows the case where as an example of the B2 code, the maximum code length is set to 14 bits, the maximum value of the AC components lies within a range from -127 to 127 and the maximum value of the run lengths is set to 63. As shown in Fig. 6, it will be understood that two bits of an expansion code and an information code construct one pair in the B2 code and the code length is expanded every two bits. Further, in the general B2 code, an EOB (End of Block) code is toggled on a DCT block unit basis every DCT block as shown in a transmission format (a) in Fig. 6 and added, and so long as the EOB code is correctly received on the receiving side, the error is not propagated to the next DCT block. However, since it is assumed that the data is processed on a macro block unit basis as shown in the invention, the embodiment is characterized in that the EOB code is toggled and added on a macro block unit basis as shown in a transmission format (b) in Fig. 6. Fig. 7 shows a detailed block diagram mainly with respect to a channel decoding on the DECODER side. In the diagram, an error in the reception data which was inputted through the line interface 50 is detected and corrected by an error detection correction unit 500 in the channel decode unit 60. If there is an uncorrectable error, a concealed flag indicative of the meaning of the correction is sent to the post stage. A correcting operation is executed by a method of replacing the error data to the preceding data or the like for only a period of time during which the concealed flag exists. In Fig. 7, it is assumed that a switch 610 is controlled by the concealed flag and, upon correction, the switch 610 operates so as to select the output data from a delay 600. A buffer memory 510 and a variable length decode unit 520 execute a variable length decoding opposite to the encoding which was executed in the channel encode unit. The decoded data is sent to the source decode unit 70. Although the embodiment has been described with respect to the case of the CODEC apparatus as an example, the invention is not limited to such an example, it will be obviously understood that the invention can be also widely applied to other apparatuses such as digital VTR and the like so long as it executes the digital compression signal processing operation. The construction (Y: 4 DCT blocks, CB: 2 DCT blocks, CR: 2 DCT blocks) of the macro block shown in Figs. 2A to 2C and the bit unit have been shown as an example. The invention is not particularly limited to such an example. As described above, by using the macro block construction as shown in the invention, even in the case where a hardware is large in scale and is complicated as in the movement compensating operation, the luminance signal and the chrominance signal can be simultaneously handled. Therefore, a troublesomeness such that the operations are matched between the luminance signal and the chrominance signal or the like is eliminated. The hardware scale can be also reduced. The hardware can be easily handled. The system costs can be also remarkably reduced. Further, since the EOB code has been toggled on a macro block unit basis, it is possible to easily match the hardware with the system for executing the source encoding and decoding processes on a macro block unit basis as in the invention. By monitoring the toggling operation of the EOB code, the errors can be easily corrected on a macro block unit basis. Since a plurality of same EOB codes are transmitted on a macro block unit basis, even when a few EOB codes in the macro block are wrong due to errors, so long as several correct EOB codes have been transmitted, the macro block can be detected. Consequently, the errors are not propagated to the next macro block. That is, the invention is strong for errors as compared with the conventional case where the EOB code is toggled and transmitted on a DCT block unit basis. According to the above embodiments 1 and 2 of the invention as mentioned above, the video signal including the luminance component and the chrominance component can be efficiently transmitted. A method of efficiently encoding and decoding the video signal can be provided. Further, an encoding/decoding method which can easily correct a transmission error can be provided. (Embodiment 3) A movement compensation encoding apparatus according to the third embodiment will now be described hereinbelow. In Fig. 8, the luminance signal and the color difference signals are inputted from an input terminal 801 and are respectively subjected to processes, which will be explained hereinbelow, and the processed signals are outputted from an output terminal 808. Explanation will now be made with respect to the luminance signal (hereinafter, referred to as a data signal) as an example. The luminance signal inputted from the input terminal 801 is once stored in a frame memory 802. Block data of total 64 pixels (8 pixels in the horizontal direction x 8 pixels in the vertical direction) is read out from the frame memory 802 and is processed on a block unit basis. A data signal corresponding to the preceding image data is read out from a frame memory 812 in which the image data of the preceding frame has been written. The data signal is supplied to a variable delay circuit 813 and a movement vector detection circuit 814. The movement vector detection circuit 814 obtains a movement vector signal by, for example, a pattern matching method from the data signal and the input signal of the present frame and supplies to the variable delay circuit 813. Explaining further in detail, in the movement vector detection circuit 814, a macro block corresponding to a large block which is formed by a set of a few block units each comprising (8 x 8) pixels which are supplied from the frame memory 812 is specified. A movement compensation is executed on such a macro block unit basis. On the other hand, the variable delay circuit 813 delays the data signal supplied from the frame memory 812 by only the time which is set on the basis of the movement vector signal and supplies the delayed signal to a subtracting circuit 803 and an adding circuit 811. For instance, it is also possible to construct in a manner such that the variable delay circuit 813 has a memory to store the color difference signals (P B , P R ) and the luminance signal and the write and read addresses in the memory are controlled and supplied to the subtracting circuit 803 and the adding circuit 811. The subtracting circuit 803 subtracts the data signal of the preceding frame supplied from the variable delay circuit 813 from the input signal of the present frame and supplies a prediction error signal as a resultant subtraction signal to a discrete cosine transforming circuit (hereinafter, referred to as a DCT) 804. The DCT 804 cosine transforms the prediction error signal in the horizontal and vertical directions, thereby obtaining a matrix of (8 x 8) DCT coefficients, namely, a spatial frequency. The transformed coefficients are quantized by a quantization circuit 805. The quantized spatial frequency coefficient train is supplied to an inverse quantization circuit 809 and is inversely quantized. The inversely quantized spatial frequency coefficient train is inversely transformed into the spatial frequency train of (8 x 8) by an inverse discrete cosine transforming circuit (hereinafter, referred to as an IDCT) 810. The inversely transformed output signal from the IDCT 810 is sent to the adding circuit 811. The adding circuit 811 adds the data signal supplied from the variable delay circuit 813 and the inversely transformed output signal supplied from the IDCT 811 and supplies the resultant addition signal to the frame memory 812. The addition signal is written into the frame memory 812 as new image data of the preceding frame. The quantization signal and the movement vector signal are encoded by a reversible encode circuit 806. Since the encoded data amount is changed by the image signal as mentioned above, by feeding back the signal in accordance with the amount of data accumulated in a buffer 807 by a method such that when the data amount is larger than a predetermined value, a quantization step in the quantization circuit 805 is increased or the like, the data amount is controlled to a predetermined amount. The chrominance signal is also processed in a manner similar to the luminance signal. A specific process of the movement compensation will now be described with reference to Fig. 9. First, the Y signal of the present frame constructed as a block and the Y signal of a plurality of blocks of the preceding frame are supplied to a movement detection circuit 921 of the luminance signal (Y signal). The movement detection circuit 921 compares the two Y signals supplied and detects the block of the preceding frame having the highest correlation with the block-formed Y signal of the present frame and supplies the result to a movement vector calculation circuit 922, by which a movement vector is calculated. The calculated movement vector is supplied to a movement compensation circuit 923 of the Y signal, a movement compensation circuit 924 of the color difference signal P B , and a movement compensation circuit 925 of the color difference signal P R , by which the movement compensation is executed for the Y signal and the P B and P R signals. The P B and P R signals are formed by increasing the color difference signals B-Y and R-Y by 1/1.826 and 1/1.576 times, respectively. Namely, in the embodiment, since there is a strong correlation between the luminance signal and the chrominance signal, a fact that the value of the movement vector of the luminance signal is equal to the value of the movement vector of the chrominance singal in many cases is used. Although the movement compensation of the embodiment has been performed between the frames, the embodiment can be also applied to the case of executing the movement compensation between the fields. According to the movement compesnation processing method of the embodiments as described above, by executing the movement compensation of the chrominance signal by using the movement vector signal of the luminance signal, there are advantages such that the scale of the movement vector detection circuit can be reduced and the total calculating time to perform the movement compensation can be reduced and, further, the costs can be decreased. The movement compensating method of the embodiment can be applied to the movement vector detection unit 280 and the movement compensation prediction unit 270 in the above first and second embodiments. Namely, the luminance component included in the macro block in the first and second embodiments is extracted at a predetermined timing and supplied to the Y signal movement detection circuit 921 and outputs from the movement compensation circuits 923, 924, and 925 are used for the operation in the movement compensation prediction unit 270. In the preceding description the reference to the BTA-S001 standard represents a "Hi-Vision System Studio Standard" which has been defined in Japan.

Claims: An image processing apparatus comprising: input means (10) for inputting color image data having a luminance component and a chrominance component; dividing means (20) for dividing the color image data input by said input means into a plurality of first blocks; and a plurality of encoding means (30, 40) for encoding in parallel the color image data of the first blocks, each of the plurality of first blocks being encoded by one of the plurality of encoding means; and characterized in that each of said encoding means divides the color image data into a plurality of second blocks each of which includes both luminance and chrominance component data and encodes the color image data in units of sub-blocks which are sub-units of the second blocks, wherein the color image data is motion compensation encoded on the sub-block unit basis, and wherein motion data used in the motion compensation encoding of the color image data is detected on the basis of the second blocks. Apparatus according to claim 1, including means (120) for sampling the luminance component and means (130) for sampling the chrominance component, and wherein the means for sampling the luminance component operate at a higher rate than the means for sampling the chrominance component. Apparatus according to claim 2, wherein the input means are adapted to receive colour image data having a luminance component (Y/G) and two chrominance components (P B /B, P R /R) and the sampling means are adapted to sample the luminance component at twice the rate at which each of the chrominance components are sampled. Apparatus according to claim 3, wherein each second block comprises chrominance and luminance data in separate DCT blocks, the DCT blocks providing said sub-blocks and the number of DCT blocks of chrominance data being the same as the number of blocks of luminance data. Apparatus according to any preceding claim, wherein said dividing means comprises a selector (140) which is adapted to divide a frame of the input color image data into said first blocks. Apparatus according to claim 5, wherein said selector is adapted to divide the lines of a picture plane into horizontal sections and to send the sequentially input image data to selected ones of a plurality of address converting units each one of which is associated with an individual one of said first blocks. Apparatus according to claim 6, wherein each address converting unit includes first and second memory means (160) which in operation alternately have image data written into and read therefrom under the control of an associated address generator (170). Apparatus according to any preceding claim, wherein said encoding means execute the encoding by using either intra or interframe encoding. Apparatus according to any preceding claim, wherein said encoding means (30, 40) further comprise: detecting means (280) for detecting a movement vector; and compensating means (270) for performing a movement compensation in accordance with the result of the detection by said detecting means. Apparatus according to claim 9, wherein said detecting means detects the movement vector on the basis of the luminance component of said color image data. Apparatus according to any preceding claim, wherein said encoding means includes converting means for performing orthogonal transformation on said sub-block units. Apparatus according to claim 11, wherein said encoding means toggle an EOB code every second block and transmit the toggled EOB code, and all of the sub-blocks which constitute a second block use the same EOB code. Apparatus according to claim 11 or claim 12, further comprising correcting means for correcting the errors by using the EOB code. An image processing method comprising: inputting color image data having a luminance component and a chrominance component; dividing the input color image data into a plurality of first blocks; and utilising a plurality of encoding means (30, 40) to encode in parallel the color image data of the first blocks, each of the plurality of first blocks being encoded by one of the plurality of encoding means; wherein each of said encoding means divides the color image data into a plurality of second blocks each of which includes both luminance and chrominance component data and encodes the color image data in units of sub-blocks which are units of the second blocks; wherein the color image data is motion compensation encoded on the sub-block unit basis; and wherein motion data used in the motion compensation encoding of the color image data is detected on the basis of the second blocks. A method according to claim 14, including sampling the luminance component and chrominance components of the color image data, and wherein the luminance component is sampled at a higher rate than the chrominance component. A method according to claim 15, wherein the input colour image data has a luminance component (Y/G) and two chrominance components (P B /B, P R /R) and the luminance component is sampled at twice the rate at which each of the chrominance components are sampled. A method according to claim 16, wherein each second block comprises chrominance and luminance data in separate DCT blocks, the DCT blocks providing said sub-blocks and the number of DCT blocks of chrominance data being the same as the number of blocks of luminance data. A method according to any one of claims 14 to 17, wherein the colour image data is divided by a selector (140) which divides a frame of the input color image data into said first blocks. A method according to any one of claims 14 to 18, wherein said encoding means execute the encoding by using either intra or interframe encoding. A method according to claim 19, wherein said selector divides the lines of a picture plane into horizontal sections and to send the sequentially input image data to selected ones of a plurality of address converting units each one of which is associated with an individual one of said first blocks. A method according to claim 20, wherein each address converting unit includes first and second memory means (160) which in operation alternately have image data written into and read therefrom under the control of an associated address generator (170). A method according to any one of claims 14 to 21, wherein said encoding means (30, 40) further comprise: detecting means (280) for detecting a movement vector; and compensating means (270) for performing a movement compensation in accordance with the result of the detection by said detecting means. A method according to claim 22, wherein said detecting means detects the movement vector on the basis of the luminance component of said color image data. A method according to any one of claims 14 to 23, wherein said encoding means includes converting means for performing orthogonal transformation on said sub-block units. A method according to claim 24, wherein said encoding means toggle an EOB code every second block and transmit the toggled EOB code, and all of the sub-blocks which constitute a second block use the same EOB code. A method according to claim 24 or claim 25, further comprising correcting errors by using the EOB code.

Inventors: ITOKAWA OSAMU, OGASAWARA YOSHIMI, ITOKAWA, OSAMU, OGASAWARA, YOSHIMI, ITOKAWA, OSAMU, CANON KABUSHIKI KAISHA, OGASAWARA, YOSHIMI, C/O CANON KABUSHIKI KAISHA
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1993
Main classification: H04N7
IPC codes: H04N7