KR20220116107A - Method and apparatus for encoding/decoding a video signal - Google Patents
Method and apparatus for encoding/decoding a video signal Download PDFInfo
- Publication number
- KR20220116107A KR20220116107A KR1020220097911A KR20220097911A KR20220116107A KR 20220116107 A KR20220116107 A KR 20220116107A KR 1020220097911 A KR1020220097911 A KR 1020220097911A KR 20220097911 A KR20220097911 A KR 20220097911A KR 20220116107 A KR20220116107 A KR 20220116107A
- Authority
- KR
- South Korea
- Prior art keywords
- prediction
- current block
- block
- prediction parameter
- weight
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 230000002093 peripheral effect Effects 0.000 claims 9
- 230000008859 change Effects 0.000 description 20
- 238000013139 quantization Methods 0.000 description 18
- 238000001914 filtration Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 12
- 208000037170 Delayed Emergence from Anesthesia Diseases 0.000 description 11
- 238000000611 regression analysis Methods 0.000 description 6
- 230000002123 temporal effect Effects 0.000 description 6
- 230000003044 adaptive effect Effects 0.000 description 5
- 238000012937 correction Methods 0.000 description 5
- 230000002457 bidirectional effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000009466 transformation Effects 0.000 description 3
- 239000000470 constituent Substances 0.000 description 2
- 238000009499 grossing Methods 0.000 description 2
- 230000008707 rearrangement Effects 0.000 description 2
- 238000011426 transformation method Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000003709 image segmentation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010845 search algorithm Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
- H04N19/513—Processing of motion vectors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/105—Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/107—Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/124—Quantisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/91—Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
본 발명은 영상 신호 부호화/복호화 방법 및 장치에 관한 것이다. The present invention relates to a method and apparatus for encoding/decoding a video signal.
최근, 인터넷에서는 동영상과 같은 멀티미디어 데이터의 수요가 급격히 증가하고 있다. 하지만 채널(Channel)의 대역폭(Bandwidth)이 발전하는 속도는 급격히 증가하고 있는 멀티미디어 데이터의 양을 따라가기 힘든 상황이다. 이에 따라, 국제 표준화 기구인 ITU-T의 VCEG(Video Coding Expert Group)과 ISO/IEC의 MPEG(Moving Picture Expert Group)은 2014년 2월, 동영상 압축 표준인 HEVC(High Efficiency Video Coding) 버전1을 제정하였다.Recently, the demand for multimedia data such as moving pictures is rapidly increasing on the Internet. However, it is difficult to keep up with the rapidly increasing amount of multimedia data at the rate of development of the bandwidth of the channel. Accordingly, in February 2014, ITU-T's Video Coding Expert Group (VCEG) and ISO/IEC's MPEG (Moving Picture Expert Group) adopted HEVC (High Efficiency Video Coding) version 1, a video compression standard, in February 2014. enacted.
HEVC에서는 화면 내 예측, 화면 간 예측, 변환, 양자화, 엔트로피 부호화 및 인-루프 필터 등의 기술을 정의하고 있다. 이 중, 화면 간 예측은, 기 복원된 영상들과, 움직임 벡터(Motion vector), 참조 영상 인덱스(Reference picture index), 예측 방향(Inter prediction indicator) 등과 같은 움직임 정보들을 이용하여 예측을 수행하는 것을 의미한다. HEVC defines techniques such as intra prediction, inter prediction, transform, quantization, entropy encoding, and in-loop filter. Among them, inter prediction refers to performing prediction using previously reconstructed images and motion information such as a motion vector, a reference picture index, and an inter prediction indicator. it means.
화면 간 예측은 영상간 상관도가 높을 수록, 높은 예측 효율을 얻을 수 있다. 다만, 페이드 인(Fade-In) 또는 페이드 아웃(Fade-Out) 등과 같은 영상 간 밝기 변화가 존재하여 영상간 상관도가 낮아진다면 화면 간 예측 결과가 부정확 할 염려가 있다. 이와 같은 문제점을 해결하기 위해, 본 발명에서는 가중치 예측을 제안하고자 한다. 여기서, 가중치 예측이란, 영상 간 밝기 변화가 존재하는 경우, 밝기가 변화된 정도만큼 가중치를 추정하고, 추정된 가중치를 화면 간 예측에 적용하는 것을 의미할 수 있다.In the prediction between screens, the higher the correlation between images, the higher the prediction efficiency can be obtained. However, if there is a change in brightness between images, such as fade-in or fade-out, and the correlation between images is lowered, there is a concern that the prediction result between the screens may be inaccurate. In order to solve such a problem, in the present invention, weight prediction is proposed. Here, the weighted prediction may mean that when there is a brightness change between images, the weight is estimated by the degree of the brightness change, and the estimated weight is applied to the inter prediction.
본 발명은 영상을 부호화/복호화함에 있어서, 가중치를 이용한 화면 간 예측을 수행함으로써, 화면 간 예측 효율을 향상시키는 것에 주된 목적이 있다.A main object of the present invention is to improve inter prediction efficiency by performing inter prediction using weights in encoding/decoding an image.
본 발명은 영상을 부호화/복호화함에 있어서, 가중치를 선택적으로 사용함으로써, 영상에 다수의 광원이 존재하거나, 국소 영역에서만 밝기 변화가 존재하는 경우에도, 효과적으로 화면 간 예측을 수행할 수 있는 장치 및 방법을 제공하는 것에 주된 목적이 있다. The present invention provides an apparatus and method for effectively performing inter-screen prediction even when a plurality of light sources exist in an image or a change in brightness exists only in a local area by selectively using weights in encoding/decoding an image Its main purpose is to provide
본 발명에 따른 영상 신호 복호화 방법 및 장치는, 현재 블록에 이웃하는 이웃 블록의 가중치 예측 파라미터에 기초하여, 상기 현재 블록에 대한, 가중치 예측 파라미터 세트를 생성하고, 상기 가중치 예측 파라미터 세트 및 인덱스 정보에 기초하여, 상기 현재 블록에 대한 가중치 예측 파라미터를 결정하고, 상기 현재 블록의 가중치 예측 파라미터를 이용하여, 상기 현재 블록에 대한 화면 간 예측을 수행할 수 있다.A video signal decoding method and apparatus according to the present invention generates a weighted prediction parameter set for the current block based on a weighted prediction parameter of a neighboring block adjacent to the current block, and adds the weighted prediction parameter set and index information to the weighted prediction parameter set and index information. Based on the determination of a weighted prediction parameter for the current block, inter prediction may be performed on the current block by using the weighted prediction parameter of the current block.
본 발명에 따른 영상 신호 복호화 방법 및 장치에 있어서, 상기 가중치 예측 파라미터 세트는, 상기 현재 블록의 예측 방향에 따라, 상기 이웃 블록의 정방향 가중치 예측 파라미터 또는 상기 이웃 블록의 역방향 가중치 예측 파라미터 중 적어도 하나를 기초로 생성될 수 있다.In the video signal decoding method and apparatus according to the present invention, the weighted prediction parameter set includes at least one of a forward weighted prediction parameter of the neighboring block and a backward weighted prediction parameter of the neighboring block according to the prediction direction of the current block. can be created on the basis of
본 발명에 따른 영상 신호 복호화 방법 및 장치에 있어서, 상기 현재 블록의 예측 방향이 양방향인 경우, 상기 가중치 예측 파라미터 세트는, 상기 이웃 블록의 정방향 가중치 예측 파라미터 및 상기 이웃 블록의 역방향 가중치 예측 파라미터를 모두 포함할 수 있다.In the video signal decoding method and apparatus according to the present invention, when the prediction direction of the current block is bidirectional, the weighted prediction parameter set includes both the forward weighted prediction parameter of the neighboring block and the backward weighted prediction parameter of the neighboring block. may include
본 발명에 따른 영상 신호 복호화 방법 및 장치에 있어서, 상기 이웃 블록으로부터 획득할 수 있는 가중치 예측 파라미터의 개수가 상기 가중치 예측 파라미터 세트가 포함할 수 있는 최대 가중치 예측 파라미터의 개수보다 작은 경우, 상기 가중치 예측 파라미터 세트는, 상기 이웃 블록의 가중치 예측 파라미터를 조합함으로써 생성된 조합된 가중치 예측 파라미터를 더 포함할 수 있다.In the method and apparatus for decoding an image signal according to the present invention, when the number of weighted prediction parameters obtainable from the neighboring block is smaller than the maximum number of weighted prediction parameters that the weighted prediction parameter set can include, the weighted prediction The parameter set may further include a combined weighted prediction parameter generated by combining the weighted prediction parameters of the neighboring blocks.
본 발명에 따른 영상 신호 복호화 방법 및 장치에 있어서, 상기 가중치 예측 파라미터 세트에 포함된 복수의 가중치 예측 파라미터는, 기 정의된 순서로 정렬될 수 있다.In the method and apparatus for decoding an image signal according to the present invention, a plurality of weight prediction parameters included in the weight prediction parameter set may be arranged in a predefined order.
본 발명에 따른 영상 신호 부호화 방법 및 장치는, 현재 블록에 이웃하는 이웃 블록의 가중치 예측 파라미터에 기초하여, 상기 현재 블록에 대한, 가중치 예측 파라미터 세트를 생성하고, 상기 가중치 예측 파라미터 세트를 기초로, 상기 현재 블록에 대한 가중치 예측 파라미터를 결정하고, 상기 결정된 가중치 예측 파라미터를 특정하는 인덱스 정보를 부호화할 수 있다.A video signal encoding method and apparatus according to the present invention generates a weighted prediction parameter set for the current block based on a weighted prediction parameter of a neighboring block adjacent to the current block, and based on the weighted prediction parameter set, A weight prediction parameter for the current block may be determined, and index information specifying the determined weight prediction parameter may be encoded.
본 발명에 따른 영상 신호 부호화 방법 및 장치에 있어서, 상기 가중치 예측 파라미터 세트는, 상기 현재 블록의 예측 방향에 따라, 상기 이웃 블록의 정방향 가중치 예측 파라미터 또는 상기 이웃 블록의 역방향 가중치 예측 파라미터 중 적어도 하나를 기초로 생성될 수 있다.In the video signal encoding method and apparatus according to the present invention, the weighted prediction parameter set includes at least one of a forward weighted prediction parameter of the neighboring block and a backward weighted prediction parameter of the neighboring block according to the prediction direction of the current block. can be created on the basis of
본 발명에 따른 영상 신호 부호화 방법 및 장치에 있어서, 상기 현재 블록의 예측 방향이 양방향인 경우, 상기 가중치 예측 파라미터 세트는, 상기 이웃 블록의 정방향 가중치 예측 파라미터 및 상기 이웃 블록의 역방향 가중치 예측 파라미터를 모두 포함할 수 있다.In the video signal encoding method and apparatus according to the present invention, when the prediction direction of the current block is bidirectional, the weighted prediction parameter set includes both the forward weighted prediction parameter of the neighboring block and the backward weighted prediction parameter of the neighboring block. may include
본 발명에 따른 영상 신호 부호화 방법 및 장치에 있어서, 상기 이웃 블록으로부터 획득할 수 있는 가중치 예측 파라미터의 개수가 상기 가중치 예측 파라미터 세트가 포함할 수 있는 최대 가중치 예측 파라미터의 개수보다 작은 경우, 상기 가중치 예측 파라미터 세트는, 상기 이웃 블록의 가중치 예측 파라미터를 조합함으로써 생성된 조합된 가중치 예측 파라미터를 더 포함할 수 있다.In the video signal encoding method and apparatus according to the present invention, when the number of weighted prediction parameters obtainable from the neighboring block is smaller than the number of weighted prediction parameters that the weighted prediction parameter set can include, the weighted prediction The parameter set may further include a combined weighted prediction parameter generated by combining the weighted prediction parameters of the neighboring blocks.
본 발명에 따른 영상 신호 부호화 방법 및 장치에 있어서, 상기 가중치 예측 파라미터 세트에 포함된 복수의 가중치 예측 파라미터는, 기 정의된 순서로 정렬될 수 있다.In the video signal encoding method and apparatus according to the present invention, a plurality of weight prediction parameters included in the weight prediction parameter set may be arranged in a predefined order.
현재 블록을 포함하는 현재 영상과, 상기 현재 영상의 참조 영상 사이 밝기 변화가 존재하는지 여부를 판단하고, 상기 현재 영상과 상기 참조 영상 사이 밝기 변화가 존재하는 것으로 판단되면, 현재 블록에 대한 가중치 예측 파라미터 후보를 결정하고, 상기 가중치 예측 파라미터 후보 중 어느 하나를 특정하는 인덱스 정보에 기초하여, 상기 현재 블록에 대한 가중치 예측 파라미터를 결정하고, 상기 가중치 예측 파라미터를 기초로, 상기 현재 블록에 대한 예측을 수행할 수 있다. It is determined whether there is a change in brightness between the current image including the current block and the reference image of the current image, and when it is determined that there is a change in brightness between the current image and the reference image, weight prediction parameters for the current block Determine a candidate, determine a weighted prediction parameter for the current block based on index information specifying any one of the weighted prediction parameter candidates, and perform prediction on the current block based on the weighted prediction parameter can do.
본 발명에 따른 영상 신호 복호화 방법 및 장치에 있어서, 상기 가중치 예측 파라미터 후보는, 상기 참조 영상에 대한 제1 가중치 예측 파라미터를 포함할 수 있다. In the method and apparatus for decoding an image signal according to the present invention, the weighted prediction parameter candidate may include a first weighted prediction parameter for the reference image.
본 발명에 따른 영상 신호 복호화 방법 및 장치에 있어서, 상기 현재 영상에, 제2 가중치 예측 파라미터를 유도할 수 있는 적어도 하나 이상의 영역을 포함하는 경우, 상기 가중치 예측 파라미터 후보는, 적어도 하나 이상의 제2 가중치 예측 파라미터를 더 포함할 수 있다. In the video signal decoding method and apparatus according to the present invention, when at least one region from which a second weight prediction parameter can be derived is included in the current image, the weight prediction parameter candidates include at least one second weight It may further include a prediction parameter.
본 발명에 따른 영상 신호 복호화 방법 및 장치에 있어서, 상기 제1 가중치 예측 파라미터는, 상기 제1 가중치 예측 파라미터에 대한 예측값 및 상기 제1 가중치 예측 파라미터에 대한 잔차값을 기초로 유도될 수 있다. In the method and apparatus for decoding an image signal according to the present invention, the first weighted prediction parameter may be derived based on a prediction value of the first weighted prediction parameter and a residual value of the first weighted prediction parameter.
본 발명에 따른 영상 신호 복호화 방법 및 장치에 있어서, 상기 제1 가중치 예측 파라미터에 대한 예측값은, 상기 현재 블록에 대한 정밀도에 따라 결정될 수 있다.In the method and apparatus for decoding an image signal according to the present invention, the predicted value for the first weighted prediction parameter may be determined according to the precision of the current block.
본 발명에 따른 영상 신호 복호화 방법 및 장치에 있어서, 상기 가중치 예측 파라미터 후보의 최대 개수는 상기 현재 블록의 크기에 따라 적응적으로 결정될 수 있다.In the method and apparatus for decoding an image signal according to the present invention, the maximum number of weight prediction parameter candidates may be adaptively determined according to the size of the current block.
본 발명에 따른 영상 신호 복호화 방법 및 장치에 있어서, 상기 가중치 예측 파라미터 후보는, 기 설정된 가중치 값을 갖는 초기 가중치 예측 파라미터를 포함할 수 있다.In the method and apparatus for decoding an image signal according to the present invention, the weight prediction parameter candidate may include an initial weight prediction parameter having a preset weight value.
본 발명에 따른 영상 신호 부호화 방법 및 장치는, 현재 블록을 포함하는 현재 영상과, 상기 현재 영상의 참조 영상 사이 밝기 변화가 존재하는지 여부를 판단하고, 상기 현재 영상과 상기 참조 영상 사이 밝기 변화가 존재하는 것으로 판단되면, 현재 블록에 대한 가중치 예측 파라미터 후보를 결정하고, 상기 가중치 예측 파라미터 후보 중에서, 상기 현재 블록에 대한 가중치 예측 파라미터를 결정하고 상기 결정된 가중치 예측 파라미터를 특정하는 인덱스 정보를 부호화하고, 상기 가중치 예측 파라미터를 기초로, 상기 현재 블록에 대한 예측을 수행할 수 있다.A video signal encoding method and apparatus according to the present invention determines whether there is a change in brightness between a current image including a current block and a reference image of the current image, and there is a change in brightness between the current image and the reference image If it is determined that a weight prediction parameter candidate for the current block is determined, a weight prediction parameter for the current block is determined from among the weight prediction parameter candidates, and index information specifying the determined weight prediction parameter is encoded, and Prediction may be performed on the current block based on the weighted prediction parameter.
본 발명에 따른 영상 신호 부호화 방법 및 장치에 있어서, 상기 가중치 예측 파라미터 후보는, 상기 참조 영상에 대한 제1 가중치 예측 파라미터를 포함할 수 있다.In the video signal encoding method and apparatus according to the present invention, the weighted prediction parameter candidate may include a first weighted prediction parameter for the reference image.
본 발명에 따른 영상 신호 부호화 방법 및 장치에 있어서, 상기 현재 영상에, 제2 가중치 예측 파라미터를 유도할 수 있는 적어도 하나 이상의 영역을 포함하는 경우, 상기 가중치 예측 파라미터 후보는, 적어도 하나 이상의 제2 가중치 예측 파라미터를 더 포함할 수 있다.In the video signal encoding method and apparatus according to the present invention, when at least one region from which a second weight prediction parameter can be derived is included in the current image, the weight prediction parameter candidates include at least one second weight It may further include a prediction parameter.
본 발명에 따른 영상 신호 부호화 방법 및 장치는, 상기 제1 가중치 예측 파라미터 및 상기 제1 가중치 예측 파라미터에 대한 예측값 사이의 차이를 나타내는 차분값을 부호화할 수 있다.The video signal encoding method and apparatus according to the present invention may encode a difference value indicating a difference between the first weighted prediction parameter and a predicted value for the first weighted prediction parameter.
본 발명에 따른 영상 신호 부호화 방법 및 장치에 있어서, 상기 제1 가중치 예측 파라미터에 대한 예측값은, 상기 현재 블록에 대한 정밀도에 따라 결정될 수 있다. In the video signal encoding method and apparatus according to the present invention, the prediction value for the first weighted prediction parameter may be determined according to the precision of the current block.
본 발명에 따른 영상 신호 부호화 방법 및 장치에 있어서, 상기 가중치 예측 파라미터 후보의 최대 개수는 상기 현재 블록의 크기에 따라 적응적으로 결정될 수 있다.In the video signal encoding method and apparatus according to the present invention, the maximum number of weight prediction parameter candidates may be adaptively determined according to the size of the current block.
본 발명에 따른 영상 신호 부호화 방법 및 장치에 있어서, 상기 가중치 예측 파라미터 후보는, 기 설정된 가중치 값을 갖는 초기 가중치 예측 파라미터를 포함할 수 있다.In the video signal encoding method and apparatus according to the present invention, the weight prediction parameter candidate may include an initial weight prediction parameter having a preset weight value.
본 발명은 영상을 부호화/복호화함에 있어서, 가중치를 이용한 화면 간 예측을 수행함으로써, 화면 간 예측 효율을 향상시킬 수 있다.The present invention can improve inter prediction efficiency by performing inter prediction using weights when encoding/decoding an image.
본 발명은 영상을 부호화/복호화함에 있어서, 가중치를 선택적으로 사용함으로써, 영상에 다수의 광원이 존재하거나, 국소 영역에서만 밝기 변화가 존재하는 경우에도, 효과적으로 화면 간 예측을 수행할 수 있다.In the present invention, by selectively using weights in encoding/decoding an image, even when a plurality of light sources exist in an image or a change in brightness exists only in a local area, inter prediction can be effectively performed.
도 1은 본 발명의 일실시예에 따른 영상 부호화 장치를 나타낸 블록도이다.
도 2는 본 발명의 일실시예에 따른 영상 복호화 장치를 나타낸 블록도이다.
도 3은 본 발명의 일 실시예에 따른 움직임 추정 방법을 간략하게 나타낸 블록 구성도이다.
도 4는 본 발명의 일 실시예에 따라 현재 부호화 하려는 블록에 적용하기 위한 움직임 정보를 가져오는 주변 블록의 위치를 나타낸 예시이다.
도 5는 현재 블록을 포함하는 현재 영상과 참조 영상 사이의 밝기 변화 양상을 예시한 도면이다.
도 6은 부호화 장치에서 가중치 예측 파라미터를 사용하는 방법을 나타낸 흐름도이다.
도 7은 현재 블록에 이웃한 이웃 블록들의 가중치 예측 파라미터를 나타낸 도면이다.
도 8은 현재 블록이 가중치 예측 파라미터 추정에 일부 화소만이 이용되는 예를 설명한 도면이다.
도 9는 조합된 가중치 예측 파라미터가 생성되는 예를 나타낸다.
도 10은 복호화 장치에서 가중치 예측 파라미터를 복호화하는 예를 나타낸다.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 block diagram schematically illustrating a motion estimation method according to an embodiment of the present invention.
4 is an example showing the positions of neighboring blocks from which motion information to be applied to a block to be currently encoded according to an embodiment of the present invention.
5 is a diagram illustrating a change in brightness between a current image including a current block and a reference image.
6 is a flowchart illustrating a method of using a weight prediction parameter in an encoding apparatus.
7 is a diagram illustrating weight prediction parameters of neighboring blocks adjacent to the current block.
8 is a diagram illustrating an example in which only some pixels of a current block are used for weight prediction parameter estimation.
9 shows an example in which a combined weight prediction parameter is generated.
10 illustrates an example of decoding a weight prediction parameter in a decoding apparatus.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.Since the present invention can have various changes and can have various embodiments, specific embodiments are illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the present invention to specific embodiments, and should be understood to include all modifications, equivalents and substitutes included in the spirit and scope of the present invention. In describing each figure, like reference numerals have been used for like elements.
제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.Terms such as first, second, etc. may be used to describe various elements, but the elements should not be limited by the terms. The above terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, a first component may be referred to as a second component, and similarly, a second component may also be referred to as a first component. and/or includes a combination of a plurality of related listed items or any of a plurality of related listed items.
어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어"있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어"있다거나 "직접 접속되어"있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.When an element is referred to as being “connected” or “connected” to another element, it is understood that it may be directly connected or connected to the other element, but other elements may exist in between. it should be On the other hand, when it is mentioned that a certain element is "directly connected" or "directly connected" to another element, it should be understood that no other element is present in the middle.
본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the present application are only used to describe specific embodiments, and are not intended to limit the present invention. The singular expression includes the plural expression unless the context clearly dictates otherwise. In the present application, terms such as “comprise” or “have” are intended to designate that a feature, number, step, operation, component, part, or combination thereof described in the specification exists, but one or more other features It is to be understood that this does not preclude the possibility of the presence or addition of numbers, steps, operations, components, parts, or combinations thereof.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다.Hereinafter, preferred embodiments of the present invention will be described in more detail with reference to the accompanying drawings. Hereinafter, the same reference numerals are used for the same components in the drawings, and repeated descriptions of the same components are omitted.
도 1은 본 발명의 일실시예에 따른 영상 부호화 장치를 나타낸 블록도이다. 1 is a block diagram illustrating an image encoding apparatus according to an embodiment of the present invention.
도 1을 참조하면, 영상 부호화 장치(100)는 영상 분할부(110), 예측부(120, 125), 변환부(130), 양자화부(135), 재정렬부(160), 엔트로피 부호화부(165), 역양자화부(140), 역변환부(145), 필터부(150) 및 메모리(155)를 포함할 수 있다.Referring to FIG. 1 , the image encoding apparatus 100 includes an
도 1에 나타난 각 구성부들은 영상 부호화 장치에서 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시한 것으로, 각 구성부들이 분리된 하드웨어나 하나의 소프트웨어 구성단위로 이루어짐을 의미하지 않는다. 즉, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수개의 구성부로 나뉘어져 기능을 수행할 수 있고 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.Each of the constituent units shown in FIG. 1 is independently illustrated to represent different characteristic functions in the image encoding apparatus, and does not mean that each constituent unit is composed of separate hardware or one software constituent unit. That is, each component is listed as each component for convenience of description, and at least two components of each component are combined to form one component, or one component can be divided into a plurality of components to perform a function, and each of these components Integrated embodiments and separate embodiments of the components are also included in the scope of the present invention without departing from the essence of the present invention.
또한, 일부의 구성 요소는 본 발명에서 본질적인 기능을 수행하는 필수적인 구성 요소는 아니고 단지 성능을 향상시키기 위한 선택적 구성 요소일 수 있다. 본 발명은 단지 성능 향상을 위해 사용되는 구성 요소를 제외한 본 발명의 본질을 구현하는데 필수적인 구성부만을 포함하여 구현될 수 있고, 단지 성능 향상을 위해 사용되는 선택적 구성 요소를 제외한 필수 구성 요소만을 포함한 구조도 본 발명의 권리범위에 포함된다.In addition, some of the components are not essential components for performing essential functions in the present invention, but may be optional components for merely improving performance. The present invention can be implemented by including only essential components to implement the essence of the present invention except for components used for improving performance, and only having a structure including essential components excluding optional components used for improving performance Also included in the scope of the present invention.
영상 분할부(110)는 입력된 영상을 적어도 하나의 블록으로 분할할 수 있다. 이때, 블록은 부호화 단위(CU), 예측 단위(PU) 또는 변환 단위(TU)를 의미할 수 있다. 상기 분할은 쿼드 트리(Quadtree) 또는 바이너리 트리(Biniary tree) 중 적어도 하나에 기반하여 수행될 수 있다. 쿼드 트리는 상위 블록을 너비와 높이가 상위 블록의 절반인 하위 블록으로 사분할하는 방식이다. 바이너리 트리는 상위 블록을 너비 또는 높이 중 어느 하나가 상위 블록의 절반인 하위 블록으로 이분할하는 방식이다. 전술한 쿼드 트리 또는 바이너리 트리 기반의 분할을 통해, 블록은 정방형뿐만 아니라 비정방형의 형태도 가질 수 있다. The
이하, 본 발명의 실시예에서는 부호화 단위는 부호화를 수행하는 단위의 의미로 사용할 수도 있고, 복호화를 수행하는 단위의 의미로 사용할 수도 있다.Hereinafter, in an embodiment of the present invention, a coding unit may be used as a unit for performing encoding or may be used as a meaning for a unit for performing decoding.
예측부(120, 125)는 화면 간 예측을 수행하는 화면 간 예측부(120)와 화면 내 예측을 수행하는 화면 내 예측부(125)를 포함할 수 있다. 예측 단위에 대해 화면 간 예측을 사용할 것인지 또는 화면 내 예측을 수행할 것인지를 결정하고, 각 예측 방법에 따른 구체적인 정보(예컨대, 화면 내 예측 모드, 움직임 벡터, 참조 영상 등)를 결정할 수 있다. 이때, 예측이 수행되는 처리 단위와 예측 방법 및 구체적인 내용이 정해지는 처리 단위는 다를 수 있다. 예컨대, 예측의 방법과 예측 모드 등은 예측 단위로 결정되고, 예측의 수행은 변환 단위로 수행될 수도 있다. The
생성된 예측 블록과 원본 블록 사이의 잔차값(잔차 블록)은 변환부(130)로 입력될 수 있다. 또한, 예측을 위해 사용한 예측 모드 정보, 움직임 벡터 정보 등은 잔차값과 함께 엔트로피 부호화부(165)에서 부호화되어 복호화기에 전달될 수 있다. 특정한 부호화 모드를 사용할 경우, 예측부(120, 125)를 통해 예측 블록을 생성하지 않고, 원본 블록을 그대로 부호화하여 복호화부에 전송하는 것도 가능하다.A residual value (residual block) between the generated prediction block and the original block may be input to the
화면 간 예측부(120)는 현재 영상의 이전 영상 또는 이후 영상 중 적어도 하나의 영상의 정보를 기초로 예측 단위를 예측할 수도 있고, 경우에 따라서는 현재 영상 내의 부호화가 완료된 일부 영역의 정보를 기초로 예측 단위를 예측할 수도 있다. 화면 간 예측부(120)는 참조 영상 보간부, 움직임 정보 생성부, 움직임 보상부를 포함할 수 있다. The
참조 영상 보간부에서는 메모리(155)로부터 참조 영상 정보를 제공받고 참조 영상에서 정수 화소 이하의 화소 정보를 생성할 수 있다. 휘도 화소의 경우, 1/4 화소 단위로 정수 화소 이하의 화소 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 8탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다. 색차 신호의 경우 1/8 화소 단위로 정수 화소 이하의 화소 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 4탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다.The reference image interpolator may receive reference image information from the
움직임 정보 생성부는 참조 영상 보간부에 의해 보간된 참조 영상를 기초로 움직임 정보를 생성할 수 있다. 여기서 움직임 정보는, 움직임 벡터, 참조 영상 인덱스, 예측 방향 등을 의미한다. 움직임 벡터를 추정하기 위한 방법으로는 FBMA(Full search-based Block Matching Algorithm), TSS(Three Step Search), NTS(New Three-Step Search Algorithm) 등 다양한 방법이 사용될 수 있다. 또한 움직임 벡터는 보간된 화소를 기초로 1/2 또는 1/4 화소 단위의 움직임 벡터값을 가질 수 있다. 화면 간 예측에서는 움직임 정보 생성 방법을 다르게 하여 현재 예측 단위를 예측할 수 있다. 움직임 정보 생성 방법으로는, 이웃 블록의 움직임 벡터를 이용하는 머지(Merge) 방법, 움직임 추정 방법(예컨대, AMVP(Adaptive Motion Vector Prediction)) 등 다양한 방법이 사용될 수 있다.The motion information generator may generate motion information based on the reference image interpolated by the reference image interpolator. Here, the motion information means a motion vector, a reference image index, a prediction direction, and the like. As a method for estimating the motion vector, various methods such as Full search-based Block Matching Algorithm (FBMA), Three Step Search (TSS), and New Three-Step Search Algorithm (NTS) may be used. Also, the motion vector may have a motion vector value in units of 1/2 or 1/4 pixels based on the interpolated pixels. In inter prediction, the current prediction unit may be predicted by using a different method of generating motion information. As a method of generating motion information, various methods such as a merge method using a motion vector of a neighboring block and a motion estimation method (eg, Adaptive Motion Vector Prediction (AMVP)) may be used.
일 예로, 도 3은 움직임 추정을 통해 움직임 정보를 생성하는 예를 나타낸 도면이다. 움직임 추정은 이미 부호화 및 복호화가 종료된 참조 영상 내 예측 블록과 동일 또는 유사한 참조 블록이 결정되면, 상기 결정에 따라 현재 블록의 움직임 벡터, 참조 영상 인덱스 및 화면 간 예측 방향을 결정하는 것이다. As an example, FIG. 3 is a diagram illustrating an example of generating motion information through motion estimation. Motion estimation is to determine a motion vector, a reference picture index, and an inter prediction direction of the current block according to the determination when a reference block identical to or similar to a prediction block in a reference picture that has already been encoded and decoded is determined.
AMVP 방법이 이용되는 경우, 부호화 장치는, 현재 블록에서 추정된 움직임 벡터를 예측하여 예측 움직임 벡터(MVP:Motion Vector Prediction)를 생성하고, 움직임 벡터와 생성된 예측 움직임 벡터 사이의 차분값(MVD : Motion Vector Difference)를 부호화 할 수 있다.When the AMVP method is used, the encoding apparatus predicts a motion vector estimated in the current block to generate a motion vector prediction (MVP), and a difference value (MVD) between the motion vector and the generated prediction motion vector: Motion Vector Difference) can be encoded.
이웃 블록의 움직임 벡터를 이용하는 방법은, 현재 블록에 이웃한 이웃 블록의 움직임 정보를 현재 블록에 적용하는 것이다. 이때, 이웃 블록은, 현재 블록에 인접한 공간적 이웃 블록 및 참조 영상에 포함된 현재 블록과 동일한 위치에 존재하는 시간적 이웃 블록을 포함할 수 있다. 일 예로, 도 4는 현재 블록의 이웃 블록을 예시한 것이다. 부호화 장치는 도 4에 도시된 현재 블록의 이웃 블록(공간적 이웃 블록:A~E , 시간적 이웃 블록:Col)의 움직임 정보를 현재 블록에 적용함으로써, 현재 블록의 움직임 정보를 결정할 수도 있다. 여기서 Col은 참조 영상에 존재하는 현재 블록과 동일 또는 유사한 위치의 블록을 의미한다. A method of using a motion vector of a neighboring block is to apply motion information of a neighboring block adjacent to the current block to the current block. In this case, the neighboring block may include a spatial neighboring block adjacent to the current block and a temporal neighboring block existing at the same position as the current block included in the reference image. As an example, FIG. 4 illustrates a neighboring block of the current block. The encoding apparatus may determine the motion information of the current block by applying motion information of neighboring blocks (spatial neighboring blocks: A to E , temporal neighboring blocks: Col) of the current block shown in FIG. 4 to the current block. Here, Col means a block at the same or similar position as the current block existing in the reference image.
화면 내 예측부(125)는 현재 영상 내의 화소 정보인 현재 블록 주변의 참조 화소 정보를 기초로 예측 단위를 생성할 수 있다. 현재 예측 단위의 주변 블록이 화면 간 예측을 수행한 블록이어서, 참조 화소가 화면 간 예측을 수행하여 복원 된 화소일 경우, 화면 간 예측을 수행한 블록에 포함되는 참조 화소를 주변의 화면 내 예측을 수행한 블록의 참조 화소 정보로 대체하여 사용할 수 있다. 즉, 참조 화소가 가용하지 않는 경우, 가용하지 않은 참조 화소 정보를 가용한 참조 화소 중 적어도 하나의 참조 화소로 대체하여 사용할 수 있다.The
화면 내 예측에서 예측 모드는 참조 화소 정보를 예측 방향에 따라 사용하는 방향성 예측 모드와 예측을 수행시 방향성 정보를 사용하지 않는 비방향성 모드를 가질 수 있다. 휘도 정보를 예측하기 위한 모드와 색차 정보를 예측하기 위한 모드가 상이할 수 있고, 색차 정보를 예측하기 위해 휘도 정보를 예측하기 위해 사용된 화면 내 예측 모드 정보 또는 예측된 휘도 신호 정보를 활용할 수 있다.In intra prediction, the prediction mode may have a directional prediction mode in which reference pixel information is used according to a prediction direction and a non-directional mode in which directional information is not used when prediction is performed. A mode for predicting luminance information and a mode for predicting chrominance information may be different, and in-screen prediction mode information or predicted luminance signal information used to predict luminance information may be utilized to predict chrominance information. .
화면 내 예측 방법은 예측 모드에 따라 참조 화소에 AIS(Adaptive Intra Smoothing) 필터를 적용한 후 예측 블록을 생성할 수 있다. 참조 화소에 적용되는 AIS 필터의 종류는 상이할 수 있다. 화면 내 예측 방법을 수행하기 위해 현재 예측 단위의 화면 내 예측 모드는 현재 예측 단위의 주변에 존재하는 예측 단위의 화면 내 예측 모드로부터 예측될 수 있다. 주변 예측 단위로부터 예측된 화면 내 예측 모드 정보를 이용하여 현재 예측 단위의 화면 내 예측 모드를 예측하는 경우, 현재 예측 단위와 주변 예측 단위의 화면 내 예측 모드가 동일하면 소정의 플래그 정보를 이용하여 현재 예측 단위와 주변 예측 단위의 예측 모드가 동일하다는 정보를 전송할 수 있고, 만약 현재 예측 단위와 주변 예측 단위의 예측 모드가 상이하면 엔트로피 부호화를 수행하여 현재 블록의 예측 모드 정보를 부호화할 수 있다.In the intra prediction method, a prediction block may be generated after applying an adaptive intra smoothing (AIS) filter to a reference pixel according to a prediction mode. The type of the AIS filter applied to the reference pixel may be different. In order to perform the intra prediction method, the intra prediction mode of the current prediction unit may be predicted from the intra prediction mode of the prediction unit existing around the current prediction unit. When the intra prediction mode of the current prediction unit is predicted by using the intra prediction mode information predicted from the neighboring prediction unit, if the intra prediction mode of the current prediction unit and the neighboring prediction unit are the same, the current prediction unit using predetermined flag information Information that the prediction mode of the prediction unit and the neighboring prediction unit is the same may be transmitted, and if the prediction modes of the current prediction unit and the neighboring prediction unit are different, entropy encoding may be performed to encode the prediction mode information of the current block.
또한, 예측부(120, 125)에서 생성된 예측 단위를 기초로 예측을 수행한 예측 단위와 예측 단위의 원본 블록과 차이값인 잔차값(Residual) 정보를 포함하는 잔차 블록이 생성될 수 있다. 생성된 잔차 블록은 변환부(130)로 입력될 수 있다. In addition, a residual block including residual information that is a difference value from the original block of the prediction unit and the prediction unit in which prediction is performed based on the prediction unit generated by the
변환부(130)에서는 잔차 데이터를 포함한 잔차 블록을 DCT, DST, KLT(Karhunen Loeve Transform) 등과 같은 변환 방법을 사용하여 변환시킬 수 있다. 이때 변환 방법은 잔차 블록을 생성하기 위해 사용된 예측 단위의 화면 내 예측 모드에 기반하여 결정될 수 있다. 예를 들어, 화면 내 예측 모드에 따라, 가로 방향으로는 DCT를 사용하고, 세로 방향으로는 DST를 사용할 수도 있다.The
양자화부(135)는 변환부(130)에서 주파수 영역으로 변환된 값들을 양자화할 수 있다. 블록에 따라 또는 영상의 중요도에 따라 양자화 계수는 변할 수 있다. 양자화부(135)에서 산출된 값은 역양자화부(140)와 재정렬부(160)에 제공될 수 있다.The
상기 변환부(130) 및/또는 양자화부(135)는, 영상 부호화 장치(100)에 선택적으로 포함될 수 있다. 즉, 영상 부호화 장치(100)는, 잔차 블록의 잔차 데이터에 대해 변환 또는 양자화 중 적어도 하나를 수행하거나, 변환 및 양자화를 모두 스킵하여 잔차 블록을 부호화할 수 있다. 영상 부호화 장치(100)에서 변환 또는 양자화 중 어느 하나가 수행되지 않거나, 변환 및 양자화 모두 수행되지 않더라도, 엔트로피 부호화부(165)의 입력으로 들어가는 블록을 통상적으로 변환 블록이라 일컫는다.The
재정렬부(160)는 양자화된 잔차값에 대해 계수값의 재정렬을 수행할 수 있다.The
재정렬부(160)는 계수 스캐닝(Coefficient Scanning) 방법을 통해 2차원의 블록 형태 계수를 1차원의 벡터 형태로 변경할 수 있다. 예를 들어, 재정렬부(160)에서는 소정의 스캔 타입을 이용하여 DC 계수부터 고주파수 영역의 계수까지 스캔하여 1차원 벡터 형태로 변경시킬 수 있다. The rearranging
엔트로피 부호화부(165)는 재정렬부(160)에 의해 산출된 값들을 기초로 엔트로피 부호화를 수행할 수 있다. 엔트로피 부호화는 예를 들어, 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 부호화 방법을 사용할 수 있다.The
엔트로피 부호화부(165)는 재정렬부(160) 및 예측부(120, 125)로부터 부호화 단위의 잔차값 계수 정보 및 블록 타입 정보, 예측 모드 정보, 분할 단위 정보, 예측 단위 정보 및 전송 단위 정보, 움직임 벡터 정보, 참조 영상 정보, 블록의 보간 정보, 필터링 정보 등 다양한 정보를 부호화할 수 있다. 엔트로피 부호화부(165)에서, 변환 블록의 계수는, 변환 블록 내 부분 블록 단위로 0인지 여부를 나타내는 플래그, 계수의 절대값이 1보다 큰지 여부를 나타내는 플래그 및 계수의 절대값이 2보다 큰지 여부를 나타내는 플래그 등이 부호화될 수 있다. 엔트로피 부호화부(165)는 0이 아닌 계수에 한하여 계수의 부호를 부호화 한다. 그리고, 계수의 절대값이 2보다 큰 계수는, 절대값에 2를 뺀 나머지 값을 부호화 한다.The
엔트로피 부호화부(165)에서는 재정렬부(160)에서 입력된 부호화 단위의 계수값을 엔트로피 부호화할 수 있다.The
역양자화부(140) 및 역변환부(145)에서는 양자화부(135)에서 양자화된 값들을 역양자화하고 변환부(130)에서 변환된 값들을 역변환한다. 역양자화부(140) 및 역변환부(145)에서 생성된 잔차값(Residual)은 예측부를(120, 125)통해서 예측 단위마다 생성된 예측 블록과 합쳐져 복원 블록(Reconstructed Block)을 생성할 수 있다. The
필터부(150)는 디블록킹 필터, 오프셋 보정부, ALF(Adaptive Loop Filter)중 적어도 하나를 포함할 수 있다.The
디블록킹 필터는 복원된 영상에서 블록간의 경계로 인해 생긴 블록 왜곡을 제거할 수 있다. 디블록킹 필터를 수행할지 여부를 판단하기 위해 블록에 포함된 몇 개의 열 또는 행에 포함된 화소를 기초로 현재 블록에 디블록킹 필터를 적용할지 여부를 판단할 수 있다. 블록에 디블록킹 필터를 적용하는 경우 필요한 디블록킹 필터링 강도에 따라 강한 필터(Strong Filter) 또는 약한 필터(Weak Filter)를 적용할 수 있다. 또한 디블록킹 필터를 적용함에 있어 수직 필터링 및 수평 필터링 수행시 수평 방향 필터링 및 수직 방향 필터링이 병행 처리되도록 할 수 있다.The deblocking filter may remove block distortion caused by the boundary between blocks in the reconstructed image. In order to determine whether to perform the deblocking filter, it may be determined whether to apply the deblocking filter to the current block based on pixels included in several columns or rows included in the block. When a deblocking filter is applied to a block, a strong filter or a weak filter can be applied according to the required deblocking filtering strength. In addition, in applying the deblocking filter, horizontal filtering and vertical filtering may be concurrently processed when performing vertical filtering and horizontal filtering.
오프셋 보정부는 디블록킹을 수행한 영상에 대해 화소 단위로 원본 영상과의 오프셋을 보정할 수 있다. 특정 영상에 대한 오프셋 보정을 수행하기 위해 영상에 포함된 화소를 임의의 영역으로 구분한 후 오프셋을 수행할 영역을 결정하고 해당 영역에 오프셋을 적용하는 방법 또는 각 화소의 에지 정보를 고려하여 오프셋을 적용하는 방법을 사용할 수 있다.The offset correcting unit may correct an offset from the original image in units of pixels with respect to the image on which the deblocking has been performed. In order to perform offset correction on a specific image, the method of dividing pixels included in an image into arbitrary regions, determining the region to be offset and applying the offset to the region, or calculating the offset by considering the edge information of each pixel application method can be used.
ALF(Adaptive Loop Filtering)는 필터링된 복원 영상과 원래의 영상을 비교한 값을 기초로 수행될 수 있다. 영상에 포함된 화소를 소정의 그룹으로 나눈 후 해당 그룹에 적용될 하나의 필터를 결정하여 그룹마다 차별적으로 필터링을 수행할 수 있다. ALF를 적용할지 여부에 관련된 정보는, 휘도 신호의 경우 부호화 단위(Coding Unit, CU) 별로 전송될 수 있고, 각각의 블록에 따라 적용될 ALF 필터의 모양 및 필터 계수는 달라질 수 있다. 또한, 적용 대상 블록의 특성에 상관없이 동일한 형태(고정된 형태)의 ALF 필터가 적용될 수도 있다. Adaptive loop filtering (ALF) may be performed based on a value obtained by comparing the filtered reconstructed image and the original image. After dividing the pixels included in the image into a predetermined group, one filter to be applied to the corresponding group is determined to perform differential filtering for each group. Information related to whether to apply ALF may be transmitted for each coding unit (CU) in the case of a luminance signal, and the shape and filter coefficients of the ALF filter to be applied may vary according to each block. In addition, the ALF filter of the same type (fixed type) may be applied regardless of the characteristics of the application target block.
메모리(155)는 필터부(150)를 통해 산출된 복원 블록 또는 영상을 저장할 수 있고, 저장된 복원 블록 또는 영상은 화면 간 예측을 수행 시 예측부(120, 125)에 제공될 수 있다.The
도 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
영상 부호화기에서 영상 비트스트림이 입력된 경우, 입력된 비트스트림은 영상 부호화기와 반대의 절차로 복호화될 수 있다.When an image bitstream is input from an image encoder, the input bitstream may be decoded by a procedure opposite to that of the image encoder.
엔트로피 복호화부(210)는 영상 부호화기의 엔트로피 부호화부에서 엔트로피 부호화를 수행한 것과 반대의 절차로 엔트로피 복호화를 수행할 수 있다. 예를 들어, 영상 부호화기에서 수행된 방법에 대응하여 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 방법이 적용될 수 있다. 엔트로피 복호화부(210)에서, 변환 블록의 계수는, 변환 블록 내 부분 블록 단위로 0인지 여부를 나타내는 플래그, 계수의 절대값이 1보다 큰지 여부를 나타내는 플래그 및 계수의 절대값이 2보다 큰지 여부를 나타내는 플래그 등이 복호화될 수 있다. 그리고, 엔트로피 복호화부(210)는, 0이 아닌 계수에 대하여, 계수의 부호를 복호화 한다. 절대값이 2보다 큰 계수는, 2를 뺀 나머지 값이 복호화될 수 있다.The
엔트로피 복호화부(210)에서는 부호화기에서 수행된 화면 내 예측 및 화면 간 예측에 관련된 정보를 복호화할 수 있다.The
재정렬부(215)는 엔트로피 복호화부(210)에서 엔트로피 복호화된 비트스트림을 부호화부에서 재정렬한 방법을 기초로 재정렬을 수행할 수 있다. 1차원 벡터 형태로 표현된 계수들을 다시 2차원의 블록 형태의 계수로 복원하여 재정렬할 수 있다. 재정렬부(215)에서는 부호화부에서 수행된 계수 스캐닝에 관련된 정보를 제공받고 해당 부호화부에서 수행된 스캐닝 순서에 기초하여 역으로 스캐닝하는 방법을 통해 재정렬을 수행할 수 있다.The
역양자화부(220)는 부호화기에서 제공된 양자화 파라미터와 재정렬된 블록의 계수값을 기초로 역양자화를 수행할 수 있다. The
역변환부(225)는 역양자화된 변환 계수를 소정의 변환 방법으로 역변환을 수행할 수 있다. 이때, 변환 방법은 예측 방법(화면 간/화면 내 예측), 블록의 크기/형태, 화면 내 예측 모드 등에 관한 정보를 기반으로 결정될 수 있다.The
예측부(230, 235)는 엔트로피 복호화부(210)에서 제공된 예측 블록 생성 관련 정보와 메모리(245)에서 제공된 이전에 복호화된 블록 또는 영상 정보를 기초로 예측 블록을 생성할 수 있다. The
예측부(230, 235)는 예측 단위 판별부, 화면 간 예측부 및 화면 내 예측부를 포함할 수 있다. 예측 단위 판별부는 엔트로피 복호화부(210)에서 입력되는 예측 단위 정보, 화면 내 예측 방법의 예측 모드 정보, 화면 간 예측 방법의 움직임 예측 관련 정보 등 다양한 정보를 입력 받고 현재 부호화 단위에서 예측 단위를 구분하고, 예측 단위가 화면 간 예측을 수행하는지 아니면 화면 내 예측을 수행하는지 여부를 판별할 수 있다. 화면 간 예측부(230)는 영상 부호화기에서 제공된 현재 예측 단위의 화면 간 예측에 필요한 정보를 이용해 현재 예측 단위가 포함된 현재 영상의 이전 영상 또는 이후 영상 중 적어도 하나의 영상에 포함된 정보를 기초로 현재 예측 단위에 대한 화면 간 예측을 수행할 수 있다. 또는, 현재 예측 단위가 포함된 현재 영상 내에서 기-복원된 일부 영역의 정보를 기초로 화면 간 예측을 수행할 수도 있다.The
화면 간 예측을 수행하기 위해 부호화 단위를 기준으로 해당 부호화 단위에 포함된 예측 단위의 움직임 정보 생성 방법이 머지 방법(Merge), 움직임 추정 방법 중 어떠한 방법으로 생성되었는지 여부를 판단할 수 있다.In order to perform inter prediction, based on a coding unit, it may be determined whether a method of generating motion information of a prediction unit included in a corresponding coding unit is generated by either a merge method or a motion estimation method.
화면 내 예측부(235)는 현재 영상 내의 화소 정보를 기초로 예측 블록을 생성할 수 있다. 예측 단위가 화면 내 예측을 수행한 예측 단위인 경우, 영상 부호화기에서 제공된 예측 단위의 화면 내 예측 모드 정보를 기초로 화면 내 예측을 수행할 수 있다. 화면 내 예측부(235)에는 AIS(Adaptive Intra Smoothing) 필터, 참조 화소 보간부, DC 필터를 포함할 수 있다. AIS 필터는 현재 블록의 참조 화소에 필터링을 수행하는 부분으로써 현재 예측 단위의 예측 모드에 따라 필터의 적용 여부를 결정하여 적용할 수 있다. 영상 부호화기에서 제공된 예측 단위의 예측 모드 및 AIS 필터 정보를 이용하여 현재 블록의 참조 화소에 AIS 필터링을 수행할 수 있다. 현재 블록의 예측 모드가 AIS 필터링을 수행하지 않는 모드일 경우, AIS 필터는 적용되지 않을 수 있다.The
참조 화소 보간부는 예측 단위의 예측 모드가 참조 화소를 보간한 화소값을 기초로 화면 내 예측을 수행하는 예측 단위일 경우, 참조 화소를 보간하여 정수값 이하의 화소 단위의 참조 화소를 생성할 수 있다. 현재 예측 단위의 예측 모드가 참조 화소를 보간하지 않고 예측 블록을 생성하는 예측 모드일 경우 참조 화소는 보간되지 않을 수 있다. DC 필터는 현재 블록의 예측 모드가 DC 모드일 경우 필터링을 통해서 예측 블록을 생성할 수 있다.When the prediction mode of the prediction unit is a prediction unit that performs intra prediction based on a pixel value obtained by interpolating the reference pixel, the reference pixel interpolator may interpolate the reference pixel to generate a reference pixel of a pixel unit having an integer value or less. . When the prediction mode of the current prediction unit is a prediction mode that generates a prediction block without interpolating the reference pixel, the reference pixel may not be interpolated. The DC filter may generate the prediction block through filtering when the prediction mode of the current block is the DC mode.
복원된 블록 또는 영상은 필터부(240)로 제공될 수 있다. 필터부(240)는 디블록킹 필터, 오프셋 보정부, ALF를 포함할 수 있다.The reconstructed block or image may be provided to the
영상 부호화기로부터 해당 블록 또는 영상에 디블록킹 필터를 적용하였는지 여부에 대한 정보 및 디블록킹 필터를 적용하였을 경우, 강한 필터를 적용하였는지 또는 약한 필터를 적용하였는지에 대한 정보를 제공받을 수 있다. 영상 복호화기의 디블록킹 필터에서는 영상 부호화기에서 제공된 디블록킹 필터 관련 정보를 제공받고 영상 복호화기에서 해당 블록에 대한 디블록킹 필터링을 수행할 수 있다. Information on whether a deblocking filter is applied to a corresponding block or image and information on whether a strong filter or a weak filter is applied when the deblocking filter is applied may be provided from the image encoder. The deblocking filter of the image decoder may receive deblocking filter-related information provided from the image encoder, and the image decoder may perform deblocking filtering on the corresponding block.
오프셋 보정부는 부호화시 영상에 적용된 오프셋 보정의 종류 및 오프셋 값 정보 등을 기초로 복원된 영상에 오프셋 보정을 수행할 수 있다.The offset correction unit may perform offset correction on the reconstructed image based on the type of offset correction applied to the image during encoding, offset value information, and the like.
ALF는 부호화기로부터 제공된 ALF 적용 여부 정보, ALF 계수 정보 등을 기초로 부호화 단위에 적용될 수 있다. 이러한 ALF 정보는 특정한 파라미터 셋에 포함되어 제공될 수 있다.ALF may be applied to a coding unit based on information on whether ALF is applied, ALF coefficient information, etc. provided from the encoder. Such ALF information may be provided by being included in a specific parameter set.
메모리(245)는 복원된 영상 또는 블록을 저장하여 참조 영상 또는 참조 블록으로 사용할 수 있도록 할 수 있고 또한 복원된 영상을 출력부로 제공할 수 있다.The
도 5는 현재 블록을 포함하는 현재 영상과 참조 영상 사이의 밝기 변화 양상을 예시한 도면이다. 5 is a diagram illustrating a change in brightness between a current image including a current block and a reference image.
현재 블록에 대해 화면 간 예측을 수행하는 경우, 현재 영상과 참조 영상간에 밝기 변화가 심할수록, 현재 블록과 참조 영상에서 선택될 예측 블록간의 밝기 변화 역시 커질 것이다. 따라서 현재 블록의 화면간 예측으로 인한 오차가 증가함에 따라, 현재 블록의 잔차 신호에 대한 에너지도 증가하게 될 것을 예상할 수 있다. 그리고, 잔차 신호에 대한 에너지가 증가함에 따라, 양자화로 인한 오류도 증가할 것을 예상할 수 있다. 결국, 현재 영상과 참조 영상 사이 밝기 변화가 존재하는 경우, 밝기 변화가 없을 때에 비해, 잔차 블록에 대한 오류는 증가할 것이다. When inter prediction is performed on the current block, the greater the change in brightness between the current image and the reference image, the greater the change in brightness between the current block and the prediction block to be selected from the reference image. Therefore, as the error due to the inter prediction of the current block increases, it can be expected that the energy for the residual signal of the current block also increases. And, as the energy of the residual signal increases, it can be expected that the error due to quantization also increases. As a result, when there is a brightness change between the current image and the reference image, the error for the residual block will increase compared to when there is no brightness change.
이에, 본 발명에서는 영상 간 밝기 변화를 추정하여, 가중치 예측 파라미터를 생성하고, 가중치 예측 파라미터를 이용하여 화면 간 예측을 수행하는 방법에 대해 제안하고자 한다. 예측 블록에 대한 화면 간 예측시 가중치 예측 파라미터를 이용함으로써, 잔차 블록의 에너지가 급격하게 증가하는 것을 방지할 수 있다.Accordingly, in the present invention, a method of generating a weighted prediction parameter by estimating a brightness change between images, and performing inter prediction using the weighted prediction parameter is proposed. When the prediction block is inter-predicted, the energy of the residual block can be prevented from rapidly increasing by using the weighted prediction parameter.
가중치 예측 파라미터는, 페이드 인 또는 페이트 아웃 등 현재 영상과 참조 영상의 밝기가 변화하는 것을 고려하여 생성될 수 있다. 다만, 상기 요소만을 고려하여 가중치 예측 파라미터를 결정하는 경우, 현재 영상 및 참조 영상이 다수의 광원에 의해 밝기가 변화하거나, 또는 현재 영상 내 국소 지역만의 밝기가 변화하는 경우 대응이 어렵다. 이에, 본 발명에서는, 복수의 가중치 예측 파라미터 중 적어도 하나를 선택적으로 이용하는 방법을 제안함으로써, 다수의 광원에 의해 밝기가 변화하는 경우 또는 국소 지역만의 밝기가 변화하는 경우에도 효과적으로 화면 간 예측을 수행할 수 있는 방법을 제안하고자 한다.The weight prediction parameter may be generated in consideration of changes in brightness of the current image and the reference image, such as fade in or fade out. However, when determining the weight prediction parameter in consideration of only the above factors, it is difficult to respond when the brightness of the current image and the reference image is changed by a plurality of light sources or when the brightness of only a local area within the current image is changed. Accordingly, the present invention proposes a method of selectively using at least one of a plurality of weight prediction parameters to effectively perform inter-screen prediction even when the brightness is changed by a plurality of light sources or when the brightness of only a local area is changed We would like to suggest a way to do this.
이하, 도면을 참조하여, 가중치 예측 파라미터를 이용한 화면 간 예측에 대해 상세히 설명하기로 한다.Hereinafter, inter prediction using a weight prediction parameter will be described in detail with reference to the drawings.
도 6은 부호화 장치에서 가중치 예측 파라미터를 사용하는 방법을 나타낸 흐름도이다.6 is a flowchart illustrating a method of using a weight prediction parameter in an encoding apparatus.
부호화 장치는, 부호화 하고자 하는 현재 블록에 앞서 부호화된 블록들의 가중치 예측 파라미터를 기초로, 현재 블록에 대한 가중치 예측 파라미터 세트를 생성할 수 있다(S601). 여기서, 가중치 예측 파라미터 세트는, 현재 블록보다 앞서 부호화된 블록 중 화면 간 예측이 사용된 블록들의 가중치 예측 파라미터를 포함할 수 있다. The encoding apparatus may generate a weighted prediction parameter set for the current block based on the weighted prediction parameters of blocks coded prior to the current block to be encoded ( S601 ). Here, the weighted prediction parameter set may include weighted prediction parameters of blocks for which inter prediction is used among blocks encoded before the current block.
부호화 장치는, 현재 블록보다 앞서 부호화된 블록 중 현재 블록에 이웃한 이웃 블록들에서 사용된 가중치 예측 파라미터를 기초로, 가중치 예측 파라미터 세트를 생성할 수 있다. 여기서, 현재 블록에 이웃한 이웃 블록은, 공간적 이웃 블록 및 시간적 이웃 블록을 포함할 수 있다. 일 예로, 공간적 이웃 블록은, 현재 블록에 인접한, 좌측 상단 블록, 상단 블록, 우측 상단 블록, 좌측 블록 및 좌측 하단 블록을 포함할 수 있고, 현재 블록의 시간적 이웃 블록은, 참조 영상 내 현재 블록과 동일한 위치에 존재하는 콜 블록(Collocated Block)을 포함할 수 있다.The encoding apparatus may generate a weight prediction parameter set based on weight prediction parameters used in neighboring blocks adjacent to the current block among blocks encoded before the current block. Here, the neighboring blocks adjacent to the current block may include spatial neighboring blocks and temporal neighboring blocks. As an example, the spatial neighboring block may include an upper-left block, an upper block, an upper-right block, a left block, and a lower-left block adjacent to the current block, and the temporal neighboring block of the current block includes the current block and the current block in the reference image. It may include a collocated block existing in the same location.
부호화 장치는 현재 블록에 앞서 부호화된 복원 블록과, 그 복원 블록에 대응하는 예측 블록에 대한 가중치 예측 파라미터에 기초하여, 가중치 예측 파라미터 세트를 구성할 수 있다.The encoding apparatus may configure a weighted prediction parameter set based on a reconstructed block encoded prior to the current block and a weighted prediction parameter for a prediction block corresponding to the reconstructed block.
가중치 예측 파라미터는, 화면 간 예측 방향에 따라 상이하게 설정될 수 있다. 일 예로, 정방향 가중치 예측 파라미터는, 부호화하고자 하는 블록이 정방향 예측을 수행할 때 이용되고, 역방향 가중치 예측 파라미터는, 부호화하고자 하는 블록이 역방향 예측을 수행할 때 이용될 수 있다. 양방향 예측을 수행하여 블록을 부호화하는 경우, 정방향 가중치 예측 파라미터 및 역방향 가중치 예측 파라미터가 모두 이용될 수 있다. 이때, 정방향은, 현재 영상보다 과거인 참조 영상(즉, 현재 영상의 POC(Picture order count)보다 작은 POC를 갖는 참조 영상)를 가리키고, 역방향은, 현재 영상보다 미래인 참조 영상(즉, 현재 영상의 POC 보다 큰 POC를 갖는 참조 영상)을 가리킬 수 있다.The weight prediction parameter may be set differently according to the prediction direction between pictures. For example, the forward weight prediction parameter may be used when a block to be encoded performs forward prediction, and the backward weight prediction parameter may be used when a block to be encoded performs backward prediction. When a block is encoded by performing bi-prediction, both a forward weight prediction parameter and a backward weight prediction parameter may be used. In this case, the forward direction refers to a reference image that is past than the current image (ie, a reference image having a POC smaller than a picture order count (POC) of the current image), and the reverse direction refers to a reference image that is future than the current image (that is, of the current image). reference image having a POC greater than the POC).
부호화 장치는 현재 블록의 화면간 예측 방향을 기초로, 이웃 블록에 대한 정방향 가중치 예측 파라미터 및 역방향 가중치 예측 파라미터 중 적어도 하나를 이용하여, 현재 블록의 가중치 예측 파라미터 세트를 구성할 수 있다. The encoding apparatus may configure a weighted prediction parameter set of the current block by using at least one of a forward weighted prediction parameter and a backward weighted prediction parameter for a neighboring block based on the inter prediction direction of the current block.
도 7은 현재 블록에 이웃한 이웃 블록들의 가중치 예측 파라미터를 나타낸 도면이다. 7 is a diagram illustrating weight prediction parameters of neighboring blocks adjacent to the current block.
도 7에 도시된 예에서, A~E 는 현재 블록의 공간적 이웃 블록을 나타내고, Col은 현재 블록의 시간적 이웃 블록을 나타낸다. A~E 및 Col의 위치는 도 4에 도시된 예를 참고한다.In the example shown in FIG. 7 , A to E denote spatial neighboring blocks of the current block, and Col denotes temporal neighboring blocks of the current block. The positions of A to E and Col refer to the example shown in FIG. 4 .
도 7을 참조하면, 이웃 블록들은, 화면간 예측 방향에 따라, 정방향 가중치 예측 파라미터(즉, list 0에 할당된 가중치 파라미터) 및 역방향 가중치 예측 파라미터(즉, list 1에 할당된 가중치 파라미터) 중 적어도 하나를 갖는 것으로 도시되었다.Referring to FIG. 7 , the neighboring blocks include at least one of a forward weight prediction parameter (ie, a weight parameter allocated to list 0) and a backward weight prediction parameter (ie, a weight parameter allocated to list 1) according to the inter prediction direction. shown to have one.
부호화 장치는 현재 블록의 예측 방향에 따라, 가중치 예측 파라미터 세트에 포함시키고자 하는 이웃 블록들의 가중치 예측 파라미터를 결정할 수 있다. 일 예로, 현재 블록이 정방향 예측을 통해 부호화되는 경우라면, 이웃 블록들의 정방향 가중치 예측 파라미터를 이용하여 가중치 예측 파라미터 세트를 구성하고, 현재 블록이 역방향 예측을 통해 부호화되는 경우라면, 이웃 블록들의 역방향 가중치 예측 파라미터를 이용하여, 가중치 예측 파라미터 세트를 구성할 수 있다. 현재 블록이 양방향 예측을 통해 부호화되는 경우라면, 이웃 블록들의 정방향 가중치 예측 파라미터 및 역방향 가중치 파라미터를 이용하여 가중치 예측 파라미터 세트를 구성할 수 있다. The encoding apparatus may determine weighted prediction parameters of neighboring blocks to be included in the weighted prediction parameter set according to the prediction direction of the current block. For example, if the current block is encoded through forward prediction, a weighted prediction parameter set is configured using forward weighted prediction parameters of neighboring blocks, and if the current block is encoded through backward prediction, the backward weights of neighboring blocks A weighted prediction parameter set may be constructed using the prediction parameters. If the current block is encoded through bi-prediction, a weight prediction parameter set may be constructed using forward weight prediction parameters and backward weight parameters of neighboring blocks.
일 예로, 도 7에 도시된 예에서, 현재 블록이 정방향 예측으로 부호화되는 경우라면, 이웃 블록들의 정방향 가중치 예측 파라미터인, (65,1), (64,2), (66,-2), (61,7), (59,-2)가 가중치 예측 파라미터 세트에 포함될 수 있다.For example, in the example shown in FIG. 7 , if the current block is encoded by forward prediction, the forward weight prediction parameters of neighboring blocks, (65,1), (64,2), (66,-2), (61,7) and (59,-2) may be included in the weight prediction parameter set.
여기서, 가중치 예측 파라미터는, 예측 샘플에 곱해지는 곱셈 파라미터 또는 예측 샘플에 더해지는 덧셈 파라미터 중 적어도 하나를 포함할 수 있다. 상기 도 7에서는, (w, o) 의 형태로 가중치 예측 파라미터를 표기하였다. 이때, w는 곱셈 파라미터를 가리키고, o는 덧셈 파라미터를 가리킬 수 있다.Here, the weighted prediction parameter may include at least one of a multiplication parameter multiplied by the prediction sample and an addition parameter added to the prediction sample. In FIG. 7, the weight prediction parameters are expressed in the form of (w, o). In this case, w may indicate a multiplication parameter, and o may indicate an addition parameter.
부호화 장치는 가중치 예측 파라미터 세트에 포함된 가중치 예측 파라미터 중 현재 블록에 대한 최적의 가중치 예측 파라미터를 선택할 수 있다(S602). 현재 블록에 대한 최적의 가중치 예측 파라미터가 선택되면, 부호화 장치는 선택된 가중치 예측 파라미터를 특정하는 정보(예컨대, 인덱스 정보)를 부호화할 수 있다.The encoding apparatus may select an optimal weighted prediction parameter for the current block from among weighted prediction parameters included in the weighted prediction parameter set ( S602 ). When the optimal weight prediction parameter for the current block is selected, the encoding apparatus may encode information (eg, index information) specifying the selected weight prediction parameter.
최적의 가중치 예측 파라미터가 선택되면, 선택된 가중치 예측 파라미터를 기초로, 현재 블록에 대한 화면 간 예측이 수행될 수 있다(S603). 일 예로, 현재 블록의 화면 간 예측은, 움직임 보상을 통해 획득된 예측 화소에, 곱셈 파라미터를 곱한 뒤, 덧셈 파라미터를 더함으로써 수행될 수 있다.When the optimal weighted prediction parameter is selected, inter prediction for the current block may be performed based on the selected weighted prediction parameter ( S603 ). As an example, inter prediction of the current block may be performed by multiplying a prediction pixel obtained through motion compensation by a multiplication parameter and then adding an addition parameter.
현재 블록에 대한 화면 간 예측 결과로 예측 블록이 생성되면, 생성된 예측 블록 및 역양자화, 역변환 된 이후의 잔차 블록에 기초하여 현재 블록을 복원할 수 있다(S604). When a prediction block is generated as a result of inter prediction for the current block, the current block may be reconstructed based on the generated prediction block and the residual block after inverse quantization and inverse transformation ( S604 ).
현재 블록 다음으로 부호화되는 블록이 화면 간 예측으로 부호화된다고 가정하였을 때, 다음 블록의 가중치 예측 파라미터 세트는 현재 블록의 가중치 예측 파라미터를 이용하여 생성될 수 있다. 이때, 다음 블록이 이용할 수 있는 현재 블록의 가중치 예측 파라미터는, 현재 블록의 가중치 예측 파라미터 세트로부터 선택된 어느 하나일 수 있다. Assuming that the block to be encoded next to the current block is encoded by inter prediction, the weight prediction parameter set of the next block may be generated using the weight prediction parameter of the current block. In this case, the weight prediction parameter of the current block that can be used by the next block may be any one selected from the set of weight prediction parameters of the current block.
다른 예로, 다음 블록이 이용할 수 있는 현재 블록의 가중치 예측 파라미터는, 현재 블록의 복원 블록 및 예측 블록으로부터 추정될 수도 있다. 이 경우, 부호화 장치는 현재 블록의 다음 블록에서 가중치 예측 파라미터 세트를 구성할 수 있도록, 현재 블록에 대한 대한 가중치 예측 파라미터 추정을 수행할 수 있다(S605).As another example, the weight prediction parameter of the current block that can be used by the next block may be estimated from the reconstructed block and the prediction block of the current block. In this case, the encoding apparatus may perform weight prediction parameter estimation on the current block so that a weight prediction parameter set can be configured in a block next to the current block ( S605 ).
복원 블록은 원본 블록 대비 양자화 오류가 존재하지만, 복원 블록에서의 밝기 변화 특성은 원본 블록과 유사한 패턴을 띤다. 이에 따라, 복호화 장치에서도 부호화 장치와 동일하게 가중치 예측 파라미터를 추정하기 위해, 현재 블록에 대한 복원 블록 및 예측 블록을 이용하여 현재 블록에 대한 가중치 예측 파라미터를 추정할 수 있다. The reconstructed block has a quantization error compared to the original block, but the brightness change characteristic of the reconstructed block has a pattern similar to that of the original block. Accordingly, in order to estimate the weight prediction parameter in the decoding apparatus in the same way as in the encoding apparatus, the weight prediction parameter for the current block may be estimated by using the reconstruction block and the prediction block for the current block.
구체적으로, 현재 블록에 대해 복원 블록이 생성되면, 복원 블록과 가중치 예측 파라미터가 적용되지 않은 예측 블록에 회귀분석을 이용하여 다음 블록을 위한 현재 블록의 가중치 예측 파라미터를 추정할 수 있다. 하기 수학식 1은 회귀 분석 모델의 한 예를 나타낸다.Specifically, when a reconstructed block is generated for the current block, the weighted prediction parameter of the current block for the next block may be estimated by using regression analysis on the reconstructed block and the prediction block to which the weighted prediction parameter is not applied. Equation 1 below represents an example of a regression analysis model.
상기 수학식 1에서, Y는 복원 블록의 데이터, X는 예측 블록의 데이터, w는 회귀선의 기울기, o는 회귀선의 절편값, e는 회귀선 예측의 오차를 나타낸다. 구체적으로, Y는 복원 블록의 화소값을 의미하고, X는 예측 블록의 화소값을 의미한다. In Equation 1, Y is the data of the reconstruction block, X is the data of the prediction block, w is the slope of the regression line, o is the intercept value of the regression line, and e is the error of prediction of the regression line. Specifically, Y denotes a pixel value of a reconstructed block, and X denotes a pixel value of a prediction block.
현재 블록의 가중치 예측 파라미터는 수학식 1을 각각 w 및 o로 편미분함으로써 획득될 수 있다. 일 예로, 수학식 1을 각각 w 및 o로 편미분하였을 때, 오차(e)의 제곱이 최소가 되는 w 및 o를 각각 곱셈 파라미터 및 덧셈 파라미터로 유도할 수 있다.The weight prediction parameter of the current block may be obtained by partial differentiation of Equation 1 with w and o, respectively. As an example, when Equation 1 is partially differentiated by w and o, respectively, w and o at which the square of the error e is minimized may be derived as a multiplication parameter and an addition parameter, respectively.
수학식 1에 기초하여 계산되는 가중치 예측 파라미터는 실수값을 가질 수 있다. 현재 블록의 가중치 예측 파라미터는 수학식 1을 기초로 계산된 실수값으로 설정될 수도 있고, 수학식 1을 기초로 계산된 실수값을 정수화한 값으로 설정될 수도 있다. 일 예로, 가중치 예측 파라미터는 수학식 1을 기초로 계산된 실수값에 2N을 곱하여 유도되는 정수값으로 유도될 수 있다. 가중치 예측 파라미터를 정수화하기 위해 사용되는 변수 N은, 비스스트림를 통해 부호화될 수 있다. 또는, 부호화 장치와 복호화 장치에서 동일한 값의 기 설정된 N값을 이용함으로써, 가중치 예측 파라미터를 정수화할 수 있다.The weight prediction parameter calculated based on Equation 1 may have a real value. The weight prediction parameter of the current block may be set as a real value calculated based on Equation 1, or may be set as a value obtained by integerizing a real value calculated based on Equation 1. As an example, the weight prediction parameter may be derived as an integer value derived by multiplying a real value calculated based on Equation 1 by 2 N. A variable N used for integerizing a weight prediction parameter may be encoded through a bisstream. Alternatively, the weight prediction parameter may be integerized by using a preset N value having the same value in the encoding apparatus and the decoding apparatus.
상기 수학식 1에서, 복원 블록 내 전체 화소가 X에 대한 입력 범위로 설정되고, 예측 블록 내 전체 화소가 Y에 대한 입력 범위로 설정될 수 있다. 다른 예로, 블록 전체의 화소들을 이용하는 대신, 서브 샘플링을 통한 일부 화소만을 현재 블록의 가중치 예측 파라미터 추정시 이용할 수도 있다.In Equation 1, all pixels in the reconstruction block may be set as the input range for X, and all pixels in the prediction block may be set as the input range for Y. As another example, instead of using the entire block, only some pixels through subsampling may be used when estimating the weight prediction parameter of the current block.
일 예로, 도 8은 현재 블록이 가중치 예측 파라미터 추정에 일부 화소만이 이용되는 예를 설명한 도면이다. 현재 블록에 대한 복원 블록 및 예측 블록에 대해 가로 및 세로 방향으로 1/2로 서브 샘플링한다고 가정할 경우, 4개의 샘플(2x2) 중 하나가 X 또는 Y의 입력으로 이용될 수 있다. 일 예로, 도 8에 도시된 예에서는, 검은색으로 표시된 화소들만 회귀 분석에 이용될 수 있다. As an example, FIG. 8 is a diagram illustrating an example in which only some pixels of a current block are used for weight prediction parameter estimation. If it is assumed that the reconstructed block and the prediction block for the current block are subsampled by 1/2 in the horizontal and vertical directions, one of the four samples (2x2) may be used as an input of X or Y. For example, in the example shown in FIG. 8 , only pixels marked in black may be used for regression analysis.
도 8에 도시된 예에서는, 2x2 샘플들 중 좌측 상단에 위치한 샘플이 회귀 분석에 이용되는 것으로 도시되었지만, 2x2 화소 중 우측 상단 화소, 좌측 하단 화소 또는 우측 하단 화소를 회귀 분석에 이용하도록 설정할 수도 있다. 혹은, 상기 언급한 네 위치중 어떤 위치를 이용하여 회귀 분석을 사용했는 여부를 인덱스를 이용하여 비트스트림을 통해 부호화될 수 있다.In the example shown in FIG. 8 , the sample located at the upper left of the 2x2 samples is shown to be used for the regression analysis, but the upper right pixel, the lower left pixel, or the lower right pixel among the 2x2 pixels may be set to be used for the regression analysis. . Alternatively, whether the regression analysis is used using any of the above-mentioned four positions may be encoded through a bitstream using an index.
부호화 장치 및 복호화 장치는 기 정의된 값에 따라 서브 샘플링을 수행할 수도 있고, 기 정의된 조건 하에 유도되는 값에 따라 서브 샘플링을 수행할 수도 있다. 또는, 부호화 장치는 서브 샘플링 단위 M을 부호화하고, 이를 비트스트림을 통해 부호화하여, 복호화 장치로 1/M 으로 서브 샘플링이 수행되었음을 알려줄 수도 있다. The encoding apparatus and the decoding apparatus may perform subsampling according to a predefined value, or may perform subsampling according to a value derived under a predefined condition. Alternatively, the encoding apparatus may encode the subsampling unit M, encode it through a bitstream, and inform the decoding apparatus that subsampling is performed with 1/M.
현재 블록에 대해 추정된 가중치 예측 파라미터는 다음 블록의 가중치 예측 파라미터 세트를 구성하는데 이용될 수 있다. The weighted prediction parameter estimated for the current block may be used to construct the weighted prediction parameter set of the next block.
현재 블록의 가중치 예측 파라미터 세트가 포함할 수 있는 가중치 예측 파라미터의 최대 개수는 고정된 개수를 가질 수도 있고, 현재 블록의 크기, 형태 또는 비트스트림을 통해 시그널링되는 정보 등에 따라 가변적인 개수를 가질 수도 있다. 일 예로, 가중치 예측 파라미터 세트가 포함할 수 있는 최대 가중치 예측 파라미터의 최대 개수 P는 비트스트림을 통해 부호화 될 수도 있다.The maximum number of weight prediction parameters that the weight prediction parameter set of the current block can include may have a fixed number or a variable number according to the size, shape, or information signaled through the bitstream of the current block. . As an example, the maximum number P of maximum weight prediction parameters that the weight prediction parameter set may include may be encoded through a bitstream.
도 7에서는, 현재 블록의 가중치 예측 파라미터 세트를 구성하기 위해 이용되는 블록을 A~E, Col로 한정하였지만, 이와 다른 위치의 블록도 현재 블록의 가중치 예측 파라미터 세트를 구성하는데 이용될 수 있다. In FIG. 7 , blocks used to construct the weight prediction parameter set of the current block are limited to A to E and Col, but blocks located at different positions may also be used to configure the weight prediction parameter set of the current block.
일 예로, 부호화 장치는 기 설정된 위치의 블록을 이용하여 현재 블록의 가중치 예측 파라미터 세트를 구성할 수도 있다. 또는, 부호화 장치는, 임의 위치 블록을 이용하여 현재 블록의 가중치 예측 파라미터 세트를 구성하고, 현재 블록의 가중치 예측 파라미터 세트를 구성하는데 이용된 블록의 위치 또는 블록을 특정하는 정보를 비트스트림을 통해 부호화할 수도 있다. 이때, 블록의 위치 또는 블록을 특정하는 정보는 비트스트림을 통해 부호화 할 수 있다.As an example, the encoding apparatus may configure the weight prediction parameter set of the current block by using a block at a preset position. Alternatively, the encoding apparatus constructs a weighted prediction parameter set of a current block using an arbitrary location block, and encodes information specifying a location or block of a block used to construct a weighted prediction parameter set of the current block through a bitstream. You may. In this case, the location of the block or information specifying the block may be encoded through the bitstream.
가중치 예측 파라미터 세트가 복수의 가중치 예측 파라미터를 포함하는 경우, 가중치 예측 파라미터들은 기 설정된 순서에 따라 정렬될 수 있다. 일 예로, 공간적 이웃 블록 및 시간적 이웃 블록의 순서로, 가중치 예측 파라미터가 정렬될 수 있다. 이에 따라, 도 7에서는, A~E의 가중치 예측 파라미터를 먼저 가중치 예측 파라미터 세트에 추가한 뒤, Col의 가중치 예측 파라미터를 가중치 예측 파라미터 세트에 추가할 수 있을 것이다. 다른 예로, 현재 블록의 움직임 정보(에컨대, 움직임 벡터)와 가장 유사한 순서대로, 가중치 예측 파라미터를 정렬할 수도 있다. 혹은 우선 순위를 정하여 주변의 복원 블록과 그에 따른 예측 블록을 기초로 유도한 가중치 예측 파라미터에 우선순위를 높혀 가중치 예측 파라미터 세트에 추가 할 수도 있으며 반대로, 주변 블록에서 직접 사용했던 가중치 예측 파라미터에 우선순위를 높혀 가중치 예측 파라미터 세트에 추가하는 것 또한 가능하다.When the weight prediction parameter set includes a plurality of weight prediction parameters, the weight prediction parameters may be arranged according to a preset order. As an example, the weight prediction parameters may be arranged in the order of the spatial neighboring block and the temporal neighboring block. Accordingly, in FIG. 7 , the weight prediction parameters of A to E may be first added to the weight prediction parameter set, and then the weight prediction parameter of Col may be added to the weight prediction parameter set. As another example, the weight prediction parameters may be arranged in an order most similar to motion information (eg, motion vector) of the current block. Alternatively, it is possible to prioritize and add to the weighted prediction parameter set by increasing the priority of the weighted prediction parameter derived based on the neighboring reconstructed block and the corresponding prediction block. It is also possible to increase and add to the weighted prediction parameter set.
가중치 예측 파라미터 세트는 초기 가중치 예측 파라미터 세트를 포함할 수도 있다. 초기 가중치 예측 파라미터는, 곱셈 파라미터 및 덧셈 파라미터가 초기값으로 설정된 것을 의미한다. 여기서, 곱셈 파라미터 및 덧셈 파라미터의 초기값은 각각 1 및 0일 수 있다. 다른 예로, 곱셈 파라미터의 초기값은 1<<N으로 설정되고, 덧셈 파라미터의 초기값은 0으로 설정될 수도 있다.The weighted prediction parameter set may include an initial weighted prediction parameter set. The initial weight prediction parameter means that the multiplication parameter and the addition parameter are set as initial values. Here, the initial values of the multiplication parameter and the addition parameter may be 1 and 0, respectively. As another example, the initial value of the multiplication parameter may be set to 1<<N, and the initial value of the addition parameter may be set to zero.
초기 가중치 예측 파라미터에 관한 정보는 비트스트림을 통해 부호화되어, 복호화기로 전송될 수 있다. 또는, 초기 가중치 예측 파라미터는 가중치 예측 파라미터 세트 내 고정된 인덱스를 갖도록 설정될 수도 있다. 일 예로, 초기 가중치 예측 파라미터는 가중치 예측 파라미터 세트 내 인덱스 0을 갖도록 설정될 수 있다.Information about the initial weight prediction parameter may be encoded through a bitstream and transmitted to a decoder. Alternatively, the initial weight prediction parameter may be set to have a fixed index in the weight prediction parameter set. As an example, the initial weight prediction parameter may be set to have index 0 in the weight prediction parameter set.
가중치 예측 파라미터 세트는 영상 단위로 유도되는 가중치 예측 파라미터를 포함할 수도 있다. 여기서, 영상 단위로 유도되는 가중치 예측 파라미터 세트는, 현재 영상과 현재 영상의 참조 영상 사이의 밝기 변화에 기초하여 생성될 수 있다. 일 예로, 영상 단위로 유도되는 가중치 예측 파라미터는 상기 수학식 1에 의해 유도될 수 있다. 이때, 현재 영상 내 전체 화소가 X에 대한 입력 범위로 설정되고, 참조 영상 내 전체 화소가 Y에 대한 입력 범위로 설정될 수 있다.The weight prediction parameter set may include weight prediction parameters derived in units of images. Here, the weight prediction parameter set derived for each image may be generated based on a change in brightness between the current image and a reference image of the current image. As an example, the weight prediction parameter derived in units of images may be derived by Equation 1 above. In this case, all pixels in the current image may be set as the input range for X, and all pixels in the reference image may be set as the input range for Y.
영상 단위의 가중치 예측 파라미터에 대한 정보는 비트스트림을 통해 부호화되어, 복호화기로 전송될 수 있다. 여기서, 가중치 예측 파라미터에 대한 정보는, 가중치 예측 파라미터 값 또는, 가중치 예측 파라미터에 대한 잔차값을 포함할 수 있다. 일 예로 복호화기에서, 영상 단위의 가중치 예측 파라미터는, 가중치 예측 파라미터의 예측값 및 잔차값을 합함으로써 획득될 수 있다. 이때, 가중치 예측 파라미터의 예측값은 현재 블록에 대한 정밀도 N에 의해 결정되고, 잔차값은 비트스트림으로부터 복호화되는 정보에 기초하여 결정될 수 있다.Information on the weight prediction parameter of the image unit may be encoded through a bitstream and transmitted to a decoder. Here, the information on the weight prediction parameter may include a weight prediction parameter value or a residual value of the weight prediction parameter. For example, in the decoder, the weight prediction parameter of the image unit may be obtained by summing the prediction value and the residual value of the weight prediction parameter. In this case, the predicted value of the weight prediction parameter may be determined by the precision N of the current block, and the residual value may be determined based on information decoded from the bitstream.
이때, 현재 블록의 정밀도 N은 비트스트림을 통해 부호화되어, 비트스트림을 통해 복호화 장치로 전송될 수 있다. In this case, the precision N of the current block may be encoded through the bitstream and transmitted to the decoding apparatus through the bitstream.
또는, 부호화 장치와 복호화 장치에서 동일한 방법으로, 현재 블록의 정밀도 N을 결정하는 것도 가능하다. 일 예로, 현재 블록의 정밀도 N은 현재 블록의 크기, 형태 등에 따라 적응적으로 결정될 수도 있다.Alternatively, it is possible to determine the precision N of the current block by the same method in the encoding apparatus and the decoding apparatus. For example, the precision N of the current block may be adaptively determined according to the size, shape, etc. of the current block.
영상 단위 가중치 예측 파라미터가 가중치 예측 파라미터 세트에 포함될 경우, 영상 단위 가중치 예측 파라미터에 할당되는 인덱스는 비트스트림을 통해 부호화될 수도 있고, 기 설정된 값을 가질 수도 있다. 일 예로, 가중치 예측 파라미터 세트가 최대 6개의 가중치 예측 파라미터로 구성된다고 가정하면, 초기 가중치 예측 파라미터가 인덱스 0을 갖도록 설정되고, 영상 단위 가중치 예측 파라미터가 인덱스 1을 갖도록 설정될 수 있다. 인덱스 2 내지 인덱스 5는, 이웃 블록으로부터 유도되는 가중치 예측 파라미터를 위해 이용될 수 있다.When the image unit weight prediction parameter is included in the weight prediction parameter set, the index assigned to the image unit weight prediction parameter may be encoded through a bitstream or may have a preset value. As an example, if it is assumed that the weighted prediction parameter set consists of up to six weighted prediction parameters, the initial weighted prediction parameter may be set to have index 0, and the image unit weighted prediction parameter may be set to have index 1.
이웃 블록으로부터 유도된 가중치 예측 파라미터의 수가 가중치 예측 파라미터 세트가 포함할 수 있는 최대 개수보다 작은 경우, 초기 가중치 예측 파라미터 또는 영상 단위 가중치 예측 파라미터를 가중치 예측 파라미터 세트에 추가할 수도 있다. 일 예로, 사용할 수 있는 가중치 예측 파라미터의 수는 4개이나, 현재 블록에 이웃한 이웃 블록이 화면 내 예측으로 부호화되었거나, 현재 블록이 영상 경계에 있어 이웃 블록의 가중치 예측 파라미터를 이용할 수 없는 경우 등의 사유로 이웃 블록으로부터 4개의 가중치 예측 파라미터를 유도할 수 없는 경우, 초기 가중치 예측 파라미터 또는 영상 단위 가중치 예측 파라미터 중 적어도 하나를 가중치 예측 파라미터 세트에 포함시킬 수 있다.When the number of weighted prediction parameters derived from neighboring blocks is smaller than the maximum number that the weighted prediction parameter set can include, the initial weighted prediction parameter or the image unit weighted prediction parameter may be added to the weighted prediction parameter set. As an example, the number of weight prediction parameters that can be used is 4, but when a neighboring block adjacent to the current block is encoded with intra prediction, or the weight prediction parameter of the neighboring block cannot be used because the current block is at an image boundary, etc. When four weight prediction parameters cannot be derived from neighboring blocks for the reason of , at least one of an initial weight prediction parameter or an image unit weight prediction parameter may be included in the weight prediction parameter set.
가중치 예측 파라미터 세트는 두 개 이상의 가중치 예측 파라미터를 조합함으로써 생성된 조합된 가중치 예측 파라미터를 포함할 수도 있다. 일 예로, 사용할 수 있는 가중치 예측 파라미터의 수보다, 이웃 블록으로부터 유도할 수 있는 가중치 예측 파라미터의 수가 작은 경우, 둘 이상의 가중치 예측 파라미터를 조합함으로써 생성된 조합된 가중치 예측 파라미터를 가중치 예측 파라미터 세트에 추가할 수 있다.The weighted prediction parameter set may include a combined weighted prediction parameter generated by combining two or more weighted prediction parameters. For example, when the number of weighted prediction parameters that can be derived from a neighboring block is smaller than the number of usable weighted prediction parameters, the combined weighted prediction parameters generated by combining two or more weighted prediction parameters are added to the weighted prediction parameter set. can do.
가중치 예측 파라미터가 (w, o)로 이루어졌다고 가정하였을 때, 조합된 가중치 예측 파라미터는 이웃 블록들의 예측 모드 또는 이웃 블록들의 예측 방향을 고려하여 생성될 수 있다.Assuming that the weighted prediction parameter is composed of (w, o), the combined weighted prediction parameter may be generated in consideration of the prediction mode of the neighboring blocks or the prediction direction of the neighboring blocks.
일 예로, 도 9는 조합된 가중치 예측 파라미터가 생성되는 예를 나타낸다.As an example, FIG. 9 shows an example in which a combined weight prediction parameter is generated.
도 9에서, A~D 는 현재 블록에 이웃한 이웃 블록을 나타내고, List 0 및 1은, 각각 정방향 참조 영상 및 역방향 참조 영상이 이용될 경우, 이웃 블록의 가중치 예측 파라미터를 나타낸다.In FIG. 9 , A to D indicate neighboring blocks adjacent to the current block, and Lists 0 and 1 indicate weight prediction parameters of neighboring blocks when a forward reference image and a backward reference image are used, respectively.
도 9에서, A는 정방향 예측을 수행함에 따라, 정방향 가중치 예측 파라미터만을 갖고, D는 역방향 예측을 수행함에 따라, 역방향 가중치 예측 파라미터만을 갖는 것으로 도시되었다. C는 양방향 예측을 수행함에 따라, 정방향 가중치 예측 파라미터 및 역방향 가중치 예측 파라미터를 모두 갖는 것으로 도시되었다. B는 정방향 가중치 예측 파라미터 및 역방향 가중치 예측 파라미터를 모두 갖고 있지 않은 것으로 도시되었다. 일 예로, B가 화면 내 예측으로 부호화되었다면, B는 가중치 예측 파라미터를 갖지 않을 것이다.In FIG. 9 , A has only a forward weighted prediction parameter as it performs forward prediction, and D has only a backward weighted prediction parameter as it performs backward prediction. C is shown to have both a forward weight prediction parameter and a backward weight prediction parameter as it performs bidirectional prediction. B is shown as having neither a forward weighted prediction parameter nor a backward weighted prediction parameter. As an example, if B is encoded with intra prediction, B will not have a weighted prediction parameter.
이에 따라, 도 9에 도시된 예에서, 정방향 가중치 예측 파라미터(즉, List 0에 대한 가중치 예측 파라미터)는 A 및 C 블록으로부터만 획득되고, 역방향 가중치 예측 파라미터(즉, List 1에 대한 가중치 예측 파라미터)는 C 및 D 블록으로부터만 획득될 수 있다. Accordingly, in the example shown in FIG. 9 , the forward weighted prediction parameter (ie, the weighted prediction parameter for List 0) is obtained only from blocks A and C, and the backward weighted prediction parameter (ie, the weighted prediction parameter for List 1) ) can be obtained only from blocks C and D.
현재 블록의 가중치 예측 파라미터 세트가, 4개의 정방향 가중치 예측 파라미터를 포함할 수 있다고 가정할 때, 이웃 블록으로부터 유도된 2개의 정방향 가중치 예측 파라미터를 제외한 나머지 2개의 정방향 가중치 예측 파라미터는 둘 이상의 정방향 가중치 예측 파라미터를 조합함으로써 생성될 수 있다. 또는, 현재 블록의 가중치 예측 파라미터 세트가 4개의 역방향 가중치 예측 파라미터를 포함할 수 있다고 가정할 때, 이웃 블록으로부터 유도된 2개의 역방향 가중치 파라미터를 제외한 나머지 2개의 역방향 가중치 예측 파라미터는 둘 이상의 역방향 가중치 예측 파라미터를 조합함으로써 생성될 수 있다. 도 9에서는 A 및 C의 정방향 가중치 예측 파라미터를 조합하여, B 및 D의 정방향 가중치 예측 파라미터가 생성되고, C 및 D의 역방향 가중치 예측 파라미터를 조합하여, A 및 B의 역방향 가중치 예측 파라미터가 생성되는 것으로 예시되었다. Assuming that the weighted prediction parameter set of the current block can include four forward weighted prediction parameters, the remaining two forward weighted prediction parameters except for the two forward weighted prediction parameters derived from neighboring blocks are two or more forward weighted prediction parameters. It can be created by combining parameters. Alternatively, assuming that the weight prediction parameter set of the current block may include four backward weight prediction parameters, the remaining two backward weight prediction parameters except for the two backward weight parameters derived from neighboring blocks are two or more backward weight prediction parameters. It can be created by combining parameters. In FIG. 9, by combining the forward weight prediction parameters of A and C, the forward weight prediction parameters of B and D are generated, and the backward weight prediction parameters of A and B are generated by combining the backward weight prediction parameters of C and D. was exemplified as
조합된 가중치 예측 파라미터가 가중치 예측 파라미터 세트에 추가되는 경우, 조합된 가중치 예측 파라미터에 부여되는 인덱스는 기 설정된 우선순위에 의해 결정될 수 있다.When the combined weight prediction parameter is added to the weight prediction parameter set, an index assigned to the combined weight prediction parameter may be determined according to a preset priority.
만약 이웃 블록에서의 가중치 예측 파라미터들을 조합함에도 불구하고 정해진 가중치 예측 파라미터 세트를 전부 생성하지 못한 경우, 나머지 가중치 예측 파라미터들은 전부 초기 가중치 예측 파라미터로 설정할 수 있다.If all of the predetermined weighted prediction parameter sets are not generated despite combining the weighted prediction parameters in the neighboring blocks, all of the remaining weighted prediction parameters may be set as initial weighted prediction parameters.
도 10은 복호화 장치에서 가중치 예측 파라미터를 복호화하는 예를 나타낸다. 도 10을 참조하면, 먼저, 복호화 장치는 현재 블록에 앞서 복호화된 블록 중 현재 블록에 이웃한 이웃 블록들의 가중치 예측 파라미터를 기초로, 가중치 예측 파라미터 세트를 생성할 수 있다(S1001). 가중치 예측 파라미터 세트를 생성하는 것에 대해서는 앞서 부호화 장치의 동작에서 상세히 설명한 바 있으므로, 이에 대한 상세한 설명은 생략한다.10 shows an example of decoding a weight prediction parameter in a decoding apparatus. Referring to FIG. 10 , first, the decoding apparatus may generate a weight prediction parameter set based on weight prediction parameters of neighboring blocks adjacent to the current block among blocks decoded prior to the current block ( S1001 ). Since the generation of the weight prediction parameter set has been previously described in detail in the operation of the encoding apparatus, a detailed description thereof will be omitted.
현재 블록에 대한 가중치 예측 파라미터 세트가 구성되면, 복호화 장치는 가중치 예측 파라미터 세트에 포함된 가중치 예측 파라미터 중 어느 하나를 특정하는 인덱스 정보에 기초하여, 현재 블록에 대한 가중치 예측 파라미터를 결정할 수 있다(S1002). 여기서, 인덱스 정보는 비트스트림으로부터 복호화 될 수 있다.When the weight prediction parameter set for the current block is configured, the decoding apparatus may determine the weight prediction parameter for the current block based on index information specifying any one of the weight prediction parameters included in the weight prediction parameter set (S1002). ). Here, the index information may be decoded from the bitstream.
현재 블록에 대한 가중치 예측 파라미터가 결정되면, 결정된 가중치 예측 파라미터를 이용하여, 현재 블록에 대한 화면 간 예측을 수행할 수 있다(S1003). 일 예로, 현재 블록의 화면 간 예측은 움직임 보상을 통해 획득된 예측 샘플에, 곱셈 파라미터를 곱한 뒤, 덧셈 파라미터를 더함으로써 수행될 수 있다.When the weight prediction parameter for the current block is determined, inter prediction for the current block may be performed using the determined weight prediction parameter ( S1003 ). As an example, inter prediction of the current block may be performed by multiplying a prediction sample obtained through motion compensation by a multiplication parameter and then adding an addition parameter.
현재 블록에 대한 화면 간 예측 결과로 예측 블록이 생성되면, 생성된 예측 블록 및 잔차 블록에 기초하여 현재 블록을 복원할 수 있다(S1004). When a prediction block is generated as a result of inter prediction for the current block, the current block may be reconstructed based on the generated prediction block and the residual block ( S1004 ).
현재 블록의 복원이 완료되면, 현재 블록 다음으로 복호화되는 블록이 이용할 수 있도록, 현재 블록에 대한 가중치 예측 파라미터를 추정할 수 있다(S1005). 현재 블록의 가중치 예측 파라미터 세트를 추정하는 것에 대해서는 앞서 부호화 장치의 동작에서 상세히 설명한 바 있으므로, 이에 대한 상세한 설명은 생략한다.When the restoration of the current block is completed, a weight prediction parameter for the current block may be estimated so that a block to be decoded next to the current block may use it ( S1005 ). Since the estimation of the weight prediction parameter set of the current block has been described in detail in the operation of the encoding apparatus, a detailed description thereof will be omitted.
본 개시의 예시적인 방법들은 설명의 명확성을 위해서 동작의 시리즈로 표현되어 있지만, 이는 단계가 수행되는 순서를 제한하기 위한 것은 아니며, 필요한 경우에는 각각의 단계가 동시에 또는 상이한 순서로 수행될 수도 있다. 본 개시에 따른 방법을 구현하기 위해서, 예시하는 단계에 추가적으로 다른 단계를 포함하거나, 일부의 단계를 제외하고 나머지 단계를 포함하거나, 또는 일부의 단계를 제외하고 추가적인 다른 단계를 포함할 수도 있다.Example methods of the present disclosure are expressed as a series of operations for clarity of description, but this is not intended to limit the order in which the steps are performed, and if necessary, each step may be performed simultaneously or in a different order. In order to implement the method according to the present disclosure, other steps may be included in addition to the illustrated steps, other steps may be included except some steps, or additional other steps may be included except some steps.
본 개시의 다양한 실시 예는 모든 가능한 조합을 나열한 것이 아니고 본 개시의 대표적인 양상을 설명하기 위한 것이며, 다양한 실시 예에서 설명하는 사항들은 독립적으로 적용되거나 또는 둘 이상의 조합으로 적용될 수도 있다.Various embodiments of the present disclosure do not list all possible combinations but are intended to describe representative aspects of the present disclosure, and matters described in various embodiments may be applied independently or in combination of two or more.
또한, 본 개시의 다양한 실시 예는 하드웨어, 펌웨어(firmware), 소프트웨어, 또는 그들의 결합 등에 의해 구현될 수 있다. 하드웨어에 의한 구현의 경우, 하나 또는 그 이상의 ASICs(Application Specific Integrated Circuits), DSPs(Digital Signal Processors), DSPDs(Digital Signal Processing Devices), PLDs(Programmable Logic Devices), FPGAs(Field Programmable Gate Arrays), 범용 프로세서(general processor), 컨트롤러, 마이크로 컨트롤러, 마이크로 프로세서 등에 의해 구현될 수 있다. In addition, various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof. For implementation by hardware, one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose It may be implemented by a processor (general processor), a controller, a microcontroller, a microprocessor, and the like.
본 개시의 범위는 다양한 실시 예의 방법에 따른 동작이 장치 또는 컴퓨터 상에서 실행되도록 하는 소프트웨어 또는 머신-실행가능한 명령들(예를 들어, 운영체제, 애플리케이션, 펌웨어(firmware), 프로그램 등), 및 이러한 소프트웨어 또는 명령 등이 저장되어 장치 또는 컴퓨터 상에서 실행 가능한 비-일시적 컴퓨터-판독가능 매체(non-transitory computer-readable medium)를 포함한다.The scope of the present disclosure includes software or machine-executable instructions (eg, operating system, application, firmware, program, etc.) that cause an operation according to the method of various embodiments to be executed on a device or computer, and such software or and non-transitory computer-readable media in which instructions and the like are stored and executed on a device or computer.
Claims (4)
상기 가중치 예측 파라미터를 기초로, 상기 현재 블록을 예측하는 단계를 포함하되,
상기 가중치 예측 파라미터를 결정하기 위해 이용되는 주변 영역의 위치를 특정하는 정보가 비트스트림으로부터 획득되고,
상기 주변 영역은, 상기 비트스트림으로부터 획득된 정보에 의해 특정되고,
상기 주변 영역은, 상기 현재 블록의 좌하단 주변 영역 또는 우상단 주변 영역을 포함하는, 영상 신호 복호화 방법.determining a weight prediction parameter for a current block by using a predetermined reference region; Here, the reference area is an area reconstructed before the current block, and includes a neighboring area adjacent to the current block, and
Predicting the current block based on the weight prediction parameter,
Information specifying a location of a surrounding area used to determine the weight prediction parameter is obtained from a bitstream,
The surrounding area is specified by information obtained from the bitstream,
The peripheral region includes a lower left peripheral region or an upper right peripheral region of the current block.
상기 가중치 예측 파라미터는, 상기 현재 블록의 크기 또는 형태 중 적어도 하나에 기초하여 결정되는, 영상 신호 복호화 방법.The method of claim 1,
The weight prediction parameter is determined based on at least one of a size and a shape of the current block.
상기 가중치 예측 파라미터를 기초로, 상기 현재 블록을 예측하는 단계를 포함하되,
상기 가중치 예측 파라미터를 결정하기 위해 이용되는 주변 영역의 위치를 특정하는 정보는 부호화되고,
상기 주변 영역은, 상기 현재 블록의 좌하단 주변 영역 또는 우상단 주변 영역을 포함하는, 영상 신호 부호화 방법.determining a weight prediction parameter for a current block by using a predetermined reference region; Here, the reference region is a region coded before the current block and includes a neighboring region adjacent to the current block, and
Predicting the current block based on the weight prediction parameter,
Information specifying the location of the surrounding area used to determine the weight prediction parameter is encoded,
The peripheral region includes a lower-left peripheral region or an upper-right peripheral region of the current block.
상기 부호화 방법은, 소정의 참조 영역을 이용하여, 현재 블록에 대한 가중치 예측 파라미터를 결정하는 단계; 여기서, 상기 참조 영역은, 상기 현재 블록 이전에 부호화된 영역이고, 상기 현재 블록에 인접한 주변 영역을 포함함, 및
상기 가중치 예측 파라미터를 기초로, 상기 현재 블록을 예측하는 단계를 포함하되,
상기 가중치 예측 파라미터를 결정하기 위해 이용되는 주변 영역의 위치를 특정하는 정보는 부호화되고,
상기 주변 영역은, 상기 현재 블록의 좌하단 주변 영역 또는 우상단 주변 영역을 포함하는, 컴퓨터로 판독가능한 기록 매체.A computer-readable recording medium storing a bitstream generated by an encoding method, comprising:
The encoding method may include: determining a weight prediction parameter for a current block by using a predetermined reference region; Here, the reference region is a region coded before the current block and includes a neighboring region adjacent to the current block, and
Predicting the current block based on the weight prediction parameter,
Information specifying the location of the surrounding area used to determine the weight prediction parameter is encoded,
The peripheral area includes a lower left peripheral area or an upper right peripheral area of the current block.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020230092343A KR102733932B1 (en) | 2016-04-29 | 2023-07-17 | Method and apparatus for encoding/decoding a video signal |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR20160052702 | 2016-04-29 | ||
KR1020160052702 | 2016-04-29 | ||
KR1020170050052A KR102431287B1 (en) | 2016-04-29 | 2017-04-18 | Method and apparatus for encoding/decoding a video signal |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020170050052A Division KR102431287B1 (en) | 2016-04-29 | 2017-04-18 | Method and apparatus for encoding/decoding a video signal |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020230092343A Division KR102733932B1 (en) | 2016-04-29 | 2023-07-17 | Method and apparatus for encoding/decoding a video signal |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20220116107A true KR20220116107A (en) | 2022-08-22 |
KR102557797B1 KR102557797B1 (en) | 2023-07-21 |
Family
ID=83103024
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020220097911A KR102557797B1 (en) | 2016-04-29 | 2022-08-05 | Method and apparatus for encoding/decoding a video signal |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR102557797B1 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090012926A (en) * | 2007-07-31 | 2009-02-04 | 삼성전자주식회사 | Image coding, decoding method and apparatus using weight prediction |
KR20130085838A (en) * | 2012-01-20 | 2013-07-30 | 에스케이텔레콤 주식회사 | Video coding method and apparatus using weighted prediction |
-
2022
- 2022-08-05 KR KR1020220097911A patent/KR102557797B1/en active IP Right Grant
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090012926A (en) * | 2007-07-31 | 2009-02-04 | 삼성전자주식회사 | Image coding, decoding method and apparatus using weight prediction |
KR20130085838A (en) * | 2012-01-20 | 2013-07-30 | 에스케이텔레콤 주식회사 | Video coding method and apparatus using weighted prediction |
Also Published As
Publication number | Publication date |
---|---|
KR102557797B1 (en) | 2023-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102283407B1 (en) | Innovations in block vector prediction and estimation of reconstructed sample values within an overlap area | |
KR102619133B1 (en) | Method and apparatus for encoding/decoding image and recording medium for storing bitstream | |
KR102733932B1 (en) | Method and apparatus for encoding/decoding a video signal | |
KR102711446B1 (en) | Method and apparatus for encoding/decoding a video signal | |
US11363280B2 (en) | Method and apparatus for encoding/decoding image signal | |
US12137232B2 (en) | Method and apparatus for encoding/decoding image signal | |
KR20190115426A (en) | Method and apparatus for encoding/decoding an image | |
KR102557797B1 (en) | Method and apparatus for encoding/decoding a video signal | |
KR102511611B1 (en) | Image encoding method/apparatus, image decoding method/apparatus and and recording medium for storing bitstream | |
KR102557740B1 (en) | Method and apparatus for encoding/decoding a video signal | |
US12231657B2 (en) | Method and apparatus for encoding/decoding image signals using weight prediction parameter sets based on neighboring regions to obtain a residual block | |
KR20230042236A (en) | Image encoding method/apparatus, image decoding method/apparatus and and recording medium for storing bitstream | |
KR20210124069A (en) | Method and apparatus for encoding and decoding image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A107 | Divisional application of patent | ||
PA0107 | Divisional application |
Comment text: Divisional Application of Patent Patent event date: 20220805 Patent event code: PA01071R01D Filing date: 20170418 Application number text: 1020170050052 |
|
PA0201 | Request for examination | ||
PG1501 | Laying open of application | ||
E902 | Notification of reason for refusal | ||
PE0902 | Notice of grounds for rejection |
Comment text: Notification of reason for refusal Patent event date: 20220915 Patent event code: PE09021S01D |
|
E701 | Decision to grant or registration of patent right | ||
PE0701 | Decision of registration |
Patent event code: PE07011S01D Comment text: Decision to Grant Registration Patent event date: 20230419 |
|
GRNT | Written decision to grant | ||
PR0701 | Registration of establishment |
Comment text: Registration of Establishment Patent event date: 20230717 Patent event code: PR07011E01D |
|
PR1002 | Payment of registration fee |
Payment date: 20230718 End annual number: 3 Start annual number: 1 |
|
PG1601 | Publication of registration |