KR20140092280A - Method and Apparatus for Encoding and Decoding Vedio - Google Patents

Method and Apparatus for Encoding and Decoding Vedio Download PDF

Info

Publication number
KR20140092280A
KR20140092280A KR1020140079127A KR20140079127A KR20140092280A KR 20140092280 A KR20140092280 A KR 20140092280A KR 1020140079127 A KR1020140079127 A KR 1020140079127A KR 20140079127 A KR20140079127 A KR 20140079127A KR 20140092280 A KR20140092280 A KR 20140092280A
Authority
KR
South Korea
Prior art keywords
block
sub
intra
pixel information
prediction
Prior art date
Application number
KR1020140079127A
Other languages
Korean (ko)
Other versions
KR101648910B1 (en
Inventor
김하윤
김해광
문주희
이영렬
전병우
Original Assignee
에스케이텔레콤 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 에스케이텔레콤 주식회사 filed Critical 에스케이텔레콤 주식회사
Priority to KR1020140079127A priority Critical patent/KR101648910B1/en
Publication of KR20140092280A publication Critical patent/KR20140092280A/en
Application granted granted Critical
Publication of KR101648910B1 publication Critical patent/KR101648910B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/597Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding specially adapted for multi-view video sequence encoding

Landscapes

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

Abstract

The present invention relates to a method and an apparatus for encoding and decoding an image. The apparatus for encoding an image of the present invention comprises: a block division unit which divides a current block into a plurality of sub-blocks; and an intra-predictive encoding unit which performs intra-predictive encoding with reference to adjacent pixel information of each sub-block, which has been encoded and decoded for each sub-block based on an intra-predictive mode identical to an intra-predictive mode of the current block, and generates a bit stream with respect to the current block. According to the present invention, the accuracy of prediction can be improved when predicting the current block to be encoded or decoded with respect to encoding and decoding images, and therefore, an image having a high quality can be provided.

Description

영상 부호화/복호화 방법 및 장치{Method and Apparatus for Encoding and Decoding Vedio}[0001] The present invention relates to a method and apparatus for encoding and decoding video,

본 발명은 영상 부호화/복호화 방법 및 장치에 관한 것이다. 더욱 상세하게는, 영상을 부호화하고 복호화하는 데 있어서, 부호화하거나 복호화하고자 하는 현재 블록을 예측할 때 그 예측의 정확도를 향상시키고, 그로 인해 만족스러운 영상 재생 품질을 제공하는 영상 부호화/복호화 방법 및 장치에 관한 것이다.The present invention relates to an image encoding / decoding method and apparatus. More particularly, the present invention relates to an image encoding / decoding method and apparatus for improving the accuracy of prediction when a current block to be encoded or decoded is predicted in encoding and decoding an image, thereby providing a satisfactory image reproduction quality .

Moving Picture Experts Group(MPEG)과 Video Coding Experts Group(VCEG)은 기존의 MPEG-4 Part 2와 H.263 표준안보다 더욱 우수하고 뛰어난 비디오 압축 기술을 개발하였다. 이 새로운 표준안은 H.264/AVC(Advanced video Coding) 이라 하며, MPEG-4 Part 10 AVC와 ITU-T Recommendation H.264로 공동발표되었다. 이러한 H.264/AVC(이하 'H.264'라 칭함)에서는 MPEG-1, MPEG-2, MPEG-4 Part2 Visual등 종래의 동영상 코딩 국제 표준과는 다른 공간 예측 부호화 방법을 사용하고 있다. The Moving Picture Experts Group (MPEG) and the Video Coding Experts Group (VCEG) have developed superior video compression techniques that are superior to the existing MPEG-4 Part 2 and H.263 standards. This new standard is called H.264 / AVC (Advanced Video Coding) and is jointly announced as MPEG-4 Part 10 AVC and ITU-T Recommendation H.264. In this H.264 / AVC (hereinafter referred to as "H.264"), a spatial prediction encoding method different from the conventional international video coding standard such as MPEG-1, MPEG-2, and MPEG-4 Part2 Visual is used.

기존의 영상 부호화 방법에서는 DCT 변환 영역(Discrete Cosine Transform Domain)에서 변환된 계수(Coefficients)값에 대한 "인트라 예측"을 사용함으로써 부호화 효율 증대를 추구하여 저역 전송 비트율 대의 주관적 화질의 열화를 발생시키는 결과를 초래하였다. 하지만, H.264에서는 변환 영역(Transform Domain)이 아닌 공간 영역(Spatial Domain)에서의 공간적 인트라 예측(Spatial Intra Prediction)을 기반으로 부호화하는 방법을 채택하고 있다. In the conventional image encoding method, intraprediction is used for the coefficient values transformed in the DCT transform domain (Discrete Cosine Transform Domain), thereby seeking to increase the coding efficiency, resulting in deterioration of the subjective image quality of the low transmission bit rate band Respectively. However, H.264 adopts a method of coding based on Spatial Intra Prediction in a Spatial Domain instead of a Transform Domain.

기존의 공간적 인트라 예측을 통한 부호화 방법을 이용하는 부호화 장치(Encoder)는 이미 부호화가 완료되어 재생된 이전 블록의 정보로부터 현재 부호화하고자 하는 현재 블록의 정보를 예측하고, 예측된 정보와 부호화하고자하는 실제 현재 블록의 정보와의 오차(Difference) 정보, 즉 잔차(Residual) 정보만을 부호화해서 복호화 장치(Decoder)로 전송한다. 이때, 부호화 장치는 예측에 필요한 파라미터를 복호화 장치에 전송하거나, 복호화 장치와 예측에 필요한 파라미터를 미리 공유해둠으로써 복호화 장치가 현재 블록을 예측하도록 할 수도 있다. 한편, 복호화 장치는 이미 복호화되어 재생된 주변 블록의 정보를 이용하여 현재 복호화하고자 하는 현재 블록의 정보를 예측하고, 예측된 정보를 부호화 장치에서 전송된 오차 정보와 합하여 원하는 현재 블록을 복원하여 재생한다. 이때도 역시 복호화 장치는 부호화 장치로부터 예측에 필요한 파라미터를 수신하였다면, 수신된 파라미터를 현재 블록을 예측하고 복호화하는 데 이용한다.An encoder using an existing encoding method using intra-spatial prediction predicts information of a current block to be encoded from information of a previous block that has been already encoded and reproduced, and outputs the predicted information and an actual current Only residual information, i.e., residual information, with respect to the information of the block is encoded and transmitted to the decoder. At this time, the encoding apparatus may transmit the parameter required for prediction to the decoding apparatus, or may share the parameters necessary for prediction with the decoding apparatus so that the decoding apparatus predicts the current block. On the other hand, the decoding apparatus predicts the information of the current block to be decoded by using the information of the neighboring block that has already been decoded and reproduced, integrates the predicted information with the error information transmitted from the encoder, and restores and reproduces the desired current block . Also in this case, if the decoding apparatus receives parameters required for prediction from the encoding apparatus, the decoding apparatus uses the received parameters to predict and decode the current block.

하지만, 통상적인 영상 부호화 방법 및 영상 복호화 방법에 따라 인트라 예측을 이용하여 예측하는 경우, 현재 부호화하고자 하는 현재 블록 주위의 주변 블록(주로, 현재 블록의 왼쪽 블록 또는 위쪽 블록)에 있는 이미 복원된 인접 픽셀 정보를 참조하여 현재 블록의 픽셀을 예측한다. 이 경우, 부호화하고자 하는 현재 블록의 픽셀과, 현재 블록을 예측하기 위해 참조하는 주변 블록의 인접 픽셀은 상당히 멀리 떨어진 경우도 있을 수 있기 때문에, 예측의 정확도가 상당히 저하될 수 있는 문제점을 안고 있으며, 이러한 문제점으로 인해, 낮은 품질로 영상이 부호화되고, 낮은 품질로 부호화된 영상이 복원되어 재생될 때도 만족스럽지 못한 재생 상태를 보이게 된다. However, in the case of predicting using intra prediction according to a conventional image encoding method and an image decoding method, in the case of predicting an already reconstructed neighboring block in the neighboring block (mainly, the left block or the upper block of the current block) The pixel of the current block is predicted by referring to the pixel information. In this case, since the pixels of the current block to be encoded and the neighboring pixels of the neighboring block to be predicted for the current block may be considerably distant from each other, there is a problem that the accuracy of prediction may be considerably deteriorated, Due to such a problem, an image is encoded with a low quality, and an unsatisfactory reproduction state is displayed even when an image encoded with a low quality is restored and reproduced.

전술한 문제점을 해결하기 위해 본 발명은, 영상을 부호화하고 복호화하는 데 있어서, 부호화하거나 복호화하고자 하는 현재 블록을 예측할 때 그 예측의 정확도를 향상시키고, 그로 인해 만족스러운 영상 재생 품질을 제공하는 데 주된 목적이 있다.In order to solve the above-described problems, the present invention provides a method and an apparatus for encoding and decoding an image, which improve the accuracy of prediction when a current block to be encoded or decoded is predicted, There is a purpose.

본 발명의 일 측면에 따르면, 영상을 부호화하는 장치에 있어서, 현재 블록을 복수 개의 서브블록으로 분할하는 블록 분할부; 및 상기 현재 블록의 인트라 예측 모드와 동일한 인트라 예측 모드에 근거하여, 상기 서브블록마다 이미 부호화되고 복호화된 서브블록별 인접 픽셀 정보를 참조하여 인트라 예측 부호화를 수행하고, 상기 현재 블록에 대한 비트스트림을 생성하는 인트라 예측 부호화부를 포함하는 것을 특징으로 하는 영상 부호화 장치를 제공한다. According to an aspect of the present invention, there is provided an apparatus for encoding an image, the apparatus comprising: a block dividing unit dividing a current block into a plurality of sub-blocks; And an intra-prediction mode identical to the intra-prediction mode of the current block, performing intra-prediction encoding with reference to neighboring pixel information for each sub-block already coded and decoded for each sub-block, And an intra prediction coding unit for generating an intra prediction coding unit.

본 발명의 또 다른 측면에 따르면, 영상을 부호화하는 방법에 있어서, 현재 블록을 복수 개의 서브블록으로 분할하는 단계; 및 상기 현재 블록의 인트라 예측 모드와 동일한 인트라 예측 모드를 이용하여, 상기 서브블록마다 이미 부호화되고 복호화된 서브블록별 인접 픽셀 정보를 참조하여 인트라 예측 부호화를 수행하여 상기 현재 블록에 대한 비트스트림을 생성하는 단계를 포함하는 것을 특징으로 하는 영상 부호화 방법을 제공한다. According to another aspect of the present invention, there is provided a method of encoding an image, the method comprising: dividing a current block into a plurality of sub-blocks; And generating a bitstream for the current block by performing intra prediction coding with reference to neighboring pixel information for each sub-block that has already been coded and decoded for each sub-block using the same intra prediction mode as the intra prediction mode of the current block, The method of the present invention includes the steps of:

본 발명의 또 다른 측면에 따르면, 인트라 예측을 이용한 영상 복호화 방법에 있어서, 비트스트림으로부터 현재 블록에 대한 모드 정보를 획득하는 단계; 상기 획득한 모드 정보에 근거하여, 복수의 인트라 예측 모드 중 상기 현재 블록의 인트라 예측 모드를 선택하는 단계; 상기 현재 블록이 복수의 서브블록을 포함하는 경우, 상기 복수의 서브블록을 식별하는 단계; 각 서브 블록별로 상기 각 서브블록에 인접한 주변 픽셀을 이용하여 예측을 수행함으로써 상기 복수의 서브블록을 복원하는 단계를 포함하고, 상기 각 서브블록은 상기 획득한 모드 정보에 근거하여 선택된 상기 현재 블록의 인트라 예측 모드와 동일한 모드를 사용하여 예측되는 것을 특징으로 하는 영상 복호화 방법을 제공한다.According to another aspect of the present invention, there is provided a method of decoding an image using intraprediction, the method comprising: acquiring mode information on a current block from a bitstream; Selecting an intra prediction mode of the current block among a plurality of intra prediction modes based on the acquired mode information; If the current block includes a plurality of subblocks, identifying the plurality of subblocks; And restoring the plurality of subblocks by performing prediction using neighboring pixels adjacent to the subblocks for each subblock, wherein each of the subblocks is a subblock of the current block selected based on the obtained mode information And predicted using the same mode as the intra prediction mode.

상기 복수의 서브블록은 현재 블록의 변환 블록에 해당할 수 있다.The plurality of subblocks may correspond to a transform block of a current block.

상기 주변 픽셀은 이미 복호화되고 복원된 픽셀로서, 상기 각 서브블록의 좌측 또는 상단에 위치할 수 있다.The neighboring pixels may be already decoded and reconstructed pixels, and may be located on the left or top of each sub-block.

상기 복수의 서브블록을 복원하는 단계는, 상기 복수의 서브블록의 어느 하나를 예측하는 단계; 상기 비트스트림을 복호화함으로써 상기 예측된 서브블록에 대응하는 잔차 서브블록을 복원하는 단계; 및 상기 예측된 서브블록과 상기 복원된 잔차 서브블록을 가산하여 서브블록을 복원하는 단계를 포함할 수 있으며, 상기 복원된 서브블록 내의 하나 이상의 픽셀이 상기 복원된 서브블록에 인접한 적어도 하나의 비복원 서브블록을 예측하기 위한 주변 픽셀로서 사용된다.The step of reconstructing the plurality of subblocks may include: predicting any one of the plurality of subblocks; Reconstructing a residual sub-block corresponding to the predicted sub-block by decoding the bit stream; And reconstructing a sub-block by adding the predicted sub-block and the reconstructed residual sub-block, wherein at least one pixel in the reconstructed sub-block includes at least one non- Is used as a peripheral pixel for predicting the sub-block.

본 발명의 또 다른 측면에 따르면, 인트라 예측을 이용한 영상 복호화 장치에 있어서, 비트스트림으로부터 현재 블록에 대한 모드 정보를 획득하는 복호화부; 및 인트라 예측부를 포함하고, 상기 인트라 예측부는, 상기 획득한 모드 정보에 근거하여 복수의 인트라 모드 중에서 상기 현재 블록의 인트라 예측 모드를 선택하고, 상기 현재 블록이 복수의 서브블록을 포함하는 경우 상기 복수의 현재블록을 식별하며, 각 서브 블록별로 상기 각 서브블록에 인접한 주변 픽셀을 이용하여 예측을 수행하되, 상기 획득한 모드 정보에 근거하여 선택된 상기 현재 블록의 인트라 예측 모드와 동일한 모드를 사용하여 상기 각 서브블록을 예측하는 것을 특징으로 하는 영상 복호화 장치를 제공한다.According to another aspect of the present invention, there is provided an apparatus for decoding an image using intra prediction, the apparatus comprising: a decoding unit for obtaining mode information on a current block from a bitstream; And an intra predictor, wherein the intra predictor selects an intra prediction mode of the current block from a plurality of intra modes based on the obtained mode information, and when the current block includes a plurality of sub-blocks, Block by using neighboring pixels adjacent to each sub-block for each of the sub-blocks, and using the same mode as the intra-prediction mode of the current block selected based on the obtained mode information, And predicts each sub-block.

또한, 상기 영상 복호화 장치는, 비트스트림으로 복호화함으로써, 상기 인트라 예측부에 의해 예측된 서브블록에 대응하는 잔차 서브블록을 복원하는 역양자화 및 역변환부; 및 상기 복원된 잔차 서브블록과 상기 예측된 서브블록을 가산하여 상기 서브블록을 복원하는 가산부를 추가로 포함할 수 있으며, 상기 인트라 예측부는, 상기 복원된 서브블록 내의 하나 이상의 픽셀을, 상기 복원된 서브블록에 인접한 적어도 하나의 비복원 서브블록을 예측하기 위한 주변 픽셀로서 사용한다.The image decoding apparatus may further include an inverse quantization and inverse transform unit decoding the residual sub-block corresponding to the sub-block predicted by the intra prediction unit by decoding the bit stream, And an adder configured to add the reconstructed residual sub-block and the predicted sub-block to reconstruct the sub-block. The intra predictor may further include one or more pixels in the reconstructed sub- Block is used as a neighboring pixel for predicting at least one non-recovered sub-block adjacent to the sub-block.

이상에서 설명한 바와 같이 본 발명에 의하면, 영상을 부호화하고 복호화하는 데 있어서, 부호화하거나 복호화하고자 하는 현재 블록을 예측할 때, 현재 블록을 서브블록으로 분할하고, 분할된 서브블록마다 현재 블록의 인접한 주변 블록의 인접 픽셀 정보를 참조하여 인트라 예측을 수행하는 것이 아니라 해당 서브블록에 바로 인접한 픽셀 정보를 참조하여 인트라 예측을 수행함으로써, 그 예측의 정확도를 향상시킬 수 있고, 그로 인해 만족스러운 영상 재생 품질을 제공하는 효과가 있다. As described above, according to the present invention, in coding and decoding an image, when predicting a current block to be coded or decoded, the current block is divided into sub-blocks, and adjacent sub- The intra prediction is performed with reference to the neighboring pixel information of the sub-block, but the intra prediction is performed with reference to the pixel information immediately adjacent to the sub-block, thereby improving the accuracy of the prediction. .

도 1은 본 발명의 일 실시예에 따른 영상 부호화 장치에 대한 개략적인 블록구성도,
도 2는 본 발명의 일 실시예에 따른 영상 부호화 방법에 대한 흐름도,
도 3은 본 발명의 일 실시예에 따른 영상 부호화 방법을 적용하기 위한 현재 블록과 이로부터 분할된 복수 개의 서브블록을 예시적으로 나타낸 도면,
도 4는 현재 블록의 인트라 예측 모드가 수평 모드인 경우, 복수 개의 서브블록을 래스터 스캔의 순서로 인트라 예측 부호화하는 것을 예시적으로 나타낸 도면,
도 5는 현재 블록의 인트라 예측 모드가 수직 모드인 경우, 복수 개의 서브블록을 래스터 스캔의 순서로 인트라 예측 부호화하는 것을 예시적으로 나타낸 도면,
도 6은 현재 블록의 인트라 예측 모드가 DC 모드인 경우, 복수 개의 서브블록을 래스터 스캔의 순서로 인트라 예측 부호화하는 것을 예시적으로 나타낸 도면,
도 7은 현재 블록의 인트라 예측 모드가 수평 모드인 경우, 복수 개의 서브블록을 지그재그 순서로 인트라 예측 부호화하는 것을 예시적으로 나타낸 도면,
도 8은 현재 블록의 인트라 예측 모드가 수직 모드인 경우, 복수 개의 서브블록을 지그재그 순서로 인트라 예측 부호화하는 것을 예시적으로 나타낸 도면,
도 9는 현재 블록의 인트라 예측 모드가 DC 모드인 경우, 복수 개의 서브블록을 지그재그 순서로 인트라 예측 부호화하는 것을 예시적으로 나타낸 도면,
도 10은 하나의 서브블록을 수평 모드로 인트라 예측을 수행한 것을 예시적으로 나타낸 도면,
도 11은 하나의 서브블록을 수직 모드로 인트라 예측을 수행한 것을 예시적으로 나타낸 도면,
도 12는 하나의 서브블록을 DC 모드로 인트라 예측을 수행한 것을 예시적으로 나타낸 도면,
도 13은 서브블록에 대한 잔차 서브블록의 생성을 예시적으로 나타낸 도면,
도 14는 본 발명의 일 실시예에 따른 영상 복호화 장치에 대한 개략적인 블록구성도,
도 15는 본 발명의 일 실시예에 따른 영상 복호화 방법에 대한 흐름도이다.
1 is a schematic block diagram of a video encoding apparatus according to an embodiment of the present invention;
2 is a flowchart illustrating a method of encoding an image according to an embodiment of the present invention.
3 is a block diagram illustrating a current block and a plurality of subblocks divided from the current block according to an embodiment of the present invention.
4 is a diagram exemplarily showing intraprediction encoding of a plurality of subblocks in the order of raster scanning when the intra prediction mode of the current block is the horizontal mode,
5 is a diagram exemplarily showing intraprediction encoding of a plurality of subblocks in the order of raster scanning when the intra prediction mode of the current block is the vertical mode,
6 is a diagram exemplarily showing intraprediction encoding of a plurality of subblocks in the order of raster scanning when the intra prediction mode of the current block is the DC mode,
FIG. 7 is a diagram exemplarily showing intraprediction encoding of a plurality of subblocks in a zigzag sequence when the intra prediction mode of the current block is a horizontal mode;
8 is a diagram exemplarily showing intraprediction encoding of a plurality of subblocks in a zigzag sequence when the intra prediction mode of the current block is the vertical mode,
9 is a diagram exemplifying intra-prediction coding of a plurality of sub-blocks in a zigzag sequence when the intra-prediction mode of the current block is the DC mode,
FIG. 10 is a diagram illustrating an example in which one sub-block is intra-predicted in a horizontal mode,
11 is a diagram illustrating an example in which one sub-block is intra-predicted in a vertical mode,
12 is a diagram illustrating an example in which one sub-block is intra-predicted in a DC mode,
13 is a diagram exemplarily showing the generation of residual sub-blocks for sub-blocks,
FIG. 14 is a schematic block diagram of an image decoding apparatus according to an embodiment of the present invention; FIG.
15 is a flowchart illustrating a video decoding method according to an embodiment of the present invention.

이하, 본 발명의 일부 실시예들을 예시적인 도면을 통해 상세하게 설명한다. 각 도면의 구성요소들에 참조부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, some embodiments of the present invention will be described in detail with reference to exemplary drawings. It should be noted that, in adding reference numerals to the constituent elements of the drawings, the same constituent elements are denoted by the same reference symbols as possible even if they are shown in different drawings. In the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear.

또한, 본 발명의 구성 요소를 설명하는 데 있어서, 제 1, 제 2, A, B, (a), (b) 등의 용어를 사용할 수 있다. 이러한 용어는 그 구성 요소를 다른 구성 요소와 구별하기 위한 것일 뿐, 그 용어에 의해 해당 구성 요소의 본질이나 차례 또는 순서 등이 한정되지 않는다. 어떤 구성 요소가 다른 구성요소에 "연결", "결합" 또는 "접속"된다고 기재된 경우, 그 구성 요소는 그 다른 구성요소에 직접적으로 연결되거나 또는 접속될 수 있지만, 각 구성 요소 사이에 또 다른 구성 요소가 "연결", "결합" 또는 "접속"될 수도 있다고 이해되어야 할 것이다.In describing the components of the present invention, terms such as first, second, A, B, (a), and (b) may be used. These terms are intended to distinguish the constituent elements from other constituent elements, and the terms do not limit the nature, order or order of the constituent elements. When a component is described as being "connected", "coupled", or "connected" to another component, the component may be directly connected to or connected to the other component, It should be understood that an element may be "connected," "coupled," or "connected."

도 1은 본 발명의 일 실시예에 따른 영상 부호화 장치(100)에 대한 개략적인 블록구성도이다. 1 is a schematic block diagram of an image encoding apparatus 100 according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 일 실시예에 따른 영상 부호화 장치(100)는, 입력된 원 영상에서 부호화하고자 하는 현재 블록을 복수 개의 서브블록으로 분할하는 블록 분할부(110); 및 서브블록마다 이미 부호화되고 복호화된 서브블록별 인접 픽셀 정보를 참조하여 인트라 예측 부호화를 수행하여 현재 블록에 대한 비트스트림을 생성하는 인트라 예측 부호화부(120) 등을 포함한다. Referring to FIG. 1, an image encoding apparatus 100 according to an exemplary embodiment of the present invention includes a block dividing unit 110 dividing a current block to be encoded in an input original image into a plurality of sub-blocks; And an intra-prediction encoding unit 120 for performing intra-prediction encoding by referring to neighboring pixel information for each sub-block for each sub-block and generating a bitstream for the current block.

전술한 블록 분할부(110)는 현재 블록을 주파수 변환 단위로 나누어 복수 개의 서브블록으로 분할할 수 있다. The block division unit 110 divides the current block into frequency conversion units and divides the current block into a plurality of sub-blocks.

도 1을 참조하면, 전술한 인트라 예측 부호화부(120)는, 래스터(Raster) 스캔의 순서 또는 지그재그(Zigzag) 순서에 따라 복수 개의 서브블록 중 하나의 서브블록을 선택하고, 현재 블록의 인트라 예측 모드와 동일한 인트라 예측 모드에 근거해 해당되는 서브블록별 인접 픽셀 정보를 참조하여, 선택된 하나의 서브블록에 대한 인트라 예측을 수행함으로써 예측 서브블록을 생성하는 인트라 예측부(121); 선택된 하나의 서브블록과 해당 예측 서브블록과의 차이를 계산하여 잔차(Residual) 서브블록을 생성하는 감산부(122); 생성된 잔차 서브블록을 DCT(Discrete Cosine Transform) 변환하는 변환부(123); 변환된 잔차 서브블록을 양자화하는 양자화부(124); 및 양자화된 잔차 서브블록을 부호화하는 부호화부(125) 등을 포함한다. 여기서, 분할된 서브블록은 변환부(123)에서의 변환 단위 블록이며, 주파수 변환 단위 블록일 수 있다. Referring to FIG. 1, the intra prediction coding unit 120 selects one sub-block of a plurality of sub-blocks according to a raster scan order or a zigzag order, An intra predictor 121 for generating predicted subblocks by performing intra prediction on a selected one of the subblocks by referring to neighboring pixel information of the corresponding subblocks based on the same intra prediction mode as the mode; A subtractor 122 for calculating a difference between the selected one sub-block and the corresponding predicted sub-block to generate a residual sub-block; A transform unit 123 for DCT (Discrete Cosine Transform) transforming the generated residual sub-blocks; A quantization unit (124) for quantizing the transformed residual sub-block; And an encoding unit 125 encoding the quantized residual sub-block. Here, the divided sub-blocks are conversion unit blocks in the conversion unit 123 and may be frequency conversion unit blocks.

복수 개의 서브블록이 인트라 예측 부호화되는 순서는 래스터 스캔의 순서 또는 지그재그 순서일 수 있는데, 래스터 스캔의 순서에 따라 복수 개의 서브블록 중 하나의 서브블록을 선택하여 인트라 예측 부호화를 수행하는 것이 지그재그 순서보다는 더욱 효율적일 수 있다. 본 명세서에서는 복수 개의 서브블록이 인트라 예측 부호화되는 순서로써 래스터 스캔의 순서 및 지그재그 순서를 포함한 2 가지 경우를 실시예로 기술하였으나, 이외에도 영상의 특성에 따라 그 순서를 변경하는 것도 가능하다. The order in which a plurality of sub-blocks are intra-predictively encoded may be a raster scan order or a zigzag order. In order to perform intraprediction encoding by selecting one sub-block among a plurality of sub-blocks according to the raster scan order, Can be more efficient. In this specification, two cases including the order of raster scanning and the order of zigzag in the order in which a plurality of sub-blocks are intra-predictive-encoded are described as examples, but the order may be changed according to the characteristics of the image.

전술한 변환부(123)는 DCT(Discrete Cosine Transform) 변환을 수행할 수도 있다. 전술한 부호화부(125)는 심볼이 나올 확률에 따라 심볼을 나타내는 코드의 길이를 달리하는 엔트로피 부호화(Entropy Encoding)를 수행할 수도 있다. The converting unit 123 may perform DCT (Discrete Cosine Transform) conversion. The encoding unit 125 may perform entropy encoding that varies the length of a code representing a symbol according to a probability of a symbol.

전술한 인트라 예측 부호화부(120)는, 양자화된 잔차 서브블록을 역 양자화하는 역 양자화부(126); 역 양자화된 잔차 서브블록을 역 변환하는 역 변환부(127); 역변환된 잔차 서브블록에 대한 인트라 보상을 수행하여 참조블록을 생성하는 인트라 보상부(128); 및 생성된 참조블록을 저장하는 참조블록 저장부(129) 등을 추가로 포함할 수도 있다. The intra prediction coding unit 120 includes an inverse quantization unit 126 for inversely quantizing the quantized residual sub-blocks; An inverse transform unit 127 for inversely transforming the inversely quantized residual sub-block; An intra-compensation unit 128 for performing intra-compensation on the inversely transformed residual sub-block to generate a reference block; And a reference block storage unit 129 for storing the generated reference block.

위에서 언급한 참조블록 저장부(129)에 저장된 참조블록은, 래스터 스캔의 순서 또는 지그재그 순서에 따라, 복수 개의 서브블록 중 상기 선택된 하나의 서브블록 다음에 선택될 서브블록에 대한 인트라 예측 수행시 참조 될 서브블록별 인접 픽셀 정보를 포함한다. The reference block stored in the above-mentioned reference block storage unit 129 may be referred to when performing intra prediction on a sub-block to be selected next to the selected one sub-block among a plurality of sub-blocks according to the raster scan order or the zig- And neighboring pixel information for each sub-block to be transmitted.

위에서 언급한 현재 블록의 인트라 예측 모드는, 일 예로서, 16×16 인트라 예측 모드에서의 수직(Vertical) 모드, 수평(Horizontal) 모드 및 DC(Direct Current) 모드 중 하나일 수 있다. The intra prediction mode of the current block mentioned above may be one of a vertical mode, a horizontal mode and a direct current (DC) mode in a 16x16 intra prediction mode, for example.

각 서브블록에 대하여 인트라 예측을 수행할 때의 인트라 예측 모드는, 현재 블록의 인트라 예측 모드와 동일한 인트라 예측 모드이다. 예를 들어, 현재 블록은 16×16 블록이고, 이를 분할한 서브블록은 4×4 블록이라고 가정하면, 현재 블록에 대한 16×16 인트라 예측 모드가 수직 모드이면, 각 서브블록에 대한 4×4 인트라 예측 모드도 수직 모드이다. 현재 블록에 대한 16×16 인트라 예측 모드가 수평 모드이면 각 서브블록에 대한 4×4 인트라 예측 모드도 수평 모드이고, 현재 블록에 대한 16×16 인트라 예측 모드가 DC 모드이면 각 서브블록에 대한 4×4 인트라 예측 모드도 DC 모드이다. The intra-prediction mode when intra-prediction is performed for each sub-block is the same intra-prediction mode as the intra-prediction mode of the current block. For example, assuming that the current block is a 16 × 16 block, and that a sub-block obtained by dividing the current block is a 4 × 4 block, if the 16 × 16 intra prediction mode for the current block is the vertical mode, The intra prediction mode is also a vertical mode. If the 16x16 intra prediction mode for the current block is the horizontal mode, the 4x4 intra prediction mode for each sub-block is also the horizontal mode, and if the 16x16 intra prediction mode for the current block is the DC mode, × 4 Intra prediction mode is also DC mode.

도 2는 본 발명의 일 실시예에 따른 영상 부호화 방법에 대한 흐름도이다. 2 is a flowchart illustrating an image encoding method according to an embodiment of the present invention.

도 2를 참조하면, 본 발명의 일 실시예에 따른 영상 부호화 장치(100)가 수행하는 영상 부호화 방법은, 입력된 원 영상에서 부호화하고자 하는 현재 블록을 복수 개의 서브블록으로 분할하는 블록 분할 단계(S200); 및 서브블록마다 이미 부호화되고 복호화된 서브블록별 인접 픽셀 정보를 참조하여 인트라 예측 부호화를 수행하여 상기 현재 블록에 대한 비트스트림을 생성하는 인트라 예측 부호화 단계(S202); 등을 포함한다. Referring to FIG. 2, an image encoding method performed by the image encoding apparatus 100 according to an embodiment of the present invention includes a block division step of dividing a current block to be encoded in an input original image into a plurality of sub-blocks S200); And an intra-prediction encoding step (S202) of generating a bitstream for the current block by performing intra-prediction encoding with reference to neighboring pixel information for each sub-block that has already been encoded and decoded for each sub-block; And the like.

전술한 인트라 예측 부호화 단계(S202)는, 래스터 스캔의 순서 또는 지그재그 순서에 따라 복수 개의 서브블록 중 하나의 서브블록을 선택하고, 현재 블록의 인트라 예측 모드와 동일한 인트라 예측 모드에 근거해 해당되는 서브블록별 인접 픽셀 정보를 참조하여, 선택된 하나의 서브블록에 대한 인트라 예측을 수행함으로써 예측 서브블록을 생성하는 단계(S2020); 선택된 하나의 서브블록과 해당 예측 서브블록과의 차이를 계산하여 잔차 서브블록을 생성하는 단계(S2022); 생성된 잔차 서브블록을 변환하는 단계(S2024); 변환된 잔차 서브블록을 양자화하는 단계(S2026); 및 양자화된 잔차 서브블록을 부호화하는 단계(S2028) 등을 포함할 수 있다. In the intraprediction encoding step S202 described above, one sub-block of a plurality of sub-blocks is selected according to the raster scan order or the zigzag order, and based on the intra prediction mode identical to the intra prediction mode of the current block, Generating predicted sub-blocks by performing intra-prediction on the selected one sub-block with reference to neighboring pixel information for each block (S2020); Calculating a difference between the selected one sub-block and the corresponding predicted sub-block to generate residual sub-blocks (S2022); Transforming the generated residual sub-block (S2024); Quantizing the transformed residual sub-block (S2026); And encoding the quantized residual sub-block (S2028).

전술한 인트라 예측 부호화 단계(S202)는, 전술한 양자화 단계(S2026) 이후, 양자화된 잔차 서브블록을 역 양자화하는 단계; 역 양자화된 잔차 서브블록을 역 변환하는 단계; 역변환된 잔차 서브블록에 대한 인트라 보상을 수행하여 참조블록을 생성하는 단계; 및 생성된 참조블록을 저장하는 단계 등을 추가로 포함할 수 있는데, 이렇게 추가로 포함된 단계들은 인트라 예측 단계(S2020), 잔차 서브블록 생성 단계(S2022), 변환 단계(S2024), 양자화 단계(S2026) 및 부호화 단계(S2028)와 병렬적으로 수행된다. 즉, 참조블록을 생성하여 저장하기 위해 추가된 단계들은, 서브블록에 대한 인트라 예측 부호화 과정과 동시에 수행될 수 있다는 것이다. The intra prediction encoding step (S202) includes a step of inversely quantizing the quantized residual sub-blocks after the quantization step (S2026) described above; Inversely transforming the dequantized residual sub-block; Performing intra-compensation on the inversely transformed residual sub-block to generate a reference block; And storing the generated reference block. The steps included in the intra prediction step S2020, the residual sub-block generation step S2022, the transform step S2024, the quantization step S2026) and the encoding step (S2028). That is, the steps added to generate and store the reference block can be performed simultaneously with the intra-prediction encoding process for the sub-block.

전술한 본 발명의 일 실시예에 따른 영상 부호화 방법을 적용하기 위해서는, 원 영상을 소정의 크기의 "매크로블록(MB: Macro-Block)"으로 분할한다. 본 발명에서는 분할된 매크로블록을 "현재 블록"이라 명명한다.In order to apply the image encoding method according to an embodiment of the present invention, the original image is divided into a macro-block (MB) having a predetermined size. In the present invention, a divided macroblock is referred to as a "current block ".

또한, 본 발명의 일 실시예에 따른 영상 부호화 방법에서는, 16×16 매크로블록인 현재 블록을 복수 개의 "서브블록(SB: Sub-Block)"으로 분할하고, 이러한 서브블록은 인트라 예측 부호화의 단위가 된다. 또한, 각 서브블록은 복수 개의 픽셀을 포함하고 있으며, 각 픽셀에는 원 영상에서 해당하는 부분에 대한 정보를 포함한다. In the image encoding method according to an embodiment of the present invention, a current block, which is a 16 × 16 macroblock, is divided into a plurality of "sub-blocks" (SBs) . Each sub-block includes a plurality of pixels, and each pixel includes information on a corresponding portion of the original image.

전술한 현재 블록, 서브블록 및 픽셀 등을 도 3에서의 예시적으로 도시된 16×16 블록을 참조하여 다시 설명한다. The above-described current block, sub-block and pixel, etc. will be described again with reference to the illustratively shown 16x16 block in Fig.

도 3은 본 발명의 일 실시예에 따른 영상 부호화 방법을 적용하기 위한 현재 블록과 이로부터 분할된 복수 개의 서브블록을 예시적으로 나타낸 도면이다. FIG. 3 is a diagram illustrating a current block for applying the image encoding method according to an embodiment of the present invention and a plurality of sub-blocks divided therefrom.

도 3에서는, 본 발명의 일 실시예에 다른 영상 부호화에 적용되는 현재 블록을 16×16 블록 크기의 매크로블록으로 예시적으로 도시하며, 16×16 매크로블록인 현재 블록은 도 3에서 굵은 실선으로 된 박스로 표시한다.In FIG. 3, a current block applied to image coding according to an exemplary embodiment of the present invention is illustrated as a 16 × 16 block macro block, and the current block, which is a 16 × 16 macro block, is indicated by a thick solid line Box.

또한, 도 3에서는, 예시적으로, 굵은 실선으로 표시된 16×16 매크로블록인 현재 블록이 4×4 블록 크기의 16개의 서브블록으로 분할된다. 16개의 분할된 서브블록은 SB 1, SB 2, SB 3, ..., SB 16으로 정하고, 점선으로 된 박스로 표시한다.3, the current block, which is a 16 × 16 macroblock indicated by a bold solid line, is divided into 16 sub-blocks each having a size of 4 × 4 blocks. The sixteen sub-blocks are designated by SB 1, SB 2, SB 3, ..., SB 16, and are indicated by a dotted box.

도 3을 참조하면, 각 서브블록은 16 개의 픽셀을 포함하고 각 픽셀에는 영상에 대한 정보를 포함한다.Referring to FIG. 3, each sub-block includes 16 pixels, and each pixel includes information about an image.

한편, 도 3을 참조하면, V(0) 내지 V(15)와 H(0) 내지 H(15)는 현재 블록(매크로블록)에 대하여 인접한 매크로블록에 대한 픽셀 정보로서, 이러한 인접한 매크로블록에 대한 픽셀 정보는 이미 부호화되고 복호화된 매크로블록의 픽셀 정보들이다. 3, V (0) to V (15) and H (0) to H (15) are pixel information for adjacent macroblocks for the current block (macroblock) The pixel information is pixel information of the already encoded and decoded macroblock.

도 3에 예시적으로 도시된 16개의 서브블록(SB 1, SB 2, SB 3, ..., SB 16)을 포함하는 현재블록을 이용하여, 도 1 및 도 2를 참조하여 전술한 본 발명의 일 실시예에 따른 영상 부호화를 이하 도면을 참조하여 예시적으로 설명한다. Using the current block including the sixteen sub-blocks SB1, SB2, SB3, ..., SB16 shown in FIG. 3 as examples, the present invention described with reference to FIGS. 1 and 2 Image encoding according to an embodiment of the present invention will be described below with reference to the drawings.

본 발명의 일 실시예에 따른 영상 부호화에서는 도 3에서의 16×16 크기의 현재 블록을 16개의 서브블록(SB 1, SB 2, SB 3, ..., SB 16)으로 분할한 이후, 각 서브블록을 소정의 순서에 따라 인트라 예측 부호화를 수행한다. 여기서, 소정의 순서는 래스터 스캔의 순서 또는 지그재그 순서일 수 있다. In the image encoding according to the embodiment of the present invention, the 16x16 current block in FIG. 3 is divided into 16 sub-blocks (SB 1, SB 2, SB 3, ..., SB 16) And performs intra-prediction coding on the sub-blocks in a predetermined order. Here, the predetermined order may be a raster scan order or a zigzag order.

즉, 래스터 스캔의 순서 또는 지그재그 순서로 16개의 서브블록을 스캔하여, 스캔된 하나의 서브블록에 대하여 인트라 예측 부호화를 수행하고, 래스터 스캔의 순서 또는 지그재그 순서로 그 다음의 서브블록을 스캔하여 스캔된 서브블록에 대한 인트라 예측 부호화를 수행하며, 이어서 나머지 서브블록도 래스터 스캔의 순서 또는 지그재그 순서로 스캔하여 인트라 예측 부호화하를 수행한다. 이렇게 분할된 복수 개의 서브블록에 대한 인트라 예측 부호화를 모두 수행하고 나면, 각 서브블록별로 인트라 예측 부호화된 결과를 이용하여 현재 블록에 대한 비트스트림을 생성한다. That is, 16 sub-blocks are scanned in the order of raster scan or zigzag order, intra-prediction encoding is performed on one sub-block scanned, and the next sub-block is scanned in the raster scanning order or the zig- Block, and then performs intra-prediction encoding by scanning the remaining sub-blocks in the raster scan order or the zigzag order. After performing the intra prediction coding on the plurality of divided sub-blocks, the bit stream for the current block is generated using the result of the intra prediction coding for each sub-block.

위에서 언급한 인트라 예측 부호화(Intra Prediction Encoding)는 한 개의 서브블록마다 수행되는 한 차례의 과정으로서, 인트라 예측(Intra Prediction), 변환(Transform), 양자화(Quantization), 부호화(Encoding) 등의 일련의 과정을 모두 포함하는 과정일 수 있다. The above-mentioned Intra Prediction Encoding is a one-step process performed for each sub-block. The Intra Prediction is a series of processes such as Intra Prediction, Transform, Quantization, and Encoding. And a process including all the processes.

서브블록별로 수행되는 인트라 예측 부호화 과정에 포함된 인트라 예측 과정에서는 하나의 인트라 예측 모드를 선택하여 인트라 예측이 수행되는데, 본 발명에서는 각 서브블록에 대한 인트라 예측 모드는 현재 블록의 인트라 예측 모드와 동일한 인트라 예측 모드로 선택된다. In the intraprediction process included in the intraprediction encoding process performed for each subblock, intra prediction is performed by selecting one intra prediction mode. In the present invention, the intra prediction mode for each sub-block is the same as the intra prediction mode of the current block The intra prediction mode is selected.

예를 들어, 현재 블록의 인트라 예측 모드가 수평 모드이면, 분할된 서브블록의 인트라 예측 모드도 수평 모드로 한다. 현재 블록의 인트라 예측 모드가 수직 모드이면, 분할된 서브블록의 인트라 예측 모드도 수직 모드로 한다. 또한, 현재 블록의 인트라 예측 모드가 DC 모드이면, 분할된 서브블록의 인트라 예측 모드도 DC 모드로 한다. For example, if the intra prediction mode of the current block is the horizontal mode, the intra prediction mode of the divided sub-blocks is also set to the horizontal mode. If the intra prediction mode of the current block is the vertical mode, the intra prediction mode of the divided sub-blocks is also set to the vertical mode. If the intra prediction mode of the current block is the DC mode, the intra prediction mode of the divided sub-blocks is also set to the DC mode.

현재 블록의 인트라 예측 모드가 수평 모드인 경우에서의 서브블록별 인트라 예측 부호화를 통한 영상 부호화는 하기 도 4와 도 7을 참조하여 상세히 설명하며, 현재 블록의 인트라 예측 모드가 수직 모드인 경우에서의 서브블록별 인트라 예측 부호화를 통한 영상 부호화는 하기 도 5와 도 8을 참조하여 상세히 설명하며, 현재 블록의 인트라 예측 모드가 DC 모드인 경우에서의 서브블록별 인트라 예측 부호화를 통한 영상 부호화는 하기 도 6과 도 9를 참조하여 상세히 설명한다. 단, 도 4, 도 5 및 도 6은 래스터 스캔의 순서로 인트라 예측 부호화를 수행하는 것을 예시한 것이고, 도 7, 도 8 및 도 9는 지그재그 순서로 인트라 예측 부호화를 수행하는 것을 예시한 것이다. The image coding through intraprediction encoding for each subblock in the case where the intra prediction mode of the current block is the horizontal mode will be described in detail with reference to FIG. 4 and FIG. 7. In the case where the intra prediction mode of the current block is the vertical mode The image coding through intraprediction coding for each sub-block will be described in detail with reference to FIGS. 5 and 8, and the image coding through intra-prediction coding for each sub-block in the case where the intra- 6 and Fig. 9. 4, 5, and 6 illustrate performing intraprediction encoding in the order of raster scanning, and FIGS. 7, 8, and 9 illustrate performing intraprediction encoding in a zigzag sequence.

도 4는 현재 블록의 인트라 예측 모드가 수평 모드인 경우, 복수 개의 서브블록을 래스터 스캔의 순서로 인트라 예측 부호화하는 것을 예시적으로 나타낸 도면이다. FIG. 4 is a diagram exemplarily showing intraprediction encoding of a plurality of subblocks in the order of raster scanning when the intra prediction mode of the current block is the horizontal mode.

도 4를 참조하면, 현재 블록을 부호화하기 위해, 분할된 16개의 서브블록(SB 1, SB 2, SB 3, ..., SB 16)을 래스터 스캔의 순서로 차례차례 인트라 예측 부호화한다. 즉, 인트라 예측 부호화는 SB 1, SB 2, SB 3, SB 4, SB 5, SB 6, SB 7, SB 8, SB 9, SB 10, SB 11, SB 12, SB 13, SB 14, SB 15, SB 16의 서브블록 순서로 이루어진다. Referring to FIG. 4, 16 sub-blocks SB 1, SB 2, SB 3,..., SB 16 are sequentially subjected to intraprediction encoding in the order of raster scanning in order to encode the current block. That is, the intra prediction coding is performed in the intra prediction coding mode by using the intra prediction coding. , And SB16 sub-blocks.

도 4에서는, 현재 블록의 인트라 예측 모드가 수평 모드인 것을 가정했기 때문에, 서브블록의 인트라 예측 모드도 수평 모드가 된다. 따라서, 영상 부호화 장치(100)는 인접 픽셀 정보를 참조하여 각 서브블록을 수평 모드로 인트라 예측을 수행한다. In Fig. 4, since the intra-prediction mode of the current block is assumed to be the horizontal mode, the intra-prediction mode of the sub-block also becomes the horizontal mode. Accordingly, the image encoding apparatus 100 performs intra prediction on each sub-block in a horizontal mode with reference to neighboring pixel information.

도 4를 참조하면, 영상 부호화 장치(100)는, 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 첫 번째 서브블록(SB 1)에 인접한 "H(0), H(1), H(2) 및 H(3)"를 인접 픽셀 정보로서 참조하여, 첫 번째 서브블록(SB 1)에 대한 인트라 예측 부호화를 수행하고, 동시에 참조블록을 생성하여 저장해둔다. 이렇게 저장된 참조블록은 다른 서브블록에 대한 인트라 예측 부호화 과정에서 참조되는 인접 픽셀 정보를 포함한다. Referring to FIG. 4, the image encoding apparatus 100 performs a process of calculating H (0), H (1), and H (2) adjacent to the first sub- ) And H (3) "as adjacent pixel information, performs intra-prediction encoding on the first sub-block SB 1, and simultaneously generates and stores reference blocks. The stored reference block includes neighboring pixel information which is referred to in intra-prediction coding for another sub-block.

도 4에서는, 첫 번째 서브블록(SB 1)에 대한 인트라 예측 부호화 과정 시, 이미 부호화되고 복호화되어 저장된 참조블록에 포함된 픽셀 정보를 "1-1, 1-2, 1-3, 1-4, 1-5, 1-6, 1-7, 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16"으로 표시한다. 여기서, 픽셀 정보로 표시된 "첫 번째 숫자-두 번째 숫자"에서, 첫 번째 숫자는 해당 서브블록을 식별하는 것이고, 두 번째 숫자는 해당 서브블록 내에서 해당 픽셀을 식별하는 것이다. In FIG. 4, in the intra-prediction encoding process for the first sub-block SB 1, pixel information included in the reference block that has already been encoded and decoded and stored is denoted as "1-1, 1-2, 1-3, 1-4 , 1-5, 1-6, 1-7, 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16 " Display. Here, in the "first number-second number" indicated by the pixel information, the first number identifies the corresponding sub-block, and the second number identifies the corresponding pixel in the corresponding sub-block.

SB 1에 이어서, 래스터 스캔의 순서에 따라, 영상 부호화 장치(100)는 SB 2에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, SB 1에 대한 인트라 예측 부호화 과정에서 저장된 참조블록에 포함된 픽셀 정보 중에서 "1-4, 1-8, 1-12, 1-16"을 포함한다. 참조블록에 포함된 픽셀 정보 중에서 "1-4, 1-8, 1-12, 1-16"를 인접 픽셀 정보로서 참조하는 이유는, 수평 모드에 따라 SB 2에 대한 인트라 예측을 수행하기 때문이다.Following SB 1, the image encoding apparatus 100 performs intraprediction encoding for SB 2 according to the order of raster scan. The neighboring pixel information to be referred to at this time is a reference stored in the intraprediction encoding process for SB 1 1-4, 1-8, 1-12, 1-16 "among the pixel information included in the block. The reason that "1-4, 1-8, 1-12, 1-16" among the pixel information included in the reference block is referred to as adjacent pixel information is to perform intra prediction for SB 2 according to the horizontal mode .

SB 2에 이어서, 래스터 스캔의 순서에 따라, 영상 부호화 장치(100)는 SB 3에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, SB 3에 인접한 "2-4, 2-8, 2-12, 2-16"을 포함한다. Following SB 2, in accordance with the order of the raster scan, the image encoding apparatus 100 performs intraprediction encoding for SB 3, wherein adjacent pixel information referred to here is "2-4, 2- 8, 2-12, 2-16 ".

SB 3에 이어서, 래스터 스캔의 순서에 따라, 영상 부호화 장치(100)는 SB 4에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, SB 4에 인접한 "3-4, 3-8, 3-12, 3-16"을 포함한다. Following SB 3, the image coding apparatus 100 performs intraprediction encoding for SB 4 according to the order of raster scanning. The neighboring pixel information to be referred to at this time is "3-4, 3- 8, 3-12, 3-16 ".

SB 4에 이어서, 래스터 스캔의 순서에 따라, 영상 부호화 장치(100)는 SB 5에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, SB 5에 인접한 "H(4), H(5), H(6), H(7)"을 포함한다. Following SB 4, the image encoding apparatus 100 performs intraprediction encoding for SB 5 according to the order of raster scan. The adjacent pixel information referred to at this time is "H (4), H (5), H (6), H (7) ".

전술한 SB 1, SB 2, SB 3, SB 4 및 SB 5에 대한 인트라 예측 부호화 과정처럼, 영상 부호화 장치(100)는 인접한 서브블록에서의 이미 부호화되고 복호화된 인접 픽셀 정보(각 서브블록의 픽셀 정보에 대한 표시에서, 두 번째 숫자가 "4, 8, 12, 16"인 픽셀 정보) 또는 인접한 매크로블록에서의 이미 부호화되고 복호화된 인접 픽셀 정보를 참조하여 나머지 서브블록들을 래스터 스캔의 순서에 따라 인트라 예측 부호화한다. As the intra-prediction encoding process for SB1, SB2, SB3, SB4, and SB5 described above, the image encoding apparatus 100 generates the encoded and decoded neighboring pixel information in adjacent sub-blocks The pixel information of the second number "4, 8, 12, 16" in the display for the information) or the already encoded and decoded neighboring pixel information in the adjacent macroblock, Intraprediction encoding is performed.

도 5는 현재 블록의 인트라 예측 모드가 수직 모드인 경우, 복수 개의 서브블록을 래스터 스캔의 순서로 인트라 예측 부호화하는 것을 예시적으로 나타낸 도면이다. 5 is a diagram exemplarily showing intraprediction encoding of a plurality of subblocks in the order of raster scanning when the intra prediction mode of the current block is the vertical mode.

도 5를 참조하면, 현재 블록을 부호화하기 위해, 분할된 16개의 서브블록(SB 1, SB 2, SB 3, ..., SB 16)을 래스터 스캔의 순서로 스캔하면서 차례차례 인트라 예측 부호화한다. 즉, 인트라 예측 부호화는 SB 1, SB 2, SB 5, SB 9, SB 6, SB 3, SB 4, SB 7, SB 10, SB 13, SB 14, SB 11, SB 8, SB 12, SB 15, SB 16의 서브블록 순서로 이루어진다. Referring to FIG. 5, in order to encode the current block, sixteen sub-blocks SB 1, SB 2, SB 3,..., SB 16 are sequentially subjected to intra-prediction encoding while being scanned in the order of raster scanning . That is, intra prediction coding is performed in the intra prediction coding mode by using the intra prediction coding in the same manner as SB 1, SB 2, SB 5, SB 9, SB 6, SB 3, SB 4, SB 7, SB 10, SB 13, SB 14, SB 11, SB 8, , And SB16 sub-blocks.

도 5에서는, 현재 블록의 인트라 예측 모드가 수직 모드인 것을 가정했기 때문에, 서브블록의 인트라 예측 모드도 수직 모드가 된다. 따라서, 영상 부호화 장치(100)는 인접 픽셀 정보를 참조하여 각 서브블록을 수직 모드로 인트라 예측을 수행한다. In Fig. 5, since the intra-prediction mode of the current block is assumed to be the vertical mode, the intra-prediction mode of the sub-block also becomes the vertical mode. Accordingly, the image encoding apparatus 100 performs intra prediction on each sub-block in the vertical mode with reference to neighboring pixel information.

도 5를 참조하면, 영상 부호화 장치(100)는, 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 첫 번째 서브블록(SB 1)에 인접한 "V(0), V(1), V(2) 및 V(3)"를 인접 픽셀 정보로서 참조하여, 첫 번째 서브블록(SB 1)에 대한 인트라 예측 부호화를 수행하고, 동시에 참조블록을 생성하여 저장해둔다. 이렇게 저장된 참조블록은 다른 서브블록에 대한 인트라 예측 부호화 과정에서 참조되는 인접 픽셀 정보를 포함한다. 5, V (0), V (1), and V (2) adjacent to the first sub-block SB 1 among the pixel information for the adjacent macroblock with respect to the current block, ) And V (3) "as adjacent pixel information, performs intra-prediction encoding on the first sub-block SB 1, and simultaneously generates and stores reference blocks. The stored reference block includes neighboring pixel information which is referred to in intra-prediction coding for another sub-block.

도 5에서는, 첫 번째 서브블록(SB 1)에 대한 인트라 예측 부호화 과정 시, 이미 부호화되고 복호화되어 저장된 참조블록에 포함된 픽셀 정보를 "1-1, 1-2, 1-3, 1-4, 1-5, 1-6, 1-7, 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16"으로 표시한다. 여기서, 픽셀 정보로 표시된 "첫 번째 숫자-두 번째 숫자"에서, 첫 번째 숫자는 해당 서브블록을 식별하는 것이고, 두 번째 숫자는 해당 서브블록 내에서 해당 픽셀을 식별하는 것이다. In FIG. 5, in the intra-prediction encoding process for the first sub-block SB 1, pixel information included in the reference block that has already been coded and decoded and stored is denoted as "1-1, 1-2, 1-3, 1-4 , 1-5, 1-6, 1-7, 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16 " Display. Here, in the "first number-second number" indicated by the pixel information, the first number identifies the corresponding sub-block, and the second number identifies the corresponding pixel in the corresponding sub-block.

SB 1에 이어서, 래스터 스캔의 순서에 따라, 영상 부호화 장치(100)는 SB 2에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 SB 2에 인접한 "V(4), V(5), V(6) 및 V(7)"을 포함한다. Following SB 1, the image coding apparatus 100 performs intraprediction encoding for SB 2 according to the order of the raster scan. The neighboring pixel information to be referred to at this time is the pixel information V (4), V (5), V (6) and V (7) "

SB 2에 이어서, 래스터 스캔의 순서에 따라, 영상 부호화 장치(100)는 SB 3에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 SB 3에 인접한 "V(8), V(9), V(10) 및 V(11)"을 포함한다. Following SB 2, in accordance with the raster scan order, the image encoding apparatus 100 performs intraprediction encoding for SB 3, wherein neighboring pixel information to be referred to at this time includes pixel information V (8), V (9), V (10) and V (11) "

SB 3에 이어서, 래스터 스캔의 순서에 따라, 영상 부호화 장치(100)는 SB 4에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 SB 4에 인접한 "V(12), V(13), V(14) 및 V(15)"을 포함한다. Following SB 3, in accordance with the raster scan order, the image encoding apparatus 100 performs intraprediction encoding for SB 4, wherein neighboring pixel information to be referred to at this time is pixel information V (12), V (13), V (14) and V (15) "

SB 4에 이어서, 래스터 스캔의 순서에 따라, 영상 부호화 장치(100)는 SB 5에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, SB 5에 대한 인접한 서브블록인 SB 1에 대한 인트라 예측 부호화 과정에서 저장된 참조블록에 포함된 픽셀 정보 중에서 "1-13, 1-14, 1-15, 1-16"을 포함한다.Following SB 4, in accordance with the raster scan order, the image encoding apparatus 100 performs intraprediction encoding for SB 5, and adjacent pixel information referred to at this time is encoded into SB 1 adjacent to SB 5 1-13, 1-14, 1-15, 1-16 "among the pixel information included in the reference block stored in the intra prediction coding process.

전술한 SB 1, SB 2, SB 3, SB 4 및 SB 5에 대한 인트라 예측 부호화 과정처럼, 영상 부호화 장치(100)는 인접한 서브블록에서의 이미 부호화되고 복호화된 인접 픽셀 정보(각 서브블록의 픽셀 정보에 대한 표시에서, 두 번째 숫자가 13, 14, 15, 16인 픽셀 정보) 또는 인접한 매크로블록에서의 이미 부호화되고 복호화된 인접 픽셀 정보를 참조하여 나머지 서브블록들을 래스터 스캔의 순서에 따라 인트라 예측 부호화한다. As the intra-prediction encoding process for SB1, SB2, SB3, SB4, and SB5 described above, the image encoding apparatus 100 generates the encoded and decoded neighboring pixel information in adjacent sub-blocks The pixel information in which the second number is 13, 14, 15, or 16 in the display of the information) or the already encoded and decoded neighboring pixel information in the adjacent macroblock is referred to, and the remaining subblocks are intra- .

도 6은 현재 블록의 인트라 예측 모드가 DC 모드인 경우, 복수 개의 서브블록을 래스터 스캔의 순서로 인트라 예측 부호화하는 것을 예시적으로 나타낸 도면이다. FIG. 6 is a diagram exemplarily showing intra-prediction coding of a plurality of sub-blocks in the order of raster scanning when the intra-prediction mode of the current block is the DC mode.

도 6을 참조하면, 현재 블록을 부호화하기 위해, 분할된 16개의 서브블록(SB 1, SB 2, SB 3, ..., SB 16)을 래스터 스캔의 순서로 스캔하면서 차례차례 인트라 예측 부호화한다. 즉, 인트라 예측 부호화는 SB 1, SB 2, SB 5, SB 9, SB 6, SB 3, SB 4, SB 7, SB 10, SB 13, SB 14, SB 11, SB 8, SB 12, SB 15, SB 16의 서브블록 순서로 이루어진다. Referring to FIG. 6, in order to encode the current block, 16 sub-blocks SB 1, SB 2, SB 3,..., And SB 16 are sequentially subjected to intra-prediction encoding while being scanned in the order of raster scanning . That is, intra prediction coding is performed in the intra prediction coding mode by using the intra prediction coding in the same manner as SB 1, SB 2, SB 5, SB 9, SB 6, SB 3, SB 4, SB 7, SB 10, SB 13, SB 14, SB 11, SB 8, , And SB16 sub-blocks.

도 6에서는, 현재 블록의 인트라 예측 모드가 DC 모드인 것을 가정했기 때문에, 서브블록의 인트라 예측 모드도 DC 모드가 된다. 따라서, 영상 부호화 장치(100)는 인접 픽셀 정보를 참조하여 각 서브블록을 DC 모드로 인트라 예측을 수행한다. In FIG. 6, since the intra-prediction mode of the current block is assumed to be the DC mode, the intra-prediction mode of the sub-block also becomes the DC mode. Accordingly, the image encoding apparatus 100 performs intra prediction on each sub-block in the DC mode with reference to neighboring pixel information.

도 6을 참조하면, 영상 부호화 장치(100)는, 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 첫 번째 서브블록(SB 1)에 인접한 "H(0), H(1), H(2), H(3), V(0), V(1), V(2), V(3) 및 M"을 인접 픽셀 정보로서 참조하여, 첫 번째 서브블록(SB 1)에 대한 인트라 예측 부호화를 수행하고, 동시에 참조블록을 생성하여 저장해둔다. 이렇게 저장된 참조블록은 다른 서브블록에 대한 인트라 예측 부호화 과정에서 참조되는 인접 픽셀 정보를 포함한다. Referring to FIG. 6, the image encoding apparatus 100 performs a process of calculating H (0), H (1), and H (2) adjacent to the first sub- ), H (3), V (0), V (1), V (2), V And concurrently, a reference block is generated and stored. The stored reference block includes neighboring pixel information which is referred to in intra-prediction coding for another sub-block.

도 6에서는, 첫 번째 서브블록(SB 1)에 대한 인트라 예측 부호화 과정 시, 이미 부호화되고 복호화되어 저장된 참조블록에 포함된 픽셀 정보를 "1-1, 1-2, 1-3, 1-4, 1-5, 1-6, 1-7, 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16"으로 표시한다. 여기서, 픽셀 정보로 표시된 "첫 번째 숫자-두 번째 숫자"에서, 첫 번째 숫자는 해당 서브블록을 식별하는 것이고, 두 번째 숫자는 해당 서브블록 내에서 해당 픽셀을 식별하는 것이다. 6, the pixel information included in the reference block that has already been coded and decoded and stored in the intra-prediction encoding process for the first sub-block SB 1 is denoted by "1-1, 1-2, 1-3, 1-4 , 1-5, 1-6, 1-7, 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16 " Display. Here, in the "first number-second number" indicated by the pixel information, the first number identifies the corresponding sub-block, and the second number identifies the corresponding pixel in the corresponding sub-block.

SB 1에 이어서, 영상 부호화 장치(100)는 SB 2에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는 "1-4, 1-8, 1-12, 1-16, V(4), V(5), V(6), V(7) 및 V(3)"을 포함한다. 여기서, 인접 픽셀 정보들 중에서 "1-4, 1-8, 1-12, 1-16"는 SB 2에 인접한 서브블록인 SB 1에서의 픽셀 정보들이고, 인접 픽셀 정보들 중에서 "V(4), V(5), V(6), V(7) 및 V(3)"은 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 SB 2에 인접한 픽셀 정보들이다. 이와 같이, SB 2에 대한 인트라 예측 부호화에서 "1-4, 1-8, 1-12, 1-16, V(4), V(5), V(6), V(7) 및 V(3)"를 인접 픽셀 정보로서 참조하는 이유는, DC 모드에 따라 SB 2에 대한 인트라 예측을 수행하기 때문이다.Subsequently to SB 1, the image encoding apparatus 100 performs intraprediction encoding on SB 2, and adjacent pixel information referred to at this time is "1-4, 1-8, 1-12, 1-16, V ( 4), V (5), V (6), V (7) and V (3) Among the adjacent pixel information, "1-4, 1-8, 1-12, 1-16" are pixel information in the sub-block SB 1 adjacent to SB 2, and "V (4) , V (5), V (6), V (7), and V (3) are pixel information adjacent to SB2 among the pixel information for the adjacent macroblock for the current block. In this manner, in the intraprediction coding for SB 2, "1-4, 1-8, 1-12, 1-16, V (4), V (5), V (6), V (7) 3) "is referred to as adjacent pixel information because it performs intra prediction for SB 2 according to the DC mode.

SB 2에 이어서, 래스터 스캔의 순서에 따라, 영상 부호화 장치(100)는 SB 3에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는 "2-4, 2-8, 2-12, 2-16, V(8), V(9), V(10), V(11) 및 V(7)"을 포함한다. Following SB 2, in accordance with the order of the raster scan, the image encoding apparatus 100 performs intraprediction encoding for SB 3, and the adjacent pixel information referred to at this time is "2-4, 2-8, 2-12 , 2-16, V (8), V (9), V (10), V (11), and V (7).

SB 3에 이어서, 래스터 스캔의 순서에 따라, 영상 부호화 장치(100)는 SB 4에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는 "3-4, 3-8, 3-12, 3-16, V(12), V(13), V(14), V(15) 및 V(11)"을 포함한다. Following SB 3, in accordance with the order of the raster scan, the image encoding apparatus 100 performs intraprediction encoding on SB 4, and the adjacent pixel information referred to at this time is "3-4, 3-8, 3-12 , 3-16, V (12), V (13), V (14), V (15), and V (11).

SB 4에 이어서, 래스터 스캔의 순서에 따라, 영상 부호화 장치(100)는 SB 5에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는 "H(4), H(5), H(6), H(7), 1-13, 1-14, 1-15, 1-16 및 H(3)"을 포함한다. Following the SB 4, the image encoding apparatus 100 performs intraprediction encoding for SB 5 according to the order of the raster scan. The adjacent pixel information referred to at this time is "H (4), H (5), H (6), H (7), 1-13, 1-14, 1-15, 1-16 and H (3).

전술한 SB 1, SB 2, SB 3, SB 4 및 SB 5에 대한 인트라 예측 부호화 과정처럼, 영상 부호화 장치(100)는 인접한 서브블록들에서의 이미 부호화되고 복호화된 인접 픽셀 정보(각 서브블록의 오른쪽과 아래 모퉁이에 있는 픽셀에 대한 픽셀 정보) 또는 인접한 매크로블록에서의 이미 부호화되고 복호화된 인접 픽셀 정보를 참조하여 나머지 서브블록들을 정해진 래스터 스캔의 순서에 따라 인트라 예측 부호화한다.Like the above-described intra prediction coding process for SB 1, SB 2, SB 3, SB 4 and SB 5, the image coding apparatus 100 performs coding and decoding of adjacent coded and decoded neighboring pixel information in adjacent sub- The pixel information of the pixels at the right and lower corners) or the neighboring pixel information that has already been encoded and decoded in the adjacent macroblock, and intra-predictively encodes the remaining sub-blocks according to the predetermined raster scan order.

도 7는 현재 블록의 인트라 예측 모드가 수평 모드인 경우, 복수 개의 서브블록을 지그재그 순서로 인트라 예측 부호화하는 것을 예시적으로 나타낸 도면이다. FIG. 7 is a diagram exemplarily showing intraprediction encoding of a plurality of subblocks in a zigzag sequence when the intra prediction mode of the current block is a horizontal mode.

도 7를 참조하면, 현재 블록을 부호화하기 위해, 분할된 16개의 서브블록(SB 1, SB 2, SB 3, ..., SB 16)을 지그재그 순서로 스캔하면서 차례차례 인트라 예측 부호화한다. 즉, 인트라 예측 부호화는 SB 1, SB 2, SB 5, SB 9, SB 6, SB 3, SB 4, SB 7, SB 10, SB 13, SB 14, SB 11, SB 8, SB 12, SB 15, SB 16의 서브블록 순서로 이루어진다. Referring to FIG. 7, 16 sub-blocks SB 1, SB 2, SB 3,..., And SB 16 are sequentially scanned in a zigzag sequence to sequentially encode the current block. That is, intra prediction coding is performed in the intra prediction coding mode by using the intra prediction coding in the same manner as SB 1, SB 2, SB 5, SB 9, SB 6, SB 3, SB 4, SB 7, SB 10, SB 13, SB 14, SB 11, SB 8, , And SB16 sub-blocks.

도 7에서는, 현재 블록의 인트라 예측 모드가 수평 모드인 것을 가정했기 때문에, 서브블록의 인트라 예측 모드도 수평 모드가 된다. 따라서, 영상 부호화 장치(100)는 인접 픽셀 정보를 참조하여 각 서브블록을 수평 모드로 인트라 예측을 수행한다. In FIG. 7, since the intra-prediction mode of the current block is assumed to be the horizontal mode, the intra-prediction mode of the sub-block also becomes the horizontal mode. Accordingly, the image encoding apparatus 100 performs intra prediction on each sub-block in a horizontal mode with reference to neighboring pixel information.

도 7를 참조하면, 영상 부호화 장치(100)는, 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 첫 번째 서브블록(SB 1)에 인접한 "H(0), H(1), H(2) 및 H(3)"를 인접 픽셀 정보로서 참조하여, 첫 번째 서브블록(SB 1)에 대한 인트라 예측 부호화를 수행하고, 동시에 참조블록을 생성하여 저장해둔다. 이렇게 저장된 참조블록은 다른 서브블록에 대한 인트라 예측 부호화 과정에서 참조되는 인접 픽셀 정보를 포함한다. Referring to FIG. 7, the image encoding apparatus 100 determines whether or not the current block is a block having a value of H (0), H (1), H (2) adjacent to the first sub- ) And H (3) "as adjacent pixel information, performs intra-prediction encoding on the first sub-block SB 1, and simultaneously generates and stores reference blocks. The stored reference block includes neighboring pixel information which is referred to in intra-prediction coding for another sub-block.

도 7에서는, 첫 번째 서브블록(SB 1)에 대한 인트라 예측 부호화 과정 시, 이미 부호화되고 복호화되어 저장된 참조블록에 포함된 픽셀 정보를 "1-1, 1-2, 1-3, 1-4, 1-5, 1-6, 1-7, 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16"으로 표시한다. 여기서, 픽셀 정보로 표시된 "첫 번째 숫자-두 번째 숫자"에서, 첫 번째 숫자는 해당 서브블록을 식별하는 것이고, 두 번째 숫자는 해당 서브블록 내에서 해당 픽셀을 식별하는 것이다. In FIG. 7, in the intra-prediction encoding process for the first sub-block SB 1, pixel information included in a reference block that has already been coded and decoded and stored is denoted as "1-1, 1-2, 1-3, 1-4 , 1-5, 1-6, 1-7, 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16 " Display. Here, in the "first number-second number" indicated by the pixel information, the first number identifies the corresponding sub-block, and the second number identifies the corresponding pixel in the corresponding sub-block.

SB 1에 이어서, 지그재그 순서에 따라, 영상 부호화 장치(100)는 SB 2에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, SB 1에 대한 인트라 예측 부호화 과정에서 저장된 참조블록에 포함된 픽셀 정보 중에서 "1-4, 1-8, 1-12, 1-16"을 포함한다. 참조블록에 포함된 픽셀 정보 중에서 "1-4, 1-8, 1-12, 1-16"를 인접 픽셀 정보로서 참조하는 이유는, 수평 모드에 따라 SB 2에 대한 인트라 예측을 수행하기 때문이다.Following SB 1, in accordance with the zigzag order, the image coding apparatus 100 performs intraprediction encoding on SB 2, and neighboring pixel information referred to at this time is stored in the reference block stored in the intraprediction encoding process for SB 1 1-4, 1-8, 1-12, 1-16 "among the included pixel information. The reason that "1-4, 1-8, 1-12, 1-16" among the pixel information included in the reference block is referred to as adjacent pixel information is to perform intra prediction for SB 2 according to the horizontal mode .

SB 2에 이어서, 지그재그 순서에 따라, 영상 부호화 장치(100)는 SB 5에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 SB 5에 인접한 "H(4), H(5), H(6) 및 H(7)"을 포함한다. Following SB 2, in accordance with the zigzag sequence, the image encoding apparatus 100 performs intraprediction encoding for SB 5, wherein neighboring pixel information to be referred to at this time is SB H (4), H (5), H (6) and H (7) "

SB 5에 이어서, 지그재그 순서에 따라, 영상 부호화 장치(100)는 SB 9에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 SB 9에 인접한 "H(8), H(9), H(10) 및 H(11)"을 포함한다. Following SB 5, in accordance with the zigzag sequence, the image encoding apparatus 100 performs intraprediction encoding for SB 9, wherein adjacent pixel information referred to at this time is SB H (8), H (9), H (10) and H (11) "

SB 9에 이어서, 지그재그 순서에 따라, 영상 부호화 장치(100)는 SB 6에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, SB 5에 대한 인트라 예측 부호화 과정에서 저장된 참조블록에 포함된 픽셀 정보 중에서 "5-4, 5-8, 5-12, 5-16"을 포함한다. Following the SB 9, in accordance with the zigzag order, the image coding apparatus 100 performs intraprediction encoding for SB 6, wherein the neighboring pixel information to be referred to is the reference block stored in the intraprediction encoding process for SB 5 5-4, 5-8, 5-12, 5-16 "among the included pixel information.

전술한 SB 1, SB 2, SB 5, SB 9 및 SB 6에 대한 인트라 예측 부호화 과정처럼, 영상 부호화 장치(100)는 인접한 서브블록에서의 이미 부호화되고 복호화된 인접 픽셀 정보(각 서브블록의 픽셀 정보에 대한 표시에서, 두 번째 숫자가 "4, 8, 12, 16"인 픽셀 정보) 또는 인접한 매크로블록에서의 이미 부호화되고 복호화된 인접 픽셀 정보를 참조하여 나머지 서브블록들을 정해진 지그재그 순서에 따라 인트라 예측 부호화한다. As in the intra-prediction encoding process for SB1, SB2, SB5, SB9, and SB6 described above, the image encoding apparatus 100 generates the encoded and decoded neighboring pixel information in neighboring subblocks Quot ;, " 4 ", " 8 ", and / or " 16 "in the display for the information) or the already encoded and decoded neighboring pixel information in the adjacent macroblock, Predictive coding.

도 8은 현재 블록의 인트라 예측 모드가 수직 모드인 경우, 복수 개의 서브블록을 지그재그 순서로 인트라 예측 부호화하는 것을 예시적으로 나타낸 도면이다. 8 is a diagram exemplarily showing intraprediction encoding of a plurality of subblocks in a zigzag sequence when the intra prediction mode of the current block is the vertical mode.

도 8을 참조하면, 현재 블록을 부호화하기 위해, 분할된 16개의 서브블록(SB 1, SB 2, SB 3, ..., SB 16)을 지그재그 순서로 스캔하면서 차례차례 인트라 예측 부호화한다. 즉, 인트라 예측 부호화는 SB 1, SB 2, SB 5, SB 9, SB 6, SB 3, SB 4, SB 7, SB 10, SB 13, SB 14, SB 11, SB 8, SB 12, SB 15, SB 16의 서브블록 순서로 이루어진다. Referring to FIG. 8, in order to encode a current block, 16 sub-blocks SB 1, SB 2, SB 3,..., SB 16 are sequentially scanned in a zigzag sequence to perform intra-prediction encoding. That is, intra prediction coding is performed in the intra prediction coding mode by using the intra prediction coding in the same manner as SB 1, SB 2, SB 5, SB 9, SB 6, SB 3, SB 4, SB 7, SB 10, SB 13, SB 14, SB 11, SB 8, , And SB16 sub-blocks.

도 8에서는, 현재 블록의 인트라 예측 모드가 수직 모드인 것을 가정했기 때문에, 서브블록의 인트라 예측 모드도 수직 모드가 된다. 따라서, 영상 부호화 장치(100)는 인접 픽셀 정보를 참조하여 각 서브블록을 수직 모드로 인트라 예측을 수행한다. 8, since the intra-prediction mode of the current block is assumed to be the vertical mode, the intra-prediction mode of the sub-block also becomes the vertical mode. Accordingly, the image encoding apparatus 100 performs intra prediction on each sub-block in the vertical mode with reference to neighboring pixel information.

도 8을 참조하면, 영상 부호화 장치(100)는, 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 첫 번째 서브블록(SB 1)에 인접한 "V(0), V(1), V(2) 및 V(3)"를 인접 픽셀 정보로서 참조하여, 첫 번째 서브블록(SB 1)에 대한 인트라 예측 부호화를 수행하고, 동시에 참조블록을 생성하여 저장해둔다. 이렇게 저장된 참조블록은 다른 서브블록에 대한 인트라 예측 부호화 과정에서 참조되는 인접 픽셀 정보를 포함한다. 8, V (0), V (1), and V (2) adjacent to the first sub-block SB 1 among the pixel information for the adjacent macro block with respect to the current block, ) And V (3) "as adjacent pixel information, performs intra-prediction encoding on the first sub-block SB 1, and simultaneously generates and stores reference blocks. The stored reference block includes neighboring pixel information which is referred to in intra-prediction coding for another sub-block.

도 8에서는, 첫 번째 서브블록(SB 1)에 대한 인트라 예측 부호화 과정 시, 이미 부호화되고 복호화되어 저장된 참조블록에 포함된 픽셀 정보를 "1-1, 1-2, 1-3, 1-4, 1-5, 1-6, 1-7, 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16"으로 표시한다. 여기서, 픽셀 정보로 표시된 "첫 번째 숫자-두 번째 숫자"에서, 첫 번째 숫자는 해당 서브블록을 식별하는 것이고, 두 번째 숫자는 해당 서브블록 내에서 해당 픽셀을 식별하는 것이다. In FIG. 8, in the intraprediction encoding process for the first sub-block SB 1, pixel information included in the reference block that has already been coded and decoded and stored is denoted as "1-1, 1-2, 1-3, 1-4 , 1-5, 1-6, 1-7, 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16 " Display. Here, in the "first number-second number" indicated by the pixel information, the first number identifies the corresponding sub-block, and the second number identifies the corresponding pixel in the corresponding sub-block.

SB 1에 이어서, 지그재그 순서에 따라, 영상 부호화 장치(100)는 SB 2에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 SB 2에 인접한 "V(4), V(5), V(6) 및 V(7)"을 포함한다. Following SB 1, in accordance with the zigzag sequence, the image encoding apparatus 100 performs intraprediction encoding for SB 2, wherein neighboring pixel information to be referred to at this time is SB V (4), V (5), V (6) and V (7) "

SB 2에 이어서, 지그재그 순서에 따라, 영상 부호화 장치(100)는 SB 5에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, SB 5에 대한 인접한 서브블록인 SB 1에 대한 인트라 예측 부호화 과정에서 저장된 참조블록에 포함된 픽셀 정보 중에서 "1-13, 1-14, 1-15, 1-16"을 포함한다. SB 1에 대하여 저장된 참조블록에 포함된 픽셀 정보 중에서 "1-13, 1-14, 1-15, 1-16"를 인접 픽셀 정보로서 참조하는 이유는, 수직 모드에 따라 SB 5에 대한 인트라 예측을 수행하기 때문이다.Following SB 2, in accordance with the zigzag sequence, the image encoding apparatus 100 performs intraprediction encoding for SB 5, wherein the neighboring pixel information to be referred to at this time is the intra- 1-13, 1-14, 1-15, 1-16 "among the pixel information included in the reference block stored in the predictive encoding process. The reason that "1-13, 1-14, 1-15, 1-16" among the pixel information included in the reference block stored for SB 1 is referred to as adjacent pixel information is because intra prediction for SB 5 .

SB 5에 이어서, 지그재그 순서에 따라, 영상 부호화 장치(100)는 SB 9에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, SB 9에 대한 인접한 서브블록인 SB 5에 대한 인트라 예측 부호화 과정에서 저장된 참조블록에 포함된 픽셀 정보 중에서 "5-13, 5-14, 5-15, 5-16"을 포함한다.Following SB 5, in accordance with the zigzag sequence, the image encoding apparatus 100 performs intraprediction encoding for SB 9, wherein the neighboring pixel information referred to at this time is the intra- 5-13, 5-14, 5-15, 5-16 "among the pixel information included in the reference block stored in the predictive encoding process.

SB 9에 이어서, 지그재그 순서에 따라, 영상 부호화 장치(100)는 SB 6에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는, SB 6에 대한 인접한 서브블록인 SB 2에 대한 인트라 예측 부호화 과정에서 저장된 참조블록에 포함된 픽셀 정보 중에서 "2-13, 2-14, 2-15, 2-16"을 포함한다.Subsequently to SB 9, in accordance with the zigzag sequence, the image encoding apparatus 100 performs intraprediction encoding for SB 6, wherein neighboring pixel information to be referred to at this time is intra-frame to SB 2, which is an adjacent sub- 2-13, 2-14, 2-15, 2-16 "among the pixel information included in the reference block stored in the predictive encoding process.

전술한 SB 1, SB 2, SB 5, SB 9 및 SB 6에 대한 인트라 예측 부호화 과정처럼, 영상 부호화 장치(100)는 인접한 서브블록에서의 이미 부호화되고 복호화된 인접 픽셀 정보(각 서브블록의 픽셀 정보에 대한 표시에서, 두 번째 숫자가 13, 14, 15, 16인 픽셀 정보) 또는 인접한 매크로블록에서의 이미 부호화되고 복호화된 인접 픽셀 정보를 참조하여 나머지 서브블록들을 정해진 지그재그 순서에 따라 인트라 예측 부호화한다. As in the intra-prediction encoding process for SB1, SB2, SB5, SB9, and SB6 described above, the image encoding apparatus 100 generates the encoded and decoded neighboring pixel information in neighboring subblocks Information about pixel information in which the second number is 13, 14, 15, or 16 in the display of information), or referring to already encoded and decoded neighboring pixel information in an adjacent macro block, the remaining sub-blocks are intraprediction-encoded in a predetermined zig- do.

도 9는 현재 블록의 인트라 예측 모드가 DC 모드인 경우, 복수 개의 서브블록을 지그재그 순서로 인트라 예측 부호화하는 것을 예시적으로 나타낸 도면이다. 9 is a diagram exemplarily showing intraprediction encoding of a plurality of subblocks in a zigzag sequence when the intra prediction mode of the current block is the DC mode.

도 9를 참조하면, 현재 블록을 부호화하기 위해, 분할된 16개의 서브블록(SB 1, SB 2, SB 3, ..., SB 16)을 지그재그 순서로 스캔하면서 차례차례 인트라 예측 부호화한다. 즉, 인트라 예측 부호화는 SB 1, SB 2, SB 5, SB 9, SB 6, SB 3, SB 4, SB 7, SB 10, SB 13, SB 14, SB 11, SB 8, SB 12, SB 15, SB 16의 서브블록 순서로 이루어진다. Referring to FIG. 9, in order to encode the current block, 16 sub-blocks SB 1, SB 2, SB 3,..., SB 16 are sequentially scanned in a zigzag order to perform intra-prediction encoding. That is, intra prediction coding is performed in the intra prediction coding mode by using the intra prediction coding in the same manner as SB 1, SB 2, SB 5, SB 9, SB 6, SB 3, SB 4, SB 7, SB 10, SB 13, SB 14, SB 11, SB 8, , And SB16 sub-blocks.

도 9에서는, 현재 블록의 인트라 예측 모드가 DC 모드인 것을 가정했기 때문에, 서브블록의 인트라 예측 모드도 DC 모드가 된다. 따라서, 영상 부호화 장치(100)는 인접 픽셀 정보를 참조하여 각 서브블록을 DC 모드로 인트라 예측을 수행한다. In FIG. 9, since the intra-prediction mode of the current block is assumed to be the DC mode, the intra-prediction mode of the sub-block also becomes the DC mode. Accordingly, the image encoding apparatus 100 performs intra prediction on each sub-block in the DC mode with reference to neighboring pixel information.

도 9을 참조하면, 영상 부호화 장치(100)는, 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 첫 번째 서브블록(SB 1)에 인접한 "H(0), H(1), H(2), H(3), V(0), V(1), V(2), V(3) 및 M"을 인접 픽셀 정보로서 참조하여, 첫 번째 서브블록(SB 1)에 대한 인트라 예측 부호화를 수행하고, 동시에 참조블록을 생성하여 저장해둔다. 이렇게 저장된 참조블록은 다른 서브블록에 대한 인트라 예측 부호화 과정에서 참조되는 인접 픽셀 정보를 포함한다. Referring to FIG. 9, the image encoding apparatus 100 performs a process of calculating H (0), H (1), and H (2) adjacent to the first sub- ), H (3), V (0), V (1), V (2), V And concurrently, a reference block is generated and stored. The stored reference block includes neighboring pixel information which is referred to in intra-prediction coding for another sub-block.

도 9에서는, 첫 번째 서브블록(SB 1)에 대한 인트라 예측 부호화 과정 시, 이미 부호화되고 복호화되어 저장된 참조블록에 포함된 픽셀 정보를 "1-1, 1-2, 1-3, 1-4, 1-5, 1-6, 1-7, 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16"으로 표시한다. 여기서, 픽셀 정보로 표시된 "첫 번째 숫자-두 번째 숫자"에서, 첫 번째 숫자는 해당 서브블록을 식별하는 것이고, 두 번째 숫자는 해당 서브블록 내에서 해당 픽셀을 식별하는 것이다. In FIG. 9, in the intra-prediction coding process for the first sub-block SB 1, pixel information included in the reference block that has already been coded and decoded and stored is denoted as "1-1, 1-2, 1-3, 1-4 , 1-5, 1-6, 1-7, 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-14, 1-15, 1-16 " Display. Here, in the "first number-second number" indicated by the pixel information, the first number identifies the corresponding sub-block, and the second number identifies the corresponding pixel in the corresponding sub-block.

SB 1에 이어서, 지그재그 순서에 따라, 영상 부호화 장치(100)는 SB 2에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는 "1-4, 1-8, 1-12, 1-16, V(4), V(5), V(6), V(7) 및 V(3)"을 포함한다. 여기서, 인접 픽셀 정보들 중에서 "1-4, 1-8, 1-12, 1-16"는 SB 2에 인접한 서브블록인 SB 1에서의 픽셀 정보들이고, 인접 픽셀 정보들 중에서 "V(4), V(5), V(6), V(7) 및 V(3)"은 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 SB 2에 인접한 픽셀 정보들이다. 이와 같이, SB 2에 대한 인트라 예측 부호화에서 "1-4, 1-8, 1-12, 1-16, V(4), V(5), V(6), V(7) 및 V(3)"를 인접 픽셀 정보로서 참조하는 이유는, DC 모드에 따라 SB 2에 대한 인트라 예측을 수행하기 때문이다.Following SB 1, in accordance with the zigzag sequence, the image coding apparatus 100 performs intraprediction encoding for SB 2, where the neighboring pixel information referred to at this time is "1-4, 1-8, 1-12, 1 -16, V (4), V (5), V (6), V (7) and V (3). Among the adjacent pixel information, "1-4, 1-8, 1-12, 1-16" are pixel information in the sub-block SB 1 adjacent to SB 2, and "V (4) , V (5), V (6), V (7), and V (3) are pixel information adjacent to SB2 among the pixel information for the adjacent macroblock for the current block. In this manner, in the intraprediction coding for SB 2, "1-4, 1-8, 1-12, 1-16, V (4), V (5), V (6), V (7) 3) "is referred to as adjacent pixel information because it performs intra prediction for SB 2 according to the DC mode.

SB 2에 이어서, 지그재그 순서에 따라, 영상 부호화 장치(100)는 SB 5에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는 "H(4), H(5), H(6), H(7), 1-13, 1-14, 1-15, 1-16 및 H(3)"을 포함한다. 여기서, 인접 픽셀 정보들 중에서 "H(4), H(5), H(6), H(7) 및 H(3)"은 현재 블록에 대하여 인접한 매크로블록에 대한 픽셀 정보 중 SB 5에 인접한 픽셀 정보들이고, 인접 픽셀 정보들 중에서 "1-13, 1-14, 1-15, 1-16"은 SB 5에 인접한 서브블록인 SB 1에서의 픽셀 정보들이다. Following SB 2, in accordance with the zigzag sequence, the image encoding apparatus 100 performs intraprediction encoding for SB 5, wherein neighboring pixel information referred to at this time is "H (4), H (5), H ), H (7), 1-13, 1-14, 1-15, 1-16, and H (3). Here, among the adjacent pixel information, "H (4), H (5), H (6), H 1-13, 1-14, 1-15, 1-16 "among the adjacent pixel information are pixel information in SB 1, which is a sub-block adjacent to SB 5.

SB 5에 이어서, 지그재그 순서에 따라, 영상 부호화 장치(100)는 SB 9에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는 "H(8), H(9), H(10), H(11), 5-13, 5-14, 5-15, 5-16 및 H(7)"을 포함한다. In accordance with the zigzag sequence, SB 5 performs intraprediction encoding for SB 9, and adjacent pixel information referred to at this time is "H (8), H (9), H (10) ), H (11), 5-13, 5-14, 5-15, 5-16 and H (7).

SB 9에 이어서, 지그재그 순서에 따라, 영상 부호화 장치(100)는 SB 6에 대한 인트라 예측 부호화를 수행하는 데, 이때 참조하는 인접 픽셀 정보는 "5-4, 5-8, 5-12, 5-16, 2-13, 2-14, 2-15, 2-16 및 1-16"을 포함한다. 여기서, 인접 픽셀 정보들 중에서 "5-4, 5-8, 5-12, 5-16"은 SB 6에 인접한 서브블록인 SB 5에서의 픽셀 정보들이고, 인접 픽셀 정보들 중에서 "2-13, 2-14, 2-15, 2-16"은 SB 6에 인접한 서브블록인 SB 2에서의 픽셀 정보들이고, 인접 픽셀 정보들 중에서 "1-16"은 SB 6에 인접한 서브블록인 SB 1에서의 픽셀 정보이다. Following SB 9, in accordance with the zigzag sequence, the image encoding apparatus 100 performs intraprediction encoding on SB 6, and adjacent pixel information referred to at this time is "5-4, 5-8, 5-12, 5 -16, 2-13, 2-14, 2-15, 2-16 and 1-16 ". Among the adjacent pixel information, "5-4, 5-8, 5-12, 5-16" are pixel information in SB 5, which is a sub-block adjacent to SB 6, 2-14, 2-15, and 2-16 "are pixel information in SB 2 adjacent to SB 6, and" 1-16 "among adjacent pixel information are pixel information in SB 1 adjacent to SB 6 Pixel information.

전술한 SB 1, SB 2, SB 5, SB 9 및 SB 6에 대한 인트라 예측 부호화 과정처럼, 영상 부호화 장치(100)는 인접한 서브블록들에서의 이미 부호화되고 복호화된 인접 픽셀 정보(각 서브블록의 오른쪽과 아래 모퉁이에 있는 픽셀에 대한 픽셀 정보) 또는 인접한 매크로블록에서의 이미 부호화되고 복호화된 인접 픽셀 정보를 참조하여 나머지 서브블록들을 정해진 지그재그 순서에 따라 인트라 예측 부호화한다. As in the intra-prediction encoding process for SB1, SB2, SB5, SB9, and SB6 described above, the image encoding apparatus 100 generates the encoded and decoded neighboring pixel information in neighboring subblocks The pixel information on the right and lower corners of the current macroblock) or the already encoded and decoded neighboring pixel information in the adjacent macroblock, and intra-predictively encodes the remaining sub-blocks according to a predetermined zigzag sequence.

도 4 내지 도 9에서는, 영상 부호화 장치(100)가, 현재 블록의 3가지의 인트라 예측 모드(수평 모드, 수직 모드, DC 모드)에 따라, 정해진 순서(래스터 스캔의 순서 또는 지그재그 순서)에 의해, 각 서브블록을 인트라 예측 부호화하는 것을 전체적으로 설명하였으며, 이하 도 10 내지 도 13에서는 한 개의 서브블록에 대한 인트라 예측 부호화 과정을 좀 더 상세하게 설명한다. 도 10 내지 도 12는 현재 블록의 인트라 예측 모드가 수평 모드, 수직 모드 및 DC 모드 각각의 경우에 대하여 임의의 서브블록 한 개에 대한 인트라 예측을 설명하기 위한 도면이고, 도 13은 인트라 예측이 수행된 임의의 서브블록에 대한 잔차 서브블록을 생성하는 것을 설명하기 위한 도면이다.In FIGS. 4 to 9, the image encoding apparatus 100 determines whether or not the image encoding apparatus 100 is in a predetermined order (raster scan order or zigzag order) according to three intraprediction modes (horizontal mode, vertical mode, DC mode) , Intra-prediction coding of each sub-block has been described as a whole. Hereinafter, the intra-prediction coding process for one sub-block will be described in more detail with reference to FIGS. 10 to 13. FIG. FIGS. 10 to 12 are diagrams for explaining intra-prediction for one arbitrary sub-block in the case where the intra-prediction mode of the current block is for each of the horizontal mode, the vertical mode and the DC mode, Block for a given sub-block is generated.

도 10은 하나의 서브블록을 수평 모드로 인트라 예측을 수행한 것을 예시적으로 나타낸 도면이다. FIG. 10 is a diagram illustrating an intra-prediction in a horizontal mode of one sub-block.

도 10의 (a)는 인트라 예측 전의 임의의 서브블록을 나타낸 것이고, 도 10의 (b)는 임의의 서브블록에 대한 인트라 예측을 통해 생성된 예측 서브블록을 나타낸 것이다. 임의의 서브블록은 4×4 블록 크기로 가정하고, 굵은 실선으로 표시하였으며, 16개의 픽셀을 포함한다. FIG. 10A shows arbitrary sub-blocks before intra prediction, and FIG. 10B shows prediction sub-blocks generated through intra prediction on arbitrary sub-blocks. An arbitrary sub-block is assumed to be a 4x4 block size, and is indicated by a bold solid line and includes 16 pixels.

도 10의 (a)를 참조하면, 인트라 예측 전의 임의의 서브블록에 포함된 각 픽셀은 원 화소에 대한 해당 픽셀 정보를 포함한다. 원 화소에 대한 16 개의 픽셀 정보는 4개의 행(i)과 4개의 열(j)을 구분하여 4×4 좌표 형태의 "M(i,j)"로 표시한다. 예를 들어, M(2,3)은 3번째 행(i=2)과 4번째 열(j=3)에 해당하는 화소의 픽셀에 대한 픽셀 정보이다. Referring to FIG. 10A, each pixel included in an arbitrary sub-block before intraprediction includes corresponding pixel information for an original pixel. The 16 pixel information for the original pixel is divided into 4 rows (i) and 4 columns (j), and is expressed as " M (i, j) " For example, M (2,3) is pixel information for a pixel of a pixel corresponding to a third row (i = 2) and a fourth column (j = 3).

또한, 수평 모드로 인트라 예측을 수행하는 것을 가정하였기 때문에, 임의의 서브블록에 대한 인트라 예측시 참조하는 인접 픽셀 정보는 해당 서브블록의 좌측에 인접한 서브블록(또는 매크로블록)에 포함된 픽셀 정보로서, "H(0), H(1), H(2) 및 H(3)"이 이러한 인접 픽셀 정보에 해당한다. 여기서, "H(0), H(1), H(2) 및 H(3)"은 임의의 서브블록을 인트라 예측할 때, 수평 방향으로 인접한 임의의 4개의 픽셀 정보를 의미한다. Since it is assumed that intra prediction is performed in a horizontal mode, adjacent pixel information referred to in intra prediction for a certain sub-block is referred to as pixel information included in a sub-block (or a macroblock) adjacent to the left of the corresponding sub-block , "H (0), H (1), H (2) and H (3)" Here, "H (0), H (1), H (2) and H (3)" means any four pieces of pixel information adjacent in the horizontal direction when intra-

도 10의 (a)에 예시된 임의의 서브블록을 수평 모드로 인트라 예측하여, 도 10의 (b)와 같은 예측 서브블록을 생성한다. 생성된 예측 서브블록에 포함된 16개의 픽셀에는 각기 예측 픽셀 정보를 포함한다. 이러한 예측 픽셀 정보는 4개의 행(i)과 4개의 열(j)을 구분하여 4×4 좌표 형태의 "P(i,j)"로 표시한다. 예를 들어, P(2,3)은 3번째 행(i=2)과 4번째 열(j=3)에 해당하는 화소에 대하여 예측된 예측 값(예측 픽셀 정보)이다. Blocks are intra-predicted in a horizontal mode to generate a predicted sub-block as shown in Fig. 10 (b). Each of the 16 pixels included in the generated prediction sub-block includes the prediction pixel information. This prediction pixel information is divided into four rows (i) and four columns (j), and is represented by "P (i, j) " For example, P (2,3) is a predicted value (predicted pixel information) for a pixel corresponding to the third row (i = 2) and the fourth row (j = 3).

임의의 서브블록을 수평 모드로 인트라 예측을 수행하여 생성된 예측 서브블록에 포함된 각 픽셀에 대한 예측 픽셀 정보인 P(i,j)는, 일 예로서, 아래와 같은 방법으로 구해질 수 있다. 아래에서의 H(i)는 이미 부호화되고 복호화된 인접 픽셀 정보들이다. The predictive pixel information P (i, j) for each pixel included in the predicted sub-block generated by intra-prediction of an arbitrary sub-block in the horizontal mode can be obtained, for example, as follows. H (i) is the adjacent pixel information that has already been encoded and decoded.

forfor (i=0; i<4; i++) (i = 0; i <4; i ++)

forfor (j=0; j<4; j++) (j = 0; j <4; j ++)

P(i,j) = H(i);P (i, j) = H (i);

전술한 방법으로 예측 서브블록이 생성된 이후, 도 10의 (a)에 도시된 임의의 서브블록에서, 도 10의 (b)에서 도시된 예측 서브블록을 감산하는 연산 처리를 통해, 도 13에 도시된 잔차 서브블록을 생성한다. 생성된 잔차 서브블록에 포함된 각 픽셀은 M(i,j)와 P(i,j)를 감산하는 연산을 통해 얻어진 "R(i,j)"라는 잔차 픽셀 정보를 포함한다. After the prediction sub-block is generated by the above-described method, in an arbitrary sub-block shown in (a) of Fig. 10, through an arithmetic process of subtracting the predicted sub-block shown in Fig. 10 And generates the residual sub-blocks shown. Each pixel included in the generated residual sub-block includes residual pixel information called "R (i, j)" obtained through an operation of subtracting M (i, j) and P (i, j).

이렇게 생성된 잔차 서브블록은 변환, 양자화 및 엔트로피 부호화의 과정을 거침으로써, 하나의 서브블록에 대한 인트라 예측 부호화가 마무리된다. 또한, 양자화된 잔차 서브블록은 역 양자화, 역 변환, 인트라 보상의 과정을 거침으로써 참조블록이 생성되고, 생성된 참조블록은 나중 순서의 서브블록에 대한 인트라 예측 부호화에서 이용된다. The generated residual sub-block is transformed, quantized, and entropy-encoded, thereby ending intraprediction encoding for one sub-block. In addition, the quantized residual sub-blocks are subjected to inverse quantization, inverse transform, and intra-compensation to generate reference blocks, and the generated reference blocks are used in intra-prediction coding on the sub-blocks in the latter order.

위에서 언급한 참조블록에 포함된 각 픽셀에 대한 참조 픽셀 정보는 아래와 같은 방법으로 얻을 수 있다. 단, 양자화된 잔차 서브블록을 역 양자화하여 역 변환한 잔차 서브블록에 포함된 픽셀 정보를 R'(i,j)라고 하며, 이러한 잔차 서브블록이 인트라 보상되어 복호화된 참조 서브블록에 포함된 참조 픽셀 정보를 O'(i,j)라 한다. Reference pixel information for each pixel included in the above-mentioned reference block can be obtained by the following method. However, the pixel information included in the residual sub-block obtained by inverse-quantizing the quantized residual sub-block and inversely transformed is referred to as R '(i, j), and the residual sub-block is referred to as a reference included in the reference sub- The pixel information is O '(i, j).

forfor (i=0; i<4; i++) (i = 0; i <4; i ++)

forfor (j=0; j<4; j++) (j = 0; j <4; j ++)

O'O ' (i,j) = H(i) + (i, j) = H (i) + R'R ' (i,j);(i, j);

이상에서는, 하나의 서브블록에 대하여, 수평 모드의 인트라 예측을 포함한 인트라 예측 부호화 과정을 예시적으로 설명하였으며, 도 11에서는 하나의 임의의 서브블록에 대하여, 수직 모드의 인트라 예측을 포함한 인트라 예측 부호화 과정을 예시적으로 설명한다. In the above description, the intra-prediction encoding process including intra-prediction in the horizontal mode is exemplarily described for one sub-block. In FIG. 11, intra-prediction encoding including intra-prediction in the vertical mode is performed for one arbitrary sub- The process will be described as an example.

도 11은 하나의 서브블록을 수직 모드로 인트라 예측을 수행한 것을 예시적으로 나타낸 도면이다. FIG. 11 is a diagram showing an example in which one sub-block is intra-predicted in a vertical mode.

도 11의 (a)는 인트라 예측 전의 임의의 서브블록을 나타낸 것이고, 도 11의 (b)는 임의의 서브블록에 대한 인트라 예측을 통해 생성된 예측 서브블록을 나타낸 것이다. 임의의 서브블록은 4×4 블록 크기로 가정하고, 굵은 실선으로 표시하였으며, 16개의 픽셀을 포함한다. FIG. 11A shows arbitrary sub-blocks before intra prediction, and FIG. 11B shows prediction sub-blocks generated through intra prediction on arbitrary sub-blocks. An arbitrary sub-block is assumed to be a 4x4 block size, and is indicated by a bold solid line and includes 16 pixels.

도 11의 (a)를 참조하면, 인트라 예측 전의 임의의 서브블록에 포함된 각 픽셀은 원 화소에 대한 해당 픽셀 정보를 포함한다. 원 화소에 대한 16 개의 픽셀 정보는 4개의 행(i)과 4개의 열(j)을 구분하여 4×4 좌표 형태의 "M(i,j)"로 표시한다. 예를 들어, M(2,3)은 3번째 행(i=2)과 4번째 열(j=3)에 해당하는 화소의 픽셀에 대한 픽셀 정보이다. Referring to FIG. 11A, each pixel included in an arbitrary sub-block before intraprediction includes corresponding pixel information for an original pixel. The 16 pixel information for the original pixel is divided into 4 rows (i) and 4 columns (j), and is expressed as " M (i, j) " For example, M (2,3) is pixel information for a pixel of a pixel corresponding to a third row (i = 2) and a fourth column (j = 3).

또한, 수직 모드로 인트라 예측을 수행하는 것을 가정하였기 때문에, 임의의 서브블록에 대한 인트라 예측시 참조하는 인접 픽셀 정보는 해당 서브블록의 상측에 인접한 서브블록(또는 매크로블록)에 포함된 픽셀 정보로서, "V(0), V(1), V(2) 및 V(3)"이 이러한 인접 픽셀 정보에 해당한다. 여기서, "V(0), V(1), V(2) 및 V(3)"은 임의의 서브블록을 인트라 예측할 때, 수직 방향으로 인접한 임의의 4개의 픽셀 정보를 의미한다. In addition, since it is assumed that intra prediction is performed in the vertical mode, adjacent pixel information referred to in intra prediction for a certain sub-block is referred to as pixel information included in sub-blocks (or macroblocks) , "V (0), V (1), V (2), and V (3)" correspond to this adjacent pixel information. Here, "V (0), V (1), V (2) and V (3)" means any four pieces of pixel information adjacent in the vertical direction when intra-

도 11의 (a)에 예시된 임의의 서브블록을 수직 모드로 인트라 예측하여, 도 11의 (b)와 같은 예측 서브블록을 생성한다. 생성된 예측 서브블록에 포함된 16개의 픽셀에는 각기 예측 픽셀 정보를 포함한다. 이러한 예측 픽셀 정보는 4개의 행(i)과 4개의 열(j)을 구분하여 4×4 좌표 형태의 "P(i,j)"로 표시한다. 예를 들어, P(2,3)은 3번째 행(i=2)과 4번째 열(j=3)에 해당하는 화소에 대하여 예측된 예측 값(예측 픽셀 정보)이다. Blocks are intra-predicted in a vertical mode to generate a predicted sub-block as shown in Fig. 11 (b). Each of the 16 pixels included in the generated prediction sub-block includes the prediction pixel information. This prediction pixel information is divided into four rows (i) and four columns (j), and is represented by "P (i, j) " For example, P (2,3) is a predicted value (predicted pixel information) for a pixel corresponding to the third row (i = 2) and the fourth row (j = 3).

임의의 서브블록을 수직 모드로 인트라 예측을 수행하여 생성된 예측 서브블록에 포함된 각 픽셀에 대한 예측 픽셀 정보인 P(i,j)는, 일 예로서, 아래와 같은 방법으로 구해질 수 있다. 아래에서의 V(j)는 이미 부호화되고 복호화된 인접 픽셀 정보들이다. P (i, j), which is predictive pixel information for each pixel included in the predicted sub-block generated by intra-prediction of an arbitrary sub-block in the vertical mode, can be obtained, for example, as follows. V (j) is the adjacent pixel information that has already been coded and decoded.

forfor (j=0; j<4; j++) (j = 0; j <4; j ++)

forfor (i=0; i<4; i++) (i = 0; i <4; i ++)

P(i,j) = V(j);P (i, j) = V (j);

전술한 방법으로 예측 서브블록이 생성된 이후, 도 11의 (a)에 도시된 임의의 서브블록에서, 도 11의 (b)에서 도시된 예측 서브블록을 감산하는 연산 처리를 통해, 도 13에 도시된 잔차 서브블록을 생성한다. 생성된 잔차 서브블록에 포함된 각 픽셀은 M(i,j)와 P(i,j)를 감산하는 연산을 통해 얻어진 "R(i,j)"라는 잔차 픽셀 정보를 포함한다. After the prediction sub-block is generated by the above-described method, in an arbitrary sub-block shown in (a) of Fig. 11, through the arithmetic processing for subtracting the predicted sub-block shown in (b) And generates the residual sub-blocks shown. Each pixel included in the generated residual sub-block includes residual pixel information called "R (i, j)" obtained through an operation of subtracting M (i, j) and P (i, j).

이렇게 생성된 잔차 서브블록은 변환, 양자화 및 엔트로피 부호화의 과정을 거침으로써, 하나의 서브블록에 대한 인트라 예측 부호화가 마무리된다. 또한, 양자화된 잔차 서브블록은 역 양자화, 역 변환, 인트라 보상의 과정을 거침으로써 참조블록이 생성되고, 생성된 참조블록은 나중 순서의 서브블록에 대한 인트라 예측 부호화에서 이용된다. The generated residual sub-block is transformed, quantized, and entropy-encoded, thereby ending intraprediction encoding for one sub-block. In addition, the quantized residual sub-blocks are subjected to inverse quantization, inverse transform, and intra-compensation to generate reference blocks, and the generated reference blocks are used in intra-prediction coding on the sub-blocks in the latter order.

위에서 언급한 참조블록에 포함된 각 픽셀에 대한 참조 픽셀 정보는 아래와 같은 방법으로 얻을 수 있다. 단, 양자화된 잔차 서브블록을 역 양자화하여 역 변환한 잔차 서브블록에 포함된 픽셀 정보를 R'(i,j)라고 하며, 이러한 잔차 서브블록이 인트라 보상되어 복호화된 참조 서브블록에 포함된 참조 픽셀 정보를 O'(i,j)라 한다. Reference pixel information for each pixel included in the above-mentioned reference block can be obtained by the following method. However, the pixel information included in the residual sub-block obtained by inverse-quantizing the quantized residual sub-block and inversely transformed is referred to as R '(i, j), and the residual sub-block is referred to as a reference included in the reference sub- The pixel information is O '(i, j).

forfor (j=0; j<4; j++) (j = 0; j <4; j ++)

forfor (i=0; i<4; i++) (i = 0; i <4; i ++)

O'O ' (i,j) = V(j) + (i, j) = V (j) + R'R ' (i,j);(i, j);

이상에서는, 하나의 서브블록에 대하여, 수직 모드의 인트라 예측을 포함한 인트라 예측 부호화 과정을 예시적으로 설명하였으며, 도 12에서는 하나의 임의의 서브블록에 대하여, DC 모드의 인트라 예측을 포함한 인트라 예측 부호화 과정을 예시적으로 설명한다. In the above description, the intra-prediction encoding process including intra-prediction in the vertical mode is exemplarily described for one sub-block. In FIG. 12, for one arbitrary sub-block, intraprediction encoding including intra- The process will be described as an example.

도 12는 하나의 서브블록을 DC 모드로 인트라 예측을 수행한 것을 예시적으로 나타낸 도면이다. 12 is a diagram exemplarily showing intra-prediction performed on a sub-block in a DC mode.

도 12의 (a)는 인트라 예측 전의 임의의 서브블록을 나타낸 것이고, 도 11의 (b)는 임의의 서브블록에 대한 인트라 예측을 통해 생성된 예측 서브블록을 나타낸 것이다. 임의의 서브블록은 4×4 블록 크기로 가정하고, 굵은 실선으로 표시하였으며, 16개의 픽셀을 포함한다. FIG. 12A shows arbitrary sub-blocks before intra prediction, and FIG. 11B shows prediction sub-blocks generated through intra prediction on arbitrary sub-blocks. An arbitrary sub-block is assumed to be a 4x4 block size, and is indicated by a bold solid line and includes 16 pixels.

도 12의 (a)를 참조하면, 인트라 예측 전의 임의의 서브블록에 포함된 각 픽셀은 원 화소에 대한 해당 픽셀 정보를 포함한다. 원 화소에 대한 16 개의 픽셀 정보는 4개의 행(i)과 4개의 열(j)을 구분하여 4×4 좌표 형태의 "M(i,j)"로 표시한다. 예를 들어, M(2,3)은 3번째 행(i=2)과 4번째 열(j=3)에 해당하는 화소의 픽셀에 대한 픽셀 정보이다. Referring to FIG. 12A, each pixel included in an arbitrary sub-block before intraprediction includes corresponding pixel information for an original pixel. The 16 pixel information for the original pixel is divided into 4 rows (i) and 4 columns (j), and is expressed as " M (i, j) " For example, M (2,3) is pixel information for a pixel of a pixel corresponding to a third row (i = 2) and a fourth column (j = 3).

또한, DC 모드로 인트라 예측을 수행하는 것을 가정하였기 때문에, 임의의 서브블록에 대한 인트라 예측시 참조하는 인접 픽셀 정보는 해당 서브블록의 상측에 인접한 서브블록(또는 매크로블록)에 포함된 픽셀 정보로서, "H(0), H(1), H(2), H(3), V(0), V(1), V(2), V(3) 및 M"이 이러한 인접 픽셀 정보에 해당한다. In addition, since it is assumed that intraprediction is performed in the DC mode, adjacent pixel information referred to in intra prediction for a given sub-block is pixel information included in sub-blocks (or macroblocks) adjacent to the upper side of the corresponding sub-block (1), H (1), H (2), H (3), V (0), V .

여기서, "H(0), H(1), H(2) 및 H(3)"은 임의의 서브블록을 인트라 예측할 때, 수평 방향으로 인접한 임의의 4개의 픽셀 정보를 의미하고, "V(0), V(1), V(2) 및 V(3)"은 임의의 서브블록을 인트라 예측할 때, 수직 방향으로 인접한 임의의 4개의 픽셀 정보를 의미하며, "M"은 왼쪽 위로 향하는 대각선 방향으로 인접한 임의의 1개의 픽셀 정보를 의미한다. Here, "H (0), H (1), H (2) and H (3)" means any four pieces of pixel information adjacent in the horizontal direction when intra- 0 ", V (1), V (2) and V (3) "means any four pieces of pixel information adjacent in the vertical direction when intra-prediction of an arbitrary sub- Means any one piece of pixel information adjacent in the direction of " 1 "

도 12의 (a)에 예시된 임의의 서브블록을 DC 모드로 인트라 예측하여, 도 12의 (b)와 같은 예측 서브블록을 생성한다. 생성된 예측 서브블록에 포함된 16개의 픽셀에는 각기 예측 픽셀 정보를 포함한다. 이러한 예측 픽셀 정보는 4개의 행(i)과 4개의 열(j)을 구분하여 4×4 좌표 형태의 "P(i,j)"로 표시한다. 예를 들어, P(2,3)은 3번째 행(i=2)과 4번째 열(j=3)에 해당하는 화소에 대하여 예측된 예측 값(예측 픽셀 정보)이다. 12A is intra-predicted in a DC mode to generate a predicted sub-block as shown in FIG. 12B. Each of the 16 pixels included in the generated prediction sub-block includes the prediction pixel information. This prediction pixel information is divided into four rows (i) and four columns (j), and is represented by "P (i, j) " For example, P (2,3) is a predicted value (predicted pixel information) for a pixel corresponding to the third row (i = 2) and the fourth row (j = 3).

임의의 서브블록을 DC 모드로 인트라 예측을 수행하여 생성된 예측 서브블록에 포함된 각 픽셀에 대한 예측 픽셀 정보인 P(i,j)는, 일 예로서, 아래와 같은 방법으로 구해질 수 있다. 아래에서의 H(i)는 이미 부호화되고 복호화된 인접 픽셀 정보들이다. The predictive pixel information P (i, j) for each pixel included in the predicted sub-block generated by intra-prediction of a certain sub-block in the DC mode can be obtained, for example, as follows. H (i) is the adjacent pixel information that has already been encoded and decoded.

forfor (j=0; j<4; j++) (j = 0; j <4; j ++)

forfor (i=0; i<4; i++) (i = 0; i <4; i ++)

{{

k=3;k = 3; //서브블록의 크기=(k+1)×(k+1)// size of sub-block = (k + 1) x (k + 1)

AvgAvg == MeanMean [H(0), H(1), ..., H(k), V(0), V(1), ..., V(k), M]; [H (0), H (1), ..., H (k), V (0), V (1), ..., V (k), M];

// // MeanMean []은 []안의 값을 평균함.[] Averages the values in [].

P(i,j) = P (i, j) = AvgAvg ;;

}}

전술한 방법으로 예측 서브블록이 생성된 이후, 도 12의 (a)에 도시된 임의의 서브블록에서, 도 12의 (b)에서 도시된 예측 서브블록을 감산하는 연산 처리를 통해, 도 13에 도시된 잔차 서브블록을 생성한다. 생성된 잔차 서브블록에 포함된 각 픽셀은 M(i,j)와 P(i,j)를 감산하는 연산을 통해 얻어진 "R(i,j)"라는 잔차 픽셀 정보를 포함한다. After the prediction sub-block is generated by the above-described method, in an arbitrary sub-block shown in (a) of Fig. 12, through an arithmetic process of subtracting the predicted sub-block shown in (b) And generates the residual sub-blocks shown. Each pixel included in the generated residual sub-block includes residual pixel information called "R (i, j)" obtained through an operation of subtracting M (i, j) and P (i, j).

이렇게 생성된 잔차 서브블록은 변환, 양자화 및 엔트로피 부호화의 과정을 거침으로써, 하나의 서브블록에 대한 인트라 예측 부호화가 마무리된다. 또한, 양자화된 잔차 서브블록은 역 양자화, 역 변환, 인트라 보상의 과정을 거침으로써 참조블록이 생성되고, 생성된 참조블록은 나중 순서의 서브블록에 대한 인트라 예측 부호화에서 이용된다. The generated residual sub-block is transformed, quantized, and entropy-encoded, thereby ending intraprediction encoding for one sub-block. In addition, the quantized residual sub-blocks are subjected to inverse quantization, inverse transform, and intra-compensation to generate reference blocks, and the generated reference blocks are used in intra-prediction coding on the sub-blocks in the latter order.

위에서 언급한 참조블록에 포함된 각 픽셀에 대한 참조 픽셀 정보는 아래와 같은 방법으로 얻을 수 있다. 단, 양자화된 잔차 서브블록을 역 양자화하여 역 변환한 잔차 서브블록에 포함된 픽셀 정보를 R'(i,j)라고 하며, 이러한 잔차 서브블록이 인트라 보상되어 복호화된 참조 서브블록에 포함된 참조 픽셀 정보를 O'(i,j)라 한다. Reference pixel information for each pixel included in the above-mentioned reference block can be obtained by the following method. However, the pixel information included in the residual sub-block obtained by inverse-quantizing the quantized residual sub-block and inversely transformed is referred to as R '(i, j), and the residual sub-block is referred to as a reference included in the reference sub- The pixel information is O '(i, j).

forfor (j=0; j<4; j++) (j = 0; j <4; j ++)

forfor (i=0; i<4; i++) (i = 0; i <4; i ++)

O'O ' (i,j) = (i, j) = AvgAvg +  + R'R ' (i,j);(i, j);

지금까지, 하나의 서브블록에 대하여, 수평 모드, 수직 모드 및 DC 모드 각각의 인트라 예측 모드의 인트라 예측을 포함한 인트라 예측 부호화 과정을 예시적으로 설명하였다. Up to now, an intra prediction coding process including intra prediction of the intra prediction modes of each of the horizontal mode, the vertical mode and the DC mode has been exemplarily described for one sub-block.

이상에서 전술한 본 발명에 따른 영상 부호화는 H.264를 기반으로 하며, 수평 모드, 수직 모드 및 DC 모드 이외의 다른 인트라 예측 모드에 대해서는 H.264에서 정의된 방법으로 영상 부호화를 수행할 수 있다. The image encoding according to the present invention described above is based on H.264, and image encoding can be performed in a method defined in H.264 for intra-prediction modes other than the horizontal mode, the vertical mode, and the DC mode .

도 14은 본 발명의 일 실시예에 따른 영상 복호화 장치(1400)에 대한 개략적인 블록구성도이다. FIG. 14 is a schematic block diagram of an image decoding apparatus 1400 according to an embodiment of the present invention.

도 14을 참조하면, 본 발명의 일 실시예에 따른 영상 복호화 장치(1400)는, 수신된 비트스트림을 복호화하여 현재 블록이 분할된 복수 개의 서브블록에 대한 잔차 서브블록 및 인트라 예측 모드를 추출하는 복호화부(1410); 추출된 잔차 서브블록을 역 양자화하는 역 양자화부(1420); 역 양자화된 잔차 서브블록을 역 변환하는 역 변환부(1430); 이미 복호화되어 복원된 서브블록별 인접 픽셀 정보를 참조하여 인트라 예측 모드에 따라 인트라 예측을 수행하여 복수 개의 서브블록에 대한 예측 서브블록을 생성하는 인트라 예측부(1440); 역변환된 잔차 서브블록과 생성된 해당 예측 서브블록을 더하여, 복수 개의 서브블록을 복원하는 가산부(1450); 및 복원된 복수 개의 서브블록을 결합하여 현재 블록을 복원하는 블록 결합부(1460) 등을 포함한다. 14, an image decoding apparatus 1400 according to an embodiment of the present invention decodes a received bit stream to extract residual sub-blocks and intra-prediction modes for a plurality of sub-blocks in which a current block is divided A decoding unit 1410; A dequantizer 1420 for dequantizing the extracted residual sub-blocks; An inverse transform unit 1430 for inversely transforming the inversely quantized residual sub-block; An intra predictor 1440 for performing intra prediction according to an intra prediction mode with reference to neighboring pixel information for each sub-block decoded and reconstructed to generate prediction sub-blocks for a plurality of sub-blocks; An adder 1450 for reconstructing a plurality of subblocks by adding the inversely transformed residual subblock and the generated corresponding prediction subblock; And a block combining unit 1460 for combining the reconstructed plurality of subblocks to reconstruct the current block.

위에서 언급한 복수 개의 서브블록에 대한 인트라 예측 모드는 현재 블록의 인트라 예측 모드와 동일한 인트라 예측 모드이다. The intra-prediction mode for the plurality of sub-blocks mentioned above is the same intra-prediction mode as the intra-prediction mode of the current block.

전술한 블록 결합부(1460)는 복원된 복수 개의 서브블록을 래스터 스캔의 순서 또는 지그재그 순서에 따라 결합할 수 있다. The block combining unit 1460 may combine a plurality of reconstructed sub-blocks according to a raster scan order or a zigzag order.

위에서 언급한 수신된 비트스트림은 본 발명의 일 실시예에 따른 영상 부호화 방법에 따라 부호화된 비트스트림이다. The received bitstream is a bitstream encoded according to an image encoding method according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 영상 복호화 장치(1400)는, 수행하는 복호화, 역 양자화, 역 변환 및 인트라 예측 등에 필요한 파라미터 또는 정보를 소정 방식으로 영상 부호화 장치(100)와 공유할 수 있다. 예를 들어, 현재 블록의 인트라 예측 모드에 대한 정보, 또는 현재 블록의 인트라 예측 모드를 결정할 수 있는 정보가 포함된 비트스트림을 수신함으로써, 영상 부호화 장치(100)와 인트라 예측 모드가 무엇인지를 공유할 수 있다. The image decoding apparatus 1400 according to an embodiment of the present invention can share parameters or information necessary for decoding, inverse quantization, inverse transform, and intra prediction, to be performed by the image encoding apparatus 100 in a predetermined manner. For example, by receiving a bitstream including information on the intra-prediction mode of the current block or the information capable of determining the intra-prediction mode of the current block, the intra-prediction mode is shared with the image encoding apparatus 100 can do.

도 15는 본 발명의 일 실시예에 따른 영상 복호화 방법에 대한 흐름도이다. 15 is a flowchart illustrating a video decoding method according to an embodiment of the present invention.

도 15를 참조하면, 본 발명의 일 실시예에 따른 영상 복호화 방법은, 수신된 비트스트림을 복호화하여 현재 블록이 분할된 복수 개의 서브블록에 대한 잔차 서브블록 및 인트라 예측 모드를 추출하는 단계(S1500); 잔차 서브블록을 역 양자화하는 단계(S1502); 역 양자화된 잔차 서브블록을 역 변환하는 단계(S1504); 이미 복호화되어 복원된 서브블록별 인접 픽셀 정보를 참조하여 인트라 예측 모드에 따라 인트라 예측을 수행하여 복수 개의 서브블록에 대한 예측 서브블록을 생성하는 단계(S1506); 역변환된 잔차 서브블록과 예측 서브블록을 더하여 복수 개의 서브블록을 복원하는 단계(S1508); 및 복원된 복수 개의 서브블록을 결합하여 현재 블록을 복원하는 단계(S1510) 등을 포함한다. 15, a method of decoding an image according to an exemplary embodiment of the present invention includes extracting residual sub-blocks and intra-prediction modes for a plurality of sub-blocks in which a current block is divided by decoding a received bit stream (S1500 ); Dequantizing the residual sub-blocks (S1502); Inverse transforming the dequantized residual sub-block (S1504); (S1506) of generating prediction subblocks for a plurality of subblocks by performing intra prediction according to the intra prediction mode with reference to neighboring pixel information for each subblock that has been decoded and restored; Reconstructing a plurality of subblocks by adding the inversely transformed residual subblock and the predicted subblock (S1508); And restoring the current block by combining the restored plurality of sub-blocks (S1510).

전술한 S1510 단계는 복원된 복수 개의 서브블록을 래스터 스캔의 순서 또는 지그재그 순서에 따라 결합할 수 있다. The step S1510 may combine the restored plurality of subblocks according to the raster scan order or the zigzag order.

위에서 언급한 복수 개의 서브블록에 대한 인트라 예측 모드는 현재 블록의 인트라 예측 모드와 동일한 인트라 예측 모드이다. The intra-prediction mode for the plurality of sub-blocks mentioned above is the same intra-prediction mode as the intra-prediction mode of the current block.

이상에 전술한 본 발명의 일 실시예에 따른 영상 부호화 방법 및 영상 복호화 방법에 따르면, 부호화하거나 복호화하고자 하는 현재 블록을 예측할 때, 현재 블록을 서브블록으로 분할하고, 분할된 서브블록마다, 현재 블록의 인접한 주변 블록의 인접 픽셀 정보를 참조하여 인트라 예측을 수행하는 것이 아니라, 해당 서브블록에 바로 인접한 픽셀 정보를 참조하여 인트라 예측을 수행함으로써, 그 예측의 정확도를 향상시킬 수 있고, 그로 인해 만족스러운 영상 재생 품질을 제공하는 효과가 있다. According to the image encoding method and image decoding method of the present invention described above, when predicting a current block to be encoded or decoded, the current block is divided into sub-blocks, It is possible to improve the accuracy of prediction by performing intra prediction with reference to pixel information immediately adjacent to the sub-block, instead of performing intra prediction with reference to neighboring pixel information of adjacent neighboring blocks of adjacent blocks Thereby providing an image reproduction quality.

이상에서, 본 발명의 실시예를 구성하는 모든 구성 요소들이 하나로 결합되거나 결합되어 동작하는 것으로 설명되었다고 해서, 본 발명이 반드시 이러한 실시예에 한정되는 것은 아니다. 즉, 본 발명의 목적 범위 안에서라면, 그 모든 구성 요소들이 하나 이상으로 선택적으로 결합하여 동작할 수도 있다. 또한, 그 모든 구성 요소들이 각각 하나의 독립적인 하드웨어로 구현될 수 있지만, 각 구성 요소들의 그 일부 또는 전부가 선택적으로 조합되어 하나 또는 복수 개의 하드웨어에서 조합된 일부 또는 전부의 기능을 수행하는 프로그램 모듈을 갖는 컴퓨터 프로그램으로서 구현될 수도 있다. 그 컴퓨터 프로그램을 구성하는 코드들 및 코드 세그먼트들은 본 발명의 기술 분야의 당업자에 의해 용이하게 추론될 수 있을 것이다. 이러한 컴퓨터 프로그램은 컴퓨터가 읽을 수 있는 저장매체(Computer Readable Media)에 저장되어 컴퓨터에 의하여 읽혀지고 실행됨으로써, 본 발명의 실시예를 구현할 수 있다. 컴퓨터 프로그램의 저장매체로서는 자기 기록매체, 광 기록매체, 캐리어 웨이브 매체 등이 포함될 수 있다.While the present invention has been described in connection with what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. That is, within the scope of the present invention, all of the components may be selectively coupled to one or more of them. In addition, although all of the components may be implemented as one independent hardware, some or all of the components may be selectively combined to perform a part or all of the functions in one or a plurality of hardware. As shown in FIG. The codes and code segments constituting the computer program may be easily deduced by those skilled in the art. Such a computer program can be stored in a computer-readable storage medium, readable and executed by a computer, thereby realizing an embodiment of the present invention. As the storage medium of the computer program, a magnetic recording medium, an optical recording medium, a carrier wave medium, or the like may be included.

또한, 이상에서 기재된 "포함하다", "구성하다" 또는 "가지다" 등의 용어는, 특별히 반대되는 기재가 없는 한, 해당 구성 요소가 내재될 수 있음을 의미하는 것이므로, 다른 구성 요소를 제외하는 것이 아니라 다른 구성 요소를 더 포함할 수 있는 것으로 해석되어야 한다. 기술적이거나 과학적인 용어를 포함한 모든 용어들은, 다르게 정의되지 않는 한, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가진다. 사전에 정의된 용어와 같이 일반적으로 사용되는 용어들은 관련 기술의 문맥 상의 의미와 일치하는 것으로 해석되어야 하며, 본 발명에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.It is also to be understood that the terms such as " comprises, "" comprising," or "having ", as used herein, mean that a component can be implanted unless specifically stated to the contrary. But should be construed as including other elements. All terms, including technical and scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs, unless otherwise defined. Commonly used terms, such as predefined terms, should be interpreted to be consistent with the contextual meanings of the related art, and are not to be construed as ideal or overly formal, unless expressly defined to the contrary.

이상의 설명은 본 발명의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 발명에 개시된 실시예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.The foregoing description is merely illustrative of the technical idea of the present invention, and various changes and modifications may be made by those skilled in the art without departing from the essential characteristics of the present invention. Therefore, the embodiments disclosed in the present invention are intended to illustrate rather than limit the scope of the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments. The scope of protection of the present invention should be construed according to the following claims, and all technical ideas falling within the scope of the same shall be construed as falling within the scope of the present invention.

이상에서 설명한 바와 같이 본 발명은 분야에 적용되어, 영상을 부호화하고 복호화하는 데 있어서, 부호화하거나 복호화하고자 하는 현재 블록을 예측할 때, 그 예측의 정확도를 향상시킬 수 있고, 그로 인해 만족스러운 영상 재생 품질을 제공하는 효과를 발생시키는 매우 유용한 발명이다.As described above, the present invention is applied to the field, and in encoding and decoding an image, when the current block to be encoded or decoded is predicted, the accuracy of the prediction can be improved, Which is a very useful invention.

100: 영상 부호화 장치 110: 블록 분할부
120: 인트라 예측 부호화부 121: 인트라 예측부
122: 감산부 123: 변환부
124: 양자화부 125: 부호화부
1400: 영상 복호화 장치 1410: 복호화부
1420: 역 양자화부 1430: 역 변환부
1440: 인트라 예측부 1450: 가산부
1460: 블록 결합부
100: Image coding apparatus 110: Block division unit
120: Intraprediction encoding unit 121: Intra prediction unit
122: subtraction unit 123: conversion unit
124: quantization unit 125: encoding unit
1400: Image decoding apparatus 1410: Decoding unit
1420: Inverse quantization unit 1430: Inverse quantization unit
1440: Intra prediction unit 1450:
1460:

Claims (1)

인트라 예측을 이용한 영상 복호화 방법에 있어서,
비트스트림으로부터 현재 블록에 대한 모드 정보를 획득하는 단계;
상기 획득한 모드 정보에 근거하여, 복수의 인트라 예측 모드 중 상기 현재 블록의 인트라 예측 모드를 선택하는 단계;
상기 현재 블록이 복수의 서브블록을 포함하는 경우, 상기 복수의 서브블록을 식별하는 단계;
각 서브 블록별로 상기 각 서브블록에 인접한 주변 픽셀을 이용하여 예측을 수행함으로써 상기 복수의 서브블록을 복원하는 단계를 포함하고,
상기 각 서브블록은 상기 획득한 모드 정보에 근거하여 선택된 상기 현재 블록의 인트라 예측 모드와 동일한 모드를 사용하여 예측되는 것을 특징으로 하는 영상 복호화 방법.
In an image decoding method using intra prediction,
Obtaining mode information for a current block from a bitstream;
Selecting an intra prediction mode of the current block among a plurality of intra prediction modes based on the acquired mode information;
If the current block includes a plurality of subblocks, identifying the plurality of subblocks;
And restoring the plurality of subblocks by performing prediction using neighboring pixels adjacent to the subblocks for each subblock,
Wherein each sub-block is predicted using the same mode as the intra prediction mode of the current block selected based on the acquired mode information.
KR1020140079127A 2014-06-26 2014-06-26 Method and Apparatus for Encoding and Decoding Vedio KR101648910B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020140079127A KR101648910B1 (en) 2014-06-26 2014-06-26 Method and Apparatus for Encoding and Decoding Vedio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020140079127A KR101648910B1 (en) 2014-06-26 2014-06-26 Method and Apparatus for Encoding and Decoding Vedio

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020080096356A Division KR101458471B1 (en) 2008-10-01 2008-10-01 Method and Apparatus for Encoding and Decoding Vedio

Related Child Applications (3)

Application Number Title Priority Date Filing Date
KR1020140158127A Division KR101608888B1 (en) 2014-11-13 2014-11-13 Method and Apparatus for Encoding and Decoding Vedio
KR1020140158107A Division KR101608895B1 (en) 2014-11-13 2014-11-13 Method and Apparatus for Encoding and Decoding Vedio
KR1020140158120A Division KR101608885B1 (en) 2014-11-13 2014-11-13 Method and Apparatus for Encoding and Decoding Vedio

Publications (2)

Publication Number Publication Date
KR20140092280A true KR20140092280A (en) 2014-07-23
KR101648910B1 KR101648910B1 (en) 2016-08-18

Family

ID=51739053

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020140079127A KR101648910B1 (en) 2014-06-26 2014-06-26 Method and Apparatus for Encoding and Decoding Vedio

Country Status (1)

Country Link
KR (1) KR101648910B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102504876B1 (en) 2016-11-01 2023-02-28 삼성전자주식회사 Encoding method and its device, decoding method and its device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050265447A1 (en) * 2004-05-25 2005-12-01 Industry Academic Cooperation Foundation Kyunghee Univ. Prediction encoder/decoder, prediction encoding/decoding method, and computer readable recording medium having recorded thereon program for implementing the prediction encoding/decoding method
US20060104354A1 (en) * 2004-11-12 2006-05-18 Samsung Electronics Co., Ltd. Multi-layered intra-prediction method and video coding method and apparatus using the same
KR20070110635A (en) * 2006-05-15 2007-11-20 브이케이 주식회사 Intra prediction process, method and apparatus for image encoding and decoding process using the intra prediction process
KR20080068279A (en) * 2007-01-18 2008-07-23 삼성전자주식회사 Method and apparatus for encoding and decoding based on intra prediction

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050265447A1 (en) * 2004-05-25 2005-12-01 Industry Academic Cooperation Foundation Kyunghee Univ. Prediction encoder/decoder, prediction encoding/decoding method, and computer readable recording medium having recorded thereon program for implementing the prediction encoding/decoding method
US20060104354A1 (en) * 2004-11-12 2006-05-18 Samsung Electronics Co., Ltd. Multi-layered intra-prediction method and video coding method and apparatus using the same
KR20070110635A (en) * 2006-05-15 2007-11-20 브이케이 주식회사 Intra prediction process, method and apparatus for image encoding and decoding process using the intra prediction process
KR20080068279A (en) * 2007-01-18 2008-07-23 삼성전자주식회사 Method and apparatus for encoding and decoding based on intra prediction

Also Published As

Publication number Publication date
KR101648910B1 (en) 2016-08-18

Similar Documents

Publication Publication Date Title
KR101458471B1 (en) Method and Apparatus for Encoding and Decoding Vedio
US11388393B2 (en) Method for encoding video information and method for decoding video information, and apparatus using same
US8902980B2 (en) Apparatus and method for encoding and decoding high fidelity video, and computer-readable storage medium
KR101444675B1 (en) Method and Apparatus for Encoding and Decoding Video
US9426491B2 (en) Image encoding/decoding method and apparatus using block transformation
KR101830352B1 (en) Method and Apparatus Video Encoding and Decoding using Skip Mode
KR101608426B1 (en) Method for predictive intra coding/decoding for video and apparatus for same
KR100727969B1 (en) Apparatus for encoding and decoding image, and method theroff, and a recording medium storing program to implement the method
KR100750137B1 (en) Method and apparatus for encoding and decoding image
KR101739579B1 (en) Video Encoding/Decoding Method and Apparatus Using Unit-level Parallel Intra Prediction
KR20110126485A (en) Video coding and decoding method and apparatus for macroblock including intra and inter blocks
KR101432771B1 (en) Video encoding apparatus and method therefor, and video decoding apparatus and method therefor
KR20080082143A (en) An image encoding/decoding method and apparatus
KR101608895B1 (en) Method and Apparatus for Encoding and Decoding Vedio
KR101418095B1 (en) Video Encoding/Decoding Apparatus and Mehod Using Direction of Prediction
KR101608885B1 (en) Method and Apparatus for Encoding and Decoding Vedio
KR101608888B1 (en) Method and Apparatus for Encoding and Decoding Vedio
KR101648910B1 (en) Method and Apparatus for Encoding and Decoding Vedio
US8768083B2 (en) Apparatus and method for encoding images, and apparatus and method for decoding images
KR101483495B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR20160053848A (en) Method for predictive intra coding/decoding for video and apparatus for same
KR101534014B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR20140058469A (en) Video encoding/decoding method and apparatus using arbitrary pixel in subblock
KR20140058468A (en) Video encoding/decoding method and apparatus using arbitrary pixel in subblock

Legal Events

Date Code Title Description
A107 Divisional application of patent
A201 Request for examination
A107 Divisional application of patent
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant