US 20070153900 A1 Abstract A video encoding method includes extracting at least one reference macroblock from each of a plurality of reference frames to generate a plurality of reference macroblocks, computing a linear sum of the reference macroblocks using weighting factors to generate a predictive macroblock, generating a motion vector between the video macroblock and the reference macroblock corresponding to the predictive macroblock, generating a prediction error signal between the predictive macroblock and the video macroblock, and encoding the prediction error signal, a first index indicating the plurality of reference frames, a second index indicating the weighting factors and the motion vector.
Claims(2) 1. A video decoding method of performing a motion compensated prediction interframe decoding on a to-be-decoded video block of a video picture, using a plurality of reference pictures and a motion vector between the to-be-decoded video block and at least one reference picture, the method comprising:
decoding to-be-decoded data including information items indicating a prediction error signal between a prediction block and the to-be-decoded video block, the reference picture, a weighting factor, a DC offset value and the motion vector, respectively; calculating a linear sum of the plurality of reference blocks extracted from the reference picture, using the weighting factor; adding the DC offset value to the linear sum to generate the prediction block; and generating a reproduction video signal by means of the prediction error signal and the prediction block. 2. A video decoding apparatus configured to perform a motion compensated prediction interframe decoding on a to-be-decoded video block of a video picture, using a plurality of reference pictures and a motion vector between the to-be-decoded video block and at least one reference picture, the apparatus comprising:
a decoder configured to decode to-be-decoded data including information items indicating a prediction error signal between a prediction block and the to-be-decoded video block, the reference picture, a weighting factor, a DC offset value and the motion vector, respectively; a calculator to configured calculate a linear sum of the plurality of reference blocks extracted from the reference picture, using the weighting factor; an adder configured to add the DC offset value to the linear sum to generate the prediction block; and a video generator configured to generate a reproduction video signal by means of the prediction error signal and the prediction block. Description This application is a Division of U.S. application Ser. No. 10/409,068, filed Apr. 9, 2003, the entire contents of which is incorporated herein by reference. This application is based upon and claims the benefit of priority from the prior Japanese Patent Applications No. 2002-108102, filed Apr. 10, 2002; and No. 2002-341239, filed Nov. 25, 2002, the entire contents of both of which are incorporated herein by reference. 1. Field of the Invention The present invention relates to a video encoding method and apparatus and a video decoding method and apparatus which use a motion compensation predictive inter-frame encoding. 2. Description of the Related Art As video compression encoding techniques, MPEG-1 (ISO/IEC11172-2), MPEG-2 (ISO/IEC13818-2), MPEG-4 (ISO/IEC14496-2), and the like have been widely used. In these video encoding schemes, encoding is performed by a combination of intra-frame encoding, forward predictive inter-frame encoding, and bi-directional predictive encoding. Frames encoded in these encoding modes are called I, P, and B pictures, respectively. The P picture is encoded by using the immediately preceding P or I picture as a reference frame. The B picture is encoded by using the immediately preceding and succeeding P or I pictures as reference frames. Forward predictive inter-frame encoding and bi-directional predictive encoding are called motion compensation predictive inter-frame encoding. In video encoding based on an MPEG scheme, a prediction picture can be selectively generated for each macroblock from one or more video frames. In the case of P pictures, a prediction picture is generally generated on a macroblock basis from one reference frame. In the case of B pictures, either a prediction picture is generated from one of a forward reference frame and a backward reference frame, or a prediction picture is generated from the average value of reference macroblocks extracted from both a forward reference frame and a backward reference frame. The information of these prediction modes is embedded in encoded data for each macroblock. In such motion compensation predictive inter-frame encoding, when the same picture moves temporally and horizontally between frames in an area equal to or larger than the size of each macroblock, a good prediction result can be obtained. With regard to temporal enlargement/reduction and rotation of pictures or temporal variations in signal amplitude such as fade-in and fade-out, however, high prediction efficiency cannot always be obtained. In encoding at a constant bit rate, if such pictures from which high prediction efficiency cannot be obtained are input, a great deterioration in picture quality may occur. In encoding at a variable bit rate, a large code amount is consumed for pictures with poor prediction efficiency to suppress deterioration in picture quality, resulting in an increase in total code amount. Temporal enlargement/reduction, rotation, and fade-in/fade-out of pictures can be approximated by affine transformation of video signals. Predictions using affine transformation will therefore greatly improve prediction efficiency. In order to estimate a parameter for affine transformation, an enormous amount of parameter estimation computation is required at the time of encoding. More specifically, a reference picture must be transformed by using a plurality of transformation parameters, and one of the parameters that exhibits the minimum prediction residual error must be determined. This requires an enormous amount of transformation computation. This leads to an enormous amount of encoding computation or an enormous increase in hardware cost and the like. In addition, a transformation parameter itself must be encoded as well as a prediction residual error, and hence the encoded data becomes enormous. In addition, inverse affine transformation is required at the time of decoding, resulting in a great amount of decoding computation or a very high hardware cost. As described above, in the conventional video encoding methods such as MPEGs, sufficient prediction efficiency cannot be obtained with respect to temporal changes in video other than translations. In addition, in the video encoding and decoding method using affine transformation, although prediction efficiency itself can be improved, the overhead for encoded data increases and the encoding and decoding costs greatly increase. It is an object of the present invention to suppress increases in computation amount and the overhead for predictive picture encoded data, while greatly improving prediction efficiency, in video encoding and decoding, particularly for fading pictures, which has to date been a weak point in conventional video encoding methods such as MPEG. According to an aspect of the invention, there is provided A video encoding method of performing a motion compensated prediction interframe encoding on a video macroblock, the method comprising: extracting at least one reference macroblock from each of the plurality of reference frames to generate a plurality of reference macroblocks; calculating a linear sum of the reference macroblocks using weighting factors to generate a predictive macroblock; generating a motion vector between the video macroblock and the reference macroblock corresponding to the predictive macroblock; generating a prediction error signal between the predictive macroblock and the video macroblock; and encoding the prediction error signal, a first index indicating the plurality of reference frames, a second index indicating the weighting factors and the motion vector. Referring to The prediction picture signal In the other path, the quantized DCT coefficient data The predictive macroblock generator The predictive macroblock selector The predictive macroblock selector When the signal component of the input video signal The prediction error signal In this embodiment, the prediction error signal If the fade detector If the fade detector When encoded data This arrangement makes it possible to reduce the encoding overhead for prediction mode information. The arrangement of the video decoding apparatus according to this embodiment corresponds to that of the video encoding apparatus shown in First of all, a variable length code decoder The decoded picture signal A predictive macroblock generator The side information (Motion Compensation Predictive Inter-Frame Encoding) When the frame A predictive macroblock is generated with respect to a video macroblock In an encoding operation, a search is made for an optimal motion vector and prediction mode for the video macroblock An index (Code_number) shown in In the first and second embodiments, the combinations of reference frames can be changed on a macroblock basis, and the indexes in the table in The video encoding apparatus shown in Each of predictive macroblock selectors Number_Of_Max_References. WeightingFactorDenominatorExponent (Wd in In an encoding operation, for a video macroblock In a decoding operation, a combination of linear predictive coefficients received for each frame is used to generate a predictive macroblock for each macroblock from a motion vector, prediction mode information, and a plurality of reference frames. Decoding is performed by adding the predictive macroblock to the prediction error signal. Referring to For a video macroblock In the case shown in Referring to Since motion vectors are scaled with the same precision in encoding and decoding operations, only one motion vector needs to be encoded for each macroblock even when a video macroblock to be encoded refers to a plurality of frames. In this case, if the motion vector scaling result does not exist on any of sampling points with the motion compensation precision, the vector obtained by rounding the fractions of the scaled motion vector to the nearest whole number is used. In the case shown in In general, the magnitude of the above differential vector decreases with respect to a temporally monotonous movement. Even if, therefore, the moving speed is not constant, the prediction efficiency does not decrease, and an increase in the overhead for a motion vector is suppressed. This makes it possible to perform efficient encoding. In the case shown in As described above, the arrangement shown in In this embodiment of the present invention, a motion vector or differential vector is encoded by using the spatial or temporal correlation between motion vectors in the following manner to further decrease the motion vector code amount. A motion vector compression method using a spatial correlation will be described first with reference to Encoding a motion vector error by variable length encoding or arithmetic encoding can compress the picture with high efficiency. A motion vector can be predicted by using, for example, the median or average value of the motion vectors of the macroblocks B, C, D, and E as a prediction vector. A motion vector compression method using a temporal correlation will be described with reference to A three-dimensional prediction is further made on the motion vector of the macroblock A by using a spatiotemporal correlation and the motion vectors of the macroblocks B, C, D, and E in the frame F A three-dimensional prediction on a motion vector can be realized by generating a prediction vector from the median value, average value, or the like of a plurality of spatiotemporally adjacent motion vectors. An embodiment of macroblock skipping according to the present invention will be described. Assume that in motion compensation predictive encoding, there are macroblocks in which all prediction error signals become 0 by DCT and quantization. In this case, in order to reduce the encoding overhead, macroblocks that satisfy predefined, predetermined conditions are not encoded, including the header data of the macroblocks, e.g., prediction modes and motion vectors. Of the headers of video macroblocks, only those of macroblocks corresponding to the number of macroblocks that are consecutively skipped are encoded. In a decoding operation, the skipped macroblocks are decoded in accordance with a predefined, predetermined mode. In the first mode of macroblock skipping according to the embodiment of the present invention, macroblock skipping is defined to satisfy all the following conditions: A reference frame to be used for a prediction is a predetermined frame. All motion vector elements are 0. All prediction error signals are 0. In a decoding operation, a predictive macroblock is generated from predetermined reference frames as in the case wherein a motion vector is 0. The generated predictive macroblock is reconstructed as a decoded macroblock signal. Assume that setting the linear sum of two immediately preceding frames as a reference frame is a skipping condition for a reference frame. In this case, macroblock skipping can be done even for a picture whose signal intensity changes over time, like a fading picture, thereby improving the encoding efficiency. Alternatively, the skipping condition may be changed for each frame by sending the index of a reference frame serving as a skipping condition as the header data of each frame. By changing the frame skipping condition for each frame, an optimal skipping condition can be set in accordance with the properties of an input picture, thereby reducing the encoding overhead. In the second mode of macroblock skipping according to the embodiment of the present invention, a motion vector is predictively encoded. Assume that a macroblock skipping condition is that the error signal of a motion vector is In the third mode of macroblock skipping according to the embodiment of the present invention, a skipping condition is that to-be-encoded motion vector information is identical to the motion vector information encoded in the immediately preceding macroblock. To-be-encoded motion vector information is a prediction error vector when a motion vector is to be predictively encoded, and is a motion vector itself when it is not predictively encoded. The remaining conditions are the same as those in the first mode described above. In the third mode of macroblock skipping, when a skipped macroblock is to be decoded, the to-be-encoded motion vector information is regarded as Assume that in the fourth mode of macroblock skipping, a combination of reference frames to be used for a prediction is identical to that for the immediately encoded macroblock. The remaining skipping conditions are the same as those in the first mode described above. Assume that in the fifth mode of macroblock skipping, a combination of reference frames used for a prediction is identical to that for the immediately encoded macroblock. The remaining skipping conditions are the same as those in the first mode described above. Assume that in the sixth mode of macroblock skipping, a combination of reference frames used for a prediction is identical to that for the immediately encoded macroblock. The remaining skipping conditions are the same as those in the third mode described above. According to the skipping conditions in either of the first to sixth modes described above, a reduction in encoding overhead and highly efficient encoding can be realized by efficiently causing macroblock skipping by using the property that the correlation of movement between adjacent macroblocks or change in signal intensity over time is high. According to equation (2), even if the inter-frame distance between each reference frame and the video frame arbitrarily changes, a proper linear prediction can be made. Even if, for example, variable-frame-rate encoding is performed by using frame skipping or the like or two arbitrary past frames are selected as reference frames, high prediction efficiency can be maintained. In an encoding operation, one of the first and second predictive coefficients may be permanently used or the first or second predictive coefficients may be adaptively selected. As a practical method of adaptively selecting predictive coefficients, a method of selecting predictive coefficients by using the average luminance value (DC value) in each frame may be used. Assume that the average luminance values in the frames F If the value of mathematic expression (3) is smaller than that of mathematic expression (4), the first predictive coefficient is selected. If the value of mathematic expression (4) is smaller than that of mathematic expression (3), the second predictive coefficient is selected. By changing these predictive coefficients for each video frame, an optical linear prediction can be made in accordance with the characteristics of a video signal. Efficient linear prediction can also be made by determining the third and fourth predictive coefficients by using the ratios of DC values in the frames according to equation (5) or (6):
The third linear predictive coefficient given by equation (5) is the weighted mean calculated in consideration of the ratios of the DC values in the frames. The fourth linear predictive coefficient given by equation (6) is the linear predictive coefficient calculated in consideration of the ratios of the DC values in the frames and the inter-frame distances. In the use of the above second to fourth linear predictive coefficients, linear predictions require division. However, matching the computation precision at the time of encoding with that at the time of decoding allows a linear prediction based on multiplications and bit shifts without any division. A practical syntax may be set such that each linear predictive coefficient is expressed by a denominator to a power of 2 and an integer numerator, as in the case shown in Equation (7) represents a simple average prediction; equation (8), a weighted mean prediction based on an inter-frame distances, equation (9), a weighed mean prediction based on the ratios of the DC values; and equation (10), a weighting prediction based on the ratios of the DC values and the inter-frame distances. A combination of first predictive coefficients is given by equation (22). The first predictive coefficients are used for a simple average prediction based on three reference frames. A prediction picture F The second, third, and fourth predictive coefficients are coefficients for performing an extrapolation prediction based on linear extrapolation by selecting two frames from the three reference frames as in the case of a prediction based on equation (2). Letting eF Letting eF One of the first to fifth linear predictive coefficients may be used. Alternatively, intra-frame average luminance values DC(F In addition, the predictive coefficients obtained by multiplying the first to fifth linear predictive coefficients by the ratios of the average luminance values of the respective frames may be used. If, for example, the first predictive coefficient is multiplied by the ratios of the average luminance values, a predictive coefficient is given by equation (17) be low. This applies to the remaining predictive coefficients.
Linear prediction expressions or predictive coefficients corresponding to equations (12) to (17) in the prediction method in In order to obtain an optimal motion vector for the macroblock A motion vector may be determined in consideration of the encoding overhead for each motion vector itself as well as the above differential value. A motion vector may be selected, which exhibits a minimum code amount required to actually encode a differential signal and the motion vector. As described above, the motion vector search method can obtain an accurate motion vector with a smaller computation amount than in the method of separately searching for optimal motion vectors for the reference frames F In the second motion vector search, a search is made for one motion vector with respect to the two reference frames as in the first motion vector search. Referring to Assume that a video signal is set at a constant frame rate, and the interval between the frames F According to the second motion vector search method, first of all, a search is made for a motion vector with respect to the reference frame F In the second motion vector search method, motion vectors for the reference frames F A search is made for the motion vector In the third motion vector search, as in the first or second example, searches are made for motion vectors with respect to the reference frames F In this embodiment, if a to-be-encoded motion vector is identical to a motion vector for a macroblock at the same position in the immediately preceding video frame, the motion vector is not encoded, and a flag indicating that the motion vector is identical to that for the macroblock at the same position in the immediately preceding video frame is encoded as a prediction mode. If the motion vector is not identical to that for the macroblock at the same position in the immediately preceding video frame, the motion vector information is encoded. In the method shown in Encoding motion vectors in the above manner reduces the redundancy of motion vectors with respect to a still picture or a picture which makes a temporally uniform movement and hence can improve the encoding efficiency. Although the motion vectors The motion vector A prediction vector is determined by, for example, a method of selecting a motion vector corresponding to the median value of the motion vectors of the adjacent macroblocks B, C, and E or a method of selecting, as a prediction vector, the motion vector of one of the adjacent macroblocks B, C, D, and E which exhibits a minimum residual error signal. Assume that the difference between the prediction vector and the motion vector of the to-be-encoded macroblock becomes 0, the reference frame having the macroblock for which the prediction vector is selected coincides with the reference frame having the video macroblock to be encoded, and all the prediction error signals to be encoded become 0. In this case, the macroblock is skipped without being encoded. The number of macroblocks consecutively skipped is encoded as header information of a video macroblock to be encoded next without being skipped. Assume that a prediction vector for the macroblock A becomes the motion vector If one of the above macroblock skipping conditions is not satisfied, the differential vector between the prediction vector and the motion vector of the video macroblock, the prediction error signal, and an index indicating the reference frame are encoded. As the index indicating the reference frame, the differential value between the reference frame index of an adjacent macroblock for which a prediction vector is selected and the reference frame index of the video frame is encoded. When the motion vector In the reference frame f Letting R With respect to the video macroblock In a decoding operation, the frame F Letting R In the methods shown in Generating motion vectors by scaling in the above manner can reduce the encoding overhead for the motion vectors and improve the encoding efficiency. In addition, if there are a plurality of motion vectors on which scaling is based, the prediction efficiency can be improved by selecting motion vectors exhibiting coincidence in terms of forward reference frame and scaling them. This makes it possible to realize high-efficiency encoding. In this case, a motion vector with respect to one of the forward reference frames F Generating motion vectors by scaling in the above manner can reduce the encoding overhead the motion vectors and improve the encoding efficiency. In addition, if there are a plurality of motion vectors on which scaling is based, and there are no motion vectors exhibiting coincidence in terms of forward reference frame, a motion vector corresponding to a reference frame temporally closest to the forward reference frame for the video macroblock is selected and scaled. This makes it possible to improve the prediction efficiency and realize high-efficiency encoding. Referring to Of to-be-encoded pixel blocks A, B, C, and D in the video frame F With respect to the block D, reference block signals with motion compensation are respectively generated from the frames F In a decoding operation, the identification information of the reference frames and motion vector information are decoded. The above reference pixel block signals are generated on the basis of these pieces of decoded information. A prediction pixel block signal is generated by performing multiplications of weight factors and addition of a DC offset value with respect to the generated reference pixel block signals. The encoded difference signal is decoded, and the decoded differential signal is added to the prediction pixel block signal to decode the video picture. Prediction pixel block signals are generated in encoding and decoding operations by the following calculation. Letting predA be a prediction signal for the pixel block A, and ref [ With respect to the pixel block D, reference pixel blocks are extracted from the frames F In this embodiment, a weight factor and DC offset value are determined for each reference frame in this manner. A method of determining the above weight factors and DC offset values in an encoding operation according to this embodiment will be described with reference to Weight factors and DC offset values are regarded as independent values with respect to a plurality of reference frames, and weight factor/DC offset data table data is encoded for each video frame or slice. For example, with respect to the video frame F First of all, an average value DCcur (a DC component intensity to be referred to as a DC component value hereinafter) of pixel values in the entire to-be-encoded frame F In measurement of an AC component value, a standard deviation like the one described below may be used. In this case, the computation amount in obtaining an AC component value increases.
As is obvious from a comparison between equations (28) and (29), the AC component value measuring method based on equation (28) is effective in reducing the computation amount in obtaining an AC component value. Letting “ref_idx” be an index indicating a reference frame number, a DC component value DCref[ref_idx] of the (ref_idx)-th reference frame and an AC component value ACref[rf_idx] are calculated according to equations (27) and (28) (steps S On the basis of the above calculation result, a DC offset value d[ref_idx] with respect to the (ref_idx)-th reference frame is determined as the difference between DC components as follows (step S A weight factor w[ref_idx] is determined as an AC gain (step S The above calculation is performed with respect to all the reference frames (from ref_idx=0 to MAX_REF_IDX) (steps S Generating prediction signals by using weight factors and DC offset values which vary for each reference frame and performing predictive encoding in the above manner can properly generate prediction signals from a plurality of reference frames and realize high-prediction-efficiency encoding with higher efficiency and high picture quality even with respect to a video signal which varies in signal amplitude for each frame or slice over time or varies in DC offset value. A specific example of the method of encoding information of weight factors and DC offset values will be described next. A weight factor w[i] associated with the ith reference frame is not generally encoded into an integer. For this reason, as indicated by equation (32), the weight factor w[i] is approximated with a rational number w′[i] whose denominator becomes a power of 2 so as to be encoded into a numerator [i] expressed in the form of an integer and a denominator to the power of 2 w_exponential_denominator.
The value of the numerator and the denominator to the power of 2 can be obtained by
In encoding and decoding operations, a prediction picture is generated by using the above encoded approximate value w′[i]. According to equations (32) and (33), the following merits can be obtained. According to the weight factor expression based on equation (32), the denominator of the weight factor is constant for each video frame, whereas the numerator changes for each reference frame. This encoding method can reduce the data amount of weight factors to be encoded, decrease the encoding overhead, and improve the encoding efficiency as compared with the method of independently encoding weight factors for each reference frame into denominators and numerators. If the denominator is set to a power of 2, since multiplications of weight factors with respect to reference pixel block signals can be realized by multiplications of integers and bit shifts, no floating-point operation or division is required. This makes it possible to reduce the hardware size and computation amount for encoding and decoding. The above computations will be described in further detail below. Equation (34) represents a prediction expression obtained by generalizing the predictive expression indicated by equations (24) and (25) and is used for the generation of a prediction pixel block signal for a pixel block corresponding to a reference frame number i. Let Pred Equation (35) is a prediction expression in a case wherein the weight factor w[i] in equation (34) is expressed by the rational number indicated by equation (32). In this case, wn[i] represents w_numerator[i] in equation (32), and wed represents w_exponential_denominator.
In general, since the weight factor w[i] which is effective for an arbitrary fading picture or the like is not an integer, a floating-point multiplication is required. In addition, if w[i] is expressed by an arbitrary rational number, an integer multiplication and division are required. If the denominator indicated by equation (32) is expressed by a rational number which is a power of 2, a weighted predictive computation can be done by an integer multiplication using an integral coefficient wn[i], adding of an offset in consideration of rounding off, a right bit shift of wed bit, and integral addition of a DC offset value, as indicated by equation (35). This eliminates the necessity for floating-point multiplication. A power of 2 which indicates the magnitude of a denominator is commonly set for each video frame or slice regardless of a reference frame number i. Even if, therefore, the reference frame number i takes a plurality of values for each video frame, an increase in code amount in encoding weight factors can be suppressed. Equation (36) indicates a case wherein the weight factor representation based on equation (32) is applied to a prediction based on the linear sum of two reference frames indicated by equation (32), as in the case with equation (35).
In the above prediction based on the linear sum of two reference frames as well, since a weight factor is not generally encoded into an integer, two floating-point multiplications are required according to equation (26). According to equation (36), however, a prediction signal can be generated by the linear sum of two reference frames by performing only an integer multiplication, bit shift, and integer addition. In addition, since information wed concerning the magnitude of a denominator is also commonized, an increase in code amount in encoding a weight factor can be suppressed. According to equation (36), the numerator of a weight factor is expressed by eight bits. If, therefore, a pixel signal value is expressed by eight bits, encoding and decoding can be done with a constant computation precision of 16 bits. In addition, within the same video frame, a denominator, i.e., a shift amount, is constant regardless of reference frames. In encoding or decoding, therefore, even if reference frames are switched for each pixel block, there is no need to change the shift amount, thereby reducing the computation amount or hardware size. If weight factors for all reference frames satisfy
Equation (38) has the function of reducing each weight factor expressed by a rational number to an irreducible fraction. Encoding after such transformation can reduce the dynamic range of the encoded data of weight factors without decreasing the weight factor precision and can further reduce the code amount in encoding weight factors. In this embodiment, since the power of 2 which represents the denominator of the weight factor is constant, there is no need to encode information concerning the denominator to the power of 2 for each video frame, thereby further reducing the code amount in encoding a weight factor table. Assume that in making a rational number representation with a constant numerator (“16” in the above case), the value of the numerator is clipped to eight bits. In this case, if, for example, a pixel signal is expressed by eight bits, encoding and decoding can be done with a constant computation precision of 16 bits. In addition, in this embodiment, since the shift amount concerning a multiplication of a weight factor is constant, there is no need to load a shift amount for each frame in encoding and decoding. This makes it possible to reduce the implementation cost of an encoding or decoding apparatus or software or hardware size. In the picture header (PH), a maximum index count “number_of_max_ref_idx” indicating reference frames and a weight factor/DC offset data table “weighting_table( )”, which are shown in With regard to combinations of weight factor numerators and DC offset values, a plurality combinations of WNs and Ds are encoded on the basis of the number indicated by “number_of_max_ref_idx” contained in the picture header. Each picture data is divided into one or a plurality of slices (SLCs), and the data are sequentially encoded for each slice. In each slice, an encoding parameter associated with each pixel block in the slice is encoded as a slice header (SH), and one or a plurality of macroblock data (MB) are sequentially encoded following the slice header. With regard to macroblock data, information concerning encoding of each pixel in the macroblock, e.g., prediction mode information (MBT) of a pixel block in the macroblock and motion vector information (MV), is encoded. Lastly, the encoded orthogonal transform coefficient (DCT) obtained by computing the orthogonal transform (e.g., a discrete cosine transform) of the to-be-encoded pixel signal or prediction error signal is contained in the macroblock data. In this case, both or one of ““number_of_max_ref_idx” and “weighting_table( )” (WT) contained in the picture header may be encoded within the slice header (SH). In the arrangement of the weight factor table data shown in The header data of an encoded frame or slice, which includes the weight factor/DC offset data table described with reference to FIGS. A reference pixel block signal is extracted from the reference frame indicated by the reference frame index for each pixel block (step S A prediction pixel block signal is generated from the reference pixel block signal by using the weight factor and DC offset value determined in this manner (step S When the respective encoded pixel blocks are sequentially decoded and all the pixel blocks in the encoded frame or slice are decoded, the next picture header or slide header is continuously decoded. The encoding and decoding methods following the above procedures can generate proper prediction pictures in encoding and decoding operations even with respect to a vide signal which varies in signal amplitude over time or varies in DC offset value over time, thereby realizing high-efficiency, high-picture-quality video encoding and decoding with higher prediction efficiency. Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details and representative embodiments shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents. Referenced by
Classifications
Rotate |