This application claims priority from Korean Patent Application No. 10-2008-74389, filed on Jul. 30, 2008, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein by reference in its entirety.
1. Field of the Invention
Apparatuses and methods consistent with the present invention relate to multimedia coding, and more particularly, to processing a boundary strength by a deblocking filter.
2. Description of the Related Art
Multimedia video coding in the related art causes blocking edges by performing a discrete cosine transform (DCT) of blocks or motion compensation. The blocking edges cause latticed lines on the entire video, and thereby may be one of the factors that deteriorates the qualitative state of the video to be provided a user.
A method of removing a boundary strength (BS) by using a deblocking filter can alleviate the blocking edges, which is shown in
Moreover,
Exemplary embodiments of the present invention overcome the above disadvantages and other disadvantages not described above. Also, the present invention is not required to overcome the disadvantages described above, and an exemplary embodiment of the present invention may not overcome any of the problems described above. In particular, the present invention provides a deblocking filter capable of minimizing computational loads of boundary strengths.
In accordance with an aspect of the present invention, there is provided a method for processing a boundary strength (BS) by a deblocking filter, wherein a packet including BS information, generated from an encoding process, is utilized by a decoding process.
In accordance with another aspect of the present invention, there is provided a coding apparatus, the apparatus including: an encoding unit for generating a packet including BS information; and a decoding unit for decoding the information packet generated by the encoding unit.
The above and/or other aspects of the present invention will be more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following description of the present invention, a detailed description of known functions and configurations incorporated herein is omitted to avoid making the subject matter of the present invention unclear.
In a method of processing a boundary strength (BS) by a deblocking filter, according to the present invention, a packet including BS information generated by an encoding process is provided to a decoding process, and thereby a computation process on a BS may be omitted in the decoding process. Accordingly, the BS processing method by the deblocking filter, according to the present invention, may minimize computational loads.
In other words, the present invention is advantageous in that it can minimize computational loads while maintaining information volume, because in BS processing by a deblocking filter, a packet including BS information generated by an encoding process is analyzed and then is applied to BS processing during a decoding process.
The encoding unit 210 includes a deblocking filter 211 for generating BS information, and a packet encoder 212 for generating a packet including the BS information generated from the deblocking filter 211.
The decoding unit 220 includes a packet decoder 221 for decoding the packet including the BS information, provided from the packet encoder 212, and a deblocking filter 222 for controlling the block distortion of a bitstream provided from the encoding unit 210 based on the BS information decoded in the packet decoder 221.
A packet structure (BS_IP) including BS information, which is applicable to a coding apparatus and method according to the present invention, may be largely divided into two exemplary packet structures depending on whether a ‘dir’ field is applied or not.
The parameter and bit allocation of a packet including BS information according to an exemplary embodiment of the present invention may be defined in Tables 3 to 6.
In Table 3, Quarter Common Intermediate Format (QCIF), Quarter Video Graphics Array (QVGA), Common Intermediate Format (CIF), and Video Graphics Array (VGA) are standards indicating the resolution of a monitor, and their resolutions may be defined as 176×144, 320×240, 640×480, and 704×576, respectively.
As noted in Table 4, the dir field is allocated 1 bit. When the dir field is set to 0, a BS is set stepwise by offset calculation from left to right, or from top to bottom. Also, when the dir field is set to 1, offset calculation is performed from right to left, or from bottom to top, and as shown in
The BS field may be represented by 2 bits, as shown in Table 5. A BS can be set as a value from 0 to 4, but 3 or 4 is determined according to whether a current macro block is intra-coded or not. Thus, in a packet, the case where a BS is actually 3 or 4 is ignored, and only BSs of 0 to 2 are considered.
In other words, a BS value of 0 may be represented by a bitstream of 00, 1 may be represented by a bitstream of 01, and 2 may be represented by a bitstream of 10. Also, a bitstream of 11 corresponds to the case where a BS value of 0 is maintained up to the end of a current column or row (in a horizontal or vertical direction), and may be set as an indicator field indicating the end of a packet. However, the first two bits of an offset have to be different from 11 indicating the end of a packet.
The length field as noted in Table 6 indicates the length where a BS is successively maintained. In Table 6, the length field is assumed to be 3 bits. A length field including 2 units (8 pixels) may be represented by a bitstream of 010, and bitstreams including only ‘0’ are understood as 2̂(the number of bits in a length field).
The packet (including BS information) as shown in
The offset field indicates an interval from the leftmost end (in a horizontal direction) and the uppermost end (in a vertical direction) of a video until a BS has a value other than 0. Herein, 4 pixels with a BS value are set as one unit. Accordingly, a CIF video of 352×288 resolution may be expressed in a maximum of 7 bits, as 88×72 (0×58×0×48), when 4 pixels are set as one unit.
The packet may include a total of 48 bits containing 6 bits for the offset field 510, 40 bits (5 bits per field) for the BS fields 511, 513, 515, 517, 519, 521, 523 and 525 and the length fields 512, 514, 516, 518, 520, 522, 524 and 526, and 2 bits for the end field 527.
In comparison with
Table 7 shows the number of bits of each field parameter according to the frame size. However, the present invention is not limited thereto, and the number of bits, besides the bits noted in Table 7, can be adjusted according to the characteristics of a bitstream.
As an example for expressing information of all BSs (BS=0˜2) of QCIF video as shown in
If this is applied to a packet structure not including a dir field, according to the present invention, the following total 483 bits (75×5+21×6+36×2) are required, which corresponds to 15% (=(483/3168)×100) of the number of bits represented in a general way.
Table 8 is an example of a BS in a vertical direction as shown in
In the present invention, since BS information required for a deblocking filtering process of decoding is generated during the deblocking filtering of encoding and is provided as information on the BS, it is possible to omit the computation process required for computing an additional BS in the deblocking filtering process of the decoding.
In other words, the present invention is advantageous in that it can reduce computation processes and computational loads of a decoder because BS information required for the deblocking filtering processes of both encoding and decoding is shared. Therefore, through the present invention, it is possible to maintain the same amount of information even though the number of bits used is reduced.
Table 1 shows a packet size including BS information in the horizontal/vertical direction, according to the example as shown in
In Table 1, 0 to 9 at the top line indicate a frame constituting video, and “horizontal” and “vertical” at the left side indicate the directions of the BS.
Table 2 as shown below is for comparing and illustrating packet sizes including BS information according to Table 1 and
Referring to Table 2, it can be seen that a coding method using a packet including BS information, according to the present invention, can reduce the number of bits to about 31.7%, compared to the related art.
While the invention has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2008-0074389 | Jul 2008 | KR | national |