KR20160055772A - Method for predicting quantization parameter based on intra prediction mode and apparatus using the same - Google Patents

Method for predicting quantization parameter based on intra prediction mode and apparatus using the same Download PDF

Info

Publication number
KR20160055772A
KR20160055772A KR1020160055723A KR20160055723A KR20160055772A KR 20160055772 A KR20160055772 A KR 20160055772A KR 1020160055723 A KR1020160055723 A KR 1020160055723A KR 20160055723 A KR20160055723 A KR 20160055723A KR 20160055772 A KR20160055772 A KR 20160055772A
Authority
KR
South Korea
Prior art keywords
block
prediction
current block
prediction mode
unit
Prior art date
Application number
KR1020160055723A
Other languages
Korean (ko)
Inventor
이배근
권재철
Original Assignee
주식회사 케이티
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 케이티 filed Critical 주식회사 케이티
Publication of KR20160055772A publication Critical patent/KR20160055772A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/117Filters, e.g. for pre-processing or post-processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • H04N19/126Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]

Landscapes

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

Abstract

Disclosed are a method for predicting a quantization coefficient based on an intra prediction mode and an apparatus using the same. The method comprises: a step of selecting a reference adjacent block as a reference for predicting a quantization coefficient based on an intra prediction mode of the current block; a step of determining an estimated value of a quantization coefficient of the current block based on a quantization coefficient of the reference adjacent block; and a step of acquiring and reverse-quantizing the quantization coefficient of the current block by adding the estimated value of the quantization coefficient to a differential value of a decoded quantization coefficient of the current block. The present invention provides a method for predicting a quantization coefficient based on an intra prediction mode so as to improve image encoding / decoding efficiency.

Description

인트라 예측 모드를 기초로 양자화 계수를 예측하는 방법 및 이를 이용하는 장치{METHOD FOR PREDICTING QUANTIZATION PARAMETER BASED ON INTRA PREDICTION MODE AND APPARATUS USING THE SAME}BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for predicting a quantization coefficient based on an intra-

본 발명은 영상의 부호화/복호화에 관한 것으로, 보다 상세하게는 인트라 예측 모드를 기초로 현재 블록의 양자화 계수를 예측하여 양자화/역양자화하는 방법 및 장치에 관한 것이다. More particularly, the present invention relates to a method and apparatus for predicting a quantization coefficient of a current block based on an intra prediction mode to quantize / dequantize the same.

최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 응용 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 데이터량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 저장하는 경우, 전송 비용과 저장 비용이 증가하게 된다. 영상 데이터가 고해상도, 고품질화 됨에 따라 발생하는 이러한 문제들을 해결하기 위해서는 고효율의 영상 압축 기술들이 활용될 수 있다.Recently, the demand for high resolution and high quality images such as high definition (HD) image and ultra high definition (UHD) image is increasing in various applications. As the image data has high resolution and high quality, the amount of data increases relative to the existing image data. Therefore, when the image data is transmitted using a medium such as a wired / wireless broadband line or stored using an existing storage medium, The storage cost is increased. High-efficiency image compression techniques can be utilized to solve such problems as image data becomes high-resolution and high-quality.

영상 압축 기술로 현재 픽처의 이전 또는 이후 픽처로부터 현재 픽처에 포함된 화소값을 예측하는 화면 간 예측 기술, 현재 픽처 내의 화소 정보를 이용하여 현재 픽처에 포함된 화소값을 예측하는 화면 내 예측 기술, 출현 빈도가 높은 값에 짧은 부호를 할당하고 출현 빈도가 낮은 값에 긴 부호를 할당하는 엔트로피 부호화 기술 등 다양한 기술이 존재하고 이러한 영상 압축 기술을 이용해 영상 데이터를 효과적으로 압축하여 전송 또는 저장할 수 있다.An inter picture prediction technique for predicting a pixel value included in a current picture from a previous or a subsequent picture of a current picture by an image compression technique, an intra picture prediction technique for predicting a pixel value included in a current picture using pixel information in a current picture, There are various techniques such as an entropy encoding technique in which a short code is assigned to a value having a high appearance frequency and a long code is assigned to a value having a low appearance frequency. Image data can be effectively compressed and transmitted or stored using such an image compression technique.

본 발명은 영상의 부호화/복호화 효율을 증가시키기 위한 인트라 예측 모드를 기반으로 양자화 계수를 예측하는 방법을 제공한다. The present invention provides a method of predicting a quantization coefficient based on an intra prediction mode for increasing a coding / decoding efficiency of an image.

본 발명은 영상의 부호화/복호화 효율을 증가시키기 위한 인트라 예측 모드를 기반으로 양자화 계수를 예측하는 방법을 수행하는 장치를 제공하는 것이다.The present invention provides an apparatus for performing a method of predicting a quantization coefficient based on an intra prediction mode for increasing a coding / decoding efficiency of an image.

본 발명의 일 양태에 따르면, 영상 복호화 방법이 제공된다. 상기 방법은 현재 블록의 인트라 예측 모드를 기초로 양자화 계수 예측에 참조할 참조 주변 블록을 선정하는 단계, 상기 참조 주변 블록의 양자화 계수를 기반으로 상기 현재 블록의 양자화 계수 예측값을 결정하는 단계 및 상기 양자화 계수 예측값과 상기 현재 블록의 복호화된 양자화 계수 차분값을 더해서 상기 현재 블록의 양자화 계수를 획득하여 역양자화하는 단계를 포함한다. According to one aspect of the present invention, a video decoding method is provided. The method includes the steps of: selecting a reference neighboring block to be referred to in a quantization coefficient prediction based on an intra prediction mode of a current block; determining a quantized coefficient prediction value of the current block based on a quantization coefficient of the reference neighboring block; And obtaining a quantized coefficient of the current block by adding the predicted coefficient value and the decoded quantization coefficient difference value of the current block, and dequantizing the quantized coefficient.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 수직 방향성 예측 모드이면 상기 현재 블록의 상단에 위치한 상단 블록을 상기 참조 주변 블록으로 선정할 수 있다. In the reference neighboring block selection step, if the intra prediction mode is the vertical direction prediction mode, the upper block positioned at the upper end of the current block may be selected as the reference neighboring block.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 수평 방향성 예측 모드이면 상기 현재 블록의 좌측에 위치한 좌측 블록을 상기 참조 주변 블록으로 선정할 수 있다.In the reference neighboring block selection step, if the intra prediction mode is the horizontal direction prediction mode, the left block located on the left side of the current block may be selected as the reference neighboring block.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 수직 방향성 및 수평 방향성을 제외한 나머지 방향성 예측 모드이면 상기 현재 블록의 상단, 좌측, 상단 우측 및 좌측 하단에 위치한 블록 중 적어도 하나의 블록을 상기 참조 주변 블록으로 선정할 수 있다.If the intra prediction mode is the remaining directional prediction mode excluding the vertical direction and the horizontal direction, at least one block among the blocks located at the upper, left, upper right, and lower left end of the current block is referred to as the reference peripheral It can be selected as a block.

상기 인트라 예측 모드의 방향성을 기초로 상기 참조 주변 블록의 양자화 계수에 가중치를 적용하여 상기 현재 블록의 양자화 계수 예측값을 결정할 수 있다.Prediction coefficients of the current block can be determined by applying weights to the quantization coefficients of the reference neighboring blocks based on the directionality of the intra prediction mode.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 상기 수직 방향성 예측 모드를 기준으로 시계 방향으로 각도를 가지는 예측 모드이면 상기 현재 블록의 상단에 위치한 상단 블록 및 상단 우측에 위치한 상단 우측 블록을 상기 참조 주변 블록으로 선정하고, 상기 인트라 예측 모드의 방향성을 기초로 상기 상단 블록 및 상기 상단 우측 블록의 양자화 계수에 가중치를 적용하여 상기 현재 블록의 양자화 계수 예측값을 결정할 수 있다.If the intra prediction mode is a prediction mode having an angle in the clockwise direction with respect to the vertical direction prediction mode in the reference peripheral block selection step, the upper block positioned at the upper end of the current block and the upper right block positioned at the upper right end are referred to as the reference Prediction coefficients of the current block by applying weights to the quantization coefficients of the upper block and the upper right block based on the direction of the intra prediction mode.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 상기 수직 방향성 예측 모드를 기준으로 반시계 방향으로 각도를 가지는 예측 모드이면 상기 현재 블록의 상단에 위치한 상단 블록 및 좌측에 위치한 좌측 블록을 상기 참조 주변 블록으로 선정하고, 상기 인트라 예측 모드의 방향성을 기초로 상기 상단 블록 및 상기 좌측 블록의 양자화 계수에 가중치를 적용하여 상기 현재 블록의 양자화 계수 예측값을 결정할 수 있다.If the intra prediction mode is a prediction mode having an angle in a counterclockwise direction with respect to the vertical direction prediction mode in the reference peripheral block selection step, the upper block positioned at the upper end of the current block and the left block located at the left side are referred to as reference surroundings Prediction coefficients of the current block by applying weights to the quantization coefficients of the upper block and the left block based on the direction of the intra prediction mode.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 상기 수평 방향성 예측 모드를 기준으로 시계 방향으로 각도를 가지는 예측 모드이면 상기 현재 블록의 좌측에 위치한 좌측 블록 및 상단에 위치한 상단 블록을 상기 참조 주변 블록으로 선정하고, 상기 인트라 예측 모드의 방향성을 기초로 상기 좌측 블록 및 상기 상단 블록의 양자화 계수에 가중치를 적용하여 상기 현재 블록의 양자화 계수 예측값을 결정할 수 있다.If the intra prediction mode is a prediction mode having an angle in the clockwise direction with respect to the horizontal direction prediction mode in the reference peripheral block selection step, the left block located at the left side of the current block and the upper block positioned at the upper side are referred to as the reference neighboring block Prediction coefficients of the current block by applying weights to the quantization coefficients of the left block and the upper block on the basis of the directionality of the intra prediction mode.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 상기 수평 방향성 예측 모드를 기준으로 반시계 방향으로 각도를 가지는 예측 모드이면 상기 현재 블록의 좌측에 위치한 좌측 블록 및 좌측 하단에 위치한 좌측 하단 블록을 상기 참조 주변 블록으로 선정하고, 상기 인트라 예측 모드의 방향성을 기초로 상기 좌측 블록 및 상기 좌측 하단 블록의 양자화 계수에 가중치를 적용하여 상기 현재 블록의 양자화 계수 예측값을 결정할 수 있다.Wherein if the intra prediction mode is a prediction mode having an anticlockwise angle with respect to the horizontal direction prediction mode in the reference peripheral block selection step, the left block positioned at the left side of the current block and the lower left block located at the lower left side, And a quantization coefficient prediction value of the current block can be determined by applying a weight to the quantization coefficients of the left block and the lower left block based on the directionality of the intra prediction mode.

본 발명의 다른 양태에 따르면, 영상 복호화 장치가 제공된다. 상기 영상 복호화 장치는 현재 블록의 인트라 예측 모드 정보를 복호화하는 엔트로피 복호화부 및 상기 복호화된 현재 블록의 인트라 예측 모드를 기초로 양자화 계수 예측에 참조할 참조 주변 블록을 선정하고, 상기 선정된 참조 주변 블록의 양자화 계수를 기반으로 상기 현재 블록의 양자화 계수 예측값을 결정하고, 상기 양자화 계수 예측값과 상기 현재 블록의 복호화된 양자화 계수 차분값을 더해서 상기 현재 블록의 양자화 계수를 획득하여 역양자화하는 역양자화부를 포함한다.According to another aspect of the present invention, an image decoding apparatus is provided. The image decoding apparatus includes an entropy decoding unit decoding an intra prediction mode information of a current block and a reference neighboring block to be referred to a quantization coefficient prediction based on the intra prediction mode of the decoded current block, And a dequantizer for obtaining the quantized coefficients of the current block by adding the quantized coefficient predicted values and the decoded quantized coefficient difference values of the current block based on the quantized coefficients of the current block, do.

본 발명의 다른 양태에 따르면, 영상 부호화 방법이 제공된다. 상기 방법은 현재 블록의 인트라 예측 모드를 기초로 양자화 계수 예측에 참조할 참조 주변 블록을 선정하는 단계, 상기 참조 주변 블록의 양자화 계수를 기반으로 상기 현재 블록의 양자화 계수 예측값을 결정하는 단계 및 상기 현재 블록의 양자화 계수에서 상기 양자화 계수 예측값을 차분한 양자화 계수 차분값을 부호화하는 단계를 포함한다. According to another aspect of the present invention, a video encoding method is provided. The method includes the steps of: selecting a reference neighboring block to be referred to in a quantization coefficient prediction based on an intra prediction mode of a current block; determining a quantized coefficient prediction value of the current block based on a quantization coefficient of the reference neighboring block; And encoding the quantized coefficient difference value obtained by subtracting the quantized coefficient predicted value from the quantized coefficient of the block.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 수직 방향성 예측 모드이면 상기 현재 블록의 상단에 위치한 상단 블록을 상기 참조 주변 블록으로 선정할 수 있다.In the reference neighboring block selection step, if the intra prediction mode is the vertical direction prediction mode, the upper block positioned at the upper end of the current block may be selected as the reference neighboring block.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 수평 방향성 예측 모드이면 상기 현재 블록의 좌측에 위치한 좌측 블록을 상기 참조 주변 블록으로 선정할 수 있다.In the reference neighboring block selection step, if the intra prediction mode is the horizontal direction prediction mode, the left block located on the left side of the current block may be selected as the reference neighboring block.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 수직 방향성 및 수평 방향성을 제외한 나머지 방향성 예측 모드이면 상기 현재 블록의 상단, 좌측, 상단 우측 및 좌측 하단에 위치한 블록 중 적어도 하나의 블록을 상기 참조 주변 블록으로 선정할 수 있다.If the intra prediction mode is the remaining directional prediction mode excluding the vertical direction and the horizontal direction, at least one block among the blocks located at the upper, left, upper right, and lower left end of the current block is referred to as the reference peripheral It can be selected as a block.

상기 인트라 예측 모드의 방향성을 기초로 상기 참조 주변 블록의 양자화 계수에 가중치를 적용하여 상기 현재 블록의 양자화 계수 예측값을 결정할 수 있다.Prediction coefficients of the current block can be determined by applying weights to the quantization coefficients of the reference neighboring blocks based on the directionality of the intra prediction mode.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 상기 수직 방향성 예측 모드를 기준으로 시계 방향으로 각도를 가지는 예측 모드이면 상기 현재 블록의 상단에 위치한 상단 블록 및 상단 우측에 위치한 상단 우측 블록을 상기 참조 주변 블록으로 선정하고, 상기 인트라 예측 모드의 방향성을 기초로 상기 상단 블록 및 상기 상단 우측 블록의 양자화 계수에 가중치를 적용하여 상기 현재 블록의 양자화 계수 예측값을 결정할 수 있다.If the intra prediction mode is a prediction mode having an angle in the clockwise direction with respect to the vertical direction prediction mode in the reference peripheral block selection step, the upper block positioned at the upper end of the current block and the upper right block positioned at the upper right end are referred to as the reference Prediction coefficients of the current block by applying weights to the quantization coefficients of the upper block and the upper right block based on the direction of the intra prediction mode.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 상기 수직 방향성 예측 모드를 기준으로 반시계 방향으로 각도를 가지는 예측 모드이면 상기 현재 블록의 상단에 위치한 상단 블록 및 좌측에 위치한 좌측 블록을 상기 참조 주변 블록으로 선정하고, 상기 인트라 예측 모드의 방향성을 기초로 상기 상단 블록 및 상기 좌측 블록의 양자화 계수에 가중치를 적용하여 상기 현재 블록의 양자화 계수 예측값을 결정할 수 있다.If the intra prediction mode is a prediction mode having an angle in a counterclockwise direction with respect to the vertical direction prediction mode in the reference peripheral block selection step, the upper block positioned at the upper end of the current block and the left block located at the left side are referred to as reference surroundings Prediction coefficients of the current block by applying weights to the quantization coefficients of the upper block and the left block based on the direction of the intra prediction mode.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 상기 수평 방향성 예측 모드를 기준으로 시계 방향으로 각도를 가지는 예측 모드이면 상기 현재 블록의 좌측에 위치한 좌측 블록 및 상단에 위치한 상단 블록을 상기 참조 주변 블록으로 선정하고, 상기 인트라 예측 모드의 방향성을 기초로 상기 좌측 블록 및 상기 상단 블록의 양자화 계수에 가중치를 적용하여 상기 현재 블록의 양자화 계수 예측값을 결정할 수 있다.If the intra prediction mode is a prediction mode having an angle in the clockwise direction with respect to the horizontal direction prediction mode in the reference peripheral block selection step, the left block located at the left side of the current block and the upper block positioned at the upper side are referred to as the reference neighboring block Prediction coefficients of the current block by applying weights to the quantization coefficients of the left block and the upper block on the basis of the directionality of the intra prediction mode.

상기 참조 주변 블록 선정 단계에서, 상기 인트라 예측 모드가 상기 수평 방향성 예측 모드를 기준으로 반시계 방향으로 각도를 가지는 예측 모드이면 상기 현재 블록의 좌측에 위치한 좌측 블록 및 좌측 하단에 위치한 좌측 하단 블록을 상기 참조 주변 블록으로 선정하고, 상기 인트라 예측 모드의 방향성을 기초로 상기 좌측 블록 및 상기 좌측 하단 블록의 양자화 계수에 가중치를 적용하여 상기 현재 블록의 양자화 계수 예측값을 결정할 수 있다.Wherein if the intra prediction mode is a prediction mode having an anticlockwise angle with respect to the horizontal direction prediction mode in the reference peripheral block selection step, the left block positioned at the left side of the current block and the lower left block located at the lower left side, And a quantization coefficient prediction value of the current block can be determined by applying a weight to the quantization coefficients of the left block and the lower left block based on the directionality of the intra prediction mode.

본 발명의 다른 양태에 따르면, 영상 부호화 장치가 제공된다. 상기 영상 부호화 장치는 현재 블록의 인트라 예측 모드를 결정하는 예측부 및 상기 현재 블록의 인트라 예측 모드를 기초로 양자화 계수 예측에 참조할 참조 주변 블록을 선정하고, 상기 참조 주변 블록의 양자화 계수를 기반으로 상기 현재 블록의 양자화 계수 예측값을 결정하고, 상기 현재 블록의 양자화 계수에서 상기 양자화 계수 예측값을 차분한 차분값을 부호화하는 양자화부를 포함한다. According to another aspect of the present invention, an image encoding apparatus is provided. The image encoding apparatus includes a predictor for determining an intra prediction mode of a current block and a reference neighboring block to be referred to in quantization coefficient prediction based on an intra prediction mode of the current block and based on the quantization coefficient of the reference neighboring block And a quantization unit for determining a quantized coefficient predictive value of the current block and encoding a difference value obtained by subtracting the quantized coefficient predictive value from the quantized coefficient of the current block.

현재 부호화/복호화를 수행할 현재 블록의 인트라 예측 모드의 방향성을 기초로 양자화 계수 예측에 참조할 참조 주변 블록을 결정함으로써, 현재 블록의 양자화 계수와 비슷한 확률을 가진 참조 주변 블록의 양자화 계수를 이용하여 양자화/역양자화할 수 있다. 또한, 현재 블록의 인트라 예측 모드의 방향성에 따라 참조 주변 블록에 가중치를 적용함으로써 효율적으로 부호화/복호화할 수 있다. The reference neighboring block to be referred to in the quantization coefficient prediction is determined based on the direction of the intra prediction mode of the current block to be currently encoded / decoded. By using the quantization coefficient of the reference neighboring block having a similar probability to the quantization coefficient of the current block, Quantized / dequantized. In addition, it is possible to efficiently perform encoding / decoding by applying a weight to reference neighboring blocks according to the direction of the intra-prediction mode of the current block.

도 1은 본 발명의 일실시예에 따른 영상 부호화 장치를 나타낸 블록도이다.
도 2는 본 발명의 일실시예에 따른 영상 복호화 장치를 나타낸 블록도이다.
도 3은 본 발명의 실시예에 따른 인트라 예측 모드의 방향성에 따라 양자화 계수를 예측하는 방법을 설명하기 위한 도면이다.
도 4는 본 발명의 일실시예에 따른 인트라 예측 모드의 방향 및 모드값의 일예를 나타낸 도면이다.
도 5는 본 발명이 적용되는 영상 부호화 방법을 나타낸 순서도이다.
도 6은 본 발명이 적용되는 영상 복호화 방법을 나타낸 순서도이다.
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 decoding apparatus according to an embodiment of the present invention.
3 is a diagram for explaining a method of predicting a quantization coefficient according to a direction of an intra prediction mode according to an embodiment of the present invention.
4 is a diagram illustrating an example of direction and mode values of an intra-prediction mode according to an embodiment of the present invention.
5 is a flowchart illustrating an image encoding method to which the present invention is applied.
6 is a flowchart illustrating a video decoding method to which the present invention is applied.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the invention is not intended to be limited to the particular embodiments, but includes all modifications, equivalents, and alternatives falling within the spirit and scope of the invention. Like reference numerals are used for like elements in describing each drawing.

제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.The terms first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, the first component may be referred to as a second component, and similarly, the second component may also be referred to as a first component. And / or < / RTI > includes any combination of a plurality of related listed items or any of a plurality of related listed items.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어"있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어"있다거나 "직접 접속되어"있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.It is to be understood that when an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, . On the other hand, when an element is referred to as being "directly connected" or "directly connected" to another element, it should be understood that there are no other elements in between.

본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terminology used in this application is used only to describe a specific embodiment and is not intended to limit the invention. The singular expressions include plural expressions unless the context clearly dictates otherwise. In the present application, the terms "comprises" or "having" and the like are used to specify that there is a feature, a number, a step, an operation, an element, a component or a combination thereof described in the specification, But do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or combinations thereof.

이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Hereinafter, the same reference numerals will be used for the same constituent elements in the drawings, and redundant explanations for the same constituent elements will be omitted.

도 1은 본 발명의 일실시예에 따른 영상 부호화 장치를 나타낸 블록도이다. 1 is a block diagram illustrating an image encoding apparatus according to an embodiment of the present invention.

도 1을 참조하면, 영상 부호화 장치(100)는 픽처 분할부(110), 예측부(120, 125), 변환부(130), 양자화부(135), 재정렬부(160), 엔트로피 부호화부(165), 역양자화부(140), 역변환부(145), 필터부(150) 및 메모리(155)를 포함할 수 있다.1, an image encoding apparatus 100 includes a picture dividing unit 110, prediction units 120 and 125, a transform unit 130, a quantization unit 135, a reordering unit 160, an entropy encoding unit An inverse quantization unit 140, an inverse transform unit 145, a filter unit 150, and a memory 155. [

도 1에 나타난 각 구성부들은 영상 부호화 장치에서 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시한 것으로, 각 구성부들이 분리된 하드웨어나 하나의 소프트웨어 구성단위로 이루어짐을 의미하지 않는다. 즉, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수개의 구성부로 나뉘어져 기능을 수행할 수 있고 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벋어나지 않는 한 본 발명의 권리범위에 포함된다.Each of the components shown in FIG. 1 is shown independently to represent different characteristic functions in the image encoding apparatus, and does not mean that each component is composed of separate hardware or one software configuration unit. That is, each constituent unit is included in each constituent unit for convenience of explanation, and at least two constituent units of the constituent units may be combined to form one constituent unit, or one constituent unit may be divided into a plurality of constituent units to perform a function. The integrated embodiments and the separate embodiments of the components are also included in the scope of the present invention unless otherwise departing from the spirit of the present invention.

또한, 일부의 구성 요소는 본 발명에서 본질적인 기능을 수행하는 필수적인 구성 요소는 아니고 단지 성능을 향상시키기 위한 선택적 구성 요소일 수 있다. 본 발명은 단지 성능 향상을 위해 사용되는 구성 요소를 제외한 본 발명의 본질을 구현하는데 필수적인 구성부만을 포함하여 구현될 수 있고, 단지 성능 향상을 위해 사용되는 선택적 구성 요소를 제외한 필수 구성 요소만을 포함한 구조도 본 발명의 권리범위에 포함된다.In addition, some of the components are not essential components to perform essential functions in the present invention, but may be optional components only to improve performance. The present invention can be implemented only with components essential for realizing the essence of the present invention, except for the components used for the performance improvement, and can be implemented by only including the essential components except the optional components used for performance improvement Are also included in the scope of the present invention.

픽처 분할부(110)는 입력된 픽처를 적어도 하나의 처리 단위로 분할할 수 있다. 이때, 처리 단위는 예측 단위(Prediction Unit: PU)일 수도 있고, 변환 단위(Transform Unit: TU)일 수도 있으며, 부호화 단위(Coding Unit: CU)일 수도 있다. 픽처 분할부(110)에서는 하나의 픽처에 대해 복수의 부호화 단위, 예측 단위 및 변환 단위의 조합으로 분할하고 소정의 기준(예를 들어, 비용 함수)으로 하나의 부호화 단위, 예측 단위 및 변환 단위 조합을 선택하여 픽처를 부호화 할 수 있다. The picture division unit 110 may divide the input picture into at least one processing unit. At this time, the processing unit may be a prediction unit (PU), a transform unit (TU), or a coding unit (CU). The picture dividing unit 110 divides a picture into a plurality of coding units, a prediction unit, and a combination of conversion units, and generates a coding unit, a prediction unit, and a conversion unit combination To encode a picture.

예를 들어, 하나의 픽처는 복수개의 부호화 단위로 분할될 수 있다. 픽처에서 부호화 단위를 분할하기 위해서는 쿼드 트리 구조(Quad Tree Structure)와 같은 재귀적인 트리 구조를 사용할 수 있는데 하나의 영상 또는 최대 크기 부호화 단위를 루트로 하여 다른 부호화 단위로 분할되는 부호화 유닛은 분할된 부호화 단위의 개수만큼의 자식 노드를 가지고 분할될 수 있다. 일정한 제한에 따라 더 이상 분할되지 않는 부호화 단위는 리프 노드가 된다. 즉, 하나의 코딩 유닛에 대하여 정방형 분할만이 가능하다고 가정하는 경우, 하나의 부호화 단위는 최대 4개의 다른 부호화 단위로 분할될 수 있다.For example, one picture may be divided into a plurality of coding units. In order to divide an encoding unit in a picture, a recursive tree structure such as a quad tree structure can be used. An encoding unit, which is divided into other encoding units with one image or a maximum-size encoding unit as a root, Can be divided by the number of child nodes. Under certain constraints, an encoding unit that is no longer segmented becomes a leaf node. That is, when it is assumed that only one square division is possible for one coding unit, one coding unit can be divided into a maximum of four different coding units.

이하, 본 발명의 실시예에서는 부호화 단위의 의미를 부호화를 하는 단위라는 의미뿐만 아니라 복호화를 하는 단위의 의미로 사용할 수 있다.Hereinafter, in the embodiment of the present invention, the meaning of a coding unit can be used not only in the unit of coding but also in the meaning of a unit of decoding.

예측 단위는 하나의 부호화 단위 내에서 동일한 크기의 적어도 하나의 정사각형 또는 직사각형 등의 형태를 가지고 분할되거나 하나의 부호화 단위 내에서 분할된 예측 단위 중 하나의 예측 단위의 형태가 다른 예측 단위의 형태와 다른 형태를 가지고 분할될 수 있다.The prediction unit may be a prediction unit having a shape of at least one square or a rectangle having the same size in one coding unit or a shape of one prediction unit among the prediction units divided in one coding unit is different from the shape of another prediction unit It can be divided into shapes.

부호화 단위를 기초로 화면 내 예측을 수행하는 예측 단위를 생성시 최소 부호화 단위가 아닌 경우, 복수의 예측 단위(N x N)으로 분할하지 않고 화면 내 예측을 수행할 수 있다.It is possible to perform intra-picture prediction without dividing the prediction unit performing intra-picture prediction based on the coding unit into a plurality of prediction units (N x N) when the prediction unit is not the minimum coding unit at the time of generation.

예측부(120, 125)는 화면 간 예측을 수행하는 인터 예측부(120)와 화면 내 예측을 수행하는 인트라 예측부(125)를 포함할 수 있다. 예측 단위에 대해 화면 간 예측을 사용할 것인지 또는 화면 내 예측을 수행할 것인지를 결정하고, 각 예측 방법에 따른 구체적인 정보(예컨대, 화면 내 예측 모드, 움직임 벡터, 참조 픽처 등)를 결정할 수 있다. 이때, 예측이 수행되는 처리 단위와 예측 방법 및 구체적인 내용이 정해지는 처리 단위는 다를 수 있다. 예컨대, 예측의 방법과 예측 모드 등은 예측 단위로 결정되고, 예측의 수행은 변환 단위로 수행될 수도 있다. 생성된 예측 블록과 원본 블록 사이의 잔차값(잔차 블록)은 변환부(130)로 입력될 수 있다. 또한, 예측을 위해 사용한 예측 모드 정보, 움직임 벡터 정보 등은 잔차값과 함께 엔트로피 부호화부(165)에서 부호화되어 복호화기에 전달될 수 있다. 특정한 부호화 모드를 사용할 경우, 예측부(120, 125)를 통해 예측 블록을 생성하지 않고, 원본 블록을 그대로 부호화하여 복호화부에 전송하는 것도 가능하다.The prediction units 120 and 125 may include an inter-prediction unit 120 for performing inter-picture prediction and an intra-prediction unit 125 for performing intra-picture prediction. It is possible to determine whether to use intra-picture prediction or intra-picture prediction for a prediction unit, and to determine concrete information (for example, intra-picture prediction mode, motion vector, reference picture, etc.) according to each prediction method. At this time, the processing unit in which the prediction is performed may be different from the processing unit in which the prediction method and the concrete contents are determined. For example, the method of prediction, the prediction mode and the like are determined as a prediction unit, and the execution of the prediction may be performed in a conversion unit. The residual value (residual block) between the generated prediction block and the original block can be input to the conversion unit 130. [ In addition, the prediction mode information, motion vector information, and the like used for the prediction may be encoded by the entropy encoding unit 165 together with the residual value and transmitted to the decoder. When a particular encoding mode is used, it is also possible to directly encode the original block and transmit it to the decoding unit without generating a prediction block through the prediction units 120 and 125.

인터 예측부(120)는 현재 픽처의 이전 픽처 또는 이후 픽처 중 적어도 하나의 픽처의 정보를 기초로 예측 단위를 예측할 수 있다. 인터 예측부(120)는 참조 픽처 보간부, 움직임 예측부, 움직임 보상부를 포함할 수 있다. The inter prediction unit 120 may predict a prediction unit based on information of at least one of a previous picture or a following picture of the current picture. The inter-prediction unit 120 may include a reference picture interpolator, a motion estimator, and a motion compensator.

참조 픽처 보간부에서는 메모리(155)로부터 참조 픽처 정보를 제공받고 참조 픽처에서 정수 화소 이하의 화소 정보를 생성할 수 있다. 휘도 화소의 경우, 1/4 화소 단위로 정수 화소 이하의 화소 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 8탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다. 색차 신호의 경우 1/8 화소 단위로 정수 화소 이하의 화소 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 4탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다.In the reference picture interpolating unit, reference picture information is supplied from the memory 155 and pixel information of an integer pixel or less can be generated in the reference picture. In the case of a luminance pixel, a DCT-based interpolation filter having a different filter coefficient may be used to generate pixel information of an integer number of pixels or less in units of quarter pixels. In the case of a color difference signal, a DCT-based 4-tap interpolation filter having a different filter coefficient may be used to generate pixel information of an integer number of pixels or less in units of 1/8 pixel.

움직임 예측부는 참조 픽처 보간부에 의해 보간된 참조 픽처를 기초로 움직임 예측을 수행할 수 있다. 움직임 벡터를 산출하기 위한 방법으로 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 interpolating unit. Various methods such as Full Search-based Block Matching Algorithm (FBMA), Three Step Search (TSS), and New Three-Step Search Algorithm (NTS) can be used to calculate motion vectors. 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 can predict the current prediction unit by differently performing the 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 can be used.

인트라 예측부(125)는 현재 픽처 내의 화소 정보인 현재 블록 주변의 참조 픽셀 정보를 기초로 예측 단위를 생성할 수 있다. 현재 예측 단위의 주변 블록이 화면 간 예측을 수행한 블록이어서, 참조 픽셀이 화면 간 예측을 수행한 픽셀일 경우, 화면 간 예측을 수행한 블록에 포함되는 참조 픽셀을 주변의 화면 내 예측을 수행한 블록의 참조 픽셀 정보로 대체하여 사용할 수 있다. 즉, 참조 픽셀이 가용하지 않는 경우, 가용하지 않은 참조 픽셀 정보를 가용한 참조 픽셀 중 적어도 하나의 참조 픽셀로 대체하여 사용할 수 있다.The intra prediction unit 125 can generate a prediction unit based on reference pixel information around the current block which is pixel information in the current picture. In the case where the neighboring blocks of the current prediction unit are the blocks in which the inter-screen prediction is performed, and the reference pixels are the pixels performing the inter-screen prediction, the intra-picture prediction is performed on the reference pixels included in the block in which the inter- Block reference pixel information. That is, when the reference pixel is not available, the reference pixel information that is not available may be replaced by at least one reference pixel among the available reference pixels.

화면 내 예측에서 예측 모드는 참조 픽셀 정보를 예측 방향에 따라 사용하는 방향성 예측 모드와 예측을 수행시 방향성 정보를 사용하지 않는 비방향성 모드를 가질 수 있다. 휘도 정보를 예측하기 위한 모드와 색차 정보를 예측하기 위한 모드가 상이할 수 있고, 색차 정보를 예측하기 위해 휘도 정보를 예측한 화면 내 예측 모드 정보 또는 예측된 휘도 신호 정보를 활용할 수 있다.In the 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 prediction information is not used. The mode for predicting the luminance information may be different from the mode for predicting the chrominance information, and intra prediction mode information or predicted luminance signal information in which luminance information is predicted can be used to predict the chrominance information.

화면 내 예측을 수행할 때 예측 단위의 크기와 변환 단위의 크기가 동일할 경우, 예측 단위의 좌측에 존재하는 픽셀, 좌측 상단에 존재하는 픽셀, 상단에 존재하는 픽셀을 기초로 예측 단위에 대한 화면 내 예측을 수행할 수 있다. 그러나 화면 내 예측을 수행할 때 예측 단위의 크기와 변환 단위의 크기가 상이할 경우, 변환 단위를 기초로 한 참조 픽셀을 이용하여 화면 내 예측을 수행할 수 있다. 또한, 최소 부호화 단위에 대해서만 N x N 분할을 사용하는 화면 내 예측을 사용할 수 있다.When intra prediction is performed, when the size of the prediction unit is the same as the size of the conversion unit, on the basis of the pixel existing on the left side of the prediction unit, the pixel existing on the upper left side, I can perform my prediction. However, if the size of the prediction unit differs from the size of the conversion unit when intra prediction is performed, the intra prediction can be performed using the reference pixel based on the conversion unit. It is also possible to use intra prediction using N x N divisions for only the minimum coding unit.

화면 내 예측 방법은 예측 모드에 따라 참조 화소에 AIS(Adaptive Intra Smoothing) 필터를 적용한 후 예측 블록을 생성할 수 있다. 참조 화소에 적용되는 AIS 필터의 종류는 상이할 수 있다. 화면 내 예측 방법을 수행하기 위해 현재 예측 단위의 화면 내 예측 모드는 현재 예측 단위의 주변에 존재하는 예측 단위의 화면 내 예측 모드로부터 예측할 수 있다. 주변 예측 단위로부터 예측된 모드 정보를 이용하여 현재 예측 단위의 예측 모드를 예측하는 경우, 현재 예측 단위와 주변 예측 단위의 화면 내 예측 모드가 동일하면 소정의 플래그 정보를 이용하여 현재 예측 단위와 주변 예측 단위의 예측 모드가 동일하다는 정보를 전송할 수 있고, 만약 현재 예측 단위와 주변 예측 단위의 예측 모드가 상이하면 엔트로피 부호화를 수행하여 현재 블록의 예측 모드 정보를 부호화할 수 있다. In the intra prediction method, an AIS (Adaptive Intra Smoothing) filter can be applied to a reference pixel according to a prediction mode, and a prediction block can be generated. The type of the AIS filter applied to the reference pixel may be different. To perform the intra prediction method, the intra prediction mode of the current prediction unit can be predicted from the intra prediction mode of the prediction unit existing around the current prediction unit. When the prediction mode of the current prediction unit is predicted using the mode information predicted from the peripheral prediction unit and the intra prediction mode of the current prediction unit is the same as the intra prediction mode of the current prediction unit, The prediction mode information of the current block can be encoded by performing entropy encoding if the prediction mode of the current prediction unit is different from the prediction mode of the neighbor prediction unit.

또한, 예측부(120, 125)에서 생성된 예측 단위를 기초로 예측을 수행한 예측 단위와 예측 단위의 원본 블록과 차이값인 잔차값(Residual) 정보를 포함하는 잔차 블록이 생성될 수 있다. 생성된 잔차 블록은 변환부(130)로 입력될 수 있다. In addition, a residual block including a prediction unit that has been predicted based on the prediction unit generated by the prediction units 120 and 125 and a residual value that is a difference value from the original block of the prediction unit may be generated. The generated residual block may be input to the transform unit 130. [

변환부(130)에서는 원본 블록과 예측부(120, 125)를 통해 생성된 예측 단위의 잔차값(residual)정보를 포함한 잔차 블록을 DCT(Discrete Cosine Transform) 또는 DST(Discrete Sine Transform)와 같은 변환 방법을 사용하여 변환시킬 수 있다. 잔차 블록을 변환하기 위해 DCT를 적용할지 DST를 적용할지는 잔차 블록을 생성하기 위해 사용된 예측 단위의 화면 내 예측 모드 정보를 기초로 결정할 수 있다. The transform unit 130 transforms the residual block including the residual information of the prediction unit generated through the original block and the predictors 120 and 125 into a transform such as DCT (Discrete Cosine Transform) or DST (Discrete Sine Transform) Method. ≪ / RTI > Whether to apply the DCT or the DST to transform the residual block can be determined based on the intra prediction mode information of the prediction unit used to generate the residual block.

양자화부(135)는 변환부(130)에서 주파수 영역으로 변환된 값들을 양자화할 수 있다. 블록에 따라 또는 영상의 중요도에 따라 양자화 계수는 변할 수 있다. 양자화부(135)에서 산출된 값은 역양자화부(140)와 재정렬부(160)에 제공될 수 있다.The quantization unit 135 may quantize the values converted into the frequency domain by the conversion unit 130. [ The quantization factor may vary depending on the block or the importance of the image. The values calculated by the quantization unit 135 may be provided to the inverse quantization unit 140 and the reorder unit 160.

재정렬부(160)는 양자화된 잔차값에 대해 계수값의 재정렬을 수행할 수 있다.The reordering unit 160 can reorder the coefficient values with respect to the quantized residual values.

재정렬부(160)는 계수 스캐닝(Coefficient Scanning) 방법을 통해 2차원의 블록 형태 계수를 1차원의 벡터 형태로 변경할 수 있다. 예를 들어, 재정렬부(160)에서는 업라이트(up right) 스캐닝을 이용하여 블록의 계수를 스캔함으로써 1차원 벡터 형태로 변경시킬 수 있다. 변환 단위의 크기 및 화면 내 예측 모드에 따라 업라이트 스캔 대신 2차원의 블록 형태 계수를 열 방향으로 스캔하는 수직 스캔, 2차원의 블록 형태 계수를 행 방향으로 스캔하는 수평 스캔이 사용될 수도 있다. 즉, 변환 단위의 크기 및 화면 내 예측 모드에 따라 업라이트 스캔, 수직 방향 스캔 및 수평 방향 스캔 중 어떠한 스캔 방법이 사용될지 여부를 결정할 수 있다.The reordering unit 160 may change the two-dimensional block type coefficient to a one-dimensional vector form through a coefficient scanning method. For example, the rearranging unit 160 may convert the coefficients of the block into a one-dimensional vector form by using up-right scanning. A vertical scan that scans two-dimensional block type coefficients in the column direction instead of the upright scan, and a horizontal scan that scans two-dimensional block type coefficients in the row direction may be used according to the size of the conversion unit and the intra prediction mode. That is, it is possible to determine whether any scan method among the upright scan, the vertical scan and the horizontal scan is to be used according to the size of the conversion unit and the intra prediction mode.

엔트로피 부호화부(165)는 재정렬부(160)에 의해 산출된 값들을 기초로 엔트로피 부호화를 수행할 수 있다. 엔트로피 부호화는 예를 들어, 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 부호화 방법을 사용할 수 있다.The entropy encoding unit 165 may perform entropy encoding based on the values calculated by the reordering unit 160. For entropy encoding, various encoding methods such as Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC) may be used.

엔트로피 부호화부(165)는 재정렬부(160) 및 예측부(120, 125)로부터 부호화 단위의 잔차값 계수 정보 및 블록 타입 정보, 예측 모드 정보, 분할 단위 정보, 예측 단위 정보 및 전송 단위 정보, 움직임 벡터 정보, 참조 프레임 정보, 블록의 보간 정보, 필터링 정보 등 다양한 정보를 부호화할 수 있다. The entropy encoding unit 165 receives the residual coefficient information of the encoding unit, the block type information, the prediction mode information, the division unit information, the prediction unit information, the transmission unit information, the motion Vector information, reference frame information, interpolation information of a block, filtering information, and the like.

엔트로피 부호화부(165)에서는 재정렬부(160)에서 입력된 부호화 단위의 계수값을 엔트로피 부호화할 수 있다. The entropy encoding unit 165 can entropy-encode the coefficient value of the encoding unit input by the reordering unit 160. [

역양자화부(140) 및 역변환부(145)에서는 양자화부(135)에서 양자화된 값들을 역양자화하고 변환부(130)에서 변환된 값들을 역변환한다. 역양자화부(140) 및 역변환부(145)에서 생성된 잔차값(Residual)은 예측부(120, 125)에 포함된 움직임 추정부, 움직임 보상부 및 인트라 예측부를 통해서 예측된 예측 단위와 합쳐져 복원 블록(Reconstructed Block)을 생성할 수 있다. The inverse quantization unit 140 and the inverse transformation unit 145 inverse quantize the quantized values in the quantization unit 135 and inversely transform the converted values in the conversion unit 130. [ The residual value generated by the inverse quantization unit 140 and the inverse transform unit 145 is combined with the prediction unit predicted through the motion estimation unit, the motion compensation unit and the intra prediction unit included in the prediction units 120 and 125, A block (Reconstructed Block) can be generated.

필터부(150)는 디블록킹 필터, 오프셋 보정부, ALF(Adaptive Loop Filter)중 적어도 하나를 포함할 수 있다. The filter unit 150 may include at least one of a deblocking filter, an offset correction unit, and an adaptive loop filter (ALF).

디블록킹 필터는 복원된 픽처에서 블록간의 경계로 인해 생긴 블록 왜곡을 제거할 수 있다. 디블록킹을 수행할지 여부를 판단하기 위해 블록에 포함된 몇 개의 열 또는 행에 포함된 픽셀을 기초로 현재 블록에 디블록킹 필터 적용할지 여부를 판단할 수 있다. 블록에 디블록킹 필터를 적용하는 경우 필요한 디블록킹 필터링 강도에 따라 강한 필터(Strong Filter) 또는 약한 필터(Weak Filter)를 적용할 수 있다. 또한 디블록킹 필터를 적용함에 있어 수직 필터링 및 수평 필터링 수행시 수평 방향 필터링 및 수직 방향 필터링이 병행 처리되도록 할 수 있다.The deblocking filter can remove the block distortion caused by the boundary between the blocks in the reconstructed picture. It may be determined whether to apply a deblocking filter to the current block based on pixels included in a few columns or rows included in the block to determine whether to perform deblocking. When a deblocking filter is applied to a block, a strong filter or a weak filter may be applied according to the deblocking filtering strength required. In applying the deblocking filter, horizontal filtering and vertical filtering may be performed concurrently in performing vertical filtering and horizontal filtering.

오프셋 보정부는 디블록킹을 수행한 영상에 대해 픽셀 단위로 원본 영상과의 오프셋을 보정할 수 있다. 특정 픽처에 대한 오프셋 보정을 수행하기 위해 영상에 포함된 픽셀을 일정한 수의 영역으로 구분한 후 오프셋을 수행할 영역을 결정하고 해당 영역에 오프셋을 적용하는 방법 또는 각 픽셀의 에지 정보를 고려하여 오프셋을 적용하는 방법을 사용할 수 있다.The offset correction unit may correct the offset of the deblocked image with respect to the original image in units of pixels. In order to perform offset correction for a specific picture, a method of dividing a pixel included in an image into a predetermined number of regions, determining an area to be offset and applying an offset to the corresponding area, or considering an edge of each pixel, Can be used.

ALF(Adaptive Loop Filtering)는 필터링한 복원 영상과 원래의 영상을 비교한 값을 기초로 수행될 수 있다. 영상에 포함된 픽셀을 소정의 그룹으로 나눈 후 해당 그룹에 적용될 하나의 필터를 결정하여 그룹마다 차별적으로 필터링을 수행할 수 있다. ALF를 적용할지 여부에 관련된 정보는 휘도 신호는 부호화 단위(Coding Unit, CU) 별로 전송될 수 있고, 각각의 블록에 따라 적용될 ALF 필터의 모양 및 필터 계수는 달라질 수 있다. 또한, 적용 대상 블록의 특성에 상관없이 동일한 형태(고정된 형태)의 ALF 필터가 적용될 수도 있다. Adaptive Loop Filtering (ALF) can be performed based on a comparison between 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 group may be determined and different filtering may be performed for each group. The information related to whether to apply the ALF may be transmitted for each coding unit (CU), and the shape and the filter coefficient of the ALF filter to be applied may be changed according to each block. Also, an ALF filter of the same type (fixed form) may be applied irrespective of the characteristics of the application target block.

메모리(155)는 필터부(150)를 통해 산출된 복원 블록 또는 픽처를 저장할 수 있고, 저장된 복원 블록 또는 픽처는 화면 간 예측을 수행 시 예측부(120, 125)에 제공될 수 있다. The memory 155 may store a reconstructed block or a picture calculated through the filter unit 150 and the reconstructed block or the picture may be provided to the predictor 120 or 125 when the inter-picture prediction is performed.

도 2는 본 발명의 일실시예에 따른 영상 복호화 장치를 나타낸 블록도이다.2 is a block diagram illustrating an image decoding apparatus according to an embodiment of the present invention.

도 2를 참조하면, 영상 복호화기(200)는 엔트로피 복호화부(210), 재정렬부(215), 역양자화부(220), 역변환부(225), 예측부(230, 235), 필터부(240), 메모리(245)가 포함될 수 있다.2, the image decoder 200 includes an entropy decoding unit 210, a reordering unit 215, an inverse quantization unit 220, an inverse transform unit 225, prediction units 230 and 235, 240, and a memory 245 may be included.

영상 부호화기에서 영상 비트스트림이 입력된 경우, 입력된 비트스트림은 영상 부호화기와 반대의 절차로 복호화될 수 있다.When an image bitstream is input in the image encoder, the input bitstream may be decoded in a procedure opposite to that of the image encoder.

엔트로피 복호화부(210)는 영상 부호화기의 엔트로피 부호화부에서 엔트로피 부호화를 수행한 것과 반대의 절차로 엔트로피 복호화를 수행할 수 있다. 예를 들어, 영상 부호화기에서 수행된 방법에 대응하여 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 방법이 적용될 수 있다. The entropy decoding unit 210 can perform entropy decoding in a procedure opposite to that in which entropy encoding is performed in the entropy encoding unit of the image encoder. For example, various methods such as Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC) may be applied in accordance with the method performed by the image encoder.

엔트로피 복호화부(210)에서는 부호화기에서 수행된 화면 내 예측 및 화면 간 예측에 관련된 정보를 복호화할 수 있다. The entropy decoding unit 210 can decode information related to intra-picture prediction and inter-picture prediction performed by the encoder.

재정렬부(215)는 엔트로피 복호화부(210)에서 엔트로피 복호화된 비트스트림을 부호화부에서 재정렬한 방법을 기초로 재정렬을 수행할 수 있다. 1차원 벡터 형태로 표현된 계수들을 다시 2차원의 블록 형태의 계수로 복원하여 재정렬할 수 있다. 재정렬부(215)에서는 부호화부에서 수행된 계수 스캐닝에 관련된 정보를 제공받고 해당 부호화부에서 수행된 스캐닝 순서에 기초하여 역으로 스캐닝하는 방법을 통해 재정렬을 수행할 수 있다. The reordering unit 215 can perform reordering based on a method in which the entropy decoding unit 210 rearranges the entropy-decoded bitstreams in the encoding unit. The coefficients represented by the one-dimensional vector form can be rearranged by restoring the coefficients of the two-dimensional block form again. The reordering unit 215 can perform reordering by receiving information related to the coefficient scanning performed by the encoding unit and performing a reverse scanning based on the scanning order performed by the encoding unit.

역양자화부(220)는 부호화기에서 제공된 양자화 파라미터와 재정렬된 블록의 계수값을 기초로 역양자화를 수행할 수 있다. The inverse quantization unit 220 can perform inverse quantization based on the quantization parameters provided by the encoder and the coefficient values of the re-arranged blocks.

역변환부(225)는 영상 부호화기에서 수행한 양자화 결과에 대해 변환부에서 수행한 DCT 및 DST에 대해 역 DCT 및 역 DST를 수행할 수 있다. 역변환은 영상 부호화기에서 결정된 전송 단위를 기초로 수행될 수 있다. 영상 부호화기의 변환부에서는 DCT와 DST는 예측 방법, 현재 블록의 크기 및 예측 방향 등 복수의 정보에 따라 선택적으로 수행될 수 있고, 영상 복호화기의 역변환부(225)에서는 영상 부호화기의 변환부에서 수행된 변환 정보를 기초로 역변환을 수행할 수 있다. The inverse transform unit 225 may perform inverse DCT and inverse DST on the DCT and DST performed by the transform unit on the quantization result performed by the image encoder. The inverse transform can be performed based on the transmission unit determined by the image encoder. In the transform unit of the image encoder, DCT and DST can be selectively performed according to a plurality of information such as a prediction method, a size and a prediction direction of a current block, and an inverse transform unit 225 of the image decoder performs transform The inverse transform can be performed based on the transformed information.

예측부(230, 235)는 엔트로피 복호화부(210)에서 제공된 예측 블록 생성 관련 정보와 메모리(245)에서 제공된 이전에 복호화된 블록 또는 픽처 정보를 기초로 예측 블록을 생성할 수 있다. The prediction units 230 and 235 may generate a prediction block based on the prediction block generation related information provided by the entropy decoding unit 210 and the previously decoded block or picture information provided in the memory 245. [

전술한 바와 같이 영상 부호화기에서의 동작과 동일하게 화면 내 예측을 수행시 예측 단위의 크기와 변환 단위의 크기가 동일할 경우, 예측 단위의 좌측에 존재하는 픽셀, 좌측 상단에 존재하는 픽셀, 상단에 존재하는 픽셀을 기초로 예측 단위에 대한 화면 내 예측을 수행하지만, 화면 내 예측을 수행시 예측 단위의 크기와 변환 단위의 크기가 상이할 경우, 변환 단위를 기초로 한 참조 픽셀을 이용하여 화면 내 예측을 수행할 수 있다. 또한, 최소 부호화 단위에 대해서만 N x N 분할을 사용하는 화면 내 예측을 사용할 수도 있다.As described above, when the intra prediction is performed in the same manner as in the image encoder, when the size of the prediction unit and the size of the conversion unit are the same, pixels located on the left side of the prediction unit, pixels located on the upper left side, The intra prediction is performed on the prediction unit on the basis of the existing pixel. However, when the intra prediction is performed, when the size of the prediction unit differs from the size of the conversion unit, Prediction can be performed. It is also possible to use an intra prediction in which N x N division is used only for the minimum coding unit.

예측부(230, 235)는 예측 단위 판별부, 화면 간 예측부 및 화면 내 예측부를 포함할 수 있다. 예측 단위 판별부는 엔트로피 복호화부(210)에서 입력되는 예측 단위 정보, 화면 내 예측 방법의 예측 모드 정보, 화면 간 예측 방법의 움직임 예측 관련 정보 등 다양한 정보를 입력 받고 현재 부호화 단위에서 예측 단위를 구분하고, 예측 단위가 화면 간 예측을 수행하는지 아니면 화면 내 예측을 수행하는지 여부를 판별할 수 있다. 인터 예측부(230)는 영상 부호화기에서 제공된 현재 예측 단위의 화면 간 예측에 필요한 정보를 이용해 현재 예측 단위가 포함된 현재 픽처의 이전 픽처 또는 이후 픽처 중 적어도 하나의 픽처에 포함된 정보를 기초로 현재 예측 단위에 대한 화면 간 예측을 수행할 수 있다.The prediction units 230 and 235 may include a prediction unit determination unit, an inter picture prediction unit, and an intra prediction unit. The prediction unit determination unit receives various information such as prediction unit information input from the entropy decoding unit 210, prediction mode information of the intra prediction method, motion prediction related information of the inter picture prediction method, and identifies prediction units in the current coding unit , It is possible to determine whether the prediction unit performs inter-picture prediction or intra-picture prediction. The inter prediction unit 230 predicts an inter prediction based on information included in at least one of a previous picture or a following picture of a current picture including a current prediction unit using information necessary for inter- It is possible to perform inter-picture prediction on a prediction unit.

화면 간 예측을 수행하기 위해 부호화 단위를 기준으로 해당 부호화 단위에 포함된 예측 단위의 움직임 예측 방법이 스킵 모드(Skip Mode), 머지 모드(Merge 모드), AMVP 모드(AMVP Mode) 중 어떠한 방법인지 여부를 판단할 수 있다. In order to perform the inter-picture prediction, whether the motion prediction method of the prediction unit included in the coding unit is based on a skip mode, a merge mode, or an AMVP mode Can be determined.

인트라 예측부(235)는 현재 픽처 내의 화소 정보를 기초로 예측 블록을 생성할 수 있다. 예측 단위가 화면 내 예측을 수행한 예측 단위인 경우, 영상 부호화기에서 제공된 예측 단위의 화면 내 예측 모드 정보를 기초로 화면 내 예측을 수행할 수 있다. 인트라 예측부(235)에는 AIS(Adaptive Intra Smoothing) 필터, 참조 화소 보간부, DC 필터를 포함할 수 있다. AIS 필터는 현재 블록의 참조 화소에 필터링을 수행하는 부분으로써 현재 예측 단위의 예측 모드에 따라 필터의 적용 여부를 결정하여 적용할 수 있다. 영상 부호화기에서 제공된 예측 단위의 예측 모드 및 AIS 필터 정보를 이용하여 현재 블록의 참조 화소에 AIS 필터링을 수행할 수 있다. 현재 블록의 예측 모드가 AIS 필터링을 수행하지 않는 모드일 경우, AIS 필터는 적용되지 않을 수 있다.The intra prediction unit 235 can generate a prediction block based on the pixel information in the current picture. If the prediction unit is a prediction unit that performs intra prediction, the intra prediction can be performed based on the intra prediction mode information of the prediction unit provided by the image encoder. The intraprediction unit 235 may include an AIS (Adaptive Intra Smoothing) filter, a reference pixel interpolator, and a DC filter. The AIS filter performs filtering on the reference pixels of the current block and can determine whether to apply the filter according to the prediction mode of the current prediction unit. The AIS filtering can be performed on the reference pixel of the current block using the prediction mode of the prediction unit provided in the image encoder and the AIS filter information. When the prediction mode of the current block is a mode in which AIS filtering is not performed, the AIS filter may not be applied.

참조 화소 보간부는 예측 단위의 예측 모드가 참조 화소를 보간한 화소값을 기초로 화면 내 예측을 수행하는 예측 단위일 경우, 참조 화소를 보간하여 정수값 이하의 화소 단위의 참조 화소를 생성할 수 있다. 현재 예측 단위의 예측 모드가 참조 화소를 보간하지 않고 예측 블록을 생성하는 예측 모드일 경우 참조 화소는 보간되지 않을 수 있다. DC 필터는 현재 블록의 예측 모드가 DC 모드일 경우 필터링을 통해서 예측 블록을 생성할 수 있다. The reference pixel interpolator may interpolate the reference pixels to generate reference pixels in units of pixels less than an integer value when the prediction mode of the prediction unit is a prediction unit that performs intra-frame prediction on the basis of the pixel value obtained by interpolating the reference pixels . The reference pixel may not be interpolated in the prediction mode in which the prediction mode of the current prediction unit generates the prediction block without interpolating the reference pixel. The DC filter can generate a prediction block through filtering when the prediction mode of the current block is the DC mode.

복원된 블록 또는 픽처는 필터부(240)로 제공될 수 있다. 필터부(240)는 디블록킹 필터, 오프셋 보정부, ALF를 포함할 수 있다.The restored block or picture may be provided to the filter unit 240. The filter unit 240 may include a deblocking filter, an offset correction unit, and an ALF.

영상 부호화기로부터 해당 블록 또는 픽처에 디블록킹 필터를 적용하였는지 여부에 대한 정보 및 디블록킹 필터를 적용하였을 경우, 강한 필터를 적용하였는지 또는 약한 필터를 적용하였는지에 대한 정보를 제공받을 수 있다. 영상 복호화기의 디블록킹 필터에서는 영상 부호화기에서 제공된 디블록킹 필터 관련 정보를 제공받고 영상 복호화기에서 해당 블록에 대한 디블록킹 필터링을 수행할 수 있다. Information on whether or not a deblocking filter is applied to the corresponding block or picture from the image encoder and information on whether a strong filter or a weak filter is applied can be provided when the deblocking filter is applied. In the deblocking filter of the video decoder, the deblocking filter related information provided by the video encoder is provided, and the video decoder can perform deblocking filtering for the corresponding block.

오프셋 보정부는 부호화시 영상에 적용된 오프셋 보정의 종류 및 오프셋 값 정보 등을 기초로 복원된 영상에 오프셋 보정을 수행할 수 있다.The offset correction unit may perform offset correction on the reconstructed image based on the type of offset correction applied to the image and the offset value information during encoding.

ALF는 부호화기로부터 제공된 ALF 적용 여부 정보, ALF 계수 정보 등을 기초로 부호화 단위에 적용될 수 있다. 이러한 ALF 정보는 특정한 파라메터 셋에 포함되어 제공될 수 있다.The ALF can be applied to an encoding unit on the basis of ALF application information and ALF coefficient information provided from an encoder. Such ALF information may be provided in a specific parameter set.

메모리(245)는 복원된 픽처 또는 블록을 저장하여 참조 픽처 또는 참조 블록으로 사용할 수 있도록 할 수 있고 또한 복원된 픽처를 출력부로 제공할 수 있다. The memory 245 may store the reconstructed picture or block to be used as a reference picture or a reference block, and may provide the reconstructed picture to the output unit.

전술한 바와 같이 이하, 본 발명의 실시예에서는 설명의 편의상 코딩 유닛(Coding Unit)을 부호화 단위라는 용어로 사용하지만, 부호화뿐만 아니라 복호화를 수행하는 단위가 될 수도 있다.As described above, in the embodiment of the present invention, a coding unit (coding unit) is used as a coding unit for convenience of explanation, but it may be a unit for performing not only coding but also decoding.

이하에서는 상술한 영상 부호화 장치 및 복호화 장치를 이용하여 인트라 예측 모드의 방향성에 따라 양자화 계수를 예측하고, 이를 기초로 양자화/역양자화하는 방법에 대해 설명한다.Hereinafter, a method of predicting a quantization coefficient according to the direction of an intra prediction mode using the image encoding apparatus and the decoding apparatus and quantizing / dequantizing the quantization coefficient will be described.

현재 예측 단위가 인트라 예측 모드인 경우, 현재 블록은 인트라 예측 모드의 방향성에 따라 주변 블록과 비슷한 양자화 계수를 가질 가능성이 높다. 예를 들어, 인트라 예측 모드가 수직 방향성에 가까운 예측 모드 값을 가지면 현재 블록의 좌측에 위치한 주변 블록보다 상단에 위치한 주변 블록과 비슷한 양자화 계수 값을 가질 가능성이 높고, 반면 인트라 예측 모드가 수평 방향성에 가까운 예측 모드 값을 가지면 현재 블록의 상단에 위치한 주변 블록보다 좌측에 위치한 주변 블록과 비슷한 양자화 계수 값을 가질 가능성이 높다. 따라서, 본 발명에서는 인트라 예측 모드의 방향성을 기초로 주변 블록의 양자화 계수를 이용하여 현재 블록의 양자화 계수를 예측하는 방법을 제공한다.If the current prediction unit is the intra prediction mode, the current block is likely to have a similar quantization coefficient to the neighboring blocks according to the directionality of the intra prediction mode. For example, if the intra prediction mode has a prediction mode value close to the vertical direction, it is highly likely that the intra prediction mode has a similar quantization coefficient value to that of the neighboring block located at the upper side of the neighboring block located at the left side of the current block, It is highly likely to have a similar quantization coefficient value to the neighboring block located on the left side of the neighboring block located at the upper end of the current block. Accordingly, the present invention provides a method of predicting a quantization coefficient of a current block using a quantization coefficient of a neighboring block based on a direction of an intra prediction mode.

도 3은 본 발명의 실시예에 따른 인트라 예측 모드의 방향성에 따라 양자화 계수를 예측하는 방법을 설명하기 위한 도면이다. 도 3의 (a)는 인트라 예측 모드를 나타낸 도면으로, 각각의 인트라 예측 모드는 서로 다른 방향성을 가지며, 각각의 인트라 예측 모드에는 서로 다른 모드값이 할당된다. 도 3의 (b)는 본 발명의 실시예에 따른 현재 블록의 양자화 계수 예측에 참조할 참조 주변 블록을 나타내는 도면이다. 3 is a diagram for explaining a method of predicting a quantization coefficient according to a direction of an intra prediction mode according to an embodiment of the present invention. 3 (a) shows an intra-prediction mode in which each intra-prediction mode has a different directionality, and each intra-prediction mode is assigned a different mode value. 3 (b) is a diagram showing reference neighboring blocks to be referred to in quantization coefficient prediction of a current block according to an embodiment of the present invention.

도 3의 (a) 및 (b)를 참조하면, 본 발명의 실시예에 따른 현재 블록의 양자화 계수를 예측하기 위해서, 현재 블록의 인트라 예측 모드를 기초로 양자화 계수 예측에 참조할 참조 주변 블록을 선정하고, 선정된 참조 주변 블록의 양자화 계수를 기반으로 현재 블록의 양자화 계수 예측값을 결정한다. Referring to FIGS. 3A and 3B, in order to predict a quantization coefficient of a current block according to an embodiment of the present invention, a reference neighboring block to be referred to in quantization coefficient prediction is determined based on an intra- And determines the predicted value of the quantization coefficient of the current block based on the quantization coefficient of the selected reference neighboring block.

현재 블록(300)의 인트라 예측 모드가 수직 방향성 예측 모드이면 현재 블록(300)의 상단에 위치한 상단 블록(310)을 참조 주변 블록으로 선정하고, 현재 블록(300)의 인트라 예측 모드가 수평 방향성 예측 모드이면 현재 블록의 좌측에 위치한 좌측 블록(320)을 참조 주변 블록으로 선정한다. If the intra prediction mode of the current block 300 is the vertical direction prediction mode, the upper block 310 positioned at the upper end of the current block 300 is selected as the reference neighbor block, and the intra prediction mode of the current block 300 is the horizontal direction prediction Mode, the left block 320 located on the left side of the current block is selected as the reference neighboring block.

예를 들어, 현재 블록(300)의 인트라 예측 모드가 수직 방향의 예측 모드(예컨대, 모드값 0)와 그 주변에 위치하여 수직 방향성에 가까운 예측 모드들(예컨대, 모드값 20, 11, 21, 22, 12, 23)일 경우, 현재 블록(300)의 상단에 위치한 상단 블록(310)을 참조 주변 블록으로 선정할 수 있다. 또는 현재 블록(300)의 인트라 예측 모드가 수평 방향의 예측 모드(예컨대, 모드값 1)와 그 주변에 위치하여 수평 방향성에 가까운 예측 모드들(예컨대, 모드값 28, 15, 29, 30, 16, 31)일 경우, 현재 블록(300)의 좌측에 위치한 좌측 블록(320)을 참조 주변 블록으로 선정할 수 있다. For example, if the intra prediction mode of the current block 300 is a prediction mode in which the vertical direction prediction mode (e.g., mode value 0) and the vertical direction prediction mode (e.g., mode values 20, 11, 21, 22, 12, and 23, the upper block 310 positioned at the upper end of the current block 300 may be selected as a reference neighbor block. (For example, mode values 28, 15, 29, 30, and 16) in which the intraprediction mode of the current block 300 is located in a horizontally predicted mode (e.g., mode value 1) , 31), the left block 320 located on the left side of the current block 300 can be selected as the reference neighboring block.

선정된 참조 주변 블록의 양자화 계수를 이용하여 아래 수학식 1 및 수학식 2와 같이 현재 블록의 양자화 계수 예측값을 결정할 수 있다. The quantized coefficient prediction value of the current block can be determined using the quantization coefficients of the selected reference neighboring blocks as shown in the following Equations (1) and (2).

수학식 1은 현재 블록의 예측 모드가 수직 방향성 예측 모드인 경우 상단 블록의 양자화 계수 값(QP(Above_block))을 이용하여 현재 블록의 양자화 계수 예측값(QPpredict)을 나타낸 일례이다. Equation (1) is an example of expressing the quantized coefficient predicted value (QP predict ) of the current block using the quantization coefficient value (QP (Above_block)) of the upper block when the prediction mode of the current block is the vertical direction prediction mode.

Figure pat00001
Figure pat00001

수학식 2는 현재 블록의 예측 모드가 수평 방향성 예측 모드인 경우 좌측 블록의 양자화 계수 값(QP(Left_block))을 이용하여 현재 블록의 양자화 계수 예측값(QPpredict)을 나타낸 일례이다.Equation (2) is an example showing the quantized coefficient prediction value (QP predict ) of the current block using the quantization coefficient value (QP (Left_block)) of the left block when the prediction mode of the current block is the horizontal direction prediction mode.

Figure pat00002
Figure pat00002

상술한 바와 같이, 인트라 예측 모드가 수직 또는 수평 방향과 같이 뚜렷한 방향성을 가지는 경우에는 상단 블록 또는 좌측 블록을 참조하여 현재 블록의 양자화 계수를 예측하는 방법이 효율적이지만, 수직 방향성 및 수평 방향성을 제외한 나머지 방향성 예측 모드인 경우에는 상단 블록 또는 좌측 블록의 양자화 계수를 동일하게 적용하여 현재 블록의 양자화 계수 예측값을 결정하는 방법은 효과적이지 못하다. As described above, in the case where the intra prediction mode has a clear directionality such as a vertical or horizontal direction, a method of predicting a quantization coefficient of a current block by referring to an upper block or a left block is effective. However, In the case of the directional prediction mode, it is not effective to determine the predicted value of the quantization coefficient of the current block by applying the same quantization coefficients of the upper block or the left block.

본 발명의 실시예에서는 현재 블록(300)의 인트라 예측 모드가 수직 방향성 및 수평 방향성을 제외한 나머지 방향성 예측 모드이면, 수직 방향 성분 및 수평 방향 성분의 크기에 따라 현재 블록의 주변에 위치한 상단 블록(310), 좌측 블록(320), 상단 우측 블록(330) 및 좌측 하단 블록(340) 중 적어도 하나를 참조 주변 블록으로 선정한다. In the embodiment of the present invention, if the intra prediction mode of the current block 300 is the remaining directional prediction mode excluding the vertical direction and the horizontal direction, the upper block 310 located in the periphery of the current block according to the magnitudes of the vertical direction component and the horizontal direction component , The left block 320, the upper right block 330, and the lower left block 340 are selected as reference peripheral blocks.

일예로, 현재 블록(300)의 인트라 예측 모드가 모드값 3, 18, 10, 19, 4, 26, 14, 27, 7과 같은 방향성을 가지는 예측 모드일 경우, 현재 블록(300)의 상단에 위치한 상단 블록(310)과 좌측에 위치한 좌측 블록(320)을 참조 주변 블록으로 선정할 수 있다. 이때, 인트라 예측 모드의 모드값 3, 18, 10, 19, 4은 수평 방향 성분 보다는 수직 방향 성분을 많이 포함하고 있기 때문에, 좌측 블록(320) 보다는 상단 블록(310)과 비슷한 양자화 계수를 가질 가능성이 높다. 반면, 인트라 예측 모드의 모드값 26, 14, 27, 7은 수직 방향 성분보다 수평 방향 성분을 많이 포함하고 있기 때문에, 상단 블록(310) 보다는 좌측 블록(320)과 비슷한 양자화 계수를 가질 가능성이 높다. For example, if the intra prediction mode of the current block 300 is a prediction mode having the same directionality as the mode values 3, 18, 10, 19, 4, 26, 14, 27 and 7, The upper block 310 located on the left side and the left block 320 located on the left side can be selected as reference neighboring blocks. Since the mode values 3, 18, 10, 19, and 4 of the intraprediction mode include more vertical direction components than the horizontal direction components, it is possible to have a quantization coefficient similar to that of the upper block 310, Is high. On the other hand, since the mode values 26, 14, 27, and 7 of the intraprediction mode include more horizontal direction components than the vertical direction components, there is a high possibility that the mode values 26, 14, 27 and 7 of the intra prediction mode have quantization coefficients similar to those of the left block 320 .

따라서 본 발명의 실시예에서는 각 모드값, 즉 인트라 예측 모드의 방향성을 기반으로 참조 주변 블록의 양자화 계수에 가중치를 적용하여 현재 블록의 양자화 계수 예측값을 결정한다. Therefore, in the embodiment of the present invention, the quantization coefficient prediction value of the current block is determined by applying a weight to the quantization coefficient of the reference neighboring block based on each mode value, i.e., the direction of the intra prediction mode.

예컨대, 인트라 예측 모드가 수직 방향성 예측 모드를 기준으로 반시계 방향으로 각도를 가지는 예측 모드(예를 들어, 모드값 3, 18, 10, 19, 4)이면 좌측 블록(320) 보다는 상단 블록(310)의 양자화 계수에 더 높은 가중치를 적용하여 현재 블록(300)의 양자화 계수 예측값을 결정 할 수 있다. 인트라 예측 모드가 수평 방향성 예측 모드를 기준으로 시계 방향으로 각도를 가지는 예측 모드(예를 들어, 모드값 26, 14, 27, 7)이면 상단 블록(310) 보다는 좌측 블록(320)의 양자화 계수에 더 높은 가중치를 적용하여 현재 블록(300)의 양자화 계수 예측값을 결정 할 수 있다.For example, if the intra prediction mode is a prediction mode (for example, mode values 3, 18, 10, 19, 4) having anticlockwise angles with respect to the vertical direction prediction mode, The predicted value of the quantized coefficient of the current block 300 may be determined by applying a higher weight to the quantized coefficient of the current block 300. [ If the intra prediction mode is a prediction mode (for example, mode values 26, 14, 27, 7) having an angle in the clockwise direction with respect to the horizontal direction prediction mode, the intra prediction mode is set to the quantization coefficient of the left block 320 rather than the upper block 310 The predicted value of the quantization coefficient of the current block 300 can be determined by applying a higher weight.

수학식 3은 현재 블록의 인트라 예측 모드가 수직 방향성 예측 모드를 기준으로 반시계 방향으로 각도를 가지는 예측 모드인 경우, 예측 모드의 방향성 정도에 따라서 좌측 블록 및 상단 블록 각각의 양자화 계수에 가중치를 적용하여 현재 블록의 양자화 계수 예측값(QPpredict)을 나타낸 일례이다.In Equation (3), if the intra-prediction mode of the current block is a prediction mode having an angle in the counterclockwise direction with respect to the vertical direction prediction mode, a weight is applied to the quantization coefficients of the left block and the upper block according to the degree of the directionality of the prediction mode (QP predict ) of the current block.

Figure pat00003
Figure pat00003

수학식 4는 현재 블록의 인트라 예측 모드가 수평 방향성 예측 모드를 기준으로 시계 방향으로 각도를 가지는 예측 모드인 경우, 예측 모드의 방향성 정도에 따라서 좌측 블록 및 상단 블록 각각의 양자화 계수에 가중치를 적용하여 현재 블록의 양자화 계수 예측값(QPpredict)을 나타낸 일례이다.In Equation (4), when the intra-prediction mode of the current block is a prediction mode having an angle in the clockwise direction with respect to the horizontal direction prediction mode, a weight is applied to the quantization coefficients of the left block and the upper block according to the degree of directionality of the prediction mode (QP predict ) of the current block.

Figure pat00004
Figure pat00004

수학식 3 및 4에서, QPpredict(Current_block)는 현재 블록의 양자화 계수 예측값이고, QP(Left_block)는 좌측 블록의 양자화 계수이고, QP(Above_block)는 상단 블록의 양자화 계수이다.In Equations (3) and (4), QP predict (Current_block) is the quantization coefficient predictive value of the current block, QP (Left_block) is the quantization coefficient of the left block, and QP (Above_block) is the quantization coefficient of the upper block.

상기 수학식 3과 수학식 4에서 좌측 블록과 상단 블록에 적용된 가중치는 하나의 예시이며, 본 발명이 이에 한정되는 것은 아니다. 또한, 각 모드값에 따라 좌측 블록 및 상단 블록에 각기 다른 가중치를 적용할 수도 있다. The weights applied to the left block and the upper block in Equations (3) and (4) are only examples, and the present invention is not limited thereto. In addition, different weights may be applied to the left block and the upper block according to each mode value.

다른 예로, 현재 블록(300)의 인트라 예측 모드가 수직 방향성 예측 모드를 기준으로 시계 방향으로 각도를 가지는 예측 모드(예를 들어, 모드값 5, 24, 13, 25, 6)일 경우, 현재 블록(300)의 상단에 위치한 블록을 참조하되 인트라 예측 모드의 방향성을 고려하여 상단 블록(310) 및 상단 우측 블록(330)을 참조 주변 블록으로 선정할 수 있다. 이때, 인트라 예측 모드의 방향성 정도에 따라서 상단 블록(310)과 상단 우측 블록(330)에 가중치를 적용하여 현재 블록(300)의 양자화 계수 예측값을 결정할 수 있다.As another example, when the intra prediction mode of the current block 300 is a prediction mode (for example, mode values 5, 24, 13, 25, 6) having an angle in the clockwise direction on the basis of the vertical direction prediction mode, The upper block 310 and the upper right block 330 may be selected as reference neighboring blocks considering the directionality of the intra prediction mode. At this time, the predicted value of the quantization coefficient of the current block 300 can be determined by applying a weight to the upper block 310 and the upper right block 330 according to the degree of directionality of the intra prediction mode.

수학식 5는 현재 블록의 인트라 예측 모드가 수직 방향성 예측 모드를 기준으로 시계 방향으로 각도를 가지는 예측 모드인 경우, 예측 모드의 방향성 정도에 따라서 상단 블록 및 상단 우측 블록 각각의 양자화 계수에 가중치를 적용하여 현재 블록의 양자화 계수 예측값(QPpredict)을 나타낸 일례이다.Equation (5) applies a weight to the quantization coefficients of the upper block and the upper right block according to the degree of the directionality of the prediction mode when the intra-prediction mode of the current block is a prediction mode having an angle in the clockwise direction with respect to the vertical direction prediction mode (QP predict ) of the current block.

Figure pat00005
Figure pat00005

여기서, QPpredict(Current_block)는 현재 블록의 양자화 계수 예측값이고, QP(Above_block)는 상단 블록의 양자화 계수이고, QP(AboveRight_block)는 상단 우측 블록의 양자화 계수이다. Here, QP predict (Current_block) is the quantized coefficient prediction value of the current block, QP (Above_block) is the quantized coefficient at the top of the block, QP (AboveRight_block) is the quantized coefficient at the top right of the block.

상기 수학식 5에서 상단 블록과 상단 우측 블록에 적용된 가중치는 하나의 예시이며, 본 발명이 이에 한정되는 것은 아니다. 또한, 각 모드값에 따라 상단 블록 및 상단 우측 블록에 각기 다른 가중치를 적용할 수도 있다.In Equation (5), the weights applied to the upper block and the upper right block are examples, and the present invention is not limited thereto. In addition, different weights may be applied to the upper block and the upper right block, depending on the mode value.

다른 예로, 현재 블록(300)의 인트라 예측 모드가 수평 방향성 예측 모드를 기준으로 반시계 방향으로 각도를 가지는 예측 모드(예를 들어, 모드값 8, 32, 17, 33, 9)일 경우, 현재 블록(300)의 좌측에 위치한 블록을 참조하되 인트라 예측 모드의 방향성을 고려하여 좌측 블록(320) 및 좌측 하단 블록(340)을 참조 주변 블록으로 선정할 수 있다. 이때, 인트라 예측 모드의 방향성 정도에 따라서 좌측 블록(320)과 좌측 하단 블록(340)에 가중치를 적용하여 현재 블록(300)의 양자화 계수 예측값을 결정할 수 있다(수학식 6 참조).As another example, when the intra prediction mode of the current block 300 is a prediction mode (e.g., mode values 8, 32, 17, 33, 9) having an anticlockwise angle with respect to the horizontal direction prediction mode, The left block 320 and the lower left block 340 may be selected as reference neighboring blocks in consideration of the direction of the intra prediction mode with reference to the block located on the left side of the block 300. [ In this case, the predicted values of the quantization coefficients of the current block 300 can be determined by applying weights to the left block 320 and the lower left block 340 according to the degree of directionality of the intra prediction mode (see Equation 6).

수학식 6은 현재 블록의 인트라 예측 모드가 수평 방향성 예측 모드를 기준으로 반시계 방향으로 각도를 가지는 예측 모드인 경우, 예측 모드의 방향성 정도에 따라서 좌측 블록 및 좌측 하단 블록 각각의 양자화 계수에 가중치를 적용하여 현재 블록의 양자화 계수 예측값(QPpredict)을 나타낸 일례이다.In Equation (6), when the intra-prediction mode of the current block is a prediction mode having a counterclockwise angle with respect to the horizontal direction prediction mode, a weight is assigned to the quantization coefficients of the left block and the lower- And the quantized coefficient predicted value (QP predict ) of the current block is applied.

Figure pat00006
Figure pat00006

여기서, QPpredict(Current_block)는 현재 블록의 양자화 계수 예측값이고, QP(Left_block)는 좌측 블록의 양자화 계수이고, QP(LeftBelow_block)는 좌측 하단 블록의 양자화 계수이다. Here, QP predict (Current_block) is the quantized coefficient prediction value of the current block, QP (Left_block) is the quantized coefficients in the left block, QP (LeftBelow_block) is the quantized coefficients in the lower left block.

상기 수학식 6에서 좌측 블록과 좌측 하단 블록에 적용된 가중치는 하나의 예시이며, 본 발명이 이에 한정되는 것은 아니다. 또한, 각 모드값에 따라 좌측 블록 및 좌측 하단 블록에 각기 다른 가중치를 적용할 수도 있다.The weights applied to the left block and the lower left block in Equation (6) are only examples, and the present invention is not limited thereto. In addition, different weights may be applied to the left block and the lower left block according to each mode value.

도 3의 (a)에 도시된 인트라 예측 모드에 할당된 모드값은 하나의 예시이며, 도 4에 도시된 것과 같이 모드값이 할당된 인트라 예측 모드에도 전술한 본 발명의 실시예에 따른 현재 블록의 양자화 계수를 예측하는 방법을 동일하게 적용할 수 있다. 도 4에서는 본 발명의 실시예에 따른 현재 블록의 양자화 계수를 예측하는 방법에 대한 설명은 생략하도록 한다. The mode value assigned to the intra prediction mode shown in FIG. 3A is one example, and the intra prediction mode to which the mode value is allocated, as shown in FIG. 4, The method of predicting the quantization coefficient of the quantized coefficient can be similarly applied. 4, description of a method of predicting a quantization coefficient of a current block according to an embodiment of the present invention will be omitted.

전술한 바와 같이 본 발명의 실시예에 따라 현재 블록의 양자화 계수를 예측함으로써, 현재 블록의 양자화 계수 차분값(DeltaQP)을 시그널링할 수 있다. 이하에서는 전술한 본 발명의 실시예에 따른 현재 블록의 양자화 계수를 예측하는 방법을 이용하여 양자화 계수 차분값(DeltaQP)을 부호화하여 전송하고, 전송된 양자화 계수 차분값(DeltaQP)을 복호화하여 현재 블록의 양자화 계수 값을 획득하는 방법에 대해서 설명한다. As described above, the quantization coefficient of the current block can be signaled by predicting the quantization coefficient of the current block according to the embodiment of the present invention. Hereinafter, a quantization coefficient difference value DeltaQP is encoded and transmitted using a method of predicting a quantization coefficient of a current block according to an embodiment of the present invention, and the transmitted quantization coefficient difference value DeltaQP is decoded, A method of acquiring the quantization coefficient value of the bitstream is described.

도 5는 상술한 본 발명이 적용되는 영상 부호화 방법을 나타낸 순서도이다. 도 5의 각 단계는 도 1에서 설명한 영상 부호화 장치에 대응하는 구성 내에서 수행될 수 있다. FIG. 5 is a flowchart illustrating an image encoding method to which the present invention is applied. Each step of FIG. 5 may be performed in a configuration corresponding to the image encoding apparatus described with reference to FIG.

도 5를 참조하면, 현재 픽처의 새로운 부호화 단위(Coding Unit: CU)가 입력된다(S500). 부호화 단위 입력 단계(S500)는 현재 픽처를 인트라 예측/인터 예측을 위한 기본 단위로 분할한다. Referring to FIG. 5, a new coding unit (CU) of the current picture is input (S500). The encoding unit input step (S500) divides the current picture into basic units for intraprediction / inter prediction.

부호화 장치는 참조 픽셀을 생성한다(S510). 참조 픽셀 생성 단계(S510)는 현재 예측을 수행하는 현재 블록에 인접한 픽셀들을 기초로 인트라 예측에 필요한 참조 픽셀을 생성한다. The encoding apparatus generates reference pixels (S510). The reference pixel generation step (S510) generates reference pixels required for intra prediction based on the pixels adjacent to the current block performing the current prediction.

부호화 장치는 현재 블록에 대한 인트라 예측 모드를 결정한다(S520). 인트라 예측 모드 결정 단계(S520)는 예측 단위를 기초로 최적의 예측 모드를 결정하여 현재 블록의 예측 모드를 부호화한다. The encoding apparatus determines an intra prediction mode for the current block (S520). The intra prediction mode determination step S520 determines an optimal prediction mode based on the prediction unit and encodes the prediction mode of the current block.

부호화 장치는 현재 블록의 픽셀값과 예측 블록의 픽셀값을 픽셀 단위로 차분하여 잔차(residual) 신호를 획득하고(S530), 획득한 잔차 신호를 변환한다(S540). 잔차 신호 변환 단계(S540)는 잔차 신호를 변환하여 변환 계수를 생성한다. The encoding apparatus obtains a residual signal by subtracting the pixel value of the current block and the pixel value of the prediction block in pixel units (S530), and converts the obtained residual signal (S540). The residual signal conversion step (S540) converts the residual signal to generate a transform coefficient.

부호화 장치는 변환 계수를 양자화한다(S550). 변환 계수 양자화 단계(S550)는 현재 블록의 양자화 계수를 이용하여 변환 계수를 양자화하고, 현재 블록의 양자화 계수 차분값을 부호화한다.The encoding apparatus quantizes the transform coefficients (S550). The transform coefficient quantization step (S550) quantizes the transform coefficient using the quantization coefficient of the current block, and encodes the quantization coefficient difference value of the current block.

부호화 장치는 변환 계수를 스캔(scan)하고(S560), 스캔된 변환 계수와 인트라 예측 모드를 엔트로피 부호화한다(S570).The encoding apparatus scans the transform coefficients (S560), entropy-encodes the scanned transform coefficients and the intra-prediction mode (S570).

이하에서는 상술한 영상 부호화 방법에 대해 구체적으로 설명하도록 한다. Hereinafter, the image coding method will be described in detail.

부호화 단위 입력 단계(S500)는 인트라 예측/인터 예측을 위해 사용되는 영역 분할의 기본 단위인 부호화 단위로 현재 픽처를 분할한다. 부호화 단위는 항상 정사각형이며, 부호화 단위의 크기는 도 1에서 상술한 바와 같이 쿼드 트리 구조(Quad Tree Structure)를 사용하여 동일한 크기를 갖는 4개의 블록으로 재귀적으로(recursively) 분할될 수 있다. 예측 단위(Prediction Unit: PU)는 부호화 단위보다 작은 블록으로, 하나의 부호화 단위 내에서 동일한 크기의 적어도 하나의 정사각형 또는 직사각형 등의 형태를 가지고 분할될 수 있다. 예측 단위의 인트라 예측은 기본적으로 2N*2N 또는 N*N 블록 단위로 수행된다. The coding unit input step (S500) divides the current picture into coding units which are basic units of region division used for intra prediction / inter prediction. The encoding unit is always square and the size of the encoding unit can be recursively divided into four blocks having the same size using the quad tree structure as described above with reference to FIG. A Prediction Unit (PU) is a block smaller than an encoding unit, and can be divided into at least one square or rectangular shape having the same size in one encoding unit. Intra prediction of the prediction unit is basically performed in 2N * 2N or N * N block units.

참조 픽셀 생성 단계(S510)는 현재 블록에 인접한 좌측 블록의 가장 오른쪽 수직 라인상의 픽셀들과 현재 블록에 인접한 상측 블록의 가장 아래쪽 수평 라인상의 픽셀들을 이용하여 인트라 예측에 필요한 참조 픽셀을 생성한다. 현재 블록의 크기가 N이면 상측 블록과 좌측 블록에서 모두 2N개의 픽셀을 참조 픽셀로 사용할 수 있다. The reference pixel generation step S510 generates reference pixels required for intra prediction using pixels on the rightmost vertical line of the left block adjacent to the current block and pixels on the lowermost horizontal line of the upper block adjacent to the current block. If the size of the current block is N, 2N pixels can be used as reference pixels in both the upper block and the left block.

이때, 참조 픽셀은 현재 블록에 인접한 좌측 블록의 가장 오른쪽 수직 라인상의 픽셀들과 현재 블록에 인접한 상측 블록의 가장 아래쪽 수평 라인상의 픽셀들을 그대로 사용할 수 있고, 인접 블록의 픽셀들을 스무딩해서 사용할 수도 있다. 스무딩을 하는 경우에는 스무딩에 관한 정보를 복호화 장치에 시그널링한다. 예컨대, 스무딩을 하는 경우, 적응적 인트라 스무딩(Adaptive Intra Smoothing; AIS) 필터를 적용할 수 있으며, 필터 계수는 [1, 2, 1]와 [1, 1, 4, 1, 1] 중 하나를 사용할 수 있다. 두 필터 계수 중 후자가 더 샤프(sharp)한 경계면을 제공한다. 상술한 바와 같이 복호화 장치에는 필터의 사용 유무에 관한 정보, 필터를 사용하는 경우에는 어떤 필터를 사용할지에 대한 정보와 필터 계수에 대한 정보 등을 시그널링한다. At this time, the reference pixel may use the pixels on the rightmost vertical line of the left block adjacent to the current block and the pixels on the lowermost horizontal line of the upper block adjacent to the current block, or may use the pixels of the adjacent block by smoothing. In the case of smoothing, information on the smoothing is signaled to the decoding device. For example, when smoothing is performed, an Adaptive Intra Smoothing (AIS) filter can be applied, and the filter coefficient can be set to [1, 2, 1] and [1, 1, 4, 1, 1] Can be used. The latter of the two filter coefficients provides a sharper interface. As described above, the decoding apparatus signals information on whether a filter is used, information on which filter is used when a filter is used, information on a filter coefficient, and the like.

인트라 예측 모드 결정 단계(S520)는 예측 단위별로 수행되며, 소요 비트율과 왜곡량의 관계를 고려하여 최적의 인트라 예측 모드를 결정한다. 예컨대, RDO(Rate Distortion Optimization; 율-왜곡 최적화)가 수행되는 ON 상태인지, 수행되지 않는 OFF 상태인지에 따라 예측 모드 결정 방법이 달라질 수 있다. 만일, RDO가 ON 상태이면, 코스트 J = R+rD(R은 비트량, D는 왜곡량, r은 라그랑지 변수)를 최소화하는 모드를 선택할 수 있다. 다만, 로컬 복호화를 완전하게 해야 하므로, 이 경우에는 복잡도가 증가할 수 있다. RDO가 OFF 상태이면, 예측 오차를 하다마드(Hadamard) 변환하여 MAD(Mean Absolute Difference)가 최소가 되는 예측 모드를 선택할 수도 있다. The intra prediction mode determination step S520 is performed for each prediction unit, and the optimal intra prediction mode is determined in consideration of the relationship between the required bit rate and the distortion amount. For example, the prediction mode decision method may be changed depending on whether the RDO (Rate Distortion Optimization) is ON or OFF state. If RDO is ON, you can choose a mode that minimizes the cost J = R + rD (where R is the amount of bits, D is the amount of distortion, and r is the Lagrangian variable). However, since the local decoding must be completed, the complexity may increase in this case. When the RDO is OFF, the prediction error can be Hadamard transformed to select the prediction mode in which the mean absolute difference (MAD) is minimized.

현재 블록에 대한 인트라 예측 모드는 서로 다른 모드값이 할당된 복수의 인트라 예측 모드(도 3의 a 참조) 중에서 결정될 수 있다. 예측 단위의 크기에 따른 휘도(luma) 성분에 대한 인트라 예측 모드의 개수는, 일 실시예로 다음 표 1과 같을 수 있다. The intra prediction mode for the current block may be determined from among a plurality of intra prediction modes (see a in FIG. 3) to which different mode values are assigned. The number of intra prediction modes for the luma component according to the size of the prediction unit may be as shown in Table 1 as an example.

블록 크기Block size 예측 모드의 수Number of prediction modes 4 * 44 * 4 1717 8 * 88 * 8 3434 16 * 1616 * 16 3434 32 * 3232 * 32 3434 64 * 6464 * 64 33

예컨대, 도 3의 (a)에 도시된 인트라 예측 모드를 참조하면 예측 단위의 크기가 4*4이면 인트라 예측 모드의 모드값이 0 내지 16인 17개의 예측 모드가 사용될 수 있고, 예측 단위의 크기가 8*8이면 인트라 예측 모드의 모드값이 0 내지 33인 34개의 예측 모드가 사용될 수 있다. For example, referring to the intra-prediction mode shown in FIG. 3 (a), if the size of the prediction unit is 4 * 4, 17 prediction modes in which the mode value of the intra-prediction mode is 0 to 16 can be used. Quot; 8 * 8 ", it is possible to use 34 prediction modes in which the mode value of the intra prediction mode is 0 to 33. [

만일, 도 3의 (a)를 참조하면 인트라 예측 모드의 모드값이 0인 경우 인접 블록의 픽셀값을 사용하여 수직 방향으로 예측이 수행되며, 인트라 예측 모드의 모드값이 1인 경우 수평 방향으로 예측이 수행될 수 있다. 인트라 예측 모드의 모드값이 2인 경우 DC 모드라고도 하며, 현재 블록 내 픽셀값의 평균에 의해 예측 블록이 생성될 수 있다. 또한, 나머지 모드의 경우 해당 각도에 따라 인접 블록의 픽셀값들을 이용하여 예측을 수행할 수 있다. 3, if the mode value of the intra-prediction mode is 0, the prediction is performed in the vertical direction using the pixel values of the adjacent block. When the mode value of the intra-prediction mode is 1, Prediction can be performed. When the mode value of the intra prediction mode is 2, it is also referred to as a DC mode, and a prediction block can be generated by an average of pixel values in the current block. In the remaining modes, prediction can be performed using pixel values of adjacent blocks according to the angle.

부호화 장치는 현재 블록에 대한 휘도(luma) 성분에 대한 예측 모드뿐만 아니라, 색차(chroma) 성분의 예측 모드도 결정할 수 있다. The encoding apparatus can determine not only the prediction mode for the luma component of the current block but also the prediction mode of the chroma component.

부호화 장치는 상기 결정된 현재 블록에 대한 휘도(luma) 성분 및 색차(chroma) 성분에 대한 예측 모드를 부호화한다. 현재 블록의 예측 모드는 현재 블록에 인접한 인접 블록의 예측 모드와 상관성이 크기 때문에, 인접 블록의 예측 모드를 이용하여 현재 블록의 예측 모드를 부호화함으로써 복호화 장치로 전송되는 비트량을 감소시킬 수 있다. 예컨대, 현재 블록의 MPM(Most Probable Mode)을 결정하고, MPM을 이용하여 현재 블록의 예측 모드를 부호화할 수 있다. The encoding device encodes a prediction mode for a luma component and a chroma component for the determined current block. The prediction mode of the current block is highly correlated with the prediction mode of the adjacent block adjacent to the current block so that the amount of bits transmitted to the decoding apparatus can be reduced by encoding the prediction mode of the current block using the prediction mode of the adjacent block. For example, the MPM (Most Probable Mode) of the current block can be determined, and the prediction mode of the current block can be encoded using the MPM.

잔차(residual) 신호 획득 단계(S530)는 상술한 인트라 예측 모드 결정 단계(S520)에서 생성된 예측 블록의 픽셀값과 현재 블록의 픽셀값을 픽셀 단위로 차분하여 잔차 신호를 획득한다. In the residual signal acquisition step S530, the residual signal is obtained by dividing the pixel value of the prediction block generated in the intra-prediction mode determination step S520 and the pixel value of the current block in pixel units.

잔차 신호 변환 단계(S540)는 변환 커널(kernel)을 적용하여 잔차 신호를 변환할 수 있으며, 변환 부호화 커널의 크기는 2*2, 4*4, 8*8, 16*16, 32*32 또는 64*64일 수 있다. 변환에 의해 변환 계수가 생성되며, 변환 계수는 2차원 블록 형태이다. 예를 들어, n*n 블록에 대한 변환 계수 C는 다음 수학식 7과 같이 계산될 수 있다. The residual signal conversion step S540 may transform the residual signal by applying a transform kernel and the size of the transform encoding kernel may be 2 * 2, 4 * 4, 8 * 8, 16 * 16, 32 * 64 * 64. Conversion coefficients are generated by the conversion, and the conversion coefficients are in the form of a two-dimensional block. For example, the transform coefficient C for an n * n block can be calculated as shown in Equation (7).

Figure pat00007
Figure pat00007

여기서, C(n, n)은 n*n 크기의 변환 계수에 대한 행렬이고, T(n, n)은 n*n 크기의 변환 커널 행렬이고, B(n, n)은 n*n 크기의 잔차 블록에 대한 행렬이다. (N, n) is a transformed kernel matrix of n * n size, and B (n, n) is a matrix of n * n size transform coefficients. Is a matrix for the residual block.

변환 계수 양자화 단계(S550)는 현재 블록의 양자화 계수를 이용하여 변환 계수를 양자화하고, 현재 블록의 양자화 계수 차분값을 부호화한다. The transform coefficient quantization step (S550) quantizes the transform coefficient using the quantization coefficient of the current block, and encodes the quantization coefficient difference value of the current block.

현재 블록의 양자화 계수 차분값은 현재 블록의 인트라 예측 모드를 기초로 현재 블록의 양자화 계수 예측값을 결정하고, 결정된 양자화 계수 예측값과 현재 블록의 양자화 계수 값을 차분하여 획득한다. 현재 블록의 양자화 계수 예측값을 결정하는 방법은 상술한 도 3과 같은 방법으로 수행되며, 이에 대한 설명은 도 3을 통해 전술하였으므로 상세한 설명은 생략한다. The quantization coefficient difference value of the current block is determined by determining the quantization coefficient prediction value of the current block on the basis of the intra prediction mode of the current block, and obtaining the predicted quantization coefficient value and the quantization coefficient value of the current block by a difference. The method of determining the predicted value of the quantization coefficient of the current block is performed in the same manner as in FIG. 3, and the description thereof has been given above with reference to FIG. 3, so that a detailed description thereof will be omitted.

잔차 신호와 변환 계수 중 어떤 것을 전송할지 RDO를 통해 결정될 수 있다. 예측이 잘된 경우에는 변환 부호화 없이 잔차 신호를 그대로 전송할 수 있다. 변환 부호화 전/후의 비용 함수(cost function)를 비교할 수 있으며, 비용이 최소화되는 방법을 선택할 수 있다. 이때, 현재 블록에 대해 전송할 신호의 타입(잔차 신호 또는 변환 계수)을 시그널링하고, 이를 복호화 장치로 전송할 수 있다. The RDO can determine which of the residual signal and the transform coefficient to transfer. If the prediction is good, the residual signal can be transmitted as is without transcoding. It is possible to compare the cost function before and after the transcoding and to select the method in which the cost is minimized. At this time, a signal type (a residual signal or a transform coefficient) to be transmitted to the current block may be signaled, and the signal may be transmitted to the decoding apparatus.

변환 계수 스캔 단계(S560)는 양자화된 2차원의 블록 형태의 변환 계수를 스캔하여 1차원의 벡터 형태의 변환 계수로 변경한다. 예컨대, 변환 단위의 크기 및 인트라 예측 모드에 따라 업라이트 스캔, 수직 방향 스캔, 수평 방향 스캔 등의 스캔 방법을 이용할 수 있다.The transform coefficient scan step S560 scans the transform coefficients of the quantized two-dimensional block form and converts the transform coefficients into one-dimensional vector form transform coefficients. For example, a scan method such as up-scan, vertical scan, and horizontal scan may be used according to the size of the conversion unit and the intra-prediction mode.

엔트로피 부호화 단계(S570)는 스캔된 변환 계수와 인트라 예측 모드를 엔트로피 부호화한다. 부호화된 정보들은 압축된 비트 스트림을 형성하여 NAL(Network Abstraction Layer)을 통해 전송되거나 저장될 수 있다. The entropy coding step (S570) entropy-codes the scanned transform coefficients and the intra prediction mode. The encoded information may be transmitted or stored via a Network Abstraction Layer (NAL) forming a compressed bitstream.

도 6은 상술한 본 발명이 적용되는 영상 복호화 방법을 나타낸 순서도이다. 도 6의 각 단계는 도 2에서 설명한 영상 복호화 장치에 대응하는 구성 내에서 수행될 수 있다. FIG. 6 is a flowchart illustrating a video decoding method to which the present invention is applied. Each step of FIG. 6 may be performed in a configuration corresponding to the video decoding apparatus described with reference to FIG.

도 6을 참조하면, 복호화 장치는 수신된 비트 스트림을 엔트로피 복호화한다(S600). 엔트로피 복호화 단계(S600)는 수신된 비트 스트림으로부터 현재 블록에 대한 잔차 신호나 변환 계수를 획득한다. Referring to FIG. 6, the decoding apparatus entropy decodes the received bitstream (S600). The entropy decoding step S600 obtains a residual signal or a transform coefficient for the current block from the received bitstream.

복호화 장치는 엔트로피 복호화된 잔차 신호나 변환 계수를 역스캔하고(S610), 변환 계수가 생성된 경우 역양자화한다(S620). 역양자화 단계(S620)는 현재 블록의 양자화 계수 값을 획득하고, 이를 이용하여 변환 계수를 역양자화한다. The decoding apparatus inversely scans the entropy-decoded residual signal or the transform coefficient (S610), and dequantizes the transform coefficient when the transform coefficient is generated (S620). In the dequantization step S620, a quantization coefficient value of the current block is obtained, and the dequantization coefficient is dequantized using the quantization coefficient value.

복호화 장치는 역양자화된 변환 계수를 역변환한다(S630). 역변환 단계(S630)에 의해 잔차 블록이 생성된다. The decoding apparatus inversely transforms the dequantized transform coefficient (S630). A residual block is generated by an inverse transformation step (S630).

복호화 장치는 인트라 예측에 필요한 참조 픽셀을 생성한다(S640). 참조 픽셀 생성 단계(S640)는 현재 복호화를 수행하는 현재 블록에 인접한 픽셀들을 기초로 인트라 예측에 필요한 참조 픽셀을 생성한다. The decoding apparatus generates reference pixels necessary for intra prediction (S640). The reference pixel generation step S640 generates reference pixels required for intra prediction based on the pixels adjacent to the current block performing the current decoding.

복호화 장치는 인트라 예측 모드를 기초로 예측 블록을 생성한다(S650). 예측 블록 생성 단계(S650)는 참조 픽셀 및 현재 블록의 인트라 예측 모드를 기초로 예측을 수행하여 예측 블록을 생성한다. The decoding apparatus generates a prediction block based on the intra prediction mode (S650). In the prediction block generation step S650, prediction is performed based on the intra-prediction mode of the reference pixel and the current block to generate a prediction block.

복호화 장치는 예측 블록의 픽셀값과 잔차 블록의 픽셀값을 더해서 복원 블록을 생성한다(S660). The decoding apparatus adds the pixel value of the prediction block and the pixel value of the residual block to generate a reconstruction block (S660).

이하에서는 상술한 영상 복호화 방법에 대해 구체적으로 설명하도록 한다. Hereinafter, the image decoding method will be described in detail.

엔트로피 복호화 단계(S600)는 VLC(Variable Length Coding) 테이블로부터 블록 타입을 알아내고, 현재 복호화를 수행할 현재 블록의 인트라 예측 모드를 획득한다. 현재 블록에 대해 전송되어 온 신호가 잔차 신호인지 아니면 변환 계수인지에 관한 정보를 얻을 수 있고, 현재 블록에 대한 잔차 신호나 1차원 벡터 형태의 변환 계수를 얻을 수 있다. 수신된 비트 스트림에 복호화에 필요한 보조 정보(side information)가 포함되는 경우, 이들이 함께 엔트로피 복호화될 수도 있다. The entropy decoding step S600 obtains the block type from the variable length coding (VLC) table and acquires the intra prediction mode of the current block to be currently decoded. Information on whether the signal transmitted to the current block is a residual signal or a transform coefficient can be obtained and a residual signal or a one-dimensional vector form conversion coefficient for the current block can be obtained. When side information necessary for decoding is included in the received bitstream, they may be entropy-decoded together.

역스캔 단계(S610)는 잔차 신호의 경우 역스캔하여 잔차 블록을 생성하고, 변환 계수의 경우 2차원 블록 형태의 변환 계수를 생성한다. In the inverse scan step S610, a residual block is generated by performing a reverse scan in the case of a residual signal, and a transform coefficient of a two-dimensional block form is generated in the case of the transform coefficient.

역양자화 단계(S620)는 역스캔을 수행하여 2차원 블록 형태의 변환 계수가 생성된 경우 수행되며, 현재 블록의 양자화 계수를 획득하여 변환 계수를 역양자화한다. 이때, 복호화 장치는 수신된 비트 스트림으로부터 현재 블록에 대한 양자화 계수 차분값을 추출하여 복호화하고, 복호화된 양자화 계수 차분값에 현재 블록의 양자화 계수 예측값을 더해서 현재 블록의 양자화 계수를 획득한다. 양자화 계수 예측값은 현재 블록의 인트라 예측 모드를 기초로 결정되며, 상술한 도 3과 같은 방법으로 수행된다. 이에 대한 설명은 도 3을 통해 전술하였으므로 상세한 설명은 생략한다. The inverse quantization step (S620) is performed when a two-dimensional block-type transform coefficient is generated by performing inverse scan, and obtains a quantization coefficient of the current block and dequantizes the transform coefficient. At this time, the decoding apparatus extracts and decodes the quantization coefficient difference value for the current block from the received bitstream, and obtains the quantization coefficient of the current block by adding the quantization coefficient prediction value of the current block to the decoded quantization coefficient difference value. The quantization coefficient prediction value is determined based on the intra prediction mode of the current block and is performed in the same manner as in FIG. 3 described above. The description thereof has been given above with reference to FIG. 3, so a detailed description thereof will be omitted.

역변환 단계(S630)는 역양자화된 변환 계수를 역변환하여 잔차 블록을 생성한다. 역변환 과정은 다음 수학식 8에 의해 나타내어질 수 있다.In the inverse transformation step S630, the inversely quantized transform coefficient is inversely transformed to generate a residual block. The inverse transformation process can be represented by the following equation (8).

Figure pat00008
Figure pat00008

또는,

Figure pat00009
or,
Figure pat00009

참조 픽셀 생성 단계(S640)는 부호화 단계에서와 마찬가지로, 현재 복호화 대상 블록에 인접한, 이미 복호화되어 복원된 좌측 블록의 가장 오른쪽 수직 라인상의 픽셀들과 복호화 대상 블록에 인접한 상단 블록의 가장 아래쪽 수평 라인상의 픽셀들을 이용하여 참조 픽셀을 생성한다. 이때, 부호화 장치에서 참조 픽셀을 생성할 때 시그널링 된 정보, 예컨대 스무딩 필터가 사용되는지 여부에 대한 정보, 필터를 사용한 경우에 어떤 타입의 필터가 사용되는지에 대한 정보를 참조하여 현재 블록에 대한 참조 픽셀을 생성할 수 있다. In the reference pixel generation step S640, as in the encoding step, the pixels on the rightmost vertical line of the left block, which is already decoded and restored to the current block to be decoded, and the pixels on the lowermost horizontal line of the upper block adjacent to the current block to be decoded Pixels are used to generate reference pixels. At this time, when the reference pixel is generated in the encoding apparatus, signaled information, for example, information on whether or not a smoothing filter is used, information on what type of filter is used when a filter is used, Can be generated.

또한, 참조 픽셀 생성 단계(S640)는 부호화 장치에서 사용된 참조 픽셀 생성 방법에 따라, 부호화 장치에서 AIS(Adaptive Intra Smoothing) 필터링이 적용된 경우에는 복호화 장치에서도 AIS 필터링이 수행된다. 또한 필터 타입 정보를 이용하여 [1, 2, 1]와 [1, 1, 4, 1, 1] 중 하나의 필터 계수가 선택될 수 있다. In the reference pixel generation step (S640), when Adaptive Intra Smoothing (AIS) filtering is applied in the encoding apparatus according to the reference pixel generation method used in the encoding apparatus, AIS filtering is also performed in the decoding apparatus. Also, filter coefficients of [1, 2, 1] and [1, 1, 4, 1, 1] can be selected using the filter type information.

예측 블록 생성 단계(S650)는 엔트로피 복호화된 현재 블록의 인트라 예측 모드와 참조 픽셀을 이용하여 예측 블록을 생성하며, 예측 블록의 생성 과정은 부호화 장치의 예측 모드 결정에 사용된 과정과 동일하다. The prediction block generation step S650 generates a prediction block using the intra-prediction mode and the reference pixel of the entropy-decoded current block, and the generation process of the prediction block is the same as the process used for determining the prediction mode of the encoding device.

복원 블록 생성 단계(S660)는 예측 블록의 픽셀값과 잔차 블록의 픽셀값을 픽셀 단위로 더해서 재생된 블록, 즉 복원 블록을 생성한다. In the reconstruction block generation step S660, the reconstructed block, i.e., the reconstruction block, is generated by adding the pixel value of the prediction block and the pixel value of the residual block in pixel units.

상술한 실시예들에서, 방법들은 일련의 단계 또는 블록으로서 순서도를 기초로 설명되고 있으나, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당해 기술 분야에서 통상의 지식을 가진 자라면 순서도에 나타난 단계들이 배타적이지 않고, 다른 단계가 포함되거나, 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.In the above-described embodiments, the methods are described on the basis of a flowchart as a series of steps or blocks, but the present invention is not limited to the order of the steps, and some steps may occur in different orders or simultaneously . It will also be understood by those skilled in the art that the steps depicted in the flowchart illustrations are not exclusive and that other steps may be included or that one or more steps in the flowchart may be deleted without affecting the scope of the invention You will understand.

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

Claims (6)

상기 현재 블록의 스캔 타입을 결정하는 단계;
상기 결정된 스캔 타입을 기초로, 상기 현재 블록에 관한 변환 계수를 획득하는 단계;
상기 현재 블록에 인접한 좌측 이웃 블록의 제 1 양자화 계수 및 상단 이웃 블록의 제 2 양자화 계수를 이용하여, 상기 현재 블록의 양자화 계수 예측값을 유도하는 단계;
상기 양자화 계수 예측값과 양자화 계수 차분값에 기초하여 상기 현재 블록의 양자화 계수를 유도하는 단계;
상기 유도된 양자화 계수를 이용하여 상기 현재 블록에 관한 변환 계수를 역양자화하는 단계;
상기 역양자화된 변환 계수를 역변환하여 상기 현재 블록의 잔차 샘플을 획득하는 단계;
상기 현재 블록의 상기 잔차 샘플 및 상기 현재 블록의 예측 샘플을 이용하여 상기 현재 블록의 복원 샘플을 생성하는 단계; 및
상기 복원 샘플에 디블록킹 필터를 적용하는 단계를 포함하는 것을 특징으로 하는 비디오 신호 디코딩 방법.
Determining a scan type of the current block;
Obtaining a transform coefficient for the current block based on the determined scan type;
Deriving a quantized coefficient prediction value of the current block using a first quantization coefficient of a left neighboring block adjacent to the current block and a second quantization coefficient of an upper neighboring block;
Deriving a quantization coefficient of the current block based on the quantization coefficient prediction value and the quantization coefficient difference value;
Dequantizing the transform coefficients of the current block using the derived quantization coefficients;
Transforming the dequantized transform coefficients to obtain residual samples of the current block;
Generating a reconstruction sample of the current block using the residual samples of the current block and the prediction samples of the current block; And
And applying a deblocking filter to the reconstructed sample.
제1항에 있어서,
상기 양자화 계수 예측값은 상기 제 1 양자화 계수와 상기 제 2 양자화 계수의 평균값으로 유도되는 것을 특징으로 하는 비디오 신호 디코딩 방법.
The method according to claim 1,
Wherein the quantized coefficient prediction value is derived as an average value of the first quantization coefficient and the second quantization coefficient.
제1항에 있어서,
상기 양자화 계수 예측값은 상기 제 1 양자화 계수와 상기 제 2 양자화 계수에 가중치를 적용하여 유도되는 것을 특징으로 하는 비디오 신호 디코딩 방법.
The method according to claim 1,
Wherein the quantized coefficient prediction value is derived by applying a weight to the first quantization coefficient and the second quantization coefficient.
제3항에 있어서,
상기 가중치는 (1, 0), (3/4, 1/4), (1/2, 1/2), (1/4, 3/4) 또는 (0, 1) 중 어느 하나인 것을 특징으로 하는 비디오 신호 디코딩 방법.
The method of claim 3,
The weighting value is any one of (1, 0), (3/4, 1/4), (1/2, 1/2), (1/4, 3/4) And the video signal is decoded.
제4항에 있어서,
상기 가중치는 상기 현재 블록에 관한 인트라 예측 모드의 방향성을 고려하여 결정되는 것을 특징으로 하는 비디오 신호 디코딩 방법.
5. The method of claim 4,
Wherein the weight is determined in consideration of a directionality of an intra prediction mode with respect to the current block.
제1항에 있어서,
상기 스캔 타입은 상기 현재 블록의 크기 및 상기 현재 블록의 인트라 예측 모드 중 적어도 하나에 기초하여 결정되는 것을 특징으로 하는 비디오 신호 디코딩 방법.
The method according to claim 1,
Wherein the scan type is determined based on at least one of a size of the current block and an intra prediction mode of the current block.
KR1020160055723A 2011-10-26 2016-05-04 Method for predicting quantization parameter based on intra prediction mode and apparatus using the same KR20160055772A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20110110148 2011-10-26
KR1020110110148 2011-10-26

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020120117960A Division KR101620620B1 (en) 2011-10-26 2012-10-23 Method for predicting quantization parameter based on intra prediction mode and apparatus using the same

Publications (1)

Publication Number Publication Date
KR20160055772A true KR20160055772A (en) 2016-05-18

Family

ID=48657738

Family Applications (5)

Application Number Title Priority Date Filing Date
KR1020120117960A KR101620620B1 (en) 2011-10-26 2012-10-23 Method for predicting quantization parameter based on intra prediction mode and apparatus using the same
KR1020160055717A KR20160055770A (en) 2011-10-26 2016-05-04 Method for predicting quantization parameter based on intra prediction mode and apparatus using the same
KR1020160055714A KR20160055769A (en) 2011-10-26 2016-05-04 Method for predicting quantization parameter based on intra prediction mode and apparatus using the same
KR1020160055723A KR20160055772A (en) 2011-10-26 2016-05-04 Method for predicting quantization parameter based on intra prediction mode and apparatus using the same
KR1020160055719A KR20160055771A (en) 2011-10-26 2016-05-04 Method for predicting quantization parameter based on intra prediction mode and apparatus using the same

Family Applications Before (3)

Application Number Title Priority Date Filing Date
KR1020120117960A KR101620620B1 (en) 2011-10-26 2012-10-23 Method for predicting quantization parameter based on intra prediction mode and apparatus using the same
KR1020160055717A KR20160055770A (en) 2011-10-26 2016-05-04 Method for predicting quantization parameter based on intra prediction mode and apparatus using the same
KR1020160055714A KR20160055769A (en) 2011-10-26 2016-05-04 Method for predicting quantization parameter based on intra prediction mode and apparatus using the same

Family Applications After (1)

Application Number Title Priority Date Filing Date
KR1020160055719A KR20160055771A (en) 2011-10-26 2016-05-04 Method for predicting quantization parameter based on intra prediction mode and apparatus using the same

Country Status (1)

Country Link
KR (5) KR101620620B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018034374A1 (en) * 2016-08-19 2018-02-22 엘지전자(주) Method and apparatus for encoding and decoding video signal using intra-prediction filtering

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017069590A1 (en) * 2015-10-22 2017-04-27 엘지전자 주식회사 Modeling-based image decoding method and device in image coding system
WO2019050300A1 (en) * 2017-09-06 2019-03-14 가온미디어 주식회사 Method and device for image encoding/decoding based on effective transmission of differential quantization parameter
FR3081656A1 (en) * 2018-06-27 2019-11-29 Orange METHODS AND DEVICES FOR ENCODING AND DECODING A DATA STREAM REPRESENTATIVE OF AT LEAST ONE IMAGE.
JP2022016726A (en) * 2018-11-16 2022-01-25 ソニーグループ株式会社 Image processing apparatus and method
WO2020130577A1 (en) 2018-12-18 2020-06-25 엘지전자 주식회사 Image coding method based on secondary transform, and device therefor
WO2021118266A1 (en) * 2019-12-12 2021-06-17 엘지전자 주식회사 Image decoding method and device using deblocking filtering
EP4131971A4 (en) * 2020-04-02 2024-04-17 LG Electronics, Inc. Image coding method based on chroma deblocking parameter information for monochrome color format in video or image coding system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018034374A1 (en) * 2016-08-19 2018-02-22 엘지전자(주) Method and apparatus for encoding and decoding video signal using intra-prediction filtering
US11503315B2 (en) 2016-08-19 2022-11-15 Lg Electronics Inc. Method and apparatus for encoding and decoding video signal using intra prediction filtering

Also Published As

Publication number Publication date
KR20160055769A (en) 2016-05-18
KR20130045807A (en) 2013-05-06
KR20160055771A (en) 2016-05-18
KR101620620B1 (en) 2016-05-13
KR20160055770A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
KR101828964B1 (en) Method for encoding image, method for decoding image, image encoder, and image decoder
KR101552634B1 (en) Method of coefficient scan based on partition mode of prediction unit and apparatus using the same
KR101549910B1 (en) Adaptive transform method based on in-screen rediction and apparatus using the method
KR101620620B1 (en) Method for predicting quantization parameter based on intra prediction mode and apparatus using the same
KR101468078B1 (en) Method and apparatus for intra prediction

Legal Events

Date Code Title Description
A107 Divisional application of patent
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
AMND Amendment
E90F Notification of reason for final refusal