METHOD FOR ENCODING AND DECODING VIDEO INFORMATION, A MOTION COMPENSATED VIDEO ENCODER AND A CORRESPONDING DECODER

Abstract: A method for encoding video information is presented, where a piece of current video information is divided into macroblocks and a certain number of available macroblock segmentations for segmenting a macroblock into blocks is defined. Furthermore, for each available macroblock segmentation at least one available prediction method is defined, each of which prediction methods produces prediction motion coefficients for blocks within said macroblock, resulting in a certain finite number of available macroblock-segmentation - prediction-method pairs. For a macroblock, one of the available macroblock-segmentation - prediction-method pairs is selected, and thereafter the macroblock is segmented into blocks and prediction motion coefficients for the blocks within said macroblock are produced using the selected macroblock-segmentation - prediction-method pair. A corresponding decoding method, an encoder and a decoder are also presented.

Description: Method for encoding and decoding video information, a motion compensated video encoder and a corresponding decoder The present invention relates to video coding. In particular, it relates to compression of video information using motion compensated prediction. Background of the invention A video sequence typically consists of a large numher video frames, which are formed of a large number of pixels each of which is represented by a set of digital bits. Because of the large number of pixels in a video frame and the large number of video frames even in a typical video sequence, the amount of data required to represent the video sequence quickly becomes large. For instance, a video frame may include an array of 640 by 480 pixels, each pixel having an RGB (red, green, blue) color representation of eight bits per color component, totaling 7,372,800 bits per frame. Another example is a QCTF (quarter common intermediate format) video frame including 176x144 pixels. QCTF provides an acceptably sharp image on small (a few square centimeters) LCD displays, which are typically available in mobile communication devices. Again, if the color of each pixel is represented using eight bits per color component, the total number of bits per frame is 608,256. Alternatively, a video frame can be presented using a related luminance/- clnominance model, known as the YUV color model. The human visual system is more sensitive to intensity (luminance) variations than it is to color (clnominance) variations. The YUV color model exploits this property by representing an image in terms of a luminance component Y and two chrominance components U, V, and by using a lower resolution for the chrominance components than for the luminance component. In this way the amount of information needed to code the color information in an image can be reduced with an acceptable reduction in image quality. The lower resolution of the chrominance components is usually attained by spatial sub-sampling. Typically a block of 16x16 pixels in the image is coded by one block of 16x16 pixels representing the luminance information and by one block of 8x8 pixels for each clnominance component. The chrominance components are thus sub-sampled by a factor of 2 in the x and y directions. The resulting assembly of one 16x16 pixel luminance block and two 8x8 pixel clnominance blocks is here referred to as a YUV macroblock. A QCTF image comprises 11x9 YUV macro- blocks. The luminance blocks and chrominance blocks are represented with 8 bit resolution, and the total number of bits required per YUV macroblock is (16xl6x8)+2x(8x8x8) = 3072 bits. The number of bits needed to represent a video frame is thus 99x3072 = 304,128 bits. In a video sequences comprising a sequence of frames in YUV coded QCTF format recorded/displayed at a rate of 15 - 30 frames per second, the amount of data needed to transmit information about each pixel in each frame separately would thus be more than 4 Mbps (nήllion bits per second). In conventional videotelephony, where the encoded video information is transmitted using fixed-line telephone networks, the transmission bit rates are typically multiples of 64 kilobits/s. In mobile videotelephony, where transmission takes place at least in part over a radio communications link, the available transmission bit rates can be as low as 20 kilobits/s. Therefore it is clearly evident that methods are required whereby the amount of information used to represent a video sequence can be reduced. Video coding tackles the problem of reducing the amount of information that needs to be transmitted in order to present a video sequence with an acceptable image quality. In typical video sequences the change of image content between successive frames is to a great extent the result of the motion in the scene. This motion may be due to camera motion or due to motion of the objects present in the scene. Therefore, typical video sequences are characterized by significant temporal correlation, which is highest along the trajectory of the motion. Efficient compression of video sequences usually takes advantage of this property of video sequences. Motion compensated prediction is a widely recognized technique for compression of video. It utilizes the fact that in a typical video sequence, image mtensity/chrominance values in a particular frame segment can be predicted using image intensity/- chrominance values of a segment in some other aheady coded and transmitted frame, given the motion trajectory between these two segments. Occasionally, it is, advisable to transmit a frame that is coded without reference to any other frames,, t prevent deterioration of image quality due to accumulation of errors and to provide additional functionahty such as random access to the video sequence. Such a frame is called an INTRA frame. A schematic diagram of an example video coding system using motion compensated prediction is shown in Figures 1 and 2 of the accompanying drawings. Figure 1 illustrates an encoder 10 employing motion compensation and Figure 2 illustrates a corresponding decoder 20. The operating principle of video coders using motion compensation is to minimize the prediction error frame E n (x,y), which is the difference between the current frame I„(x,y) being coded and a prediction frame P n ( x >y) - The prediction error frame is thus En(*,y) = in( χ y) - p n( χ ,y) . (i) The prediction frame P„(x,y) is built using pixel values of a reference frame R„(x,y) , which is one of the previously coded and transmitted frames (for example, a frame preceding the current frame), and the motion of pixels between the current frame and the reference frame. More precisely, the prediction frame is constructed by finding prediction pixels in the reference frame R n (x,y) and moving the prediction pixels as the motion information specifies. The motion of the pixels may be presented as the values of horizontal and vertical displacements Ax(x, y) and Ay x,y) of a pixel at location (x,y) in the current frame I„(x,y). The pair of numbers [Ax(x, y), Ay(x,y)] is called the motion vector of this pixel. The motion vectors [Ax(x,y),Ay(x,y)]are calculated in the Motion Field Estimation block 11 in the encoder 10. The set of motion vectors of all pixels of the current frame [ΔxQ, Δ )] is called the motion vector field. Due to the very large number of pixels in a frame it is not efficient to transmit a separate motion vector for each pixel to the decoder. Instead, in most video coding schemes the current frame is divided into larger image segments S k and information about the segments is transmitted to the decoder. The motion vector field is coded in the Motion Field Coding block 12 of the encoder 10. Motion Field Coding refers to the process of representing the motion in a frame using some predetermined functions or, in other words, representing it with a model. Almost all of the motion vector field models commonly used are additive motion models. Motion compensated video coding schemes may define the motion vectors of image segments by the following general formula: M-\ y( χ ,y) = ∑ b igi( χ ,y) (3) where coefficients α,. and b t are called motion coefficients. They are transmitted to the decoder (information stream 2 in Figures 1 and 2). Functions f t and g. are called motion field basis functions, and they are known both to the encoder and decoder. An approximate motion vector field (Ax(x, y),Ay(x,y)) can be constructed using the coefficients and the basis functions. The prediction frame P„(x,y) is constructed in the Motion Compensated Prediction block 13 in the encoder 10, and it is given by P„(x,y) = R„[x + Ax(x,y),y + Δy(x, v)], (4) where the reference frame R„(x,v)is available in the Frame Memory 17 of the encoder 10 at a given instant. In the Prediction Error Coding block 14, the prediction error frame E n (x,y) is typically compressed by representing it as a finite series (transform) of some 2- dimensional functions. For example, a 2-dimensional Discrete Cosine Transform (DCT) can be used. The transform coefficients related to each function are quantized and entropy coded before they are transmitted to the decoder (information stream 1 in Figures 1 and 2). Because of the error introduced by quantization, this operation usually produces some degradation in the prediction error frame E n (x,y) . To cancel this degradation, a motion compensated encoder comprises a Prediction Error Decoding block 15, where a decoded prediction error frame E n (x,y) is constructed using the transform coefficients. This decoded prediction error frame is added to the prediction frame P n (x,y) and the resulting decoded current frame I n x, y) is stored in the Frame Memory 17 for further use as the next reference frame The information stream 2 carrying information about the motion vectors is combined with information about the prediction error in the multiplexer 16 and an information stream (3) containing typically at least those two types of information is sent to the decoder 20. In the Frame Memory 24 of the decoder 20 there is a previously reconstructed reference frame R n (x,y) . The prediction frame P n (x, y) is constructed in the Motion Compensated Prediction block 21 in the decoder 20 similarly as in the Motion Compensated Prediction block 13 in the encoder 10. The transmitted transform coefficients of the prediction error frame E n (x,y) are used in the Prediction Error Decoding block 22 to construct the decoded prediction error frame E„(x, y) . The pixels of the decoded current frame I„(x,y) are reconstructed by adding the, prediction frame P„(x,y) and the decoded prediction error frame E n (x,y) T„(x,y) = P n (x,y) + E n (x,y) = R n [x + Ax(x,y),y + Ay(x,y)] + E n (x,y). (5) This decoded current frame may be stored in the Frame Memory 24 as the next reference frame R n+l (x,y) . Let us next discuss i more detail the motion compensation and transmission of motion information. In order to minimize the amount of information needed in sending the motion coefficients to the decoder, coefficients can be predicted from the coefficients of neighboring segments. When this kind of motion field prediction is used, the motion field is expressed as a sum of a prediction motion field and a refinement motion field. The prediction motion field is constructed using the motion vectors associated with neighboring segments of the current frame. The prediction is performed using the same set of rules and possibly some auxiliary information in both encoder and decoder. The refinement motion field is coded, and the motion coefficients related to this refinement motion field are transmitted to the decoder. This approach typically results in savings in transmission bit rate. The dashed lines in Figure 1 illustrate some examples of the possible information some motion estimation and coding schemes may require in the Motion Field Estimation block 11 and in the Motion Field Coding block 12. Polynomial motion models are a widely used family of motion models. (See, for example H. Nguyen and E. Dubois, "Representation of motion information for image coding," i Proc. Picture Coding Symposium '90, Cambridge, Massachusetts, March 26-18, 1990, pp. 841-845 and Centre de Morphologie Mathematiqu^ (CMM), "Segmentation algorithm by multicriteria region merging," Document SIM(95)19, COST 2 liter Project Meeting, May 1995). The values of motion vectors are described by functions which are linear combinations of two dimensional polynomial functions. The translational motion model is the simplest model and requires only two coefficients to describe the motion vectors of each segment. The values of motion vectors are given by the formulae: Ax(x,y) = a 0 Ay(x,y) = b 0 ( 6 ) This model is widely used in various international standards (ISO MPEG-1, MPEG- 2, MPEG-4, ITU-T Recommendations H.261 and H.263) to describe motion of 16x16 and 8x8 pixel blocks. Systems utilizing a translational motion model typically perform motion estimation at full pixel resolution or some integer fraction of full pixel resolution, for example with an accuracy of 1/2 or 1/3 pixel resolution. Two other widely used models are the affine motion model given by the equation: Ax(x,y) = a 0 + a x + a^y ΔXx, v) = b 0 -i-b 1 x-r-b 2 v and the quadratic motion model given by the equation: Ax(x, y) = a 0 + a γ x + a 2 y + a 3 xy + a x 2 + a 5 y 2 (8) Ay(x, y) = b 0 +b } x + b 2 y + b 3 xy + b 4 x 2 + b 5 y 2 The affine motion model presents a very convenient trade-off between the number of motion coefficients and prediction performance. It is capable of representing some of the common real-life motion types such as translation, rotation, zoom and shear with only a few coefficients. The quadratic motion model provides good prediction performance, but it is less popular in coding than the affine model, since it uses more motion coefficients, while the prediction performance is not substantially better than, for example, that of the affine motion model. Furthermore, it is computationally more costly to estimate the quadratic motion than to estimate the affine motion. The Motion Field Estimation block 11 calculates initial motion coefficients a 0 ..., a„ b ..., b n for [Δx(x, ι y), Δy(t, y)] of a given segment S k , which initial motion coefficients minimize some measure of prediction error in the segment. In the simplest case, the motion field estimation uses the current frame I n (x,y) and the reference frameR n ( c, ι y) as input values. Typically the Motion Field Estimation block outputs the [Δx(x,y), Δy(je, v)] initial motion coefficients for [Δx(x,.y), Ay(x, y)] to the Motion Field Coding block 12. The segmentation of the current frame into segments S k can, for example, be carried out in such a way that each segment corresponds to a certain object moving in the video sequence, but this kind of segmentation is a very complex procedure. A typical and computationally less complex way to segment a video frame is to divide it into macroblocks and to further divide the macroblocks into rectangular blocks. In this description term macroblock refers generally to a part of a video frame. An example of a macroblock is the previously described YUV macroblock. Figure 3 presents an example, where a video frame 30 is to divided into macroblocks 31 having a certain number of pixels. Depending on the encoding method, there may be many possible macroblock segmentations. Figure 3 presents a case, where there are four possible ways to segment a macroblock: macroblock 31A is segmented into blocks 32, macroblock 3 IB is segmented with a vertical dividing line into blocks 33, and macroblock 31C is segmented with a horizontal dividing line into blocks 34. The fourth possible segmentation is to treat a macroblock as a single block. The macroblock segmentations presented in Figure 3 are given as examples; they are by: no means an exhaustive listing of possible or feasible macroblock segmentations. The Motion Field Coding block 12 makes the final decisions on what kind of motion vector field is transmitted to the decoder and how the motion vector field is coded. It can modify the segmentation of the current frame, the motion model and motion coefficients in order to minimize the amount of information needed to describe a satisfactory motion vector field. The decision on segmentation is typically carried out by estimating a cost of each alternative macroblock segmentation and by choosing the one yielding the smallest cost. As a measure of cost, the most commonly used is a Lagrangian cost function L(S k ) = D(S k ) + λR(S k ), which links a measure of the reconstruction error D(S k ) with a measure of bits needed for transmission R S k ) using a Lagrangian multiplier λ. The Lagrangian cost represents a trade-off between the quality of transmitted video information and the bandwidth needed in transmission. In general, a better image quality, i.e. small D(S k ), requires a larger amount of transmitted information, i.e. large R(Sk). In present systems, which utilize a translational motion model, prediction motion coefficients are typically formed by calculating the median of surrounding, aheady transmitted motion coefficients. This method achieves fairly good performance in terms of efficient use of transmission bandwidth and image quality. The main advantage of this method is that the prediction of motion coefficients is straightforward. The more accurately the prediction motion coefficients correspond to the motion coefficients of the segment being predicted, the fewer bits are needed to transmit information about the refinement motion field. It is possible to select, for example among the neighboring blocks, the block whose motion coefficient are closest the motion coefficients of the block being predicted. The segment selected for the prediction is signaled to the decoder. The main drawback of this method is that finding the best prediction candidate among the already transmitted image segments is a complex task: the encoder has to perform exhaustive calculations to evaluate all the possible prediction candidates and then select the best prediction block. This procedure has to be carried out separately for each block. There are systems where the transmission capacity for the compressed video stream is very limited and where the encoding of video information should not be too complicated. For example, wireless mobile terminals have limited space for additional components and as they operate by battery, they typically cannot provide computing capacity comparable to that of desktop computers. In radio access networks of cellular systems, the available transmission capacity for a video stream can be as low as 20 kbps. Consequently, there is need for a video encoding method, which is computationally simple, provides good image quality and achieves good I performance in terms of required transmission bandwidth. Furthermore, to keep the encoding method computationally simple, the encoding method should provide satisfactory results using simple motion models. SUMMARY OF THE INVENTION An object of the present invention is to provide a method that provides a flexible and versatile motion coefficient prediction for encoding/decoding video information using motion compensation. A further object of the invention is to provide a motion compensated method for encoding/decoding video information that provides good performance in terms of transmission bandwidth and image quality while being computationally fairly simple. A further object is to present a method for encoding/- decoding video information that provides satisfactory results when a comparatively simple motion model, such as the translational motion model, is used. These and other objects of the invention are achieved by associating the motiori coefficient prediction method used for a certain macroblock with the segmentation of the macroblock. A method for encoding video information according to the invention comprises the step of: - dividing a piece of current video information into macroblocks, and it is characterized in that it further comprises the steps of: - defining a certain number of available macroblock segmentations for segmenting a macroblock into blocks, - defining for each available macroblock segmentation at least one available prediction method, each of which prediction methods produces prediction motion coefficients for blocks within said macroblock, resulting in a certain finite number of available macroblock-segmentation - prediction-method pairs, - selecting for a macroblock one of the available macroblock-segmentation prediction-method pairs, and - segmenting the macroblock into blocks and producing prediction motion coefficients for the blocks within said macroblock using the selected macroblock- segmentation - prediction-method pair. In a method according to the invention, a piece of current video information, typically a current frame, is divided - or, in other words, segmented - into macroblocks. These macroblocks can have any predetermined shape, but typically they are quadrilateral. Furthermore, a certain number of possible segmentations of the macroblocks into blocks is defined, and these are called the available macroblock segmentations. In this description the segmentation of a macroblock into blocks is i called macroblock segmentation. The blocks are also typically quadrilateral. The motion of a block within a piece of current video information is typically estimated using a piece of reference video information (typically a reference frame), and the motion of the block is usually modeled using a set of basis functions and motion coefficients. The motion model used in a method according to the invention is advantageously a translational motion model, but there are no restrictions on the use of any other motion model. In a method according to the invention, at least some motion coefficients are represented as sums of prediction motion coefficients and difference motion coefficients and a certain prediction method is used to deteirnine the prediction motion coefficients. Typically a piece of current video information, for example a current frame, is encoded by segmenting a frame into macroblocks and then processing the macroblocks in a certain scanning order, for example one by one from left-to-right and top-to-bottom throughout the frame, hi other words, in this example the encoding process is performed in rows, progressing from top to bottom. The way in which the macroblocks are scanned is not restricted by the invention. A macroblock may be segmented, and the motion field of blocks within a macroblock is estimated. Prediction motion coefficients for a certain block are produced using the motion coefficients of some of the blocks in the aheady processed neighboring macroblocks^ or the motion coefficients of some of the aheady processed blocks within the same macroblock. The segmentation of the aheady processed macroblocks and the motion coefficients of the blocks relating to these macroblocks are aheady known. A distinctive feature in encoding and decoding methods according to the invention is that for each macroblock segmentation there is a finite number of prediction methods. Certain predetermined allowable pairs of macroblock segmentations and prediction methods are thus formed. Here the term prediction method refers to two issues: firstly, it defines which blocks are used in producing the prediction motion coefficients for a certain block within a current macroblock and, secondly, it defines how the motion coefficients related to these prediction blocks are used in producing the prediction motion coefficients for said block. Thus, a macroblock-segmentation - prediction-method pair indicates unambiguously both the segmentation of a macroblock and how the prediction motion coefficients for the blocks within the macroblock are produced. The prediction method may specify, for example, that prediction motion coefficients for a block are derived from an average calculated using motion coefficients of certain specific prediction blocks, or that prediction motion coefficients for a block are derived from the motion coefficient of one particular prediction block. The word average here refers to a characteristic describing a certain set of numbers; it may be, for example, an arithmetic mean, a geometric mean, a weighted mean, a median or a mode. Furthermore, it is possible that the prediction coefficients of a block are obtained by projecting motion coefficients or average motion coefficients from one block to another. By restricting the number of possible prediction methods per macroblock segmentation, the complexity of the encoding process is reduced compared, for example, to an encoding process where the best prediction motion coefficient candidate is determined freely using any neighboring blocks or combinations thereof. In such a case, there is a large number of prediction motion coefficient candidates. When the prediction blocks are defined beforehand for each predictioii method and there is a limited number of prediction methods per macrobloc segmentation, it is possible to estimate the cost of each macroblock-segmentation - prediction-method pair. The pair minimizing the cost can then be selected. Advantageously, there is only one available prediction method per macroblock segmentation. This reduces the complexity of the encoding method even further. Furthermore, in this situation it is possible to conclude the prediction method of a block directly from the selected macroblock segmentation. There is thus necessarily no need to transmit information about the prediction method to the decoding entity. Thus, in this case the amount of transmitted information is not increased by adding adaptive features, i.e. various prediction methods used within a frame, to the encoded information. By selecting the available prediction blocks and defining the macroblock- segmentation-specific prediction methods suitably, it is possible to implement a higri performance video encoding method using at most three predetermined prediction blocks to produce prediction motion coefficients and allowing only one prediction method per macroblock segmentation. For each macroblock, the macroblock- segmentation - prediction-method pair minimizing a cost function is selected. The simple adaptive encoding of motion information provided by the invention is efficient in terms of computation and in terms of the amount of transmitted information and furthermore yields good image quality. A macroblock, which is processed in a method according to the invention, may be, for example, the luminance component of an YUV macroblock. A method according to the invention may also be applied, for example, to the luminance component and to one or both of the clnominance components of an YUV macroblock. The method may be applied alternatively to other color models o luminance only (monochrome) images. The use of the invention is not restricted to any particular color models. A method for decoding encoded video information according to the invention is characterized in that it comprises the steps of: - specifying information about available macroblock-segmentation - prediction method pairs for producing prediction motion coefficients for blocks within a macroblock, - receiving information indicating a macroblock-segmentation - prediction-method pair selected for of a macroblock, and - deterrnining a prediction method relating to a macroblock segmentation of said macroblock and producing prediction motion coefficients for blocks witiiin said macroblock using the indicated prediction method. The invention relates also to an encoder for performing motion compensated encoding of video information, which comprises - means for receiving a piece of current video information, - means for dividing a piece of current video information into macroblocks, and - means for specifying available macroblock segmentations for segmenting a macro- block into blocks, and which is characterized in that it further comprises - means for specifying at least one available prediction method for each macroblock segmentation, resulting in a certain finite number of available macroblock- segmentation - prediction-method pairs, - means for selecting one macroblock-segmentation - prediction method pair among the available macroblock-segmentation - prediction method pairs, - means for segmenting a macroblock using the selected macroblock segmentation, and - means for producing macroblock-segmentation-specific prediction motion coefficients for blocks within said macroblock using the selected prediction method. A decoder for perforrning the decoding of encoded video information according to the invention comprises input means for receiving encoded video information, and it is characterized in that it further comprises - means for determining the macroblock-segmentation - prediction-method pair of the macroblock based on the received encoded video information, which comprises information indicating a macroblock-segmentation - prediction-method pair relating to a macroblock and information about difference motion coefficients of blocks within the macroblock, and - means for producing prediction motion coefficients for blocks within said macro- block using a prediction method indicated by the macroblock-segmentation - prediction-method pair. The invention also relates to a storage device and a network element comprising an encoder according to the invention and to a mobile station comprising an encoder and/or a decoder according to the invention. The novel features which are considered as characteristic of the invention are set forth in particular in the appended Claims. The invention itself, however, both as to its construction and its method of operation, together with additional objects and advantages thereof, will be best understood from the following description of specific embodiments when read in connection with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 illustrates an encoder for motion compensated encoding of video according to prior art, Figure 2 illustrates a decoder for motion compensated decoding of video according to prior art, Figure 3 illustrates a segmentation of a video frame into macroblocks and blocks according to prior art, Figure 4 illustrates a flowchart of a motion compensated video encoding method according to the invention, Figure 5 illustrates a flowchart of a motion compensated video decoding method according to the invention, Figure 6 illustrates various prediction methods that involve different prediction blocks and that can be used to provide prediction motion coefficients for a current block C in a method according to the invention, Figure 7 illustrates a plurality of macroblock-segmentation - prediction-method pairs that can be used in a method according to a first preferred embodiment of the invention, Figure 8 illustrates a plurality of macroblock-segmentation - prediction-method pairs that can be used in a method according to a second preferred embodiment of the invention, Figure 9 illustrates a motion field estimation block and a motion field coding block according to the invention, Figure 10 illustrates a motion compensated prediction block according to the invention, Figure 11 illustrates a mobile station according to the invention, and Figure 12 illustrates schematically a mobile telecommunication network comprising a network element according to the invention. DETAILLED DESCRIPTION Figures 1 - 3 are discussed in detail in the description of motion compensated video encoding and decoding according to prior art. Figure 4 presents a flowchart of a method for encoding video information according to the invention. Only features related to motion encoding are presented in Figure 4. It does not present, for example, the formation or coding of the prediction error frame. Typically these features are included in encoding methods according to the invention and, of course, may be implemented in any appropriate manner. In step 401 the available macroblock segmentations are defined. The available macroblock segmentations can comprise, for example, such macroblock segmentations as presented in Figure 3. In step 402 at least one prediction method for predicting motion coefficients is defined for each available macroblock segmentation, resulting in a certain number of available macroblock-segmentation - prediction-method pairs. Typically, for certain macroblock segmentations an average prediction method is used and for other macroblock segmentations the prediction motion coefficients are derived from the motion coefficients of a single aheady processed block, which is located either in the current macroblock or in one of the neighboring macroblocks. Advantageous prediction methods related to each macroblock segmentation can be found, for example, by testing various prediction methods beforehand. The motion model used to represent the motion field may affect the selection of the prediction methods. Furthermore, it is possible that a suitable motion model is selected during the encoding. Typically steps 401 and 402 are carried out off-line, before encoding video streams. Usually they are carried out already when, for example, an encoder is designed and implemented. Steps 403 - 413 are carried out for each frame of a video stream. In step 403 a current video frame is segmented into macroblocks, and in step 404 encoding of a current macroblock, which is the macroblock currently undergoing " motion compensated encoding, starts. In step 405 the current macroblock is segmented into blocks using one of the available macroblock segmentations. At this point there necessarily is no idea of which is the most appropriate macroblock segmentation for the current macroblock, so one way to select the best macroblock segmentation is to investigate them all and then select the most appropriate according to some criterion. In step 406 the motion vector fields of the blocks within the current macroblock are estimated and the motion fields are coded, e.g. in the manner described earlier in this application. This results in initial motion coefficients a, and bj for each of said blocks. In step 407 prediction motion coefficients a ip and b ip for at least one of the blocks within the current macroblock are produced. If there is only one prediction method per macroblock segmentation, this is a straightforward task. Otherwise one of the prediction methods available for the current macroblock segmentation is selected and the prediction motion coefficients are derived according to this prediction method, hi step 408 the initial motion coefficients of the blocks within current macroblock are represented as sums of the prediction motion coefficients and difference motion coefficients α^ and bi d . A simple way to search for the best macroblock-segmentation - prediction-method pair is presented in steps 409 - 411. In step 408 the cost L(S k ) related to current macroblock-segmentation - prediction-method pair is calculated. This cost represents the trade-off between the reconstruction error of the decoded image and the number of bits needed to transmit the encoded image, and it links a measure of the reconstruction error D(S^) with a measure of bits needed for transmission R(S k ) using a Lagrangian multiple λ. Typically the measure of bits needed for transmission R(S k ) refers to bits required to represent at least the difference motion coefficients and bits required to represent the associated prediction error. It may also involve some signaling information. Each possible macroblock-segmentation - prediction-method pair is checked, as the loop of steps 405-409 is repeated until prediction motion coefficients and cost functions corresponding to all available macroblock-segmentation - prediction- method pairs are evaluated (step 410). In step 411 the macroblock-segmentation - prediction-method pair yielding the smallest cost is selected. In step 412 information indicating the selected macroblock-segmentation - prediction-method pair for the current macroblock and the difference motion coefficients a^ and b^ of at least one of the blocks within the current macroblock are transmitted to a receiver or stored into a storage medium. The information indicating the selected macroblock-segmentation - prediction-method pair may, for example, indicate explicitly both the macroblock segmentation and the prediction method. If there is only one possible prediction method per macroblock segmentation, it can be enough to transmit information indicating only the macroblock segmentation of the current block, hi step 413 it is checked, if all the macroblocks within the current frame are processed. If they are not, then in step 404 the processing of next macroblock is started. In a method according to the invention, it is possible that for some macroblocks or for some blocks within a frame the motion coefficients are transmitted as such. This may happen, for example, if none of the macroblock-segmentation - prediction method pairs yields a reduction in the amount of information to be transmitted compared with the amount of information required to represent the initial motion coefficients a t and b t and associated prediction error information.lt is also possible that for some macroblocks or blocks prediction methods are used, where macroblock-segmentation - prediction-method pairs are not defined. Figure 5 presents a flowchart of a method for decoding an encoded video stream according to the invention. In step 501 information about the available macroblock segmentations is specified, for example by retrieving the information from a memory element where it has been previously stored. The decoding method needs to know which kind of macroblock segmentations a received encoded video stream can comprise. In step 502 information about the available macroblock-segmentation - prediction-method pairs is specified. Steps 501 and 502 are typically carried out off-line, before receiving an encoded video stream. They may be carried out, for example, during the design of implementation of the decoder. Steps 503 - 507 are carried out during decoding of a video frame. In step 503, information indicating the segmentation of a current macroblock and prediction method is received. If there is only one available prediction method per macroblock segmentation, information indicating the prediction method is not needed, as previously explained. In step 504 information indicating difference motion coefficients a ia - and b id foι at least one of the blocks within the current macroblock is received. In step 505 the decoding entity determines, using the information received in step 503, the prediction method using which the prediction motion coefficient for blocks within the current macroblock are to be produced. The prediction method indicates the prediction blocks related to a certain block and how prediction coefficients for the current block are produced using the motion coefficients of the prediction blocks. There is no need to transmit information about the values of the prediction motion coefficients related to the current block within the current macroblock, because they can be determined in the decoder based on the information received concerning the selected segmentation and prediction method for the current macroblock. In step 506 the prediction motion coefficients a ip and , are produced, and in step 507 the motion coefficients a t and b, are produced using the difference motion coefficients and the prediction motion coefficients. Figure 6 presents schematically four different prediction methods 60A, 60B, 60C and 60D for providing prediction motion coefficients for a current block C. These four prediction methods are given as examples of prediction methods that may be used in a method according to the invention, and the prediction blocks (i.e. those blocks that are used to from prediction motion coefficients for the current block) are defined according to then spatial relationship with the current block C. In these prediction methods, the prediction blocks are dictated by certain pixel locations. These pixel locations are just one way of specifying the prediction blocks for a current block, and they are described here to aid the understanding of how the prediction blocks are selected in certain prediction methods. In the methods which are presented in Figure 6, the pixel locations are the same for all the methods* Prediction block L is defined as the block which comprises the pixel location 61.> Pixel location 61 is the uppermost pixel adjacent to block C from the left-hand side. Similarly, prediction block U is defined as the block comprising pixel location 62, which is the leftmost pixel superjacent to block C. Furthermore, prediction block UR is defined as the block comprising the pixel location 63, which is the pixel corner to corner with the top right corner pixel of block C. In the first prediction method 60A, three prediction blocks L, U and UR are used. The prediction motion coefficients a ip , b ip produced for block C may be derived from an average of the motion coefficients of the L, U and UR prediction blocks. The average may be, for example, the median of the motion coefficient values of block L, U and UR. In the second prediction method 60B, the prediction motion coefficients are derived from the motion coefficients of prediction block Li Similarly, in the third prediction method the prediction motion coefficients are derived from the motion coefficients of prediction block U and in the fourth prediction method they are derived from the motion coefficients of prediction block UR. The concept of presenting only one pixel location relating to a certain block, when only one prediction block is used in producing prediction motion coefficients for said block, and presenting more than one pixel locations relating to a block, when more than one prediction blocks are used in producing prediction motion coefficients for said block, is used also in Figures 7 and 8. The segmentation of the neighboring macroblocks presented in Figure 6 for prediction method 60A is just an example. When the prediction blocks are defined by pixel locations as presented in Figure 6, the prediction blocks can be determined unambiguously in spite of the macroblock segmentation of the neighboring macro- blocks or of the current macroblock. The three pixel locations in Figure 6 are an example, the number of pixels can be different and they can be located at other places. Typically the pixel locations specifying the prediction blocks are associated with a current block C and they are at the edge of the current block C. In a method according to a first preferred embodiment of the invention, there is a certain number of available macroblock segmentations and at least one prediction method relates to each macroblock segmentation. Figure 7 illustrates schematically three macroblock segmentations 70, 71 and 72, which are an example of the available macroblock segmentations in a first preferred embodiment of the invention. In macroblock segmentation 70, the rectangular macroblock is actually not segmented, but is treated as a single block, h macroblock segmentation 71, the macroblock is divided with one vertical line into two rectangular blocks. Similarly, in macroblock segmentation 72 the macroblock is divided with one horizontal line into two rectangular blocks. The macroblock size may be 16x16 pixels and a translational motion model, for example, may be used. Figure 7 furthermore illustrates some examples of prediction method alternatives related to the macroblock segmentations in a method according to the first preferred embodiment. As in Figure 6, the prediction blocks for blocks within a current macroblock are specified using certain pixel locations which bear a spatial relationship to the blocks within the current macroblock. As an example, the pixel locations in Figure 7 are the same as in Figure 6. When the current macroblock is segmented according to example 70, the prediction coefficients for the single block that comprises the current macroblock can be derived using an average of the motion coefficients of the L, U and UR prediction blocks (macroblock-segmentation - prediction-method pair 70A), or they can be derived from the motion coefficients of prediction block L (pah 70B), prediction block U (pah 70C) or prediction block UR (pair 70D). Figure 7 also presents some prediction method alternatives for example macroblock segmentations 71 and 72. As can be seen in Figure 7, each block wilhin a macro- block preferably has its own associated prediction blocks. The blocks within the current macroblock, which are aheady processed, may themselves act as prediction blocks for other blocks within the same macroblock. As an example, consider the macroblock-segmentation - prediction-method pah 71 A, where prediction motion coefficients for each block CI and C2 within the current macroblock are derived from an average of the motion coefficients of the block-specific prediction blocks. In this prediction method block CI acts as a prediction block for the block C2. The macroblock-segmentation - prediction-method pahs 71B, 71C, 71D and 71E are further examples of possible prediction methods related to the macroblock segmentation 71. Similarly, various prediction method alternatives are presented for macroblock segmentation 72. In a method according to the first preferred embodiment of the invention, usually the Lagrangian cost function for each of the macroblock-segmentation - prediction- method pairs 70A, 70B, 70C, 70D, 71A, 71B, 71C, 71D, 71E, 72A, 72B, 72C and 72D is evaluated and then the pair minimizing the cost function is chosen as the^ actual macroblock segmentation used in encoding the macroblock, as described above in connection with an encoding method according to the invention. Furthermore, it is possible that the segmentation of the neighboring macroblocks affects the number of the macroblock-segmentation - prediction-method pahs available for the current macroblock. In other words, the segmentation of the neighboring macroblocks may lead to a situation in which that some of the pahs illustrated in Figure 7 cannot be used for a current macroblock or where some extra macroblock-segmentation - prediction-method pahs are available for the current macroblock. If the macroblock segmentation of neighboring macroblocks limits the selection of the macroblock-segmentation - prediction-method pahs available for a certain macroblock segmentation to, for example, only one macroblock- segmentation - prediction-method pah, it may be unnecessary to ttansmijt information indicating the selected prediction method in addition to the information indicating the segmentation of the current macroblock. The decoding entity can conclude the prediction method from the segmentation of the previously received macroblocks when, for example, a method according to the first preferred embodiment of the invention is used. In a method according to a second preferred embodiment of the invention, there is only one available prediction method per macroblock segmentation. In this case, the information indicating a selected marcoblock segmentation can be used to indicate implicitly the selected prediction method (cf. step 412 in Figure 4). Typically in this case the cost function is evaluated in the encoding process for each available macroblock-segmentation - prediction-method pah, and the pah minimizing the cost function is selected for use in encoding the current macroblock. Figure 8 illustrates an example of a plurality of macroblock-segmentation - prediction- method pairs that can be used in a method according to the second preferred embodiment. Figure 8 illustrates six possible macroblock segmentations: single block (macro- block segmentation 70), macroblock is divided once with a vertical dividing line (71) or with a horizontal dividing line (72), macroblock is divided once with a vertical dividing line and once with a horizontal dividing line (83), macroblock is divided once with a vertical dividing line and thrice with a horizontal dividing line (84) and thrice with a vertical dividing line and once with a horizontal dividing line (85). As in Figures 6 and 7, the small black squares in Figure 8 illustrate schematically the prediction methods. hi this embodiment of the invention, prediction method 70A is associated with macroblock segmentation 70, prediction method 7 IB is used with macroblock segmentation 71 and prediction method 72B is used with macroblock segmentation 72. The selection of these macroblock-segmentation - prediction method pahs is quite intuitive. When the current macroblock is segmented using macroblock segmentation 71, it is reasonable to expect that the left block CI and the right blocM C2 of the macroblock move somehow differently. It is quite natural to assume that the left block CI would move in a similar way to the prediction block L and to derive the prediction motion coefficients for block CI from the motion coefficients of prediction block L of block CL Similarly, it makes sense to use the motion coefficients of prediction block UR of block C2 in deriving the prediction motion coefficients for the right block C2. Similar reasoning applies to the prediction method associated with macroblock segmentation 72. When the current macroblock is not segmented into smaller blocks (macroblock segmentation 70), it is not clear which of the neighboring blocks would provide good prediction motion coefficients, and the prediction motion coefficients are calculated as an average using the three prediction blocks L, U and UR in prediction method 70A. In the prediction method related to macroblock segmentation 83, the prediction motion coefficients for each block within the current macroblock are derived as average values using three prediction blocks. For block C4 within the current macroblock, there is no available UR prediction block because that block is not yet processed. Therefore, the prediction motion coefficients for block C4 are derived using blocks CI, C2 and C3 within the current macroblock. The prediction motion coefficients for blocks CI, C3, C5 and C7 related to macroblock segmentation 84 are derived as averages of the prediction blocks, as specified in Figure 8. For blocks C2, C4, C6 and C8 related to macroblock segmentation 84, prediction motion coefficients are derived from the motion coefficients of the block on the left hand side of each block, i.e. block CI, C3, C5 and C7 of the current macroblock, respectively. The prediction motion coefficients for the blocks relating to macro- block segmentation 85 are produced as averages, as specified in Figure 8. Again, there is no UR prediction block available for block C8 in macroblock segmentation 85, and therefore blocks C3, C4 and C7 within the same macroblock are used in producing prediction motion coefficients for that block. A second sensibld alternative for the prediction method related to macroblock segmentation 85 is, for example, median prediction for the blocks in the upper row of the macroblock 85 and subsequent use of the motion coefficients of these blocks to derive prediction motion coefficients for the blocks in the lower row. The number of prediction blocks and the choice of blocks to be used as prediction blocks may further depend on the position of the current macroblock in the frame and on the scanning order of the blocks/macrblocks within the frame. For example, if the encoding process starts from the top left-hand corner of the frame, the block in the top left-hand corner of the frame has no available prediction blocks. Therefore the prediction motion coefficients for this block are usually zero. For the blocks on the upper frame boundary, prediction using a prediction block to the left (prediction block L) is usually applied. For the blocks on the left-hand frame boundary, there are no left (L) prediction blocks available. The motion coefficients of these blocks may be assumed to be zero, if an average prediction is used for the blocks at the left frame boundary. Similarly, for the blocks at the right-hand frame boundary the upper right (UR) prediction block is missing. The prediction motion coefficients for these blocks can be derived, for example, in a manner similar to that described in connection with block C4 of macroblock segmentation 83 in Figure 8. The details of prediction methods used in a method according to the invention are not restricted median prediction or single block predictions. They are presented in the foregoing description as examples. Furthermore, any of the aheady processed blocks can be used in constructing the prediction motion field/coefficients for a certain block. The macroblock-segmentation - prediction-method pahs discussed above are also presented as examples of feasible pahs, hi a method according to other embodiments of the invention the macroblock segmentations, prediction methods and mapping between the macroblock segmentations and predictioii methods may be different from those described above. Figure 9 illustrates an example of a Motion Field Estimation block 11 'and a Motion Field Coding block 12' according to the invention. Figure 10 illustrates an example of a Motion Compensated Prediction block 13721' according to the invention. An encoder according to the invention typically comprises all these blocks, and a decoder according to the invention typically comprises a Motion Compensated Prediction block 21'. In the Motion Field Coding block 11' there is a Macroblock Segmentation block 111, which segments an mcoming macroblock into blocks. The Available Macroblock Segmentations block 112 comprises information about the possible macroblock segmentations S k - In Figure 9 the number of possible macroblock segmentations is illustrated by presenting each segmentation as a arrow heading away from the Macroblock Segmentation block 111. The various macroblock segmentations are processed in a Motion Vector Field Estimation block 113, and the initial motion coefficients 0 ..., „ b 0 ..., b„ corresponding to each macroblock segmentation are further transmitted to the Motion Compensated Prediction block 12'. There the Motion Vector Field Coding block 121 codes the estimated motion fields relating to each segmentation. The Segmentation - Prediction Method Mapping block 122 is responsible for indicating to the Prediction Motion Field block 123 the correct prediction method related to each macroblock segmentation. In the Difference Motion Coefficient Construction block 124 the motion fields of the blocks are represented as difference motion coefficients. The costs of the macroblock-segmentation - prediction-method pahs are calculated in the Macroblock Segmentation Selection block 125, and the most appropriate macroblock- segmentation - prediction-method pah is selected. The difference motion coefficients and some information indicating the selected segmentation are transmitted further. The information indicating the selected segmentation may also be implicit. For example, if there is only one macroblock segmentation producing four blocks and the format of the transmitted data reveals to the receiver that it is receiving four pahs of difference motion coefficients relating to a certain macro- block, it can determine the correct segmentation. If there are various available prediction methods per macroblock segmentation, there may be a need to transmit some information that also indicates the selected prediction method. Information about the prediction error frame is typically also transmitted to the decoder, to enable an accurate reconstruction of the image. The Motion Compensated Prediction block 13721' receives information about difference motion coefficients and (implicit or explicit) information about the segmentation of a macroblock. It may also receive information about the selected prediction method if there is more than one prediction method available per macroblock segmentation. The segmentation information is used to produce correct prediction motion coefficients in the Prediction Motion Coefficient Construction block 131. The Segmentation - Prediction Method Mapping block 132 is used to store information about the allowed pairs of macroblock segmentations and prediction methods. The constructed prediction motion coefficients and received difference motion coefficients are used to construct the motion coefficients in the Motion Coefficient Construction block 133. The motion coefficients are transmitted further to a Motion Vector Field Decoding block 134. An encoder or a decoder according to the invention can be realized using hardware or software, or using a suitable combination of both. An encoder or decoder implemented in software may be, for example, a separate program or a software building block that can be used by various programs. In the above description and in the drawings the functional blocks are represented as separate units, but the functionality of these blocks can be implemented, for example, in one software program unit. It is also possible to implement an encoder according to the invention and a decoder according to the invention in one functional unit. Such a unit is called a codec. A codec according to the invention may be a computer program or a computer program element, or it may implemented at least partly using hardware. Figure 11 shows a mobile station MS according to an embodiment of the invention. A central processing unit, microprocessor μP controls the blocks responsible for different functions of the mobile station: a random access memory RAM, a radio frequency block RF, a read only memory ROM, a user interface UI having a display DPL and a keyboard KBD, and a digital camera block CAM. The microprocessor's operating instructions, that is program code and the mobile station's basic functions have been stored in the mobile station in advance, for example during the manirfactiiring process, in the ROM. In accordance with its program, the micro? processor uses the RF block for ttansmitting and receiving messages on a radio path: The microprocessor monitors the state of the user interface UI and controls the digital camera block CAM. In response to a user command, the microprocessor instructs the camera block CAM to record a digital image into the RAM. Once the image is captured or alternatively during the capturing process, the microprocessor segments the image into image segments and performs motion compensated encoding for the segments in order to generate a compressed image as explained in the foregoing description. A user may command the mobile station to display the image on its display or to send the compressed image using the RF block to another mobile station, a wired telephone or another telecommunications device. In a preferred embodiment, such transmission of image data is started as soon as the first segment is encoded so that the recipient can start a corresponding decoding process with a minimum delay. In an alternative embodiment, the mobile station comprises an encoder block ENC dedicated for encoding and possibly also for decoding of digital video data. Figure 12 is a schematic diagram of a mobile telecormnunications network according to an embodiment of the invention. Mobile stations MS are in con iunication with base stations BTS by means of a radio link. The base stations BTS are further connected, through a so-called Abis interface, to a base station controller BSC, which controls and manages several base stations. The entity formed by a number of base stations BTS (typically, by a few dozen base stations) and a single base station controller BSC, contiolling the base stations, is called a base station subsystem BSS. Particularly, the base station controller BSC manages radio communication channels and handovers. On the other hand, the base station controller BSC is connected, through a so-called A interface, to a mobile services switching centre MSC, which co-ordinates the formation of connections to and from mobile stations. A further connection is made, through the mobile service switching centre MSC, to outside the mobile communications network. Outside the mobile con mnications network there may further reside other network(s) connected to the mobile communications network by gateway(s) GTW, for example the Internet or a Pubhc Switched Telephone Network (PSTN). In such an external network, or in the telecommunications network, there may be located video decoding or encoding stations, such as computers PC. In an embodiment of the invention, the mobile telecommunications network comprises a video server VSRVR to provide video data to a MS subscribing to such a service. This video data is compressed using the motion compensated video compression method as described earlier in this document. The video server may function as a gateway to an online video source or it may comprise previously recorded video clips. Typical videotelephony applications may involve, for example, two mobile stations or one mobile station MS and a videotelephone connected to the PSTN, a PC connected to the Internet or a H.261 compatible terminal connected either to the Internet or to the PSTN. In view of the foregoing description it will be evident to a person skilled in the ait that various modifications may be made within the scope of the invention. While a number of preferred embodiments of the invention have been described in detail, it should be apparent that many modifications and variations thereto are possible, all of which fall within the true spirit and scope of the invention.

Claims: Claims 1. A method for encoding video information, comprising the step of: - dividing a piece of current video information into macroblocks, characterized in that it further comprises the steps of: - defining a certain number of available macroblock segmentations for segmenting a macroblock into blocks, - defining for each available macroblock segmentation at least one available prediction method, each of which prediction methods produces prediction motion coefficients for blocks within said macroblock, resulting in a certain finite number of available macroblock-segmentation - prediction-method pahs, - selecting for a macroblock one of the available macroblock-segmentation - prediction-method pahs, and - segmenting the macroblock into blocks and producing prediction motion coefficients for the blocks within said macroblock using the selected macroblock- segmentation - prediction-method pah. 2. A method for encoding video information according to claim 1, characterized in that the prediction method coefficients for a block within said macroblock are produced using motion coefficients of a set of prediction blocks, a prediction block being a neighboring block of said block within said macroblock. 3. A method for encoding video information according to claim 1 or 2, characterized in that at least one of the available prediction methods defines the prediction motion coefficients for a block within said macroblock to be derived from the motion coefficients of only one prediction block. 4. A method for encoding video information according to claim 1, 2 or 3, characterized in that at least one of the available prediction methods defines that the prediction motion coefficients for a block within said macroblock are derived from the motion coefficients of at least a first prediction block and a second prediction block. 5. A method for encoding video information according to claim 4, characterized in that the prediction motion coefficients for a block are derived from a median of the motion coefficients of at least a first prediction block and a second prediction block. 6. A method for encoding video information according to claim 1, 2, 3 or 4,- characterized in that at least one of the available prediction methods specifies thai the prediction motion coefficients for a block within said macroblock are derived from motion coefficients of prediction blocks within said macroblock. 7. A method for encoding video information according to claim 1, 2, 3, 4 or 6, characterized in that a prediction block to be used in producing prediction motion coefficients for a block is defined as a block comprising a certain predetermined pixel, whose location is defined relative to said block. 8. A method for encoding video information according to claim 7, characterized in that the location of a predetermined pixel for a first block is different from the location of a predetermined pixel for a second block. 9. A method for encoding video information according to claim 1, 2, 3, 4, 6 or characterized in that the number of prediction blocks per block is at most a certain number in any of the macroblock-segmentation - prediction-method pahs. 10. A method for encoding video information according to claim 9, characterized in that the number of prediction blocks per block is at most three. 11. A method for encoding video information according to claim 10, characterized in that a prediction block to be used in producing prediction motion coefficients for a block is defined as a block comprising a certain predetermined pixel, whose location is defined relative to said block. 12. A method for encoding video information according to claim 11, character- ized in that at least for certain first blocks relating to certain first macroblock- segmentation - prediction-method pahs the predetermined pixels comprise the uppermost pixel adjacent to the block from the left, the leftmost pixel superjacent to the block and the pixel corner to corner with the upper right-hand pixel of the block. 13. A method for encoding video information according to claim 1, 2, 3, 4, 6, 7 or 9, characterized in that the macroblocks and the blocks resulting from the macro- block segmentations are quadrilateral. 14. A method for encoding video information according to claim 13, characterized in that the macroblocks and the blocks resulting from the macroblock segmentations are rectangular. 15. A method for encoding video information according to claim 14, characterized in that the available macroblock segmentations comprise a first macroblock segmentation resulting in one block, a second macroblock segmentation dividing a macroblock once with a vertical line, a third macroblock segmentation dividing a macroblock once with a horizontal line, a fourth macroblock segmentation dividing a macroblock once with a vertical line and once with a horizontal line, a fifth macroblock segmentation dividing a macroblock once with a vertical line and thrice with a horizontal line, and a sixth macroblock segmentation dividing a macroblock thrice with a vertical line and once with a horizontal line. 16. A method for encoding video information according to claim 14, characterized in that one prediction method is defined for each available macroblock segmentation, a prediction block for a block is defined as a block comprising a certain predetermined pixel, whose location is defined relative to said block, prediction coefficients for certain first blocks are derived from the motion coefficients of only one block-specific prediction block and prediction coefficients for certain second blocks are derived from the motion coefficients of more than one block-specific prediction blocks. 17. A method for encoding video information according to claim 1, 2, 3, 4, 6, 7, 9 or 13, characterized in that the macroblock segmentation of neighboring macro- blocks affects the selection of the available macroblock-segmentation - prediction- method pahs for a macroblock, so that a selection of available macroblock^ segmentation - prediction method pahs for a first macroblock is different from a selection of available macroblock-segmentation - prediction method pairs for a second macroblock. 18. A method for encoding video information according to claim 1, 2, 3, 4, 6, 7, 9, 13 or 17, characterized in that the selection of the macroblock-segmentation - prediction-method pah is based on minimizing a cost function. 19. A method for encoding video information according to claim 1, 2, 3, 4, 6, 7, 9, 13, 17 or 18, characterized in that one macroblock-segmentation - prediction- method pah is defined for each available macroblock segmentation. 20. A method for encoding video information according to claim 19, characterized in that it further comprises the step of: - ttansrnitting information indicating the selected macroblock segmentation to a decoder or storing information indicating the selected macroblock-segmentation - prediction-method pah in a storage medium. 21. A method for encoding video information according to claim 1, 2, 3, 4, 6, 7, 9, 13, 17, 18 or 19, characterized in that if further comprises the step of: - ttansnύtting information indicating the selected macroblock-segmentation - prediction-method pah to a decoder or storing information indicating the selected macroblock-segmentation - prediction-method pair in a storage medium. 22. A method for encoding video information according to claim 1, 2, 3, 4, 6, 7, 9, 13, 17, 18, 19 or 21, characterized in that if further comprises the steps of: - estimating the motion of blocks within the macroblock using a piece of reference video information and the piece of current video information, - modeling the motion of the blocks within the macroblock using a set of basis functions and motion coefficients, and - representing the motion coefficients as a sum of the prediction motion coefficients and difference motion coefficients. 23. A method for encoding video information according to claim 22, characterized in that the modeling the motion of a block is carried out using a translational motion model. 24. A method for encoding video information according to claim 22, characterized in that the selection of the macroblock-segmentation - prediction-method pah is based on minimizing a cost function which includes at least a measure of a reconstruction error relating to a macroblock-segmentation - prediction-method pair and a measure of an amount of information required to indicate the macrohlock- segmentation - prediction-method pah and to represent the difference motion coefficients of the blocks within said macroblock. 25. A method for encoding video information according to claim 22, characterized in that it further comprises the steps of: - ttansmitting information indicating the selected macroblock-segmentation - prediction-method pair to a decoder for decoding or storing information indicating the selected macroblock-segmentation - prediction-method pah in a storage medium, and - ttansmitting information about the difference motion coefficients to a decoder for decoding or storing information about the difference motion coefficients in a storage means. 26. A method for encoding video information according to claim 22, characterized in that it further comprises the steps of: - reconstructing the motion of the blocks within the macroblock using the motion coefficients, basis functions and information about the macroblock segmentation, - deterr ining a piece of prediction video information using the piece of reference video information and the determined motion of the blocks, - deternrining a piece of prediction error video information based on the difference between the piece of prediction video information and the piece of current video information, - coding the piece of prediction error video information and representing it with prediction error coefficients, and - transmitting information about the prediction error coefficients to a decoder for decoding or storing hrformation about the prediction error coefficients in a storage means. 27. A method for decoding encoded video information, characterized in that it comprises the steps of: - specifying information about available macroblock-segmentation - prediction- method pahs for producing prediction motion coefficients for blocks vάthin a macroblock, - receiving information indicating a macroblock-segmentation - prediction-method pah selected for a macroblock, and - determining a prediction method relating to a macroblock segmentation of said macroblock and producing prediction motion coefficients for blocks within said macroblock using the indicated prediction method. 28. A method for decoding encoded video information according to claim 27, characterized in that at least two macroblock-segmentaiton - prediction-method pahs relating to a certain available macroblock segmentation are defined. 29. A method for decoding encoded video hrformation according to claim 27, characterized in that only one macroblock-segmentation - prediction-method pah is defined for each available macroblock segmentation. 30. A method for decoding encoded video information according to claim 27, characterized in that it further comprises the steps of: - receiving information about difference motion coefficients describing motion of blocks within a macroblock, and - reconstructing motion coefficients for the blocks wilhin said macroblock as a sum of the prediction motion coefficients and the difference motion coefficients. 31. A method for decoding encoded video hrformation according to claim 30, characterized in that it further comprises the steps of: - receiving information about prediction error coefficients describing a piece of prediction error information, and - determining a decoded piece of current video information using at least the motion coefficients and the piece of prediction error information. 32. An encoder for performing motion compensated encoding of video information, comprising: - means for receiving a piece of current video information, - means for dividing a piece of current video information into macroblocks, and - means for specifying available macroblock segmentations for segmenting a macro- block into blocks, characterized in that it further comprises - means for specifying at least one available prediction method for each macroblock segmentation, resulting in a certain finite number of available macroblock- segmentation - prediction-method pahs, - means for selecting one macroblock-segmentation - prediction method pah among the available macroblock-segmentation - prediction method pahs, - means for segmenting a macroblock using the selected macroblock segmentation, and - means for producing macroblock-segmentation-specific prediction motion coefficients for blocks within said macroblock using the selected prediction method. 33. An encoder for performing motion compensated encoding of video information according to claim 32, characterized in that it further comprises: - memory means for storing a piece of reference video information, - means for estimating a motion field of blocks in the piece of current video hrformation using at least the piece of reference video information, - means for producing motion coefficients describing the estimated motion fields, and - means for producing difference motion coefficients using the motion coefficients and the prediction motion coefficients. 34. A decoder for performing decoding of encoded video information, comprising: - input means for receiving encoded video information, characterized in that it further comprises - means for determining the macroblock-segmentation - prediction-method pah of the macroblock based on the received encoded video information, which comprises information indicating a macroblock-segmentation - prediction-method pair relating to a macroblock and information about difference motion coefficients of blocks within the macroblock, and - means for producing prediction motion coefficients for blocks within said macro- block using a prediction method indicated by the macroblock-segmentation - prediction-method pah. 35. A decoder for performing decoding of encoded video information according to claim 34, characterized in that it further comprises: - means for determining difference motion coefficients of the blocks within said macroblock based on the received encoded video information, and - means for constructing motion coefficients using the prediction motion coefficients and the difference motion coefficients. 36. A computer program element for performing motion compensated encoding of video information, comprising: - means for receiving a piece of current video information, - means for dividing a piece of current video information into macroblocks, and - means for specifying available macroblock segmentations, characterized in that it further comprises - means for specifying at least one available prediction method for each macroblock segmentation, resulting in a certain finite number of available macroblock-segmentation - prediction-method pahs, - means for selecting one macroblock-segmentation - prediction method pah among the available macroblock-segmentation - prediction method pahs, - means for segmenting a macroblock using the selected macroblock segmentation, and - means for producing macroblock-segmentation-specific prediction motion coefficients for blocks within said macroblock using the selected prediction method. 37. A computer program element as specified in claim 36, embodied on a computer readable medium. 38. A computer program element for performing decoding of encoded video information, comprising: - input means for receiving encoded video information, characterized in that it further comprises - means for determining the macroblock-segmentation - prediction-method pah of the macroblock based on the received encoded video information, which comprises information indicating a macroblock-segmentation - prediction-method pah relating to a macroblock and information about difference motion coefficients of blocks within the macroblock, and - means for producing prediction motion coefficients for blocks within said macro- block using a prediction method indicated by the macroblock-segmentation - 1 - prediction-method pair. 39. A computer program element as specified in claim 38, embodied on a computer readable medium. 40. A storage device comprising an encoder according to claim 32. 41. A mobile station comprising an encoder according to claim 32. 42. A mobile station comprising a decoder according to claim 34. 43. A network element comprising an encoder according to claim 32. 44. A network element according to claim 43, wherein the network element is a network element of a mobile teleconm unication network.

Inventors: LAINEMA JANI, LAINEMA, JANI
Applicants: LAINEMA JANI, NOKIA MOBILE PHONES LTD, LAINEMA, JANI, NOKIA MOBILE PHONES LTD.
Application year: 2001
Main classification: H04N7
IPC codes: G06T9, H03M7, H04N7