KR20210111901A - Intra prediction method and apparatus using the method - Google Patents
Intra prediction method and apparatus using the method Download PDFInfo
- Publication number
- KR20210111901A KR20210111901A KR1020217028387A KR20217028387A KR20210111901A KR 20210111901 A KR20210111901 A KR 20210111901A KR 1020217028387 A KR1020217028387 A KR 1020217028387A KR 20217028387 A KR20217028387 A KR 20217028387A KR 20210111901 A KR20210111901 A KR 20210111901A
- Authority
- KR
- South Korea
- Prior art keywords
- prediction
- pixel
- sample
- reference pixel
- unit
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
- H04N19/577—Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/105—Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/11—Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/117—Filters, e.g. for pre-processing or post-processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/157—Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N19/159—Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/182—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/59—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/80—Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
화면 내 예측 방법 및 이러한 방법을 사용하는 장치가 개시되어 있다. 화면 내 예측 방법은 하단 우측 픽셀을 DC 예측값으로 설정하는 단계, 하단 우측 픽셀과 제n 상단 참조 픽셀을 보간하여 제n 열의 예측값을 산출하고 하단 우측 픽셀과 제n 좌측 참조 픽셀을 보간하여 제n 행의 예측값을 산출하는 단계와 양방향 선형 보간을 수행하여 제n 행과 제n 열을 제외한 예측 단위에 포함된 픽셀의 예측값을 산출하는 단계를 포함할 수 있다. 따라서, 향상된 화면 내 예측 방법을 사용함으로서 화면 내 예측 방법을 수행시 원본 블록의 값과 가까운 예측 블록을 생성하여 부복호화 효율을 높힐 수 있다.An in-screen prediction method and an apparatus using the method are disclosed. The in-screen prediction method includes setting the lower right pixel as a DC prediction value, interpolating the lower right pixel and the nth upper reference pixel to calculate the predicted value of the nth column, and interpolating the lower right pixel and the nth left reference pixel to the nth row The method may include calculating a predicted value of , and calculating a predicted value of a pixel included in a prediction unit excluding the n-th row and the n-th column by performing bidirectional linear interpolation. Accordingly, by using the improved intra prediction method, when the intra prediction method is performed, a prediction block close to the value of the original block is generated, thereby increasing the encoding/decoding efficiency.
Description
본 발명은 화면 내 예측 방법 및 이러한 방법을 사용하는 장치에 관한 것으로 더욱 상세하게는 복호화 방법 및 장치에 관한 것이다.The present invention relates to an intra prediction method and an apparatus using the method, and more particularly, to a decoding method and apparatus.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품록을 받으질의 영상에 대한 수요가 다양한 응용 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 데이터량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 저장하는 경우, 전송 비용과 저장 비용이 증가하게 된다. 영상 데이터가 고해상도, 고품질화 됨에 따라 발생하는 이러한 문제들을 해결하기 위해서는 고효율의 영상 압축 기술들이 활용될 수 있다.Recently, the demand for high-resolution and high-quality images such as HD (High Definition) images and UHD (Ultra High Definition) images is increasing in various application fields. As the image data becomes higher resolution and higher quality, the amount of data relatively increases compared to the existing image data. storage costs will increase. High-efficiency image compression techniques can be used to solve these problems that occur as image data becomes high-resolution and high-quality.
영상 압축 기술로 현재 픽쳐의 이전 또는 이후 픽쳐로부터 현재 픽쳐에 포함된 화소값을 예측하는 화면 간 예측 기술, 현재 픽쳐 내의 화소 정보를 이용하여 현재 픽쳐에 포함된 화소값을 예측하는 화면 내 예측 기술, 출현 빈도가 높은 값에 짧은 부호를 할당하고 출현 빈도가 낮은 값에 긴 부호를 할당하는 엔트로피 부호화 기술 등 다양한 기술이 존재하고 이러한 영상 압축 기술을 이용해 영상 데이터를 효과적으로 압축하여 전송 또는 저장할 수 있다.Inter-screen prediction technology that predicts pixel values included in the current picture from pictures before or after the current picture with image compression technology, intra-picture prediction technology that predicts pixel values included in the current picture using pixel information in the current picture, Various techniques exist, such as entropy encoding technology in which a short code is assigned to a value with a high frequency of occurrence and a long code is assigned to a value with a low frequency of occurrence.
본 발명의 목적은 영상 부복호화 효율을 증가시키기 위한 화면 내 예측 방법을 제공하는 것이다.It is an object of the present invention to provide an intra prediction method for increasing image encoding/decoding efficiency.
또한, 본 발명의 다른 목적은 영상 부복호화 효율을 증가시키기 위한 화면 내 예측 방법을 수행하는 장치를 제공하는 것이다.Another object of the present invention is to provide an apparatus for performing an intra prediction method for increasing image encoding/decoding efficiency.
상술한 본 발명의 목적을 달성하기 위한 본 발명의 일 측면에 따른 화면 내 예측 방법은 하단 우측 픽셀을 DC 예측값으로 설정하는 단계, 하단 우측 픽셀과 제n 상단 참조 픽셀을 보간하여 제n 열의 예측값을 산출하고 하단 우측 픽셀과 제n 좌측 참조 픽셀을 보간하여 제n 행의 예측값을 산출하는 단계와 양방향 선형 보간을 수행하여 제n 행과 제n 열을 제외한 예측 단위에 포함된 픽셀의 예측값을 산출하는 단계를 포함할 수 있다.In an in-screen prediction method according to an aspect of the present invention for achieving the above object of the present invention, the lower right pixel is set as a DC predicted value, the lower right pixel and the nth upper reference pixel are interpolated to obtain the predicted value of the nth column. calculating the predicted value of the nth row by interpolating the lower right pixel and the nth left reference pixel, and performing bidirectional linear interpolation to calculate the predicted value of the pixel included in the prediction unit except for the nth row and the nth column may include steps.
또한, 상술한 본 발명의 다른 목적을 달성하기 위한 본 발명의 다른 측면에 따른 화면 내 예측 방법은 상단 좌측 참조 픽셀, 제n 상단 참조 픽셀 및 제n 좌측 참조 픽셀의 평균을 이용하여 하단 우측 픽셀을 설정하는 단계, 하단 우측 픽셀과 제n 상단 참조 픽셀을 보간하여 제n 열의 예측값을 산출하고 하단 우측 픽셀과 제n 좌측 참조 픽셀을 보간하여 제n 행의 예측값을 산출하는 단계와 양방향 선형 보간을 수행하여 제n 행과 제n 열을 제외한 예측 단위에 포함된 픽셀의 예측값을 산출하는 단계를 포함할 수 있다.In addition, the intra-screen prediction method according to another aspect of the present invention for achieving the above-mentioned other object of the present invention is to use the average of the upper left reference pixel, the nth upper reference pixel, and the nth left reference pixel to calculate the lower right pixel setting, calculating the predicted value of the nth column by interpolating the lower right pixel and the nth upper reference pixel, and calculating the predicted value of the nth row by interpolating the lower right pixel and the nth left reference pixel, and performing bidirectional linear interpolation and calculating a predicted value of a pixel included in a prediction unit excluding the n-th row and the n-th column.
또한, 상술한 본 발명의 다른 목적을 달성하기 위한 본 발명의 다른 측면에 따른 화면 내 예측 방법은 하단 우측 픽셀을 DC 예측값으로 설정하는 단계, 하단 우측 픽셀과 제n 상단 참조 픽셀을 보간하여 제n 열의 예측값을 산출하고 하단 우측 픽셀과 제n 좌측 참조 픽셀을 보간하여 제n 행의 예측값을 산출하는 단계, 상단 참조 픽셀, 좌측 참조 픽셀, 제n 열, 제n 행의 값을 기초로 사선 방향 보간을 수행하여 제n 행과 제n 열을 제외한 예측 단위에 포함된 픽셀의 제1 예측값을 산출하는 단계와 제n 행과 제n 열을 제외한 예측 단위에 포함된 픽셀의 상단, 하단, 좌측, 우측에 존재하는 픽셀을 양방향 선형 보간하여 픽셀의 제2 예측값을 산출하는 단계를 포함할 수 있다.In addition, the intra-screen prediction method according to another aspect of the present invention for achieving the above-mentioned other object of the present invention includes the steps of setting the lower right pixel as a DC prediction value, interpolating the lower right pixel and the nth upper reference pixel to the nth calculating the predicted value of the column and interpolating the lower right pixel and the nth left reference pixel to calculate the predicted value of the nth row; calculating a first predicted value of a pixel included in a prediction unit excluding the n-th row and n-th column by performing and calculating a second predicted value of the pixel by bi-directionally linearly interpolating pixels existing in the .
또한, 상술한 본 발명의 다른 목적을 달성하기 위한 본 발명의 다른 측면에 따른 화면 내 예측 방법은 상단 좌측 참조 픽셀, 제n 상단 참조 픽셀 및 제n 좌측 참조 픽셀의 평균을 이용하여 하단 우측 픽셀을 설정하는 단계, 하단 우측 픽셀과 제n 상단 참조 픽셀을 보간하여 제n 열의 예측값을 산출하고 하단 우측 픽셀과 제n 좌측 참조 픽셀을 보간하여 제n 행의 예측값을 산출하는 단계, 상단 참조 픽셀, 좌측 참조 픽셀, 제n 열, 제n 행의 값을 기초로 사선 방향 보간을 수행하여 제n 행과 제n 열을 제외한 예측 단위에 포함된 픽셀의 제1 예측값을 산출하는 단계와 제n 행과 제n 열을 제외한 예측 단위에 포함된 픽셀의 상단, 하단, 좌측, 우측에 존재하는 픽셀을 양방향 선형 보간하여 픽셀의 제2 예측값을 산출하는 단계를 포함할 수 있다.In addition, the intra-screen prediction method according to another aspect of the present invention for achieving the above-mentioned other object of the present invention is to use the average of the upper left reference pixel, the nth upper reference pixel, and the nth left reference pixel to calculate the lower right pixel setting, interpolating the lower right pixel and the nth upper reference pixel to calculate the predicted value of the nth column, and interpolating the lower right pixel and the nth left reference pixel to calculate the predicted value of the nth row, upper reference pixel, left calculating a first predicted value of a pixel included in a prediction unit excluding the nth row and the nth column by performing diagonal interpolation based on the values of the reference pixel, the nth column, and the nth row, and the nth row and the nth row The method may include calculating a second predicted value of the pixel by bi-directionally linear interpolating pixels existing at the top, bottom, left, and right of the pixel included in the prediction unit except for column n.
또한, 상술한 본 발명의 다른 목적을 달성하기 위한 본 발명의 다른 측면에 따른 화면 내 예측 방법은 각각의 상단 참조 픽셀과 제n 좌측 참조 픽셀을 평균낸 값으로 제n 행에 포함된 픽셀의 예측값을 생성하는 단계와 제n 행에 포함된 픽셀과 상단 참조 픽셀을 보간하여 제n 행을 제외한 예측 단위의 픽셀의 예측값을 생성하는 단계를 포함할 수 있다.In addition, the intra-screen prediction method according to another aspect of the present invention for achieving the above-described other object of the present invention is the average value of each upper reference pixel and the n-th left reference pixel, and the predicted value of the pixel included in the n-th row and generating a predicted value of a pixel of a prediction unit except for the n-th row by interpolating the pixel included in the n-th row and the upper reference pixel.
또한, 상술한 본 발명의 다른 목적을 달성하기 위한 본 발명의 다른 측면에 따른 화면 내 예측 방법은 각각의 좌측 참조 픽셀값과 제n+1 상단 참조 픽셀값에 대해 평균값을 산출하여 제n 열에 포함된 픽셀의 예측값을 생성하는 단계와 제n 열에 포함된 픽셀과 좌측 참조 픽셀을 보간하여 제n 열을 제외한 예측 단위의 픽셀의 예측값을 생성하는 단계를 포함할 수 있다.In addition, in the intra-screen prediction method according to another aspect of the present invention for achieving the above-mentioned other object of the present invention, the average value is calculated for each left reference pixel value and the n+1th upper reference pixel value and included in the nth column. The method may include generating a predicted value of a pixel in the n-th column and generating a predicted value of a pixel of a prediction unit excluding the n-th column by interpolating a pixel included in the n-th column and a left reference pixel.
또한, 상술한 본 발명의 다른 목적을 달성하기 위한 본 발명의 다른 측면에 따른 화면 내 에측 방법은 하단 우측 픽셀의 예측값을 산출하는 단계, 상기 상출된 하단 우측 픽셀의 예측값과 제n 좌측 참조 픽셀의 보간값을 제n 행에 포함된 픽셀의 예측값으로 사용하고, 상기 하단 우측 픽셀의 예측값과 제n 상단 참조 픽셀의 보간값을 제n 열에 포함된 픽셀의 예측값으로 사용하는 단계와 제n 행과 제n 열을 제외한 예측 단위의 나머지 픽셀의 예측값은 예측 대상 픽셀의 수직 방향으로 동일한 열에 포함되어 있는 상단 참조 픽셀과 제n 행의 픽셀 및 예측 대상 픽셀의 수평 방향으로 동일한 행에 포함되어 있는 좌측 참조 픽셀과 제n 열의 픽셀을 양방향 보간하는 단계를 포함할 수 있다. 상기 하단 우측 픽셀의 예측값을 산출하는 단계는 제n 좌측 참조 픽셀 및 제n 상단 참조 픽셀의 평균값을 상기 하단 우측 픽셀의 예측값으로 산출하는 단계일 수 있다. 상기 하단 우측 픽셀의 예측값을 산출하는 단계는 제2n 상단 참조 픽셀과 제2n 좌측 참조 픽셀의 평균값을 상기 하단 우측 픽셀의 예측값으로 산출하는 단계일 수 있다. 상기 하단 우측 픽셀의 예측값을 산출하는 단계는 제n 상단 참조 픽셀과 제2n 상단 참조 픽셀의 평균값인 상단 평균 픽셀과 제n 좌측 참조 픽셀과 제2n 좌측 참조 픽셀의 평균값인 좌측 평균 픽셀을 산출하는 단계와 상기 상단 평균 픽셀 및 상기 좌측 평균 픽셀의 평균값을 상기 하단 우측 픽셀의 예측값으로 산출하는 단계를 포함할 수 있다. 상기 하단 우측 픽셀의 예측값을 산출하는 단계는 제n 상단 참조 픽셀과 제2n 상단 참조 픽셀의 중간에 위치한 상단 중간 픽셀과 제n 좌측 참조 픽셀과 제2n 좌측 참조 픽셀의 중간에 위치한 좌측 중간 픽셀의 평균값을 이용하여 상기 하단 우측 픽셀의 예측값을 산출하는 단계일 수 있다.In addition, the in-screen prediction method according to another aspect of the present invention for achieving the above-described other object of the present invention comprises the steps of calculating the predicted value of the lower right pixel, the predicted value of the lower right pixel and the nth left reference pixel. using the interpolation value as the predicted value of the pixel included in the nth row, and using the predicted value of the lower right pixel and the interpolated value of the nth upper reference pixel as the predicted value of the pixel included in the nth row and the nth row and the nth column The prediction values of the remaining pixels of the prediction unit except for the n column are the upper reference pixel included in the same column in the vertical direction of the prediction target pixel, the pixels in the nth row, and the left reference pixel included in the same row in the horizontal direction of the prediction target pixel. and bidirectionally interpolating the pixels in the nth column. The calculating of the predicted value of the lower right pixel may include calculating an average value of the nth left reference pixel and the nth upper reference pixel as the predicted value of the lower right pixel. The calculating of the predicted value of the lower right pixel may include calculating an average value of the 2n-th upper reference pixel and the 2n-th left reference pixel as the predicted value of the lower right pixel. Calculating the predicted value of the lower right pixel may include calculating an upper average pixel, which is an average value of an n-th upper reference pixel and a 2n-th upper reference pixel, and a left average pixel, which is an average value of the n-th left reference pixel and the 2n-th left reference pixel. and calculating the average value of the upper average pixel and the left average pixel as the predicted value of the lower right pixel. The calculating of the predicted value of the lower right pixel may include an average value of an upper middle pixel positioned between the nth upper reference pixel and the 2nth upper reference pixel, and an average value of a left middle pixel positioned between the nth left reference pixel and the 2nth left reference pixel. It may be a step of calculating the predicted value of the lower right pixel by using .
또한, 상술한 본 발명의 다른 목적을 달성하기 위한 본 발명의 다른 측면에 따른 화면 내 예측 방법은 하단 우측 픽셀의 예측값을 산출하는 단계, 제n+1 좌측 참조 픽셀에서 제2n 좌측 참조 픽셀까지 값을 제n 행에 포함된 픽셀의 예측값으로 사용하고, 제n+1 상단 참조 픽셀에서 제2n 상단 참조 픽셀까지 값을 제n 열에 포함된 픽셀의 예측값으로 사용하는 단계, 제n 행과 제n 열을 제외한 예측 단위의 나머지 픽셀의 예측값은 예측 대상 픽셀의 수직 방향으로 동일한 열에 포함되어 있는 상단 참조 픽셀과 제n 행의 픽셀 및 예측 대상 픽셀의 수평 방향으로 동일한 행에 포함되어 있는 좌측 참조 픽셀과 제n 열의 픽셀을 양방향 보간하는 단계를 포함할 수 있다.In addition, the intra-screen prediction method according to another aspect of the present invention for achieving the above-mentioned other object of the present invention includes the steps of calculating the predicted value of the lower right pixel, the value from the n+1th left reference pixel to the 2nth left reference pixel using as the predicted value of the pixel included in the nth row, and using the values from the n+1th upper reference pixel to the 2nth upper reference pixel as the predicted value of the pixel included in the nth column, the nth row and the nth column The prediction values of the remaining pixels of the prediction unit except and bidirectionally interpolating pixels in n columns.
또한, 상술한 본 발명의 다른 목적을 달성하기 위한 본 발명의 다른 측면에 따른 화면 내 예측 방법은 하단 우측 픽셀의 예측값을 산출하는 단계, 제n+1 좌측 참조 픽셀에서 제2n 좌측 참조 픽셀까지 값과 제n+1 상단 참조 픽셀에서 제2n 상단 참조 픽셀까지 값을 양방향 보간하여 제n 행 및 제n 열에 포함된 픽셀의 예측값으로 사용하는 단계와 제n 행과 제n 열을 제외한 예측 단위의 나머지 픽셀의 예측값은 예측 대상 픽셀의 수직 방향으로 동일한 열에 포함되어 있는 상단 참조 픽셀과 제n 행의 픽셀 및 예측 대상 픽셀의 수평 방향으로 동일한 행에 포함되어 있는 좌측 참조 픽셀과 제n 열의 픽셀을 양방향 보간하는 단계를 포함할 수 있다.In addition, the intra-screen prediction method according to another aspect of the present invention for achieving the above-mentioned other object of the present invention includes the steps of calculating the predicted value of the lower right pixel, the value from the n+1th left reference pixel to the 2nth left reference pixel and bidirectional interpolation of values from the n+1th upper reference pixel to the 2nth upper reference pixel and using them as prediction values of pixels included in the nth row and nth column, and the remainder of the prediction unit excluding the nth row and nth column The prediction value of the pixel is obtained by bidirectional interpolation between the upper reference pixel and the nth row pixels included in the same column in the vertical direction of the prediction target pixel, and the left reference pixel and the nth column pixels included in the same row in the horizontal direction of the prediction target pixel. may include the step of
또한, 상술한 본 발명의 다른 목적을 달성하기 위한 본 발명의 다른 측면에 따른 화면 내 예측 방법은 수평 방향으로 동일한 행에 존재하는 좌측 참조 픽셀값과 제2n 상단 참조 픽셀값 및 수직 방향으로 동일한 열에 존재하는 상단 참조 픽셀값과 제2n 좌측 참조 픽셀값을 산출하는 단계와 상기 좌측 참조 픽셀값, 상기 제2n 상단 참조 픽셀값, 상기 상단 참조 픽셀값 및 제2n 좌측 참조 픽셀값을 양방향 선형 보간하여 예측 단위에 포함된 픽셀의 예측값을 산출하는 단계를 포함할 수 있다.In addition, in the intra-screen prediction method according to another aspect of the present invention for achieving the above-mentioned other object of the present invention, the left reference pixel value, the 2nth upper reference pixel value, and the 2nth upper reference pixel value existing in the same row in the horizontal direction, and the same column in the vertical direction Calculating the existing upper reference pixel value and the 2nth left reference pixel value, and predicting the left reference pixel value, the 2nth upper reference pixel value, the upper reference pixel value, and the 2nth left reference pixel value by bidirectional linear interpolation The method may include calculating a predicted value of a pixel included in the unit.
또한, 상술한 본 발명의 다른 목적을 달성하기 위한 본 발명의 다른 측면에 따른 화면 내 예측 방법은 수평 방향으로 동일한 행에 존재하는 좌측 참조 픽셀값과 제2n 상단 참조 픽셀값을 이용하여 수평 보간을 수행하는 단계, 수직 방향으로 동일한 열에 존재하는 상단 참조 픽셀값과 제2n 좌측 참조 픽셀값을 이용하여 수직 보간을 수행하는 단계와 상기 수평 보간 및 수직 보간을 수행한 값에 일정한 가중치를 곱한 값 더해 예측 단위에 포함되는 픽셀의 예측값을 산출하는 단계를 포함할 수 있다.In addition, the intra prediction method according to another aspect of the present invention for achieving the above-mentioned other object of the present invention is horizontal interpolation using the left reference pixel value and the 2nth upper reference pixel value existing in the same row in the horizontal direction. performing vertical interpolation using the upper reference pixel value and the 2nth left reference pixel value existing in the same column in the vertical direction, and adding a value obtained by multiplying the horizontal interpolation and vertical interpolation values by a constant weight The method may include calculating a predicted value of a pixel included in the unit.
상술한 바와 같이 본 발명의 실시예에 따른 화면 내 예측 방법 및 이러한 방법을 사용하는 장치에 따르면, 향상된 화면 내 예측 방법을 사용함으로서 화면 내 예측 방법을 수행시 원본 블록의 값과 가까운 예측 블록을 생성하여 부복호화 효율을 높힐 수 있다.As described above, according to the intra prediction method and the apparatus using the intra prediction method according to the embodiment of the present invention, a prediction block close to the value of the original block is generated when the intra prediction method is performed by using the improved intra prediction method Thus, it is possible to increase the encoding/decoding efficiency.
도 1은 본 발명의 일실시예에 따른 영상 부호화 장치를 나타낸 블록도이다.
도 2는 본 발명의 다른 실시예에 따른 영상 복호화기를 나타낸 블록도이다.
도 3은 본 발명의 실시예에 따른 예측 단위와 참조 픽셀을 나타낸 것이다.
도 4는 본 발명의 실시예에 따른 향상된 DC 모드를 이용한 화면 내 예측 방법을 나타낸 개념도이다.
도 5는 본 발명의 실시예에 따른 향상된 DC 모드를 이용한 화면 내 예측 방법을 나타낸 개념도이다.
도 6은 본 발명의 실시예에 따른 향상된 DC 모드를 이용한 화면 내 예측 방법을 나타낸 개념도이다.
도 7은 본 발명의 실시예에 따른 향상된 DC 모드를 이용한 화면 내 예측 방법을 나타낸 개념도이다.
도 8은 본 발명의 실시예에 따른 향상된 수직 방향 화면 내 예측 방법을 나타낸 개념도이다.
도 9는 본 발명의 실시예에 따른 향상된 수평 방향 화면 내 예측 방법을 나타낸 개념도이다.
도 10은 본 발명의 실시예에 따른 향상된 플레이너 모드를 통해 예측 단위를 산출하는 방법을 나타낸 개념도이다.
도 11은 본 발명의 실시예에 따른 향상된 플레이너 모드 화면 내 예측 방법에서 하단 우측 픽셀을 산출하는 방법을 나타내는 개념도이다.
도 12는 본 발명의 실시예에 따른 향상된 플레이너 모드 화면 내 예측 방법에서 하단 우측 픽셀을 산출하는 방법을 나타낸 개념도이다.
도 13은 본 발명의 실시예에 따른 향상된 플레이너 모드 화면 내 예측 방법에서 하단 우측 픽셀을 산출하는 방법을 나타낸 개념도이다.
도 14는 본 발명의 실시예에 따른 향상된 플레이너 모드에서 하단 우측 픽셀을 생성하는 방법을 나타낸 개념도이다.
도 15는 본 발명의 실시예에 따른 플레이너 모드를 수행시 제n 행 및 제n 열을 생성하는 방법을 나타낸 개념도이다.
도 16은 본 발명의 실시예에 따른 향상된 플레이너 모드를 수행시 제n 행 및 제n 열을 생성하는 방법을 나타낸 개념도이다.
도 17은 본 발명의 실시예에 따른 향상된 플레이너 모드에 따른 예측 방법을 나타낸 개념도이다.
도 18은 본 발명의 실시예에 따른 플레이너 모드에 따른 예측 방법을 나타낸 개념도이다.
도 19는 본 발명의 실시예에 따른 향상된 DC 모드 예측 방법을 나타낸 개념도이다.
도 20은 본 발명의 실시예에 따른 향상된 DC 모드 예측 방법을 나타낸 개념도이다.
도 21은 본 발명의 실시예에 따른 향상된 DC 모드 예측 방법을 나타낸 개념도이다.
도 22는 본 발명의 실시예에 따른 향상된 DC 모드 예측 방법을 나타낸 개념도이다.
도 23은 본 발명의 실시예에 따른 향상된 DC 모드 예측 방법을 나타낸 개념도이다.
도 24는 본 발명의 실시예에 따른 향상된 DC 모드 예측 방법을 나타낸 개념도이다.
도 25는 본 발명의 실시예에 따른 향상된 플레이너 모드 예측 방법을 나타낸 개념도이다.
도 26은 본 발명의 실시예에 따른 제2n 좌측 참조 픽셀 또는 제2n 상단 참조 픽셀이 존재하지 않는 경우, 플레이너 모드를 수행하는 방법을 나타낸 개념도이다.1 is a block diagram illustrating an image encoding apparatus according to an embodiment of the present invention.
2 is a block diagram illustrating an image decoder according to another embodiment of the present invention.
3 illustrates a prediction unit and a reference pixel according to an embodiment of the present invention.
4 is a conceptual diagram illustrating an intra prediction method using an improved DC mode according to an embodiment of the present invention.
5 is a conceptual diagram illustrating an intra prediction method using an improved DC mode according to an embodiment of the present invention.
6 is a conceptual diagram illustrating an intra prediction method using an improved DC mode according to an embodiment of the present invention.
7 is a conceptual diagram illustrating an intra prediction method using an improved DC mode according to an embodiment of the present invention.
8 is a conceptual diagram illustrating an improved vertical intra-screen prediction method according to an embodiment of the present invention.
9 is a conceptual diagram illustrating an improved horizontal intra-screen prediction method according to an embodiment of the present invention.
10 is a conceptual diagram illustrating a method of calculating a prediction unit through the enhanced planar mode according to an embodiment of the present invention.
11 is a conceptual diagram illustrating a method of calculating a lower right pixel in an improved planar mode intra-screen prediction method according to an embodiment of the present invention.
12 is a conceptual diagram illustrating a method of calculating a lower right pixel in an improved planar mode intra-screen prediction method according to an embodiment of the present invention.
13 is a conceptual diagram illustrating a method of calculating a lower right pixel in an improved planar mode intra-screen prediction method according to an embodiment of the present invention.
14 is a conceptual diagram illustrating a method of generating a lower right pixel in an enhanced planar mode according to an embodiment of the present invention.
15 is a conceptual diagram illustrating a method of generating an n-th row and an n-th column when a planar mode is performed according to an embodiment of the present invention.
16 is a conceptual diagram illustrating a method of generating an n-th row and an n-th column when an enhanced planar mode is performed according to an embodiment of the present invention.
17 is a conceptual diagram illustrating a prediction method according to an improved planar mode according to an embodiment of the present invention.
18 is a conceptual diagram illustrating a prediction method according to a planar mode according to an embodiment of the present invention.
19 is a conceptual diagram illustrating an improved DC mode prediction method according to an embodiment of the present invention.
20 is a conceptual diagram illustrating an improved DC mode prediction method according to an embodiment of the present invention.
21 is a conceptual diagram illustrating an improved DC mode prediction method according to an embodiment of the present invention.
22 is a conceptual diagram illustrating an improved DC mode prediction method according to an embodiment of the present invention.
23 is a conceptual diagram illustrating an improved DC mode prediction method according to an embodiment of the present invention.
24 is a conceptual diagram illustrating an improved DC mode prediction method according to an embodiment of the present invention.
25 is a conceptual diagram illustrating an improved planar mode prediction method according to an embodiment of the present invention.
26 is a conceptual diagram illustrating a method of performing a planar mode when a 2n-th left reference pixel or a 2n-th upper reference pixel does not exist according to an embodiment of the present invention.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.Since the present invention can have various changes and can have various embodiments, specific embodiments are illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the present invention to specific embodiments, and it should be understood to include all modifications, equivalents and substitutes included in the spirit and scope of the present invention. In describing each figure, like reference numerals have been used for like elements.
제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.Terms such as first, second, etc. may be used to describe various elements, but the elements should not be limited by the terms. The above terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, a first component may be referred to as a second component, and similarly, a second component may also be referred to as a first component. and/or includes a combination of a plurality of related listed items or any of a plurality of related listed items.
어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어"있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어"있다거나 "직접 접속되어"있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.When a component is referred to as being “connected” or “connected” to another component, it is understood that the other component may be directly connected or connected to the other component, but other components may exist in between. it should be On the other hand, when it is mentioned that a certain element is "directly connected" or "directly connected" to another element, it should be understood that no other element is present in the middle.
본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the present application are only used to describe specific embodiments, and are not intended to limit the present invention. The singular expression includes the plural expression unless the context clearly dictates otherwise. In the present application, terms such as “comprise” or “have” are intended to designate that a feature, number, step, operation, component, part, or combination thereof described in the specification exists, but one or more other features It should be understood that this does not preclude the existence or addition of numbers, steps, operations, components, parts, or combinations thereof.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다.Hereinafter, preferred embodiments of the present invention will be described in more detail with reference to the accompanying drawings. Hereinafter, the same reference numerals are used for the same components in the drawings, and repeated descriptions of the same components are omitted.
도 1은 본 발명의 일실시예에 따른 영상 부호화 장치를 나타낸 블록도이다.1 is a block diagram illustrating an image encoding apparatus according to an embodiment of the present invention.
도 1을 참조하면, 영상 부호화 장치(100)는 픽쳐 분할부(105), 예측부(110), 변환부(115), 양자화부(120), 재정렬부(125), 엔트로피 부호화부(130), 역양자화부(135), 역변환부(140), 필터부(145) 및 메모리(150)를 포함할 수 있다.Referring to FIG. 1 , the
도 1에 나타난 각 구성부들은 영상 부호화 장치에서 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시한 것으로, 각 구성부들이 분리된 하드웨어나 하나의 소프트웨어 구성 단위로 이루어짐을 의미하지 않는다. 즉, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수개의 구성부로 나뉘어져 기능을 수행할 수 있고 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벋어나지 않는 한 본 발명의 권리범위에 포함된다.Each of the constituent units shown in FIG. 1 is independently illustrated to represent different characteristic functions in the image encoding apparatus, and does not mean that each constituent unit is composed of separate hardware or one software constituent unit. That is, each component is listed as each component for convenience of description, and at least two components of each component are combined to form one component, or one component can be divided into a plurality of components to perform a function, and each Integrated embodiments and separate embodiments of the components are also included in the scope of the present invention as long as they do not depart from the essence of the present invention.
또한, 일부의 구성 요소는 본 발명에서 본질적인 기능을 수행하는 필수적인 구성 요소는 아니고 단지 성능을 향상시키기 위한 선택적 구성 요소일 수 있다. 본 발명은 단지 성능 향상을 위해 사용되는 구성 요소를 제외한 본 발명의 본질을 구현하는데 필수적인 구성부만을 포함하여 구현될 수 있고, 단지 성능 향상을 위해 사용되는 선택적 구성 요소를 제외한 필수 구성 요소만을 포함한 구조도 본 발명의 권리범위에 포함된다.In addition, some of the components are not essential components for performing essential functions in the present invention, but may be optional components for merely improving performance. The present invention can be implemented by including only essential components to implement the essence of the present invention, except for components used for performance improvement, and a structure including only essential components excluding optional components used for performance improvement Also included in the scope of the present invention.
픽쳐 분할부(105)는 입력된 픽쳐를 적어도 하나의 처리 단위로 분할할 수 있다. 이때, 처리 단위는 예측 단위(Prediction Unit: PU)일 수도 있고, 변환 단위(Transform Unit: TU)일 수도 있으며, 부호화 단위(Coding Unit: CU)일 수도 있다. 픽쳐 분할부(105)에서는 하나의 픽쳐에 대해 복수의 부호화 단위, 예측 단위 및 변환 단위의 조합으로 분할하고 소정의 기준(예를 들어, 비용 함수)으로 하나의 부호화 단위, 예측 단위 및 변환 단위 조합을 선택하여 픽쳐를 부호화 할 수 있다.The picture divider 105 may divide the input picture into at least one processing unit. In this case, the processing unit may be a prediction unit (PU), a transform unit (TU), or a coding unit (CU). The picture splitter 105 divides one picture into a combination of a plurality of coding units, prediction units, and transformation units, and combines one coding unit, prediction unit, and transformation unit based on a predetermined criterion (eg, a cost function). can be selected to encode the picture.
예를 들어, 하나의 픽쳐는 복수개의 부호화 단위로 분할될 수 있다. 픽쳐에서 부호화 단위를 분할하기 위해서는 쿼드 트리 구조(Quad Tree Structure)와 같은 재귀적인 트리 구조를 사용할 수 있는데 하나의 영상 또는 최대 크기 부호화 단위를 루트로 하여 다른 부호화 단위로 분할되는 부호화 유닛은 분할된 부호화 단위의 개수만큼의 자식 노드를 가지고 분할될 수 있다. 일정한 제한에 따라 더이상 분할되지 않는 부호화 단위는 리프 노드가 된다. 즉, 하나의 코딩 유닛에 대하여 정방형 분할만이 가능하다고 가정하는 경우, 하나의 부호화 단위는 최대 4개의 다른 부호화 단위로 분할될 수 있다.For example, one picture may be divided into a plurality of coding units. In order to split a coding unit in a picture, a recursive tree structure such as a quad tree structure may be used. A coding unit that is split into other coding units using one image or the largest coding unit as a root is split coding. It can be divided with as many child nodes as the number of units. A coding unit that is no longer split according to certain restrictions becomes a leaf node. That is, when it is assumed that only square splitting is possible for one coding unit, one coding unit may be split into up to four different coding units.
이하, 본 발명의 실시예에서는 부호화 단위의 의미를 부호화를 하는 단위라는 의미뿐만 아니라 복호화를 하는 단위의 의미로 사용할 수 있다.Hereinafter, in an embodiment of the present invention, the meaning of a coding unit may be used not only as a unit for encoding but also as a unit for decoding.
예측 단위는 하나의 부호화 단위 내에서 동일한 크기의 적어도 하나의 정사각형 또는 직사각형 등의 형태를 가지고 분할되거나 하나의 부호화 단위 내에서 분할된 예측 단위 중 하나의 예측 단위의 형태가 다른 예측 단위의 형태와 다른 형태를 가지고 분할될 수 있다.A prediction unit has a shape such as at least one square or rectangle of the same size within one coding unit, and the shape of one prediction unit among the split prediction units within one coding unit is different from that of another prediction unit. It can be divided into shapes.
부호화 단위를 기초로 화면 내 예측을 수행하는 예측 단위를 생성시 최소 부호화 단위가 아닌 경우, 복수의 예측 단위(NxN)으로 분할하지 않고 화면 내 예측을 수행할 수 있다.When the prediction unit for performing intra prediction based on the coding unit is not the minimum coding unit, intra prediction may be performed without dividing the prediction unit into a plurality of prediction units (NxN).
예측부(110)는 화면 간 예측을 수행하는 화면 간 예측부와 화면 내 예측을 수행하는 화면 내 예측부를 포함할 수 있다. 예측 단위에 대해 화면 간 예측을 사용할 것인지 또는 화면 내 예측을 수행할 것인지를 결정하고, 각 예측 방법에 따른 구체적인 정보(예컨대, 화면 내 예측 모드, 움직임 벡터, 참조 픽쳐 등)를 결정할 수 있다. 이때, 예측이 수행되는 처리 단위와 예측 방법 및 구체적인 내용이 정해지는 처리 단위는 다를 수 있다. 예컨대, 예측의 방법과 예측 모드 등은 예측 단위로 결정되고, 예측의 수행은 변환 단위로 수행될 수도 있다. 생성된 예측 블록과 원본 블록 사이의 잔차값(잔차 블록)은 변환부(115)로 입력될 수 있다. 또한, 예측을 위해 사용한 예측 모드 정보, 움직임 벡터 정보 등은 잔차값과 함께 엔트로피 부호화부(130)에서 부호화되어 복호화기에 전달될 수 있다. 특정한 부호화 모드를 사용할 경우, 예측부(110)를 통해 예측 블록을 생성하지 않고, 원본 블록을 그대로 부호화하여 복호화부에 전송하는 것도 가능하다The
화면 간 예측부는 현재 픽쳐의 이전 픽쳐 또는 이후 픽쳐 중 적어도 하나의 픽쳐의 정보를 기초로 예측 단위를 예측할 수 있다. 화면 간 예측부는 참조 픽쳐 보간부, 움직임 예측부, 움직임 보상부가 포함할 수 있다.The inter prediction unit may predict a prediction unit based on information on at least one of a picture before or after a picture of the current picture. The inter prediction unit may include a reference picture interpolator, a motion prediction unit, and a motion compensator.
참조 픽쳐 보간부에서는 메모리(150)로부터 참조 픽쳐 정보를 제공받고 참조 픽쳐에서 정수 화소 이하의 화소 정보를 생성할 수 있다. 휘도 화소의 경우, 1/4 화소 단위로 정수 화소 이하의 화소 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 8탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다. 색차 신호의 경우 1/8 화소 단위로 정수 화소 이하의 화소 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 4탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다.The reference picture interpolator may receive reference picture information from the
움직임 예측부는 참조 픽쳐 보간부에 의해 보간된 참조 픽쳐를 기초로 움직임 예측을 수행할 수 있다. 움직임 벡터를 산출하기 위한 방법으로 FBMA(Full search-based Block Matching Algorithm), TSS(Three Step Search), NTS(New Three-Step Search Algorithm) 등 다양한 방법이 사용될 수 있다. 움직임 벡터는 보간된 화소를 기초로 1/2 또는 1/4 화소 단위의 움직임 벡터값을 가질 수 있다. 움직임 예측부에서는 움직임 예측 방법을 다르게 하여 현재 예측 단위를 예측할 수 있다. 움직임 예측 방법으로 스킵(Skip) 방법, 머지(Merge) 방법, AMVP(Advanced Motion Vector Prediction)방법 등 다양한 방법이 사용될 수 있다.The motion prediction unit may perform motion prediction based on the reference picture interpolated by the reference picture interpolator. As a method for calculating the motion vector, various methods such as Full search-based Block Matching Algorithm (FBMA), Three Step Search (TSS), and New Three-Step Search Algorithm (NTS) may be used. The motion vector may have a motion vector value of 1/2 or 1/4 pixel unit based on the interpolated pixel. The motion prediction unit may predict the current prediction unit by using a different motion prediction method. As the motion prediction method, various methods such as a skip method, a merge method, and an AMVP (Advanced Motion Vector Prediction) method may be used.
이하, 본 발명의 실시예에서는 AMVP 방법을 사용하여 화면 간 예측을 수행시 후보 예측 움직임 벡터 리스트를 구성하는 방법에 대해 개시한다.Hereinafter, in an embodiment of the present invention, a method of constructing a candidate prediction motion vector list when performing inter prediction using the AMVP method is disclosed.
화면 내 예측부는 현재 픽쳐 내의 화소 정보인 현재 블록 주변의 참조 픽셀정보를 기초로 예측 단위를 생성할 수 있다. 현재 예측 단위의 주변 블록이 화면 간 예측을 수행한 블록이어서, 참조 픽셀이 화면 간 예측을 수행한 픽셀일 경우, 화면 간 예측을 수행한 블록에 포함되는 참조 픽셀을 주변의 화면 내 예측을 수행한 블록의 참조 픽셀 정보로 대체하여 사용할 수 있다. 즉, 참조 픽셀이 가용하지 않는 경우, 가용하지 않은 참조 픽셀 정보를 가용한 참조 픽셀 중 적어도 하나의 참조 픽셀로 대체하여 사용할 수 있다.The intra prediction unit may generate a prediction unit based on reference pixel information around the current block, which is pixel information in the current picture. If the neighboring block of the current prediction unit is a block on which inter prediction is performed, and thus the reference pixel is a pixel on which inter prediction is performed, the reference pixel included in the block on which the inter prediction is performed is subjected to intra prediction. It can be used by replacing the reference pixel information of the block. That is, when the reference pixel is not available, the unavailable reference pixel information may be replaced with at least one reference pixel among the available reference pixels.
화면 내 예측에서 예측 모드는 참조 픽셀 정보를 예측 방향에 따라 사용하는 방향성 예측 모드와 예측을 수행시 방향성 정보을 사용하지 않는 비 방향성 모드를 가질 수 있다. 휘도 정보를 예측하기 위한 모드와 색차 정보를 예측하기 위한 모드가 상이할 수 있고, 색차 정보를 예측하기 위해 휘도 정보를 예측한 화면 내 예측 모드 정보 또는 예측된 휘도 신호 정보를 활용할 수 있다.In intra prediction, the prediction mode may have a directional prediction mode in which reference pixel information is used according to a prediction direction and a non-directional mode in which directional information is not used when prediction is performed. A mode for predicting luminance information may be different from a mode for predicting chrominance information, and to predict color difference information, information on an intra prediction mode from which the luminance information is predicted or information on a predicted luminance signal may be used.
화면 내 예측을 수행시 예측 단위의 크기와 변환 단위의 크기가 동일할 경우, 예측 단위의 좌측에 존재하는 픽셀, 좌측 상단에 존재하는 픽셀, 상단에 존재하는 픽셀을 기초로 예측 단위에 대한 화면 내 예측을 수행하지만, 화면 내 예측을 수행시 예측 단위의 크기와 변환 단위의 크기가 상이할 경우, 변환 단위를 기초로 한 참조 픽셀을 이용하여 화면 내 예측을 수행할 수 있다. 또한, 최소 부호화 단위에 대해서만 NxN 분할을 사용하는 화면 내 예측을 사용할 수 있다.If the size of the prediction unit and the size of the transformation unit are the same when performing in-screen prediction, the prediction unit for the prediction unit is based on the pixel on the left, the pixel on the upper left, and the pixel on the top of the prediction unit. Although prediction is performed, when the size of the prediction unit is different from the size of the transformation unit when intra prediction is performed, the intra prediction may be performed using a reference pixel based on the transformation unit. In addition, intra prediction using NxN splitting may be used only for the smallest coding unit.
화면 내 예측 방법은 예측 모드에 따라 참조 화소에 MDIS(Mode Dependent Intra Smoothing) 필터를 적용한 후 예측 블록을 생성할 수 있다. 참조 화소에 적용되는 MDIS 필터의 종류는 상이할 수 있다. 화면 내 예측 방법을 수행하기 위해 현재 예측 단위의 화면 내 예측 모드는 현재 예측 단위의 주변에 존재하는 예측 단위의 화면 내 예측 모드로부터 예측할 수 있다. 주변 예측 단위로부터 예측된 모드 정보를 이용하여 현재 예측 단위의 예측 모드를 예측하는 경우, 현재 예측 단위와 주변 예측 단위의 화면 내 예측 모드가 동일할 경우, 소정의 플래그 정보를 이용하여 현재 예측 단위와 주변 예측 단위의 예측 모드가 동일하다는 정보를 전송할 수 있고, 만약, 현재 예측 단위와 주변 예측 단위의 예측 모드가 상이할 경우, 엔트로피 부호화를 수행하여 현재 블록의 예측 모드 정보를 부호화할 수 있다.The intra prediction method may generate a prediction block after applying a Mode Dependent Intra Smoothing (MDIS) filter to a reference pixel according to a prediction mode. The type of MDIS filter applied to the reference pixel may be different. In order to perform the intra prediction method, the intra prediction mode of the current prediction unit may be predicted from the intra prediction mode of the prediction unit existing around the current prediction unit. When predicting the prediction mode of the current prediction unit using the mode information predicted from the neighboring prediction unit, when the intra-screen prediction mode of the current prediction unit and the neighboring prediction unit are the same, the current prediction unit and the current prediction unit using predetermined flag information Information that the prediction modes of the neighboring prediction units are the same may be transmitted, and if the prediction modes of the current prediction unit and the neighboring prediction units are different, entropy encoding may be performed to encode the prediction mode information of the current block.
또한, 예측부(110)에서 생성된 예측 단위을 기초로 예측을 수행한 예측 단위와 예측 단위의 원본 블록과 차이값인 잔차값(Residual) 정보를 포함하는 잔차 블록이 생성될 수 있다. 생성된 잔차 블록은 변환부(115)로 입력될 수 있다. 변환부(115)에서는 원본 블록과 예측부(110)를 통해 생성된 예측 단위의 잔차값(residual) 정보를 포함한 잔차 블록을 DCT(Discrete Cosine Transform) 또는 DST(Discrete Sine Transform)와 같은 변환 방법을 사용하여 변환시킬 수 있다. 잔차 블록을 변환하기 위해 DCT를 적용할지 DST를 적용할지는 잔차 블록을 생성하기 위해 사용된 예측 단위의 화면 내 예측 모드 정보를 기초로 결정할 수 있다.In addition, a residual block including residual information, which is a difference value between a prediction unit and an original block of the prediction unit, in which prediction is performed based on the prediction unit generated by the
양자화부(120)는 변환부(115)에서 주파수 영역으로 변환된 값들을 양자화할 수 있다. 블록에 따라 또는 영상의 중요도에 따라 양자화 계수는 변할 수 있다. 양자화부(120)에서 산출된 값은 역양자화부(135)와 재정렬부(125)에 제공될 수 있다.The
재정렬부(125)는 양자화된 잔차값에 대해 계수값의 재정렬을 수행할 수 있다.The
재정렬부(125)는 계수 스캐닝(Coefficient Scanning) 방법을 통해 2차원의 블록 형태 계수를 1차원의 벡터 형태로 변경할 수 있다. 예를 들어, 재정렬부(125)에서는 지그재그 스캔(Zig-Zag Scan)방법을 이용하여 DC 계수부터 고주파수 영역의 계수까지 스캔하여 1차원 벡터 형태로 변경시킬 수 있다. 변환 단위의 크기 및 화면 내 예측 모드에 따라 지그 재그 스캔 방법이 아닌 2차원의 블록 형태 계수를 열 방향으로 스캔하는 수직 스캔 방법, 2차원의 블록 형태 계수를 행 방향으로 스캔하는 수평 스캔 방법이 사용될 수 있다. 즉, 변환 단위의 크기 및 화면 내 예측 모드에 따라 지그재그 스캔, 수직 방향 스캔 및 수평 방향 스캔 중 어떠한 스캔 방법이 사용될지 여부를 결정할 수 있다.The
엔트로피 부호화부(130)는 재정렬부(125)에 의해 산출된 값들을 기초로 엔트로피 부호화를 수행할 수 있다. 엔트로피 부호화는 예를 들어, 지수 골롬(Exponential Golomb), VLC(Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 부호화 방법을 사용할 수 있다.The
엔트로피 부호화부(130)는 재정렬부(125) 및 예측부(110)로부터 부호화 단위의 잔차값 계수 정보 및 블록 타입 정보, 예측 모드 정보, 분할 단위 정보, 예측 단위 정보 및 전송 단위 정보, 움직임 벡터 정보, 참조 프레임 정보, 블록의 보간 정보, 필터링 정보 등 다양한 정보를 부호화할 수 있다.The
엔트로피 부호화부(130)에서는 재정렬부(125)에서 입력된 부호화 단위의 계수값을 엔트로피 부호화할 수 있다.The
역양자화부(135) 및 역변환부(140)에서는 양자화부(120)에서 양자화된 값들을 역양자화하고 변환부(115)에서 변환된 값들을 역변환한다. 역양자화부(135) 및 역변환부(140)에서 생성된 잔차값(Residual)은 예측부(110)에 포함된 움직임 추정부, 움직임 보상부 및 인트라 예측부를 통해서 예측된 예측 단위와 합쳐져 복원 블록(Reconstructed Block)을 생성할 수 있다.The
필터부(145)는 디블록킹 필터, 오프셋 보정부, ALF(Adaptive Loop Filter)중 적어도 하나를 포함할 수 있다.The
디블록킹 필터(145)는 복원된 픽쳐에서 블록간의 경계로 인해 생긴 블록 왜곡을 제거할 수 있다. 디블록킹을 수행할지 여부를 판단하기 위해 블록에 포함된 몇 개의 열 또는 행에 포함된 픽셀을 기초로 현재 블록에 디블록킹 필터 적용할지 여부를 판단할 수 있다. 블록에 디블록킹 필터를 적용하는 경우 필요한 디블록킹 필터링 강도에 따라 강한 필터(Strong Filter) 또는 약한 필터(Weak Filter)를 적용할 수 있다. 또한 디블록킹 필터를 적용함에 있어 수직 필터링 및 수평 필터링을 수행시 수평 방향 필터링 및 수직 방향 필터링이 병행 처리되도록 할 수 있다.The
오프셋 보정부는 디블록킹을 수행한 영상에 대해 픽셀 단위로 원본 영상과의 오프셋을 보정할 수 있다. 특정 픽쳐에 대한 오프셋 보정을 수행하기 위해 영상에 포함된 픽셀을 일정한 수의 영역으로 구분한 후 오프셋을 수행할 영역을 결정하고 해당 영역에 오프셋을 적용하는 방법 또는 각 픽셀의 에지 정보를 고려하여 오프셋을 적용하는 방법을 사용할 수 있다.The offset correcting unit may correct an offset from the original image in units of pixels with respect to the image on which the deblocking has been performed. In order to perform offset correction on a specific picture, a method of dividing pixels included in an image into a certain number of regions, determining the region to be offset and applying the offset to the region, or taking edge information of each pixel into consideration can be used to apply
ALF (Adaptive Loop Filter)는 필터링한 복원 영상과 원래의 영상을 비교한 값을 기초로 필터링을 수행할 수 있다. 영상에 포함된 픽셀을 소정의 그룹으로 나눈 후 해당 그룹에 적용될 하나의 필터를 결정하여 그룹마다 차별적으로 필터링을 수행할 수 있다. ALF를 적용할지 여부에 관련된 정보는 휘도 신호는 부호화 단위(Coding Unit, CU) 별로 전송될 수 있고, 각각의 블록에 따라 적용될 ALF의 크기 및 계수는 달라질 수 있다. ALF는 다양한 형태를 가질 수 있으며, 필터에 그에 따라 포함되는 계수의 갯수도 달라질 수 있다. 이러한 ALF의 필터링 관련 정보(필터 계수 정보, ALF On/Off 정보, 필터 형태 정보)는 비트스트림에서 소정의 파라메터 셋에 포함되어 전송될 수 있다.An adaptive loop filter (ALF) may perform filtering based on a value obtained by comparing the filtered reconstructed image and the original image. After dividing the pixels included in the image into a predetermined group, one filter to be applied to the corresponding group is determined, and filtering can be performed differentially for each group. As for information related to whether to apply the ALF, the luminance signal may be transmitted for each coding unit (CU), and the size and coefficient of the ALF to be applied may vary according to each block. The ALF may have various forms, and the number of coefficients included according to the filter may also vary. Such ALF filtering-related information (filter coefficient information, ALF On/Off information, filter type information) may be transmitted while being included in a predetermined parameter set in the bitstream.
메모리(150)는 필터부(145)를 통해 산출된 복원 블록 또는 픽쳐를 저장할 수 있고, 저장된 복원 블록 또는 픽쳐는 화면 간 예측을 수행 시 예측부(110)에 제공될 수 있다.The
도 2는 본 발명의 다른 실시예에 따른 영상 복호화기를 나타낸 블록도이다.2 is a block diagram illustrating an image decoder according to another embodiment of the present invention.
도 2를 참조하면, 영상 복호화기(200)는 엔트로피 복호화부(2110), 재정렬부(215), 역양자화부(220), 역변환부(225), 예측부(230), 필터부(235), 메모리(240)가 포함될 수 있다.Referring to FIG. 2 , the
영상 부호화기에서 영상 비트스트림이 입력된 경우, 입력된 비트스트림은 영상 부호화기와 반대의 절차로 복호화될 수 있다.When an image bitstream is input from an image encoder, the input bitstream may be decoded by a procedure opposite to that of the image encoder.
엔트로피 복호화부(210)는 영상 부호화기의 엔트로피 부호화부에서 엔트로피 부호화를 수행한 것과 반대의 절차로 엔트로피 복호화를 수행할 수 있고 엔트로피 복호화부에서 엔트로피 복호화를 수행한 잔차값은 재정렬부(215)로 입력될 수 있다.The
엔트로피 복호화부(210)에서는 부호화기에서 수행된 화면 내 예측 및 화면 간 예측에 관련된 정보를 복호화할 수 있다. 전술한 바와 같이 영상 부호화기에서 화면 내 예측 및 화면 간 예측을 수행시 소정의 제약이 있는 경우, 이러한 제약을 기초로 한 엔트로피 복호화를 수행해 현재 블록에 대한 화면 내 예측 및 화면 간 예측에 관련된 정보를 제공받을 수 있다.The
재정렬부(215)는 엔트로피 복호화부(210)에서 엔트로피 복호화된 비트스트림을 부호화부에서 재정렬한 방법을 기초로 재정렬을 수행할 수 있다. 1차원 벡터 형태로 표현된 계수들을 다시 2차원의 블록 형태의 계수로 복원하여 재정렬할 수 있다. 재정렬부에서는 부호화부에서 수행된 계수 스캐닝에 관련된 정보를 제공받고 해당 부호화부에서 수행된 스캐닝 순서에 기초하여 역으로 스캐닝하는 방법을 통해 재정렬을 수행할 수 있다.The
역양자화부(220)는 부호화기에서 제공된 양자화 파라미터와 재정렬된 블록의 계수값을 기초로 역양자화를 수행할 수 있다.The
역변환부(225)는 영상 부호화기에서 수행한 양자화 결과에 대해 변환부에서 수행한 DCT 및 DST에 대해 역DCT 및 역 DST를 수행할 수 있다. 역변환은 영상 부호화기에서 결정된 전송 단위를 기초로 수행될 수 있다. 영상 부호화기의 변환부에서는 DCT와 DST는 예측 방법, 현재 블록의 크기 및 예측 방향 등 복수의 정보에 따라 선택적으로 수행될 수 있고, 영상 복호화기의 역변환부(225)에서는 영상 부호화기의 변환부에서 수행된 변환 정보를 기초로 역변환을 수행할 수 있다.The
변환을 수행시 변환 단위가 아닌 부호화 단위를 기준으로 변환을 수행할 수 있다.When performing the transformation, the transformation may be performed based on the coding unit instead of the transformation unit.
예측부(230)는 엔트로피 복호화부(210)에서 제공된 예측 블록 생성 관련 정보와 메모리(240)에서 제공된 이전에 복호화된 블록 또는 픽쳐 정보를 기초로 예측 블록을 생성할 수 있다.The
전술한 바와 같이 영상 부호화기에서의 동작과 동일하게 화면 내 예측을 수행시 예측 단위의 크기와 변환 단위의 크기가 동일할 경우, 예측 단위의 좌측에 존재하는 픽셀, 좌측 상단에 존재하는 픽셀, 상단에 존재하는 픽셀을 기초로 예측 단위에 대한 화면 내 예측을 수행하지만, 화면 내 예측을 수행시 예측 단위의 크기와 변환 단위의 크기가 상이할 경우, 변환 단위를 기초로 한 참조 픽셀을 이용하여 화면 내 예측을 수행할 수 있다. 또한, 최소 부호화 단위에 대해서만 NxN 분할을 사용하는 화면 내 예측을 사용할 수 있다.As described above, when the size of the prediction unit and the size of the transformation unit are the same when intra prediction is performed in the same manner as in the operation in the image encoder, the pixel present on the left side of the prediction unit, the pixel present on the upper left side, and the upper In-screen prediction of the prediction unit is performed based on the existing pixel, but when the size of the prediction unit and the size of the transformation unit are different when performing intra prediction, the reference pixel based on the transformation unit is used in the screen prediction can be made. In addition, intra prediction using NxN splitting may be used only for the smallest coding unit.
예측부(230)는 예측 단위 판별부, 화면 간 예측부 및 화면 내 예측부를 포함할 수 있다. 예측 단위 판별부는 엔트로피 복호화부에서 입력되는 예측 단위 정보, 화면 내 예측 방법의 예측 모드 정보, 화면 간 예측 방법의 움직임 예측 관련 정보 등 다양한 정보를 입력 받고 현재 부호화 단위에서 예측 단위를 구분하고, 예측 단위가 화면 간 예측을 수행하는지 아니면 화면 내 예측을 수행하는지 여부를 판별할 수 있다. 화면 간 예측부는 영상 부호화기에서 제공된 현재 예측 단위의 화면 간 예측에 필요한 정보를 이용해 현재 예측 단위가 포함된 현재 픽쳐의 이전 픽쳐 또는 이후 픽쳐 중 적어도 하나의 픽쳐에 포함된 정보를 기초로 현재 예측 단위에 대한 화면 간 예측을 수행할 수 있다.The
화면 간 예측을 수행하기 위해 부호화 단위를 기준으로 해당 부호화 단위에 포함된 예측 단위의 움직임 예측 방법이 스킵 모드(Skip Mode), 머지 모드(Merge 모드), AMVP 모드(AMVP Mode) 중 어떠한 방법인지 여부를 판단할 수 있다.Whether a method of predicting a motion of a prediction unit included in a corresponding coding unit based on a coding unit to perform inter prediction is a skip mode, a merge mode, or an AMVP mode can be judged
이하, 본 발명의 실시예에서는 AMVP 방법을 사용하여 화면 간 예측을 수행시 후보 예측 움직임 벡터 리스트를 구성하는 방법에 대해 개시한다.Hereinafter, in an embodiment of the present invention, a method of constructing a candidate prediction motion vector list when performing inter prediction using the AMVP method is disclosed.
화면 내 예측부는 현재 픽쳐 내의 화소 정보를 기초로 예측 블록을 생성할 수 있다. 예측 단위가 화면 내 예측을 수행한 예측 단위인 경우, 영상 부호화기에서 제공된 예측 단위의 화면 내 예측 모드 정보를 기초로 화면 내 예측을 수행할 수 있다. 화면 내 예측부에는 MDIS 필터, 참조 화소 보간부, DC 필터를 포함할 수 있다. MDIS 필터는 현재 블록의 참조 화소에 필터링을 수행하는 부분으로써 현재 예측 단위의 예측 모드에 따라 필터의 적용 여부를 결정하여 적용할 수 있다. 영상 부호화기에서 제공된 예측 단위의 예측 모드 및 MDIS 필터 정보를 이용하여 현재 블록의 참조 화소에 MDIS 필터링을 수행할 수 있다. 현재 블록의 예측 모드가 MDIS 필터링을 수행하지 않는 모드일 경우, MDIS 필터는 적용되지 않을 수 있다.The intra prediction unit may generate a prediction block based on pixel information in the current picture. When the prediction unit is a prediction unit on which intra prediction is performed, intra prediction may be performed based on intra prediction mode information of the prediction unit provided from the image encoder. The intra prediction unit may include an MDIS filter, a reference pixel interpolator, and a DC filter. The MDIS filter is a part that performs filtering on the reference pixel of the current block, and can be applied by determining whether to apply the filter according to the prediction mode of the current prediction unit. MDIS filtering may be performed on the reference pixel of the current block by using the prediction mode and MDIS filter information of the prediction unit provided by the image encoder. When the prediction mode of the current block is a mode in which MDIS filtering is not performed, the MDIS filter may not be applied.
참조 화소 보간부는 예측 단위의 예측 모드가 참조 화소를 보간한 화소값을 기초로 화면 내 예측을 수행하는 예측 단위일 경우, 참조 화소를 보간하여 정수값 이하의 화소 단위의 참조 화소을 생성할 수 있다. 현재 예측 단위의 예측 모드가 참조 화소를 보간하지 않고 예측 블록을 생성하는 예측 모드일 경우 참조 화소는 보간되지 않을 수 있다. DC 필터는 현재 블록의 예측 모드가 DC 모드일 경우 필터링을 통해서 예측 블록을 생성할 수 있다.When the prediction mode of the prediction unit is a prediction unit in which intra prediction is performed based on a pixel value obtained by interpolating the reference pixel, the reference pixel interpolator may interpolate the reference pixel to generate a reference pixel of a pixel unit having an integer value or less. When the prediction mode of the current prediction unit is a prediction mode that generates a prediction block without interpolating the reference pixel, the reference pixel may not be interpolated. The DC filter may generate the prediction block through filtering when the prediction mode of the current block is the DC mode.
복원된 블록 또는 픽쳐는 필터부(235)로 제공될 수 있다. 필터부(235)는 디블록킹 필터, 오프셋 보정부, ALF를 포함할 수 있다.The reconstructed block or picture may be provided to the
영상 부호화기로부터 해당 블록 또는 픽쳐에 디블록킹 필터를 적용하였는지 여부에 대한 정보 및 디블록킹 필터를 적용하였을 경우, 강한 필터를 적용하였는지 또는 약한 필터를 적용하였는지에 대한 정보를 제공받을 수 있다. 영상 복호화기의 디블록킹 필터에서는 영상 부호화기에서 제공된 디블록킹 필터 관련 정보를 제공받고 영상 복호화기에서 해당 블록에 대한 디블록킹 필터링을 수행할 수 있다. 영상 부호화기에서와 마찬가지로 우선 수직 디블록킹 필터링 및 수평 디블록킹 필터링을 수행하되, 겹치는 부분에 있어서는 수직 디블록킹 및 수평 디블록킹 중 적어도 하나를 수행할 수 있다. 수직 디블록킹 필터링 및 수평 디블록킹 필터링이 겹치는 부분에서 이전에 수행되지 못한 수직 디블록킹 필터링 또는 수평 디블록킹 필터링이 수행될 수 있다. 이러한 디블록킹 필터링 과정을 통해서 디블록킹 필터링의 병행 처리(Parallel Processing)이 가능하다.Information on whether a deblocking filter is applied to the corresponding block or picture and information on whether a strong filter or a weak filter is applied when the deblocking filter is applied may be provided from the video encoder. The deblocking filter of the image decoder may receive deblocking filter-related information provided from the image encoder, and the image decoder may perform deblocking filtering on the corresponding block. As in the video encoder, vertical deblocking filtering and horizontal deblocking filtering are first performed, but at least one of vertical deblocking and horizontal deblocking may be performed on an overlapping portion. In a portion where vertical deblocking filtering and horizontal deblocking filtering overlap, vertical deblocking filtering or horizontal deblocking filtering that has not been previously performed may be performed. Parallel processing of deblocking filtering is possible through this deblocking filtering process.
오프셋 보정부는 부호화시 영상에 적용된 오프셋 보정의 종류 및 오프셋 값정보 등을 기초로 복원된 영상에 오프셋 보정을 수행할 수 있다.The offset correction unit may perform offset correction on the reconstructed image based on the type of offset correction applied to the image during encoding, offset value information, and the like.
ALF는 필터링을 수행 후 복원된 영상과 원래의 영상을 비교한 값을 기초로 필터링을 수행할 수 있다. 부호화기로부터 제공된 ALF 적용 여부 정보, ALF 계수 정보 등을 기초로 부호화 단위에 ALF를 적용할 수 있다. 이러한 ALF 정보는 특정한 파라메터 셋에 포함되어 제공될 수 있다.The ALF may perform filtering based on a value obtained by comparing the reconstructed image and the original image after filtering. ALF may be applied to a coding unit based on information on whether ALF is applied or not, ALF coefficient information, etc. provided from the encoder. Such ALF information may be provided by being included in a specific parameter set.
메모리(240)는 복원된 픽쳐 또는 블록을 저장하여 참조 픽쳐 또는 참조 블록으로 사용할 수 있도록 할 수 있고 또한 복원된 픽쳐를 출력부로 제공할 수 있다.The
전술한 바와 같이 이하, 본 발명의 실시예에서는 설명의 편의상 코딩 유닛(Coding Unit)을 부호화 단위라는 용어로 사용하지만, 부호화 뿐만 아니라 복호화를 수행하는 단위가 될 수도 있다.As described above, hereinafter, in the embodiment of the present invention, a coding unit is used as a term for a coding unit for convenience of description, but it may also be a unit for performing decoding as well as coding.
또한, 이하, 본 발명의 실시예에서 후술할 영상 부호화 방법 및 영상 복호화 방법은 도 1 및 도 2에서 전술한 영상 부호화기 및 영상 복호화기에 포함된 각 구성부에서 수행될 수 있다. 구성부의 의미는 하드웨어적인 의미 뿐만 아니라 알고리즘을 통해 수행될 수 있는 소프트웨어적인 처리 단위도 포함할 수 있다.Also, an image encoding method and an image decoding method, which will be described later in an embodiment of the present invention, may be performed by each component included in the image encoder and image decoder described above with reference to FIGS. 1 and 2 . The meaning of the constituent part may include not only a hardware meaning but also a software processing unit that may be performed through an algorithm.
이하, 본 발명의 실시예에 따른 화면 내 예측 방법은 기존의 화면 내 예측 방법 대신 사용되거나, 플래그 정보를 기초로 기존의 화면 내 예측 모드와 선택적으로 사용될 수 있다. 이하, 본 발명의 실시예에 따른 화면 내 예측 모드를 향상된 화면 내 예측 모드(Advanced Intra Prediction, AIP)라고 할 수 있는데, 향상된 화면 내 예측 모드(AIP)를 수행하여 예측을 할지 아니면, 향상된 화면 내 예측 모드(AIP)가 아닌 일반 예측 방법을 사용하여 예측할지 여부에 대한 정보인 advanced_intra_pred_flag 정보를 SPS(Sequence Parameter Set) 또는 PPS(Picture Parameter Set) 또는 슬라이스 헤더와 같은 일정한 상위 신택스 구조에 포함하여 전송할 수 있다. AIP 모드는 휘도 신호 또는 색차 신호에 대하여 각각 전송될 수 있고, 휘도 신호의 경우, advanced_intra_pred_flag를 통해서, 색차 신호의 경우, advanced_intra_pred_chroma_flag를 통하여 전송될 수 있다.Hereinafter, the intra prediction method according to an embodiment of the present invention may be used instead of the existing intra prediction method or may be selectively used with the existing intra prediction mode based on flag information. Hereinafter, the intra prediction mode according to the embodiment of the present invention may be referred to as an advanced intra prediction mode (AIP). Advanced_intra_pred_flag information, which is information on whether to predict using a general prediction method other than the prediction mode (AIP), can be transmitted by being included in a sequence parameter set (SPS) or picture parameter set (PPS) or a constant higher syntax structure such as a slice header. have. The AIP mode may be transmitted for a luminance signal or a chrominance signal, respectively, for a luminance signal, through advanced_intra_pred_flag, and for a chrominance signal, through advanced_intra_pred_chroma_flag.
도 3은 본 발명의 실시예에 따른 예측 단위와 참조 픽셀을 나타낸 것이다.3 illustrates a prediction unit and a reference pixel according to an embodiment of the present invention.
도 3을 참조하면, 이하, 본 발명의 실시예에서 참조 픽셀은 상단 참조 픽셀(300), 상단 좌측 참조 픽셀(310), 좌측 참조 픽셀(320)로 분류되어 표현될 수 있다.Referring to FIG. 3 , hereinafter, in an embodiment of the present invention, a reference pixel may be classified into an
블록의 크기가 nxn 크기여서 상단 참조 픽셀이 n 개인 경우, 상단 참조 픽셀 중 첫번째 위치한 참조 픽셀은 제1 상단 참조 픽셀, 가장 우측에 있는 픽셀을 제n 상단 참조 픽셀이라고 할 수 있고, 좌측 참조 픽셀 중 가장 상단에 있는 픽셀을 제1 좌측 참조 픽셀, 가장 하단에 있는 픽셀을 제n 좌측 참조 픽셀이라고 할 수 있다. 이러한 방법으로 순차적으로 제n 상단 참조 픽셀의 바로 오른쪽에 위치한 n+1 번째 픽셀을 제n+1 상단 참조 픽셀(330)이라고 하고 2n 번째 위치한 픽셀을 제2n 상단 참조 픽셀(340)이라고 한다. 동일하게, 제n 좌측 참조 픽셀의 바로 아래쪽에 위치한 n+1 번째 픽셀을 제n+1 좌측 참조 픽셀(350)이라고 하고 2n 번째 위치한 픽셀을 제2n 하단 참조 픽셀(360)이라고 한다.If the size of the block is nxn and the number of upper reference pixels is n, the first reference pixel among the upper reference pixels is the first upper reference pixel, the rightmost pixel is the nth upper reference pixel, and among the left reference pixels The uppermost pixel may be referred to as a first left reference pixel, and the lowermost pixel may be referred to as an nth left reference pixel. In this way, the n+1-th pixel sequentially located immediately to the right of the n-th upper reference pixel is referred to as an n+1-th
예측 단위는 픽셀을 포함하고 있는 행과 열을 기준으로 각각의 열과 행을 제1행부터 제n행, 제1열부터 제n열이라고 표현할 수 있다.The prediction unit may be expressed as a first row to an n-th row and a first column to an n-th column for each column and row based on the row and column including the pixel.
도 4는 본 발명의 실시예에 따른 향상된 DC 모드를 이용한 화면 내 예측 방법을 나타낸 개념도이다.4 is a conceptual diagram illustrating an intra prediction method using an improved DC mode according to an embodiment of the present invention.
도 4를 참조하면, DC 모드를 이용하여 화면 내 예측을 수행하기 위해서는 하단 우측 픽셀(410)을 DC 예측값으로 설정한다(400).Referring to FIG. 4 , in order to perform intra prediction using the DC mode, the lower
예측 단위의 상단 참조 픽셀과 좌측 참조 픽셀, 상단 좌측 픽셀의 평균값을 이용하여 DC 예측값을 산출할 수 있고 이 값을 하단 우측 픽셀(410)의 예측값으로 사용할 수 있다.A DC prediction value may be calculated using the average value of the upper reference pixel, the left reference pixel, and the upper left pixel of the prediction unit, and this value may be used as the predicted value of the lower
하단 우측 픽셀(410)과 제n 상단 참조 픽셀(423)을 사용하여 제n 열의 예측값을 산출하고 하단 우측 픽셀(410)과 제n 좌측 참조 픽셀(426)을 사용하여 제n 행의 예측값을 산출할 수 있다(420).The predicted value of the nth column is calculated using the lower
양방향 선형 예측을 수행하여 제n 행과 제n 열을 제외한 나머지 예측 단위에 포함된 픽셀의 예측값을 산출한다(440).Bidirectional linear prediction is performed to calculate prediction values of pixels included in the remaining prediction units except for the n-th row and the n-th column ( 440 ).
즉, 제n 행과 제n 열을 제외한 나머지 예측 단위에 포함된 픽셀은 수직 방향 위에 위치한 상단 참조 픽셀(445)과 수평 방향 아래에 위치하는 제n 행의 픽셀(450)과 수평 방향 왼쪽으로 좌측 참조 픽셀(455)과 수평 방향 오른쪽으로 제n 열의 픽셀(460)에 대해 선형 예측을 수행하여 픽셀의 예측값을 생성할 수 있다.That is, pixels included in the remaining prediction units except for the nth row and the nth column are the
도 5는 본 발명의 실시예에 따른 향상된 DC 모드를 이용한 화면 내 예측 방법을 나타낸 개념도이다.5 is a conceptual diagram illustrating an intra prediction method using an improved DC mode according to an embodiment of the present invention.
도 5를 참조하면, 상단 좌측 참조 픽셀(505), 제n 상단 참조 픽셀(510), 제n 좌측 참조 픽셀(515)의 평균을 이용하여 하단 우측 픽셀(520)을 생성한다(500).Referring to FIG. 5 , a lower
생성된 하단 우측 픽셀(520)과 제n 상단 참조 픽셀(525)을 보간하여 제n 열에 포함된 픽셀(530)의 예측값을 생성하고 생성된 하단 우측 픽셀(520)과 제n 좌측 참조 픽셀(535)을 보간하여 제n 행에 포함된 픽셀(537)의 예측값을 생성한다(540).The generated lower
선형 보간을 수행하여 거리에 따라 하단 우측 픽셀(520)과 제n 상단 우측 참조 픽셀(525)에 각각 일정한 가중치를 주어 제n 열에 포함된 픽셀의 예측값을 생성할 수 있고 마찬가지로 하단 우측 픽셀(520)과 제n 좌측 하단 참조 픽셀(535)을 보간하여 제n 행에 포함된 픽셀의 예측값을 생성할 수 있다.By performing linear interpolation, a predicted value of the pixel included in the n-th column can be generated by giving a constant weight to the lower-
수직 상단 방향에 위치한 상단 참조 픽셀(545), 좌측 참조 픽셀(550)과 생성된 제n 행에 포함된 픽셀(555)의 예측값과 제n 열에 포함된 픽셀(557)의 예측값을 기초로 양방향 선형 예측을 수행하여 제n 행과 제n 열을 제외한 나머지 예측 단위에 포함된 픽셀의 예측값을 예측한다(560).Based on the predicted values of the
도 6은 본 발명의 실시예에 따른 향상된 DC 모드를 이용한 화면 내 예측 방법을 나타낸 개념도이다.6 is a conceptual diagram illustrating an intra prediction method using an improved DC mode according to an embodiment of the present invention.
도 6을 참조하면, 하단 우측 픽셀을 DC 예측값으로 설정한다(600).Referring to FIG. 6 , the lower right pixel is set as a DC prediction value ( 600 ).
하단 우측 픽셀(610)은 상단 참조 픽셀, 좌측 참조 픽셀, 상단 좌측 픽셀의 평균값을 산출하여 DC 예측값을 생성할 수 있다.The lower
제n 상단 참조 픽셀(615)과 하단 우측 픽셀(610)을 보간하여 제n 열에 포함된 픽셀의 예측값을 생성하고 제n 좌측 참조 픽셀(617)과 하단 우측 참조 픽셀(610)을 보간하여 제n 행에 포함된 픽셀의 예측값을 생성할 수 있다(620).The nth
사선 방향에 존재하는 참조 픽셀값과 예측된 제n 행 및 제n 열의 픽셀값을 기초로 제n 행과 제n 열을 제외한 나머지 예측 단위에 포함된 픽셀의 예측값을 생성한다(640).Predicted values of pixels included in the remaining prediction units except for the nth row and nth column are generated based on the reference pixel values existing in the diagonal direction and the predicted pixel values of the nth row and nth column ( 640 ).
존재하는 참조 픽셀값과 예측된 제n 행 및 제n 열의 픽셀값 중 사선 방향으로 상단 우측에 존재하는 하나의 픽셀과 하단 좌측에 존재하는 하나의 픽셀값을 이용한 선형 보간을 수행하여 제n 행과 제n 열을 제외한 예측 단위에 포함된 나머지 픽셀의 제1 예측값을 생성할 수 있다.Linear interpolation is performed using the existing reference pixel value and the predicted pixel values of the n-th row and the n-th column by performing linear interpolation using one pixel at the upper right and one pixel at the lower left in the oblique direction. A first prediction value of the remaining pixels included in the prediction unit except for the n-th column may be generated.
제n 행과 제n 열을 제외한 나머지 예측 단위에 포함된 픽셀의 제1 예측값의 주변에 존재하는 수평 방향의 픽셀 2개와 수직 방향의 픽셀 2개를 이용하여 양방향 선형 예측을 수행하여 제2 예측값(670)을 생성한다(660).The second prediction value ( 670) is created (660).
현재 예측 픽셀의 수직 방향 위로 한 픽셀 위에 존재하는 픽셀(675), 현재 예측 픽셀의 수직 방향 아래로 한 픽셀 아래에 존재하는 픽셀(680), 현재 예측 픽셀의 수평 방향 왼쪽으로 한 픽셀 좌측에 존재하는 픽셀(685), 현재 예측 픽셀의 수평 방향 오른쪽으로 한 픽셀 우측에 존재하는 픽셀(690)을 보간하여 제2 예측값(670)을 생성할 수 있다.A
도 7은 본 발명의 실시예에 따른 향상된 DC 모드를 이용한 화면 내 예측 방법을 나타낸 개념도이다.7 is a conceptual diagram illustrating an intra prediction method using an improved DC mode according to an embodiment of the present invention.
도 7을 참조하면, 상단 좌측 참조 픽셀(703), 제n 상단 참조 픽셀(706), 제n 좌측 참조 픽셀(709)의 평균을 이용하여 하단 우측 픽셀(710)을 생성한다(700).Referring to FIG. 7 , a lower
제n 상단 참조 픽셀(706)과 하단 우측 픽셀(710)을 보간하여 제n 열에 포함된 픽셀의 예측값(713)을 생성하고 제n 좌측 참조 픽셀(709)과 하단 우측 참조 픽셀(710)을 보간하여 제n 행에 포함된 픽셀(715)의 예측값을 생성할 수 있다(720).The n-th
사선 방향에 존재하는 참조 픽셀값과 예측된 제n 행 및 제n 열의 픽셀값을 기초로 제n 행과 제n 열을 제외한 나머지 예측 단위에 포함된 픽셀의 예측값을 생성한다(740).Prediction values of pixels included in the remaining prediction units excluding the nth row and nth column are generated based on the reference pixel values existing in the oblique direction and the predicted pixel values of the nth row and nth column ( S740 ).
존재하는 참조 픽셀값과 예측된 제n 행 및 제n 열의 픽셀값 중 사선 방향(예를 들어, 45도)으로 상단 우측에 존재하는 하나의 픽셀과 하단 좌측에 존재하는 하나의 픽셀값을 이용하여 보간을 수행하여 제n 행과 제n 열을 제외한 나머지 예측 단위에 포함된 픽셀의 제1 예측값을 생성할 수 있다.Among the reference pixel values and the predicted pixel values of the n-th row and the n-th column, one pixel present in the upper right and one pixel present in the lower left in a diagonal direction (eg, 45 degrees) are used. Interpolation may be performed to generate a first prediction value of a pixel included in the remaining prediction units except for the n-th row and the n-th column.
제n 행과 제n 열을 제외한 나머지 예측 단위에 포함된 픽셀의 제1 예측값의 주변에 존재하는 수평방향의 픽셀 2개와 수직 방향의 픽셀 2개를 이용하여 양방향 선형 예측을 수행하여 제2 예측값을 생성한다(760).A second prediction value is obtained by performing bi-directional linear prediction using two horizontal pixels and two vertical pixels existing around the first prediction value of pixels included in the remaining prediction units except for the nth row and the nth column. create (760).
현재 예측 픽셀의 수직 방향 위로 한 픽셀 위에 존재하는 픽셀(745), 현재 예측 픽셀의 수직 방향 아래로 한 픽셀 아래(750)에 존재하는 픽셀, 현재 예측 픽셀의 수평 방향 왼쪽으로 한 픽셀 왼쪽에 존재하는 픽셀(755), 현재 예측 픽셀의 수평 방향 오른쪽으로 한 픽셀 우측에 존재하는 픽셀(757)을 보간하여 제2 예측값(770)을 생성할 수 있다.
도 8은 본 발명의 실시예에 따른 향상된 수직 방향 화면 내 예측 방법을 나타낸 개념도이다.8 is a conceptual diagram illustrating an improved vertical intra-screen prediction method according to an embodiment of the present invention.
도 8을 참조하면, 제n 좌측 참조 픽셀(810)과 각 상단 참조 픽셀값을 평균낸 값을 제n 행에 삽입한다(800).Referring to FIG. 8 , a value obtained by averaging the n-th
제n 행에 포함된 각 픽셀은 상단 참조 픽셀 중 동일한 열에 포함된 픽셀의 값과 제n 좌측 하단 참조 픽셀의 평균값이 될 수 있다.Each pixel included in the n-th row may be an average value of the pixel included in the same column among the upper reference pixels and the n-th lower left reference pixel.
제n 행에 포함된 픽셀과 상단 참조 픽셀값을 보간하여 제n 행을 제외한 나머지 행에 포함된 픽셀의 예측값을 생성한다(850).A pixel included in the n-th row and the upper reference pixel value are interpolated to generate predicted values of pixels included in the remaining rows except for the n-th row ( 850 ).
이러한 방법을 사용함으로써 행 단위로 선형적으로 변화하는 픽셀값 정보를 표현할 수 있다.By using this method, it is possible to express pixel value information that is linearly changed in units of rows.
도 9는 본 발명의 실시예에 따른 향상된 수평 방향 화면 내 예측 방법을 나타낸 개념도이다.9 is a conceptual diagram illustrating an improved horizontal intra-screen prediction method according to an embodiment of the present invention.
도 9를 참조하면, 제n+1 상단 참조 픽셀과 각 좌측 참조 픽셀값을 평균낸 픽셀값을 제n 열에 삽입한다(900).Referring to FIG. 9 , a pixel value obtained by averaging the n+1th upper reference pixel and each left reference pixel value is inserted into the nth column ( 900 ).
제n 열에 포함된 각 픽셀은 좌측 참조 픽셀 중 동일한 행에 포함된 픽셀의 값과 제n+1 상단 우측 참조 픽셀의 평균값이 될 수 있다.Each pixel included in the n-th column may be an average value of a pixel included in the same row among left reference pixels and an n+1-th upper right reference pixel.
또 다른 방법은 제n 상단 참조 픽셀과 각 좌측 참조 픽셀값을 평균낸 픽셀값을 제n 열에 삽입할 수도 있다(925).As another method, a pixel value obtained by averaging the n-th upper reference pixel and each left reference pixel value may be inserted into the n-th column ( 925 ).
즉, 제n 열에 포함된 각 픽셀은 좌측 참조 픽셀 중 동일한 행에 포함된 픽셀의 값과 제n 상단 우측 참조 픽셀의 평균값이 될 수 있다.That is, each pixel included in the n-th column may be the average value of the pixel included in the same row among the left reference pixels and the n-th upper right reference pixel.
제n 열에 포함된 픽셀과 상단 참조 픽셀값을 보간하여 제n 열을 제외한 나머지 행에 포함된 픽셀의 예측값을 생성한다(950).Predicted values of pixels included in the remaining rows except for the n-th column are generated by interpolating the pixel included in the n-th column and the upper reference pixel value ( S950 ).
이러한 방법을 사용함으로서 행 단위로 변화하는 픽셀값 정보를 표현할 수 있다.By using this method, it is possible to express pixel value information that changes in units of rows.
도 10은 본 발명의 실시예에 따른 향상된 플레이너 모드를 통해 예측 단위를 산출하는 방법을 나타낸 개념도이다.10 is a conceptual diagram illustrating a method of calculating a prediction unit through the enhanced planar mode according to an embodiment of the present invention.
도 10을 참조하면, 플레이너 모드를 이용한 화면 내 예측을 수행하기 위해서는 하단 우측 픽셀(1000)의 예측값을 구한다. 산출된 하단 우측 픽셀(1000)의 예측값과 제n 좌측 참조 픽셀(1010)을 보간한 보간값을 제n 행에 포함된 픽셀의 예측값으로 사용하고, 산출된 하단 우측 픽셀(1000)의 예측값과 제n 상단 참조 픽셀(1020)의 보간값을 제n 열에 포함된 픽셀의 예측값으로 사용할 수 있다.Referring to FIG. 10 , in order to perform intra-screen prediction using the planar mode, the predicted value of the lower
상단 참조 픽셀, 좌측 참조 픽셀, 상단 좌측 참조 픽셀과 전술한 단계에서생성된 제n 열 및 제n 행의 픽셀 예측값을 기초로 양방향 보간을 수행하여 제n 행과 제n 열을 제외한 나머지 예측 단위에 포함된 픽셀의 예측값을 산출할 수 있다.Bi-directional interpolation is performed based on the upper reference pixel, the left reference pixel, the upper left reference pixel, and the pixel prediction values of the n-th column and the n-th row generated in the above-mentioned step to obtain the remaining prediction units except for the n-th row and the n-th column. A predicted value of the included pixel may be calculated.
이때 하단 우측 픽셀은 다양한 방법으로 산출될 수 있다. 이하 도 11 내지 도 14는 본 발명의 실시예에 따른 하단 우측 픽셀값을 산출하는 방법을 나타낸다.In this case, the lower right pixel may be calculated in various ways. 11 to 14 show a method of calculating a lower right pixel value according to an embodiment of the present invention.
도 11은 본 발명의 실시예에 따른 향상된 플레이너 모드 화면 내 예측 방법에서 하단 우측 픽셀을 산출하는 방법을 나타내는 개념도이다.11 is a conceptual diagram illustrating a method of calculating a lower right pixel in an improved planar mode intra-screen prediction method according to an embodiment of the present invention.
도 11을 참조하면 하단 우측 픽셀은 제n 좌측 참조 픽셀(1100)과 제n 상단 참조 픽셀(1110)의 평균값으로 산출될 수 있다.Referring to FIG. 11 , the lower right pixel may be calculated as an average value of the n-th
즉, 두 개의 픽셀값만을 이용하여 하단 우측 픽셀값을 산출하는 방법을 사용함으로서 계산 복잡도를 감소시킬 수 있다.That is, the calculation complexity can be reduced by using a method of calculating the lower right pixel value using only two pixel values.
도 12는 본 발명의 실시예에 따른 향상된 플레이너 모드 화면 내 예측 방법에서 하단 우측 픽셀을 산출하는 방법을 나타낸 개념도이다.12 is a conceptual diagram illustrating a method of calculating a lower right pixel in an improved planar mode intra-screen prediction method according to an embodiment of the present invention.
도 12를 참조하면, 하단 우측 픽셀은 제2n 상단 참조 픽셀(1200)과 제2n 좌측 참조 픽셀(1210)의 평균값으로 산출될 수 있다.Referring to FIG. 12 , the lower right pixel may be calculated as an average value of the 2n-th
즉, 기존의 방법과 달리 두 개의 픽셀값만을 이용하여 하단 우측 픽셀값을 산출할 수 있다.That is, unlike the conventional method, the lower right pixel value can be calculated using only two pixel values.
예측 단위가 에지 부분에 위치하여 제2n 상단 참조 픽셀(1200)과 제2n 좌측 참조 픽셀(1210)이 존재하지 않는 경우, 도 11에서 개시한 바와 같이 제n 좌측 하단 참조 픽셀과 제n 상단 우측 참조 픽셀값을 이용하여 하단 우측 픽셀을 생성하거나 다른 방법을 사용하여 하단 우측 픽셀을 생성할 수 있다.When the prediction unit is located at the edge and the 2n-th
도 13은 본 발명의 실시예에 따른 향상된 플레이너 모드 화면 내 예측 방법에서 하단 우측 픽셀을 산출하는 방법을 나타낸 개념도이다.13 is a conceptual diagram illustrating a method of calculating a lower right pixel in an improved planar mode intra-screen prediction method according to an embodiment of the present invention.
도 13을 참조하면, 하단 우측 픽셀은 제n 상단 참조 픽셀(1300)과 제2n 상단 참조 픽셀(1310)의 평균값을 기초로 생성된 상단 평균 픽셀(1320)과 제n 좌측 참조 픽셀(1330)과 제2n 좌측 참조 픽셀(1340)의 평균값을 산출된 좌측 평균 픽셀(1350)을 이용하여 산출될 수 있다.Referring to FIG. 13 , the lower right pixel includes an upper
즉, 상단 평균 픽셀(1320)과 좌측 평균 픽셀(1350)을 평균한 값을 기초로 하단 우측 픽셀을 산출할 수 있다.That is, the lower right pixel may be calculated based on the average value of the upper
예측 단위가 에지 부분에 위치하여 해당 픽셀이 존재하지 않는 경우, 도 11에서와 같이 제n 좌측 하단 참조 픽셀과 제n 상단 우측 참조 픽셀값을 이용하여 하단 우측 픽셀을 생성하거나 다른 방법을 사용하여 하단 우측 픽셀을 생성할 수 있다.When the prediction unit is located at the edge and the corresponding pixel does not exist, as shown in FIG. 11 , the lower right pixel is generated using the nth lower left reference pixel and the nth upper right reference pixel, or the lower right pixel is generated using another method. You can create the right pixel.
도 14는 본 발명의 실시예에 따른 향상된 플레이너 모드에서 하단 우측 픽셀을 생성하는 방법을 나타낸 개념도이다.14 is a conceptual diagram illustrating a method of generating a lower right pixel in an enhanced planar mode according to an embodiment of the present invention.
도 14를 참조하면, 제n 상단 참조 픽셀(1400)과 제2n 상단 참조 픽셀(1410)의 중간에 위치한 상단 중간 픽셀(1420)과 제n 좌측 참조 픽셀(1430)과 제2n 좌측 참조 픽셀(1440)의 중간에 위치한 좌측 중간 픽셀(1450)의 평균값을 이용하여 하단 우측 픽셀(1460)을 생성할 수 있다. 중간에 위치한 픽셀은 n+n/2 번째 또는 (n+n/2)+1 번째 위치한 제n+n/2 상단 또는 좌측 참조 픽셀이거나, 제(n+n/2)+1 상단 또는 좌측 참조 픽셀이 될 수 있다.Referring to FIG. 14 , an upper
예측 단위가 에지 부분에 위치하여 해당 픽셀이 존재하지 않는 경우, 제n 좌측 하단 참조 픽셀과 제n 상단 우측 참조 픽셀값을 이용하여 하단 우측 픽셀을 생성하거나 다른 하단 우측 픽셀 생성 방법을 사용하여 참조 픽셀을 예측할 수 있다.When the prediction unit is located in the edge portion and the corresponding pixel does not exist, the lower right pixel is generated using the nth lower left reference pixel and the nth upper right reference pixel value, or the reference pixel is generated using another lower right pixel generation method. can be predicted.
이하, 도 15 내지 도 16은 향상된 플레이너 예측 모드를 수행함에 있어서 예측 단위에 포함되는 제n 행과 제n 열을 보간하여 생성하는 방법을 나타낸 개념도이다.15 to 16 are conceptual diagrams illustrating a method of generating by interpolating an n-th row and an n-th column included in a prediction unit in performing the enhanced planar prediction mode.
도 15는 본 발명의 실시예에 따른 플레이너 모드를 수행시 제n 행 및 제n 열을 생성하는 방법을 나타낸 개념도이다.15 is a conceptual diagram illustrating a method of generating an n-th row and an n-th column when a planar mode is performed according to an embodiment of the present invention.
도 15를 참조하면, 하단 우측 픽셀을 제외한 제n 열에 포함된 픽셀은 제n+1 상단 참조 픽셀에서 제2n-1 상단 참조 픽셀까지의 픽셀을 복사하여 예측값을 생성할 수 있다.Referring to FIG. 15 , pixels included in the nth column except for the lower right pixel may generate a predicted value by copying pixels from the n+1th upper reference pixel to the 2n−1th upper reference pixel.
또한, 하단 우측 픽셀을 제외한 제n 행에 포함된 픽셀은 제n+1 좌측 참조 픽셀에서 제2n-1 좌측 참조 픽셀까지의 픽셀을 복사하여 예측값을 생성할 수 있다.하단 우측 픽셀은 상단 제2n 픽셀과 좌측 제2n 픽셀의 평균값을 생성하여 예측값을 생성할 수 있다.In addition, pixels included in the nth row except for the lower right pixel may generate a predicted value by copying pixels from the n+1th left reference pixel to the 2n−1th left reference pixel. The lower right pixel is the upper 2nth pixel. A predicted value may be generated by generating an average value of the pixel and the left 2n-th pixel.
도 16은 본 발명의 실시예에 따른 향상된 플레이너 모드를 수행시 제n 행 및 제n 열을 생성하는 방법을 나타낸 개념도이다.16 is a conceptual diagram illustrating a method of generating an n-th row and an n-th column when an enhanced planar mode is performed according to an embodiment of the present invention.
도 16을 참조하면, 제n 열은 제n+1 상단 참조 픽셀에서 제2n-1 상단 참조 픽셀까지의 픽셀과 제n+1 좌측 참조 픽셀에서 제2n-1 좌측 참조 픽셀까지의 픽셀을 거리에 따라 선형적으로 예측한 값으로 생성한 픽셀을 사용하여 예측값으로 사용할 수 있다. 예를 들어, 제n 열 중 두번째 픽셀(1600)은 제n+2 상단 참조 픽셀과 제 n+2 좌측 참조 픽셀의 선형 보간합을 수행하여 해당 픽셀의 예측값을 생성할 수 있다.Referring to FIG. 16 , in the nth column, a pixel from an n+1th upper reference pixel to a 2n-1th upper reference pixel and a pixel from an n+1th left reference pixel to a 2n−1th left reference pixel are defined as distances. Accordingly, pixels generated with linearly predicted values can be used as predicted values. For example, the
제n 행도 마찬가지로 제n+1 상단 참조 픽셀에서 제2n-1 상단 참조 픽셀까지의 픽셀과 제n+1 좌측 참조 픽셀에서 제2n-1 좌측 참조 픽셀까지의 픽셀을 거리에 따라 선형적으로 예측한 값으로 생성한 픽셀을 사용하여 예측값으로 사용할 수 있다. 예를 들어, 제n 행 중 두번째 픽셀은 제n+2 상단 참조 픽셀과 제 n+2 좌측 참조 픽셀의 선형 보간합을 수행하여 해당 픽셀의 예측값을 생성할 수 있다.Similarly, in the nth row, the pixel from the n+1th upper reference pixel to the 2n-1th upper reference pixel and the pixel from the n+1th left reference pixel to the 2n-1th left reference pixel are linearly predicted according to the distance. You can use the pixels generated by the values as predictions. For example, the second pixel in the n-th row may generate a predicted value of the corresponding pixel by performing linear interpolation of the n+2th upper reference pixel and the n+2th left reference pixel.
전술한 방법을 사용함으로써 거리적으로 가까운 픽셀값에 더 많은 영향을 받도록 제n 행과 제n 열의 예측 픽셀값을 생성한 후 플레이너 모드에 따른 예측을 수행할 수 있다.By using the above-described method, prediction according to the planar mode may be performed after generating predicted pixel values in the n-th row and n-th column to be more influenced by pixel values that are closer in distance.
도 17은 본 발명의 실시예에 따른 향상된 플레이너 모드에 따른 예측 방법을 나타낸 개념도이다.17 is a conceptual diagram illustrating a prediction method according to an improved planar mode according to an embodiment of the present invention.
도 17을 참조하면, 예측 단위에 포함된 픽셀의 예측값을 생성하기 위하여 4개의 픽셀을 이용할 수 있다.Referring to FIG. 17 , four pixels may be used to generate a prediction value of a pixel included in a prediction unit.
제1 픽셀(1700)은 예측 대상 픽셀의 수직 방향 위에 위치하는 제1 상단 참조 픽셀에서 제n 상단 참조 픽셀 중 하나의 픽셀이 될 수 있다. 제2 픽셀(1720)은 예측 대상 픽셀의 수직 방향 아래에 위치한 픽셀로 제2n 좌측 하단 참조 픽셀(1725)을 복사한 값이 될 수 있다.The
제3 픽셀(1740)은 예측 대상 픽셀의 수평 방향 왼쪽에 위치하는 제1 좌측 참조 픽셀에서 제n 좌측 참조 픽셀 중 하나의 픽셀이 될 수 있다. 제4 픽셀(1760)은 예측 대상 픽셀의 수평 방향 오른쪽에 위치한 픽셀로 제 2n 상단 우측 참조 픽셀(1765)을 복사한 값이 될 수 있다.The
본 발명의 실시예에 따른 플레이너 예측 방법은 제1 픽셀 내지 제4 픽셀을 양방향 선형 보간하는 방법을 사용하여 예측 단위에 포함된 픽셀의 예측값을 생성할 수 있다.The planar prediction method according to an embodiment of the present invention may generate a prediction value of a pixel included in a prediction unit by using a method of bidirectional linear interpolation of the first to fourth pixels.
도 18은 본 발명의 실시예에 따른 플레이너 모드에 따른 예측 방법을 나타낸 개념도이다.18 is a conceptual diagram illustrating a prediction method according to a planar mode according to an embodiment of the present invention.
도 18을 참조하면, 플레이너 모드에 따른 예측을 수행시 수평 방향 예측된 값과 수직 방향 예측된 값에 일정한 비율의 가중치를 부여하여 예측 단위의 예측값을 생성할 수 있다.Referring to FIG. 18 , when prediction according to the planar mode is performed, a predicted value of a prediction unit may be generated by giving a weight of a predetermined ratio to a horizontal direction predicted value and a vertical direction predicted value.
수평 방향 예측된 값은 좌측 참조 픽셀 중 예측 대상 픽셀과 동일한 행에 위치한 값과 제n 상단 참조 픽셀을 보간한 값이 될 수 있다(1800).The horizontally predicted value may be a value obtained by interpolating a value located in the same row as the prediction target pixel among the left reference pixels and the nth upper reference pixel ( 1800 ).
수직 방향 예측된 값은 상단 참조 픽셀 중 예측 대상 픽셀과 동일한 열에 위치한 값과 제n 좌측 참조 픽셀을 보간한 값이 될 수 있다(1850).The vertical direction predicted value may be a value obtained by interpolating a value located in the same column as the prediction target pixel among the upper reference pixels and the nth left reference pixel ( 1850 ).
수평 방향 예측된 값과 수직 방향 예측된 값은 각각의 가중치를 곱하여 예측값을 생성할 수 있다.A predicted value may be generated by multiplying the horizontal direction predicted value and the vertical direction predicted value by respective weights.
아래의 수학식 1은 가중치값을 기초로 예측값을 생성한다.
수학식 1을 참조하면 상대적으로 수평 방향 또는 수직 방향 중 어느 방향에 가까운지에 따라 더 가까운 방향에 더 큰 가중치를 부여하여 예측값을 생성할 수 있다.Referring to
도 19는 본 발명의 실시예에 따른 향상된 DC 모드 예측 방법을 나타낸 개념도이다.19 is a conceptual diagram illustrating an improved DC mode prediction method according to an embodiment of the present invention.
도 19를 참조하면, 향상된 DC 모드 예측을 수행할 경우, 이웃에 존재하는 예측 단위와 불연속성을 최소화하기 위해 상단 참조 픽셀들과 좌측 참조 픽셀들을 예측 단위의 내부 픽셀 중 제1 행과 제1 열의 값으로 복사하여 사용할 수 있다. 제1 행 1 열에 위치한 픽셀값은 상단 참조 픽셀의 첫번째 픽셀값, 좌측 참조 픽셀의 첫번째 픽셀값 또는 상단 참조 픽셀의 첫번째 픽셀값, 좌측 참조 픽셀의 첫번째 픽셀값을 이용하여 산출된 값이 될 수 있다. 예측 단위의 제1행과 제1 열의 값을 깅초로 DC 모드를 이용한 화면 내 예측을 수행하여 제1 행 및 제1 열을 제외한 나머지 픽셀값의 예측값을 생성할 수 있다.Referring to FIG. 19 , when enhanced DC mode prediction is performed, upper reference pixels and left reference pixels are used to minimize discontinuity with neighboring prediction units. can be copied and used. The pixel value located in the first row and
도 20은 본 발명의 실시예에 따른 향상된 DC 모드 예측 방법을 나타낸 개념도이다.20 is a conceptual diagram illustrating an improved DC mode prediction method according to an embodiment of the present invention.
도 20의 좌측을 참조하면, 향상된 DC 모드 예측을 수행함에 있어서, 상단 참조 픽셀 중 첫번째 픽셀인 제1 상단 참조 픽셀과 n 번째 픽셀인 제n 상단 참조 픽셀과 좌측 참조 픽셀 중 첫번째 픽셀인 제1 좌측 참조 픽셀과 n 번째 픽셀인 제n 좌측 참조 픽셀의 평균값을 산출하여 예측 픽셀을 생성할 수 있다. 즉, 참조 픽셀 중 일부 픽셀만을 사용하여 예측 단위에 포함된 픽셀의 예측값을 산출하는 방법을 통해 화면 내 예측을 수행시 계산 복잡도를 감소시킬 수 있다.Referring to the left side of FIG. 20 , in performing the enhanced DC mode prediction, a first upper reference pixel that is a first pixel among upper reference pixels, an n-th upper reference pixel that is an n-th pixel, and a first left one that is a first pixel among left reference pixels A prediction pixel may be generated by calculating an average value of the reference pixel and the n-th left reference pixel, which is the n-th pixel. That is, calculation complexity can be reduced when performing intra prediction through a method of calculating the predicted value of the pixel included in the prediction unit using only some pixels among the reference pixels.
도 20의 우측을 참조하면, DC 모드 예측을 수행함에 있어서, 상단 참조 픽셀 중 n 번째 픽셀인 제n 상단 참조 픽셀과 좌측 참조 픽셀 중 n 번째 픽셀인 제n 좌측 참조 픽셀과 상단 좌측 참조 픽셀의 평균값을 산출하여 예측 픽셀을 생성할 수 있다. 즉, 도 20의 좌측과 마찬가지로 참조 픽셀 중 일부 픽셀만을 사용함으로써 계산 복잡도를 감소시킬 수 있다.Referring to the right side of FIG. 20 , in performing DC mode prediction, the average value of the n-th upper reference pixel that is the n-th pixel among the upper reference pixels, the n-th left reference pixel that is the n-th pixel among the left reference pixels, and the average value of the upper left reference pixel can be calculated to generate a prediction pixel. That is, as on the left side of FIG. 20 , calculation complexity can be reduced by using only some of the reference pixels.
도 21은 본 발명의 실시예에 따른 향상된 DC 모드 예측 방법을 나타낸 개념도이다.21 is a conceptual diagram illustrating an improved DC mode prediction method according to an embodiment of the present invention.
도 21을 참조하면, 향상된 DC 모드 예측 방법은 제1 열과 제1 행을 참조 픽셀을 이용하여 산출된 DC 예측값으로 채운다(2100).Referring to FIG. 21 , the improved DC mode prediction method fills the first column and the first row with DC prediction values calculated using reference pixels ( 2100 ).
제1 행 및 제1 열에 포함되는 DC 예측값은 상단 참조 픽셀과 상단 좌측 참조 픽셀과 좌측 참조 픽셀의 평균값이 될 수 있다.The DC predicted value included in the first row and the first column may be an average value of the upper reference pixel, the upper left reference pixel, and the left reference pixel.
상단 참조 픽셀과 좌측 참조 픽셀 및 상단 좌측 참조 픽셀을 이용하여 필터링을 수행한다(2120).Filtering is performed using the upper reference pixel, the left reference pixel, and the upper left reference pixel ( 2120 ).
예측 단위에 포함되는 제1 행 1 열에 위치한 픽셀을 제외한 제1 열과 제1 행에 포함된 픽셀들은 참조 픽셀과 2 탭 필터를 이용하여 필터링을 수행할 수 있다. 예측 단위에서 제1 행 1 열에 위치한 픽셀의 경우, 3 탭 필터를 이용하여 제1 상단 참조 픽셀과 제1 좌측 참조 픽셀을 기초로 필터링될 수 있다.Filtering may be performed on the pixels included in the first column and the first row except for the pixel positioned in the first row included in the prediction unit by using the reference pixel and the 2-tap filter. Pixels located in the first row and first column in the prediction unit may be filtered based on the first upper reference pixel and the first left reference pixel using a 3-tap filter.
필터링된 제1 열 및 제1 행에 포함된 픽셀을 기초로 DC 모드 예측을 수행하여 예측 단위에 포함된 픽셀의 예측값을 생성한다(2140). 필터링된 제1 열 및 제1 행에 위치한 픽셀의 평균값을 이용해 DC 모드를 이용한 예측을 수행할 수 있다.DC mode prediction is performed based on the filtered pixels included in the first column and the first row to generate a predicted value of the pixel included in the prediction unit ( 2140 ). Prediction using the DC mode may be performed using the filtered average value of pixels located in the first column and the first row.
도 22는 본 발명의 실시예에 따른 향상된 DC 모드 예측 방법을 나타낸 개념도이다.22 is a conceptual diagram illustrating an improved DC mode prediction method according to an embodiment of the present invention.
도 22를 참조하면, 참조 픽셀을 기초로 DC 모드를 이용한 화면 내 예측을 수행하여 예측 단위의 제1 행과 제1 열에 포함된 픽셀값을 예측할 수 있다(2200).Referring to FIG. 22 , pixel values included in the first row and first column of the prediction unit may be predicted by performing intra prediction using the DC mode based on the reference pixel ( 2200 ).
DC 모드 화면 내 예측값은 도 21에서와 같이 상단 참조 픽셀과 상단 좌측 참조 픽셀과 좌측 참조 픽셀의 평균값이 될 수 있다.The predicted value in the DC mode screen may be an average value of the upper reference pixel, the upper left reference pixel, and the left reference pixel as shown in FIG. 21 .
상단 참조 픽셀과 좌측 참조 픽셀 및 상단 좌측 참조 픽셀와 생성된 제1 행을 이용및 제1 열에 포함된 픽셀을 이용하여 필터링을 수행한다(2220).Filtering is performed using the upper reference pixel, the left reference pixel, the upper left reference pixel, the generated first row, and the pixel included in the first column ( 2220 ).
예측된 제1 열과 제1 행은 2 탭 필터를 이용하여 참조 필터값과 필터링을 수행할 수 있다. 제1 행 1 열에 위치한 픽셀의 경우, 3 탭 필터를 이용하여 제1 상단 참조 픽셀과 제1 좌측 참조 픽셀을 기초로 필터링될 수 있다.The predicted first column and the first row may be filtered with a reference filter value using a 2-tap filter. Pixels located in the first row and first column may be filtered based on the first upper reference pixel and the first left reference pixel using a 3-tap filter.
제1 행과 제1 열을 제외한 나머지 예측 단위에 포함된 픽셀값들은 픽셀의 상단과 픽셀의 좌측에 위치한 픽셀값들의 평균값을 산출하여 예측값을 생성할 수 있다(2240).For the pixel values included in the remaining prediction units except for the first row and the first column, a prediction value may be generated by calculating an average value of pixel values located at the upper end of the pixel and at the left side of the pixel ( 2240 ).
도 23은 본 발명의 실시예에 따른 향상된 DC 모드 예측 방법을 나타낸 개념도이다.23 is a conceptual diagram illustrating an improved DC mode prediction method according to an embodiment of the present invention.
도 23를 참조하면, 상단 참조 픽셀과 좌측 참조 픽셀을 예측 단위의 예측 픽셀로 사용한다(2300). 상단 참조 픽셀과 좌측 참조 픽셀을 예측 단위의 제1 열과 제1 행에 포함되는 픽셀의 예측값으로 사용할 수 있다.Referring to FIG. 23 , the upper reference pixel and the left reference pixel are used as prediction pixels of the prediction unit ( 2300 ). The upper reference pixel and the left reference pixel may be used as prediction values of pixels included in the first column and first row of the prediction unit.
제1 행 제1 열의 픽셀값은 제1 좌측 참조 픽셀값, 제1 상단 참조 픽셀값 중 적어도 하나에 기초하여 산출된 예측값이 될 수 있다.The pixel value of the first row and first column may be a predicted value calculated based on at least one of the first left reference pixel value and the first upper reference pixel value.
제1 행과 제1 열에 포함된 픽셀값을 제외한 나머지 예측 단위의 값들은 제1 행과 제1 열의 픽셀값들에 기초하여 DC 모드 예측을 수행하여 제1 예측값을 산출할 수 있다(2320).The values of the remaining prediction units except for the pixel values included in the first row and the first column may be subjected to DC mode prediction based on the pixel values of the first row and first column to calculate a first predicted value ( 2320 ).
제1 행과 제1 열에 포함된 픽셀값을 제외한 나머지 예측 단위의 예측값들은 예측 픽셀의 좌측과 상단에 위치한 픽셀값들의 평균값으로 다시 제2 예측값을 생성할 수 있다(2340).The prediction values of the remaining prediction units except for the pixel values included in the first row and the first column are average values of the pixel values located on the left and upper sides of the prediction pixel to generate a second prediction value again ( 2340 ).
도 24는 본 발명의 실시예에 따른 향상된 DC 모드 예측 방법을 나타낸 개념도이다.24 is a conceptual diagram illustrating an improved DC mode prediction method according to an embodiment of the present invention.
도 24를 참조하면, 참조 픽셀을 이용하여 DC 모드 예측값을 산출한다.Referring to FIG. 24 , a DC mode prediction value is calculated using a reference pixel.
상단 참조 픽셀, 상단 좌측 참조 픽셀, 좌측 참조 픽셀값의 평균을 산출하여 DC 예측값을 산출할 수 있다.A DC prediction value may be calculated by calculating an average of the values of the upper reference pixel, the upper left reference pixel, and the left reference pixel.
아래의 수학식 2는 DC 모드를 이용한 예측값을 산출하는 방법을 나타낸다.
참조 픽셀마다 DC 모드를 이용한 예측값과 참조 픽셀의 값 사이의 편차값을 산출할 수 있다. 아래의 수학식 3은 참조픽셀 값과 DC 모드를 이용한 예측값을 나타낸 것이다.For each reference pixel, a deviation value between the predicted value using the DC mode and the reference pixel value may be calculated. Equation 3 below shows a reference pixel value and a predicted value using the DC mode.
예측 단위에 포함된 픽셀의 예측값은 수학식 2에서 산출된 DC 예측값에 수학식 3에서 구한 각각의 x 방향 편차들과 y 방향 편차들의 평균값을 이용하여 산출할 수 있다.The predicted value of the pixel included in the prediction unit may be calculated by using the DC prediction value calculated in
이러한 방식으로 예측을 수행함으로써 해당 열과 해당 행에서의 편차값들을 DC 예측값에 더하거나 뺌으로써 열과 행의 특성을 반영할 수 있다.By performing the prediction in this way, it is possible to reflect the characteristics of the column and row by adding or subtracting deviation values from the corresponding column and the corresponding row to the DC predicted value.
도 25는 본 발명의 실시예에 따른 향상된 플레이너 모드 예측 방법을 나타낸 개념도이다.25 is a conceptual diagram illustrating an improved planar mode prediction method according to an embodiment of the present invention.
도 25를 참조하면, 플레이너 예측 모드를 수행함에 있어서 현재 예측 픽셀과 동일한 열에 포함되는 수직 방향 위로 존재하는 상단 참조 픽셀에 포함되는 픽셀(2500)과 좌측 참조 픽셀에서 2n 번째 참조 픽셀인 제2n 좌측 참조 픽셀(2510)을 이용하여 수직 보간을 수행할 수 있다. 또한, 현재 예측 픽셀의 수평 방향 좌측에 존재하는 현재 예측 픽셀과 동일한 행에 포함되는 좌측 참조 픽셀값(2520)과 상단 참조 픽셀에서 2n 번째 참조 픽셀인 제2n 상단 참조 픽셀(2530)을 이용하여 수평 보간을 수행할 수 있다.Referring to FIG. 25 , in performing the planar prediction mode, a
만약 제2n 좌측 참조 픽셀(2510) 또는 제2n 상단 참조 픽셀(2530)이 존재하지 않는 경우, 제n 좌측 참조 픽셀이나 제n 상단 참조 픽셀을 사용하여 수평 보간 또는 수직 보간을 수행할 수 있다.If the 2n-th
도 26은 본 발명의 실시예에 따른 제2n 좌측 참조 픽셀 또는 제2n 상단 참조 픽셀이 존재하지 않는 경우, 플레이너 모드를 수행하는 방법을 나타낸 개념도이다.26 is a conceptual diagram illustrating a method of performing a planar mode when a 2n-th left reference pixel or a 2n-th upper reference pixel does not exist according to an embodiment of the present invention.
도 26의 좌측은 제2n 좌측 참조 픽셀 및 제2n 상단 참조 픽셀 중 적어도 하나의 픽셀이 존재하지 않는 경우를 나타낸다.The left side of FIG. 26 shows a case in which at least one of the 2n-th left reference pixel and the 2n-th upper reference pixel does not exist.
제2n 좌측 참조 픽셀이 존재하지 않는 경우, 제2n 좌측 참조 픽셀 대신 제n 좌측 참조 픽셀을 사용하여 보간을 수행할 수 있다. 제2n 상단 참조 픽셀이 존재하지 않는 경우, 제2n 상단 참조 픽셀 대신 제n 상단 참조 픽셀을 사용하여 보간을 수행할 수 있다.When the 2n-th left reference pixel does not exist, interpolation may be performed using the n-th left reference pixel instead of the 2n-th left reference pixel. When the 2n-th upper reference pixel does not exist, interpolation may be performed using the n-th upper reference pixel instead of the 2n-th upper reference pixel.
도 26의 우측은 제2n 좌측 참조 픽셀 및 제2n 상단 참조 픽셀이 존재하지 않는 경우를 나타낸다. 제2n 좌측 참조 픽셀 및 제2n 상단 참조 픽셀이 존재하지 않는 경우, 제n 좌측 픽셀 및 제n 우측 참조 픽셀을 사용하여 플레이너 모드를 수행할 수 있다.The right side of FIG. 26 shows a case in which the 2n-th left reference pixel and the 2n-th upper reference pixel do not exist. When the 2n-th left reference pixel and the 2n-th upper reference pixel do not exist, the planar mode may be performed using the n-th left pixel and the n-th right reference pixel.
이상에서 설명한 영상 부호화 및 영상 복호화 방법은 도 1 및 도 2에서 전술한 각 영상 부호화기 및 영상 복호화기 장치의 각 구성부에서 구현될 수 있다.The image encoding and image decoding methods described above may be implemented in each component of each of the image encoder and image decoder apparatuses described above with reference to FIGS. 1 and 2 .
이상 실시예를 참조하여 설명하였지만, 해당 기술 분야의 숙련된 당업자는 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.Although it has been described with reference to the above embodiments, it will be understood by those skilled in the art that various modifications and changes can be made to the present invention without departing from the spirit and scope of the present invention as set forth in the claims below. will be able
Claims (7)
현재 블록의 인트라 예측 모드를 플래너 모드로 결정하는 단계;
상기 인트라 예측 모드에 대한 예측 모드 정보를 생성하는 단계;
상기 플래너 모드인 상기 현재 블록에 대하여, 4개의 주변 참조 샘플들을 도출하는 단계;
상기 4개의 주변 참조 샘플들을 이용하여, 상기 현재 블록 내의 예측 샘플을 유도하는 단계;
상기 예측 샘플을 기반으로 레지듀얼 정보를 도출하는 단계; 및
상기 예측 모드 정보 및 상기 레지듀얼 정보를 포함하는 영상 정보를 인코딩하는 단계를 포함하되,
상기 4개의 주변 참조 샘플들은,
상기 현재 블록의 상측 주변 샘플들 중에서, 상기 예측 샘플의 x 좌표와 동일한 위치에 있는 제1 샘플 및 상기 현재 블록 내의 가장 큰 x 좌표보다 더 큰 x 좌표 위치에 있는 제2 샘플; 및
상기 현재 블록의 좌측 주변 샘플들 중에서, 상기 예측 샘플의 y 좌표와 동일한 위치에 있는 제3 샘플 및 상기 현재 블록 내의 가장 큰 y 좌표보다 더 큰 y 좌표 위치에 있는 제4 샘플을 포함하는 것을 특징으로 하는 영상 인코딩 방법.In the video encoding method,
determining an intra prediction mode of the current block as a planar mode;
generating prediction mode information for the intra prediction mode;
deriving four peripheral reference samples for the current block in the planar mode;
deriving a prediction sample in the current block using the four neighboring reference samples;
deriving residual information based on the prediction sample; and
Encoding video information including the prediction mode information and the residual information,
The four peripheral reference samples are
a first sample at the same position as the x-coordinate of the prediction sample and a second sample at an x-coordinate position greater than the largest x-coordinate within the current block, among samples around the upper side of the current block; and
Among the samples around the left of the current block, a third sample at the same position as the y-coordinate of the prediction sample and a fourth sample at a y-coordinate position greater than the largest y-coordinate in the current block are included. video encoding method.
상기 현재 블록은 n Х n 크기의 블록(n은 정수)이고,
상기 제2 샘플은 상기 현재 블록의 상측 주변 샘플들 중에서 x축 방향으로 n+1번째 샘플부터 2n번째 샘플 중 어느 하나이고,
상기 제4 샘플은 상기 현재 블록의 좌측 주변 샘플들 중에서 y축 방향으로 n+1번째 샘플부터 2n번째 샘플 중 어느 하나인 것을 특징으로 하는 영상 인코딩 방법.According to claim 1,
The current block is a block of size n Х n (n is an integer),
The second sample is any one of the n+1th sample to the 2nth sample in the x-axis direction among upper neighboring samples of the current block;
The fourth sample is any one of an n+1th sample to a 2nth sample in a y-axis direction among left neighboring samples of the current block.
상기 제2 샘플은 상기 상측 주변 샘플들 중에서 2n번째 샘플이고,
상기 제4 샘플은 상기 좌측 주변 샘플들 중에서 2n번째 샘플인 것을 특징으로 하는 영상 인코딩 방법.3. The method of claim 2,
The second sample is a 2nth sample among the upper peripheral samples,
and the fourth sample is a 2nth sample among the left neighboring samples.
상기 예측 샘플은, 상기 예측 샘플의 위치로부터 상기 제1 내지 제4 샘플들에 기반한 거리에 따른 양 방향 보간에 의해 유도되는 것을 특징으로 하는 영상 인코딩 방법.According to claim 1,
The prediction sample is an image encoding method, characterized in that the prediction sample is derived by bi-directional interpolation according to a distance based on the first to fourth samples from the position of the prediction sample.
상기 거리들에 따라서 상기 양 방향 보간에 사용되는 샘플들의 값들에 가중치를 부가하며, 상기 제1 내지 제4 샘플 중 상기 예측 샘플의 위치에 더 가까운 샘플에는 더 큰 가중치를 적용하는 것을 특징으로 하는 영상 인코딩 방법.5. The method of claim 4,
An image characterized in that a weight is added to the values of the samples used for the bidirectional interpolation according to the distances, and a greater weight is applied to a sample closer to the location of the prediction sample among the first to fourth samples encoding method.
현재 블록의 인트라 예측 모드를 플래너 모드로 결정하고, 상기 인트라 예측 모드에 대한 예측 모드 정보를 생성하고, 상기 플래너 모드인 상기 현재 블록에 대하여, 4개의 주변 참조 샘플들을 도출하고, 상기 4개의 주변 참조 샘플들을 이용하여, 상기 현재 블록 내의 예측 샘플을 유도하는 예측부;
상기 예측 샘플을 기반으로 레지듀얼 샘플을 도출하는 감산부;
상기 레지듀얼 샘플을 기반으로 변환 계수를 유도하는 변환부;
상기 변환 계수를 기반으로 양자화된 변환 계수를 유도하는 양자화부; 및
상기 예측 모드 정보 및 상기 양자화된 변환 계수에 관한 레지듀얼 정보를 포함하는 영상 정보를 인코딩하는 엔트로피 인코딩부를 포함하되,
상기 4개의 주변 참조 샘플들은,
상기 현재 블록의 상측 주변 샘플들 중에서, 상기 예측 샘플의 x 좌표와 동일한 위치에 있는 제1 샘플 및 상기 현재 블록 내의 가장 큰 x 좌표보다 더 큰 x 좌표 위치에 있는 제2 샘플; 및
상기 현재 블록의 좌측 주변 샘플들 중에서, 상기 예측 샘플의 y 좌표와 동일한 위치에 있는 제3 샘플 및 상기 현재 블록 내의 가장 큰 y 좌표보다 더 큰 y 좌표 위치에 있는 제4 샘플을 포함하는 것을 특징으로 하는 영상 인코딩 장치.A video encoding apparatus comprising:
Determine the intra prediction mode of the current block as the planar mode, generate prediction mode information for the intra prediction mode, derive 4 surrounding reference samples for the current block that is the planar mode, and the 4 surrounding reference a prediction unit for deriving a prediction sample in the current block by using the samples;
a subtraction unit for deriving a residual sample based on the prediction sample;
a transform unit for deriving transform coefficients based on the residual sample;
a quantization unit for deriving a quantized transform coefficient based on the transform coefficient; and
An entropy encoding unit for encoding image information including residual information on the prediction mode information and the quantized transform coefficients,
The four peripheral reference samples are
a first sample at the same position as the x-coordinate of the prediction sample and a second sample at an x-coordinate position greater than the largest x-coordinate within the current block, among samples around the upper side of the current block; and
Among the samples around the left of the current block, a third sample at the same position as the y-coordinate of the prediction sample and a fourth sample at a y-coordinate position greater than the largest y-coordinate in the current block are included. video encoding device.
Applications Claiming Priority (10)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201061426480P | 2010-12-22 | 2010-12-22 | |
US61/426,480 | 2010-12-22 | ||
US201161471185P | 2011-04-03 | 2011-04-03 | |
US61/471,185 | 2011-04-03 | ||
US201161475636P | 2011-04-14 | 2011-04-14 | |
US61/475,636 | 2011-04-14 | ||
US201161476311P | 2011-04-17 | 2011-04-17 | |
US61/476,311 | 2011-04-17 | ||
PCT/KR2011/009954 WO2012087034A2 (en) | 2010-12-22 | 2011-12-21 | Intra prediction method and apparatus using the method |
KR1020207017549A KR20200075040A (en) | 2010-12-22 | 2011-12-21 | Intra prediction method and apparatus using the method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020207017549A Division KR20200075040A (en) | 2010-12-22 | 2011-12-21 | Intra prediction method and apparatus using the method |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20210111901A true KR20210111901A (en) | 2021-09-13 |
Family
ID=63250526
Family Applications (5)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020207017549A KR20200075040A (en) | 2010-12-22 | 2011-12-21 | Intra prediction method and apparatus using the method |
KR1020217028387A KR20210111901A (en) | 2010-12-22 | 2011-12-21 | Intra prediction method and apparatus using the method |
KR1020197000685A KR102038818B1 (en) | 2010-12-22 | 2011-12-21 | Intra prediction method and apparatus using the method |
KR1020187021535A KR101938389B1 (en) | 2010-12-22 | 2011-12-21 | Intra prediction method and apparatus using the method |
KR1020197031550A KR102125969B1 (en) | 2010-12-22 | 2011-12-21 | Intra prediction method and apparatus using the method |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020207017549A KR20200075040A (en) | 2010-12-22 | 2011-12-21 | Intra prediction method and apparatus using the method |
Family Applications After (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020197000685A KR102038818B1 (en) | 2010-12-22 | 2011-12-21 | Intra prediction method and apparatus using the method |
KR1020187021535A KR101938389B1 (en) | 2010-12-22 | 2011-12-21 | Intra prediction method and apparatus using the method |
KR1020197031550A KR102125969B1 (en) | 2010-12-22 | 2011-12-21 | Intra prediction method and apparatus using the method |
Country Status (1)
Country | Link |
---|---|
KR (5) | KR20200075040A (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100723403B1 (en) * | 2005-02-28 | 2007-05-30 | 삼성전자주식회사 | A prediction image generating method and apparatus using using single coding mode among color components, and an image and video encoding/decoding method and apparatus using it |
EP2924994B1 (en) * | 2008-05-07 | 2016-09-21 | LG Electronics, Inc. | Method and apparatus for decoding video signal |
KR101361005B1 (en) * | 2008-06-24 | 2014-02-13 | 에스케이 텔레콤주식회사 | Intra Prediction Method and Apparatus and Image Encoding/Decoding Method and Apparatus Using Same |
-
2011
- 2011-12-21 KR KR1020207017549A patent/KR20200075040A/en not_active IP Right Cessation
- 2011-12-21 KR KR1020217028387A patent/KR20210111901A/en not_active Application Discontinuation
- 2011-12-21 KR KR1020197000685A patent/KR102038818B1/en active IP Right Grant
- 2011-12-21 KR KR1020187021535A patent/KR101938389B1/en active IP Right Grant
- 2011-12-21 KR KR1020197031550A patent/KR102125969B1/en active IP Right Grant
Also Published As
Publication number | Publication date |
---|---|
KR102038818B1 (en) | 2019-10-31 |
KR101938389B1 (en) | 2019-01-14 |
KR20200075040A (en) | 2020-06-25 |
KR20190124333A (en) | 2019-11-04 |
KR20180088504A (en) | 2018-08-03 |
KR20190006085A (en) | 2019-01-16 |
KR102125969B1 (en) | 2020-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11622129B2 (en) | Intra prediction method and apparatus using the method | |
KR102288526B1 (en) | Intra prediction method of chrominance block using luminance sample, and apparatus using same | |
KR101911012B1 (en) | Method for managing a reference picture list, and apparatus using same | |
WO2012115420A2 (en) | Intra-prediction method using filtering, and apparatus using the method | |
KR20170108367A (en) | Method and apparatus for processing a video signal based on intra prediction | |
CN113507603B (en) | Image signal encoding/decoding method and apparatus therefor | |
KR102378803B1 (en) | A method of decoding a video signal and an apparatus having the same | |
KR102435445B1 (en) | Method and apparatus for encoding/decoding a video signal | |
KR102125969B1 (en) | Intra prediction method and apparatus using the method | |
KR102410326B1 (en) | Method and apparatus for encoding/decoding a video signal | |
KR20220040451A (en) | A method of decoding a video signal and an apparatus having the same | |
KR20180000886A (en) | Method and apparatus for processing a video signal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A107 | Divisional application of patent | ||
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E601 | Decision to refuse application | ||
E601 | Decision to refuse application | ||
E801 | Decision on dismissal of amendment |