Title:
APPARATUS AND METHOD FOR ENCODING AND DECODING MOVING PICTURE USING ADAPTIVE SCANNING
Kind Code:
A1
Abstract:
Provided is an apparatus and method for encoding/decoding a moving picture based on adaptive scanning. The moving picture apparatus and method can increase a compression rate based on adaptive scanning by performing intra prediction onto blocks of a predetermined size, and scanning coefficients acquired from Discrete Cosine Transform (DCT) of a residue signal and quantization differently according to the intra prediction mode. The moving picture encoding apparatus includes: a mode selector for selecting and outputting a prediction mode; a predictor for predicting pixel values of pixels to be encoded of an input video based on the prediction mode to thereby output a residue signal block; a transform/quantization unit for performing DCT onto the residue signal block and quantizing the transformed residue signal block; and an encoder for adaptively scanning and encoding the quantized residue signal block based on the prediction mode.


Inventors:
Seo, Jeong-il (Daejeon, KR)
Kim, Wook-joong (Daejeon, KR)
Kim, Kyu-heon (Daejeon, KR)
Kang, Kyeong-ok (Daejeon, KR)
Hong, Jin-woo (Daejeon, KR)
Lee, Yung-lyul (Seoul, KR)
Han, Ki-hun (Seoul, KR)
Hur, Jae-ho (Paju-si, KR)
Sim, Dong-gyu (Seoul, KR)
Oh, Seoung-jun (Seongnam-si, KR)
Application Number:
14/750202
Publication Date:
10/15/2015
Filing Date:
06/25/2015
Assignee:
Electronics and Telecommunications Research Institute (Daejeon, KR)
Kwangwoon University Research Institute for Industry Cooperation (Seoul, KR)
Primary Class:
International Classes:
H04N19/61; H04N19/129; H04N19/159; H04N19/176
View Patent Images:
Related US Applications:
20090196374Minimal dead time digitally compensated process transmitterAugust, 2009Schulte et al.
20090168871Video motion estimationJuly, 2009Lu et al.
20040010727Network system and output device used in this systemJanuary, 2004Fujinami
20020027954METHOD AND DEVICE FOR GATHERING BLOCK STATISTICS DURING INVERSE QUANTIZATION AND ISCANMarch, 2002Singh et al.
20040218671Picture information conversion method and apparatusNovember, 2004Haraguchi et al.
20060215768Video entropy decoding with graceful degradationSeptember, 2006Kerofsky
20090110129SYNCHRONOUS RECTIFYING CIRCUIT FOR OFFLINE POWER CONVERTERApril, 2009Yang et al.
20030138045Video decoder with scalable architectureJuly, 2003Murdock et al.
20070097205Video transmission over wireless networksMay, 2007Venkatachalam
20040109503High speed motion vector estimation apparatus and methodJune, 2004Lee
20090310676PROCESSING MULTIVIEW VIDEODecember, 2009Yang
Attorney, Agent or Firm:
NSIP LAW (P.O. Box 65745 Washington DC 20035)
Claims:
What is claimed is:

1. A method of decoding motion pictures based on adaptive scanning, the method comprising: performing entropy decoding of an encoded bitstream to obtain entropy-decoded signals; determining a scanning method for the entropy-decoded signals; recovering a picture from the entropy-decoded signals according to the scanning method; and outputting the recovered picture; wherein the scanning method is an adaptive scanning method according to an intra prediction mode for the entropy-decoded signals and comprises: scanning entropy-decoded signals of a first row with priority so that all of the entropy-decoded signals of the first row are scanned prior to scanning entropy-decoded signals of any other row in response to the intra prediction mode being a vertical mode; and scanning entropy-decoded signals of a first column with priority so that all of the entropy-decoded signals of the first column are scanned prior to scanning entropy-decoded signals of any other column in response to the intra prediction mode being a horizontal mode.

2. The method of claim 1, wherein the method further comprises inverse-transforming and dequantizing the entropy-decoded signals after determining the scanning method for the entropy-decoded signals.

3. The method of claim 1, wherein the recovering comprises first scanning entropy-decoded signals of blocks in a first row of blocks.

4. The method of claim 1, wherein each of the entropy-decoded signals is a transformed and quantized residue signal that represents a difference between a pixel value and a predicted pixel value.

Description:

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application is a continuation of application Ser. No. 13/910,639 filed on Jun. 5, 2013, which is a continuation of application Ser. No. 13/469,536 filed on May 11, 2012, now U.S. Pat. No. 8,520,729, which is a continuation of application Ser. No. 12/090,699 having a 371(c) date of Apr. 18, 2008, now U.S. Pat. No. 8,199,819, which is a U.S. national stage application of International Application No. PCT/KR2006/004260 filed on Oct. 19, 2006, which claims the benefit of Korean Application No. 10-2005-0099733 filed on Oct. 21, 2005, in the Korean Intellectual Property Office. The entire disclosures of application Ser. Nos. 13/910,639, 13/469,536, and 12/090,699, International Application No. PCT/KR2006/004260, and Korean Application No. 10-2005-0099733 are incorporated herein by reference for all purposes.

BACKGROUND

1. Field

The present invention relates to encoding and decoding of a moving picture based on adaptive scanning; and, more particularly, to a moving picture encoding/decoding apparatus that can increase a compression rate by performing intra prediction onto blocks of a predetermined size, and adaptively scanning coefficients acquired from Discrete Cosine Transform (DCT) of a residue signal and quantization differently according to the intra prediction mode, and a method thereof.

2. Description of Related Art

According to an H.264 standard arranged for encoding/decoding a moving picture, the encoding/decoding is performed on the basis of a unit of macro blocks or a unit of a sub-block. One frame includes a plurality of macro blocks, and the sub-block is acquired by dividing a macro block into two or four sub-blocks. The encoding and decoding are carried out based on temporal prediction and spatial prediction. Temporal prediction is predicting motion of the macro blocks of a current frame by referring to macro blocks of adjacent frames. Spatial prediction is predicting a macro block of a current frame to be encoded based on adjacent macro blocks within the current frame.

The spatial prediction is also referred to as intra prediction. The intra predication takes advantage of a feature that adjacent pixels of a pixel to be predicted is highly likely to have a similar value. According to the H.264 standard, a pixel value of a current block is predicted based on a prediction mode considering nine directionalities.

FIG. 1 is a view showing an intra prediction mode for 4×4 blocks and 8×8 blocks in the H.264 standard. There are nine prediction modes according to the prediction direction: a vertical mode (mode 0), a horizontal mode (mode 1), a DC mode (mode 2), a Diagonal Down Left mode (mode 3), a Diagonal Down Right mode (mode 4), a Vertical_Right mode (mode 5), a Horizontal_Down mode (mode 6), a Vertical_Left mode (mode 7), and a Horizontal_Up mode (mode 8). The arrows signify prediction directions. Hereinafter, a prediction process in the vertical mode and the horizontal mode when intra prediction is performed onto 4×4 blocks will be described.

FIG. 2 is a view for describing a pixel prediction process in the vertical mode performed onto 4×4 blocks 300. As shown in FIG. 2, pixels a, e, i, and m 302, 304, 306 and 308 are predicted from an adjacent pixel A in the vertical direction. In the same way, pixels b, f, j and n are predicted from a pixel B, and pixels c, g, k and o are predicted from a pixel C, while pixels d, h, I and p are predicted from a pixel D.

FIG. 3 is a view for describing a pixel prediction process in the horizontal mode performed onto 4×4 blocks 300. As shown in FIG. 3, pixels a, b, c and d 312, 314, 316 and 318 are predicted from an adjacent pixel I in the horizontal direction. In the same way, pixels e, f, g and h are predicted from a pixel J, and i, j, k and I are predicted from a pixel K pixels, while pixels m, n, o and p are predicted from a pixel L.

Meanwhile, a conventional moving picture encoder performs entropy encoding by performing Discrete Cosine Transform (DCT) and quantization onto a residue signal, which is obtained by differentially dividing a predicted signal and a current signal, to thereby produce coefficients and performing zigzag scanning onto the coefficients.

However, the correlation of the residue signal is likely to be high in a horizontal direction or a vertical direction according to whether the prediction mode is a horizontal mode or a vertical mode. Therefore, the conventional encoding method using a fixed zigzag scanning has a drawback that it is not appropriate for acquiring a high compression rate.

SUMMARY

It is, therefore, an object of the present invention to provide a moving picture encoding apparatus and method that can increase a compression rate based on adaptive scanning by performing intra prediction onto blocks of a predetermined size, and adaptively scanning coefficients acquired from Discrete Cosine Transform (DCT) of a residue signal and quantization according to the intra prediction mode, and a decoding apparatus and method therefor.

In accordance with one aspect of the present invention, there is provided an apparatus for encoding a moving picture based on adaptive scanning, which includes: a mode selecting means for selecting and outputting a prediction mode; a predicting means for predicting pixel values of pixels to be encoded of an input video based on the prediction mode to thereby output a residue signal block; a transform/quantization means for performing Discrete Cosine Transform (DCT) onto the residue signal block and quantizing the transformed residue signal block; and an encoding means for adaptively scanning and encoding the quantized residue signal block based on the prediction mode.

In accordance with another aspect of the present invention, there is provided an apparatus for decoding a moving picture based on adaptive scanning, which includes: an entropy decoder for receiving encoded bitstream, decoding the encoded bitstream based on an entropy decoding method, and outputting decoded signals; a scanning method detector for receiving the decoded signals from the entropy decoder, acquiring a scanning method used in the encoding of the decoded signals, and outputting the scanning method information along with the decoded signals; and a video recovering unit for recovering the decoded signals based on the scanning method and outputting a recovered video, wherein the scanning method is an adaptive scanning where different scanning methods are applied based on an intra prediction mode.

In accordance with another aspect of the present invention, there is provided a method for encoding a moving picture based on adaptive scanning, which includes the steps of: a) selecting a prediction mode; b) predicting pixel values of pixels to be encoded of an input video based on the selected prediction mode and outputting a residue signal block; c) performing Discrete Cosine Transform (DCT) onto the residue signal block and quantizing the transformed residue signal block; d) adaptively scanning the quantized residue signal block based on the prediction mode and outputting scanned coefficients; and e) encoding the scanned coefficients.

The present invention can improve an encoding compression rate remarkably by performing intra prediction onto blocks of a predetermined size, and adaptively scanning coefficients acquired from Discrete Cosine Transform (DCT) of a residue signal and quantization differently according to the intra prediction mode, and a method thereof.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other objects and features of the present invention will become apparent from the following description of the preferred embodiments given in conjunction with the accompanying drawings, in which:

FIG. 1 is a view showing an intra prediction mode for 4×4 blocks and 8×8 blocks in the H.264 standard;

FIG. 2 is a view describing a pixel prediction process in a vertical mode;

FIG. 3 is a view describing a pixel prediction process in a horizontal mode;

FIG. 4 is a block view illustrating a moving picture encoding apparatus in accordance with an embodiment of the present invention;

FIG. 5 is a view showing a conventional zigzag scanning;

FIG. 6 is a view showing a horizontal preference scanning in accordance with an embodiment of the present invention;

FIG. 7 is a view showing a vertical preference scanning in accordance with an embodiment of the present invention;

FIG. 8 is a flowchart describing a moving picture encoding method using adaptive scanning in accordance with an embodiment of the present invention;

FIG. 9 is a flowchart describing an adaptive scanning in accordance with an embodiment of the present invention; and

FIG. 10 is a block view illustrating a moving picture decoding apparatus in accordance with an embodiment of the present invention.

DETAILED DESCRIPTION

The following description exemplifies only the principles of the present invention. Even if they are not described or illustrated clearly in the present specification, one of ordinary skill in the art can embody the principles of the present invention and invent various apparatuses within the concept and scope of the present invention. The use of the conditional terms and embodiments presented in the present specification are intended only to make the concept of the present invention understood, and they are not limited to the embodiments and conditions mentioned in the specification.

In addition, all the detailed description on the principles, viewpoints and embodiments and particular embodiments of the present invention should be understood to include structural and functional equivalents to them. The equivalents include not only currently known equivalents but also those to be developed in future, that is, all devices invented to perform the same function, regardless of their structures.

Functions of various devices illustrated in the drawings including a functional block expressed as a processor or a similar concept can be provided not only by using hardware dedicated to the functions, but also by using hardware capable of running proper software for the functions. When a function is provided by a processor, the function may be provided by a single dedicated processor, single shared processor, or a plurality of individual processors, part of which can be shared.

The apparent use of a term, ‘processor’, ‘control’ or similar concept, should not be understood to exclusively refer to a piece of hardware capable of running software, but should be understood to include a digital signal processor (DSP), hardware, and ROM, RAM and non-volatile memory for storing software, implicatively. Other known and commonly used hardware may be included therein, too.

Other objects and aspects of the invention will become apparent from the following description of the embodiments with reference to the accompanying drawings. When it is thought that a detailed description of a prior art feature may obscure the points of the invention, the description will not be provided herein. Herein, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

FIG. 4 is a block view illustrating a moving picture encoding apparatus in accordance with an embodiment of the present invention.

As shown in FIG. 4, the moving picture encoding apparatus includes an intra predictor 110, a mode selector 120, a Discrete Cosine Transform (DCT)/quantization unit 130, and an entropy encoder 140.

The mode selector 120 selects an optimal prediction mode among the aforementioned intra prediction modes and outputs it to the intra predictor 110. In other words, the mode selector 120 selects one among diverse encoding prediction modes available during 4×4 intra prediction, 16×16 intra prediction and 8×8 intra prediction. Generally, it selects one prediction mode based on rate-distortion optimization.

In case of luminance blocks, the prediction modes include a vertical mode, a horizontal mode, a DC mode, a Diagonal_Down_Left mode, a Diagonal_Down_Right mode, a Vertical_Right mode, a Horizontal_Down mode, a Vertical_Left mode, and a Horizontal_Up mode, which are intra 4×4 luminance encoding modes of the H.264 standard, and a vertical mode, a horizontal mode, a plane mode and a DC mode, which are intra 16×16 luminance encoding modes.

With respect to chrominance blocks, the prediction modes include a vertical mode, a horizontal mode, a plane mode and a DC mode, which are intra M×N chrominance encoding modes of the H.264 standard.

The intra predictor 110 performs prediction on an input image according to the prediction mode inputted from the mode predictor 120 and outputs a residue signal block which represents a difference between the pixel value of a macro block of a current frame to be encoded and a predicted pixel value. In the present embodiment, 4×4 intra prediction is performed onto the pixels of a luminance block, and 8×8 intra prediction is performed onto the pixels of a chrominance block.

The DCT/quantization unit 130 performs DCT and quantization onto the residue signal block inputted from the intra predictor 110 and outputs it to the entropy encoder 140.

The entropy encoder 140 arranges coefficients by adaptively scanning the quantized residue signal block regardless of the kind of the prediction mode, performs entropy encoding, and outputs encoded signals. The entropy encoding is an encoding method which increases the data compression rate by allocating a few bits to data with a high occurrence frequency number and many bits to data with a low occurrence frequency number. The entropy encoding that may be applied to the present invention includes context adaptive variable length coding (CAVLC) and context-based adaptive binary arithmetic coding (CABAC).

FIG. 5 is a view describing a conventional zigzag scanning. The conventional zigzag scanning of FIG. 5 is devised in consideration that significant coefficients of the DCT are highly likely to be positioned in the left upper part. However, when the vertical mode or a horizontal mode is selected as an intra prediction mode, the correlation property of the residue signal may increase in a vertical or a horizontal direction. In the case of the vertical mode, the significant coefficients mainly appear in a first row or so. And, in the case of the horizontal mode, the significant coefficients mainly appear in a first column or so. Therefore, another scanning method that can replace the conventional zigzag scanning is required. Hereinafter, embodiments of adaptive scanning will be described according to the kinds of the intra prediction mode.

FIG. 6 is a view showing a horizontal preference scanning in accordance with an embodiment of the present invention, and FIG. 7 is a view showing a vertical preference scanning in accordance with an embodiment of the present invention.

According to the embodiment of the present invention, the entropy encoder 140 uses the horizontal preference scanning method shown in FIG. 6 when the intra prediction mode is a vertical mode. When the intra prediction mode is a horizontal mode, the entropy encoder 140 uses the vertical preference scanning method shown in FIG. 7. In the other cases, the entropy encoder 140 uses the conventional zigzag scanning, arranges coefficients, performs entropy encoding, and outputs encoded signals.

According to the horizontal preference scanning method illustrated in FIG. 6, all the blocks of the first row are scanned and then the subsequent scanning is performed in a sequence from all the blocks of the first row, followed by the first to third blocks in the second row, the second block and the first block in the third row, the first and second blocks in the fourth row, the third block in the third row, the fourth block in the second row, the fourth block in the third row, and the third and fourth blocks in the fourth row. Therefore, since the horizontal preference scanning of the present invention scans all the blocks in the first row prior to the other rows, it has a high correlation in the row direction and it is appropriate for the vertical mode where the significant coefficients are mainly positioned in the first row or so.

According to the vertical preference scanning described in FIG. 7, scanning is performed in a sequence from all the blocks in the first column first, followed by the first to third blocks in the second column, the second block and the first block in the third column, the first and second blocks in the fourth column, the third block in the third column, the fourth block in the second column, the fourth block in the third column, and the third and fourth blocks in the fourth column. Therefore, the vertical preference scanning of the present invention has a high correlation in the column direction and it is appropriate for the vertical mode where the significant coefficients are mainly positioned in the first column or so.

Since the present invention determines the scanning method to be applied based on the intra mode, it scarcely affects the existing syntax and the apparatus of the present invention can be realized by applying a little modification to the semantics of a scanning method in the encoding and decoding. Since those skilled in the art of a moving picture encoding/decoding technology such as the H.264 standard can easily realize the adaptive scanning based on an intra prediction mode, which is suggested in the present invention, detailed description on it will not be provided herein.

FIG. 8 is a flowchart describing a moving picture encoding method using adaptive scanning in accordance with an embodiment of the present invention.

First, when an image to be encoded is inputted to the intra predictor 110 at step S510, the mode selector 120 selects an intra prediction mode at step S520.

Subsequently, the intra predictor 110 performs prediction onto the inputted image based on the selected prediction mode at step S530, and creates a residue signal block having a difference value between a pixel value in a macro block of a current frame to be encoded and a predicted pixel value at step S540.

At step S550, the DCT/quantization unit 130 performs DCT onto the residue signal block and quantizes the transformed residue signal block.

Subsequently, the entropy encoder 140 adaptively scans the quantized residue signal block based on the prediction mode at step S560, performs entropy encoding onto the scanned coefficients, and outputs the entropy-encoded coefficients at step S570.

FIG. 9 is a flowchart describing an adaptive scanning in accordance with an embodiment of the present invention. First, it is determined at step S610 whether the prediction mode is a vertical mode. When it is determined that the prediction mode is the vertical mode, horizontal preference scanning is performed at step S620. Meanwhile, when the prediction mode is not the vertical mode, it is determined at step S630 whether the prediction mode is a horizontal mode.

When the prediction mode is the horizontal mode, vertical preference scanning is carried out at step S640. When it is not the horizontal mode, zigzag scanning is carried out at step S650.

FIG. 10 is a block view illustrating a moving picture decoding apparatus in accordance with an embodiment of the present invention.

As illustrated in FIG. 10, the moving picture decoding apparatus of the present invention includes an entropy decoder 210, a scanning method detector 220, and an image recovery unit 230.

The entropy decoder 210 receives an encoded bitstream and decodes it by using an entropy decoding method such as Context Adaptive Variable Length Coding (CAVLC) and Context-based Adaptive Binary Arithmetic Coding (CABAC).

The scanning method detector 220 receives the decoded signal from the entropy decoder 210, acquires information on how the decoded signal was scanned in the encoding process, and transmits the scanning method information to the image recovery unit 230 along with the decoded signal.

The image recovery unit 230 recovers the decoded signal based on the scanning method and outputs a recovered image.

TABLE 1
Con-Fore-
NewstainermanSilentParisMobileTempete
(QCIF)(QCIF)(QCIF)(QCIF)(CIF)(CIF)(CIF)
Entire 100100100100100100100
Frame(30 (30 (30 (35 (30 (30 (30
Hz)Hz)Hz)Hz)Hz)Hz)Hz)
Con-CABAC, Intra only (Intra 4 × 4 mode),
ditionQP (25, 30, 35, 40)

As shown in the Table 1, seven images of different sizes were tested.

The following Table 2 compares compression rates, when the test images are encoded based on the encoding method using the adaptive scanning and the conventional encoding method using the H.264 zigzag scanning under the aforementioned experimental conditions.

TABLE 2
JM96ProposedBits
PSNR PSNR Reduction
ImageQP(dB)Bits(dB)Bits(%)
Foreman2538.98334169638.9833210880.60
3035.21200306435.2119903840.55
3531.74118974431.7311843920.34
4028.4872241628.487222640.11
News2540.12344850440.1333815121.94
3035.95226596835.9622302961.57
3531.99143425631.9914063841.94
4028.4088390428.428753680.97
Silent2538.97362124038.9736013600.55
3034.97209172034.9620767200.81
3531.56118228031.5611804160.16
4028.4666954428.46672696−0.38
Container2539.51328792039.5132605840.88
3035.68205819235.6920292241.44
3532.05124724832.0412190002.12
4028.5474584828.547303442.26
Paris2539.211743712039.20171650321.56
3034.991137681634.99111670401.84
3531.10707835231.1169503841.84
4027.50425482427.5241808081.61
Mobile2538.422751524838.42273018880.80
3033.751870097633.74185389600.89
3529.451192325629.44118210400.89
4025.62717908825.6371263280.73
Tempete2538.771996832838.76197483041.10
3034.331276625634.33126052881.25
3530.30762377630.3075251361.28
4026.73427856826.7442442240.82
Average251.06
301.19
351.23
400.88

It can be seen from the Table 2 that the encoding compression rate using the adaptive scanning based on the intra prediction mode according to the present invention is superior to the encoding compression rate using the H.264 zigzag scanning.

Meanwhile, a video compression standard to be developed following the H.264 standard is expected to use only the vertical, horizontal, DC, and diagonal prediction modes, because the existing 9-directional intra prediction mode requires a considerable complexity. Therefore, the encoding method using the adaptive scanning of the present embodiment provides even more improvement in the compression rate to thereby save bits about 3%.

Meanwhile, the moving picture encoding/decoding method described above may be authored in the form of a computer program. The codes and code segments that form the program may be easily inferred by computer programmers of the art to which the present invention pertains. Also, the program is stored in a computer-readable recording medium and it can be read and executed by a computer to realize the moving picture encoding/decoding method. The data storage media include magnetic recording media, optical recording media, and carrier wave media.

While the present invention has been described with respect to certain preferred embodiments, it will be apparent to those skilled in the art that various changes and modifications may be made without departing from the scope of the invention as defined in the following claims.