[go: up one dir, main page]

KR20100046732A - Video encoding/decoding apparatus, deblocking filter and deblocing filtering method, and recording medium therefor - Google Patents

Video encoding/decoding apparatus, deblocking filter and deblocing filtering method, and recording medium therefor Download PDF

Info

Publication number
KR20100046732A
KR20100046732A KR1020080105718A KR20080105718A KR20100046732A KR 20100046732 A KR20100046732 A KR 20100046732A KR 1020080105718 A KR1020080105718 A KR 1020080105718A KR 20080105718 A KR20080105718 A KR 20080105718A KR 20100046732 A KR20100046732 A KR 20100046732A
Authority
KR
South Korea
Prior art keywords
pixel
filtering
boundary
block
pixels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
KR1020080105718A
Other languages
Korean (ko)
Other versions
KR101534050B1 (en
Inventor
김하윤
최영호
최윤식
김용구
안준혁
Original Assignee
에스케이 텔레콤주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 에스케이 텔레콤주식회사 filed Critical 에스케이 텔레콤주식회사
Priority to KR1020080105718A priority Critical patent/KR101534050B1/en
Priority to US13/126,144 priority patent/US9596485B2/en
Priority to PCT/KR2009/006127 priority patent/WO2010050699A2/en
Publication of KR20100046732A publication Critical patent/KR20100046732A/en
Application granted granted Critical
Publication of KR101534050B1 publication Critical patent/KR101534050B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/86Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving reduction of coding artifacts, e.g. of blockiness

Landscapes

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

Abstract

본 발명은 동영상 부호화/복호화 장치, 이를 위한 디블록킹 필터링 장치와 방법, 및 기록 매체에 관한 것으로서, 본 발명의 실시예에 따른 디블록킹 필터링 장치는, 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정부; 상기 서브 블록의 경계의 각 화소에 대해 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하되, 상기 서브 블록의 경계의 모든 화소에 대해 상기 선정된 다수의 최적 방향 중에서 최다 선정된 방향을 해당 서브 블록의 필터링 방향으로 결정하는 필터링 방향 결정부; 및 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링부를 포함하여 구성되어, 블록 왜곡 현상의 제거 성능을 향상하고 연산량을 줄인다.The present invention relates to a video encoding / decoding apparatus, a deblocking filtering apparatus and method for the same, and a recording medium. The deblocking filtering apparatus according to an embodiment of the present invention determines a strength of a boundary between subblocks of a current block. A boundary strength determiner; An optimal direction may be selected based on the amount of change of pixel values between pixels corresponding to each direction among a plurality of preset directions for each pixel of the boundary of the sub-block, and the predetermined direction may be selected for all pixels of the boundary of the sub-block. A filtering direction determiner configured to determine, as a filtering direction of the corresponding sub-block, the most selected direction among a plurality of optimal directions; And selecting pixels to be filtered based on the determined filtering direction for each pixel of the boundary of the sub-block, and determining whether to filter the determined filtering direction according to the relationship of pixel values between the selected pixels. And a filtering unit configured to perform filtering on the selected pixels in the determined filtering direction according to whether to filter or not, thereby improving block performance and removing computation.

Description

동영상 부호화/복호화 장치, 이를 위한 디블록킹 필터링 장치와 방법, 및 기록 매체{Video encoding/decoding apparatus, Deblocking filter and deblocing filtering method, and Recording Medium therefor}Video encoding / decoding apparatus, apparatus and method for deblocking filtering, and recording medium for video encoding / decoding apparatus, and deblocking filtering method and recording medium therefor}

본 발명은 동영상 부호화/복호화 장치에 관한 것으로서, 특히 블록 기반의 이산 여현 변환과 양자화를 이용하여 엔코딩하는 장치에서 발생하는 블록킹 효과(blocking Artifact)를 제거하기 위한, 동영상 부호화/복호화 장치, 이를 위한 디블록킹 필터링 장치와 필터링 방법, 및 기록 매체에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a video encoding / decoding apparatus, and more particularly, to a video encoding / decoding apparatus for removing a blocking artifact occurring in a device encoding using block-based discrete cosine transform and quantization. A blocking filtering device, a filtering method, and a recording medium.

일반적으로, 대부분의 상용 비디오 압축 방식 및 그 장치(H.263, H.264, MPEG-4, H.264/AVC)에서는, 영상의 공간 중복성을 줄이기 위해 블록 기반 이산 여현 변환(Discrete cosine transform: DCT)과 양자화(Quantization) 기술을 사용한다. 이 때, 서로 겹쳐지지 않는 블록 단위의 변환(Transform)은 주변 블록 또는 화소 간의 상관 관계가 전혀 고려되지 않은 채 독립적으로 이산 여현 변환과 양자화 과정이 수행되어 데이터 손실이 발생하고, 특히 양자화 값을 크게 갖는 저 비트율의 비디오에서는 블록 간의 경계 면에 화소 값의 구조화된 불연속성인 블록화 현상 뚜렷하게 나타나는데, 이를 블록킹 아티팩트(Blocking Artifact)라 한다. 블록킹 아티팩트는 비디오 화면의 화질을 크게 떨어뜨릴 뿐만 아니라, 블록 왜곡이 생긴 채로 프레임 메모리에 저장되고, 움직임 보상 과정에 블록 왜곡이 포함된 영상이 참조되어 화질열화가 그대로 전파되어 압축 성능을 크게 떨어뜨리는 문제점이 있다.In general, in most commercial video compression schemes and devices (H.263, H.264, MPEG-4, H.264 / AVC), block-based discrete cosine transforms are used to reduce spatial redundancy of images. DCT) and quantization techniques. In this case, the transforms of block units that do not overlap each other are independently subjected to discrete cosine transform and quantization without any correlation between neighboring blocks or pixels, thereby causing data loss, and in particular, greatly increasing the quantization value. In low bit-rate video, the blocking phenomenon, which is a structured discontinuity of pixel values, appears clearly at the interface between blocks, which is called blocking artifact. Blocking artifacts not only significantly reduce the picture quality of the video screen, but are also stored in the frame memory with block distortion, and the image with block distortion is referenced in the motion compensation process, so that image quality deterioration is propagated, which greatly reduces the compression performance. There is a problem.

이 때문에 부호화기에서 참조 프레임 메모리에 복호된 영상을 저장하기 전에 블록킹 아티팩트를 감소시키고, 또한 복화화기에서도 화질 개선을 위해서, 블록간의 경계 오차를 부드럽게 해주는 저 대역 필터를 사용하여 이러한 문제를 해결할 수 있었는데 이러한 기법을 디블로킹 필터라고 한다. For this reason, this problem can be solved by using a low-band filter that reduces the blocking artifacts before the decoder stores the decoded image in the reference frame memory and also improves the image quality in the decoder. The technique is called deblocking filter.

그러나 블록 경계 면에서 영상 내에 존재하는 에지나 화면 내 오브젝트의 경계가 존재할 경우, 여기에 디블록킹 필터를 적용하게 되면 원래 영상의 성분인 에지 부분이 훼손하는 경우가 발생하여 화질 열화의 원인이 된다.However, if there is an edge present in the image or an object boundary in the screen at the block boundary surface, applying the deblocking filter to this may cause the edge portion of the original image to be damaged, thereby causing deterioration of image quality.

그래서 H.264/AVC 비디오 코덱에서의 디블록킹 필터는 DCT와 양자화를 수행하는 블록 단위인 4x4 화소를 갖는 블록의 경계마다 적응적으로 필터링을 수행한다. 좀더 자세히 말하면, 블록의 경계면이 실제 영상의 에지나 오브젝트의 경계라고 판단되면 필터링을 취하지 않고, 경계면이 블로킹 아티팩트로 인한 왜곡이라고 판단되면 필터링을 취함으로써 상기 문제를 해결하였다.Therefore, the deblocking filter in the H.264 / AVC video codec adaptively performs filtering for each boundary of a block having 4x4 pixels, which is a block unit performing quantization with DCT. In more detail, if the boundary of the block is determined to be the edge of the real image or the boundary of the object, the filtering is not performed. If the boundary is determined to be distortion due to blocking artifacts, the problem is solved.

그러나 H.264/AVC의 디블록킹 필터는 수직과 수평 방향으로만 에지 존재 여부를 판단하기 때문에 대각선 방향으로 에지나 오브젝트의 경계가 위치하게 되면, 블록간의 경계 부분의 대각선 방향 화소에 대해서 불연속성이 발생하여 여전히 블록킹 아티팩트가 생길 수 있는 문제점이 있다.However, since the H.264 / AVC deblocking filter determines the existence of an edge only in the vertical and horizontal directions, when a boundary of an edge or an object is placed in a diagonal direction, discontinuity occurs in diagonal pixels of the boundary between blocks. There is still a problem that blocking artifacts can occur.

전술한 문제점을 해결하기 위해 본 발명은, 블록간의 경계에서 수직과 수평 방향뿐만 아니라 그 외의 다수 방향에 대하여 에지 방향을 화소 단위로 판별하고, 그 방향으로 디블록킹 필터링을 수행함으로써 블록킹 아티팩트를 제거하여 화질을 향상시키며, 특히 블록킹 아티팩트의 제거 시 발생하는 연산량을 효과적으로 줄여 연산량이 제한된 장치에 구현이 용이하도록 하는, 동영상 부호화/복호화 장치, 이를 위한 디블록킹 필터링 장치와 필터링 방법, 및 기록 매체를 제공하는 것을 목적으로 한다.In order to solve the above problems, the present invention, by determining the edge direction in the pixel unit in the vertical and horizontal direction as well as a number of other directions at the boundary between blocks, and remove the blocking artifacts by performing deblocking filtering in that direction A video encoding / decoding device, a deblocking filtering device and a filtering method therefor, and a recording medium, which improve image quality, and in particular, reduce the amount of computation occurring when removing blocking artifacts, thereby facilitating implementation in a limited amount of computation. For the purpose of

전술한 목적을 달성하기 위하여 본 발명의 실시예의 일 측면에 따르면, 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정부; 상기 서브 블록의 경계의 각 화소에 대해 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하되, 상기 서브 블록의 경계의 모든 화소에 대해 상기 선정된 다수의 최적 방향 중에서 최다 선정된 방향을 해당 서브 블록의 필터링 방향으로 결정하는 필터링 방향 결정부; 및 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링부를 포함하는 디 블록킹 필터링 장치가 제공된다.According to an aspect of an embodiment of the present invention to achieve the above object, a boundary strength determination unit for determining the strength of the boundary between the sub-blocks of the current block; An optimal direction may be selected based on the amount of change of pixel values between pixels corresponding to each direction among a plurality of preset directions for each pixel of the boundary of the sub-block, and the predetermined direction may be selected for all pixels of the boundary of the sub-block. A filtering direction determiner configured to determine, as a filtering direction of the corresponding subblock, the most selected direction among a plurality of optimal directions; And selecting pixels to be filtered based on the determined filtering direction for each pixel of the boundary of the sub-block, and determining whether to filter the determined filtering direction according to the relationship of pixel values between the selected pixels. A deblocking filtering device including a filtering unit which performs filtering on the selected pixels in the determined filtering direction according to filtering is provided.

상기 필터링 방향 결정부는, 해당 경계를 기준으로 마주하는 첫 번째 화소들간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 일 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 타 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 일 측의 세 번째 화소와 두 번째 화소간의 화소값 차이의 절대값, 및 상기 해당 경계를 기준으로 타 측의 세 번째 화소와 두 번째 화소간의 화소값 차이의 절대값에 근거하여 상기 변화량을 산출하고, 상기 변화량이 가장 작은 방향을 상기 최적 방향으로 선정할 수 있다.The filtering direction determiner may include an absolute value of a pixel value difference between first pixels facing the boundary, an absolute value of a pixel value difference between the second pixel and the first pixel on the basis of the boundary, An absolute value of a pixel value difference between the second pixel and the first pixel on the other side based on the corresponding boundary, an absolute value of a pixel value difference between the third pixel and the second pixel on the side based on the corresponding boundary, and the corresponding value The change amount may be calculated based on an absolute value of a difference in pixel values between the third pixel and the second pixel on the other side of the boundary, and a direction in which the change amount is the smallest may be selected as the optimum direction.

상기 필터링부는, 상기 선택된 화소들간의 화소값의 관계가, 해당 경계를 기준으로 마주하는 첫 번째 화소들간의 화소값 차이의 절대값, 상기 경계를 기준으로 일 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 및 상기 경계를 기준으로 타 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값이 각각 기 설정된 문턱치들보다 작은 조건을 만족하면, 상기 결정된 필터링 방향으로 필터링할 수 있다.The filtering unit may include an absolute value of a difference of pixel values between first pixels facing a corresponding boundary, and a relationship between a second pixel and a first pixel of one side based on the boundary. If the absolute value of the pixel value difference and the absolute value of the pixel value difference between the second pixel and the first pixel on the other side are smaller than predetermined thresholds, the filter is performed in the determined filtering direction. Can be.

상기 필터링부는, 상기 결정된 필터링 방향이 상기 조건을 만족하지 못하면, 상기 해당 경계의 수직 방향에 대해 상기 조건을 만족하는지의 여부를 확인하고, 그 확인 결과에 따라 필터링을 수행할 수 있다.If the determined filtering direction does not satisfy the condition, the filtering unit may determine whether the condition is satisfied with respect to the vertical direction of the corresponding boundary, and may perform filtering according to the check result.

상기 기 설정된 복수의 방향은 45도, 56.25도, 67.5도, 78.75도, 90도, 101.25도, 112.5도, 123.75도 및 135도를 포함할 수 있다.The preset plurality of directions may include 45 degrees, 56.25 degrees, 67.5 degrees, 78.75 degrees, 90 degrees, 101.25 degrees, 112.5 degrees, 123.75 degrees, and 135 degrees.

상기 필터링 방향 결정부는 상기 결정된 필터링 방향을 해당 서브 블록에 대한 부가 정보로 기록하거나, 해당 서브 블록의 경계의 화소 중 상기 결정된 필터링 방향으로 필터링된 화소에 대해 부가 정보를 할당하여 기록할 수 있다.The filtering direction determiner may record the determined filtering direction as additional information about the corresponding subblock, or allocate additional information about pixels filtered in the determined filtering direction among pixels on the boundary of the corresponding subblock.

전술한 목적을 달성하기 위하여 본 발명의 실시예의 다른 측면에 따르면, 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정부; 상기 서브 블록의 경계의 첫 번째의 화소에 대해서는 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하고, 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서는 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 필터링 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하는, 필터링 방향 결정부; 및 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링부를 포함하는 디블록킹 필터링 장치가 제공된다.According to another aspect of an embodiment of the present invention to achieve the above object, a boundary strength determination unit for determining the strength of the boundary between the sub-blocks of the current block; For the first pixel of the boundary of the sub-block, one direction is determined as the filtering direction based on the amount of change in the pixel value between the pixels corresponding to each direction among a plurality of preset directions, and two of the boundaries of the sub-block are determined. For the second or more pixels, the filtering direction is determined as the filtering direction for the current subblock, the filtering direction of the immediately preceding pixel is determined as the filtering direction, or the filtering direction is determined according to the filtering direction determination process of the first pixel. A filtering direction determiner; And selecting pixels to be filtered based on the determined filtering direction for each pixel of the boundary of the sub-block, and determining whether to filter the determined filtering direction according to the relationship of pixel values between the selected pixels. A deblocking filtering device including a filtering unit that performs filtering on the selected pixels in the determined filtering direction according to filtering is provided.

전술한 목적을 달성하기 위하여 본 발명의 실시예의 또 다른 측면에 따르면, 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정 단계; 상기 서브 블록의 경계의 각 화소에 대해 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하는 최적 방향 선정 단 계; 상기 서브 블록의 경계의 모든 화소에 대해 상기 선정된 다수의 최적 방향 중에서 최다 선정된 방향을 해당 서브 블록의 필터링 방향으로 결정하는 필터링 방향 결정 단계; 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하는 화소 선택 단계; 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하는 필터링 여부 결정 단계; 및 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링 단계를 포함하는 디블록킹 필터링 방법이 제공된다.According to another aspect of an embodiment of the present invention to achieve the above object, the boundary strength determination step of determining the strength of the boundary between sub-blocks of the current block; An optimal direction selecting step of selecting an optimum direction based on a change amount of pixel values between pixels corresponding to each direction among a plurality of preset directions for each pixel of the boundary of the sub-block; A filtering direction determining step of determining, as the filtering direction of the corresponding sub block, the most selected direction among the selected plurality of optimal directions for all pixels on the boundary of the sub block; A pixel selecting step of selecting pixels to be filtered for each pixel at a boundary of the sub block based on the determined filtering direction; A filtering step determining step of determining whether or not to filter the determined filtering direction according to a relationship between pixel values between the selected pixels; And a filtering step of performing filtering on the selected pixels in the determined filtering direction according to the determined filtering.

전술한 목적을 달성하기 위하여 본 발명의 실시예의 또 다른 측면에 따르면, 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정 단계; 상기 서브 블록의 경계의 첫 번째의 화소에 대해서, 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하는 제 1 필터링 방향 결정 단계; 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서, 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 최적 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하는, 제 2 필터링 방향 결정 단계; 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하는 화소 선택 단계; 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하는 필터링 여부 결정 단계; 및 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링 단계를포함하는 비블록킹 필터링 방법이 제공된다.According to another aspect of an embodiment of the present invention to achieve the above object, the boundary strength determination step of determining the strength of the boundary between sub-blocks of the current block; A first filtering direction determining step of determining, with respect to the first pixel of the boundary of the sub block, one direction as a filtering direction based on an amount of change of pixel values between pixels corresponding to each direction among a plurality of preset directions; For the second or more pixels on the boundary of the sub-block, the direction most selected so far for the current sub-block is determined as the filtering direction, or the filtering direction of the immediately preceding pixel is determined as the optimal direction, or the filtering direction of the first pixel is determined. Determining a filtering direction according to the determining process; A pixel selecting step of selecting pixels to be filtered for each pixel at a boundary of the sub block based on the determined filtering direction; A filtering step determining step of determining whether or not to filter the determined filtering direction according to a relationship between pixel values between the selected pixels; And a filtering step of performing filtering on the selected pixels in the determined filtering direction according to the determined filtering.

전술한 목적을 달성하기 위하여 본 발명의 실시예의 또 다른 측면에 따르면, 영상의 현재 블록을 예측하여 예측 블록을 생성하는 예측부; 상기 현재 블록에서 상기 예측 블록을 감산하여 잔차 블록을 생성하는 감산부; 상기 잔차 블록을 주파수 영역으로 변환하는 변환부; 상기 변환된 잔차 블록을 양자화하는 양자화부; 상기 양자화된 잔차 블록을 부호화하는 부호화부; 상기 잔차 블록을 역 양자화하는 역양자화부; 상기 역 양자화된 잔차 블록을 시간축상의 화소 신호를 갖는 잔차 블록으로 역변환하는 역변환부; 상기 역변환된 잔차 블록에 상기 예측 블록을 가산하여 현재 블록을 복원하는 가산부; 및 상기 복원된 현재 블록을 디블로킹 필터링하되, 상기 복원된 현재 블록의 서브 블록의 경계의 각 화소에 대해 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하고, 상기 서브 블록의 경계의 모든 화소에 대해 상기 선정된 다수의 최적 방향 중에서 최다 선정된 방향을 해당 서브 블록의 필터링 방향으로 결정하며, 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 디블로킹 필터부를 포함하는 동영상 부호화 장치가 제공된다.According to another aspect of an embodiment of the present invention to achieve the above object, a prediction unit for predicting the current block of the image to generate a prediction block; A subtraction unit for generating a residual block by subtracting the prediction block from the current block; A transformer for converting the residual block into a frequency domain; A quantizer for quantizing the transformed residual block; An encoder which encodes the quantized residual block; An inverse quantizer for inversely quantizing the residual block; An inverse transform unit for inversely transforming the inverse quantized residual block into a residual block having a pixel signal on a time axis; An adder configured to add the prediction block to the inverse transformed residual block to restore a current block; And deblocking filtering the reconstructed current block, based on an amount of change of pixel values between pixels corresponding to each direction among a plurality of preset directions for each pixel of a boundary of a subblock of the reconstructed current block. Is selected, and the most selected direction among the selected plurality of optimal directions for all pixels of the boundary of the sub block is determined as the filtering direction of the corresponding sub block, and the determined filtering is performed on each pixel of the boundary of the sub block. Selecting pixels to filter based on a direction, determining whether to filter the determined filtering direction according to the relationship between the pixel values between the selected pixels, and determining whether to filter the determined filtering direction according to the determined filtering. Provided is a video encoding apparatus including a deblocking filter that performs filtering on a do.

전술한 목적을 달성하기 위하여 본 발명의 실시예의 또 다른 측면에 따르면, 영상의 현재 블록을 예측하여 예측 블록을 생성하는 예측부; 상기 현재 블록에서 상기 예측 블록을 감산하여 잔차 블록을 생성하는 감산부; 상기 잔차 블록을 주파수 영역으로 변환하는 변환부; 상기 변환된 잔차 블록을 양자화하는 양자화부; 상기 양자화된 잔차 블록을 부호화하는 부호화부; 상기 잔차 블록을 역 양자화하는 역양자화부; 상기 역 양자화된 잔차 블록을 시간축상의 화소 신호를 갖는 잔차 블록으로 역변환하는 역변환부; 상기 역변환된 잔차 블록에 상기 예측 블록을 가산하여 현재 블록을 복원하는 가산부; 및 상기 복원된 현재 블록을 디블로킹 필터링하되, 상기 복원된 현재 블록의 서브 블록의 경계의 첫 번째의 화소에 대해서는 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하고, 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서는 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 필터링 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하며, 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 디블로킹 필터부를 포함하는 동영상 부호화 장치가 제공된다.According to another aspect of an embodiment of the present invention to achieve the above object, a prediction unit for predicting the current block of the image to generate a prediction block; A subtraction unit for generating a residual block by subtracting the prediction block from the current block; A transformer for converting the residual block into a frequency domain; A quantizer for quantizing the transformed residual block; An encoder which encodes the quantized residual block; An inverse quantizer for inversely quantizing the residual block; An inverse transform unit for inversely transforming the inverse quantized residual block into a residual block having a pixel signal on a time axis; An adder configured to add the prediction block to the inverse transformed residual block to restore a current block; And deblocking filtering the reconstructed current block, and for the first pixel of the boundary of the sub-block of the reconstructed current block, based on a change amount of pixel values between pixels corresponding to each direction among a plurality of preset directions. One direction is determined as the filtering direction, and for the second or more pixels on the boundary of the sub block, the direction most selected so far is determined as the filtering direction for the current sub block, or the filtering direction of the immediately preceding pixel is determined as the filtering direction. Alternatively, the filtering direction is determined according to the filtering direction determination process of the first pixel, and pixels to be filtered are selected for each pixel of the boundary of the sub-block based on the determined filtering direction, and pixel values between the selected pixels are selected. Determine whether to filter the determined filtering direction according to the relationship between The video encoding apparatus includes a deblocking filter to perform filtering on the selected pixel of the determined filtering direction is provided, depending on whether the determined filter.

전술한 목적을 달성하기 위하여 본 발명의 실시예의 또 다른 측면에 따르면, 비트스트림을 복호화하여 잔차 블록을 추출하는 복호화부; 상기 잔차 블록을 역 양 자화하는 역양자화부; 상기 역 양자화된 잔차 블록을 역 변환하는 역변환부; 현재 블록을 예측하여 예측 블록을 생성하는 예측부; 상기 역 변환된 잔차 블록과 상기 예측 블록을 가산하여 상기 현재 블록을 복원하는 가산부; 및 상기 복원된 현재 블록을 디블로킹 필터링하되, 상기 복원된 현재 블록의 서브 블록의 경계의 모든 화소 중 수신된 부가 정보에 대응하는 화소에 대해, 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하고, 상기 선정된 최적 방향을 해당 서브 블록의 필터링 방향으로 결정하며, 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 디블로킹 필터부를 포함하는 동영상 복호화 장치가 제공된다.According to another aspect of an embodiment of the present invention to achieve the above object, a decoding unit for decoding the bitstream to extract the residual block; An inverse quantizer for inversely quantizing the residual block; An inverse transform unit for inversely transforming the inverse quantized residual block; A prediction unit for predicting a current block to generate a prediction block; An adder configured to add the inverse transformed residual block and the prediction block to restore the current block; And deblocking filtering the restored current block, and for pixels corresponding to the received additional information among all the pixels on the boundary of the subblock of the restored current block, between pixels corresponding to each of a plurality of preset directions. Selecting an optimal direction based on the amount of change in the pixel value, determining the selected optimal direction as a filtering direction of the corresponding subblock, and filtering pixels based on the determined filtering direction for each pixel at the boundary of the subblock. Deblocking for filtering the selected filtering direction according to the relationship between the pixel values of the selected pixels, and performing filtering on the selected pixels in the determined filtering direction according to the determined filtering. Provided is a video decoding apparatus including a filter unit.

전술한 목적을 달성하기 위하여 본 발명의 실시예의 또 다른 측면에 따르면, 비트스트림을 복호화하여 잔차 블록을 추출하는 복호화부; 상기 잔차 블록을 역 양자화하는 역양자화부; 상기 역 양자화된 잔차 블록을 역 변환하는 역변환부; 현재 블록을 예측하여 예측 블록을 생성하는 예측부; 상기 역 변환된 잔차 블록과 상기 예측 블록을 가산하여 상기 현재 블록을 복원하는 가산부; 및 상기 가산부 의해 복원된 상기 현재 블록을 디블로킹 필터링하되, 상기 복원된 현재 블록의 서브 블록의 경계의 각 화소에 대해, 해당 서브 블록의 부가 정보로서 수신된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 수신된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 수신된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 디블로킹 필터부를 포함하는 동영상 복호화 장치가 제공된다.According to another aspect of an embodiment of the present invention to achieve the above object, a decoding unit for decoding the bitstream to extract the residual block; An inverse quantizer for inversely quantizing the residual block; An inverse transform unit for inversely transforming the inverse quantized residual block; A prediction unit for predicting a current block to generate a prediction block; An adder configured to add the inverse transformed residual block and the prediction block to restore the current block; And deblocking and filtering the current block reconstructed by the adder, and for each pixel of the boundary of the subblock of the reconstructed current block, the pixels to be filtered based on the filtering direction received as additional information of the corresponding subblock. Selects and determines whether to filter the received filtering direction according to the relationship between the pixel values between the selected pixels, and performs filtering on the selected pixels of the received filtering direction according to the determined filtering. A video decoding apparatus including a blocking filter unit is provided.

전술한 목적을 달성하기 위하여 본 발명의 실시예의 또 다른 측면에 따르면, 비트스트림을 복호화하여 잔차 블록을 추출하는 복호화부; 상기 잔차 블록을 역 양자화하는 역양자화부; 상기 역 양자화된 잔차 블록을 역 변환하는 역변환부; 현재 블록을 예측하여 예측 블록을 생성하는 예측부; 상기 역 변환된 잔차 블록과 상기 예측 블록을 가산하여 상기 현재 블록을 복원하는 가산부; 및 상기 가산부 의해 복원된 상기 현재 블록을 디블로킹 필터링하되, 상기 복원된 현재 블록의 서브 블록의 경계의 첫 번째의 화소에 대해서는 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하고, 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서는 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 필터링 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하며, 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 디블로킹 필터부를 포함하는 동영상 복호화 장치가 제공된다.According to another aspect of an embodiment of the present invention to achieve the above object, a decoding unit for decoding the bitstream to extract the residual block; An inverse quantizer for inversely quantizing the residual block; An inverse transform unit for inversely transforming the inverse quantized residual block; A prediction unit for predicting a current block to generate a prediction block; An adder configured to add the inverse transformed residual block and the prediction block to restore the current block; And deblocking filtering the current block reconstructed by the adder, wherein the first pixel of the boundary of the subblock of the reconstructed current block has a pixel value between pixels corresponding to each direction among a plurality of preset directions. Based on the amount of change, one direction is determined as the filtering direction, and for the second or more pixels on the boundary of the sub block, the direction most selected so far is determined as the filtering direction for the current sub block, or the filtering direction of the immediately preceding pixel is determined. Determine a filtering direction according to a filtering direction or a filtering direction determination process of the first pixel, and select pixels to be filtered based on the determined filtering direction for each pixel of the boundary of the sub-block, and the selected pixel Filtering for the determined filtering direction according to the relationship between pixel values A crystal, and the moving image decoding apparatus that includes the determined for the selected pixel of the determined direction filtering deblocking filter to perform filtering based on whether the filtering portion is provided.

전술한 목적을 달성하기 위하여 본 발명의 실시예의 또 다른 측면에 따르면, 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정 기능; 상기 서브 블록의 경계의 각 화소에 대해 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하는 최적 방향 선정 기능; 상기 서브 블록의 경계의 모든 화소에 대해 상기 선정된 다수의 최적 방향 중에서 최다 선정된 방향을 해당 서브 블록의 필터링 방향으로 결정하는 필터링 방향 결정 기능; 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하는 화소 선택 기능; 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하는 필터링 여부 결정 기능; 및 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링 기능을 포함하는 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록 매체가 제공된다.According to another aspect of an embodiment of the present invention to achieve the above object, a boundary strength determination function for determining the strength of the boundary between sub-blocks of the current block; An optimum direction selection function for selecting an optimum direction based on a change amount of pixel values between pixels corresponding to each direction among a plurality of preset directions for each pixel of the boundary of the sub-block; A filtering direction determining function for determining, as the filtering direction of the corresponding sub block, the most selected direction among the plurality of selected optimal directions for all pixels on the boundary of the sub block; A pixel selection function for selecting pixels to be filtered for each pixel at a boundary of the sub block based on the determined filtering direction; A filtering or not determining function for determining whether or not to filter the determined filtering direction according to a relationship between pixel values between the selected pixels; And a filtering function for performing filtering on the selected pixels in the determined filtering direction in accordance with the determined filtering.

전술한 목적을 달성하기 위하여 본 발명의 실시예의 또 다른 측면에 따르면, 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정 기능; 상기 서브 블록의 경계의 첫 번째의 화소에 대해서, 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하는 제 1 필터링 방향 결정 기능; 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서, 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 최적 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하는, 제 2 필터링 방향 결정 기능; 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하는 화소 선택 기능; 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하는 필터링 여부 결정 기능; 및 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링 기능을 포함하는 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록 매체가 제공된다.According to another aspect of an embodiment of the present invention to achieve the above object, a boundary strength determination function for determining the strength of the boundary between sub-blocks of the current block; A first filtering direction determining function for determining a first direction as a filtering direction with respect to a first pixel of a boundary of the sub block based on a change amount of a pixel value between pixels corresponding to each direction among a plurality of preset directions; For the second or more pixels on the boundary of the sub-block, the direction most selected so far for the current sub-block is determined as the filtering direction, or the filtering direction of the immediately preceding pixel is determined as the optimal direction, or the filtering direction of the first pixel is determined. A second filtering direction determining function for determining a filtering direction according to the determining process; A pixel selection function for selecting pixels to be filtered for each pixel at a boundary of the sub block based on the determined filtering direction; A filtering or not determining function for determining whether or not to filter the determined filtering direction according to a relationship between pixel values between the selected pixels; And a filtering function for performing filtering on the selected pixels in the determined filtering direction in accordance with the determined filtering.

본 발명의 실시예에 의하면, 수직 수평 방향 뿐만 아니라 그 밖의 다수의 방향에 대해서도 화소 단위로 디블록킹 필터를 적용할 수 있는 기술을 제공하여, 다수의 사선 방향에 대한 에지로 인하여 생기는 사선 방향의 불연속 성에 의한 블록 왜곡 현상을 효과적으로 제거하며, 특히 블록 왜곡 현상의 제거 시 발생하는 연산량을 효과적으로 줄이는 효과가 발생한다.According to an embodiment of the present invention, a technique for applying a deblocking filter on a pixel-by-pixel basis for not only a vertical horizontal direction but also a plurality of other directions is provided, so that a diagonal discontinuity caused by an edge with respect to a plurality of diagonal directions is provided. It effectively removes the block distortion caused by sex, and in particular, effectively reduces the amount of computation that occurs when removing the block distortion.

이하, 본 발명의 일부 실시예들을 예시적인 도면을 통해 상세하게 설명한다. 각 도면의 구성요소들에 참조부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다. 또한, 본 발명의 구성 요소를 설명하는 데 있어서, 제 1, 제 2, A, B, (a), (b) 등의 용어를 사용할 수 있다. 이러한 용어는 그 구성 요소를 다른 구성 요소와 구별하기 위한 것일 뿐, 그 용어에 의해 해당 구성 요소의 본질이나 차례 또는 순서 등이 한정되지 않는다. 어떤 구성 요소가 다른 구성요소에 "연결", "결합" 또는 "접속"된다고 기재된 경우, 그 구성 요소는 그 다른 구성요소에 직접적으로 연결되거나 또는 접속될 수 있지만, 각 구성 요소 사이에 또 다른 구성 요소가 "연결", "결합" 또는 "접속"될 수도 있다고 이해되어야 할 것이다.Hereinafter, some embodiments of the present invention will be described in detail through exemplary drawings. In adding reference numerals to the components of each drawing, it should be noted that the same reference numerals are assigned to the same components as much as possible even though they are shown in different drawings. In addition, in describing the present invention, when it is determined that the detailed description of the related well-known configuration or function may obscure the gist of the present invention, the detailed description thereof will be omitted. In addition, in describing the component of this invention, terms, such as 1st, 2nd, A, B, (a), (b), can be used. These terms are only for distinguishing the components from other components, and the nature, order or order of the components are not limited by the terms. If a component is described as being "connected", "coupled" or "connected" to another component, that component may be directly connected to or connected to that other component, but there may be another configuration between each component. It is to be understood that the elements may be "connected", "coupled" or "connected".

동영상 화면은 1초 동안에 30장의 프레임으로 구성되므로 한 프레임과 이웃한 프레임 사이에는 그 차이가 작기 때문에, 인간의 눈으로 구분하지 못한다. 이 때문에, 1초 동안에 30장의 프레임을 뿌리면 인간의 눈은 프레임이 연속적인 것으로 인식한다. Since the video screen is composed of 30 frames in one second, the difference is small between one frame and neighboring frames, and thus cannot be distinguished by the human eye. For this reason, when 30 frames are sprayed in one second, the human eye recognizes the frames as continuous.

이와 같이, 이전 프레임과 현재 프레임이 비슷하다면, 이전 프레임을 구성하고 있는 이미 알고 있는 화소값으로부터 다음 프레임의 화소값을 예측할 수 있다. 이를 화면간 예측(inter-prediction)이라 한다. As such, when the previous frame is similar to the current frame, the pixel value of the next frame can be predicted from the known pixel values constituting the previous frame. This is called inter-prediction.

이러한 동영상 데이터의 부호화 및 복호화는 움직임 예측(motion prediction) 기술을 기반으로 이루어진다. 움직임 예측은 시간 축을 기준으로 과거 프레임을 참조하거나 과거 프레임과 미래 프레임을 모두 참조하는 방식으로 수행된다. 현재 프레임을 부호화하거나 복호화하는데 참조되는 프레임을 참조 프레임이라고 한다. 그리고, 블록 기반 동영상 부호화에서 동영상을 구성하는 하나의 정지영상(프레임)은 매크로블록과 매크로블록을 구성하는 서브블록으로 나누어져, 블록단위로 움직임이 예측되고 부호화가 수행된다.The encoding and decoding of such video data is performed based on a motion prediction technique. The motion prediction is performed by referring to past frames or referring to both past and future frames based on the time axis. The frame referred to to encode or decode the current frame is called a reference frame. In block-based video encoding, one still image (frame) constituting a video is divided into macroblocks and subblocks constituting the macroblock, and motion is predicted in units of blocks and encoding is performed.

또한 동일한 프레임 내에서 화소신호의 상관관계를 사용해 다음 화소를 예측 하고 그 예측오차를 부호화할 수도 있다. 이를 화면 내 예측(intra-prediction)이라 한다.It is also possible to predict the next pixel using the correlation of the pixel signal within the same frame and to encode the prediction error. This is called intra-prediction.

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

본 발명의 일 실시예에 따른 동영상 부호화 장치(100)는 예측부(110), 감산부(120), 변환부(130), 양자화부(140), 부호화부(150), 역 양자화부(160), 역 변환부(170), 가산부(180) 및 디블로킹 필터부(190)를 포함하여 구성될 수 있다.The video encoding apparatus 100 according to an embodiment of the present invention includes a predictor 110, a subtractor 120, a transformer 130, a quantizer 140, an encoder 150, and an inverse quantizer 160. ), An inverse transform unit 170, an adder 180, and a deblocking filter unit 190.

이러한 동영상 부호화 장치(100)는 개인용 컴퓨터(PC: Personal Computer), 노트북 컴퓨터, 개인 휴대 단말기(PDA: Personal Digital Assistant), 휴대형 멀티미디어 플레이어(PMP: Portable Multimedia Player), 플레이스테이션 포터블(PSP: PlayStation Portable), 이동통신 단말기(Mobile Communication Terminal) 등일 수 있으며, 각종 기기 또는 유무선 통신망과 통신을 수행하기 위한 통신 모뎀 등의 통신 장치, 영상을 부호화하기 위한 각종 프로그램과 데이터를 저장하기 위한 메모리, 프로그램을 실행하여 연산 및 제어하기 위한 마이크로프로세서 등을 구비하는 다양한 장치를 의미한다.The video encoding apparatus 100 may be a personal computer (PC), a notebook computer, a personal digital assistant (PDA), a portable multimedia player (PMP), or a PlayStation Portable (PSP). ), A communication device such as a communication modem for communicating with various devices or a wired / wireless communication network, a memory for storing various programs and data for encoding an image, and executing a program. Means a variety of devices including a microprocessor for operation and control.

예측부(110)는 위에서 설명한 바와 같이 움직임 예측을 기반으로 하는 화면간 예측이나 동일한 프레임 내에서 화소신호의 상관관계를 사용해 다음 화소를 예측하는 화면 내 예측 중 어느 하나 또는 둘의 조합을 이용하여 현재 블록(또는 매크로블록)을 예측할 수 있다.As described above, the prediction unit 110 may use the current prediction using any one or a combination of intra prediction based on motion prediction or intra prediction that predicts the next pixel using the correlation of pixel signals within the same frame. A block (or macroblock) can be predicted.

예를 들어, 예측부(110)는 움직임 추정부(미도시)와 움직임 보상부(미도시)로 나누어 구성될 수 있다. 움직임 추정부는 현재 프레임의 매크로 블록의 움직임 예측치를 참조 프레임에서 찾아 그 움직임의 차이를 움직임 벡터로써 출력한다. 즉, 찾고자 하는 매크로 블록을 참조 프레임의 소정의 탐색영역 내에서 탐색하여, 가장 유사한 매크로 블록을 찾아 그 이동 정도를 움직임 벡터로써 출력한다. 움직임 보상부는 구해진 움직임 벡터에 해당하는 예측 매크로 블록을 참조 프레임으로부터 얻는다.For example, the predictor 110 may be divided into a motion estimator (not shown) and a motion compensator (not shown). The motion estimator finds the motion prediction value of the macroblock of the current frame in the reference frame and outputs the difference of the motion as a motion vector. That is, the macroblock to be searched is searched within a predetermined search area of the reference frame to find the most similar macroblock and the degree of movement thereof is output as a motion vector. The motion compensation unit obtains a prediction macro block corresponding to the obtained motion vector from the reference frame.

또 다른 예로, 예측부(110)는 현재 프레임의 현재 매크로 블록을 영상 내에서 현재 매크로 블록의 주변 매크로 블록을 이용하여 예측하는 인트라 예측부로, 하나 이상의 주변 매크로 블록의 하나 이상의 화소값(Pixel Value)을 이용하여 현재 매크로 블록의 각 화소의 예측 화소값(Predicted Pixel Value)을 계산함으로써 예측 매크로 블록을 예측한다. 여기서, 주변 매크로 블록은 현재 매크로 블록 이전에 압축되고 현재 매크로 블록의 주변에 위치한 하나 이상의 주변 매크로 블록일 수 있다.As another example, the predictor 110 is an intra predictor that predicts a current macroblock of a current frame using a neighboring macroblock of a current macroblock in an image, and at least one pixel value of at least one neighboring macroblock. The predicted macroblock is predicted by calculating a predicted pixel value of each pixel of the current macroblock using. Here, the peripheral macroblock may be one or more peripheral macroblocks that are compressed before the current macroblock and located around the current macroblock.

감산부(120)는 현재 블록에서 예측 블록을 감산하여 잔차 블록(Residual Block)을 생성한다. 즉, 감산부(120)는 현재 블록의 각 화소의 원 화소값(Original Pixel Value)과 예측 블록의 각 화소의 예측 화소값의 차이값을 계산하여 잔차 신호(Residual Signal)를 갖는 잔차 블록을 생성한다.The subtractor 120 subtracts the prediction block from the current block to generate a residual block. That is, the subtractor 120 generates a residual block having a residual signal by calculating a difference value between an original pixel value of each pixel of the current block and a predicted pixel value of each pixel of the prediction block. do.

변환부(130)는 잔차 블록을 주파수 영역으로 변환(Transform)한다. 즉, 변환부(130)는 잔차 블록을 주파수 영역(Frequency Domain)으로 변환하여 주파수 계수(Frequency Coefficient)를 갖는 잔차 블록을 생성한다. 여기서, 변환부(130)는 잔차 블록을 변환하는 데 있어서, 하다마드 변환(Hadamard Transform), 이산 코사 인 변환 기반 변환(Discrete Cosine Transform Based Transform) 등과 같은 시간축의 화상 신호를 주파수축으로 변환하는 다양한 변환 기법을 이용하여 잔차 신호를 주파수 영역으로 변환할 수 있는데, 주파수 영역으로 변환된 잔차 신호가 주파수 계수가 된다.The transformer 130 transforms the residual block into the frequency domain. That is, the transformer 130 converts the residual block into a frequency domain to generate a residual block having a frequency coefficient. Here, the transform unit 130 transforms the residual block, and converts various image signals of a time axis into a frequency axis such as a Hadamard transform, a discrete cosine transform based transform, or the like. The residual signal may be converted into the frequency domain using a conversion technique, and the residual signal converted into the frequency domain becomes a frequency coefficient.

양자화부(140)는 변환부(130)에서 변환된 잔차 블록을 양자화(Quantization)한다. 즉, 양자화부(140)는 잔차 블록의 주파수 계수를 양자화하여 양자화 주파수 계수를 생성한다. 여기서, 양자화부(140)는 잔차 블록의 주파수 계수를 양자화하는 데 있어서, 데드존 균일 경계 양자화(DZUTQ: Dead Zone Uniform Threshold Quantization), 양자화 가중치 매트릭스(Quantization Weighted Matrix)를 이용하거나 그를 계량한 양자화 방법 등을 이용할 수 있다.The quantizer 140 quantizes the residual block transformed by the transformer 130. That is, the quantization unit 140 quantizes the frequency coefficients of the residual block to generate quantization frequency coefficients. Here, the quantization unit 140 uses Dead Zone Uniform Threshold Quantization (DZUTQ), Quantization Weighted Matrix, or the quantization method to quantize the frequency coefficient of the residual block. Etc. can be used.

부호화부(150)는 양자화부(140)에 의해 양자화된 잔차 블록의 주파수 계수들을 부호화하여 비트스트림을 생성한다. 또한, 부호화부(150)는 예측부(110)로부터 움직임 벡터 및 회전 정보가 전달되면, 잔차 블록의 양자화된 주파수 계수와 함께 부호화하여 비트스트림을 출력할 수 있다. 이러한 부호화 기술로서는 엔트로피 부호화(Entropy Encoding) 기술이 사용될 수 있으나, 반드시 이에 한정하지 않고 다른 다양한 부호화 기술이 사용될 수도 있을 것이다.The encoder 150 generates a bitstream by encoding the frequency coefficients of the residual block quantized by the quantizer 140. In addition, when the motion vector and the rotation information are transmitted from the predictor 110, the encoder 150 may output the bitstream by encoding the quantized frequency coefficients of the residual block. As the encoding technique, an entropy encoding technique may be used, but various encoding techniques may be used without being limited thereto.

역양자화부(160)는 양자화부(130)에 의해 양자화된 잔차 블록을 역 양자화(Inverse Quantization)한다. 즉, 역 양자화부(160)는 양자화된 잔차 블록의 양자화 주파수 계수를 역 양자화하여 주파수 계수를 생성한다.The inverse quantization unit 160 inverse quantizes the residual block quantized by the quantization unit 130. That is, the inverse quantizer 160 inversely quantizes the quantized frequency coefficients of the quantized residual block to generate frequency coefficients.

역변환부(170)는 역 양자화부(160)에 의해 역 양자화된 잔차 블록을 역 변 환(Inverse Transform)한다. 즉, 역변환부(170)는 역 양자화된 잔차 블록의 주파수 계수를 역 변환하여 시간축상의 화소 신호를 갖는 잔차 블록을 복원한다.The inverse transform unit 170 inverse transforms the residual block inversely quantized by the inverse quantization unit 160. That is, the inverse transform unit 170 inversely transforms the frequency coefficients of the inverse quantized residual block to restore the residual block having the pixel signal on the time axis.

가산부(180)는 역 변환부(170)에 의해 역 변환된 잔차 블록에 예측부(110)에서 예측한 예측 블록을 가산하여 현재 블록을 복원한다.The adder 180 reconstructs the current block by adding the prediction block predicted by the predictor 110 to the residual block inversely transformed by the inverse transformer 170.

디블로킹 필터부(190)는 가산부(180)에 의해 복원된 현재 블록을 디블로킹 필터링(Deblcking Filtering)한다. 여기서, 디블로킹 필터링이란 영상을 블록 단위로 부호화하면서 발생하는 블록 왜곡을 감소시키는 작업을 말하며, 블록 경계와 매크로블록 경계에 디블로킹 필터를 적용하거나 매크로블록 경계에만 디블로킹 필터를 적용하거나 디블로킹 필터를 사용하지 않는 방법 중 하나를 선택적으로 사용할 수 있다. 이와 같이, 가산부(180)에 의해 복원되고 디블로킹 필터부(190)에 의해 디블로킹 필터링된 현재 블록은 예측부(110)에 입력되어 다음 픽처를 예측할 때 사용되는 참조 픽처로서 저장될 수 있다. The deblocking filter 190 deblocks filtering the current block reconstructed by the adder 180. Here, the deblocking filtering refers to an operation of reducing block distortion generated by encoding an image in block units, and applying a deblocking filter to a block boundary and a macroblock boundary, or applying a deblocking filter only to a macroblock boundary or a deblocking filter. You can optionally use one of the methods that does not use. As such, the current block reconstructed by the adder 180 and deblocked filtered by the deblocking filter 190 may be input to the predictor 110 and stored as a reference picture used when predicting the next picture. .

본 발명의 제 1 실시예에 따른 디블록킹 필터부(190)는, 현재 블록을 디블로킹 필터링하되, 특히 현재 블록의 서브 블록의 경계의 각 화소에 대해 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하고, 서브 블록의 경계의 모든 화소에 대해 상기 선정된 다수의 최적 방향 중에서 최다 선정된 방향을 해당 서브 블록의 필터링 방향으로 결정하며, 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행한다. 이와 같은 제 1 실시예에 따른 디블록킹 필터부(190)에 대하여 도 2를 참조로 보다 상세히 설명한다.The deblocking filter 190 according to the first embodiment of the present invention deblocks and filters the current block, and in particular, corresponds to each of a plurality of preset directions for each pixel of the boundary of the subblock of the current block. The optimal direction is selected based on the amount of change in the pixel value between the pixels, and the most selected direction among the plurality of optimal directions selected for all the pixels on the boundary of the sub block is determined as the filtering direction of the corresponding sub block, and the sub block is determined. Selecting pixels to be filtered based on the determined filtering direction for each pixel at a boundary of and determining whether to filter the determined filtering direction according to a relationship between pixel values between the selected pixels, and determining whether to filter the determined filtering direction The filtering is performed on the selected pixels in the determined filtering direction. The deblocking filter 190 according to the first embodiment will be described in more detail with reference to FIG. 2.

본 발명의 제 2 실시예에 따른 디블록킹 필터부(190)는, 현재 블록을 디블로킹 필터링하되, 특히 현재 블록의 서브 블록의 경계의 첫 번째의 화소에 대해서는 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하고, 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서는 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 필터링 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하며, 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행한다. 이와 같은 제 2 실시예에 따른 디블록킹 필터부(190)에 대하여 도 3을 참조로 보다 상세히 설명한다.The deblocking filter 190 according to the second embodiment of the present invention deblocks and filters the current block, and in particular, the first pixel of the boundary of the sub-block of the current block in each of a plurality of preset directions. One direction is determined as the filtering direction based on the amount of change in the pixel value between the corresponding pixels, and the second or more selected pixel as the filtering direction is determined as the filtering direction for the second or more pixels on the boundary of the sub block. Alternatively, the filtering direction of the immediately preceding pixel may be determined as the filtering direction, or the filtering direction may be determined according to the filtering direction determination process of the first pixel, and the filtering direction may be filtered based on the determined filtering direction for each pixel of the boundary of the sub-block. Select pixels and compare the determined filtering direction according to the relationship of pixel values between the selected pixels. And determining whether to filter, and performs filtering on the selected pixel of the determined filtering direction, depending on whether the determined filter. The deblocking filter 190 according to the second embodiment will be described in more detail with reference to FIG. 3.

도 2는 본 발명의 제 1 실시예에 따른 디블록킹 필터링 장치의 블록도로서, 도 1의 제 1 실시예에 따른 디블록킹 필터부(190)에 대응하므로 동일 부호를 부가하여 설명한다.FIG. 2 is a block diagram of a deblocking filtering device according to a first embodiment of the present invention, and corresponds to the deblocking filter unit 190 according to the first embodiment of FIG.

도 2에 도시된 바와 같이, 본 발명의 제 1 실시예에 따른 디블록킹 필터링 장치(190)는 경계 세기 결정부(210), 필터링 방향 결정부(230), 및 필터링부(250)를 포함한다.As shown in FIG. 2, the deblocking filtering device 190 according to the first embodiment of the present invention includes a boundary strength determiner 210, a filtering direction determiner 230, and a filter 250. .

경계 세기 결정부(210)는 현재 블록의 서브 블록간의 경계의 세기를 결정하는 것으로서, 현재 위치의 블록 경계에서 화소들이 속하는 블록의 특성에 따라 경계 세기(Boundary Strength: BS)를 결정한다. BS는 0과 4사이의 값을 갖고 결정하는 방법은 예를 들어 H.264/AVC 표준화 문서에 명시되어 있다. 즉, 경계 세기 결정부(210)는 각 블록의 경계면의 BS 값을 결정하고 각각의 BS 값에 따라서 어느 정도의 강도로 필터링을 적용할 것인지를 결정한다. BS는 현재 필터링 하고자 하는 경계가 속해 있는 블록이 화면내 예측(Intra Prediction) 부호화 사용 여부에 따라서, 또는 화면간 예측(Inter Prediction) 부호화를 사용할 경우 움직임 보상을 위한 참조 블록의 거리 차에 따라서 0과 4사이의 값으로 결정된다.The boundary strength determiner 210 determines the strength of the boundary between sub-blocks of the current block, and determines the boundary strength (BS) according to the characteristics of the block to which pixels belong to the block boundary of the current position. The BS has a value between 0 and 4 and the method of determining is specified in the H.264 / AVC standardization document, for example. That is, the boundary strength determining unit 210 determines the BS value of the boundary surface of each block and determines how much strength to apply filtering according to each BS value. The BS determines whether 0 and 0 depend on the distance between the reference block for motion compensation when the block to which the boundary to be filtered currently belongs uses intra prediction encoding or when using inter prediction encoding. It is determined by a value between four.

필터링 방향 결정부(230)는, 도 4에 도시된 바와 같이 1-16번의 4x4 서브 블록이 16개 모여 구성된 16x16의 매크로 블록에서 교번하는 1, 3, 6, 8, 9, 11, 14 및 16번의 서브 블록에 대하여 디블록킹 필터링을 적용하도록 하고, 디블록킹 필터링을 위한 해당 서브 블록의 경계(도 5 및 도 6의 ①②③④)의 각 화소(의 경계)(도 6의 1-16)에 대해 블록 경계를 기준으로 기 설정된 복수의 방향(도 7 참조) 중 각 방향에 대응하는 화소들(도 8 내지 도 16 참조)간의 화소값의 변화량에 근거하여 하나의 최적 방향을 선정하고, 그 서브 블록의 경계의 모든 화소(의 경계)에 대해 상기 선정된 다수의 최적 방향 중에서 최다 선정된 방향을 그 서브 블록의 필터링 방향으로 결정한다. 즉, 필터링 방향 결정부(230)는 도 7에 도시된 바와 같이 수평 또는 수직 경계면에 대하여 예를 들어 45도, 56.25도, 67.5도, 78.75도, 90도, 101.25도, 112.5도, 123.75도 및 135도의 9가지 방향으로 필터링할 방향을 기 설정하고, 도 5 내지 도 13에 도시된 바와 같이 9가지의 각 방향에 대응하는 화소들을 선택하고, 그 각 방향에 대응하는 화소들간의 화소값의 변화량을 구하고, 변화량이 가장 작은 방향을 최적 방향으로 선정하고, 이와 같이 서브 블록의 경계의 각 화소(의 경계) 마다 최적 방향을 선정한 후, 서브 블록의 경계의 모든 화소(의 경계)에 대해 선정된 다수의 최적 방향 중에서 최다 선정된 방향을 해당 서브 블록의 필터링 방향으로 결정한다. 필터링 방향 결정부(230)는, 일 예로 위와 같이 결정된 필터링 방향을 해당 서브 블록에 대한 부가 정보로 기록하거나, 다른 예로 해당 서브 블록의 경계의 화소 중 위와 같이 결정된 필터링 방향으로 필터링된 하나의 화소에 대해 1 비트의 부가 정보를 할당하여 기록할 수 있다. 이러한 부가 정보는 후술하는 복호화 장치에 제공되어 이용토록 한다.As illustrated in FIG. 4, the filtering direction determiner 230 alternates 1, 3, 6, 8, 9, 11, 14, and 16 of 16x16 macroblocks in which 16 4x4 subblocks of 16 to 16 are collected. Deblocking filtering is applied to the first subblock, and a block is applied to each pixel (boundary) (1-16 in Fig. 6) of the boundary of the corresponding subblock (①②③④ in Figs. 5 and 6) for the deblocking filtering. One optimal direction is selected based on the amount of change in the pixel value among the pixels corresponding to each direction among the preset directions (see FIG. 7) based on the boundary, and the subblock The most selected direction among the plurality of selected optimal directions for all the pixels (boundary) of the boundary is determined as the filtering direction of the sub-block. That is, the filtering direction determiner 230 may be, for example, 45 degrees, 56.25 degrees, 67.5 degrees, 78.75 degrees, 90 degrees, 101.25 degrees, 112.5 degrees, 123.75 degrees, and the like with respect to a horizontal or vertical boundary as shown in FIG. 7. A direction to filter in nine directions of 135 degrees is preset, and pixels corresponding to nine directions are selected as shown in FIGS. 5 to 13, and the amount of change in pixel values between the pixels corresponding to the respective directions is shown. Then, the direction with the smallest amount of change is selected as the optimum direction, and thus, the optimal direction is selected for each pixel (boundary) of the boundary of the subblock, and then selected for all pixels (boundary) of the boundary of the subblock. The most selected direction among the plurality of optimal directions is determined as the filtering direction of the corresponding subblock. For example, the filtering direction determiner 230 records the filtering direction determined as described above as additional information about the corresponding subblock, or as another example, to one pixel filtered in the filtering direction determined as above among the pixels on the boundary of the corresponding subblock. 1 bit of additional information can be allocated and recorded. This additional information is provided to a decoding apparatus to be described later for use.

필터링 방향 결정부(230)는, 일 예로 도 9를 참조하면, 해당 경계를 기준으로 마주하는 첫 번째 화소들(p04, q03)간의 화소값 차이(p04-q03)의 절대값, 상기 해당 경계를 기준으로 일 측의 두 번째 화소(p14)와 첫 번째 화소(p04)간의 화소값 차이(p14-p04)의 절대값, 상기 해당 경계를 기준으로 타 측의 두 번째 화소(q13)와 첫 번째 화소(q03)간의 화소값 차이(q13-q03)의 절대값, 상기 해당 경계를 기준으로 일 측의 세 번째 화소(p24)와 두 번째 화소(p14)간의 화소값 차이(p24-p14)의 절대값, 및 상기 해당 경계를 기준으로 타 측의 세 번째 화소(q23)와 두 번째 화소(q13)간의 화소값 차이(q23-q13)의 절대값에 근거하여 상기 변화량을 산출할 수 있다. 이와 같이 변화량을 산출하는 방법에 대한 구체적인 예시는 후술하도록 한다.For example, referring to FIG. 9, the filtering direction determiner 230 determines an absolute value of the pixel value difference p04-q03 between the first pixels p04 and q03 facing the boundary, and the corresponding boundary. Absolute value of the pixel value difference (p14-p04) between the second pixel p14 and the first pixel p04 on one side as a reference, and the second pixel q13 and the first pixel on the other side based on the corresponding boundary. Absolute value of pixel value difference q13-q03 between (q03), and absolute value of pixel value difference p24-p14 between the third pixel p24 and the second pixel p14 on one side based on the corresponding boundary. The change amount may be calculated based on the absolute value of the pixel value difference q23-q13 between the third pixel q23 and the second pixel q13 on the other side based on the corresponding boundary. A specific example of how to calculate the amount of change in this way will be described later.

필터링부(250)는 서브 블록의 경계의 각 화소(의 경계)에 대해 필터링 방향 결정부(230)에 의해 결정된 필터링 방향에 근거하여 도 8 내지 도 16과 같이 필터링할 화소들을 선택하고, 그 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 그 결정된 필터링 여부에 따라 상기 결정된 필터링 방향에 대응하여 도 8 내지 도 16과 같이 선택된 화소들에 대해 필터링을 수행한다. The filtering unit 250 selects the pixels to be filtered as shown in FIGS. 8 to 16 based on the filtering direction determined by the filtering direction determiner 230 for each pixel (the boundary) of the boundary of the sub-block. According to the relationship between the pixel values between the pixels to determine whether or not to filter the determined filtering direction, the filtering is performed on the pixels selected as shown in Figures 8 to 16 corresponding to the determined filtering direction according to the determined filtering. .

필터링부(250)는, 일 예로 필터링 방향 결정부(230)에 의해 결정된 필터링 방향이 도 9의 78.75도일 경우, 도 9의 78.75도의 필터링 방향에 따라 선택된 화소들간의 화소값의 관계가, 해당 경계를 기준으로 마주하는 첫 번째 화소들(p04,q03)간의 화소값 차이(p04-q03)의 절대값, 상기 해당 경계를 기준으로 일 측의 두 번째 화소(p14)와 첫 번째 화소(p04)간의 화소값 차이(p14-p04)의 절대값, 및 상기 경계를 기준으로 타 측의 두 번째 화소(q13)와 첫 번째 화소(q03)간의 화소값 차이(q13-q03)의 절대값이 각각 기 설정된 문턱치들(α,β)보다 작은 조건을 만족하면, 필터링 결정부(230)에 의해 결정된 도 9의 78.75도의 필터링 방향으로 필터링하고, 도 9의 78.75도의 필터링 방향에 따라 선택된 화소들간의 화소값의 관계가 상기 조건을 만족하지 못하면, 상기 해당 경계의 수직 방향에 대해 상기 조건을 만족하는지의 여부를 확인하고, 그 확인 결과에 따라 수직 방향에 대해 필터링을 수행할 수 있다. 이와 같은 필터링 여부 결정 조건에 대한 구체적인 예시는 후술하도 록 한다.For example, when the filtering direction determined by the filtering direction determiner 230 is 78.75 degrees of FIG. 9, the filtering unit 250 may have a relationship between pixel values between pixels selected according to the filtering direction of 78.75 degrees of FIG. 9. Absolute value of the pixel value difference (p04-q03) between the first pixels (p04, q03) facing each other, and between the second pixel (p14) and the first pixel (p04) on one side based on the corresponding boundary. The absolute value of the pixel value difference (p14-p04) and the absolute value of the pixel value difference (q13-q03) between the second pixel q13 and the first pixel q03 on the other side are preset based on the boundary. When the condition smaller than the thresholds α and β is satisfied, the filtering is performed in the filtering direction of 78.75 of FIG. 9 determined by the filtering determining unit 230, and the pixel value between the pixels selected according to the filtering direction of 78.75 of FIG. 9 is determined. If the relationship does not satisfy the above conditions, then the Determine to whether or not the condition is satisfied, and it is possible to perform filtering in the vertical direction in accordance with the check result. Specific examples of such filtering or not determination conditions will be described later.

도 3은 본 발명의 제 2 실시예에 따른 디블록킹 필터링 장치의 블록도로서, 도 1의 제 2 실시예에 따른 디블록킹 필터부(190)에 대응하므로 동일 부호를 부가하여 설명한다.3 is a block diagram of a deblocking filtering device according to a second embodiment of the present invention, and corresponds to the deblocking filter unit 190 according to the second embodiment of FIG.

도 3에 도시된 바와 같이, 본 발명의 제 2 실시예에 따른 디블록킹 필터링 장치(190)는 경계 세기 결정부(310), 필터링 방향 결정부(330), 및 필터링부(350)를 포함한다.As shown in FIG. 3, the deblocking filtering device 190 according to the second embodiment of the present invention includes a boundary strength determiner 310, a filtering direction determiner 330, and a filter 350. .

경계 세기 결정부(310)는 현재 블록의 서브 블록간의 경계의 세기를 결정하는 것으로서, 현재 위치의 블록 경계에서 화소들이 속하는 블록의 특성에 따라 경계 세기(Boundary Strength: BS)를 결정한다. BS는 0과 4사이의 값을 갖고 결정하는 방법은 예를 들어 H.264/AVC 표준화 문서에 명시되어 있다. 즉, 경계 세기 결정부(310)는 각 블록의 경계면의 BS 값을 결정하고 각각의 BS 값에 따라서 어느 정도의 강도로 필터링을 적용할 것인지를 결정한다. BS는 현재 필터링 하고자 하는 경계가 속해 있는 블록이 화면내 예측(Intra Prediction) 부호화 사용 여부에 따라서, 또는 화면간 예측(Inter Prediction) 부호화를 사용할 경우 움직임 보상을 위한 참조 블록의 거리 차에 따라서 0과 4사이의 값으로 결정된다.The boundary strength determiner 310 determines the strength of the boundary between sub-blocks of the current block, and determines the boundary strength (BS) according to the characteristics of the block to which pixels belong to the block boundary of the current position. The BS has a value between 0 and 4 and the method of determining is specified in the H.264 / AVC standardization document, for example. That is, the boundary strength determining unit 310 determines the BS value of the boundary surface of each block and determines how much strength to apply filtering according to each BS value. The BS determines whether 0 and 0 depend on the distance between the reference block for motion compensation when the block to which the boundary to be filtered currently belongs uses intra prediction encoding or when using inter prediction encoding. It is determined by a value between four.

필터링 방향 결정부(330)는, 도 4에 도시된 바와 같이 1-16번의 4x4 서브 블록이 16개 모여 구성된 16x16 매크로 블록에서 교번하는 1, 3, 6, 8, 9, 11, 14 및 16번의 서브 블록에 대하여 디블록킹 필터링을 적용하도록 하고, 디블록킹 필터링을 위한 서브 블록의 경계(도 5 및 도 6의 ①②③④)의 첫 번째의 화소(의 경 계)(도 6의 1)에 대해서는 기 설정된 복수의 방향(도 7 참조) 중 각 방향에 대응하는 화소들(도 8 내지 도 16 참조)간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하고, 해당 서브 블록의 경계의 두 번째 이상의 화소(의 경계)(도 6의 2-16)에 대해서는 해당 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 필터링 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하도록 할 수 있다.As illustrated in FIG. 4, the filtering direction determiner 330 includes 1, 3, 6, 8, 9, 11, 14, and 16 that are alternately arranged in a 16x16 macroblock including 16 16x4x4 subblocks. Deblocking filtering is applied to the subblock, and the first pixel (boundary) of the boundary of the subblock for deblocking filtering (①②③④ of FIGS. 5 and 6) (1 in FIG. 6) is set in advance. Based on the amount of change in the pixel value among the pixels corresponding to each direction among the plurality of directions (see FIG. 7), one direction is determined as the filtering direction, and the second of the boundary of the corresponding sub block is determined. For the above pixels (boundary) (2-16 in FIG. 6), the direction most selected so far for the corresponding subblock is determined as the filtering direction, the filtering direction of the immediately preceding pixel is determined as the filtering direction, or the first pixel Process for determining the filtering direction Depending on the filtering direction can be determined.

필터링 방향 결정부(330)는, 일 예로 도 9를 참조하면, 해당 경계를 기준으로 마주하는 첫 번째 화소들(p04, q03)간의 화소값 차이(p04-q03)의 절대값, 상기 해당 경계를 기준으로 일 측의 두 번째 화소(p14)와 첫 번째 화소(p04)간의 화소값 차이(p14-p04)의 절대값, 상기 해당 경계를 기준으로 타 측의 두 번째 화소(q13)와 첫 번째 화소(q03)간의 화소값 차이(q13-q03)의 절대값, 상기 해당 경계를 기준으로 일 측의 세 번째 화소(p24)와 두 번째 화소(p14)간의 화소값 차이(p24-p14)의 절대값, 및 상기 해당 경계를 기준으로 타 측의 세 번째 화소(q23)와 두 번째 화소(q13)간의 화소값 차이(q23-q13)의 절대값에 근거하여 상기 변화량을 산출하고, 산출된 변화량이 가장 작은 방향을 필티링 방향으로 결정하도록 할 수 있다. 이와 같은 변화량을 산출하는 방법에 대한 구체적인 예시는 후술하도록 한다.For example, referring to FIG. 9, the filtering direction determiner 330 may determine an absolute value of the pixel value difference p04-q03 between the first pixels p04 and q03 facing the boundary, and determine the corresponding boundary. Absolute value of the pixel value difference (p14-p04) between the second pixel p14 and the first pixel p04 on one side as a reference, and the second pixel q13 and the first pixel on the other side based on the corresponding boundary. Absolute value of pixel value difference q13-q03 between (q03), and absolute value of pixel value difference p24-p14 between the third pixel p24 and the second pixel p14 on one side based on the corresponding boundary. And calculating the change amount based on the absolute value of the pixel value difference q23-q13 between the third pixel q23 and the second pixel q13 on the other side with respect to the corresponding boundary, and the calculated amount of change The small direction may be determined as the fill tiling direction. Specific examples of the method of calculating such a change amount will be described later.

필터링부(350)는 해당 서브 블록의 경계의 각 화소(의 경계)에 대해 필터링 방향 결정부(330)에 의해 결정된 필터링 방향에 근거하여 도 8 내지 도 16과 같이 필터링할 화소들을 선택하고, 그 선택된 화소들간의 화소값의 관계에 따라 상기 결 정된 필터링 방향에 대한 필터링 여부를 결정하며, 그 결정된 필터링 여부에 따라 상기 결정된 필터링 방향에 대응하여 도 8 내지 도 16과 같이 선택된 화소들에 대해 필터링을 수행한다. The filtering unit 350 selects pixels to be filtered as shown in FIGS. 8 to 16 based on the filtering direction determined by the filtering direction determiner 330 for each pixel (boundary) of the boundary of the corresponding subblock. Determine whether to filter the determined filtering direction according to the relationship between pixel values between the selected pixels, and filter the selected pixels as shown in FIGS. 8 to 16 corresponding to the determined filtering direction according to the determined filtering. To perform.

필터링부(350)는, 일 예로 필터링 방향 결정부(330)에 의해 결정된 필터링 방향이 도 9의 78.75도일 경우, 도 9의 78.75도의 필터링 방향에 따라 선택된 화소들간의 화소값의 관계가, 해당 경계를 기준으로 마주하는 첫 번째 화소들(p04,q03)간의 화소값 차이(p04-q03)의 절대값, 상기 해당 경계를 기준으로 일 측의 두 번째 화소(p14)와 첫 번째 화소(p04)간의 화소값 차이(p14-p04)의 절대값, 및 상기 경계를 기준으로 타 측의 두 번째 화소(q13)와 첫 번째 화소(q03)간의 화소값 차이(q13-q03)의 절대값이 각각 기 설정된 문턱치들(α,β)보다 작은 조건을 만족하면, 필터링 결정부(230)에 의해 결정된 도 9의 78.75도의 필터링 방향으로 필터링한다. 이와 같은 필터링 여부 결정 조건에 대한 구체적인 예시는 후술하도록 한다.For example, when the filtering direction determined by the filtering direction determiner 330 is 78.75 degrees in FIG. 9, the filtering unit 350 may have a relationship between pixel values between pixels selected according to the filtering direction of 78.75 degrees in FIG. 9. Absolute value of the pixel value difference (p04-q03) between the first pixels (p04, q03) facing each other, and between the second pixel (p14) and the first pixel (p04) on one side based on the corresponding boundary. The absolute value of the pixel value difference (p14-p04) and the absolute value of the pixel value difference (q13-q03) between the second pixel q13 and the first pixel q03 on the other side are preset based on the boundary. If the condition smaller than the thresholds α and β is satisfied, the filtering is performed in the filtering direction of 78.75 of FIG. 9 determined by the filtering determining unit 230. A specific example of such a filtering or not determination condition will be described later.

도 17은 본 발명의 일 실시예에 따른 동영상 복호화 장치의 블록도이다.17 is a block diagram of a video decoding apparatus according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 동영상 복호화 장치(1700)는 복호화부(1710), 역양자화부(1720), 역변환부(1730), 예측부(1740), 가산부(1750) 및 디블로킹 필터부(1760)를 포함하여 구성될 수 있다.The video decoding apparatus 1700 according to an embodiment of the present invention includes a decoder 1710, an inverse quantizer 1720, an inverse transform unit 1730, a predictor 1740, an adder 1750, and a deblocking filter unit. 1760.

이러한 동영상 복호화 장치(1700)는 개인용 컴퓨터(PC: Personal Computer), 노트북 컴퓨터, 개인 휴대 단말기(PDA: Personal Digital Assistant), 휴대형 멀티미디어 플레이어(PMP: Portable Multimedia Player), 플레이스테이션 포터블(PSP: PlayStation Portable), 이동통신 단말기(Mobile Communication Terminal) 등일 수 있으며, 각종 기기 또는 유무선 통신망과 통신을 수행하기 위한 통신 모뎀 등의 통신 장치, 영상을 복호화하기 위한 각종 프로그램과 데이터를 저장하기 위한 메모리, 프로그램을 실행하여 연산 및 제어하기 위한 마이크로프로세서 등을 구비하는 다양한 장치를 의미한다.The video decoding apparatus 1700 may be a personal computer (PC), a notebook computer, a personal digital assistant (PDA), a portable multimedia player (PMP), or a PlayStation Portable (PSP). ), A communication device such as a communication modem for communicating with various devices or a wired / wireless communication network, a memory for storing various programs and data for decoding an image, and executing a program. Means a variety of devices including a microprocessor for operation and control.

복호화부(1710)는 비트스트림을 복호화하여 잔차 블록을 추출한다. 즉, 복호화부(1710)는 영상 부호화 장치(100)에 의해 부호화된 영상인 비트스트림을 복호화하여 영상의 현재 블록에 대한 화소 정보를 포함하고 있는 잔차 블록과 움직임 벡터 및 회전 정보를 추출한다.The decoder 1710 extracts a residual block by decoding the bitstream. That is, the decoder 1710 decodes a bitstream, which is an image encoded by the image encoding apparatus 100, to extract a residual block, motion vector, and rotation information including pixel information of a current block of the image.

역양자화부(1720)는 복호화부(1710)에 의해 추출된 잔차 블록을 역 양자화하고, 역변환부(1730)는 역 양자화된 잔차 블록을 역 변환한다. 여기서, 역 양자화와 역 변환은 각각 도 1을 통해 전술한 역 양자화와 역 변환과 같은 방식으로 역 양자와 역 변환될 수 있다.The inverse quantizer 1720 inversely quantizes the residual block extracted by the decoder 1710, and the inverse transformer 1730 inversely transforms the inverse quantized residual block. Here, the inverse quantization and the inverse transform may be inversely transformed with the inverse quantization in the same manner as the inverse quantization and inverse transformation described above with reference to FIG. 1.

예측부(1740)는 복호화부(1710)에서 추출한 움직임 벡터 및 회전 정보를 이용하여 영상의 현재 블록의 회전 움직임을 포함하는 움직임을 보상함으로써 현재 블록을 예측하여 예측 블록을 생성한다.The prediction unit 1740 generates a prediction block by predicting the current block by compensating for the motion including the rotation motion of the current block of the image by using the motion vector and the rotation information extracted by the decoder 1710.

가산부(1750)는 역변환부(1730)에서 역 변환된 잔차 블록에 예측부(1740)에 의해 예측된 예측 블록을 가산하여 현재 블록을 복원한다.The adder 1750 reconstructs the current block by adding the predicted block predicted by the predictor 1740 to the residual block inversely transformed by the inverse transformer 1730.

디블로킹 필터부(1760)는 가산부(1750) 의해 복원된 현재 블록을 디블로킹 필터링한다.The deblocking filter unit 1760 deblocks the current block reconstructed by the adder 1750.

본 발명의 제 1 실시예에 따른 디블록킹 필터부(1760)는, 현재 블록을 디블 로킹 필터링하되, 특히 현재 블록의 서브 블록의 경계의 모든 화소 중에서 도 1과 같은 복호화 장치(100)로부터 수신된 부가 정보에 대응하는 특정 화소에 대해, 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하고, 그 선정된 최적 방향을 해당 서브 블록의 필터링 방향으로 결정하며, 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행한다. 이와 같이 제 1 실시예에 따른 디블록킹 필터부(1760)는 도 1의 제 1 실시예에 따른 디블록킹 필터부(190) 즉, 도 2의 제 1 실시예에 따른 디블록킹 필터링 장치(190)와 비교하여, 서브 블록 경계의 모든 화소에 대해 최적 방향을 선정하지 않고 도 1의 부호화 장치(100)로부터 전달된 부가 정보에 대응하는 하나의 화소에 대해서만 최적 방향을 선정하는 점만 다르고, 다른 기능은 모두 동일하게 구성할 수 있다.The deblocking filter 1760 according to the first embodiment of the present invention deblocks and filters the current block, and in particular, is received from the decoding apparatus 100 as shown in FIG. 1 among all pixels on the boundary of the subblock of the current block. For a specific pixel corresponding to the additional information, an optimal direction is selected based on the amount of change in the pixel value between the pixels corresponding to each direction among a plurality of preset directions, and the selected optimal direction is used as the filtering direction of the corresponding subblock. And selecting pixels to filter based on the determined filtering direction for each pixel of a boundary of a sub-block, and determining whether to filter the determined filtering direction according to a relationship of pixel values between the selected pixels. The filtering is performed on the selected pixels in the determined filtering direction according to the determined filtering. As described above, the deblocking filter unit 1760 according to the first embodiment may include the deblocking filter unit 190 according to the first embodiment of FIG. 1, that is, the deblocking filtering unit 190 according to the first embodiment of FIG. 2. Compared with the above, only the optimal direction is selected for one pixel corresponding to the additional information transmitted from the encoding apparatus 100 of FIG. 1 without selecting the optimal direction for all pixels of the sub-block boundary, and the other functions are different. All can be configured identically.

본 발명의 제 2 실시예에 따른 디블록킹 필터부(1760)는, 현재 블록을 디블로킹 필터링하되, 특히 현재 블록의 서브 블록의 경계의 각 화소에 대해, 해당 서브 블록의 부가 정보로서 수신된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 수신된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 수신된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행한다. 이와 같이 제 2 실시예 에 따른 디블록킹 필터부(1760)는 도 1의 제 1 실시예에 따른 디블록킹 필터부(190) 즉, 도 2의 제 1 실시예에 따른 디블록킹 필터링 장치(190)와 비교하여, 해당 서브 블록에 대하여 필터링 방향을 결정하는 과정을 생략하고 도 1의 부호화 장치(100)로부터 전달된 부가 정보로서의 필터링 방향을 그대로 사용한다는 점만 다르고, 다른 기능은 모두 동일하게 구성할 수 있다.The deblocking filter unit 1760 according to the second embodiment of the present invention performs deblocking filtering on the current block, in particular, for each pixel of the boundary of the subblock of the current block, as the additional information of the corresponding subblock. Selecting pixels to filter based on a direction, determining whether to filter the received filtering direction according to a relationship between pixel values between the selected pixels, and selecting the selected pixel of the received filtering direction according to the determined filtering Filter on them. As described above, the deblocking filter unit 1760 according to the second embodiment may include the deblocking filter unit 190 according to the first embodiment of FIG. 1, that is, the deblocking filtering unit 190 according to the first embodiment of FIG. 2. Compared to the above, the process of determining the filtering direction for the corresponding sub-block is omitted and the filtering direction as additional information transmitted from the encoding apparatus 100 of FIG. 1 is used as it is, and all other functions may be configured in the same manner. have.

본 발명의 제 3 실시예에 따른 디블록킹 필터부(1760)는, 현재 블록을 디블로킹 필터링하되, 특히 현재 블록의 서브 블록의 경계의 첫 번째의 화소에 대해서는 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하고, 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서는 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 필터링 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하며, 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행한다. 이와 같이 제 4 실시예에 따른 디블록킹 필터부(1740)는 도 1의 부호화 장치(100)의 제 2 실시예에 따른 디블록킹 필터부(190) 즉, 도 3의 제 2 실시예에 따른 디브록킹 필터링 장치(190)와 동일하게 구성할 수 있다.The deblocking filter unit 1760 according to the third embodiment of the present invention deblocks and filters the current block. In particular, the deblocking filter unit 1760 performs deblocking filtering on the current block. One direction is determined as the filtering direction based on the amount of change in the pixel value between the corresponding pixels, and the second or more selected pixel as the filtering direction is determined as the filtering direction for the second or more pixels on the boundary of the sub block. Alternatively, the filtering direction of the immediately preceding pixel may be determined as the filtering direction, or the filtering direction may be determined according to the filtering direction determination process of the first pixel, and the filtering direction may be filtered based on the determined filtering direction for each pixel of the boundary of the sub-block. Select pixels and compare the determined filtering direction according to the relationship of pixel values between the selected pixels. And determining whether to filter, and performs filtering on the selected pixel of the determined filtering direction, depending on whether the determined filter. As described above, the deblocking filter unit 1740 according to the fourth embodiment includes the deblocking filter unit 190 according to the second embodiment of the encoding apparatus 100 of FIG. 1, that is, the deblocking filter unit 1740 according to the second embodiment of FIG. 3. It may be configured in the same manner as the blocking filtering device 190.

가산부(1750)에 의해 복원된 현재 블록은 픽처 단위로 결합되어 복원 영상으 로 출력되고, 디블로킹 필터부(1760)에 의해 디블로킹 필터링된 현재 블록은 예측부(1740)에서 다음 픽처를 예측할 때 사용되는 참조 픽처로서 저장될 수 있다.The current block reconstructed by the adder 1750 is combined in a picture unit and output as a reconstructed image, and the current block deblocked and filtered by the deblocking filter 1760 may predict the next picture in the prediction unit 1740. It can be stored as a reference picture used when.

이어, 상술된 바와 같이 본 발명의 실시예에 따른 장치에 대한 동작 및 그 장치에 적용할 수 있는 디블록킹 방법에 대하여 설명한다.Next, the operation of the apparatus according to the embodiment of the present invention and the deblocking method applicable to the apparatus will be described as described above.

우선 H.264(“Advanced video coding for generic audiovisual services”, Draft, ITU-T Recommendation H.264, Mar, 2005, p.182~p.194)의 디블록킹 필터링 방법에 대해 간단히 설명한다.First, the deblocking filtering method of H.264 (“Advanced video coding for generic audiovisual services”, Draft, ITU-T Recommendation H.264, Mar, 2005, p. 182 ~ p. 194) is briefly described.

H.264의 디블록킹 필터링 방법은, 잔여 신호의 이산 여현 변환(DCT)과 양자화(Quantization) 단위인 4x4 블록의 경계 면을 기준으로 하여 도 18과 같이 수직방향으로 필터링을 취하고, 그 다음 도 19와 같이 수평 방향으로 필터링을 취한다.In the deblocking filtering method of H.264, filtering is performed in a vertical direction as shown in FIG. 18 based on the boundary surface of a discrete cosine transform (DCT) and a quantization unit of a 4x4 block, and then, FIG. 19. Filter in the horizontal direction as shown.

먼저 디블록킹 필터를 적용하기에 앞서 도 20과 같이 p0 ~ p3으로 구성된 블록과 q0 ~ q3으로 구성된 블록이 있을 때, 각 블록의 경계면에 대해 블록 경계 세기(Boundary Strength: BS) 값을 결정하고 각각의 블록 경계 세기 값에 따라서 어느 정도의 강도로 필터링을 적용할 것인지를 결정한다. 필터링 세기는 현재 필터링 하고자 하는 경계가 속해 있는 블록이 화면내 예측(Intra Prediction) 부호화 사용 여부에 따라서, 혹은 화면간 예측(Inter Prediction) 부호화를 사용할 경우 움직임 보상을 위한 참조 블록의 거리 차에 따라서 0과 4사이의 값으로 결정된다.First, before applying the deblocking filter, when there are blocks composed of p0 to p3 and blocks composed of q0 to q3 as shown in FIG. 20, a block boundary strength (BS) value is determined for the boundary of each block, respectively. The strength of the filter boundary is determined based on the block boundary strength value of the filter. The filtering strength is 0 depending on whether the block to which the boundary to be filtered currently belongs uses intra prediction encoding or when distance between the reference blocks for motion compensation is used when inter prediction encoding is used. It is determined by a value between and 4.

블록 경계 세기 값이 결정되면 각 블록의 경계 면의 화소들이 블록킹 아티팩트에 의해 왜곡된 경계 면인지, 실제 영상에 존재하는 에지인지 판별하여 필터링을 수행해야 할지를 결정하게 된다. H.264에서는 다음과 같은 [식 1]을 만족시키지 못 할 경우에는 실제 영상에 존재하는 에지라고 판별하여 필터링을 수행하지 않고, 조건식을 만족하는 경우에는 블로킹 아티팩트에 의해 왜곡된 경계 면이라고 판단하여 디블록킹 필터를 수행하게 된다.If the block boundary strength value is determined, it is determined whether the filtering should be performed by determining whether the pixels of the boundary surface of each block are the boundary surface distorted by the blocking artifact or the edge present in the actual image. In H.264, if it does not satisfy the following [Equation 1], it is determined that the edge exists in the real image, and filtering is not performed. If the condition is satisfied, it is determined that the boundary is distorted by blocking artifacts. Deblocking filter is performed.

[식 1][Equation 1]

Figure 112008074730036-PAT00001
Figure 112008074730036-PAT00001

Figure 112008074730036-PAT00002
;
Figure 112008074730036-PAT00003
;
Figure 112008074730036-PAT00004
Figure 112008074730036-PAT00002
;
Figure 112008074730036-PAT00003
;
Figure 112008074730036-PAT00004

여기서

Figure 112008074730036-PAT00005
,
Figure 112008074730036-PAT00006
는 양자화 파라미터(Quantization Parameter)에 따라 적응적으로 그 값이 결정되는 값으로써, 현재 경계 면이 블록킹 아티팩트로 발생한 화소 값의 차이인지, 실제 에지에 의한 것인지를 판별할 수 있는 문턱치(Threshold) 값을 의미한다. 양자화 정도가 큰 경우에는 블록킹 아티팩트의 정도가 더욱 크게 발생하므로 문턱치의 값이 크게 설정되는 구조로 되어 있다.here
Figure 112008074730036-PAT00005
,
Figure 112008074730036-PAT00006
Is a value that is adaptively determined according to a quantization parameter, and is a threshold value for determining whether a current boundary is a difference between pixel values caused by blocking artifacts or an actual edge. it means. If the degree of quantization is large, the degree of blocking artifacts is greater, and thus the threshold value is set large.

필터링의 수행 여부가 결정되면 상기의 블록 경계 강도 값에 따라서 저 대역 필터링을 사용하여 경계면 양단의 화소에 대하여 부드럽게 만들어준다. 필터링에 대한 연산 방법은 예를 들어 H.264(“Advanced video coding for generic audiovisual services”, Draft, ITU-T Recommendation H.264, Mar, 2005, p.182~p.194)에 명시된 방법을 사용할 수 있다.When it is determined whether filtering is performed or not, the low band filtering is used according to the block boundary strength value to smooth the pixels on both sides of the boundary surface. The calculation method for filtering can be used, for example, using the method specified in H.264 (“Advanced video coding for generic audiovisual services”, Draft, ITU-T Recommendation H.264, Mar, 2005, p. 182 to p.194). Can be.

상술한 바와 같이, H.264의 디블록킹 필터는 블록의 부호화 속성에 따라 필터 강도를 결정하고, 블록 경계 면에 [식 1]을 이용해 에지 존재 여부를 판별하여 에지 성분은 최대한 보존하면서 각 경계 면에 대하여 적응적으로 디블록킹 필터링 을 수행함으로써, 블록킹 아티팩트를 줄여준다. 하지만, 이와 같이 수평과 수직 방향으로만 디블록킹 필터링을 수행할 경우 대각선 방향의 불연속에 의해 발생하는 블록킹 아티팩트에 의한 왜곡은 보정할 수가 없다.As described above, the deblocking filter of H.264 determines the filter strength according to the coding property of the block, and determines whether the edge exists using [Equation 1] on the block boundary surface, while preserving the edge components as much as possible while maintaining the edge components. By adaptively performing deblocking filtering on, we reduce blocking artifacts. However, when the deblocking filtering is performed only in the horizontal and vertical directions as described above, the distortion due to blocking artifacts caused by the discontinuity in the diagonal direction cannot be corrected.

좀 더 자세히 살펴보면, 기존의 수평과 수직 방향으로만 디블록킹 필터를 수행하게 되면, 도 21의 (a)와 같이 블록 경계 면에 대각선 방향의 에지 성분이 존재할 경우에는 p0 ~ p3 화소와 q0 ~ q3 화소로 구성되는 경계 면에 대하여 [식 1]을 적용했을 때, 조건을 만족하지 못하여 에지라고 판별하고 디블록킹 필터링을 수행하지 않게 된다. 그러나, 만약 A 블록과 B 블록의 블록 경계 강도 값이 1 이상이라면 p0과 dq0이 같은 값을 갖는 화소임에도 불구하고 블록킹 아티팩트로 인하여 화소 값의 불연속이 사선 방향으로 발생하는 것을 관찰할 수 있다. 그러므로 사선 방향으로 발생하는 화소 간의 불연속으로 인한 블록킹 아티팩트를 해결하기 위해서는, 수직과 수평 방향뿐만 아니라 사선 방향으로 디블록킹 필터링을 적응적으로 수행해야 할 것이다. 좀 더 구체적으로는 도 21의 (b)와 같이 대각선 방향으로 경계 면에 저 대역 필터링을 취한다면 p0과 q0의 화소 값이 비슷하게 변하면서 부드러워져 블록 경계 면의 화소 값 불연속에 의한 왜곡을 해소할 수 있을 것이다.In more detail, when the deblocking filter is performed only in the existing horizontal and vertical directions, p0 to p3 pixels and q0 to q3 when diagonal edge components exist in the block boundary surface as shown in FIG. When [Equation 1] is applied to the boundary surface composed of pixels, the condition is not satisfied and the edge is not determined and the deblocking filtering is not performed. However, if the block boundary strength values of the A blocks and the B blocks are equal to or greater than 1, it can be observed that discontinuities of pixel values occur due to blocking artifacts even though p0 and dq0 have the same value. Therefore, in order to solve the blocking artifacts caused by the discontinuity between the pixels occurring in the diagonal direction, it is necessary to adaptively perform the deblocking filtering in the diagonal direction as well as the vertical and horizontal directions. More specifically, if low-band filtering is performed on the boundary surface in the diagonal direction as shown in (b) of FIG. 21, the pixel values of p0 and q0 are changed and smoothed to solve the distortion caused by the discontinuity of pixel values at the block boundary surface. Could be.

따라서, 본 발명의 실시예는 수직과 수평 방향뿐만 아니라 그 밖의 방향에 대해서도 디블록킹 필터를 수행할 수 있도록 한다.Accordingly, embodiments of the present invention allow the deblocking filter to be performed not only in the vertical and horizontal directions but also in other directions.

특히, 본 발명의 실시예는 화소 단위로 방향성을 갖는 디블록킹 필터를 수행할 때 많은 연산량이 발생하므로 보다 적은 연산량으로 다양한 에지 방향에 대하여 화소별로 디블록킹 필터링을 취할 수 있는 방법을 제공한다. In particular, an embodiment of the present invention provides a method for performing deblocking filtering on a pixel-by-pixel basis for various edge directions with a smaller amount of computation since a large amount of computation occurs when performing a deblocking filter having a directionality on a pixel basis.

도 2의 장치에 적용할 수 있는 본 발명의 제 1 실시예 따른 디블록킹 필터링 방법에 의하면, 부호기에서 각 화소 마다 에지 방향을 검사하여 디블록킹 필터링을 수행하고, 그 중에서 가장 많이 선택된 필터링 방향을 선정하고, 이에 대하여 매우 적은 부가 정보를 생성하여, 복호기에 전송하면 복호기는 이 정보를 이용하여 방향성을 갖는 디블록킹 필터링을 수행한다. 일반적으로 영상 내의 4x4 서브 블록에서는 에지의 방향이 대체적으로 일관적이기 때문에 모든 방향에 대하여 디블록킹 필터링을 수행하지 않고 1~2방향에 대해서만 수행하는 것은 타당하다고 할 수 있다. 이 방법은 부호화기의 연산량에 대해서는 변화가 없지만, 복호기에서는 연산량이 대폭 감소하는 이점이 있다. According to the deblocking filtering method according to the first embodiment of the present invention applicable to the apparatus of FIG. 2, the encoder performs the deblocking filtering by inspecting the edge direction for each pixel, and selects the filtering direction most selected therefrom. In addition, when very little additional information is generated and transmitted to the decoder, the decoder performs directional deblocking filtering using this information. In general, since 4x4 subblocks in an image have generally consistent edge directions, it is reasonable to perform only 1 or 2 directions without performing deblocking filtering on all directions. This method does not change the amount of computation of the encoder, but the advantage of the decoder is that the amount of computation is greatly reduced.

도 22는 본 발명의 제 1 실시예에 따른 디블록킹 필터링 방법의 흐름도로서, 도 2의 장치에 적용할 수 있으므로 그 장치의 동작과 함께 설명한다.FIG. 22 is a flowchart of a deblocking filtering method according to a first embodiment of the present invention, which is applicable to the apparatus of FIG. 2 and will be described together with the operation of the apparatus.

도 22에 도시된 바와 같이, 본 발명의 제 1 실시예에 따른 디블록킹 필터링 방법은, 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정 단계(S2210); 상기 서브 블록의 경계의 각 화소에 대해 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하는 최적 방향 선정 단계(S2220); 상기 서브 블록의 경계의 모든 화소에 대해 상기 선정된 다수의 최적 방향 중에서 최다 선정된 방향을 해당 서브 블록의 필터링 방향으로 결정하는 필터링 방향 결정 단계(S2230); 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하는 화소 선택 단계(S2240); 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하는 필터링 여부 결정 단계(S2250); 및 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링 단계(S2260)를 포함한다.As shown in FIG. 22, the deblocking filtering method according to the first embodiment of the present invention includes a boundary strength determination step (S2210) for determining an intensity of a boundary between subblocks of a current block; An optimal direction selecting step (S2220) of selecting an optimum direction based on a change amount of pixel values between pixels corresponding to each direction among a plurality of preset directions for each pixel of the boundary of the sub-block; A filtering direction determining step (S2230) of determining, as the filtering direction of the corresponding sub block, the most selected direction among the selected plurality of optimal directions for all pixels of the boundary of the sub block; A pixel selection step (S2240) of selecting pixels to be filtered for each pixel at the boundary of the sub block based on the determined filtering direction; A filtering step determining step (S2250) of determining whether to filter in the determined filtering direction according to a relationship between pixel values between the selected pixels; And a filtering step (S2260) of performing filtering on the selected pixels in the determined filtering direction according to the determined filtering.

본 발명의 제 1 실시예에 따른 디블록킹 필터링 방법에 대해 보다 구체적으로 설명하면 다음과 같다.The deblocking filtering method according to the first embodiment of the present invention will be described in more detail as follows.

도 4 는 16x16 화소로 이루어진 매크로 블록(Macroblock)을 도시한 것으로, 1-16까지의 4x4 서브 블록 중 교번하는 1, 3, 6, 89, 11, 14 및 16번의 4x4 블록에 대하여 본 발명의 실시예에 따른 디블록킹 필터링을 적용한다. FIG. 4 shows a macroblock consisting of 16x16 pixels, wherein alternating 1, 3, 6, 89, 11, 14, and 16 4x4 blocks of 4x4 subblocks 1-16 are implemented. The deblocking filtering according to the example is applied.

도 5와 같이 디블록킹 필터링을 적용할 해당 서브 블록의 ①, ②, ③, 및 ④의 4개의 경계 면에 디블록킹 필터를 적용한다. 구체적인 실시예는 아래와 같다. (단계 1 내지 단계 10까지는 부호기에서 수행하는 과정이고 단계 11 내지 단계 13은 복호기에서 수행하는 과정이다.)As shown in FIG. 5, the deblocking filter is applied to four boundary surfaces of ①, ②, ③, and ④ of the corresponding subblock to which the deblocking filtering is to be applied. Specific embodiments are as follows. (Steps 1 to 10 are processes performed by the encoder and steps 11 to 13 are processes performed by the decoder.)

단계 1: 경계 세기 결정부(210)는 4x4 서브 블록의 각 경계에 대하여 블록 경계 강도(BS)를 결정한다(S2310). Step 1: The boundary strength determiner 210 determines the block boundary strength BS for each boundary of the 4x4 subblock (S2310).

단계 2: BS가 0일 경우 디블록킹 필터링를 취하지 않고, BS가 1~4일 때는 조건식을 검사하여 디블록킹 필터링을 수행해야 할지를 결정한다.Step 2: If BS is 0, no deblocking filtering is performed, and if BS is 1 to 4, the conditional expression is examined to determine whether deblocking filtering should be performed.

단계 3: 필터링 방향 결정부(230)는 도 6 과 같이 4x4 서브 블록 경계 면(①, ②, ③, 및 ④)의 1~16 번의 화소 경계에 대하여, 도 7 과 같이 기 설정된 9가지 방향 중에서 가장 적합한 디블록킹 필터링 방향을 결정한다(S2220).Step 3: The filtering direction determiner 230 may select the pixel boundaries 1 to 16 of the 4x4 subblock boundary surfaces ①, ②, ③, and ④ as shown in FIG. 6 from among nine preset directions as shown in FIG. 7. The most suitable deblocking filtering direction is determined (S2220).

단계 4: 필터링 방향 결정부(230)는 가장 적합한 방향을 구하기 위해서 1~16 번의 각 화소의 경계 면상에서 기 설정된 9가지의 방향에 대응하는 화소들간의 화소값의 변화량을 구하고, 9가지 방향 중 변화량이 가장 작은 방향이 에지 방향으로써, 디블록킹 필터링을 취하기에 가장 적합한 최적 방향으로 선정한다(S2220).Step 4: The filtering direction determiner 230 obtains a change amount of pixel values between pixels corresponding to nine preset directions on the boundary surface of pixels 1 to 16 in order to obtain the most suitable direction, and among the nine directions The direction in which the change amount is the smallest is the edge direction, and the optimal direction is selected as the best direction for deblocking filtering (S2220).

단계 5: 필터링 방향 결정부(230)에서 화소 경계면에서 9가지의 각 방향에 대한 화소 간의 변화량을 구하는 식은 아래와 같다.

Figure 112008074730036-PAT00007
는 화소 경계 면의 화소(pixel)를 기준으로 각 방향에 따라 선택된 방향 세트에서의 화소들간의 화소값의 변화량을 나타낸다.
Figure 112008074730036-PAT00008
,
Figure 112008074730036-PAT00009
은 가중치(weight)를 나타내는 상수로써, 블록 간의 경계 근처에 있는 화소 간의 변화량이 경계에서 멀리 떨어져 있는 화소 간의 변화량보다 전체 변화량에 더 큰 비중을 갖도록
Figure 112008074730036-PAT00010
,
Figure 112008074730036-PAT00011
을 만족하는 값으로 설정된다(S2220).Step 5: The filtering direction determiner 230 calculates a change amount between pixels in each of nine directions at the pixel boundary, as follows.
Figure 112008074730036-PAT00007
Denotes an amount of change in pixel values between pixels in a direction set selected according to each direction on the basis of a pixel on a pixel boundary surface.
Figure 112008074730036-PAT00008
,
Figure 112008074730036-PAT00009
Is a constant representing the weight, so that the amount of change between pixels near the boundary between blocks has a greater proportion to the total amount of change than the amount of change between pixels far away from the boundary.
Figure 112008074730036-PAT00010
,
Figure 112008074730036-PAT00011
It is set to a value satisfying (S2220).

단계 6: 필터링 방향 결정부(230)에서 9가지의 각 방향에 대한 변화량을 구하는 식은 구체적으로 아래와 같다(S2220).Step 6: In the filtering direction determiner 230, an equation for obtaining variation amounts for each of nine directions is specifically as follows (S2220).

도 8에 도시되어 있는 90도 방향에 대한 변화량은 다음의 식 2와 같이 구해진다.The change amount with respect to the 90 degree direction shown in FIG. 8 is calculated | required as following formula (2).

[식 2][Equation 2]

Figure 112008074730036-PAT00012
Figure 112008074730036-PAT00012

도 9에 도시되어 있는 78.75도 방향에 대한 변화량은 다음의 [식 3]과 같이 구해진다.The change amount with respect to the 78.75 degree direction shown in FIG. 9 is calculated | required as following [Equation 3].

[식 3][Equation 3]

Figure 112008074730036-PAT00013
Figure 112008074730036-PAT00013

도 10에 도시되어 있는 67.5도 방향에 대한 변화량은 다음의 [식 4]와 같이 구해진다.The change amount with respect to the 67.5 degree direction shown in FIG. 10 is calculated | required as following [Equation 4].

[식 4][Equation 4]

Figure 112008074730036-PAT00014
Figure 112008074730036-PAT00014

도 11에 도시되어 있는 56.25도 방향에 대한 변화량은 다음의 [식 5]와 같이 구해진다.The change amount with respect to the 56.25 degree direction shown in FIG. 11 is calculated | required as following [Equation 5].

[식 5][Equation 5]

Figure 112008074730036-PAT00015
Figure 112008074730036-PAT00015

도 12에 도시되어 있는 45도 방향에 대한 변화량은 다음의 [식 6]과 같이 구해진다.The change amount with respect to the 45 degree direction shown in FIG. 12 is calculated | required as following [Equation 6].

[식 6][Equation 6]

Figure 112008074730036-PAT00016
Figure 112008074730036-PAT00016

도 13에 도시되어 있는 101.25도 방향에 대한 변화량은 다음의 [식 7]와 같이 구해진다.The change amount with respect to the direction of 101.25 degree shown in FIG. 13 is calculated | required as following [Equation 7].

[식 7][Equation 7]

Figure 112008074730036-PAT00017
Figure 112008074730036-PAT00017

도 14에 도시되어 있는 112.5도 방향에 대한 변화량은 다음의 [식 8]과 같이 구해진다.The change amount with respect to the 112.5 degree direction shown in FIG. 14 is calculated | required as following [Equation 8].

[식 8][Equation 8]

Figure 112008074730036-PAT00018
Figure 112008074730036-PAT00018

도 15에 도시되어 있는 123.75도 방향에 대한 변화량은 다음의 [식 9]와 같이 구해진다.The change amount with respect to the 123.75 degree direction shown in FIG. 15 is calculated | required as following [Equation 9].

[식 9][Equation 9]

Figure 112008074730036-PAT00019
Figure 112008074730036-PAT00019

도 16에 도시되어 있는 135도 방향에 대한 변화량은 다음의 [식 10]과 같이 구해진다.The change amount with respect to the 135 degree direction shown in FIG. 16 is calculated | required as following [Equation 10].

[식 10][Equation 10]

Figure 112008074730036-PAT00020
Figure 112008074730036-PAT00020

단계 7: 다음, 필터링 방향 결정부(230)는 도 6의 1~16 번 화소 간의 경계 중에서 가장 많이 선정되는 최적 방향을 해당 서브 블록의 디블록킹 필터링 방향으로 결정한다(S2230).Step 7: Next, the filtering direction determiner 230 determines an optimal direction, which is most selected among the boundaries between pixels 1 to 16 of FIG. 6, as the deblocking filtering direction of the corresponding subblock (S2230).

단계 8: 이어, 필터링부(250)는 도 6의 1~16 화소 간 각각의 경계에 대해서 위에서 결정된 필터링 방향으로 디블록킹 필터링 수행 여부를 결정한다. 이 때, [식 1]과 유사한 조건식을 사용하게 되는데, 본 실시 예에서는 기 설정된 필터링 방향이 총 9가지 이므로 9가지 방향마다 별도의 조건식을 이용하여 필터링 수행 여부를 판별하고, 조건식을 만족할 경우 해당 필터링 방향으로 디블록킹 필터링을 수행한다. 만약 조건식을 만족하지 못하면 경계 면의 수직 방향에 대해서 조건식을 적용하여, 만족하면 경계 면의 수직 방향으로 디블록킹 필터링을 수행한다(S2240~S2260). Step 8: Next, the filtering unit 250 determines whether deblocking filtering is performed in the filtering direction determined above with respect to each boundary between 1 to 16 pixels of FIG. 6. In this case, a conditional expression similar to that of [Equation 1] is used. In the present embodiment, since nine preset filtering directions are used in total, it is determined whether filtering is performed using a separate conditional expression for each of the nine directions, and when the conditional expression is satisfied, Deblocking filtering is performed in the filtering direction. If the conditional expression is not satisfied, the conditional expression is applied to the vertical direction of the boundary surface, and if it is satisfied, deblocking filtering is performed in the vertical direction of the boundary surface (S2240 to S2260).

단계 9: 9가지 각 방향에서 조건식을 적용하기 위해 연산에 필요한 화소는 도8 내지 도16에 도시된 바와 같다(S2240). 각 방향에 대한 조건식은 구체적으로 아래와 같다. 이 때,

Figure 112008074730036-PAT00021
,
Figure 112008074730036-PAT00022
는 상수로 문턱치 값을 조절하여, 각각의 방향에서 디블록킹 필터링의 수행 정도를 결정하는 것이 가능하다. Step 9: The pixels required for the calculation in order to apply the conditional expression in each of the nine directions are as shown in Figs. 8 to 16 (S2240). The conditional expression for each direction is specifically as follows. At this time,
Figure 112008074730036-PAT00021
,
Figure 112008074730036-PAT00022
It is possible to determine the degree of performance of deblocking filtering in each direction by adjusting the threshold value with a constant.

도 8의 90도 방향에 대한 조건식은 아래의 [조건식 1]과 같다.The conditional expression for the 90 degree direction of FIG. 8 is as follows [Condition 1].

[조건식 1][Condition 1]

Figure 112008074730036-PAT00023
;
Figure 112008074730036-PAT00024
;
Figure 112008074730036-PAT00025
Figure 112008074730036-PAT00023
;
Figure 112008074730036-PAT00024
;
Figure 112008074730036-PAT00025

도 9의 78.75도 방향에 대한 조건식은 아래의 [조건식 2]와 같다.The conditional expression for the 78.75 degree direction of FIG. 9 is as follows [conditional expression 2].

[조건식 2][Condition Formula 2]

Figure 112008074730036-PAT00026
;
Figure 112008074730036-PAT00027
;
Figure 112008074730036-PAT00028
Figure 112008074730036-PAT00026
;
Figure 112008074730036-PAT00027
;
Figure 112008074730036-PAT00028

도 10의 67.5도 방향에 대한 조건식은 아래의 [조건식 3]과 같다.The conditional formula for the direction of 67.5 degrees in FIG. 10 is as follows [Condition 3].

[조건식 3][Condition 3]

Figure 112008074730036-PAT00029
;
Figure 112008074730036-PAT00030
;
Figure 112008074730036-PAT00029
;
Figure 112008074730036-PAT00030
;

도 11의 56.25도 방향에 대한 조건식은 아래의 [조건식 4]와 같다.The conditional expression for the 56.25 degree direction of FIG. 11 is as follows.

[조건식 4][Condition 4]

Figure 112008074730036-PAT00032
;
Figure 112008074730036-PAT00033
;
Figure 112008074730036-PAT00034
Figure 112008074730036-PAT00032
;
Figure 112008074730036-PAT00033
;
Figure 112008074730036-PAT00034

도 12의 45도 방향에 대한 조건식은 아래의 [조건식 5]와 같다.The conditional expression for the 45 degree direction of FIG. 12 is as follows [conditional expression 5].

[조건식 5][Condition 5]

Figure 112008074730036-PAT00035
;
Figure 112008074730036-PAT00036
;
Figure 112008074730036-PAT00037
Figure 112008074730036-PAT00035
;
Figure 112008074730036-PAT00036
;
Figure 112008074730036-PAT00037

도 13의 101.25도 방향에 대한 조건식은 아래의 [조건식 6]과 같다.The conditional expression for the direction of 101.25 degree of FIG. 13 is as follows [Condition 6].

[조건식 6][Condition 6]

Figure 112008074730036-PAT00038
;
Figure 112008074730036-PAT00039
;
Figure 112008074730036-PAT00040
Figure 112008074730036-PAT00038
;
Figure 112008074730036-PAT00039
;
Figure 112008074730036-PAT00040

도 14의 112.5도 방향에 대한 조건식은 아래의 [조건식 7]과 같다.The conditional expression for the direction of 112.5 degrees in FIG. 14 is as follows [Condition 7].

[조건식 7][Condition 7]

Figure 112008074730036-PAT00041
;
Figure 112008074730036-PAT00042
;
Figure 112008074730036-PAT00043
Figure 112008074730036-PAT00041
;
Figure 112008074730036-PAT00042
;
Figure 112008074730036-PAT00043

도 15의 123.75도 방향에 대한 조건식은 아래의 [조건식 8]과 같다.The conditional expression for the direction of 123.75 degree of FIG. 15 is as follows.

[조건식 8][Condition 8]

Figure 112008074730036-PAT00044
;
Figure 112008074730036-PAT00045
;
Figure 112008074730036-PAT00046
Figure 112008074730036-PAT00044
;
Figure 112008074730036-PAT00045
;
Figure 112008074730036-PAT00046

도 16의 135도 방향에 대한 조건식은 아래의 [조건식 9]와 같다.The conditional expression for the 135 degree direction of FIG. 16 is as follows [conditional expression 9].

[조건식 9][Condition 9]

Figure 112008074730036-PAT00047
;
Figure 112008074730036-PAT00048
;
Figure 112008074730036-PAT00049
Figure 112008074730036-PAT00047
;
Figure 112008074730036-PAT00048
;
Figure 112008074730036-PAT00049

단계 10: 한편, 수직 방향이 아닌 해당 서브 블록의 디블록킹 필터링 방향(단계 7에서 결정된 디블록킹 필터링 방향)으로 수행되는 화소 중 하나를 선택하여 그 화소에 대해 1비트의 부가 정보를 할당하고, 이 부가 정보를 부호기에서 복호기로 송신한다. 다른 예로, 해당 서브 블록의 디블록킹 필터링 방향(단계 7에서 결정된 디블록킹 필터링 방향)을 부가 정보로 기록하여 저장하고, 이 부가 정보를 부호기에서 복호기로 송신할 수 있다.Step 10: On the other hand, one of the pixels performed in the deblocking filtering direction (deblocking filtering direction determined in step 7) of the corresponding sub-block rather than the vertical direction is selected, and one-bit additional information is allocated to the pixel. Additional information is sent from the encoder to the decoder. As another example, the deblocking filtering direction (deblocking filtering direction determined in step 7) of the corresponding subblock may be recorded and stored as additional information, and the additional information may be transmitted from the encoder to the decoder.

단계 11: 복호기에서는 부호기부터 수신한 부가 정보를 이용하여, 부호기에서 지정한 위치의 화소를 선택한다. 그리고 부호기에서 사용했던 것과 같은 방법을 사용하여 그 화소의 디블록킹 필터링을 수행할 방향을 찾는다. 이 방향이 해당 4x4 서브 블록의 디블록킹 필터링 방향이 된다(단계 7에서 찾은 필터링 방향과 동일하게 설정됨).Step 11: The decoder selects the pixel at the position designated by the encoder by using the additional information received from the encoder. The same method as used in the encoder is used to find a direction to perform the deblocking filtering of the pixel. This direction becomes the deblocking filtering direction of the corresponding 4x4 subblock (set to the same filtering direction found in step 7).

단계 12: 해당 서브 블록의 필터링 방향이 결정되면 복호기도 부호기와 마찬가지로 단계 8 내지 단계 9와 동일한 과정을 수행하여 디블록킹 필터링을 수행한다. Step 12: When the filtering direction of the corresponding subblock is determined, the decoder performs deblocking filtering by performing the same process as steps 8 to 9, similarly to the encoder.

단계 13: 상기 방법을 적용할 경우 복호기에서는 부호기와 달리 각 화소에 대하여 디블록킹 필터링을 수행할 방향을 결정할 필요가 없이 하나의 화소에 대하여 방향을 결정하고 그 방향을 현재 서브 블록의 주된 방향이라 판단하고 디블록킹 필터링을 수행하므로 연산량이 줄어든다. 단, 부호기에서 복호기로 약간의 부가 정 보를 전송해야 한다.Step 13: In the case of applying the above method, the decoder determines a direction for one pixel and determines that direction is the main direction of the current sub-block, without having to determine a direction in which to perform deblocking filtering on each pixel, unlike an encoder. Deblocking filtering reduces the amount of computation. However, some additional information must be transmitted from the encoder to the decoder.

도 23은 본 발명의 제 2 실시예에 따른 디블록킹 필터링 방법의 흐름도로서, 도 3의 장치에 적용할 수 있으므로 그 장치의 동작과 함께 설명한다.FIG. 23 is a flowchart of a deblocking filtering method according to a second embodiment of the present invention. Since it is applicable to the apparatus of FIG. 3, it will be described together with the operation of the apparatus.

도 23에 도시된 바와 같이, 본 발명의 제 2 실시예에 따른 디블록킹 필터링 방법은, 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정 단계(S2310); 상기 서브 블록의 경계의 첫 번째의 화소에 대해서, 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하는 제 1 필터링 방향 결정 단계(S2320); 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서, 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 최적 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하는, 제 2 필터링 방향 결정 단계(S2330); 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하는 화소 선택 단계(S2340); 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하는 필터링 여부 결정 단계(S2350); 및 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링 단계(S2360)를 포함한다.As shown in FIG. 23, the deblocking filtering method according to the second embodiment of the present invention includes a boundary strength determination step (S2310) for determining an intensity of a boundary between subblocks of a current block; A first filtering direction determining step of determining one direction as a filtering direction with respect to the first pixel of the boundary of the sub-block, based on a change amount of pixel values between pixels corresponding to each direction among a plurality of preset directions ( S2320); For the second or more pixels on the boundary of the sub-block, the direction most selected so far for the current sub-block is determined as the filtering direction, or the filtering direction of the immediately preceding pixel is determined as the optimal direction, or the filtering direction of the first pixel is determined. Determining a filtering direction according to the determining process (S2330); A pixel selecting step (S2340) of selecting pixels to be filtered for each pixel of the boundary of the sub block based on the determined filtering direction; A filtering step determining step (S2350) of determining whether to filter the determined filtering direction according to a relationship between pixel values between the selected pixels; And a filtering step (S2360) of performing filtering on the selected pixels in the determined filtering direction according to the determined filtering.

본 발명의 제 2 실시예에 따른 디블록킹 필터링 방법에 대해 보다 구체적으로 설명하면 다음과 같다.The deblocking filtering method according to the second embodiment of the present invention will be described in more detail as follows.

본 발명의 제 2 실시예에 따른 디블록킹 필터링 방법은 부호기에서 복호기로 부가 정보를 전송해야 할 필요 없이 기존의 방법보다 연산량을 줄이면서 화소 단위로 디블록킹 필터링을 수행하는 방법이다. The deblocking filtering method according to the second embodiment of the present invention is a method of performing deblocking filtering on a pixel-by-pixel basis while reducing the amount of computation compared to the conventional method without the need for transmitting additional information from the encoder to the decoder.

도 4 는 16x16 화소로 이루어진 매크로 블록(Macroblock)을 도시한 것으로, 1-16까지의 4x4 서브 블록 중 교번하는 1, 3, 6, 89, 11, 14 및 16번의 4x4 서브 블록에 대하여 본 발명의 실시예에 따른 디블록킹 필터링을 적용한다. 도 5와 같이 디블록킹 필터링을 적용할 해당 서브 블록의 ①, ②, ③, 및 ④의 4개의 경계 면에 디블록킹 필터를 적용한다. 구체적인 실시예는 아래와 같다.FIG. 4 shows a macroblock consisting of 16x16 pixels, wherein alternating 1, 3, 6, 89, 11, 14, and 16th 4x4 subblocks of 4x4 subblocks 1 to 16 are shown in FIG. The deblocking filtering according to the embodiment is applied. As shown in FIG. 5, the deblocking filter is applied to four boundary surfaces of ①, ②, ③, and ④ of the corresponding subblock to which the deblocking filtering is to be applied. Specific embodiments are as follows.

단계 1: 경계 세기 결정부(310)는 4x4 블록의 각 경계에 대하여 블록 경계 강도(BS)를 결정한다(S2310).Step 1: The boundary strength determiner 310 determines the block boundary strength BS for each boundary of the 4x4 block (S2310).

단계 2: BS가 0일 경우 디블록킹 필터링를 취하지 않고, BS가 1~4일 때는 조건식을 검사하여 디블록킹 필터링을 수행해야 할지를 결정한다.Step 2: If BS is 0, no deblocking filtering is performed, and if BS is 1 to 4, the conditional expression is examined to determine whether deblocking filtering should be performed.

단계 3: 필터링 방향 결정부(330)는 도 6의 해당 서브 블록의 ①번 경계 면의 1번 화소 경계에 대하여 기 설정된 9가지 방향 중에서 디블록킹 필터링을 적용할 방향을 검사한다. 필터링 방향 결정부(330)는 도 22의 본 발명의 제 1 실시예에 따른 디블록킹 필터링 방법에서와 같이 기 설정된 9가지 방향에 대한 화소간의 화소값의 변화량을 각각 구한 후, 변화량이 가장 적은 방향을 제 1 필터링 방향으로 결정한다. 9가지의 각 방향에 대한 변화량은 [식 2] 내지 [식 10]을 적용하여 구한다(S2320). 그리고 필터링부(350)는 결정된 제 1 필터링 방향에 대응하는 조건식(도 22의 제 1 실시예의 단계 9의 조건식 1 내지 조건식 9 참조)을 검사하여 만족하면 결정된 제 1 필터링 방향으로 디블록킹 필터링 수행하고, 그렇지 않으면 디블 록킹 필터링을 수행하지 않는다(S2340-S2360).Step 3: The filtering direction determiner 330 examines a direction in which the deblocking filtering is to be applied from among nine preset directions for the pixel boundary of the ① boundary surface of the corresponding subblock of FIG. 6. The filtering direction determiner 330 obtains a change amount of pixel values between pixels for nine preset directions as in the deblocking filtering method according to the first embodiment of FIG. Is determined as the first filtering direction. The amount of change in each of the nine directions is obtained by applying [Equation 2] to [Equation 10] (S2320). The filtering unit 350 performs deblocking filtering in the determined first filtering direction when the conditional expression corresponding to the determined first filtering direction is satisfied (see conditional expressions 1 to 9 in step 9 of the first embodiment of FIG. 22). Otherwise, deblocking filtering is not performed (S2340-S2360).

단계 4: 다음으로 필터링 방향 결정부(330)는 도 6 의 ①번 경계 면의 2번 화소 경계에서는 1번 화소 경계에서 사용한 제 1 필터링 방향을 필터링 방향으로 결정하고, 필터링부(350)는 결정된 필터링 방향으로 디블록킹 필터링을 수행해야 할지 여부를 결정한다(S2330-S2350). 이 때, 필터링부(350)는 도 22의 제 1 실시예의 단계 9의 조건식 1 내지 조건식 9 중 해당 조건식을 사용하여, 만약 조건식을 만족하면 디블록킹 필터링을 수행하고(S2360), 만족하지 않는다면 필터링 방향 결정부(330)는 다시 1번 화소 경계에서와 같이 9가지 방향에 대해 새롭게 방향을 검사하여 변화량이 가장 적은 방향을 필터링 방향으로 결정한 후(S2330), 필터링부(350)를 통해 디블록킹 필터링을 수행한다(S2340-S2360).Step 4: Next, the filtering direction determiner 330 determines, as the filtering direction, the first filtering direction used at the pixel boundary 1 at the pixel boundary 2 of the ① boundary surface of FIG. 6, and the filtering unit 350 determines the determined filtering direction. It is determined whether deblocking filtering should be performed in the filtering direction (S2330-S2350). At this time, the filtering unit 350 performs deblocking filtering if the conditional expression is satisfied using the corresponding conditional expressions of the conditional expressions 1 to 9 of step 9 of the first embodiment of FIG. The direction determiner 330 again checks the directions of the nine directions as in the first pixel boundary to determine the direction with the least amount of change as the filtering direction (S2330), and then deblocking filtering through the filter 350. It performs (S2340-S2360).

단계 5: 다음으로 필터링 방향 결정부(330)는 도 6 의 ①번 경계 면의 3번 화소 경계 면에서는 현재까지 가장 많이 선택되었던 필터링 방향을 필터링 방향으로 결정하고, 필터링부(350)는 결정된 필터링 방향에 대해 조건식 1 내지 조건식 9 중 해당하는 조건식을 적용하여 디블록킹 필터링을 수행해야 할지를 결정하고(S2330-S2350), 조건식을 만족하면 디블록킹 필터링을 수행한다(S2360). 만약 만족하지 않으면 필터링 방향 결정부(330)는 바로 직전에 사용되었던 필터링 방향(2번 화소 경계면의 필터링 방향)을 필터링 방향으로 결정하고, 필터링부(350)는 결정된 필터링 방향에 대하여 해당 조건식을 적용하여 디블록킹 필터링을 수행해야 할지를 결정하고(S2330-S2350), 조건식을 만족하면 디블록킹 필터링을 수행한다(S2360). 만약 또 만족하지 않으면 필터링 방향 결정부(330)는 다시 1번 화소 경 계에 대한 상기 과정과 같이 9가지 방향에 대해 새롭게 방향을 검사하여 변화량이 가장 적은 방향을 필터링 방향으로 결정한 후(S2330), 필터링부(350)를 통해 디블록킹 필터링을 수행한다(S2340-S2360).Step 5: Next, the filtering direction determiner 330 determines the filtering direction most selected so far on the pixel boundary surface of interface ① in FIG. 6 as the filtering direction, and the filter 350 determines the determined filtering direction. It is determined whether deblocking filtering should be performed by applying the corresponding conditional expressions of Conditional Expressions 1 to 9 with respect to the direction (S2330-S2350), and if the conditional expression is satisfied, deblocking filtering is performed (S2360). If it is not satisfied, the filtering direction determiner 330 determines the filtering direction (the filtering direction of the pixel boundary of pixel 2) that was used immediately before as the filtering direction, and the filtering unit 350 applies the conditional expression to the determined filtering direction. Deblocking filtering is performed (S2330-S2350). If the conditional expression is satisfied, deblocking filtering is performed (S2360). If it is not satisfied again, the filtering direction determiner 330 again checks the new directions for the nine directions as in the above process for the pixel boundary 1 and determines the direction with the smallest change as the filtering direction (S2330). Deblocking filtering is performed through the filtering unit 350 in operation S2340-S2360.

단계 6: 상술된 바와 같이, 4x4 서브 블록의 경계의 각 화소의 경계에서 2번 화소 경계 이상에 대해서는, 첫 번째로 현재까지 서브 블록 내에서 가장 많이 선택된 방향을 이용하여 디블록킹 필터링 적용 여부를 검사하여 그 방향으로 필터링을 수행하고, 만족하지 않을 경우 두 번째로 바로 직전 화소 간의 경계에 사용되었던 방향에 대하여 디블록킹 필터링 적용 여부를 검사하여 그 방향으로 필터링을 수행하고, 이것도 만족하지 않았을 경우에는 비로소 각 방향에 대한 경계간의 변화량을 구하여 디블록킹 필터링의 방향을 결정하여 필터링을 수행할 수 있다.Step 6: As described above, for more than two pixel boundaries at the boundary of each pixel of the boundary of the 4x4 subblock, it is first checked whether deblocking filtering is applied using the direction most selected in the subblock so far. Filtering is performed in that direction, and if it is not satisfied, it checks whether the deblocking filtering is applied to the direction used for the boundary between pixels immediately before, and performs filtering in that direction. Filtering may be performed by determining a direction of deblocking filtering by obtaining a change amount between boundaries for each direction.

상술된 제 2 실시예의 방법에 따르면, 4x4 서브 블록내 각 화소의 경계마다 가능성이 가장 높은 방향을 우선적으로 검사한 후 조건을 만족하면 다른 방향을 검사할 필요가 없기 때문에 연산량이 줄어든다.According to the method of the second embodiment described above, the amount of computation is reduced because it is not necessary to check the other direction first if the condition is satisfied first after checking the direction most likely for each pixel boundary in the 4x4 subblock.

본 발명의 실시예에 따른 디블록킹 필터링 방법은 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로써 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록 장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광데이터 저장 장치 등이 있으며, 또한 캐리어 웨이브(예를 들어 인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산 되어 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다. The deblocking filtering method according to an embodiment of the present invention may be implemented as computer readable codes on a computer readable recording medium. Computer-readable recording media include all kinds of recording devices that store data that can be read by a computer system. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disks, optical data storage devices, and the like, which are also implemented in the form of carrier waves (for example, transmission over the Internet). Include. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

이상에서, 본 발명의 실시예를 구성하는 모든 구성 요소들이 하나로 결합하여 동작하는 것으로 설명되었다고 해서, 본 발명이 반드시 이러한 실시예에 한정되는 것이다. 즉, 본 발명의 목적 범위 안에서라면, 그 모든 구성 요소들이 하나 이상으로 선택적으로 결합하여 동작할 수도 있다. 또한, 그 모든 구성 요소들이 각각 하나의 독립적인 하드웨어로 구현될 수 있지만, 각 구성 요소들의 그 일부 또는 전부가 선택적으로 조합되어 하나 또는 복수 개의 하드웨어에서 조합된 일부 또는 전부의 기능을 수행하는 프로그램 모듈을 갖는 컴퓨터 프로그램으로서 구현될 수도 있다. 그 컴퓨터 프로그램을 구성하는 코드들 및 코드 세그먼트들은 본 발명의 기술 분야의 당업자에 의해 용이하게 추론될 수 있을 것이다. 이러한 컴퓨터 프로그램은 컴퓨터가 읽을 수 있는 저장매체(Computer Readable Media)에 저장되어 컴퓨터에 의하여 읽혀지고 실행됨으로써, 본 발명의 실시예를 구현할 수 있다. 컴퓨터 프로그램의 저장매체로서는 자기 기록매체, 광 기록매체, 캐리어 웨이브 매체 등이 포함될 수 있다.In the above description, all elements constituting the embodiments of the present invention are described as being operated in combination, and the present invention is necessarily limited to these embodiments. In other words, within the scope of the present invention, all of the components may be selectively operated in combination with one or more. In addition, although all of the components may be implemented in one independent hardware, each or all of the components may be selectively combined to perform some or all functions combined in one or a plurality of hardware. It may be implemented as a computer program having a. Codes and code segments constituting the computer program may be easily inferred by those skilled in the art. Such a computer program may be stored in a computer readable storage medium and read and executed by a computer, thereby implementing embodiments of the present invention. The storage medium of the computer program may include a magnetic recording medium, an optical recording medium, a carrier wave medium, and the like.

또한, 이상에서 기재된 "포함하다", "구성하다" 또는 "가지다" 등의 용어는, 특별히 반대되는 기재가 없는 한, 해당 구성 요소가 내재될 수 있음을 의미하는 것이므로, 다른 구성 요소를 제외하는 것이 아니라 다른 구성 요소를 더 포함할 수 있는 것으로 해석되어야 한다. 기술적이거나 과학적인 용어를 포함한 모든 용어들은, 다르게 정의되지 않는 한, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가진다. 사전에 정의된 용 어와 같이 일반적으로 사용되는 용어들은 관련 기술의 문맥 상의 의미와 일치하는 것으로 해석되어야 하며, 본 발명에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.In addition, the terms "comprise", "comprise" or "having" described above mean that the corresponding component may be included, unless otherwise stated, and thus excludes other components. It should be construed that it may further include other components instead. All terms, including technical and scientific terms, have the same meanings as commonly understood by one of ordinary skill in the art unless otherwise defined. Terms commonly used, such as terms defined in the dictionary, should be interpreted to coincide with the contextual meaning of the related art, and shall not be construed in an ideal or overly formal sense unless explicitly defined in the present invention.

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

이상 설명한 바와 같이, 본 발명은 동영상 부호화 및 복호화 기술 분야에 적용되어, 수직 수평 방향 뿐만 아니라 그 밖의 다수의 방향에 대해서도 화소 단위로 디블록킹 필터를 적용할 수 있는 방법을 제시함으로써, 다수의 사선 방향에 대한 에지로 인하여 생기는 사선 방향의 불연속 성에 의한 블록 왜곡 현상을 효과적으로 제거하여 화질을 향상시키고, 블록 왜곡 현상의 제거 시 발생하는 연산량을 효과적으로 줄이는 효과 효과를 발생하는 매우 유용한 발명이다.As described above, the present invention is applied to a video encoding and decoding technology field, and proposes a method for applying a deblocking filter on a pixel-by-pixel basis for not only a vertical horizontal direction but also a plurality of other directions, thereby providing a plurality of diagonal directions. It is a very useful invention that improves the image quality by effectively eliminating the block distortion caused by the discontinuity in the diagonal direction caused by the edge to, and effectively reduces the amount of computation generated when the block distortion occurs.

도 1은 본 발명의 일 실시예에 따른 동영상 부호화 장치의 블록도,1 is a block diagram of a video encoding apparatus according to an embodiment of the present invention;

도 2는 본 발명의 제 1 실시예에 따른 디블록킹 필터링 장치의 블록도,2 is a block diagram of a deblocking filtering device according to a first embodiment of the present invention;

도 3은 본 발명의 제 2 실시예에 따른 디블록킹 필터링 장치의 블록도,3 is a block diagram of a deblocking filtering device according to a second embodiment of the present invention;

도 4는 본 발명의 실시예에 적용되는 매크로 블록내의 서브 블록을 나타낸 도면,4 is a diagram illustrating a sub block in a macro block applied to an embodiment of the present invention;

도 5는 본 발명의 실시예에 적용되는 서브 블록의 경계를 나타낸 도면,5 is a diagram illustrating a boundary of a sub block applied to an embodiment of the present invention;

도 6은 본 발명의 실시에에 적용되는 서브 블록의 경계의 화소 경계를 나타낸 도면,6 is a diagram illustrating pixel boundaries of sub-block boundaries applied to an embodiment of the present invention;

도 7은 본 발명의 실시예에 따른 필터링 방향의 예를 나타낸 도면,7 illustrates an example of a filtering direction according to an embodiment of the present invention;

도 8 내지 도 16는 도 7의 필터링 방향에 따라 선택된 화소의 예를 설명하는 도면,8 to 16 illustrate examples of pixels selected according to the filtering direction of FIG. 7;

도 17은 본 발명의 일 실시예에 따른 동영상 복호화 장치의 블록도,17 is a block diagram of a video decoding apparatus according to an embodiment of the present invention;

도 18 및 도 19는 매크로 블록의 수직 및 수평 방향의 경계를 나타내는 도면,18 and 19 are views showing the boundaries of the macro block in the vertical and horizontal directions,

도 20은 수직 및 수평 방향 블록 경계인 경우에 수평 및 수직 방향 필터링할 화소의 예를 나타낸 도면,20 illustrates an example of pixels to be horizontally and vertically filtered in the case of vertical and horizontal block boundaries;

도 21은 대각선 방향의 에지가 존재할 경우 (a)는 수직 방향의 필터링 시를 설명하는 도면이고, (b)는 대각선 방향 필터링 시를 설명하는 도면,21 is a diagram illustrating a case of filtering in a vertical direction when an edge in a diagonal direction exists, (b) is a diagram illustrating a filter in a diagonal direction;

도 22는 본 발명의 제 1 실시예에 따른 디블록킹 필터링 방법의 흐름도,22 is a flowchart of a deblocking filtering method according to a first embodiment of the present invention;

도 23은 본 발명의 제 2 실시예에 따른 디블록킹 필터링 방법의 흐름도.23 is a flowchart of a deblocking filtering method according to a second embodiment of the present invention.

< 도면의 주요 부분에 대한 부호의 설명 ><Description of Symbols for Main Parts of Drawings>

100: 부호화 장치(또는 부호기라 칭함)100: encoding device (or coder)

110: 예측부 120: 감산부110: prediction unit 120: subtraction unit

130: 변환부 140: 양자화부130: transform unit 140: quantization unit

150: 부호화부 160: 역양자화부150: encoding unit 160: inverse quantization unit

170: 역변환부 180: 가산부170: inverse transform unit 180: adder

190: 디블록킹 필터부, 적응적 디블록킹 필터링 장치190: deblocking filter unit, adaptive deblocking filtering device

210,310: 경계 세기 결정부 230,330: 필터링 방향 결정부210,310: boundary strength determiner 230,330: filtering direction determiner

250,350: 필터링부250,350: filtering unit

1700: 복호화 장치(또는 복호기라 칭함)1700: decoding device (or decoder)

1710: 복호화부 1720: 역양자화부1710: decoding unit 1720: inverse quantization unit

1730: 역변환부 1740: 예측부1730: inverse transform unit 1740: predictor

1750: 가산부 1760: 디블록킹 필터부1750: adder 1760: deblocking filter part

Claims (27)

현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정부;A boundary strength determiner for determining the strength of the boundary between sub-blocks of the current block; 상기 서브 블록의 경계의 각 화소에 대해 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하되, 상기 서브 블록의 경계의 모든 화소에 대해 상기 선정된 다수의 최적 방향 중에서 최다 선정된 방향을 해당 서브 블록의 필터링 방향으로 결정하는, 필터링 방향 결정부; 및An optimal direction may be selected based on the amount of change of pixel values between pixels corresponding to each direction among a plurality of preset directions for each pixel of the boundary of the sub-block, and the predetermined direction may be selected for all pixels of the boundary of the sub-block. A filtering direction determiner configured to determine, as a filtering direction of the corresponding sub-block, the most selected direction among a plurality of optimal directions; And 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링부;Selecting pixels to be filtered based on the determined filtering direction for each pixel of the boundary of the sub-block, and determining whether to filter the determined filtering direction according to a relationship of pixel values between the selected pixels, and determining the filtering A filtering unit which performs filtering on the selected pixels in the determined filtering direction according to whether or not; 를 포함하는 것을 특징으로 하는 디블록킹 필터링 장치.Deblocking filtering device comprising a. 제 1 항에 있어서,The method of claim 1, 상기 필터링 방향 결정부는, The filtering direction determiner, 해당 경계를 기준으로 마주하는 첫 번째 화소들간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 일 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 타 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 일 측의 세 번째 화소와 두 번째 화소간의 화소값 차이의 절대값, 및 상기 해당 경계를 기준으로 타 측의 세 번째 화소와 두 번째 화소간의 화소값 차이의 절대값에 근거하여 상기 변화량을 산출하고, 상기 변화량이 가장 작은 방향을 상기 최적 방향으로 선정하는 것을 특징으로 하는 디블록킹 필터링 장치.Absolute value of the pixel value difference between the first pixels facing the corresponding boundary, absolute value of the pixel value difference between the first pixel and the second pixel on the basis of the corresponding boundary, and based on the corresponding boundary Absolute value of the pixel value difference between the second pixel and the first pixel on the side, absolute value of the pixel value difference between the third pixel and the second pixel on the basis of the corresponding boundary, and other side based on the corresponding boundary And calculating the amount of change based on the absolute value of the difference in pixel values between the third pixel and the second pixel, and selecting a direction in which the amount of change is the smallest as the optimum direction. 제 1 항에 있어서,The method of claim 1, 상기 필터링부는, The filtering unit, 상기 선택된 화소들간의 화소값의 관계가, 해당 경계를 기준으로 마주하는 첫 번째 화소들간의 화소값 차이의 절대값, 상기 경계를 기준으로 일 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 및 상기 경계를 기준으로 타 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값이 각각 기 설정된 문턱치들보다 작은 조건을 만족하면, 상기 결정된 필터링 방향으로 필터링하는 것을 특징으로 하는 디블록킹 필터링 장치.The absolute value of the pixel value difference between the first pixels facing the boundary, and the relationship of the pixel value between the selected pixels, the pixel value difference between the second pixel and the first pixel of one side based on the boundary And filtering in the determined filtering direction when the absolute value and the absolute value of the pixel value difference between the second pixel and the first pixel on the other side are smaller than predetermined thresholds, respectively, based on the boundary. Deblocking filtering device. 제 3 항에 있어서,The method of claim 3, wherein 상기 필터링부는,The filtering unit, 상기 결정된 필터링 방향이 상기 조건을 만족하지 못하면, 상기 해당 경계의 수직 방향에 대해 상기 조건을 만족하는지의 여부를 확인하고, 그 확인 결과에 따라 필터링을 수행하는 것을 특징으로 하는 디블록킹 필터링 장치.And if the determined filtering direction does not satisfy the condition, check whether the condition is satisfied with respect to the vertical direction of the corresponding boundary, and perform filtering according to the checking result. 제 1 항에 있어서,The method of claim 1, 상기 기 설정된 복수의 방향은 45도, 56.25도, 67.5도, 78.75도, 90도, 101.25도, 112.5도, 123.75도 및 135도를 포함하는 것을 특징으로 하는 디블록킹 필터링 장치.The predetermined plurality of directions include 45 degrees, 56.25 degrees, 67.5 degrees, 78.75 degrees, 90 degrees, 101.25 degrees, 112.5 degrees, 123.75 degrees and 135 degrees. 제 1 항에 있어서,The method of claim 1, 상기 필터링 방향 결정부는,The filtering direction determiner, 상기 결정된 필터링 방향을 해당 서브 블록에 대한 부가 정보로 기록하거나, 해당 서브 블록의 경계의 화소 중 상기 결정된 필터링 방향으로 필터링된 화소에 대해 부가 정보를 할당하여 기록하는 것을 특징으로 하는 디블록킹 필터링 장치.And recording the determined filtering direction as additional information for the corresponding subblock or by allocating additional information for pixels filtered in the determined filtering direction among pixels on the boundary of the corresponding subblock. 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정부;A boundary strength determiner for determining the strength of the boundary between sub-blocks of the current block; 상기 서브 블록의 경계의 첫 번째의 화소에 대해서는 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하고, 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서는 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 필터링 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하는, 필터링 방향 결정부; 및For the first pixel of the boundary of the sub-block, one direction is determined as the filtering direction based on the amount of change in the pixel value between the pixels corresponding to each direction among a plurality of preset directions, and two of the boundaries of the sub-block are determined. For the second or more pixels, the filtering direction is determined as the filtering direction for the current subblock, the filtering direction of the immediately preceding pixel is determined as the filtering direction, or the filtering direction is determined according to the filtering direction determination process of the first pixel. A filtering direction determiner; And 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하 여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링부;Selecting pixels to be filtered based on the determined filtering direction for each pixel of the boundary of the sub-block, and determining whether to filter the determined filtering direction according to a relationship of pixel values between the selected pixels, A filtering unit configured to perform filtering on the selected pixels in the determined filtering direction according to filtering; 를 포함하는 것을 특징으로 하는 디블록킹 필터링 장치.Deblocking filtering device comprising a. 제 7 항에 있어서,The method of claim 7, wherein 상기 필터링 방향 결정부는, The filtering direction determiner, 해당 경계를 기준으로 마주하는 첫 번째 화소들간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 일 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 타 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 일 측의 세 번째 화소와 두 번째 화소간의 화소값 차이의 절대값, 및 상기 해당 경계를 기준으로 타 측의 세 번째 화소와 두 번째 화소간의 화소값 차이의 절대값에 근거하여 상기 변화량을 산출하고, 상기 변화량이 가장 작은 방향을 상기 필터링 방향으로 결정하는 것을 특징으로 하는 디블록킹 필터링 장치.Absolute value of the pixel value difference between the first pixels facing the corresponding boundary, absolute value of the pixel value difference between the first pixel and the second pixel on the basis of the corresponding boundary, and based on the corresponding boundary Absolute value of the pixel value difference between the second pixel and the first pixel on the side, absolute value of the pixel value difference between the third pixel and the second pixel on the basis of the corresponding boundary, and other side based on the corresponding boundary And calculating the change amount based on an absolute value of a difference between pixel values of a third pixel and a second pixel of the second pixel, and determining a direction in which the change amount is the smallest as the filtering direction. 제 7 항에 있어서,The method of claim 7, wherein 상기 필터링부는, The filtering unit, 상기 선택된 화소들간의 화소값의 관계가, 해당 경계를 기준으로 마주하는 첫 번째 화소들간의 화소값 차이의 절대값, 상기 경계를 기준으로 일 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 및 상기 경계를 기준으로 타 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값이 각각 기 설정된 문턱치들보다 작은 조건을 만족하면, 상기 결정된 필터링 방향으로 필터링하는 것을 특징으로 하는 디블록킹 필터링 장치.The absolute value of the pixel value difference between the first pixels facing the boundary, and the relationship of the pixel value between the selected pixels, the pixel value difference between the second pixel and the first pixel of one side based on the boundary And filtering in the determined filtering direction when the absolute value and the absolute value of the pixel value difference between the second pixel and the first pixel on the other side are smaller than predetermined thresholds, respectively, based on the boundary. Deblocking filtering device. 제 7 항에 있어서,The method of claim 7, wherein 상기 기 설정된 복수의 방향은 45도, 56.25도, 67.5도, 78.75도, 90도, 101.25도, 112.5도, 123.75도 및 135도를 포함하는 것을 특징으로 하는 디블록킹 필터링 장치.The predetermined plurality of directions include 45 degrees, 56.25 degrees, 67.5 degrees, 78.75 degrees, 90 degrees, 101.25 degrees, 112.5 degrees, 123.75 degrees and 135 degrees. 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정 단계;A boundary strength determining step of determining the strength of a boundary between sub-blocks of the current block; 상기 서브 블록의 경계의 각 화소에 대해 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하는 최적 방향 선정 단계;An optimal direction selecting step of selecting an optimum direction based on a change amount of pixel values between pixels corresponding to each direction among a plurality of preset directions for each pixel of the boundary of the sub-block; 상기 서브 블록의 경계의 모든 화소에 대해 상기 선정된 다수의 최적 방향 중에서 최다 선정된 방향을 해당 서브 블록의 필터링 방향으로 결정하는 필터링 방향 결정 단계;A filtering direction determining step of determining, as the filtering direction of the corresponding sub block, the most selected direction among the selected plurality of optimal directions for all pixels on the boundary of the sub block; 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하는 화소 선택 단계;A pixel selecting step of selecting pixels to be filtered for each pixel at a boundary of the sub block based on the determined filtering direction; 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하는 필터링 여부 결정 단계; 및A filtering step determining step of determining whether or not to filter the determined filtering direction according to a relationship between pixel values between the selected pixels; And 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링 단계;A filtering step of performing filtering on the selected pixels in the determined filtering direction according to the determined filtering; 를 포함하는 것을 특징으로 하는 디블록킹 필터링 방법.Deblocking filtering method comprising a. 제 11 항에 있어서,The method of claim 11, 상기 최적 방향 선정 단계에서의 상기 변화량은,The amount of change in the optimum direction selection step, 해당 경계를 기준으로 마주하는 첫 번째 화소들간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 일 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 타 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 일 측의 세 번째 화소와 두 번째 화소간의 화소값 차이의 절대값, 및 상기 해당 경계를 기준으로 타 측의 세 번째 화소와 두 번째 화소간의 화소값 차이의 절대값에 근거하여 산출되고, 상기 변화량이 가장 작은 방향이 상기 최적 방향으로 선정되는 것을 특징으로 하는 디블록킹 필터링 방법.Absolute value of the pixel value difference between the first pixels facing the corresponding boundary, absolute value of the pixel value difference between the first pixel and the second pixel on the basis of the corresponding boundary, and based on the corresponding boundary Absolute value of the pixel value difference between the second pixel and the first pixel on the side, absolute value of the pixel value difference between the third pixel and the second pixel on the basis of the corresponding boundary, and other side based on the corresponding boundary The deblocking filtering method is calculated based on the absolute value of the difference in pixel values between the third pixel and the second pixel, and the direction in which the amount of change is the smallest is selected as the optimal direction. 제 11 항에 있어서,The method of claim 11, 상기 필터링 여부 결정 단계는, The determining whether to filter, 상기 선택된 화소들간의 화소값의 관계가, 해당 경계를 기준으로 마주하는 첫 번째 화소들간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 일 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 및 상기 해당 경계를 기준으로 타 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값이 각각 기 설정된 문턱치들보다 작은 조건을 만족하는지의 여부에 따라, 상기 필터링 여부를 결정하는 것을 특징으로 하는 디블록킹 필터링 방법. The absolute value of the pixel value difference between the first pixels facing the boundary based on the relationship between the pixel values between the selected pixels, and the pixel value difference between the second pixel and the first pixel on one side based on the corresponding boundary. And whether or not the filtering is performed according to whether or not the absolute value of and the absolute value of the pixel value difference between the second pixel and the first pixel on the other side based on the corresponding boundary satisfy a condition smaller than the preset thresholds, respectively. Deblocking filtering method characterized in that. 제 13 항에 있어서,The method of claim 13, 상기 필터링 여부 결정 단계는,The determining whether to filter, 상기 결정된 필터링 방향이 상기 조건을 만족하지 못하면, 상기 해당 경계의 수직 방향에 대해 상기 조건을 만족하는지의 여부를 확인하고, 그 확인 결과에 따라 상기 수직 방향에 대한 필터링 여부를 결정하는 것을 특징으로 하는 디블록킹 필터링 방법.If the determined filtering direction does not satisfy the condition, it is determined whether the condition is satisfied with respect to the vertical direction of the corresponding boundary, and according to the result of the checking, it is determined whether to filter the vertical direction. Deblocking filtering method. 제 11 항에 있어서,The method of claim 11, 상기 기 설정된 복수의 방향은 45도, 56.25도, 67.5도, 78.75도, 90도, 101.25도, 112.5도, 123.75도 및 135도를 포함하는 것을 특징으로 하는 디블록킹 필터링 방법.The predetermined plurality of directions include 45 degrees, 56.25 degrees, 67.5 degrees, 78.75 degrees, 90 degrees, 101.25 degrees, 112.5 degrees, 123.75 degrees, and 135 degrees. 제 11 항에 있어서,The method of claim 11, 상기 필터링 방향 결정 단계에서 상기 결정된 필터링 방향을 해당 서브 블록 에 대한 부가 정보로 기록하거나, 해당 서브 블록의 경계의 화소 중 상기 결정된 필터링 방향으로 필터링된 화소에 대해 부가 정보를 할당하여 기록하는 단계를 더 포함하는 것을 특징으로 하는 디블록킹 필터링 방법.In the determining of the filtering direction, recording the determined filtering direction as additional information for the corresponding subblock, or allocating and recording additional information for pixels filtered in the determined filtering direction among pixels on the boundary of the corresponding subblock. Deblocking filtering method comprising a. 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정 단계;A boundary strength determining step of determining the strength of a boundary between sub-blocks of the current block; 상기 서브 블록의 경계의 첫 번째의 화소에 대해서, 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하는 제 1 필터링 방향 결정 단계;A first filtering direction determining step of determining, with respect to the first pixel of the boundary of the sub block, one direction as a filtering direction based on an amount of change of pixel values between pixels corresponding to each direction among a plurality of preset directions; 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서, 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 최적 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하는, 제 2 필터링 방향 결정 단계;For the second or more pixels on the boundary of the sub-block, the direction most selected so far for the current sub-block is determined as the filtering direction, or the filtering direction of the immediately preceding pixel is determined as the optimal direction, or the filtering direction of the first pixel is determined. Determining a filtering direction according to the determining process; 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하는 화소 선택 단계;A pixel selecting step of selecting pixels to be filtered for each pixel at a boundary of the sub block based on the determined filtering direction; 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하는 필터링 여부 결정 단계; 및A filtering step determining step of determining whether or not to filter the determined filtering direction according to a relationship between pixel values between the selected pixels; And 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링 단계;A filtering step of performing filtering on the selected pixels in the determined filtering direction according to the determined filtering; 를포함하는 것을 특징으로 하는 디블록킹 필터링 방법.Deblocking filtering method comprising a. 제 17 항에 있어서,The method of claim 17, 상기 제 1 필터링 방향 결정 단계에서 상기 변화량은, The amount of change in the first filtering direction determination step, 해당 경계를 기준으로 마주하는 첫 번째 화소들간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 일 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 타 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 일 측의 세 번째 화소와 두 번째 화소간의 화소값 차이의 절대값, 및 상기 해당 경계를 기준으로 타 측의 세 번째 화소와 두 번째 화소간의 화소값 차이의 절대값에 근거하여 산출되고, 상기 산출된 변화량이 가장 작은 방향이 상기 필터링 방향으로 선정되는 것을 특징으로 하는 디블록킹 필터링 방법.Absolute value of the pixel value difference between the first pixels facing the corresponding boundary, absolute value of the pixel value difference between the first pixel and the second pixel on the basis of the corresponding boundary, and based on the corresponding boundary Absolute value of the pixel value difference between the second pixel and the first pixel on the side, absolute value of the pixel value difference between the third pixel and the second pixel on the basis of the corresponding boundary, and other side based on the corresponding boundary The deblocking filtering method is calculated based on the absolute value of the difference in pixel values between the third pixel and the second pixel, and a direction in which the calculated change amount is the smallest is selected as the filtering direction. 제 17 항에 있어서,The method of claim 17, 상기 필터링 여부 결정 단계는, The determining whether to filter, 상기 선택된 화소들간의 화소값의 관계가, 해당 경계를 기준으로 마주하는 첫 번째 화소들간의 화소값 차이의 절대값, 상기 해당 경계를 기준으로 일 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값, 및 상기 해당 경계를 기준으로 타 측의 두 번째 화소와 첫 번째 화소간의 화소값 차이의 절대값이 각각 기 설정된 문턱치들보다 작은 조건을 만족하는지의 여부에 따라, 상기 필터링 여부를 결정하는 것을 특징으로 하는 디블록킹 필터링 방법. The absolute value of the pixel value difference between the first pixels facing the boundary based on the relationship between the pixel values between the selected pixels, and the pixel value difference between the second pixel and the first pixel on one side based on the corresponding boundary. And whether or not the filtering is performed according to whether or not the absolute value of and the absolute value of the pixel value difference between the second pixel and the first pixel on the other side with respect to the corresponding boundary satisfy a condition smaller than the preset thresholds, respectively. Deblocking filtering method characterized in that. 제 17 항에 있어서,The method of claim 17, 상기 설정된 복수의 방향은 45도, 56.25도, 67.5도, 78.75도, 90도, 101.25도, 112.5도, 123.75도 및 135도를 포함하는 것을 특징으로 하는 디블록킹 필터링 방법.The set plurality of directions include 45 degrees, 56.25 degrees, 67.5 degrees, 78.75 degrees, 90 degrees, 101.25 degrees, 112.5 degrees, 123.75 degrees, and 135 degrees. 영상의 현재 블록을 예측하여 예측 블록을 생성하는 예측부;A prediction unit for predicting a current block of an image and generating a prediction block; 상기 현재 블록에서 상기 예측 블록을 감산하여 잔차 블록을 생성하는 감산부;A subtraction unit for generating a residual block by subtracting the prediction block from the current block; 상기 잔차 블록을 주파수 영역으로 변환하는 변환부;A transformer for converting the residual block into a frequency domain; 상기 변환된 잔차 블록을 양자화하는 양자화부; A quantizer for quantizing the transformed residual block; 상기 양자화된 잔차 블록을 부호화하는 부호화부;An encoder which encodes the quantized residual block; 상기 잔차 블록을 역 양자화하는 역양자화부;An inverse quantizer for inversely quantizing the residual block; 상기 역 양자화된 잔차 블록을 시간축상의 화소 신호를 갖는 잔차 블록으로 역변환하는 역변환부;An inverse transform unit for inversely transforming the inverse quantized residual block into a residual block having a pixel signal on a time axis; 상기 역변환된 잔차 블록에 상기 예측 블록을 가산하여 현재 블록을 복원하는 가산부; 및An adder configured to add the prediction block to the inverse transformed residual block to restore a current block; And 상기 복원된 현재 블록을 디블로킹 필터링하되, 상기 복원된 현재 블록의 서브 블록의 경계의 각 화소에 대해 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하고, 상기 서브 블록의 경계의 모든 화소에 대해 상기 선정된 다수의 최적 방향 중에서 최다 선정된 방향 을 해당 서브 블록의 필터링 방향으로 결정하며, 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 디블로킹 필터부;The deblocking filtering of the restored current block is performed, and an optimal direction is determined based on the amount of change of pixel values between pixels corresponding to each direction among a plurality of preset directions for each pixel of the boundary of the subblock of the restored current block. Select a direction among the selected plurality of optimal directions for all the pixels on the boundary of the sub block as the filtering direction of the corresponding sub block, and determine the determined filtering direction for each pixel on the boundary of the sub block. Select the pixels to be filtered based on the control, determine whether to filter in the determined filtering direction according to the relationship between the pixel values between the selected pixels, and determine the selected pixels in the determined filtering direction according to the determined filtering. A deblocking filter unit performing filtering; 를 포함하는 것을 특징으로 하는 동영상 부호화 장치.Video encoding apparatus comprising a. 영상의 현재 블록을 예측하여 예측 블록을 생성하는 예측부;A prediction unit for predicting a current block of an image and generating a prediction block; 상기 현재 블록에서 상기 예측 블록을 감산하여 잔차 블록을 생성하는 감산부;A subtraction unit for generating a residual block by subtracting the prediction block from the current block; 상기 잔차 블록을 주파수 영역으로 변환하는 변환부;A transformer for converting the residual block into a frequency domain; 상기 변환된 잔차 블록을 양자화하는 양자화부; A quantizer for quantizing the transformed residual block; 상기 양자화된 잔차 블록을 부호화하는 부호화부;An encoder which encodes the quantized residual block; 상기 잔차 블록을 역 양자화하는 역양자화부;An inverse quantizer for inversely quantizing the residual block; 상기 역 양자화된 잔차 블록을 시간축상의 화소 신호를 갖는 잔차 블록으로 역변환하는 역변환부;An inverse transform unit for inversely transforming the inverse quantized residual block into a residual block having a pixel signal on a time axis; 상기 역변환된 잔차 블록에 상기 예측 블록을 가산하여 현재 블록을 복원하는 가산부; 및An adder configured to add the prediction block to the inverse transformed residual block to restore a current block; And 상기 복원된 현재 블록을 디블로킹 필터링하되, 상기 복원된 현재 블록의 서브 블록의 경계의 첫 번째의 화소에 대해서는 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하고, 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서는 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 필터링 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하며, 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 디블로킹 필터부;The deblocking filtering of the restored current block is performed, and the first pixel of the boundary of the subblock of the restored current block is one based on a change amount of pixel values between pixels corresponding to each direction among a plurality of preset directions. Determine the direction of as the filtering direction, and for the second or more pixels on the boundary of the sub block, determine the direction most selected so far for the current sub block as the filtering direction, or determine the filtering direction of the immediately preceding pixel as the filtering direction, or And determining a filtering direction according to the filtering direction determining process of the first pixel, selecting pixels to be filtered based on the determined filtering direction for each pixel of the boundary of the sub-block, and selecting a pixel value between the selected pixels. Determine whether to filter the determined filtering direction according to the relationship; The deblocking filter unit according to whether the specified filter that performs filtering on the selected pixel of the determined filtering direction; 를 포함하는 것을 특징으로 하는 동영상 부호화 장치.Video encoding apparatus comprising a. 비트스트림을 복호화하여 잔차 블록을 추출하는 복호화부;A decoder which extracts a residual block by decoding the bitstream; 상기 잔차 블록을 역 양자화하는 역양자화부;An inverse quantizer for inversely quantizing the residual block; 상기 역 양자화된 잔차 블록을 역 변환하는 역변환부;An inverse transform unit for inversely transforming the inverse quantized residual block; 현재 블록을 예측하여 예측 블록을 생성하는 예측부;A prediction unit for predicting a current block to generate a prediction block; 상기 역 변환된 잔차 블록과 상기 예측 블록을 가산하여 상기 현재 블록을 복원하는 가산부; 및An adder configured to add the inverse transformed residual block and the prediction block to restore the current block; And 상기 복원된 현재 블록을 디블로킹 필터링하되, 상기 복원된 현재 블록의 서브 블록의 경계의 모든 화소 중 수신된 부가 정보에 대응하는 특정 화소에 대해, 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거 하여 최적 방향을 선정하고, 상기 선정된 최적 방향을 해당 서브 블록의 필터링 방향으로 결정하며, 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 디블로킹 필터부;Deblocking and filtering the reconstructed current block, and among the pixels corresponding to each of a plurality of preset directions for a specific pixel corresponding to the received additional information among all the pixels on the boundary of the sub-block of the reconstructed current block. Selecting an optimal direction based on the amount of change in the pixel value, determining the selected optimal direction as the filtering direction of the corresponding subblock, and filtering the pixel based on the determined filtering direction for each pixel at the boundary of the subblock. Deblocking for filtering the selected filtering direction according to the relationship between the pixel values of the selected pixels, and performing filtering on the selected pixels in the determined filtering direction according to the determined filtering. Filter unit; 를 포함하는 것을 특징으로 하는 동영상 복호화 장치.Video decoding apparatus comprising a. 비트스트림을 복호화하여 잔차 블록을 추출하는 복호화부;A decoder which extracts a residual block by decoding the bitstream; 상기 잔차 블록을 역 양자화하는 역양자화부;An inverse quantizer for inversely quantizing the residual block; 상기 역 양자화된 잔차 블록을 역 변환하는 역변환부;An inverse transform unit for inversely transforming the inverse quantized residual block; 현재 블록을 예측하여 예측 블록을 생성하는 예측부;A prediction unit for predicting a current block to generate a prediction block; 상기 역 변환된 잔차 블록과 상기 예측 블록을 가산하여 상기 현재 블록을 복원하는 가산부; 및An adder configured to add the inverse transformed residual block and the prediction block to restore the current block; And 상기 가산부 의해 복원된 상기 현재 블록을 디블로킹 필터링하되, 상기 복원된 현재 블록의 서브 블록의 경계의 각 화소에 대해, 해당 서브 블록의 부가 정보로서 수신된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 수신된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 수신된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 디블로킹 필터부;Deblocking and filtering the current block reconstructed by the adder, and selecting pixels to be filtered based on the filtering direction received as additional information of the corresponding subblock, for each pixel of the boundary of the subblock of the reconstructed current block. And determining whether to filter the received filtering direction according to the relationship between the pixel values between the selected pixels, and performing deblocking on the selected pixels of the received filtering direction according to the determined filtering. Filter unit; 를 포함하는 것을 특징으로 하는 동영상 부호화 장치.Video encoding apparatus comprising a. 비트스트림을 복호화하여 잔차 블록을 추출하는 복호화부;A decoder which extracts a residual block by decoding the bitstream; 상기 잔차 블록을 역 양자화하는 역양자화부;An inverse quantizer for inversely quantizing the residual block; 상기 역 양자화된 잔차 블록을 역 변환하는 역변환부;An inverse transform unit for inversely transforming the inverse quantized residual block; 현재 블록을 예측하여 예측 블록을 생성하는 예측부;A prediction unit for predicting a current block to generate a prediction block; 상기 역 변환된 잔차 블록과 상기 예측 블록을 가산하여 상기 현재 블록을 복원하는 가산부; 및An adder configured to add the inverse transformed residual block and the prediction block to restore the current block; And 상기 가산부 의해 복원된 상기 현재 블록을 디블로킹 필터링하되, 상기 복원된 현재 블록의 서브 블록의 경계의 첫 번째의 화소에 대해서는 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필터링 방향으로 결정하고, 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서는 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 필터링 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하며, 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하고, 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하며, 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 디블로킹 필터부;Deblocking filtering the current block reconstructed by the adder, and for the first pixel of the boundary of the subblock of the reconstructed current block, an amount of change in pixel values between pixels corresponding to each direction among a plurality of preset directions. Determine a direction based on the filtering direction, and for the second or more pixels on the boundary of the sub block, determine the direction most selected so far as the filtering direction for the current sub block, or filter the filtering direction of the immediately preceding pixel. Or the filtering direction according to the filtering direction determination process of the first pixel, and selecting pixels to be filtered on the basis of the determined filtering direction for each pixel of the boundary of the sub-block, and between the selected pixels. Whether to filter for the determined filtering direction according to the relationship of pixel values of A deblocking filter unit configured to determine and to filter the selected pixels in the determined filtering direction according to the determined filtering; 를 포함하는 것을 특징으로 하는 동영상 복호화 장치.Video decoding apparatus comprising a. 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정 기능;A boundary strength determination function for determining the strength of a boundary between sub-blocks of the current block; 상기 서브 블록의 경계의 각 화소에 대해 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 최적 방향을 선정하는 최적 방향 선정 기능;An optimum direction selection function for selecting an optimum direction based on a change amount of pixel values between pixels corresponding to each direction among a plurality of preset directions for each pixel of the boundary of the sub-block; 상기 서브 블록의 경계의 모든 화소에 대해 상기 선정된 다수의 최적 방향 중에서 최다 선정된 방향을 해당 서브 블록의 필터링 방향으로 결정하는 필터링 방향 결정 기능;A filtering direction determining function for determining, as the filtering direction of the corresponding sub block, the most selected direction among the plurality of selected optimal directions for all pixels on the boundary of the sub block; 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하는 화소 선택 기능;A pixel selection function for selecting pixels to be filtered for each pixel at a boundary of the sub block based on the determined filtering direction; 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하는 필터링 여부 결정 기능; 및A filtering or not determining function for determining whether or not to filter the determined filtering direction according to a relationship between pixel values between the selected pixels; And 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링 기능;A filtering function for performing filtering on the selected pixels in the determined filtering direction according to the determined filtering; 을 포함하는 것을 특징으로 하는 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록 매체.And a computer readable recording medium having recorded thereon a program. 현재 블록의 서브 블록간의 경계의 세기를 결정하는 경계 세기 결정 기능;A boundary strength determination function for determining the strength of a boundary between sub-blocks of the current block; 상기 서브 블록의 경계의 첫 번째의 화소에 대해서, 기 설정된 복수의 방향 중 각 방향에 대응하는 화소들간의 화소값의 변화량에 근거하여 하나의 방향을 필 터링 방향으로 결정하는 제 1 필터링 방향 결정 기능;A first filtering direction determining function for determining the first direction as the filtering direction for the first pixel of the boundary of the sub-block, based on the amount of change in the pixel value between the pixels corresponding to each direction among a plurality of preset directions. ; 상기 서브 블록의 경계의 두 번째 이상의 화소에 대해서, 현재 서브 블록에 대해 현재까지 최다 선정된 방향을 필터링 방향으로 결정하거나, 직전 화소의 필터링 방향을 최적 방향으로 결정하거나, 상기 첫 번째 화소의 필터링 방향 결정 과정에 따라 필터링 방향을 결정하는, 제 2 필터링 방향 결정 기능;For the second or more pixels on the boundary of the sub-block, the direction most selected so far for the current sub-block is determined as the filtering direction, or the filtering direction of the immediately preceding pixel is determined as the optimal direction, or the filtering direction of the first pixel is determined. A second filtering direction determining function for determining a filtering direction according to the determining process; 상기 서브 블록의 경계의 각 화소에 대해 상기 결정된 필터링 방향에 근거하여 필터링할 화소들을 선택하는 화소 선택 기능;A pixel selection function for selecting pixels to be filtered for each pixel at a boundary of the sub block based on the determined filtering direction; 상기 선택된 화소들간의 화소값의 관계에 따라 상기 결정된 필터링 방향에 대한 필터링 여부를 결정하는 필터링 여부 결정 기능; 및A filtering or not determining function for determining whether or not to filter the determined filtering direction according to a relationship between pixel values between the selected pixels; And 상기 결정된 필터링 여부에 따라 상기 결정된 필터링 방향의 상기 선택된 화소들에 대해 필터링을 수행하는 필터링 기능;A filtering function for performing filtering on the selected pixels in the determined filtering direction according to the determined filtering; 을 포함하는 것을 특징으로 하는 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록 매체.And a computer readable recording medium having recorded thereon a program.
KR1020080105718A 2008-10-27 2008-10-28 Video encoding / decoding device, deblocking filtering device and method for the same, and recording medium Active KR101534050B1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020080105718A KR101534050B1 (en) 2008-10-28 2008-10-28 Video encoding / decoding device, deblocking filtering device and method for the same, and recording medium
US13/126,144 US9596485B2 (en) 2008-10-27 2009-10-22 Motion picture encoding/decoding apparatus, adaptive deblocking filtering apparatus and filtering method for same, and recording medium
PCT/KR2009/006127 WO2010050699A2 (en) 2008-10-27 2009-10-22 Motion picture encoding/decoding apparatus, adaptive deblocking filtering apparatus and filtering method for same, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020080105718A KR101534050B1 (en) 2008-10-28 2008-10-28 Video encoding / decoding device, deblocking filtering device and method for the same, and recording medium

Publications (2)

Publication Number Publication Date
KR20100046732A true KR20100046732A (en) 2010-05-07
KR101534050B1 KR101534050B1 (en) 2015-07-06

Family

ID=42273946

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020080105718A Active KR101534050B1 (en) 2008-10-27 2008-10-28 Video encoding / decoding device, deblocking filtering device and method for the same, and recording medium

Country Status (1)

Country Link
KR (1) KR101534050B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9479791B2 (en) 2010-05-12 2016-10-25 Sk Telecom Co., Ltd. Image-filtering method and apparatus, and encoding/decoding method and apparatus using same
KR20240040066A (en) * 2018-09-20 2024-03-27 한국전자통신연구원 Method and apparatus for encoding/decoding image, recording medium for stroing bitstream

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101000926B1 (en) * 2004-03-11 2010-12-13 삼성전자주식회사 Filters and Filtering Methods to Eliminate Image Discontinuities
US7961963B2 (en) * 2005-03-18 2011-06-14 Sharp Laboratories Of America, Inc. Methods and systems for extended spatial scalability with picture-level adaptation
JP4712642B2 (en) * 2006-08-17 2011-06-29 富士通セミコンダクター株式会社 Deblocking filter, image encoding device, and image decoding device
KR100819289B1 (en) * 2006-10-20 2008-04-02 삼성전자주식회사 Deblocking Filtering Method and Deblocking Filter of Image Data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9479791B2 (en) 2010-05-12 2016-10-25 Sk Telecom Co., Ltd. Image-filtering method and apparatus, and encoding/decoding method and apparatus using same
US9532065B2 (en) 2010-05-12 2016-12-27 Sk Telecom Co., Ltd. Image-filtering method and apparatus, and encoding/decoding method and apparatus using same
US9787988B2 (en) 2010-05-12 2017-10-10 Sk Telecom Co., Ltd. Image-filtering method and apparatus, and encoding/decoding method and apparatus using same
KR20240040066A (en) * 2018-09-20 2024-03-27 한국전자통신연구원 Method and apparatus for encoding/decoding image, recording medium for stroing bitstream

Also Published As

Publication number Publication date
KR101534050B1 (en) 2015-07-06

Similar Documents

Publication Publication Date Title
KR101590500B1 (en) / Video encoding/decoding apparatus Deblocking filter and deblocing filtering method based intra prediction direction and Recording Medium therefor
US10469840B2 (en) Motion picture encoding apparatus and method thereof
US9596485B2 (en) Motion picture encoding/decoding apparatus, adaptive deblocking filtering apparatus and filtering method for same, and recording medium
KR101432775B1 (en) Method and apparatus for image encoding / decoding using arbitrary pixels in sub-blocks
KR101997604B1 (en) Method and Apparatus for Video Encoding/Decoding
KR101444667B1 (en) Video Coding Method and Apparatus Using Bi-Direction Intra Prediction
KR101431545B1 (en) Method and apparatus for Video encoding and decoding
KR101538704B1 (en) Method and apparatus for encoding and decoding an image using an interpolation filter adaptively
US9503725B2 (en) Method and apparatus for encoding/decoding image for performing intraprediction using pixel value filtered according to prediction mode
KR101955374B1 (en) Method and Apparatus for Image Encoding/Decoding By Fast Coding Unit Mode Decision
KR20100004037A (en) Method and apparatus for encoding video, and method and apparatus for decoding video
KR20150095232A (en) Method and Apparatus for Filtering Image and Encoding/Decoding of Video Data Using Thereof
KR20130011878A (en) Image encoding/decoding method and apparatus using deblocking filtering
KR101341993B1 (en) Method and Apparatus for Image Encoding/Decoding Using High Resolution Filter
KR100809603B1 (en) Pixel-based image encoding and decoding apparatus and method
KR101943058B1 (en) Method and Apparatus for Video Encoding/Decoding
KR100727990B1 (en) An intra prediction coding method of an image and an encoding apparatus using the method
KR101997599B1 (en) Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization
KR101943425B1 (en) Method and Apparatus for Image Encoding/Decoding using Efficient Non-fixed Quantization
KR101534050B1 (en) Video encoding / decoding device, deblocking filtering device and method for the same, and recording medium
KR101597253B1 (en) Video encoding / decoding device, adaptive deblocking filtering device and filtering method therefor, and recording medium
KR101379189B1 (en) Video Coding Method and Apparatus by Using Filtering Motion Compensation Frame
KR101483495B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR101537767B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock
KR101534014B1 (en) Video Encoding/Decoding Method and Apparatus Using Arbitrary Pixel in Subblock

Legal Events

Date Code Title Description
PA0109 Patent application

St.27 status event code: A-0-1-A10-A12-nap-PA0109

PG1501 Laying open of application

St.27 status event code: A-1-1-Q10-Q12-nap-PG1501

PN2301 Change of applicant

St.27 status event code: A-3-3-R10-R13-asn-PN2301

St.27 status event code: A-3-3-R10-R11-asn-PN2301

R18-X000 Changes to party contact information recorded

St.27 status event code: A-3-3-R10-R18-oth-X000

A201 Request for examination
PA0201 Request for examination

St.27 status event code: A-1-2-D10-D11-exm-PA0201

P22-X000 Classification modified

St.27 status event code: A-2-2-P10-P22-nap-X000

E902 Notification of reason for refusal
PE0902 Notice of grounds for rejection

St.27 status event code: A-1-2-D10-D21-exm-PE0902

P11-X000 Amendment of application requested

St.27 status event code: A-2-2-P10-P11-nap-X000

P13-X000 Application amended

St.27 status event code: A-2-2-P10-P13-nap-X000

E90F Notification of reason for final refusal
PE0902 Notice of grounds for rejection

St.27 status event code: A-1-2-D10-D21-exm-PE0902

P11-X000 Amendment of application requested

St.27 status event code: A-2-2-P10-P11-nap-X000

P13-X000 Application amended

St.27 status event code: A-2-2-P10-P13-nap-X000

P22-X000 Classification modified

St.27 status event code: A-2-2-P10-P22-nap-X000

E701 Decision to grant or registration of patent right
PE0701 Decision of registration

St.27 status event code: A-1-2-D10-D22-exm-PE0701

PR0701 Registration of establishment

St.27 status event code: A-2-4-F10-F11-exm-PR0701

PR1002 Payment of registration fee

St.27 status event code: A-2-2-U10-U11-oth-PR1002

Fee payment year number: 1

PG1601 Publication of registration

St.27 status event code: A-4-4-Q10-Q13-nap-PG1601

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 4

FPAY Annual fee payment

Payment date: 20190502

Year of fee payment: 5

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 5

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 6

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 7

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 8

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 9

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 10

PR1001 Payment of annual fee

St.27 status event code: A-4-4-U10-U11-oth-PR1001

Fee payment year number: 11