1. Field of the Invention
The present invention generally relates to a digital image processing technology, and more particularly to a method for determining the boundary strength (or boundary filter strength) of edges in a block-based digital encoding image.
2. Description of the Prior Art
A block-based digital image encoding technology typically divides an image frame into many macroblocks (MBs) which are then encoded according to the luminance and chroma data of pixels (picture elements) thereof. For example, in the H.264 coding standard, a macroblock represents an image area containing 16×16 pixels. A macroblock can be encoded in Intra Prediction mode or Inter prediction mode. Intra Prediction is formed based on previously encoded and reconstructed blocks in the same video frame, while Inter Prediction creates a prediction model from one or more previously encoded video frames. Usually, a macroblock tends to be encoded in Inter prediction mode when it is correlated with content of another video frame(s).
Among available Inter prediction encoding techniques, motion compensation no doubt plays an important role. The motion compensation technology creates motion compensation blocks based on previously encoded picture(s), and represents the displacement or shift relative to block(s) of the previously encoded pictures with motion vector(s). The picture used to predict or create the motion compensation block is usually called the reference picture. In addition to motion vectors, encoding data may also include the difference between the reference picture block and the motion compensation block, which is referred to as the prediction residual. In the encoding technology such as H.264, the motion vector accuracy can be down to quarter pixel level.
In an encoding technology such as H.264, the motion compensation block mentioned above can be areas with block sizes of 16×16, 8×16, 16×8 or 8×8 pixels in a macroblock as shown in
In order to improve the encoding efficiency of dynamic areas and static areas in a motion picture, the coding standard such as H.264 may encode each vertically adjacent macroblock pair in either frame mode or field mode. This special coding mechanism is generally called the macroblock adaptive frame/field coding which is hereinafter referred as “MBAFF” for short. Macroblocks encoded in frame mode and field mode are respectively referred to as the Frame MBs and the Field MBs in the following description. When two adjacent macroblocks (may belong to different macroblock pairs) are either both Frame MBs or both Field MBs, they are referred to as having the same parity; otherwise (i.e., one of them is a Frame MB, but the other is a Field MB), they are referred to as having different parities.
The decoding operations in the block-based digital image encoding/decoding system mainly include the inverse quantization and the inverse cosine transformation. The inverse quantization may not completely recover the original image data value, especially for data located in the edge between blocks used as units of the cosine transformation. This problem is called the block effect. The block effect usually causes visual defects on the decoded image, and thus the encoding module and decoding module of the coding technologies such as H.264 may include the function of deblocking process to alleviate or reduce the block effect.
The main operations of a conventional deblocking module may be shown by the flow chart of
From above description, when a block-based digitally encoded image is processed with the encoding technology such as H.264, every video frame needs to determine all the boundary strengths efficiently to benefit the proceeding of the entire deblocking process. So there is a need to provide an efficient boundary strength determining method to improve the total performance of the deblocking process as well as the encoding/decoding operations.
One aspect of the present invention is to provide a method which can efficiently determine the boundary strength of edges in a block-based digitally encoding image so as to improve the entire performance of the deblocking process.
Another aspect of the present invention is to provide a method for determining the boundary strength of edges in a block-based digitally encoding image based on a macroblock. It can determine the boundary strength of edges of the digital image efficiently.
According to one embodiment of the present invention, the present invention provides a method for determining the boundary strength of edges in a block-based digitally encoding image, the method including determining the boundary strength of left edges, top edges, and internal edges of a macroblock according to the encoding mode and other encoding data of the macroblock, in which the encoding mode is Intra Prediction or Intra Prediction and the deblocking process for the block-based digitally encoding image applies operations with different strengths to edges with different boundary strengths.
The method for determining the boundary strength of edges in a block-based digitally encoding image of the present invention may further includes: setting the boundary strength of two adjacent blocks to a first strength value if any block of the two adjacent blocks contains a non-zero prediction residual in the encoding data; and setting the boundary strength thereof to a second strength value if the two adjacent blocks are located in the same motion compensation block, in which the two adjacent blocks are located in the same macroblock in the block-based digitally encoding image, and the macroblock is encoded in inter prediction mode.
In the context of this specification, the boundary strength refers to the strength of the edge between two adjacent blocks (left and right or top and bottom). The boundary strength of the edge between two adjacent blocks may be alternatively referred to as the boundary strength of the two adjacent blocks hereinafter. Furthermore, it should be understood that only steps essential to the present invention will be detailed below. For example, the typical steps for reading the decoded image data (e.g. output from the decoding unit 110) from system memory and/or writing result boundary strength values back to specific locations in memory, although not explicitly described below, may be generally part of the disclosed method.
In contrast with the conventional boundary strength determining method based on edges, the method according to the present invention is based on macroblocks. It can rapidly determine boundary strengths of various edges in a block-based digitally encoding image. For each macroblock, the present invention first determines its encoding mode (Intra Prediction or Inter Prediction), and then determines all boundary strengths of left edges, top edges, and internal edges of the macroblock according to other encoding data. From embodiments illustrated below, it will be realized that the “other encoding data” may include the prediction residuals, numbers and contents of motion vectors, motion compensation blocks and reference pictures. Referring to
In the following description, a macroblock encoded in intra prediction mode is called an Intra MB, and a macroblock encoded in inter prediction mode is called an Inter MB. The method for determining the boundary strengths of left edges, top edges, and internal edges of Intra MB and Inter MB according to the present invention will be detailed below.
For the encoding technology with quarter pixel motion vector, such as H.264, the one pixel difference usually means 4. But if the macroblock is a Field MB, the one pixel difference in vertical components means 2.
As described above, the blocks lying in the same partition or sub-partition will lie in the same motion compensation block. In step 62j of
The above examples and description have been provided only for the purpose of illustration, and are not intended to limit the invention in any way. A great variety of variations and modifications may carry out the present invention without exceeding the scope thereof. For example, although above illustrations are based on the encoding protocol of H.264, the application of the present invention should not be limit by this. Moreover, many variations such as the sizes of blocks, macroblocks, partitions and sub-partitions, as well as the accuracy unit of motion vectors, and possible values of the boundary strength (e.g. other than 0-4) may be made without departing from the scope of the present invention, which is intended to be limited solely by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
96128734 A | Aug 2007 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
6539060 | Lee et al. | Mar 2003 | B1 |
7050504 | Joch et al. | May 2006 | B2 |
7457362 | Sankaran | Nov 2008 | B2 |
7738564 | Park et al. | Jun 2010 | B2 |
7778480 | Huang et al. | Aug 2010 | B2 |
7911538 | Ha et al. | Mar 2011 | B2 |
7929610 | Sun | Apr 2011 | B2 |
20030202608 | MacInnis et al. | Oct 2003 | A1 |
20030219073 | Lee et al. | Nov 2003 | A1 |
20040071217 | Lin | Apr 2004 | A1 |
20040091048 | Youn | May 2004 | A1 |
20040101059 | Joch et al. | May 2004 | A1 |
20040184549 | Webb | Sep 2004 | A1 |
20050013494 | Srinivasan et al. | Jan 2005 | A1 |
20050117653 | Sankaran | Jun 2005 | A1 |
20050201633 | Moon et al. | Sep 2005 | A1 |
20050207492 | Pao | Sep 2005 | A1 |
20050244063 | Kwon et al. | Nov 2005 | A1 |
20050276323 | Martemyanov et al. | Dec 2005 | A1 |
20050276505 | Raveendran | Dec 2005 | A1 |
20060002476 | Park et al. | Jan 2006 | A1 |
20060029135 | Zhou et al. | Feb 2006 | A1 |
20060062311 | Sun et al. | Mar 2006 | A1 |
20060078048 | Bjontegaard | Apr 2006 | A1 |
20060078052 | Dang | Apr 2006 | A1 |
20060104357 | Burazerovic et al. | May 2006 | A1 |
20060110056 | Gambhire | May 2006 | A1 |
20060126962 | Sun | Jun 2006 | A1 |
20060133504 | Jung et al. | Jun 2006 | A1 |
20060146941 | Cha et al. | Jul 2006 | A1 |
20060203917 | Uchida et al. | Sep 2006 | A1 |
20060227869 | Joch et al. | Oct 2006 | A1 |
20060268985 | Liang et al. | Nov 2006 | A1 |
20060268988 | Sun et al. | Nov 2006 | A1 |
20070058726 | Ha et al. | Mar 2007 | A1 |
20070189396 | Kitahara et al. | Aug 2007 | A1 |
20070189735 | Kawashima et al. | Aug 2007 | A1 |
20070195888 | Sabeti | Aug 2007 | A1 |
20070206871 | Jalil et al. | Sep 2007 | A1 |
20070237241 | Ha et al. | Oct 2007 | A1 |
20080123750 | Bronstein et al. | May 2008 | A1 |
20080144722 | Park et al. | Jun 2008 | A1 |
20080240252 | He | Oct 2008 | A1 |
20100135399 | Rui | Jun 2010 | A1 |
20100183068 | Pandit et al. | Jul 2010 | A1 |
20100208805 | Yu et al. | Aug 2010 | A1 |
20100208806 | Yu et al. | Aug 2010 | A1 |
Number | Date | Country | |
---|---|---|---|
20090034855 A1 | Feb 2009 | US |