WO2010035993A2 - 임펄스 신호를 고려한 영상 부호화/복호화 장치 및 방법 - Google Patents
임펄스 신호를 고려한 영상 부호화/복호화 장치 및 방법 Download PDFInfo
- Publication number
- WO2010035993A2 WO2010035993A2 PCT/KR2009/005362 KR2009005362W WO2010035993A2 WO 2010035993 A2 WO2010035993 A2 WO 2010035993A2 KR 2009005362 W KR2009005362 W KR 2009005362W WO 2010035993 A2 WO2010035993 A2 WO 2010035993A2
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- axb
- block
- residual block
- residual
- encoding
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/11—Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
Definitions
- the present invention relates to an image encoding / decoding apparatus and method considering an impulse signal. More particularly, the present invention relates to an apparatus and method for improving encoding efficiency by efficiently encoding or decoding a residual signal of an impulse component in encoding or decoding an image.
- Moving Picture Experts Group (MPEG) and Video Coding Experts Group (VCEG) have developed video compression techniques that are superior to the existing MPEG-4 Part 2 and H.263 standards.
- the new standard is called H.264 / AVC (Advanced Video Coding) and was jointly released as MPEG-4 Part 10 AVC and ITU-T Recommendation H.264.
- 'H.264' integer discrete cosine transform (DCT) is called, and motion estimation and compensation of transform block size (Variable Block Size) Motion Estimation and Compensation, Quantization, Entropy Coding.
- DCT integer discrete cosine transform
- the encoding method of the image data according to H.264 / AVC can be largely classified into intra prediction encoding and inter prediction encoding according to the prediction method.
- Intra prediction predicts pixels of a current block to be encoded in one reference picture by using pixels of a neighboring block located in the periphery thereof.
- the inter prediction predicts the pixels of the current block by using the pixels of the block most similar to the current block in the reference picture in one or both directions.
- Most image compression techniques such as H.264 compress image data by encoding only the difference between the prediction pixel predicted through inter prediction or intra prediction and the original pixel, thereby removing temporal redundancy and spatial redundancy of the image. As the difference between the prediction pixel and the original pixel is smaller, the size of the compressed image data is smaller, thereby improving the compression efficiency.
- a pixel may not always be accurately predicted.
- the difference between the pixel that is not accurately predicted and the original pixel is larger than that of other pixels.
- a difference between the original pixel and the predicted pixel, that is, a specific residual signal larger than other residual signals of the residual signal is called a residual signal of an impulse component, and the residual signal of the impulse component has a problem of lowering compression efficiency. .
- the present invention has a main object in improving encoding efficiency by efficiently encoding or decoding a residual signal of an impulse component in encoding or decoding an image.
- a method of encoding an image comprising: generating an MxN residual block by predicting a current block to generate a prediction block and subtracting the current block and the prediction block to generate an MxN residual block; And an AxB encoding step of encoding the AxB residual block including the residual signal of the impulse component in the MxN residual block to generate a bitstream.
- a method of decoding an image comprising: a decoding step of decoding a bitstream to extract a quantized frequency coefficient sequence; Generating an AxB residual block by performing inverse scan, inverse quantization, and inverse transformation on the quantized frequency coefficient sequence in units of AxB blocks; Generating an MxN residual block by further combining one or more residual signals to the AxB residual block to generate an MxN residual block; A prediction step of predicting a current block to generate a prediction block; And a reconstruction step of reconstructing the current block by adding the prediction block and the MxN residual block.
- an apparatus for decoding an image comprising: a decoder configured to decode a bitstream to extract a quantized frequency coefficient sequence; An AxB residual block generator configured to inversely scan, inverse quantize, and inversely convert the quantized frequency coefficient sequence into AxB block units to generate an AxB residual block; An MxN residual block generator for further combining one or more residual signals to the AxB residual block to generate an MxN residual block; A prediction unit for predicting a current block to generate a prediction block; And an adder configured to reconstruct the current block by adding the prediction block and the MxN residual block.
- 1 and 2 are exemplary views illustrating a prediction according to intra prediction and inter prediction.
- FIG. 3 is a block diagram schematically illustrating an electronic configuration of a video encoding apparatus
- FIG. 4 is an exemplary diagram showing a residual signal before conversion and a frequency coefficient after conversion
- FIG. 5 is an exemplary view showing how an impulse affects a frequency domain
- FIG. 7 is an exemplary view showing the configuration of an AxB residual block according to the present invention.
- FIG. 8 is an exemplary view illustrating setting an arbitrary value to the remaining residual signal according to the present invention.
- FIG. 9 is an exemplary view illustrating a process of converting a frequency domain in units of AxB blocks according to the present invention.
- FIG. 11 is a flowchart for explaining a video encoding method according to a first embodiment of the present invention.
- FIG. 13 is a flowchart illustrating a video decoding method according to a first embodiment of the present invention
- FIG. 14 is a block diagram schematically illustrating a configuration of a video encoding apparatus according to a second embodiment of the present invention.
- 16 is a block diagram schematically showing the configuration of a video encoding apparatus according to a third embodiment of the present invention.
- 17 is an exemplary view showing the configuration of an AxB residual block in a diagonal block form according to a third embodiment of the present invention.
- FIG. 18 is a block diagram schematically illustrating the configuration of a video encoding apparatus according to a fourth embodiment of the present invention.
- 1 and 2 are exemplary views illustrating the prediction according to intra prediction and inter prediction.
- Intra prediction includes intra 4x4 prediction, intra 16x16 prediction, and intra 8x8 prediction, and each intra prediction includes a plurality of prediction modes. 1 illustrates nine prediction modes in intra 4x4 prediction.
- intra 4x4 prediction includes vertical mode, horizontal mode, direct current mode, diagonal down-left mode, diagonal down-right, and vertical. There are nine prediction modes, including the right-right mode, horizontal-down mode, vertical-left and horizontal-up modes.
- intra 8x8 prediction has the same prediction mode as intra 4x4 prediction, and intra 16x16 prediction includes vertical mode, horizontal mode, direct current mode, and plane mode. There are four prediction modes.
- Inter prediction predicts pixels using a motion estimation technique and a motion compensation technique.
- an image is composed of a series of still images. These still images are classified in units of group of pictures (GOP). Each still image is called a picture or frame.
- One picture group includes an I picture, a P picture, and a B picture.
- the I picture is a picture that is encoded by itself without using a reference picture
- the P picture and the B picture are pictures that are encoded by performing motion estimation and motion compensation using the reference picture.
- a B picture is a picture that is encoded by predicting a picture of a past picture and a picture of a future in a forward direction and a reverse direction, respectively.
- Motion estimation and motion compensation for encoding a P picture use an I picture as a reference picture.
- Motion estimation and motion compensation for encoding a B picture use an I picture and a P picture as reference pictures.
- FIG. 3 is a block diagram schematically illustrating an electronic configuration of a video encoding apparatus.
- the image encoding apparatus 300 may include a predictor 310, a subtractor 320, a transformer 330, a quantizer 340, a scan unit 350, an encoder 360, an inverse quantizer 370, It may be configured to include an inverse transform unit 380 and an adder 390.
- the prediction unit 310 generates a prediction block by predicting a current block to be currently encoded in an image. That is, the prediction unit 310 predicts the pixel value of each pixel of the current block to be encoded in the image according to a predetermined optimal prediction mode, and predicts the predicted pixel value of each pixel. A predicted block having a pixel value) is generated. In addition, the prediction unit 310 may transmit the information about the prediction mode to the encoder 360 so that the encoder 360 may encode the information about the prediction mode.
- the subtraction unit 320 generates a residual block by subtracting the prediction block from the current block. That is, the subtractor 320 calculates a difference between the pixel value of each pixel of the current block to be encoded and the predicted pixel value of each pixel of the prediction block predicted by the prediction unit 310 to obtain a residual signal in the form of a block. Create a residual block with).
- the converter 330 converts the residual block into the frequency domain to convert each pixel value of the residual block into a frequency coefficient.
- the transform unit 330 uses various transformation techniques for transforming an image signal of a spatial axis into a frequency axis, such as a Hadamard transform and a Discrete Cosine Transform Based Transform (DCT based Transform).
- the residual signal can be converted into the frequency domain, and the residual signal converted into the frequency domain becomes a frequency coefficient.
- the quantization unit 340 quantizes the residual block having the frequency coefficient transformed by the transformer 330 into the frequency domain.
- the quantization unit 340 converts the transformed residual block into Dead Zone Uniform Threshold Quantization (DZUTQ), a quantization weight matrix, or an improved quantization technique.
- DZUTQ Dead Zone Uniform Threshold Quantization
- the encoder 360 outputs the bitstream by encoding the quantized frequency coefficient sequence generated by the scan unit 350 using an entropy coding technique or the like.
- the encoder 360 may encode the information about the prediction mode in which the predictor 310 predicts the current block.
- the inverse quantizer 370 inverse quantizes the residual block quantized by the quantizer 340. That is, the inverse quantization unit 370 inversely quantizes the quantized frequency coefficients of the Angularized residual block to generate a residual block having frequency coefficients.
- the inverse transform unit 380 inverse transforms the residual block inversely quantized by the inverse quantizer 370. That is, the inverse transformer 380 inversely transforms frequency coefficients of the inverse quantized residual block to generate a residual block having a pixel value, that is, a reconstructed residual block.
- the inverse transform unit 380 may perform inverse transform by using the transformed method used by the transform unit 330 as the inverse.
- a deblocking filter unit (not shown) may be further connected between the predictor 310 and the adder 390.
- the deblocking filter unit deblocks filtering the current block restored by the adder 390.
- the deblocking filtering refers to an operation of reducing block distortion generated by encoding an image in block units, and applying a deblocking filter to a block boundary and a macroblock boundary, or applying a deblocking filter only to a macroblock boundary or a deblocking filter. You can optionally use one of the methods that does not use.
- the transformer 330 converts the residual signal of the residual block into the frequency domain to generate a frequency coefficient
- the residual signal is decomposed into a low frequency component and a high frequency component.
- the decomposed frequency coefficient is quantized and the zigzag scan is performed by the scan unit 350, as shown in FIG. 5A
- the frequency coefficient of the low frequency component is' 0. It has a non-value and is driven to the position of the frequency coefficient of the DC component, and the frequency coefficients of the high frequency component are '0' and can be ignored. Therefore, since only the Molly quantization frequency coefficient is encoded around the frequency coefficient of the DC component, as shown in Fig. 4, a high compression effect can be obtained. 4, it can be seen that the distribution of the frequency coefficient obtained by converting the residual signal, but the value other than '0' is driven around the frequency coefficient of the DC component.
- the data size of the encoded bitstream can be reduced, but as the residual signal of the impulse component occurs, the frequency coefficient of the high frequency component has a large value, and the amount of data of the encoded bitstream Increase and hence the efficiency of the compression decreases. Therefore, when the residual signal of such an impulse component is included in the residual block, it should be able to be efficiently encoded.
- the present invention provides an image encoding / decoding method and apparatus for efficiently encoding when a residual signal of an impulse component is included in a residual block.
- the residual signal of the impulse component refers to a residual signal whose absolute value is greater than or equal to a preset value among the residual signals in the residual block.
- FIG. 6 is a block diagram schematically illustrating a video encoding apparatus according to a first embodiment of the present invention.
- the image encoding apparatus 600 includes a predictor 610, a subtractor 620, a converter 630, an MxN converter 640, an AxB converter 642, and an MxN quantization. 650, AxB quantizer 652, scan unit 660, encoder 670, MxN inverse quantizer 680, AxB inverse quantizer 682, MxN inverse transform unit 690, AxB inverse
- the conversion unit 692 and the adder 694 may be configured.
- the video encoding apparatus 600 may be a personal computer (PC), a notebook computer, a personal digital assistant (PDA), a portable multimedia player (PMP), or a PlayStation Portable (PSP). ),
- a communication device such as a communication modem for communicating with various devices or a wired / wireless communication network, a memory for storing various programs and data for encoding an image, and executing a program.
- the predictor 610 and the subtractor 620 perform the same or similar functions as those of the predictor 310 and the subtractor 320 of the image encoding apparatus 300 described above with reference to FIG. 3, a detailed description thereof will be omitted. do.
- the MxN transform unit 640, the MxN quantizer 650, the MxN inverse quantizer 680, the MxN inverse transform unit 690, the AxB transform unit 642, the AxB quantizer 652, and the AxB inverse quantizer 682 and AxB inverse transform unit 692 are the same as the transform unit 330, the quantizer 340, the inverse quantizer 370, and the inverse transform unit 380 of the image encoding apparatus described above with reference to FIG. 3.
- the MxN transform unit 640, the MxN quantizer 650, the MxN inverse quantizer 680, and the MxN inverse transform unit 690 include a transform unit 330, a quantizer 340, and an inverse quantizer 370.
- transformation, quantization, inverse quantization, and inverse transformation are performed in the same MxN block unit as the block size of the current block, and the transformation, quantization, inverse quantization, and inverse transformation are performed in AxB block units.
- the names of the AxB transform unit 642, the AxB quantizer 652, the AxB inverse quantizer 682, and the AxB inverse transform unit 692 are only different.
- the encoding mode determiner 630 determines whether to encode the residual block among the MxN residual block and the AxB residual block according to whether the residual signal of the impulse component is included in the MxN residual block transmitted from the subtractor 620.
- the residual block is transferred to the MxN converter 640 or the AxB converter 642.
- the encoding mode determiner 630 determines whether there is a residual signal of the impulse component, and determines an absolute value of all residual signals in the MxN residual block (a residual value of the impulse component having a predetermined size).
- the residual signal of the impulse component in the residual block by checking whether the absolute value of the at least one residual signal is equal to or greater than the preset value and whether the residual signal equal to or greater than the preset value is included in the residual block. You can check whether there is.
- the AxB residual block may be configured as a rectangular block including all residual signals of an impulse component in the MxN residual block.
- a and B each represent the number of rows and columns of the rectangular block.
- the size of the AxB residual block is 1 ⁇ 4.
- the rectangular block is configured to include the residual signals of all impulse components, as shown in 7B, 7C, and 7D, the sizes of the AxB residual blocks are 4x3, 2x2, and 3x4, respectively.
- an MxN residual block including residual signals x1 to x16 includes an AxB residual block configured to have a size of 3x3 to include all residual signals x6, x9, and x15 of impulse components hatched.
- x5 to x7, x9 to x11, x13 to x15 are transformed, quantized and scanned and encoded in 3x3 block units, and the remaining residual signals x1 to x4, x8, x12 and x16 are set to an arbitrary value such as '0' and encoded.
- '0' is merely an example of an arbitrary value, and an arbitrary value does not necessarily have a value of '0', and may be set to various values such as '-1' and '1'. .
- the residual signal except the AxB residual block in the MxN residual block is significantly smaller than the residual signal of the impulse component, so that the corresponding block, macroblock, slice, picture, etc. may not be used as it is.
- the image decoding apparatus may find and determine a value that may have optimal performance, and determine a residual signal having the value as an alternative residual signal. May be encoded or may be included in the bitstream as replacement residual signal information as it is.
- the image decoding apparatus may extract the replacement residual signal information from the bitstream and use the residual signal except for the AxB residual block as a value of the replacement residual signal identified by the replacement residual signal information.
- the value of the replacement residual signal may be determined by finding a value that can achieve optimal performance in the image encoding apparatus, but may be set to a value such as '0', '-1', or '1'.
- the replacement residual signal information may not be generated or included in the bitstream, and the image decoding apparatus may restore the MxN residual block by using the preset value as the remaining residual signal.
- a residual signal (b) smaller than the predetermined value (a) is -a ⁇ b ⁇ a (where a is a positive number). It exists in the same range as, and if the transformation, quantization, inverse quantization, inverse transformation, etc. process is added, the quantization error may be added to be a value c other than the value b of the original residual signal. For example, when b is -2, if b is transformed, quantized, inverse quantized, and inversely transformed, a quantization error may be added to restore the value of c equal to -3, and further, the sign is changed to +1. The value may be restored.
- a residual signal with a small absolute value is restored through transformation and quantization, inverse quantization and inverse transformation, and its value is around '0' and its sign is '+' to '-' or '-' to '+'. Since it can be changed to ', if the preset value (a) is properly set to determine the residual signal of the impulse component, the remaining residual signals not included in the AxB residual block are driven to the value of' 0 'on average. There is a tendency. Therefore, the predetermined value (a) is appropriately set to determine the residual signal of the impulse component, and the values of the remaining residual signals not included in the AxB residual block are set to '0', '-1', '1', etc.
- the residual residual signal information may be transmitted by encoding or encoding the residual residual signals to the image decoding apparatus or by encoding or encoding one alternative residual signal that can replace the remaining residual signals.
- the apparatus decodes the encoded bitstream in this manner, the residual residual signal is set to a predetermined value such as '0', '-1', or '1' for the remaining residual signals or is identified by the residual residual signal information. By setting the value to, all original residual signals can be restored.
- the encoding mode determiner 630 checks whether the size of the AxB residual block is smaller than the size of the MxN residual block, and thus, the size of the AxB residual block is the MxN residual block.
- the AxB residual block may be transferred to the AxB converter 642 only when the size is smaller than. That is, an AxB residual block including all residual signals of the impulse component is configured.
- the size of the AxB residual block is the same as the size of the MxN residual block, since the residual signal of the impulse component exists throughout the MxN residual block, The conventional method, that is, the MxN residual block is encoded.
- the encoding mode determiner 630 transmits the MxN residual block to the MxN converter 640 to encode the block in the same size as the current block.
- all residual signals of the MxN residual block may be set to '0', which is an arbitrary value. If there is no residual signal of the impulse component in the residual block, as described above, if all residual signals are recovered after transforming and quantizing and inverse quantizing and inverse transforming, the value is set to '0' because the value is driven around '0'. This is because there may not be a large loss even when encoding.
- the encoding mode determiner 630 when the encoding mode determiner 630 determines to encode the AxB residual block, the encoding mode determiner 630 includes at least one of block shape information of the AxB residual block, block position information of the AxB residual block, and encoding identification information for identifying AxB encoding. Mode information may be generated and transmitted to the encoder 670.
- AxB encoding refers to an AxB residual block including a residual signal of an impulse component, and predicting, transforming, quantizing, scanning, and encoding the AxB residual block in units of AxB blocks.
- the encoding mode determiner 630 transmits the block shape information of the AxB residual block and the block position information of the AxB residual block to the AxB converter 642.
- the block shape information of the AxB residual block may be information in which block sizes such as 3x4 and 2x3 are specified, and the block position information of the AxB residual block is the position where the residual signal of the impulse component first appears in the MxN residual block.
- Information such as the vertical component value and the horizontal component value of the coordinates for the AxB residual block or coordinates indicating where the position of the topmost residual signal in the leftmost position of the AxB residual block is located in the MxN residual block may be used.
- Encoding identification information indicating that encoding is performed in units is a flag having a value of '1' or '0', and if the flag is '1', it means that the encoding is performed in AxB block units, and in case of '0', it is MxN block unit. It may indicate that the encoding.
- the AxB transform unit 642 When the AxB converter 642 receives the block shape information of the AxB residual block, the block position information of the AxB residual block, and the AxB residual block from the encoding mode determiner 630, the AxB transform unit 642 performs frequency conversion in units of AxB blocks to obtain a frequency coefficient. Generates an AxB residual block.
- the AxB converter 642 may perform the conversion in various conversion schemes. For example, one-dimensional transformation is performed on each residual signal of each row and each column of the AxB residual block.
- matrix X is a matrix representing AxB residual blocks having a 3x2 block size
- matrix A is a one-dimensional horizontal basis vector ⁇ (a1, a2, a3), (b1, b2, b3), (c1, c2, c3) ⁇
- the matrix B represents a matrix including the one-dimensional vertical basis vectors ⁇ (d1, d2), (e1, e2) ⁇ of length B.
- Y is a product of the A matrix, the X matrix, and the B matrix, and represents transform coefficients converted in the vertical direction and the horizontal direction. Since the remaining residual signals having a value smaller than the residual signal of the impulse component are assumed to be small enough to be ignored, it is assumed to be '0'.
- the AxB quantizer 652 quantizes the AxB residual block transformed by the AxB transform unit 642 to generate a residual block having quantization frequency coefficients. To this end, the AxB quantization unit 652 may quantize using a quantization step (Q Step: Quantization Step) given according to a quantization parameter (QP).
- Q Step Quantization Step
- QP quantization parameter
- the scan unit 660 scans the quantization frequency coefficient of the MxN residual block quantized by the MxN quantization unit 650 in a normal zigzag scan.
- the zigzag scan scheme of the quantized frequency coefficient of the AxB residual block quantized by the AxB quantization unit 652 is converted into an AxB block form.
- the modified scan scheme may be a scheme as exemplarily illustrated in FIG. 10, and may be modified in various scan schemes according to the AxB block type.
- the encoder 670 encodes the quantized frequency coefficient sequence scanned by the scan unit 660 using various encoding techniques such as entropy encoding to generate a bitstream. In this case, the encoder 670 may insert mode information transferred from the conversion mode determiner 630 into the bitstream.
- the MxN inverse quantizer 680 inverse quantizes the quantized frequency coefficients of the MxN residual block quantized by the MxN quantizer 650 to generate an MxN residual block having frequency coefficients, and the MxN inverse transform unit 690 performs the MxN inverse An inverse transform of the frequency coefficients of the inverse quantized MxN residual block by the quantization unit 680 generates a reconstructed MxN residual block having the reconstructed residual signal.
- the AxB inverse quantizer 682 inverse quantizes the quantized frequency coefficients of the AxB residual block quantized by the AxB quantizer 652 to generate an AxB residual block having frequency coefficients, and the AxB inverse transform unit 692 performs AxB inverse.
- An inverse transform of the frequency coefficients of the inverse quantized AxB residual block by the quantization unit 682 generates a reconstructed AxB residual block having the reconstructed residual signal.
- inverse AxB quantization and AxB inverse transform may be performed inversely with the aforementioned AxB quantization and AxB transform.
- the MxN residual block generator 694 restores the MxN residual block by substituting the AxB residual block transferred from the AxB inverse transform unit 692 into the corresponding position of the MxN residual block.
- the MxN residual block generator 694 may substitute the corresponding position using the block position information of the AxB residual block, and have an arbitrary value (for example, '0') for the remaining residual signals not included in the AxB residual block. ) To generate the final MxN residual block.
- the adder 696 reconstructs the current block by adding the reconstructed MxN residual block transmitted from the MxN inverse transform unit 690 or the MxN residual block generator 694 with the predicted block predicted by the predictor 610.
- the reconstructed current block is accumulated in picture units and stored as a reference picture, and may be used to predict the next block.
- FIG. 11 is a flowchart illustrating a video encoding method according to a first embodiment of the present invention.
- the image encoding apparatus 600 classifies the image into macroblocks or subblock units of the macroblocks and determines an optimal encoding mode among various encoding modes such as an inter prediction mode or an intra prediction mode, and then determines the encoding. Predict and encode a current block to be encoded according to a mode. In this case, when intra mode is determined as an encoding mode and intra prediction is performed, the image encoding apparatus 600 predicts a current block to be encoded to generate a prediction block, and subtracts the prediction block from the current block to generate a residual block. In operation S1110, if the size of the current block is MxN size, an MxN residual block having an MxN size is generated.
- the image encoding apparatus 600 analyzes the residual signal in the MxN residual block to determine whether there is a residual signal of an impulse component (S1120). As a result of checking in step S1120, the image encoding apparatus 600 configures an AxB residual block including the residual signal of the impulse component, and the size of the AxB residual block is smaller than the size of the MxN residual block. In operation S1130, the AxB residual block is encoded only in a small case to generate a bitstream (S1140). A method of encoding the AxB residual block has been described above with reference to FIGS. 6 to 10.
- the image encoding apparatus 600 sets all residual signals of the MxN residual block to '0' (S1150), and encodes the MxN residual block. In operation S1160, a bitstream is generated. Also, as a result of checking in step S1130, the image encoding apparatus 600 proceeds to step S1160 when the residual signal of the impulse component is present in the residual block, but the size of the AxB residual block is not smaller than the size of the MxN residual block. Encode In this case, the MxN residual block to be encoded is a residual block not passed through step S1150, that is, an MxN residual block generated in step S1110.
- the image encoded in the bitstream by the video encoding apparatus 600 is real-time or non-real-time through the wired or wireless communication network, such as the Internet, local area wireless communication network, wireless LAN network, WiBro network, mobile communication network or the like, cable, universal serial bus (USB It may be transmitted to an image decoding apparatus to be described later through a communication interface such as a universal serial bus, decoded by the image decoding apparatus, and restored and reproduced as an image.
- the wired or wireless communication network such as the Internet, local area wireless communication network, wireless LAN network, WiBro network, mobile communication network or the like, cable, universal serial bus (USB)
- USB universal serial bus
- FIG. 12 is a block diagram schematically illustrating a configuration of an image decoding apparatus according to a first embodiment of the present invention.
- the image decoding apparatus 1200 includes a decoder 1210, an inverse scan unit 1220, an MxN inverse quantizer 1230, an AxB inverse quantizer 1230, and an MxN inverse transform unit ( 1240, an AxB inverse transformer 1242, an MxN residual block generator 1250, a predictor 1260, and an adder 1270.
- the video encoding apparatus 1200 may be a personal computer (PC), a notebook computer, a personal digital assistant (PDA), a portable multimedia player (PMP), or a PlayStation Portable (PSP). ),
- a communication device such as a communication modem for communicating with various devices or a wired / wireless communication network, a memory for storing various programs and data for decoding an image, and executing a program.
- the decoder 1210 decodes the bitstream, extracts the quantized frequency coefficient sequence, and delivers the quantized frequency coefficient string to the inverse scan unit 1220.
- the decoder 1210 may extract mode information from the bitstream.
- the mode information may be the same information as the mode information described above with reference to FIG. 6, and is transmitted to the inverse scan unit 1220.
- the inverse scan unit 1220 inversely scans the quantized frequency coefficient sequence transmitted from the decoder 1210, and inversely scans the quantized frequency coefficient sequence using a conventional zigzag scan method according to the mode information transmitted from the decoder 1210. Scanning may generate an MxN residual block having quantization frequency coefficients, or an AxB residual block having quantization frequency coefficients may be generated by reverse scanning the quantization frequency coefficient sequence using a scan method modified according to the AxB block shape. For example, when the flag indicating the encoding identification information included in the mode information is '0', the quantization frequency coefficient sequence is reversely scanned according to the existing zigzag scan method, and the flag indicating the encoding identification information is '1'.
- the quantization frequency coefficient sequence may be reverse-scanned by a different zigzag scan method according to the shape of the block identified by the AxB block type information included in the mode information.
- the reverse scanning according to the zigzag scan method according to the type of the block identified by the AxB block type information may be performed by scanning in the reverse order of the scan method described above with reference to FIG. 10.
- the inverse scan unit 1220 transfers the generated residual block to the MxN inverse quantization unit 1230 when the generated residual block is an MxN residual block, and AxB. In the case of the residual block, it is transmitted to the AxB inverse quantization unit 1232.
- the MxN inverse quantizer 1230, the MxN inverse transform unit 1240, the AxB inverse quantizer 1232, and the AxB inverse transform unit 1242 are the MxN inverse quantizer 680 and the MxN inverse transform unit described above with reference to FIG. 6. 690 and the AxB inverse quantizer 682 and the AxB inverse transform unit 692 perform the same or similar functions, and thus detailed descriptions thereof will be omitted.
- the MxN residual block generator 1250 restores the MxN residual block by inserting the AxB residual block transferred from the AxB inverse transform unit 1242 into a corresponding position of the MxN residual block.
- the MxN residual block generator 1250 may substitute the corresponding position by using the block position information of the AxB residual block extracted from the bitstream by the decoder 1210 and the remaining residual not included in the AxB residual block. If the signal is assigned a predetermined value (for example, '0', '-1', '1', etc.) or extracted the residual residual signal information from the bitstream, the residual residual signal identified by the alternate residual signal information By setting to the value of, the final MxN residual block is generated.
- the predictor 1260 predicts the current block to generate a predicted block
- the adder 1270 predicts the reconstructed MxN residual block transmitted from the MxN inverse transformer 1240 or the MxN residual block generator 1250.
- the current block is reconstructed by adding the prediction block predicted by the block 1260.
- the reconstructed current block is accumulated in picture units and output as a reconstructed picture or stored as a reference picture, and may be used to predict the next block.
- FIG. 13 is a flowchart illustrating a method of decoding an image according to the first embodiment of the present invention.
- the image decoding apparatus 1200 which receives and stores a bitstream of an image through a wired or wireless communication network or a cable, decodes and restores the image in order to reproduce the image according to a user's selection or an algorithm of another program being executed.
- the image decoding apparatus 1200 extracts a residual block by decoding the bitstream (S1310). In this case, the image decoding apparatus 1200 extracts mode information from the bitstream.
- the image decoding apparatus 1200 checks the mode information to determine whether the encoding information includes the encoding identification information indicating the AxB encoding (S1320). If the encoding information includes the encoding identification information indicating the AxB encoding, the AxB residual is determined. By inversely scanning the block according to the block shape information included in the mode information, and inversely transforming by inverse quantization in AxB block units, the AxB residual block is restored (S1330), and the AxB residual restored according to the block position information included in the mode information.
- the image decoding apparatus 1200 predicts the current block, generates a prediction block, adds the MxN residual block reconstructed in operation S1340 or S1350, and restores the current block in operation S1360.
- the reconstructed current block is stored in picture units and output as a reconstructed picture or stored as a reference picture to be used to predict the next block.
- FIG. 14 is a block diagram schematically illustrating a configuration of an image encoding apparatus according to a second embodiment of the present invention.
- the image encoding apparatus 1400 according to the second embodiment of the present invention is an apparatus for encoding an image, and includes all components of the image encoding apparatus 600 according to the first embodiment of the present invention described above with reference to FIG. 6.
- the apparatus further includes a ratio calculator 1410.
- the video encoding apparatus 1400 according to the second embodiment of the present invention is the same as the video encoding apparatus 600 according to the first embodiment of the present invention described above with reference to FIG. 6, and includes an AxB residual including a residual signal of an impulse component.
- AxB encoding is performed for encoding a block. However, it is determined whether AxB encoding is to be performed according to an impulse ratio, which is a ratio of residual signals of impulse components among all residual signals in the AxB residual block.
- an impulse ratio which is a ratio of residual signals of impulse components among all residual signals in the AxB residual block.
- the ratio calculation unit 1410 receives an impulse ratio (AxB residual), which is a ratio of the residual signal of the impulse component among all residual signals in the AxB residual block.
- AxB residual block and mode information only when the number of residual signals of the impulse component in the block / the total number of residual signals in the AxB residual block) is greater than or equal to the threshold by comparing the calculated ratio with a preset threshold value.
- the MxN residual block may be transferred to the MxN transform unit 640 or the encoding mode determiner 620 may transmit the MxN residual block so that the MxN residual block may be encoded as in the conventional method. Control to transfer to the MxN converter 640. Accordingly, it is possible to indicate that AxB encoding is performed by setting a flag indicating encoding identification information to '1' only when the impulse ratio is equal to or greater than a threshold value, and the encoding identification information, block shape information, and block position information are converted into AxB conversion units 642. If the impulse ratio is less than the threshold value, a flag indicating encoding identification information may be set to '0'.
- 15 is a flowchart for explaining a video encoding method according to a second embodiment of the present invention.
- steps S1510 to S1530 are the same as or similar to steps S1110 to S1130 described above with reference to FIG. 11, and steps S1550 to S1570 are described above with reference to FIG. 11. To the same or similar to step S1160.
- the image encoding apparatus 1400 calculates an impulse ratio and preset threshold value.
- step S1550 only when the impulse ratio is greater than or equal to the threshold value to encode the AxB residual block, and generates a bitstream if the impulse ratio is less than the threshold, and proceeds to step S1570 to encode the MxN residual block. To generate the bitstream.
- the image encoding apparatus 1600 according to the third embodiment of the present invention includes all components of the image encoding apparatus 600 according to the first embodiment of the present invention described above with reference to FIG. 6. However, the functions of the encoding mode determiner 1610 and the MxN residual block generator 1620 are partially different from those of the encoding mode determiner 630 and the MxN residual block generator 694, respectively.
- the encoding mode determiner 1610 determines whether there is a residual signal of the impulse component in the diagonal direction in the MxN residual block, and when there is no residual signal of the impulse component in the diagonal direction.
- the AxB residual block is configured in the above-described rectangular block form, and when there is a residual signal of the impulse component in the diagonal direction, the AxB residual block is configured in the diagonal block form.
- an AxB residual block is configured according to the first embodiment of the present invention.
- the AxB residual block becomes a 3x3 block, and six residual signals must be encoded.
- the AxB residual block may be a block of size 1x3, and only three residual signals may be encoded.
- the MxN residual block is a 4x4 block and two pairs of three residual signals diagonally are residual signals of an impulse component
- the AxB residual block becomes a 4x4 sized block so that the size of the AxB residual block is the same as that of the MxN residual block, and 16 residual signals must be encoded.
- the AxB residual block according to the third embodiment of the present invention as shown in 17D, the AxB residual block becomes a 2x3 sized block so that the size of the AxB residual block becomes smaller than the size of the MxN residual block. Only residual signals may be encoded.
- the size of the AxB residual block can be reduced, and the number of residual signals to be encoded can be reduced accordingly. Since the size of the AxB residual block becomes the same as the size of the MxN residual block, and when implemented in combination with the second embodiment of the present invention, the impulse ratio can be increased, so that the ratio capable of performing AxB encoding is increased. As a result, the compression efficiency can be further improved.
- the encoding mode determiner 1610 may include diagonal block identification information indicating that the AxB residual block is formed in the form of a diagonal block, and diagonal position information indicating the position of the residual signal of each impulse component constituting the AxB residual block in the form of a diagonal block. It is additionally generated as mode information, and the information is transmitted to the MxN residual block generator 1620.
- the configuration of the video decoding apparatus according to the third embodiment of the present invention is not shown, the configuration of the video decoding apparatus 1200 according to the first embodiment described above with reference to FIG. 12 is the same.
- the mode information extracted from the bitstream by the decoder 1210 further includes diagonal block identification information and diagonal position information, and the information is transmitted to the MxN residual block generator 1250.
- the MxN residual block generator 1250 according to the third embodiment of the present invention uses a diagonal block form using diagonal block identification information and diagonal position information, like the MxN residual block generator 1620 described above with reference to FIG. 16. Substitute the AxB residual block in the MxN residual block and assign the remaining residual signal to an arbitrary value or a value of the replacement residual signal identified by the replacement residual signal information extracted from the bitstream to generate a reconstructed MxN residual block.
- the image encoding apparatuses 600, 1400, and 1600 may predetermine whether all of the quantization frequency coefficients generated by MxN residual blocks are transformed and quantized are '0'. If it is determined that all are '0', MxN encoding may be performed. If at least one is not '0', AxB encoding may be performed. That is, a coefficient discrimination unit is further configured between the scan unit 660, the MxN quantization unit 650, and the AxB quantization unit 652 to quantize the quantized residual block output from the MxN quantization unit 650.
- the quantized residual block output from the MxN quantizer 650 is transmitted to the scan unit 660, and mode information such as encoding identification information indicating MxN encoding is transmitted.
- mode information such as encoding identification information indicating MxN encoding is transmitted.
- the existing MxN encoding may be performed, and the quantized residual block output from the MxN quantization unit 650 only when at least one or more of the quantization frequency coefficients is not '0', or
- the quantized residual block output from the AxB quantization unit 652 is transmitted to the scan unit 660, and MxN encoding is performed on AxB encoding or mode information including encoding identification information.
- the above-described image decoding apparatuses 1200 have all the quantization frequency coefficients reconstructed by decoding the bitstream being '0' (or encoding included in the bitstream).
- Coded block pattern can be used to recover the current block by restoring the MxN residual block by inverse quantization and inverse transformation of quantization frequency coefficients without reading mode information from the bitstream. If at least one or more of the quantized frequency coefficients reconstructed by decoding is not '0' (or can be known through a coded block pattern (CBP) included in the bitstream), mode information may be obtained from the bitstream.
- the indent restore and read the additional block position information and block form information from the mode information when the restore the current block, AxB encoding can reconstruct the current block by restoring the residual block AxB.
- FIG. 18 is a block diagram schematically illustrating a configuration of a video encoding apparatus according to a fourth embodiment of the present invention.
- the image encoding apparatus 1800 according to the fourth embodiment of the present invention includes all components of the image encoding apparatus 600 according to the first embodiment of the present invention described above with reference to FIG. 1820 is further included, and some functions of the encoding mode determiner 1810 are changed. Hereinafter, detailed descriptions of the remaining components described above with reference to FIG. 6 will be omitted.
- the video encoding apparatus 1800 according to the fourth embodiment of the present invention is the same as the video encoding apparatus 600 according to the first embodiment of the present invention described above with reference to FIG. 6, and includes an AxB residual including a residual signal of an impulse component.
- AxB encoding for encoding a block is performed.
- AxB encoding that generates a bitstream by scanning and encoding is performed.
- the encoding mode determiner 1810 not only determines whether to perform AxB encoding as in the encoding mode determiner 630 described above with reference to FIG. 6, but also, when performing AxB encoding, the number of pixels of the AxB residual block. Is determined to be less than or equal to the preset number, and when less than or equal to the preset number, the AxB residual block is transferred to the AxB transform unit 642 to perform AxB encoding. The MxN residual block is transmitted to the MxN converter 640 to encode the block.
- the coefficient discrimination unit 1820 determines whether all quantization frequency coefficients of the quantized residual block transmitted from the MxN quantization unit 650 are '0'. And transmitting the quantized MxN residual block to the scan unit 660 to scan in a conventional zigzag scan method without including mode information including encoding identification information indicating MxN encoding in the bitstream, and at least one of '0'. If not, it is determined whether the number of pixels of the AxB residual block is less than or equal to the preset number, and if only the following is included, mode information including encoding identification information indicating the AxB encoding, block shape information, and block position information is included in the bitstream.
- the quantized AxB residual block transmitted from the AxB quantization unit 652 is transferred to the scan unit 660, and according to the block shape of the AxB residual block. Otherwise the method will be to scan.
- the mode information including the encoding identification information indicating the MxN encoding is encoded in the conventional manner without being included in the bitstream.
- FIG. 19 is a flowchart illustrating a video encoding method according to a fourth embodiment of the present invention.
- the image encoding apparatus 1800 determines whether the quantization frequency coefficients of the quantized MxN residual blocks are all '0' according to an existing encoding scheme encoded in MxN block units (S1910). If the result of the determination in step S1910 is '0', the image encoding apparatus 1800 generates a bitstream by scanning and encoding the quantized frequency coefficients encoded by the MxN block unit using the existing zigzag scan method or the like ( S1920). If at least one of the determination results in step S1910 is not '0', the image encoding apparatus 1800 determines whether the number of pixels of the AxB residual block is less than or equal to the preset number (S1930).
- step S1930 if the preset number is exceeded, the process proceeds to S1920 and the method is encoded according to the existing method. If the number is less than the preset number, the bitstream is generated by performing AxB encoding that encodes the AxB residual block in units of AxB blocks. S1940).
- the quantization frequency coefficients of the quantized residual blocks of the MxN residual block are all '0' and whether the number of pixels of the AxB residual block is equal to or less than the preset number.
- the number of pixels of the AxB residual block is not set to at least one of the quantization frequency coefficients and the preset number of pixels of the AxB residual block is not included in every residual block including mode information including encoding identification information indicating MxN encoding or AxB encoding. Only in the following cases, encoding identification information, block type information, and block position information indicating AxB encoding may be included in the bitstream. Therefore, the bit amount for mode information including encoding identification information, block shape information, and block position information can be reduced according to the characteristics of the block.
- the number of pixels of the AxB residual block is reduced by reducing the number of pixels of the AxB residual block. Can be reduced.
- the image decoding apparatus includes all components of the image decoding apparatus 1200 according to the first embodiment of the present invention described above with reference to FIG. 12. However, when obtaining the quantization frequency coefficient sequence from the bitstream, the decoder 1210 checks whether the number of quantization frequency coefficients is less than or equal to a preset number, and if it is less than or equals, extracts mode information from the bitstream and confirms encoding identification information, and then AxB. In the case of encoding, block type information and block position information are extracted from the mode information.
- the first embodiment differs from the first embodiment in that the number of quantization frequency coefficients of the quantization frequency coefficient sequence is first checked in order to decode in units of AxB blocks only when the number of pixels of the AxB residual block is equal to or less than a preset number.
- the image decoding apparatus checks the number of quantization frequency coefficients of a corresponding block through total coefficients and total zeros of the quantization frequency coefficient sequences, and then sets 'N'. If there are more than ',' the residual block is determined to be MxN coded (the number of frequencies cannot be more than 'N' in AxB coding), and if 'N' or less, 'N' is also used through MxN coding. Since the following frequency coefficients can be created (for example, when there is only one frequency coefficient of a DC component or when a frequency coefficient of a low frequency component near a DC component occurs), additionally, mode information is extracted from the bitstream and mode information.
- mode information is not included in the bitstream when AxB encoding is not performed, and mode information including encoding identification information, block shape information, and block position information is included in the bitstream only when AxB encoding is used.
- the image encoding apparatus includes all components of the image encoding apparatus 1800 according to the fourth embodiment of the present invention described above with reference to FIG. 18, and includes a coefficient discrimination unit 1820. Some functions of are changed. Hereinafter, detailed descriptions of the remaining components described above with reference to FIG. 18 will be omitted.
- An image encoding apparatus encodes an AxB residual block including a residual signal of an impulse component, like the image encoding apparatus 1800 according to the fourth embodiment of the present invention described above with reference to FIG. 18.
- AxB encoding is performed.
- the image encoding apparatus determines whether the number of pixels of the AxB residual block exceeds a preset number when at least one or more of the quantization frequency coefficients of the quantized residual block is not '0'.
- the AxB encoding is performed when the preset number is exceeded, and when the number is less than the preset number, the MxN residual block is encoded by the conventional method. For example, when the preset value is 8, the residual block multiplied by A and B is 8 or less performs MxN encoding, and the residual block larger than 8 performs AxB encoding. That is, in the case of residual blocks such as 3x3, 3x4, and 4x3, AxB encoding is performed because the number of pixels of the residual block exceeds eight.
- the coefficient discrimination unit 1820 determines whether all quantization frequency coefficients of the quantized residual block transmitted from the MxN quantization unit 650 are '0'. And mode information including encoding identification information indicating MxN encoding is included in the bitstream while the quantized MxN residual block is transmitted to the scan unit 660, and scanned in a conventional zigzag scan method, and at least one of the quantization frequency coefficients. If the value is not '0', it is determined whether the number of pixels of the AxB residual block exceeds a preset number, and mode information including encoding identification information indicating the AxB encoding, block shape information, and block position information only when the number of pixels in the AxB residual block is exceeded.
- the scan unit 660 includes mode information including encoding identification information indicating MxN encoding in the bitstream and predicts, transforms, and quantizes the MxN residual block in a conventional manner. Encode it by passing it.
- FIG. 20 is a flowchart illustrating a video encoding method according to a fifth embodiment of the present invention.
- the image encoding apparatus determines whether the quantization frequency coefficients of the quantized MxN residual blocks are all '0' according to an existing encoding scheme encoded in MxN block units (S2010). If the result of the determination in step S2010 is '0', the image encoding apparatus generates a bitstream by scanning and encoding the quantization frequency coefficients encoded in MxN block units using an existing zigzag scan method or the like (S2020). If at least one of the determination results in step S2010 is not '0', the image encoding apparatus checks whether the number of pixels of the AxB residual block exceeds a preset number (S2030).
- step S2030 If the result of the check in step S2030 is less than or equal to the predetermined number, the process proceeds to S2020 and the existing method is encoded. If the preset number is exceeded, the bitstream is generated by performing AxB encoding that encodes the AxB residual block in units of AxB blocks. (S2040).
- AxB encoding is performed only when the number of pixels of the AxB residual block exceeds a preset number.
- the AxB residual block increases the number of pixels in the AxB residual block.
- encoding identification information for indicating MxN encoding or AxB encoding should be included in the bitstream for every block, while encoding block shape information and block position information of the AxB residual block. It can further reduce the amount of bits required.
- the AxB residual block may be configured as one of 3x3, 4x3, and 3x4, and thus the shape of the AxB residual block is also determined as one of the smaller cases. Since the position is also determined by one of the fewer cases, the block type information and the block position information can be represented with fewer bits.
- the image decoding apparatus according to the fifth embodiment of the present invention is configured in the same manner as the image decoding apparatus 1200 according to the first embodiment of the present invention described above with reference to FIG. 12. Accordingly, the image decoding method according to the fifth embodiment of the present invention is also the same as the other image decoding method of the first embodiment of the present invention described above with reference to FIG. 13.
- the reason why the image decoding apparatus does not first determine the number of quantization frequency coefficients is that the total coefficient of the quantization frequency coefficient sequence and the total zero are calculated. This is because it is not possible to determine that the residual block is AxB coded if the number of quantization frequency coefficients of the corresponding block that is identified through the number exceeds 'N'. That is, even when MxN coding is performed, the number of quantization frequency coefficients may exceed N. Therefore, it may not be determined whether the residual block is AxB coded or MxN coded based on the number of quantized frequency coefficients.
- the video decoding apparatus reads the encoding identification information of the mode information from the bitstream and determines whether it is MxN encoding or AxB encoding, as in the first embodiment, and in case of AxB encoding. Reads block type information and block position information of mode information and performs AxB decoding.
- the image encoding apparatus is an apparatus for encoding an image, the prediction unit generating a prediction block by predicting a current block, and the subtraction of generating a MxN residual block by subtracting the current block and the prediction block.
- the AxB encoder may be configured to encode an AxB residual block including a residual signal of an impulse component in the MxN residual block to generate a bitstream.
- the AxB encoder may generate and insert mode information including at least one of block shape information of the AxB residual block, block position information of the AxB residual block, and encoding mode information for identifying AxB encoding, into the bitstream.
- the image encoding apparatus provides an MxN residual block and an MxN residual block according to whether the residual signal of an impulse component is included in the MxN encoder that generates the bitstream by encoding the MxN residual block, and the MxN residual block.
- the apparatus may further include an encoding mode determiner configured to determine which residual block among the AxB residual blocks.
- the image encoding apparatus predicts a current block to generate a prediction block, subtracts the current block and the prediction block, generates an MxN residual block, and generates an MxN residual.
- a bitstream may be generated by encoding the AxB residual block including the residual signal of the impulse component in the block.
- the apparatus for encoding an image further includes generating and inserting mode information including at least one of block shape information of an AxB residual block, block position information of an AxB residual block, and encoding identification information for identifying AxB encoding into a bitstream. Can be done with
- the image encoding apparatus may further perform encoding of the MxN residual block to generate a bitstream, wherein the MxN residual block is a residual signal of an impulse component. If it is not included, the step of encoding by setting all residual signals of the MxN residual block to '0' may be further performed.
- the apparatus for encoding an image may scan and encode the quantized frequency coefficients obtained by transforming the AxB residual block and quantizing the quantized frequency coefficients according to the shape of the AxB residual block, and the size of the AxB residual block may be An AxB residual block can be encoded only when it is smaller than the size of the MxN residual block.
- the AxB residual block may be in the form of a rectangular block or a diagonal block. If the AxB residual block is in the form of a diagonal block, the image encoding apparatus may additionally generate and insert one or more of the diagonal block identification information and the diagonal block position information into the bitstream.
- the image encoding apparatus may encode the AxB residual block only when the impulse ratio of the AxB residual block is greater than or equal to the threshold. Also, the image encoding apparatus may encode the AxB residual block only when the number of pixels of the AxB residual block is equal to or less than a preset number. In particular, the image encoding apparatus encodes an AxB residual block only when at least one or more of the values of the quantization frequency coefficients generated by transforming and quantizing the MxN order block are not '0' and the number of pixels of the AxB residual block is less than or equal to a preset number. can do.
- the image encoding apparatus blocks the block of the AxB residual block only when at least one or more of the values of the quantization frequency coefficients generated by transforming and quantizing the MxN order block are not '0' and the number of pixels of the AxB residual block is less than or equal to a preset number.
- Mode information including one or more of shape information, block position information of the AxB residual block, and encoding identification information for identifying AxB encoding may be generated and inserted into the bitstream.
- the image encoding apparatus may sign the AxB residual block only when the number of pixels of the AxB residual block exceeds a preset number.
- the image encoding apparatus may use the AxB residual block only when at least one or more of the values of the quantization frequency coefficients generated by transforming and quantizing the MxN order block are not '0' and the number of pixels of the AxB residual block exceeds a preset number.
- the image encoding apparatus performs the AxB residual block only when at least one or more of the values of the quantization frequency coefficients generated by transforming and quantizing the MxN order block are not '0' and the number of pixels of the AxB residual block exceeds a preset number.
- Mode information including at least one of block shape information of a block, block position information of an AxB residual block, and encoding identification information for identifying AxB encoding may be generated and inserted into a bitstream.
- An apparatus for decoding an image includes a decoder that extracts a quantized frequency coefficient sequence by decoding a bitstream, and inversely scans, inverse quantizes, and inversely transforms the quantized frequency coefficient sequence in units of AxB blocks, thereby causing AxB residuals.
- AxB residual block generator for generating blocks MxN residual block generator for generating MxN residual blocks by additionally combining one or more residual signals to AxB residual blocks, prediction unit for predicting the current block to generate prediction blocks and prediction blocks
- an adder for adding the MxN residual block to restore the current block.
- the image decoding apparatus may include extracting a quantized frequency coefficient sequence by decoding a bitstream, performing an inverse scan of the quantized frequency coefficient sequence in units of AxB blocks, Generating an AxB residual block by inverse quantization and inverse transformation, further combining one or more residual signals to the AxB residual block to generate an MxN residual block, and predicting the current block to generate a prediction block; And reconstructing the current block by adding the prediction block and the MxN residual block.
- the image decoding apparatus in generating the AxB residual block, inversely scans and inverse quantizes the quantized frequency coefficient sequence in units of AxB blocks based on the block shape information of the AxB residual block included in the mode information extracted from the bitstream. And an inverse transform, to generate an AxB residual block.
- the image decoding apparatus in generating the MxN residual block, may generate the MxN residual block based on the block position information of the AxB residual block included in the mode information extracted from the bitstream.
- the one or more residual signals may have a predetermined value, in particular, all may be set to a value of '0'.
- the apparatus for decoding an image may generate an MxN residual block ring by using, as one or more residual signals, the residual residual signal identified by the residual residual signal information extracted from the bitstream.
- the image decoding apparatus may extract mode information from the bitstream, and AxB only when AxB encoding is identified by encoding identification information included in the mode information extracted from the bitstream. Residual blocks can be created.
- the image decoding apparatus may generate the AxB residual block only when the number of quantization frequency coefficients of the quantization frequency coefficient sequence is equal to or less than a preset number.
- the apparatus for decoding an image includes: a decoder which extracts a quantized frequency coefficient sequence by decoding a bitstream; An AxB residual block generator configured to inversely scan, inverse quantize, and inversely convert the quantized frequency coefficient sequence into AxB block units to generate an AxB residual block; An MxN residual block generator for further combining one or more residual signals to the AxB residual block to generate an MxN residual block; A prediction unit for predicting a current block to generate a prediction block; And an adder for reconstructing the current block by adding the prediction block and the MxN residual block.
- the present invention is applied to fields such as an apparatus and a method for encoding or decoding an image, and when an residual signal of an impulse component is generated due to an inaccuracy of prediction, an image is generated by different encoding and decoding methods. It is a very useful invention that generates the effect of improving the encoding efficiency by efficiently encoding or decoding.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Description
Claims (29)
- 영상을 부호화하는 방법에 있어서,현재 블록을 예측하여 예측 블록을 생성하고 상기 현재 블록과 상기 예측 블록을 감산하여 MxN 잔차 블록을 생성하는 MxN 잔차 블록 생성 단계; 및상기 MxN 잔차 블록 내의 임펄스 성분의 잔차 신호를 포함하는 AxB 잔차 블록을 부호화하여 비트스트림을 생성하는 AxB 부호화 단계를 포함하는 것을 특징으로 하는 영상 부호화 방법.
- 제 1 항에 있어서, 상기 영상 부호화 방법은,상기 AxB 잔차 블록의 블록 형태 정보, 상기 AxB 잔차 블록의 블록 위치 정보 및 AxB 부호화를 식별하기 위한 부호화 식별 정보 중 하나 이상을 포함하는 모드 정보를 생성하여 상기 비트스트림에 삽입하는 모드 정보 삽입 단계를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.
- 제 1 항에 있어서, 상기 AxB 부호화 단계는,상기 AxB 잔차 블록을 변환하고 양자화한 양자화 주파수 계수를 상기 AxB 잔차 블록의 형태에 따라 다른 스캔 방식으로 스캔하여 부호화하는 것을 특징으로 하는 영상 부호화 방법.
- 제 1 항에 있어서, 상기 AxB 부호화 단계는,상기 AxB 잔차 블록의 크기가 상기 MxN 잔차 블록의 크기보다 작은 경우에만 상기 AxB 잔차 블록을 부호화하는 것을 특징으로 하는 영상 부호화 방법.
- 제 1 항에 있어서, 상기 영상 부호화 방법은,상기 AxB 잔차 블록의 크기가 상기 MxN 잔차 블록의 크기와 동일한 경우에는 상기 MxN 잔차 블록을 부호화하여 비트스트림을 생성하는 MxN 부호화 단계를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.
- 제 1 항에 있어서, 상기 영상 부호화 방법은,상기 MxN 잔차 블록이 상기 임펄스 성분의 잔차 신호를 포함하지 않는 경우에는 상기 MxN 잔차 블록의 모든 잔차 신호를 '0'으로 설정하여 부호화하는 무부호화 단계를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.
- 제 1 항에 있어서, 상기 AxB 잔차 블록은,사각형 블록 형태 또는 대각선 블록 형태인 것을 특징으로 하는 영상 부호화 방법.
- 제 7 항에 있어서, 상기 영상 부호화 방법은,상기 AxB 잔차 블록이 상기 대각선 블록 형태인 경우, 대각선 블록 식별 정보 및 대각선 블록 위치 정보 중 하나 이상을 생성하여 상기 비트스트림에 삽입하는 대각선 정보 삽입 단계를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.
- 제 1 항에 있어서, 상기 AxB 부호화 단계는,상기 AxB 잔차 블록의 임펄스 비율이 임계값 이상인 경우에만 상기 AxB 잔차 블록을 부호화하는 것을 특징으로 하는 영상 부호화 방법.
- 제 1 항에 있어서, 상기 AxB 부호화 단계는,상기 AxB 잔차 블록의 화소의 개수가 기 설정된 개수 이하인 경우에만 상기 AxB 잔차 블록을 부호화하는 것을 특징으로 하는 영상 부호화 방법.
- 제 10 항에 있어서, 상기 AxB 부호화 단계는,상기 MxN 찬차 블록이 변환 및 양자화되어 생성되는 양자화 주파수 계수 중 적어도 하나 이상이 '0'이 아니고 상기 AxB 잔차 블록의 화소의 개수가 기 설정된 개수 이하인 경우에만 상기 AxB 잔차 블록을 부호화하는 것을 특징으로 하는 영상 부호화 방법.
- 제 11 항에 있어서, 상기 영상 부호화 방법은,상기 MxN 찬차 블록이 변환 및 양자화되어 생성되는 양자화 주파수 계수 중 적어도 하나 이상이 '0'이 아니고 상기 AxB 잔차 블록의 화소의 개수가 기 설정된 개수 이하인 경우에만 상기 AxB 잔차 블록의 블록 형태 정보, 상기 AxB 잔차 블록의 블록 위치 정보 및 AxB 부호화를 식별하기 위한 부호화 식별 정보 중 하나 이상을 포함하는 모드 정보를 생성하여 상기 비트스트림에 삽입하는 모드 정보 삽입 단계를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.
- 제 1 항에 있어서, 상기 AxB 부호화 단계는,상기 AxB 잔차 블록의 화소의 개수가 기 설정된 개수를 초과하는 경우에만 상기 AxB 잔차 블록을 부호화하는 것을 특징으로 하는 영상 부호화 방법.
- 제 13 항에 있어서, 상기 AxB 부호화 단계는,상기 MxN 찬차 블록이 변환 및 양자화되어 생성되는 양자화 주파수 계수 중 적어도 하나 이상이 '0'이 아니고 상기 AxB 잔차 블록의 화소의 개수가 기 설정된 개수를 초과하는 경우에만 상기 AxB 잔차 블록을 부호화하는 것을 특징으로 하는 영상 부호화 방법.
- 제 14 항에 있어서, 상기 영상 부호화 방법은,상기 MxN 찬차 블록이 변환 및 양자화되어 생성되는 양자화 주파수 계수 중 적어도 하나 이상이 '0'이 아니고 상기 AxB 잔차 블록의 화소의 개수가 기 설정된 개수를 초과하는 경우에만 상기 AxB 잔차 블록의 블록 형태 정보, 상기 AxB 잔차 블록의 블록 위치 정보 및 AxB 부호화를 식별하기 위한 부호화 식별 정보 중 하나 이상을 포함하는 모드 정보를 생성하여 상기 비트스트림에 삽입하는 모드 정보 삽입 단계를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.
- 제 1 항에 있어서, 상기 영상 부호화 방법은,상기 MxN 잔차 블록 내의 상기 AxB 잔차 블록을 제외한 나머지 잔차 신호의 대체 잔차 신호를 식별하는 대체 잔차 신호 정보를 상기 비트스트림에 삽입하는 대표 잔차 신호 정보 삽입 단계를 추가로 포함하는 것을 특징으로 하는 영상 부호화 방법.
- 영상을 부호화하는 장치에 있어서,현재 블록을 예측하여 예측 블록을 생성하는 예측부;상기 현재 블록과 상기 예측 블록을 감산하여 MxN 잔차 블록을 생성하는 감산부; 및상기 MxN 잔차 블록 내의 임펄스 성분의 잔차 신호를 포함하는 AxB 잔차 블록을 부호화하여 비트스트림을 생성하는 AxB 부호화부를 포함하는 것을 특징으로 하는 영상 부호화 장치.
- 제 17 항에 있어서, 상기 영상 부호화 장치는,상기 MxN 잔차 블록을 부호화하여 비트스트림을 생성하는 MxN 부호화부; 및상기 MxN 잔차 블록 내에 상기 임펄스 성분의 잔차 신호가 포함되는지 여부에 따라 상기 MxN 잔차 블록 및 상기 AxB 잔차 블록 중 어느 잔차 블록을 부호화할지 여부를 결정하는 부호화 모드 결정부를 추가로 포함하는 것을 특징으로 하는 영상 부호화 장치.
- 제 17 항에 있어서, 상기 AxB 부호화부는,상기 AxB 잔차 블록의 블록 형태 정보, 상기 AxB 잔차 블록의 블록 위치 정보 및 AxB 부호화를 식별하기 위한 부호화 모드 정보 중 하나 이상을 포함하는 모드 정보를 생성하여 상기 비트스트림에 삽입하는 것을 특징으로 하는 영상 부호화 장치.
- 영상을 복호화하는 방법에 있어서,비트스트림을 복호화하여 양자화 주파수 계수열을 추출하는 복호화 단계;상기 양자화 주파수 계수열을 AxB 블록 단위로 역 스캔, 역 양자화 및 역 변환하여 AxB 잔차 블록을 생성하는 AxB 잔차 블록 생성 단계;상기 AxB 잔차 블록에 하나 이상의 잔차 신호를 추가로 결합하여 MxN 잔차 블록을 생성하는 MxN 잔차 블록 생성 단계;현재 블록을 예측하여 예측 블록을 생성하는 예측 단계; 및상기 예측 블록과 상기 MxN 잔차 블록을 가산하여 상기 현재 블록을 복원하는 복원 단계를 포함하는 것을 특징으로 하는 영상 복호화 방법.
- 제 20 항에 있어서, 상기 AxB 잔차 블록 생성 단계는,상기 비트스트림으로부터 추출되는 모드 정보에 포함된 상기 AxB 잔차 블록의 블록 형태 정보에 기초하여 상기 양자화 주파수 계수열을 AxB 블록 단위로 역 스캔, 역 양자화 및 역 변환하는 것을 특징으로 하는 영상 복호화 방법.
- 제 20 항에 있어서, 상기 MxN 잔차 블록 생성 단계는,상기 비트스트림으로부터 추출되는 모드 정보에 포함된 AxB 잔차 블록의 블록 위치 정보에 기초하여 상기 MxN 잔차 블록을 생성하는 것을 특징으로 하는 영상 복호화 방법.
- 제 20 항에 있어서, 상기 하나 이상의 잔차 신호는,기 설정되는 값을 가지는 것을 특징으로 하는 영상 복호화 방법.
- 제 23 항에 있어서, 상기 하나 이상의 잔차 신호는모두 '0'의 값으로 설정되는 것을 특징으로 하는 영상 복호화 방법.
- 제 20 항에 있어서,상기 MxN 잔차 블록 생성 단계는,상기 비트스트림으로부터 추출되는 대체 잔차 신호 정보에 의해 식별되는 대체 잔차 신호를 상기 하나 이상의 잔차 신호로 이용하는 것을 특징으로 하는 영상 복호화 방법.
- 제 20 항에 있어서, 상기 AxB 잔차 블록 생성 단계는,상기 비트스트림으로부터 추출되는 모드 정보에 포함된 부호화 식별 정보에 의해 AxB 부호화가 식별되는 경우에만, 상기 AxB 잔차 블록을 생성하는 것을 특징으로 하는 영상 복호화 방법.
- 제 21 항, 제 22 항 및 제 26 항 중 어느 한 항에 있어서, 상기 복호화 단계는,상기 비트스트림으로부터 상기 모드 정보를 추출하는 것을 특징으로 하는 영상 복호화 방법.
- 제 20 항에 있어서, 상기 AxB 잔차 블록 생성 단계는,상기 양자화 주파수 계수열의 양자화 주파수 계수의 개수가 기 설정된 개수 이하인 경우에만 상기 AxB 잔차 블록을 생성하는 것을 특징으로 하는 영상 복호화 방법.
- 영상을 복호화하는 장치에 있어서,비트스트림을 복호화하여 양자화 주파수 계수열을 추출하는 복호화부;상기 양자화 주파수 계수열을 AxB 블록 단위로 역 스캔, 역 양자화 및 역 변환하여 AxB 잔차 블록을 생성하는 AxB 잔차 블록 생성부;상기 AxB 잔차 블록에 하나 이상의 잔차 신호를 추가로 결합하여 MxN 잔차 블록을 생성하는 MxN 잔차 블록 생성부;현재 블록을 예측하여 예측 블록을 생성하는 예측부; 및상기 예측 블록과 상기 MxN 잔차 블록을 가산하여 상기 현재 블록을 복원하는 가산부를 포함하는 것을 특징으로 하는 영상 복호화 장치.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US13/002,276 US9113166B2 (en) | 2008-09-25 | 2009-09-21 | Apparatus and method for image encoding/decoding considering impulse signal |
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR20080094167 | 2008-09-25 | ||
| KR10-2008-0094167 | 2008-09-25 | ||
| KR10-2009-0085571 | 2009-09-10 | ||
| KR20090085571A KR101483497B1 (ko) | 2008-09-25 | 2009-09-10 | 임펄스 신호를 고려한 영상 부호화/복호화 장치 및 방법 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| WO2010035993A2 true WO2010035993A2 (ko) | 2010-04-01 |
| WO2010035993A3 WO2010035993A3 (ko) | 2010-07-08 |
Family
ID=42060249
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/KR2009/005362 Ceased WO2010035993A2 (ko) | 2008-09-25 | 2009-09-21 | 임펄스 신호를 고려한 영상 부호화/복호화 장치 및 방법 |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2010035993A2 (ko) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130051461A1 (en) * | 2011-08-24 | 2013-02-28 | Min-Hao Chiu | Video decoding apparatus and method for selectively bypassing processing of residual values and/or buffering of processed residual values |
| CN114175646A (zh) * | 2019-05-22 | 2022-03-11 | Lg电子株式会社 | 图像解码方法及其装置 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100718121B1 (ko) * | 2003-05-16 | 2007-05-15 | 삼성전자주식회사 | 영상의 레지듀 예측을 이용한 영상 부호화/복호화 방법 및장치 |
| KR20060063608A (ko) * | 2004-12-06 | 2006-06-12 | 엘지전자 주식회사 | 영상신호의 엔코딩/디코딩시에 영상블록에 대한 레지듀얼예측을 수행하는 방법 및 장치 |
-
2009
- 2009-09-21 WO PCT/KR2009/005362 patent/WO2010035993A2/ko not_active Ceased
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130051461A1 (en) * | 2011-08-24 | 2013-02-28 | Min-Hao Chiu | Video decoding apparatus and method for selectively bypassing processing of residual values and/or buffering of processed residual values |
| US9338458B2 (en) * | 2011-08-24 | 2016-05-10 | Mediatek Inc. | Video decoding apparatus and method for selectively bypassing processing of residual values and/or buffering of processed residual values |
| US9906801B2 (en) | 2011-08-24 | 2018-02-27 | Mediatek Inc. | Video decoding apparatus and method for selectively bypassing processing of residual values and/or buffering of processed residual values |
| CN114175646A (zh) * | 2019-05-22 | 2022-03-11 | Lg电子株式会社 | 图像解码方法及其装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2010035993A3 (ko) | 2010-07-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2010120113A2 (ko) | 예측 모드 선택 방법 및 장치와 그를 이용한 영상 부호화/복호화 방법 및 장치 | |
| WO2010027182A2 (ko) | 서브블록 내 임의 화소를 이용한 영상 부호화/복호화 방법 및 장치 | |
| WO2011087323A2 (en) | Method and apparatus for encoding and decoding image by using large transform unit | |
| WO2011019234A2 (en) | Method and apparatus for encoding and decoding image by using large transformation unit | |
| WO2011031044A2 (ko) | 고해상도 동영상의 부호화/복호화 방법 및 장치 | |
| WO2011145819A2 (ko) | 영상 부호화/복호화 장치 및 방법 | |
| WO2013109039A1 (ko) | 가중치예측을 이용한 영상 부호화/복호화 방법 및 장치 | |
| WO2012026794A2 (ko) | 인트라 예측을 이용한 부호화 및 복호화 장치와 방법 | |
| WO2010050706A2 (ko) | 움직임 벡터 부호화 방법 및 장치와 그를 이용한 영상 부호화/복호화 방법 및 장치 | |
| WO2013062193A1 (ko) | 영상 복호화 방법 및 장치 | |
| WO2011142603A2 (ko) | 영상의 필터링 방법 및 장치와 그를 이용한 부호화/복호화를 위한 방법 및 장치 | |
| WO2011037337A2 (ko) | 저주파수 성분을 고려한 영상 부호화/복호화 방법 및 장치 | |
| WO2012144876A2 (ko) | 인루프 필터링을 적용한 예측 방법을 이용한 영상 부호화/복호화 방법 및 장치 | |
| WO2012046979A2 (ko) | 주파수 마스크 테이블을 이용한 주파수변환 블록 부호화 방법 및 장치와 그를 이용한 영상 부호화/복호화 방법 및 장치 | |
| WO2009157665A2 (ko) | 블록 변환을 이용한 인트라 예측 방법 및 장치와 그를 이용한 영상 부호화/복호화 방법 및 장치 | |
| WO2012018197A2 (ko) | 인트라 예측 복호화 장치 | |
| WO2012077960A2 (ko) | 임의의 형태의 블록을 이용한 인터예측에 의한 영상의 부호화/복호화 방법 및 장치 | |
| WO2012093854A2 (ko) | 코딩 유닛 단위 병렬 인트라예측을 이용한 부호화/복호화 방법 및 장치 | |
| WO2012074248A2 (ko) | 인트라예측모드의 중복성을 최소화하기 위한 영상 부호화/복호화 방법 및 장치 | |
| WO2011004986A2 (ko) | 영상 부호화/복호화 방법 및 장치 | |
| WO2010027170A2 (ko) | 예측 방향 전환과 선택적 부호화를 이용한 영상 부호화/복호화 장치 및 방법 | |
| WO2011126285A2 (ko) | 부호화 모드에 대한 정보를 부호화, 복호화하는 방법 및 장치 | |
| WO2012011672A2 (ko) | 확장된 스킵모드를 이용한 영상 부호화/복호화 방법 및 장치 | |
| WO2012099440A2 (ko) | 예측 움직임벡터 색인부호화에 기반한 움직임정보 생성/복원 장치 및 방법, 및 그것을 이용한 영상 부호화/복호화 장치 및 방법 | |
| WO2011021910A2 (ko) | 인트라 예측 부호화/복호화 방법 및 장치 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 09816386 Country of ref document: EP Kind code of ref document: A2 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 13002276 Country of ref document: US |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01/07/2011) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 09816386 Country of ref document: EP Kind code of ref document: A2 |