[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2006080663A1 - Method and apparatus for effectively encoding multi-layered motion vectors - Google Patents

Method and apparatus for effectively encoding multi-layered motion vectors Download PDF

Info

Publication number
WO2006080663A1
WO2006080663A1 PCT/KR2005/003225 KR2005003225W WO2006080663A1 WO 2006080663 A1 WO2006080663 A1 WO 2006080663A1 KR 2005003225 W KR2005003225 W KR 2005003225W WO 2006080663 A1 WO2006080663 A1 WO 2006080663A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
motion vector
mother
unsynchronized
sub
Prior art date
Application number
PCT/KR2005/003225
Other languages
French (fr)
Inventor
Kyo-Hyuk Lee
Sang-Chang Cha
Woo-Jin Han
Original Assignee
Samsung Electronics Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from KR1020040103059A external-priority patent/KR100664929B1/en
Priority claimed from KR1020050016269A external-priority patent/KR100703740B1/en
Application filed by Samsung Electronics Co., Ltd. filed Critical Samsung Electronics Co., Ltd.
Publication of WO2006080663A1 publication Critical patent/WO2006080663A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/30Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability
    • H04N19/31Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability in the temporal domain
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/187Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a scalable video layer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • H04N19/52Processing of motion vectors by encoding by predictive encoding

Definitions

  • Apparatuses and methods consistent with the present invention relate to video compression, and more particularly, to improving the compression efficiency of a motion vector by efficiently predicting a motion vector in an enhanced layer from a motion vector in a base layer in a video coding method using a multi-layer structure.
  • multimedia data requires a storage media that have a large capacity and a wide bandwidth for transmission since the amount of multimedia data is usually large. Accordingly, a compression coding method is requisite for transmitting multimedia data including text, video, and audio.
  • a basic principle of data compression is removing data redundancy.
  • Data can be compressed by removing spatial redundancy in which the same color or object is repeated in an image, temporal redundancy in which there is little change between adjacent frames in a moving image or the same sound is repeated in audio, or mental visual redundancy which takes into account human eyesight and its limited perception of high frequency.
  • temporal redundancy is removed by motion compensation based on motion estimation and compensation
  • spatial redundancy is removed by transform coding.
  • transmission media are necessary. Transmission performance is different depending on transmission media.
  • Currently used transmission media have various transmission rates. For example, an ultrahigh-speed communication network can transmit data of several tens of megabits per second while a mobile communication network has a transmission rate of 384 kilobits per second.
  • data coding methods having scalability such as wavelet video coding and subband video coding, may be suitable to a multimedia environment.
  • Scalable video coding is a technique that allows a compressed bitstream to be decoded at different resolutions, frame rates, and signal-to-noise ratio (SNR) levels by truncating a portion of the bitstream according to ambient conditions such as transmission bit rates, error rates, and system resources.
  • MPEG-4 Motion Picture Experts Group 4
  • Part 10 standardization for scalable video coding is under way. In particular, much effort is being made to implement scalability based on a multi-layered structure.
  • a bitstream may consist of multiple layers, i.e., base layer and first and second enhanced layers with different resolutions (QCIF, CIF, and 2CIF) or frame rates.
  • motion vector is obtained for each of the multiple layers to remove temporal redundancy.
  • the motion vector MV may be separately searched for each layer (former approach) or a motion vector obtained by a motion vector search for one layer is used for another layer (without or after being upsampled/downsampled) (latter approach).
  • the former approach has the advantage of obtaining accurate motion vectors while suffering from overhead due to motion vectors generated for each layer. Thus, it is a very challenging task to efficiently redundancy between motion vectors for each layer.
  • FIG. 1 shows an example of a scalable video codec using a multi-layered structure.
  • a base layer has a quarter common intermediate format (QCIF) resolution and a frame rate of 15 Hz
  • a first enhanced layer has a common intermediate format (CIF) resolution and a frame rate of 30 Hz
  • a second enhanced layer has a standard definition (SD) resolution and a frame rate of 60 Hz.
  • SD standard definition
  • a frame rate of 30 Hz and a bit rate of 0.7 Mbps may be truncated to meet the bit rate of 0.5 Mbps. In this way, it is possible to implement spatial, temporal, and SNR scalabilities.
  • motion prediction from the base layer is very important.
  • the motion vector is used only for an inter-macroblock encoded using temporally neighboring frames as a reference, it is not used for an intra-macroblock encoded without reference to adjacent frames.
  • one proposed method for efficiently representing a motion vector includes predicting a motion vector for a current layer from a motion vector for a lower layer and encoding a difference between the predicted value and the actual motion vector.
  • FTG. 2 is a diagram for explaining a method for efficiently representing a motion vector using motion prediction.
  • a motion vector in a lower layer having the temporal position as a current layer is used as a predicted motion vector for a current layer motion vector.
  • An encoder obtains motion vectors MV , MV , and MV for a base layer, a first enhanced layer, and a second enhanced layer at predetermined accuracies and performs temporal transformation using the motion vectors MV , MV , and MV to remove temporal redundancies in the respective layers.
  • the encoder sends the base layer motion vector MV , a first enhanced layer motion vector component D , and a second enhanced layer motion vector component D to the predecoder (or video stream server).
  • the predecoder may transmit only the base layer motion vector, the base layer motion vector and the first enhanced layer motion vector component D , or the base layer motion vector, the first enhanced layer motion vector component D and the second enhanced layer motion vector component D to a decoder to adapt to network situations.
  • the decoder then uses the received data to reconstruct a motion vector for an appropriate layer. For example, when the decoder receives the base layer motion vector and the first enhanced layer motion vector component D , the first enhanced layer motion vector component D is added to the base layer motion vector MV in order to reconstruct the first enhanced layer motion vector MV . The reconstructed motion vector MV is used to reconstruct texture data for the first enhanced layer. Disclosure of Invention
  • a lower layer frame having the same temporal position as the current frame may not exist.
  • motion prediction through a lower layer motion vector cannot be performed. That is, since a motion vector in the frame 40 cannot be predicted, a motion vector in the first enhanced layer is inefficiently represented as a redundant motion vector.
  • the present invention provides an apparatus and method for efficiently predicting a motion vector in an enhanced layer from a motion vector in a base layer.
  • the present invention also provides a method for predicting a motion vector when a lower layer frame having the same temporal position as a current layer frame is not present.
  • a method for efficiently encoding multi-layered motion vectors including: obtaining a motion vector in a mother frame of a base layer that is temporally closest to an unsynchronized frame of a current layer; obtaining a predicted motion vector from the motion vector in the mother frame considering the referencing direction in the mother frame and in the un- synchronized frame and distances between the mother frame and a reference frame and between the unsynchronized frame and a reference frame; generating a residual between the motion vector in the unsynchronized frame and the predicted motion vector; and encoding the motion vector in the mother frame and the residual.
  • FTG. 1 shows an example of a scalable video codec using a multi-layered structure
  • FlG. 2 is a diagram for explaining a method for efficiently representing a motion vector using motion prediction
  • FTG. 3 is a schematic diagram for explaining a fundamental concept of vector base- layer motion according to the present invention.
  • FTG. 4 is a diagram for explaining the detailed operation of VBM according to the present invention.
  • FTG. 5 is a schematic diagram showing an example in which bi-directional prediction is applied
  • FTG. 6 is a schematic diagram showing an example in which backward prediction is applied
  • FTG. 7 is a schematic diagram showing an example in which forward prediction is applied
  • FTG. 8 shows an example in which a sub-macroblock pattern in a mother frame corresponding to a sub-macroblock in an unsynchronized frame is further divided into sections;
  • FTG. 9 shows an example in which a sub-macroblock pattern in an unsynchronized frame is further divided into sections
  • FTG. 10 shows an example of obtaining a pixel-based virtual motion vector
  • FTG. 11 is a block diagram of a video encoder according to an exemplary embodiment of the present invention.
  • FTG. 12 is a block diagram of a video decoder according to an exemplary embodiment of the present invention.
  • the present invention proposes a new method for improving interlayer motion prediction.
  • the main purpose of the present invention is to provide a method for effectively predicting a motion field of a frame having no corresponding base layer frame.
  • the method may reduce the number of motion bits when the frame rate of a current layer is different than a base layer.
  • This method is based on Scalable Video Model 3.0 of ISO/IEC 21000-13 Scalable Video Coding' ( 1 SVM 3.0') and includes generating a virtual motion vector using adjacent base layer frames and calculating a predicted motion vector using virtual base-layer motion (VBM).
  • VBM virtual base-layer motion
  • SVM 3.0 is based on an interlayer motion prediction technique that uses correlation between interlayer motion fields.
  • the interlayer motion fields can be represented by refining or using a base layer motion as it is. It is known that the interlayer motion prediction is more efficient when the motion fields of two different layers are significantly similar to each other. When two layers have different frame rates, there may be no corresponding base layer frame for a frame. However, in this case, currently available SVM 3.0 uses independent motion prediction and quantization instead of interlayer motion prediction.
  • the present invention proposes a method of using a base layer motion for multi- layered scalable video coding.
  • a virtual motion vector in a missing layer frame is produced using motion vectors in adjacent base layer frames.
  • the virtual motion vector may be used for predicting a motion field of a current layer.
  • the motion field of the current layer may be replaced by the virtual motion vector or refined at a predetermined accuracy (e.g., 1/4 pixel accuracy).
  • This technique uses correlation between two interlayer motion fields to efficiently reduce the total number of motion bits, which is hereinafter called 'virtual base-layer motion' (VBM).
  • VBM 'virtual base-layer motion'
  • FlG. 3 is a schematic diagram for explaining a fundamental concept of VBM according to the present invention. It is assumed in this example that a current layer L n has CIF resolution and frame rate of 30 Hz and a lower layer L has QCIF resolution n-1 and frame rate of 15 Hz.
  • a predicted motion vector is generated using a motion vector in the base layer frame as a reference.
  • a predicted motion vector is generated using motion vectors in at least one of N base layer frames (where N is an integer greater than 1) located closest to the temporal position.
  • N is an integer greater than 1
  • motion vectors in current layer frames A and A are respectively predicted from motion vectors in lower layer frames B and B having the same temporal positions as the current layer frames A and A .
  • motion estimation has substantially the same meaning as that of estimation motion vector generation.
  • a predicted motion vector for a frame A having no corresponding lower layer frame at the same temporal position is generated using motion vectors in the frames B and B closest to the temporal position.
  • motion vectors in the frames B and B are interposed to generate a virtual motion vector (a motion vector in a virtual frame B ) at the same temporal position as the frame A and the virtual motion vector is used to predict a motion vector for the frame
  • the concept of the VBM may also apply to a motion prediction method that can be used when a current layer has an independent Motion-Compensated Temporal Filtering (MCTF) structure.
  • MCTF Motion-Compensated Temporal Filtering
  • an MCTF process may be performed in a bottom-up manner, i.e., from coarse to fine temporal levels.
  • a method similar to that shown in FIG. 3 may be used to predict a motion in an upper fine temporal level from a motion in a lower coarse temporal level.
  • FIG. 4 is a diagram for explaining the detailed operation of VBM according to the present invention.
  • VBM The basic idea of VBM is to use a strong correlation between motion fields of a current layer and a base layer.
  • a current layer frame having no corresponding base layer frame is termed an 'unsynchronized frame' while a current layer frame having a corresponding base layer frame is termed a 'synchronized frame'. Because there is no corresponding base layer frame for an unsynchronized frame, a virtual motion vector is used for predicting the unsynchronized frame according to the present invention.
  • a current layer has double the frame rate of a base layer.
  • a previously encoded base layer motion field is used.
  • the virtual motion vector may be used as a motion vector in an unsynchronized frame of the current layer.
  • the motion vector in the unsynchronized frame is separately obtained and the virtual motion vector is used to efficiently predict the motion vector in the unsynchronized frame.
  • the accuracy of motion vector is higher at the base layer than at the current layer.
  • motion vectors in the base layer may be determined with 1 pixel accuracy and motion vectors in the current layer may be refined to 1/2 pixel accuracy.
  • a motion vector in a virtual frame i.e., a virtual motion vector is determined by dividing a motion vector in an adjacent base layer frame by 2.
  • the virtual motion vector is determined by dividing the motion vector in the adjacent base layer frame by 2 and adding a negative sign to the result.
  • the virtual motion vector is determined by multiplying the motion vector in the mother frame by the result obtained by dividing a distance (temporal distance) between the unsynchronized frame and a reference frame by a distance between the mother frame and a reference frame.
  • the virtual motion vector is determined by adding a negative sign to the product.
  • a macroblock mode for each macroblock in the virtual frame (Virtual macroblock mode') is decided in the same way as a macroblock mode in a base layer mother frame.
  • the mother frame refers to a frame with a closest temporal distance from the unsynchronized frame (one frame if there are two closest frames).
  • the virtual macroblock mode and the virtual motion vector should be appropriately upsampled.
  • FIG. 4 shows that bi-directional prediction is used for inter-prediction, forward prediction from a temporally previous frame or backward prediction from a temporally subsequent frame may also be used.
  • FIGS. 5 through 7 respectively show examples for generating virtual motion vectors using bi-directional, backward, and forward prediction methods.
  • a forward motion vector V in a base layer mother frame is used to calculate motion vectors V and V in an unsynchronized frame.
  • a backward fl bl motion vector V in the mother frame is used to calculate motion vectors V and V in b f2 b2 an unsynchronized frame.
  • the motion vectors V , V , V , and V are defined by Equation (1): fl bl f2 b2 [45]
  • Vbi ' ⁇ -l/2 XV f
  • bi-directional prediction is not necessarily used for both the base layer and the current layer. That is, when only forward or backward prediction is performed for the current layer, only a part of Equation (1) may be used.
  • the virtual motion vector may also be used to predict the current layer motion vector, which means the virtual motion vector is used as a predictor for the current layer motion vector.
  • FIGS. 6 and 7 illustrate examples in which one-directional and bi-directional predictions are respectively performed for a base layer and a current layer. Referring to FlG. 6, backward prediction is performed in the base layer.
  • a backward motion vector V in a base layer mother frame is used to calculate motion vectors V and V in an b ⁇ . Vl unsynchronized frame.
  • motion vectors V and V are obtained using the backward motion fl bl vector V with a negative sign, i.e., -V .
  • the motion vectors V , V , V , and V are
  • V b . 1/2 X V b
  • forward prediction is performed in the base layer.
  • a forward motion vector V in a base layer mother frame is used to calculate motion vectors V f J fl and V in an unsynchronized frame.
  • motion vectors V and V are obtained using the forward f2 b2 ° motion vector V with a negative sign, i.e., -V V t ..
  • V b i ' ⁇ -l/2 X V f
  • V f2 ' ⁇ 1/2 X Vf
  • a predicted motion vector is defined as a frame that will be replaced by a motion vector in an unsynchronized frame or used for predicting the motion vector in the unsyn- chronized frame (obtaining a residual between the motion vector in the unsynchronized frame and the predicted motion vector).
  • the predicted motion vector may be a virtual motion vector or another motion vector derived from the virtual motion vector.
  • the virtual motion vectors obtained by the above Equations (1) through (3) and a sub-macroblock pattern in a mother frame are used in a current layer frame.
  • a sub-macroblock pattern in an unsynchronized frame is determined by a Rate-Distortion (R-D) optimization instead of using a sub-macroblock pattern in a mother frame.
  • R-D Rate-Distortion
  • a pixel-based predicted motion vector is estimated.
  • a virtual motion vector is used as a motion vector in an unsynchronized frame of a current layer.
  • the virtual motion vector is obtained by multiplying the motion vector in the mother frame by the ratio of temporal referencing distance between layers (e.g., 1/2).
  • the virtual motion vector is obtained by multiplying the power by -1.
  • sub-macroblock patterns in an unsynchronized frame and a mother frame are determined by a separate R-D optimization process. While a virtual motion vector is derived from the mother frame after completing the R-D optimization, the sub-macroblock patterns in the mother frame are different from those in the unsynchronized frame. When the sub-macroblock patterns are different, a motion vector from a sub-macroblock in the unsynchronized frame can be induced from a virtual motion vector overlapped by the sub-macroblock pattern in the unsynchronized frame. To achieve this, the present invention uses the weighted average of the areas of overlapped regions.
  • FIG. 8 shows an example in which a sub-macroblock pattern in a mother frame corresponding to a sub-macroblock in an unsynchronized frame is further divided into sections.
  • Mv and A respectively denote a virtual motion vector obtained as defined by the Equations (1) through (3) and the area of a specific sub-macroblock.
  • a motion vector Mv in an unsynchronized frame is replaced or predicted by a predicted motion vector derived as shown in Equation (4) below by weighted averaging the virtual motion vectors Mv .
  • motion vectors Mv through Mv in the unsynchronized frame may a e be all replaced or predicted by a single virtual motion vector MV .
  • the third exemplary embodiment focuses on each pixel of a virtual frame.
  • a check is made as to all motion vectors passing through a pixel of the virtual frame.
  • a virtual base motion vector for one pixel ('pixel motion vector') is estimated by a distance- weighted average (distance between centers of the pixel and sub-macroblock).
  • Various distance measures such as Euclidean distance or City Block distance may be used for distance estimation.
  • a sub-macroblock pattern in an unsynchronized frame is decided by an R-D optimization process.
  • virtual base motion vectors for the sub-macroblock are estimated using all pixel motion vectors within the same sub-macroblock in the virtual frame.
  • FIG. 10 illustrates a method for estimating virtual base motion vectors.
  • a motion vector for a pixel of interest 50 in a virtual frame is derived from motion vectors passing through the pixel.
  • a pixel-based virtual motion vector is estimated using Equation (5):
  • Mv , Mv , and d respectively denote a pixel motion vector, a motion pixel i i vector passing through the pixel of interest 50 in the virtual frame, and a distance between a pixel 60 at the same position as the pixel of interest 50 in the mother frame and the center of a sub-macroblock associated with the motion vector Mv . i
  • a motion vector in an unsynchronized frame is replaced or predicted by a motion vector Mv averaged by dividing the sum of all pixel motion vectors within a sub- a macroblock of the unsynchronized frame by the number of all of the pixel motion vectors as defined in Equation (6) below. All of the pixel motion vectors are averaged and the averaged motion vector Mv can be used as the motion vector in the unsyn- a chronized frame or as a predictor for the motion vector.
  • the above-described methods according to the first through third exemplary embodiments and a conventional technique for independently encoding a motion vector in an unsynchronized frame without reference to a base layer can be selected adaptively for efficient coding.
  • R-D costs are calculated for the conventional technique and the exemplary embodiments of the present invention to choose a coding mode that offers smaller R-D costs.
  • the selection can be made at the macroblock level. In this case, some macroblocks may be predicted using virtual motion vectors and others are predicted independently using actual motion vectors.
  • FIG. 11 is a block diagram of a video encoder 100 according to an exemplary embodiment of the present invention. While FTG. 11 shows the use of one base layer and one enhanced layer, it will be readily apparent to those skilled in the art that the pr esent invention can be applied between a lower layer and an upper layer when two or more layers are used.
  • a downsampler 110 downsamples an input video to a resolution and frame rate suitable for each layer.
  • a base layer having a QCIF resolution and a frame rate of 15 Hz
  • an enhanced layer having a CIF and a frame rate of 30 Hz
  • an original input video is downsampled to CIF and QCIF resolutions and then downsampled to frame rates of 15 Hz and 30 Hz.
  • Downsampling the resolution may be performed using an MPEG downsampler or wavelet downsampler.
  • Downsampling the frame rate may be performed using frame skip or frame interpolation.
  • a motion estimator 121 performs motion estimation on a base layer frame to obtain motion vectors of the base layer frame.
  • the motion estimation is the process of finding the closest block to a block in a current frame, i.e., a block with a minimum error.
  • Various techniques including fixed-size block matching and hierarchical variable size block matching (HVSBM) may be used in the motion estimation.
  • the motion estimator 131 performs motion estimation on an enhanced layer frame to obtain motion vectors of the enhanced layer frame.
  • the motion vectors of the base layer frame and the enhanced layer frame are obtained in this way to predict a motion vector in the enhanced layer frame using a virtual motion vector.
  • the motion estimator 131 for the enhanced layer may be omitted.
  • a motion vector predictor 140 uses a motion vector in the base layer frame that is a mother frame to generate a predicted motion vector and uses the predicted motion vector to predict a motion vector in an unsynchronized frame among the enhanced layer frames.
  • the prediction refers to obtaining a residual between the motion vector in the unsynchronized frame and the virtual motion vector.
  • the predicted motion vector may be used as the motion vector in the unsynchronized frame. Since the method of generating the virtual motion vector has been described earlier, a description thereof will not be given.
  • the motion vector predictor 140 sends the residual that is an enhanced layer motion vector component to an entropy coding unit 150.
  • the enhanced layer motion vector component need not be generated because it can be derived from the base layer motion vector.
  • a lossy coding unit 125 performs lossy coding on the base layer frame using the base layer motion vectors received from the motion estimator 121.
  • the lossy coding unit 125 includes a temporal transformer 122, a spatial transformer 123, and a quantizer 124.
  • the temporal transformer 122 uses the motion vectors obtained by the motion estimator 121 and a frame at a temporally different position than the current frame to generate a predicted frame and subtracts the predicted frame from the current frame to generate a residual frame, thereby removing temporal redundancy. While all macroblocks in a frame are inter macroblocks generated by temporal transform, it will be readily apparent to those skilled in the art that the frame can be made up of a combination of inter macroblocks and intra macroblocks defined in H.264 or intra-BL macroblocks defined in SVM 3.0. Because the main feature of the present invention lies in temporal prediction, the present invention will be described focusing on the temporal transform.
  • the temporal transform may be performed using a hierarchical method considering temporal scalability such as Motion Compensation Temporal filtering (MCTF) or Hierarchical-B or a typical non-hierarchical method such as I, B, and P coding in an MPEG-based codec.
  • MCTF Motion Compensation Temporal filtering
  • Hierarchical-B a typical non-hierarchical method such as I, B, and P coding in an MPEG-based codec.
  • the spatial transformer 123 performs spatial transform on the residual frame generated by the temporal transformer 122 or the original input frame to create a transform coefficient.
  • Discrete Cosine Transform (DCT) or wavelet transform technique may be used for the spatial transform.
  • a DCT coefficient is created when DCT is used for spatial transform while a wavelet coefficient is produced when wavelet transform is used.
  • the quantizer 124 performs quantization on the transform coefficient obtained by the spatial transformer 123. Quantization is the process of converting real-numbered DCT coefficients into discrete values by dividing the range of coefficients into a limited number of intervals and mapping the real-numbered coefficients into quantization indices according to a predetermined quantization table.
  • a lossy coding unit 135 performs lossy coding on the enhanced layer frame using motion vectors in the enhanced layer frame obtained by the motion estimator 131.
  • the lossy coding unit 135 includes a temporal transformer 132, a spatial transformer 133, and a quantizer 134. Because the lossy coding unit 135 performs the same operation as the lossy coding unit 125, except that it performs lossy coding on the enhanced layer frame, a detailed explanation thereof will not be given.
  • the entropy coding unit 150 losslessly encodes (or entropy encodes) the quantization coefficients obtained by the quantizers 124 and 134 for the base layer and the enhanced layer, the base layer motion vectors generated by the motion estimator 121 for the base layer, and the enhanced layer motion vector components generated by the motion vector predictor 140 into an output bitstream.
  • FlG. 11 shows the lossy coding unit 125 for the base layer is separated from the lossy coding unit 135 for the enhanced layer, it will be obvious to those skilled in the art that a single lossy coding unit can be used to process both the base layer and the enhanced layer.
  • FTG. 12 is a block diagram of a video decoder 200 according to an exemplary embodiment of the present invention.
  • an entropy decoding unit 210 performs the inverse of entropy encoding and extracts motion vectors of a base layer frame, motion vector components of an enhanced layer frame, and texture data from the base layer frame and the enhanced layer frame from an input bitstream.
  • a motion vector reconstructor 240 calculates a predicted motion vector from the base layer motion vector and adds the predicted motion vector to the enhanced layer motion vector component in order to reconstruct a motion vector in the enhanced layer frame. Since the process of generating the predicted motion vector is performed in the same manner as at the video encoder 100, a detailed explanation thereof will not be given.
  • Reconstructing the motion vector in the enhanced layer frame corresponds to predicting a motion vector in an unsynchronized frame using a predicted motion vector at the video encoder 100. Thus, when the video encoder 100 uses the predicted motion vector as the motion vector in the unsynchronized frame, the enhanced layer motion vector component is not present but the predicted motion vector will be used as a motion vector in a current unsynchronized frame.
  • a lossy decoding unit 235 performs the inverse operation of the lossy coding unit
  • the lossy decoding unit 235 includes an inverse quantizer 231, an inverse spatial transformer 232, and an inverse temporal transformer 233.
  • the inverse quantizer 231 performs inverse quantization on the extracted texture data from the enhanced layer frames.
  • the inverse quantization is the process of reconstructing values from corresponding quantization indices created during a quantization process using a quantization table used during the quantization process.
  • the inverse spatial transformer 232 performs inverse spatial transform on the inversely quantized result.
  • the inverse spatial transform is the inverse of spatial transform performed by the spatial transformer 133 in the encoder 100.
  • Inverse DCT and inverse wavelet transform technique may be used for the inverse spatial transform.
  • the inverse temporal transformer 233 performs the inverse operation to the temporal transformer 132 on the inversely spatially transformed result to reconstruct a video sequence. More specifically, the inverse temporal transformer 233 uses motion vectors reconstructed by the motion vector reconstructor 240 to generate a predicted frame and adds the predicted frame to the inversely spatially transformed result in order to reconstruct a video sequence.
  • the encoder 100 may remove redundancies in the texture of an enhanced layer using a base layer during encoding.
  • the decoder 200 reconstructs a base layer frame and uses the reconstructed base layer frame and the texture data in the enhanced layer frame received from the entropy decoding unit 210 to reconstruct the enhanced layer frame, a lossy decoding unit 225 for the base layer is used.
  • the inverse temporal transformer 233 uses the reconstructed motion vectors of enhanced layer frames to reconstruct a video sequence from the texture data in the enhanced layer frames (inversely spatially transformed result) and the reconstructed base layer frames.
  • FlG. 12 shows the lossy decoding unit 225 for the base layer is separated from the lossy decoding unit 335 for the enhanced layer, it will be obvious to those skilled in the art that a single lossy decoding unit can be used to process both the base layer and the enhanced layer.
  • Each of various components illustrated in FIGS. 11 and 12 means, but is not limited to, a software or hardware component, such as a Field Programmable Gate Array (FPGA) or Application Specific Integrated Circuit (ASIC), which performs certain tasks.
  • a module may advantageously be configured to reside on the addressable storage medium and configured to execute on one or more processors.
  • a module may include, by way of example, components, such as software components, object- oriented software components, class components and task components, processes, functions, attributes, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuitry, data, databases, data structures, tables, arrays, and variables.
  • the functionality provided for in the components and modules may be combined into fewer components and modules or further separated into additional components and modules.
  • the components and modules may be implemented such that they are executed one or more computers in a communication system.
  • the compression efficiency of multi-layered motion vectors can be improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

An apparatus and method for improving the compression efficiency of a motion vector by efficiently predicting a motion vector in an enhanced layer from a motion vector in a base layer in a video coding method using a multi-layer structure are provided. The method includes obtaining a motion vector in a mother frame of a base layer that is temporally closest to an unsynchronized frame of a current layer, obtaining a predicted motion vector from the motion vector in the mother frame considering the referencing direction in the mother frame and in the unsynchronized frame and distances between the mother frame and a reference frame and between the unsynchronized frame and a reference frame, generating a residual between the motion vector in the unsynchronized frame and the predicted motion vector, and encoding the motion vector in the mother frame and the residual.

Description

Description METHOD AND APPARATUS FOR EFFECTIVELY ENCODING
MULTI-LAYERED MOTION VECTORS
Technical Field
[1] Apparatuses and methods consistent with the present invention relate to video compression, and more particularly, to improving the compression efficiency of a motion vector by efficiently predicting a motion vector in an enhanced layer from a motion vector in a base layer in a video coding method using a multi-layer structure.
Background Art
[2] With the development of information communication technology, including the
Internet, video communication as well as text and voice communication, has increased dramatically. Conventional text communication cannot satisfy users' various demands, and thus, multimedia services that can provide various types of information such as text, pictures, and music have increased. However, multimedia data requires a storage media that have a large capacity and a wide bandwidth for transmission since the amount of multimedia data is usually large. Accordingly, a compression coding method is requisite for transmitting multimedia data including text, video, and audio.
[3] A basic principle of data compression is removing data redundancy. Data can be compressed by removing spatial redundancy in which the same color or object is repeated in an image, temporal redundancy in which there is little change between adjacent frames in a moving image or the same sound is repeated in audio, or mental visual redundancy which takes into account human eyesight and its limited perception of high frequency. In general video coding, temporal redundancy is removed by motion compensation based on motion estimation and compensation, and spatial redundancy is removed by transform coding.
[4] To transmit multimedia generated after removing data redundancy, transmission media are necessary. Transmission performance is different depending on transmission media. Currently used transmission media have various transmission rates. For example, an ultrahigh-speed communication network can transmit data of several tens of megabits per second while a mobile communication network has a transmission rate of 384 kilobits per second. Accordingly, to support transmission media having various speeds or to transmit multimedia at a data rate suitable to a transmission environment, data coding methods having scalability, such as wavelet video coding and subband video coding, may be suitable to a multimedia environment.
[5] Scalable video coding is a technique that allows a compressed bitstream to be decoded at different resolutions, frame rates, and signal-to-noise ratio (SNR) levels by truncating a portion of the bitstream according to ambient conditions such as transmission bit rates, error rates, and system resources. MPEG-4 (Motion Picture Experts Group 4) Part 10 standardization for scalable video coding is under way. In particular, much effort is being made to implement scalability based on a multi-layered structure. For example, a bitstream may consist of multiple layers, i.e., base layer and first and second enhanced layers with different resolutions (QCIF, CIF, and 2CIF) or frame rates.
[6] Like when a video is encoded into a singe layer, when a video is encoded into multiple layers, motion vector (MV) is obtained for each of the multiple layers to remove temporal redundancy. The motion vector MV may be separately searched for each layer (former approach) or a motion vector obtained by a motion vector search for one layer is used for another layer (without or after being upsampled/downsampled) (latter approach). The former approach has the advantage of obtaining accurate motion vectors while suffering from overhead due to motion vectors generated for each layer. Thus, it is a very challenging task to efficiently redundancy between motion vectors for each layer.
[7] FIG. 1 shows an example of a scalable video codec using a multi-layered structure.
Referring to FIG. 1, a base layer has a quarter common intermediate format (QCIF) resolution and a frame rate of 15 Hz, a first enhanced layer has a common intermediate format (CIF) resolution and a frame rate of 30 Hz, and a second enhanced layer has a standard definition (SD) resolution and a frame rate of 60 Hz. For example, to obtain a stream having a CIF resolution and a bit rate of 0.5 Mbps, the enhanced layer bitstream having a CIF resolution, a frame rate of 30 Hz and a bit rate of 0.7 Mbps may be truncated to meet the bit rate of 0.5 Mbps. In this way, it is possible to implement spatial, temporal, and SNR scalabilities. Because about twice as much overhead as that generated for a singe-layer bitstream occurs due to an increase in the number of motion vectors as shown in FIG. 1, motion prediction from the base layer is very important. Of course, since the motion vector is used only for an inter-macroblock encoded using temporally neighboring frames as a reference, it is not used for an intra-macroblock encoded without reference to adjacent frames.
[8] As shown in FIG. 1, frames 10, 20, and 30 in the respective layers having the same temporal position can be estimated to have similar images thus similar motion vectors. Thus, one proposed method for efficiently representing a motion vector includes predicting a motion vector for a current layer from a motion vector for a lower layer and encoding a difference between the predicted value and the actual motion vector.
[9] FTG. 2 is a diagram for explaining a method for efficiently representing a motion vector using motion prediction. Referring to FIG. 2, a motion vector in a lower layer having the temporal position as a current layer is used as a predicted motion vector for a current layer motion vector.
[10] An encoder obtains motion vectors MV , MV , and MV for a base layer, a first enhanced layer, and a second enhanced layer at predetermined accuracies and performs temporal transformation using the motion vectors MV , MV , and MV to remove temporal redundancies in the respective layers. However, the encoder sends the base layer motion vector MV , a first enhanced layer motion vector component D , and a second enhanced layer motion vector component D to the predecoder (or video stream server). The predecoder may transmit only the base layer motion vector, the base layer motion vector and the first enhanced layer motion vector component D , or the base layer motion vector, the first enhanced layer motion vector component D and the second enhanced layer motion vector component D to a decoder to adapt to network situations.
[11] The decoder then uses the received data to reconstruct a motion vector for an appropriate layer. For example, when the decoder receives the base layer motion vector and the first enhanced layer motion vector component D , the first enhanced layer motion vector component D is added to the base layer motion vector MV in order to reconstruct the first enhanced layer motion vector MV . The reconstructed motion vector MV is used to reconstruct texture data for the first enhanced layer. Disclosure of Invention
Technical Problem
[12] However, when the current layer has a different frame rate than the lower layer as shown in FIG. 1, a lower layer frame having the same temporal position as the current frame may not exist. For example, because a layer frame lower than a frame 40 is not present, motion prediction through a lower layer motion vector cannot be performed. That is, since a motion vector in the frame 40 cannot be predicted, a motion vector in the first enhanced layer is inefficiently represented as a redundant motion vector.
Technical Solution
[13] The present invention provides an apparatus and method for efficiently predicting a motion vector in an enhanced layer from a motion vector in a base layer.
[14] The present invention also provides a method for predicting a motion vector when a lower layer frame having the same temporal position as a current layer frame is not present.
[15] According to an aspect of the present invention, there is provided a method for efficiently encoding multi-layered motion vectors, including: obtaining a motion vector in a mother frame of a base layer that is temporally closest to an unsynchronized frame of a current layer; obtaining a predicted motion vector from the motion vector in the mother frame considering the referencing direction in the mother frame and in the un- synchronized frame and distances between the mother frame and a reference frame and between the unsynchronized frame and a reference frame; generating a residual between the motion vector in the unsynchronized frame and the predicted motion vector; and encoding the motion vector in the mother frame and the residual.
Description of Drawings
[16] The above and/or other aspects of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:
[17] FTG. 1 shows an example of a scalable video codec using a multi-layered structure;
[18] FlG. 2 is a diagram for explaining a method for efficiently representing a motion vector using motion prediction;
[19] FTG. 3 is a schematic diagram for explaining a fundamental concept of vector base- layer motion according to the present invention;
[20] FTG. 4 is a diagram for explaining the detailed operation of VBM according to the present invention;
[21] FTG. 5 is a schematic diagram showing an example in which bi-directional prediction is applied;
[22] FTG. 6 is a schematic diagram showing an example in which backward prediction is applied;
[23] FTG. 7 is a schematic diagram showing an example in which forward prediction is applied;
[24] FTG. 8 shows an example in which a sub-macroblock pattern in a mother frame corresponding to a sub-macroblock in an unsynchronized frame is further divided into sections;
[25] FTG. 9 shows an example in which a sub-macroblock pattern in an unsynchronized frame is further divided into sections;
[26] FTG. 10 shows an example of obtaining a pixel-based virtual motion vector;
[27] FTG. 11 is a block diagram of a video encoder according to an exemplary embodiment of the present invention; and
[28] FTG. 12 is a block diagram of a video decoder according to an exemplary embodiment of the present invention.
Mode for Invention
[29] The present invention will now be described more fully with reference to the accompanying drawings, in which exemplary embodiments of the invention are shown. Advantages and features of the present invention and methods of accomplishing the same may be understood more readily by reference to the following detailed description of exemplary embodiments and the accompanying drawings. The present invention may, however, be embodied in many different forms and should not be construed as being limited to the exemplary embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of the invention to those skilled in the art, and the present invention will only be defined by the appended claims. Like reference numerals refer to like elements throughout the specification.
[30] The present invention proposes a new method for improving interlayer motion prediction. The main purpose of the present invention is to provide a method for effectively predicting a motion field of a frame having no corresponding base layer frame. The method may reduce the number of motion bits when the frame rate of a current layer is different than a base layer. This method is based on Scalable Video Model 3.0 of ISO/IEC 21000-13 Scalable Video Coding' (1SVM 3.0') and includes generating a virtual motion vector using adjacent base layer frames and calculating a predicted motion vector using virtual base-layer motion (VBM).
[31] SVM 3.0 is based on an interlayer motion prediction technique that uses correlation between interlayer motion fields. In the interlayer motion prediction, the interlayer motion fields can be represented by refining or using a base layer motion as it is. It is known that the interlayer motion prediction is more efficient when the motion fields of two different layers are significantly similar to each other. When two layers have different frame rates, there may be no corresponding base layer frame for a frame. However, in this case, currently available SVM 3.0 uses independent motion prediction and quantization instead of interlayer motion prediction.
[32] The present invention proposes a method of using a base layer motion for multi- layered scalable video coding. In particular, when a current layer has a different frame rate than a base layer, a virtual motion vector in a missing layer frame is produced using motion vectors in adjacent base layer frames. The virtual motion vector may be used for predicting a motion field of a current layer. The motion field of the current layer may be replaced by the virtual motion vector or refined at a predetermined accuracy (e.g., 1/4 pixel accuracy). This technique uses correlation between two interlayer motion fields to efficiently reduce the total number of motion bits, which is hereinafter called 'virtual base-layer motion' (VBM).
[33] FlG. 3 is a schematic diagram for explaining a fundamental concept of VBM according to the present invention. It is assumed in this example that a current layer L n has CIF resolution and frame rate of 30 Hz and a lower layer L has QCIF resolution n-1 and frame rate of 15 Hz.
[34] In the present invention, when there is a base layer frame having the same temporal position as a frame in a current layer, a predicted motion vector is generated using a motion vector in the base layer frame as a reference. On the other hand, when there is no base layer frame corresponding to the current layer frame, a predicted motion vector is generated using motion vectors in at least one of N base layer frames (where N is an integer greater than 1) located closest to the temporal position. Referring to FIG. 3, motion vectors in current layer frames A and A are respectively predicted from motion vectors in lower layer frames B and B having the same temporal positions as the current layer frames A and A . Here, motion estimation has substantially the same meaning as that of estimation motion vector generation.
[35] On the other hand, a predicted motion vector for a frame A having no corresponding lower layer frame at the same temporal position is generated using motion vectors in the frames B and B closest to the temporal position. To achieve this, motion vectors in the frames B and B are interposed to generate a virtual motion vector (a motion vector in a virtual frame B ) at the same temporal position as the frame A and the virtual motion vector is used to predict a motion vector for the frame
A . i
[36] The concept of the VBM may also apply to a motion prediction method that can be used when a current layer has an independent Motion-Compensated Temporal Filtering (MCTF) structure. Assuming that a current layer has an MCTF structure and closed loop processing is performed during MCTF due to a low delay constraint, an MCTF process may be performed in a bottom-up manner, i.e., from coarse to fine temporal levels. In this case, a method similar to that shown in FIG. 3 may be used to predict a motion in an upper fine temporal level from a motion in a lower coarse temporal level.
[37] FIG. 4 is a diagram for explaining the detailed operation of VBM according to the present invention.
[38] The basic idea of VBM is to use a strong correlation between motion fields of a current layer and a base layer. A current layer frame having no corresponding base layer frame is termed an 'unsynchronized frame' while a current layer frame having a corresponding base layer frame is termed a 'synchronized frame'. Because there is no corresponding base layer frame for an unsynchronized frame, a virtual motion vector is used for predicting the unsynchronized frame according to the present invention.
[39] For convenience of explanation, it is assumed that a current layer has double the frame rate of a base layer. To generate the virtual motion vector, a previously encoded base layer motion field is used. The virtual motion vector may be used as a motion vector in an unsynchronized frame of the current layer. Alternatively, the motion vector in the unsynchronized frame is separately obtained and the virtual motion vector is used to efficiently predict the motion vector in the unsynchronized frame. In the latter case, the accuracy of motion vector is higher at the base layer than at the current layer. For example, motion vectors in the base layer may be determined with 1 pixel accuracy and motion vectors in the current layer may be refined to 1/2 pixel accuracy. [40] As shown in FIG. 4, a motion vector in a virtual frame, i.e., a virtual motion vector is determined by dividing a motion vector in an adjacent base layer frame by 2. When the direction of referencing in the unsynchronized frame is opposite to that in the base layer mother frame, the virtual motion vector is determined by dividing the motion vector in the adjacent base layer frame by 2 and adding a negative sign to the result. To generalize the idea, the virtual motion vector is determined by multiplying the motion vector in the mother frame by the result obtained by dividing a distance (temporal distance) between the unsynchronized frame and a reference frame by a distance between the mother frame and a reference frame. When the direction of referencing (forward or backward direction) in the unsynchronized frame is opposite to that in the mother frame, the virtual motion vector is determined by adding a negative sign to the product.
[41] A macroblock mode for each macroblock in the virtual frame (Virtual macroblock mode') is decided in the same way as a macroblock mode in a base layer mother frame. Here, the mother frame refers to a frame with a closest temporal distance from the unsynchronized frame (one frame if there are two closest frames). When the base layer has a different resolution than the current layer, the virtual macroblock mode and the virtual motion vector should be appropriately upsampled.
[42] While FIG. 4 shows that bi-directional prediction is used for inter-prediction, forward prediction from a temporally previous frame or backward prediction from a temporally subsequent frame may also be used.
[43] FIGS. 5 through 7 respectively show examples for generating virtual motion vectors using bi-directional, backward, and forward prediction methods.
[44] Referring to FIG. 5, a forward motion vector V in a base layer mother frame is used to calculate motion vectors V and V in an unsynchronized frame. A backward fl bl motion vector V in the mother frame is used to calculate motion vectors V and V in b f2 b2 an unsynchronized frame. When a current layer has double the frame rate of a base layer, the motion vectors V , V , V , and V are defined by Equation (1): fl bl f2 b2 [45]
Vn N 1/2 X Vf
Vbi '=■ -l/2 XVf
Vf2 -■ -l/2 XVb
Vb2 N 1/2 X Vb - (1)
[46] However, bi-directional prediction is not necessarily used for both the base layer and the current layer. That is, when only forward or backward prediction is performed for the current layer, only a part of Equation (1) may be used.
[47] A sign '=' in the Equation (1) means that a specific motion vector in the current layer approximates a virtual motion vector on the right-hand side of the Equation (1). That is, the virtual motion vector on the right may be used as the current layer motion vector, which means the sign is an equality sign. The virtual motion vector may also be used to predict the current layer motion vector, which means the virtual motion vector is used as a predictor for the current layer motion vector. Throughout this specification, the sign '=' has the same meaning as defined above. [48] FIGS. 6 and 7 illustrate examples in which one-directional and bi-directional predictions are respectively performed for a base layer and a current layer. Referring to FlG. 6, backward prediction is performed in the base layer. A backward motion vector V in a base layer mother frame is used to calculate motion vectors V and V in an b Ω. Vl unsynchronized frame. In this case, because there is no forward motion vector in the mother frame, motion vectors V and V are obtained using the backward motion fl bl vector V with a negative sign, i.e., -V . Thus, assuming that the current layer has b b double the frame rate of the base layer, the motion vectors V , V , V , and V are
J ' fl' bl β' b2 defined by Equation (2): [49]
Vn N -1/2 X Vb
Vb, =. 1/2 X Vb
Vβ N -1/2 X Vb
Vb2 N l/2 X Vb - (2)
[50] Referring to FlG. 7, forward prediction is performed in the base layer. A forward motion vector V in a base layer mother frame is used to calculate motion vectors V f J fl and V in an unsynchronized frame. In this case, because there is no backward motion bl vector iiin the mother frame, motion vectors V and V are obtained using the forward f2 b2 ° motion vector V with a negative sign, i.e., -V V t.. TThhuuss,, a assuming that the current layer hhaass ddoouubbllee tthhee ffrraammee rraate of the base layer, the motion vectors V , V , V , and V are
J fi bi n b2 given by Equation (3):
[51]
Vn N l/2 X Vf
Vbi '=■ -l/2 X Vf
Vf2 '=■ 1/2 X Vf
Vb2 N -l/2 X Vf - (3)
[52] Of course, while it is assumed above that the current layer has double the frame rate of the base layer, 'ratio of temporal referencing distance' between layers may be other than 1/2 in the Equations (1) through (3). To clarify the term used herein, a predicted motion vector is defined as a frame that will be replaced by a motion vector in an unsynchronized frame or used for predicting the motion vector in the unsyn- chronized frame (obtaining a residual between the motion vector in the unsynchronized frame and the predicted motion vector). The predicted motion vector may be a virtual motion vector or another motion vector derived from the virtual motion vector.
[53] Three exemplary embodiments will now be proposed to realize the basic concept of the present invention. In a first exemplary embodiment, the virtual motion vectors obtained by the above Equations (1) through (3) and a sub-macroblock pattern in a mother frame are used in a current layer frame. In a second exemplary embodiment, a sub-macroblock pattern in an unsynchronized frame is determined by a Rate-Distortion (R-D) optimization instead of using a sub-macroblock pattern in a mother frame. In a third exemplary embodiment, a pixel-based predicted motion vector is estimated. The first through third exemplary embodiments will now be described in more detail.
[54] First exemplary embodiment
[55] A virtual motion vector is used as a motion vector in an unsynchronized frame of a current layer. When a motion vector in the unsynchronized frame has the same direction as a motion vector in a mother frame as shown in the Equations (1) through (3), the virtual motion vector is obtained by multiplying the motion vector in the mother frame by the ratio of temporal referencing distance between layers (e.g., 1/2). When the motion vector in the unsynchronized frame has an opposite direction to the motion vector in the mother frame, the virtual motion vector is obtained by multiplying the power by -1.
[56] Furthermore, since sub-macroblock patterns in an unsynchronized high-pass virtual frame of the current layer are the same as those in the mother frame, a motion vector in the unsynchronized frame is predicted using sub-macroblock patterns in the mother frame. Thus, motion vector search and R-D optimization for selecting a sub- macroblock pattern are not performed for the unsynchronized frame.
[57] Second exemplary embodiment
[58] In the second exemplary embodiment, sub-macroblock patterns in an unsynchronized frame and a mother frame are determined by a separate R-D optimization process. While a virtual motion vector is derived from the mother frame after completing the R-D optimization, the sub-macroblock patterns in the mother frame are different from those in the unsynchronized frame. When the sub-macroblock patterns are different, a motion vector from a sub-macroblock in the unsynchronized frame can be induced from a virtual motion vector overlapped by the sub-macroblock pattern in the unsynchronized frame. To achieve this, the present invention uses the weighted average of the areas of overlapped regions.
[59] FIG. 8 shows an example in which a sub-macroblock pattern in a mother frame corresponding to a sub-macroblock in an unsynchronized frame is further divided into sections. Here, Mv and A respectively denote a virtual motion vector obtained as defined by the Equations (1) through (3) and the area of a specific sub-macroblock. A motion vector Mv in an unsynchronized frame is replaced or predicted by a predicted motion vector derived as shown in Equation (4) below by weighted averaging the virtual motion vectors Mv . [60]
∑ (A . x Mv ) Total sum o\' Overlapped region x Motion vector of Overlapped region , '
Mv =
Total sum of overlapped regions ∑ A /,/j. \
I
[61] On the other hand, when a sub-macroblock pattern in an unsynchronized frame corresponding to a sub-macroblock in a mother frame is further divided into sections as shown in FIG. 9, motion vectors Mv through Mv in the unsynchronized frame may a e be all replaced or predicted by a single virtual motion vector MV .
[62] Third exemplary embodiment
[63] The third exemplary embodiment focuses on each pixel of a virtual frame. First, a check is made as to all motion vectors passing through a pixel of the virtual frame. A virtual base motion vector for one pixel ('pixel motion vector') is estimated by a distance- weighted average (distance between centers of the pixel and sub-macroblock). Various distance measures such as Euclidean distance or City Block distance may be used for distance estimation.
[64] A sub-macroblock pattern in an unsynchronized frame is decided by an R-D optimization process. When a motion vector in the unsynchronized frame is replaced by a virtual motion vector, virtual base motion vectors for the sub-macroblock are estimated using all pixel motion vectors within the same sub-macroblock in the virtual frame. FIG. 10 illustrates a method for estimating virtual base motion vectors.
[65] A motion vector for a pixel of interest 50 in a virtual frame is derived from motion vectors passing through the pixel. A pixel-based virtual motion vector is estimated using Equation (5):
[66]
d2
[67] where Mv , Mv , and d respectively denote a pixel motion vector, a motion pixel i i vector passing through the pixel of interest 50 in the virtual frame, and a distance between a pixel 60 at the same position as the pixel of interest 50 in the mother frame and the center of a sub-macroblock associated with the motion vector Mv . i
[68] A motion vector in an unsynchronized frame is replaced or predicted by a motion vector Mv averaged by dividing the sum of all pixel motion vectors within a sub- a macroblock of the unsynchronized frame by the number of all of the pixel motion vectors as defined in Equation (6) below. All of the pixel motion vectors are averaged and the averaged motion vector Mv can be used as the motion vector in the unsyn- a chronized frame or as a predictor for the motion vector. [69]
ΣMv pixel
. . . pixel a Number of pixel motion vec tors in sub - macroblock ■ ■ • \ >
[70] The above-described methods according to the first through third exemplary embodiments and a conventional technique for independently encoding a motion vector in an unsynchronized frame without reference to a base layer can be selected adaptively for efficient coding. For example, R-D costs are calculated for the conventional technique and the exemplary embodiments of the present invention to choose a coding mode that offers smaller R-D costs. The selection can be made at the macroblock level. In this case, some macroblocks may be predicted using virtual motion vectors and others are predicted independently using actual motion vectors.
[71] FIG. 11 is a block diagram of a video encoder 100 according to an exemplary embodiment of the present invention. While FTG. 11 shows the use of one base layer and one enhanced layer, it will be readily apparent to those skilled in the art that the pr esent invention can be applied between a lower layer and an upper layer when two or more layers are used.
[72] Referring to FTG. 11, a downsampler 110 downsamples an input video to a resolution and frame rate suitable for each layer. When a base layer, having a QCIF resolution and a frame rate of 15 Hz, and an enhanced layer, having a CIF and a frame rate of 30 Hz, are used as shown in FTG. 1, an original input video is downsampled to CIF and QCIF resolutions and then downsampled to frame rates of 15 Hz and 30 Hz. Downsampling the resolution may be performed using an MPEG downsampler or wavelet downsampler. Downsampling the frame rate may be performed using frame skip or frame interpolation. A motion estimator 121 performs motion estimation on a base layer frame to obtain motion vectors of the base layer frame. The motion estimation is the process of finding the closest block to a block in a current frame, i.e., a block with a minimum error. Various techniques including fixed-size block matching and hierarchical variable size block matching (HVSBM) may be used in the motion estimation.
[73] In the same manner, the motion estimator 131 performs motion estimation on an enhanced layer frame to obtain motion vectors of the enhanced layer frame. The motion vectors of the base layer frame and the enhanced layer frame are obtained in this way to predict a motion vector in the enhanced layer frame using a virtual motion vector. When the virtual motion vector is used as the motion vector in the enhanced layer frame, the motion estimator 131 for the enhanced layer may be omitted.
[74] A motion vector predictor 140 uses a motion vector in the base layer frame that is a mother frame to generate a predicted motion vector and uses the predicted motion vector to predict a motion vector in an unsynchronized frame among the enhanced layer frames. The prediction refers to obtaining a residual between the motion vector in the unsynchronized frame and the virtual motion vector. Of course, the predicted motion vector may be used as the motion vector in the unsynchronized frame. Since the method of generating the virtual motion vector has been described earlier, a description thereof will not be given.
[75] The motion vector predictor 140 sends the residual that is an enhanced layer motion vector component to an entropy coding unit 150. When the virtual motion vector is used as the motion vector in the unsynchronized frame without being subjected to motion prediction, the enhanced layer motion vector component need not be generated because it can be derived from the base layer motion vector.
[76] A lossy coding unit 125 performs lossy coding on the base layer frame using the base layer motion vectors received from the motion estimator 121. The lossy coding unit 125 includes a temporal transformer 122, a spatial transformer 123, and a quantizer 124.
[77] The temporal transformer 122 uses the motion vectors obtained by the motion estimator 121 and a frame at a temporally different position than the current frame to generate a predicted frame and subtracts the predicted frame from the current frame to generate a residual frame, thereby removing temporal redundancy. While all macroblocks in a frame are inter macroblocks generated by temporal transform, it will be readily apparent to those skilled in the art that the frame can be made up of a combination of inter macroblocks and intra macroblocks defined in H.264 or intra-BL macroblocks defined in SVM 3.0. Because the main feature of the present invention lies in temporal prediction, the present invention will be described focusing on the temporal transform. The temporal transform may be performed using a hierarchical method considering temporal scalability such as Motion Compensation Temporal filtering (MCTF) or Hierarchical-B or a typical non-hierarchical method such as I, B, and P coding in an MPEG-based codec.
[78] The spatial transformer 123 performs spatial transform on the residual frame generated by the temporal transformer 122 or the original input frame to create a transform coefficient. Discrete Cosine Transform (DCT) or wavelet transform technique may be used for the spatial transform. A DCT coefficient is created when DCT is used for spatial transform while a wavelet coefficient is produced when wavelet transform is used.
[79] The quantizer 124 performs quantization on the transform coefficient obtained by the spatial transformer 123. Quantization is the process of converting real-numbered DCT coefficients into discrete values by dividing the range of coefficients into a limited number of intervals and mapping the real-numbered coefficients into quantization indices according to a predetermined quantization table.
[80] On the other hand, a lossy coding unit 135 performs lossy coding on the enhanced layer frame using motion vectors in the enhanced layer frame obtained by the motion estimator 131. The lossy coding unit 135 includes a temporal transformer 132, a spatial transformer 133, and a quantizer 134. Because the lossy coding unit 135 performs the same operation as the lossy coding unit 125, except that it performs lossy coding on the enhanced layer frame, a detailed explanation thereof will not be given.
[81] The entropy coding unit 150 losslessly encodes (or entropy encodes) the quantization coefficients obtained by the quantizers 124 and 134 for the base layer and the enhanced layer, the base layer motion vectors generated by the motion estimator 121 for the base layer, and the enhanced layer motion vector components generated by the motion vector predictor 140 into an output bitstream.
[82] While FlG. 11 shows the lossy coding unit 125 for the base layer is separated from the lossy coding unit 135 for the enhanced layer, it will be obvious to those skilled in the art that a single lossy coding unit can be used to process both the base layer and the enhanced layer.
[83] FTG. 12 is a block diagram of a video decoder 200 according to an exemplary embodiment of the present invention.
[84] Referring to FlG. 12, an entropy decoding unit 210 performs the inverse of entropy encoding and extracts motion vectors of a base layer frame, motion vector components of an enhanced layer frame, and texture data from the base layer frame and the enhanced layer frame from an input bitstream.
[85] A motion vector reconstructor 240 calculates a predicted motion vector from the base layer motion vector and adds the predicted motion vector to the enhanced layer motion vector component in order to reconstruct a motion vector in the enhanced layer frame. Since the process of generating the predicted motion vector is performed in the same manner as at the video encoder 100, a detailed explanation thereof will not be given. Reconstructing the motion vector in the enhanced layer frame corresponds to predicting a motion vector in an unsynchronized frame using a predicted motion vector at the video encoder 100. Thus, when the video encoder 100 uses the predicted motion vector as the motion vector in the unsynchronized frame, the enhanced layer motion vector component is not present but the predicted motion vector will be used as a motion vector in a current unsynchronized frame.
[86] A lossy decoding unit 235 performs the inverse operation of the lossy coding unit
(135 of FIG. 11) to reconstruct a video sequence from the texture data of the enhanced layer frames using the reconstructed motion vectors in the enhanced layer frames. The lossy decoding unit 235 includes an inverse quantizer 231, an inverse spatial transformer 232, and an inverse temporal transformer 233.
[87] The inverse quantizer 231 performs inverse quantization on the extracted texture data from the enhanced layer frames. The inverse quantization is the process of reconstructing values from corresponding quantization indices created during a quantization process using a quantization table used during the quantization process.
[88] The inverse spatial transformer 232 performs inverse spatial transform on the inversely quantized result. The inverse spatial transform is the inverse of spatial transform performed by the spatial transformer 133 in the encoder 100. Inverse DCT and inverse wavelet transform technique may be used for the inverse spatial transform.
[89] The inverse temporal transformer 233 performs the inverse operation to the temporal transformer 132 on the inversely spatially transformed result to reconstruct a video sequence. More specifically, the inverse temporal transformer 233 uses motion vectors reconstructed by the motion vector reconstructor 240 to generate a predicted frame and adds the predicted frame to the inversely spatially transformed result in order to reconstruct a video sequence.
[90] The encoder 100 may remove redundancies in the texture of an enhanced layer using a base layer during encoding. In this case, because the decoder 200 reconstructs a base layer frame and uses the reconstructed base layer frame and the texture data in the enhanced layer frame received from the entropy decoding unit 210 to reconstruct the enhanced layer frame, a lossy decoding unit 225 for the base layer is used.
[91] In this case, the inverse temporal transformer 233 uses the reconstructed motion vectors of enhanced layer frames to reconstruct a video sequence from the texture data in the enhanced layer frames (inversely spatially transformed result) and the reconstructed base layer frames.
[92] While FlG. 12 shows the lossy decoding unit 225 for the base layer is separated from the lossy decoding unit 335 for the enhanced layer, it will be obvious to those skilled in the art that a single lossy decoding unit can be used to process both the base layer and the enhanced layer.
[93] Each of various components illustrated in FIGS. 11 and 12 means, but is not limited to, a software or hardware component, such as a Field Programmable Gate Array (FPGA) or Application Specific Integrated Circuit (ASIC), which performs certain tasks. A module may advantageously be configured to reside on the addressable storage medium and configured to execute on one or more processors. Thus, a module may include, by way of example, components, such as software components, object- oriented software components, class components and task components, processes, functions, attributes, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuitry, data, databases, data structures, tables, arrays, and variables. The functionality provided for in the components and modules may be combined into fewer components and modules or further separated into additional components and modules. In addition, the components and modules may be implemented such that they are executed one or more computers in a communication system.
Industrial Applicability
[94] According to the present invention, the compression efficiency of multi-layered motion vectors can be improved.
[95] In addition, the quality of an image per a bit rate can be enhanced.
[96] In concluding the detailed description, those skilled in the art will appreciate that many variations and modifications can be made to the exemplary embodiments without substantially departing from the principles of the present invention. Therefore, the disclosed exemplary embodiments of the invention are used in a generic and descriptive sense only and not for purposes of limitation.

Claims

Claims
[1] A method for encoding multi-layered motion vectors, the method comprising: obtaining a motion vector in a mother frame of a base layer that is temporally closest to an unsynchronized frame of a current layer; obtaining a predicted motion vector from the motion vector in the mother frame according to a referencing direction and a referencing distance of the mother frame, and a referencing direction and a referencing distance of the unsynchronized frame; generating a residual between the motion vector in the unsynchronized frame and the predicted motion vector; and encoding the motion vector in the mother frame and the residual.
[2] The method of claim 1 , wherein if there are at least two closest base layer frames, the mother frame is a high-pass frame of the at least two closest base layer frames.
[3] The method of claim 1, wherein the obtaining the predicted motion vector comprises multiplying the motion vector in the mother frame by a result obtained by dividing a distance between the unsynchronized frame and a reference frame by a distance between the mother frame and the reference frame and adding a negative sign to the product if the referencing direction of the unsynchronized frame is opposite to the referencing direction of the mother frame.
[4] The method of claim 1, wherein sub-macroblock patterns in the mother frame are the same as sub-macroblock patterns in the unsynchronized frame.
[5] The method of claim 1, wherein a sub-macroblock pattern in the unsynchronized frame is determined by a Rate-Distortion optimization, independently of a sub- macroblock pattern in the mother frame.
[6] The method of claim 5, wherein the obtaining the predicted motion vector comprises: generating a virtual predicted motion vector by multiplying the motion vector in the mother frame by a result obtained by dividing a distance between the unsynchronized frame and a reference frame by a distance between the mother frame and the reference frame and adding a negative sign to the product if the referencing direction of the unsynchronized frame is opposite to the referencing direction of the mother frame; and generating the predicted motion vector by weighted averaging areas of sub- macroblocks in the mother frame overlapped by sub-macroblock patterns in the unsynchronized frame.
[7] The method of claim 6, wherein in the obtaining the predicted motion vector, the predicted motion vector is obtained by
Figure imgf000019_0001
where Mv is a virtual motion vector and Ai is an area of a specific sub- i macroblock.
[8] The method of claim 1, wherein the obtaining the predicted motion vector comprises: calculating pixel motion vectors within a sub-macroblock of a virtual frame; and obtaining the predicted motion vector by dividing a sum of the pixel motion vectors by a number of the pixel motion vectors within the sub-macroblock.
[9] The method of claim 7, wherein the calculating the pixel motion vectors is performed using
Y— where Mv is a pixel motion vector, Mv is a motion vector passing through a pixel i pixel of interest in a virtual high-pass frame, and d is a distance between a pixel at a same position as the pixel of interest in the mother frame and a center of a sub-macroblock associated with the motion vector My.
[10] A method for encoding multi-layered motion vectors, the method comprising: obtaining a motion vector in a mother frame of a base layer that is temporally closest to an unsynchronized frame of a current layer; obtaining a predicted motion vector from the motion vector in the mother frame according to a referencing direction of the mother frame, a referencing direction the unsynchronized frame, a distance between the mother frame and a reference frame and a distance between the unsynchronized frame and the reference frame; setting the predicted motion vector as a motion vector in the unsynchronized frame; and encoding the motion vector in the mother frame.
[11] The method of claim 10, wherein if there are at least two closest base layer frames, the mother frame is a high-pass frame of the at least two closest base layer frames.
[12] The method of claim 10, wherein the obtaining the predicted motion vector comprises multiplying the motion vector in the mother frame by a result obtained by dividing the distance between the unsynchronized frame and the reference frame by the distance between the mother frame and the reference frame and adding a negative sign to the product if the referencing direction of the unsyn- chronized frame is opposite to the referencing direction of the mother frame.
[13] The method of claim 10, wherein sub-macroblock patterns in the mother frame are the same as sub-macroblock patterns in the unsynchronized frame.
[14] The method of claim 10, wherein a sub-macroblock pattern in the unsynchronized frame is determined by a Rate-Distortion optimization, independently of a sub-macroblock pattern in the mother frame.
[15] The method of claim 14, wherein the obtaining the predicted motion vector comprises: generating a virtual predicted motion vector by multiplying the motion vector in the mother frame by a result obtained by dividing the distance between the unsynchronized frame and the reference frame by the distance between the mother frame and the reference frame and adding a negative sign to the product if the referencing direction of the unsynchronized frame is opposite to in the referencing direction of the mother frame; and generating the predicted motion vector by weighted averaging areas of sub- macroblocks in the mother frame overlapped by sub-macroblock patterns in the unsynchronized frame.
[16] The method of claim 15, wherein in the obtaining the predicted motion vector, the predicted motion vector is obtained by
Figure imgf000020_0001
where Mv is a virtual motion vector and A is an area of a specific sub- macroblock.
[17] The method of claim 10, wherein the obtaining the predicted motion vector comprises: calculating pixel motion vectors within a sub-macroblock of a virtual frame; and obtaining the predicted motion vector by dividing a sum of the pixel motion vectors by a number of the pixel motion vectors within the sub-macroblock.
[18] The method of claim 17, wherein the calculating the pixel motion vectors is performed using
MVp,xd = r*2 where Mv respectively denote a pixel motion vector, Mv is a motion vector pixel i passing through a pixel of interest in a virtual high-pass frame, and d is a distance between a pixel at a same position as the pixel of interest in the mother frame and a center of a sub-macroblock associated with the motion vector Mv .
[19] An apparatus for efficiently encoding multi-layered motion vectors, the apparatus comprising: a means for obtaining a motion vector in a mother frame of a base layer that is temporally closest to an unsynchronized frame of a current layer; a means for obtaining a predicted motion vector from the motion vector in the mother frame according to a referencing direction of the mother frame, a referencing direction of the unsynchronized frame, a distance between the mother frame and a reference frame and a distance between the unsynchronized frame and the reference frame; a means for generating a residual between the motion vector in the unsynchronized frame and the predicted motion vector; and a means for encoding the motion vector in the mother frame and the residual.
[20] An apparatus for encoding multi-layered motion vectors, the apparatus comprising: a means for obtaining a motion vector in a mother frame of a base layer that is temporally closest to an unsynchronized frame of a current layer; a means for obtaining a predicted motion vector from the motion vector in the mother frame according to a referencing direction of the mother frame, a referencing direction of the unsynchronized frame, a distance between the mother frame and a reference frame and a distance between the unsynchronized frame and the reference frame; a means for setting the predicted motion vector as the motion vector in the unsynchronized frame; and a means for encoding the motion vector in the mother frame.
[21] A recording medium having a computer readable program recorded therein, the program for executing a method for encoding multi-layered motion vectors, the method comprising: obtaining a motion vector in a mother frame of a base layer that is temporally closest to an unsynchronized frame of a current layer; obtaining a predicted motion vector from the motion vector in the mother frame according to a referencing direction and a referencing distance of the mother frame, and a referencing direction and a referencing distance of the unsynchronized frame; generating a residual between the motion vector in the unsynchronized frame and the predicted motion vector; and encoding the motion vector in the mother frame and the residual.
PCT/KR2005/003225 2004-10-21 2005-09-29 Method and apparatus for effectively encoding multi-layered motion vectors WO2006080663A1 (en)

Applications Claiming Priority (10)

Application Number Priority Date Filing Date Title
US62032804P 2004-10-21 2004-10-21
US60/620,328 2004-10-21
KR10-2004-0103059 2004-12-08
KR1020040103059A KR100664929B1 (en) 2004-10-21 2004-12-08 Method and apparatus for effectively compressing motion vectors in video coder based on multi-layer
US64175005P 2005-01-07 2005-01-07
US60/641,750 2005-01-07
US64312705P 2005-01-12 2005-01-12
US60/643,127 2005-01-12
KR10-2005-0016269 2005-02-26
KR1020050016269A KR100703740B1 (en) 2004-10-21 2005-02-26 Method and apparatus for effectively encoding multi-layered motion vectors

Publications (1)

Publication Number Publication Date
WO2006080663A1 true WO2006080663A1 (en) 2006-08-03

Family

ID=36740650

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2005/003225 WO2006080663A1 (en) 2004-10-21 2005-09-29 Method and apparatus for effectively encoding multi-layered motion vectors

Country Status (1)

Country Link
WO (1) WO2006080663A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5521988A (en) * 1994-04-05 1996-05-28 Gte Laboratories Incorporated Vector transform coder with multi-layered codebooks and dynamic bit allocation
US5956026A (en) * 1997-12-19 1999-09-21 Sharp Laboratories Of America, Inc. Method for hierarchical summarization and browsing of digital video
US6614428B1 (en) * 1998-06-08 2003-09-02 Microsoft Corporation Compression of animated geometry using a hierarchical level of detail coder

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5521988A (en) * 1994-04-05 1996-05-28 Gte Laboratories Incorporated Vector transform coder with multi-layered codebooks and dynamic bit allocation
US5956026A (en) * 1997-12-19 1999-09-21 Sharp Laboratories Of America, Inc. Method for hierarchical summarization and browsing of digital video
US6614428B1 (en) * 1998-06-08 2003-09-02 Microsoft Corporation Compression of animated geometry using a hierarchical level of detail coder

Similar Documents

Publication Publication Date Title
US20060088102A1 (en) Method and apparatus for effectively encoding multi-layered motion vectors
US7889793B2 (en) Method and apparatus for effectively compressing motion vectors in video coder based on multi-layer
US8817872B2 (en) Method and apparatus for encoding/decoding multi-layer video using weighted prediction
Andreopoulos et al. In-band motion compensated temporal filtering
US8031776B2 (en) Method and apparatus for predecoding and decoding bitstream including base layer
KR100679031B1 (en) Method for encoding/decoding video based on multi-layer, and apparatus using the method
JP4922391B2 (en) Multi-layer video encoding method and apparatus
KR101203338B1 (en) Adaptive updates in motion-compensated temporal filtering
US7944975B2 (en) Inter-frame prediction method in video coding, video encoder, video decoding method, and video decoder
KR100714689B1 (en) Method for multi-layer based scalable video coding and decoding, and apparatus for the same
US20060104354A1 (en) Multi-layered intra-prediction method and video coding method and apparatus using the same
US20060120448A1 (en) Method and apparatus for encoding/decoding multi-layer video using DCT upsampling
WO2006137709A1 (en) Video coding method and apparatus using multi-layer based weighted prediction
WO2007081082A1 (en) Multilayer-based video encoding/decoding method and video encoder/decoder using smoothing prediction
WO2007081162A1 (en) Method and apparatus for motion prediction using inverse motion transform
EP1878252A1 (en) Method and apparatus for encoding/decoding multi-layer video using weighted prediction
KR100703746B1 (en) Video coding method and apparatus for predicting effectively unsynchronized frame
WO2006080662A1 (en) Method and apparatus for effectively compressing motion vectors in video coder based on multi-layer
EP1741297A1 (en) Method and apparatus for implementing motion scalability
WO2006059848A1 (en) Method and apparatus for multi-layered video encoding and decoding
WO2006080663A1 (en) Method and apparatus for effectively encoding multi-layered motion vectors
EP1730967A1 (en) Method and apparatus for effectively compressing motion vectors in multi-layer structure
Verdicchio et al. Architectural aspects of scalable wavelet video coding
WO2006104357A1 (en) Method for compressing/decompressing motion vectors of unsynchronized picture and apparatus using the same
WO2006098586A1 (en) Video encoding/decoding method and apparatus using motion prediction between temporal levels

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 05856397

Country of ref document: EP

Kind code of ref document: A1