KR101603887B1 - Method for coding data by fast coding unit decision in high efficiency video coding - Google Patents

Method for coding data by fast coding unit decision in high efficiency video coding Download PDF

Info

Publication number
KR101603887B1
KR101603887B1 KR1020140045906A KR20140045906A KR101603887B1 KR 101603887 B1 KR101603887 B1 KR 101603887B1 KR 1020140045906 A KR1020140045906 A KR 1020140045906A KR 20140045906 A KR20140045906 A KR 20140045906A KR 101603887 B1 KR101603887 B1 KR 101603887B1
Authority
KR
South Korea
Prior art keywords
mode
current
coding
cbf
cost
Prior art date
Application number
KR1020140045906A
Other languages
Korean (ko)
Other versions
KR20150121278A (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 KR1020140045906A priority Critical patent/KR101603887B1/en
Publication of KR20150121278A publication Critical patent/KR20150121278A/en
Application granted granted Critical
Publication of KR101603887B1 publication Critical patent/KR101603887B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/107Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field

Landscapes

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

Abstract

본 발명은 HEVC(High Efficiency Video Coding)에서의 고속 CU(Coding Unit) 결정을 통한 부호화방법에 관한 것으로서, CTU(Coding Tree Unit) 부호화 이전에 미리 초기 CU 크기를 예측하여 현재 CU와의 비교를 통해 현재 CU의 부호화 생략여부를 결정하며, CU 부호화 과정에서 CBF(Coded Block Flag)와 PU(Prediction Unit) 모드 예측 비용을 이용한 조건을 확인하여 빠른 CU 결정이 이루어지도록 하며, 인터 PU 모드 예측 과정에서 얻은 CBF값들을 이용하여 인트라 모드 예측 생략이 가능하다. 본 발명에 따르면, 적은 화질 열화를 갖으면서 빠른 부호화 시간을 갖는 고속 CU 결정 방법을 제공할 수 있다.The present invention relates to a coding method based on a determination of a fast CU (Coding Unit) in a HEVC (High Efficiency Video Coding), in which an initial CU size is predicted before a CTU (Coding Tree Unit) (CU) encoding process. In the CU encoding process, fast CU determination is performed by checking the conditions using CBF (Coded Block Flag) and PU (Prediction Unit) mode prediction cost, and CBF It is possible to omit intra mode prediction using values. According to the present invention, it is possible to provide a fast CU determination method having a fast coding time while having a small image deterioration.

Description

HEVC에서의 고속 CU 결정을 통한 부호화방법{METHOD FOR CODING DATA BY FAST CODING UNIT DECISION IN HIGH EFFICIENCY VIDEO CODING}Field of the Invention [0001] The present invention relates to an encoding method using a high speed CU in HEVC,

본 발명은 HEVC(High Efficiency Video Coding) 기반 부호화방법에 관한 것으로, 더욱 상세하게는 고속 CU 결정을 위해 초기 CU(Coding Unit) 크기를 예측하여 해당 CU의 부호화 생략여부를 결정하고, CBF(Coded Block Flag)와 PU(Prediction Unit) 모드 예측 비용을 이용하는 기법과 인트라 모드 예측 생략 기법을 이용하여 부호화 시간을 줄이도록 하는 HEVC에서의 고속 CU 결정을 통한 부호화방법에 관한 것이다.
More particularly, the present invention relates to an HEVC (High Efficiency Video Coding) -based encoding method, and more particularly, to a method and apparatus for predicting an initial CU (Coding Unit) size for determining a fast CU, The present invention relates to a coding method using a fast CU decision in an HEVC that reduces a coding time using a predictive cost mode and a prediction mode using a Prediction Unit (PU) mode.

최근, 고화질의 고해상도 HD(High Definition) 콘텐츠 및 HD 방송 서비스가 이루어지고 있으며, 더 높은 화질에 대한 사용자의 요구에 따라 조만간 초고화질의 UHD(Ultra High Definition) 콘텐츠 및 UHD 방송 서비스가 제공될 것이다. 이러한 UHD의 서비스를 제공하기 위해서는 비디오 압축 표준 기술인 HEVC(High Efficiency Video Coding) 기술이 필요하다. 이 비디오 압축 표준 기술은 H.264/AVC의 두 배 압축률을 갖는 것을 목표로 하여 국제 표준화 단체인 ITU-T와 SO/IEC MPEG의 공동 작업으로 JCT-TV팀에서 표준화가 이루어지고 있다. 현재는 표준화가 마무리된 상태이며, H.264/AVC의 참조 소프트웨어 JM 18.4와 HEVC의 HM 9.0을 비교하였을 경우, HEVC는 약 40% 정도의 압축 효율을 갖는다.2. Description of the Related Art Recently, high definition (HD) content and HD broadcasting services have been provided. In response to a user request for a higher image quality, Ultra High Definition (UHD) content and UHD broadcasting service will be provided soon. To provide such UHD services, the HEVC (High Efficiency Video Coding) technology is required. This video compression standard technology is being standardized by the JCT-TV team as a joint work of ITU-T and SO / IEC MPEG, which are international standardization organizations, with the aim of having double compression ratio of H.264 / AVC. At present, the standardization is completed. When the reference software JM 18.4 of H.264 / AVC is compared with HM 9.0 of HEVC, the HEVC has a compression efficiency of about 40%.

HEVC는 H.264/AVC의 기반으로 이루어졌기 때문에 비슷한 코딩 구조를 갖는다. 그러나, H.264/AVC는 고정된 16x16 크기의 매크로 블록을 기본 단위로 갖는 반면에, HEVC는 가변적으로 크기 조절이 가능한 CTU(Coding Tree Unit)를 기본 단위로 갖는다. HEVC는 영상 내의 슬라이스를 가장 큰 CU(Coding Unit) 크기로 분할한 CTU의 번호 순서로 부호화가 이루어진다. 각각의 CTU는 재귀적인 쿼드 트리 구조에 의해 더 작은 CU들로 나누어지며, 이러한 CU는 한 개의 PU(Prediction Unit) 또는 그 이상의 PU들에 의해 예측이 되고, TU(Transform Unit)의 단위로 변환(Transform)이 수행된다. 이러한 TU 역시 재귀적인 쿼드 트리의 구조를 갖는다. 따라서 다양한 크기의 CU와 PU, TU가 존재한다.Since HEVC is based on H.264 / AVC, it has similar coding structure. However, H.264 / AVC has a fixed 16x16 macroblock as a basic unit, while HEVC has a variable size scalable CTU (Coding Tree Unit) as a basic unit. The HEVC encodes the slices in the image in the order of the CTU number obtained by dividing the slice into the largest CU (Coding Unit) size. Each CTU is divided into smaller CUs by a recursive quad tree structure, and these CUs are predicted by one PU (Prediction Unit) or more PUs and transformed into units of TU (Transform Unit) Transform) is performed. This TU also has a recursive quadtree structure. Therefore, there are various sizes of CU, PU, and TU.

재귀적인 쿼드 트리 구조를 갖는 CU 부호화 과정에서 최적의 CU를 결정하기 위해서는 CTU 내에서 가능한 모든 크기의 CU들에 대해서 부호화를 하여 비용을 계산하고, 계산 결과를 비교하여 더 작은 비용을 갖는 CU를 최적의 CU로 선택한다. HEVC의 참조 소프트웨어에서의 최적의 CU 결정 과정은 다음과 같다. 한 개의 CTU에 대한 CU 비용 조사를 도 1의 블록 번호 순서로 수행한다. 현재 CU의 비용을 계산한 후, 한 깊이(Depth) 아래의 하위 CU의 비용을 계산하는데, 4개의 하위 CU 비용 계산이 끝날 때마다 4개의 하위 CU 비용의 합과 해당 하위 CU들의 상위 CU 1개의 비용을 비교하여, 더 작은 비용을 갖는 CU 크기가 일단은 임시적으로 최적의 CU 크기가 된다. 한 개의 CTU에 대한 비용 계산이 모두 끝나면 임시적인 최적의 CU들이 최종적으로 최적의 CU가 된다.In order to determine the optimal CU in the CU coding process having a recursive quad tree structure, the CUs of all sizes within the CTU are encoded and the cost is calculated. CU of < / RTI > The optimal CU decision process in HEVC reference software is as follows. The CU cost investigation for one CTU is performed in the order of block numbers in Fig. After calculating the cost of the current CU, the costs of the lower CUs under one depth are calculated. At the end of each of the four lower CU cost calculations, the sum of the four lower CU costs and the upper CUs of the lower CUs Comparing the cost, the CU size with the smaller cost becomes temporarily the optimal CU size temporarily. After finishing the cost calculation for one CTU, the temporary optimal CUs finally become the optimal CU.

예를 들어, 7번 CU까지의 비용 계산이 끝났을 때, 4~7번의 CU 비용의 합과 3번 CU의 비용을 비교하여, 만약 3번 CU 비용이 더 작은 값을 갖는다면, 임시적으로 3번 CU가 최적의 CU로 결정된다. 마지막 85번 CU 까지 비용 계산이 끝났을 때, 82~85 CU들의 비용 합과 81번 CU의 비용을 비교하여 임시적인 최적의 CU를 구한다. 만약 81번이 임시적으로 최적의 CU가 되었다면, 81번의 비용은 다시 66, 71, 76번 CU 위치의 임시적인 최적의 비용들과 합하여, 65번 CU의 비용과 비교된다. 여기서 더 작은 비용을 갖는 CU는 2, 23, 44번 위치의 임시적인 최적의 CU 비용과 합하여 마지막으로 한 번 더 1번 CU의 비용과 비교되어, 더 적은 비용을 갖는 CU가 최종적으로 최적의 CU로 결정된다. 이처럼 한 개의 CTU에 대한 최적의 CU 결정을 위해서는 많은 계산 처리가 필요하다.For example, at the end of cost calculation to CU 7, compare the sum of CU costs 4 to 7 and the cost of CU 3, if the cost of CU 3 is smaller, The CU is determined as the optimum CU. At the end of the cost calculations up to the last 85 CUs, a temporary optimal CU is obtained by comparing the cost of 82 to 85 CUs to the cost of 81 CUs. If 81 is temporarily the optimal CU, the cost of 81 is again compared to the cost of CU 65, combined with the temporary optimal costs of CU 66, 71, and 76. Here, the CU having a smaller cost is compared with the cost of the CU once more, finally combined with the temporary optimal CU cost at the positions 2, 23, and 44, so that the CU having a lower cost finally reaches the optimal CU . In order to determine the optimal CU for a single CTU, a lot of calculation processing is required.

최적의 CU를 결정하기 위한 CU 비용 계산은 현재 CU에 대해서 도 2의 모든 PU 모드 예측이 수행되고 이 중에서 가장 적은 비용을 갖는 PU 모드가 최적의 PU 모드로 선택되어 이루어진다. 또한 각각의 PU 모드 예측 수행 과정에서는 해당 PU 모드를 이용해서 얻은 예측치 블록으로 현재 CU 블럭을 부호화 한 후에 다시 역변환과 역양자화를 거쳐 복원된 블록과의 차를 이용하여 비용을 계산한다. 비용을 계산하는 방법은 아래의 [수학식 1], [수학식 2]와 같다.
The CU cost calculation for determining the optimal CU is performed by selecting all of the PU mode predictions of FIG. 2 for the current CU and the PU mode having the lowest cost among the optimal PU modes. Also, in each PU mode prediction process, the current CU block is encoded into the predicted block obtained using the PU mode, and then the cost is calculated by using the difference between the restored block and the inverse transformed and inverse-quantized block. The method of calculating the cost is expressed by the following equations (1) and (2).

Figure 112014036588188-pat00001
Figure 112014036588188-pat00001

Figure 112014036588188-pat00002
Figure 112014036588188-pat00002

SSEmode는 원영상의 블록영상인 OrgBlock과 원영상의 블록영상이 부호화와 복호화 거쳐져서 복원된 블록 영상 RecBlock간의 차의 제곱 값이다. RDmode값은 이러한 SSE와 라그랑지안 계수인값인 λ, 그리고 현재 CU를 현재 PU 모드를 이용해서 인코딩할 때 필요한 비트수 R을 이용해서 계산되어진다.
SSEmode is the square of the difference between OrgBlock, which is the block image of the original image, and RecBlock, which is the reconstructed block image after the original block image is encoded and decoded. The RDmode value is calculated using this SSE and λ, which is a Lagrangian coefficient, and the number of bits R needed to encode the current CU using the current PU mode.

HEVC는 재귀적 쿼드 트리 구조 내에서, 이전의 H.264/AVC보다 비교적 다양한 블록 크기와 다양한 블록 모양에 의한 움직임 예측과 35개의 인트라 모드 예측을 통하여 최적의 비용(RDC, Rate-Distortion Cost)을 얻어 최소의 비용을 가지는 모드로 부호화되어 진다. 이러한 재귀적 쿼드 트리 구조 내에서 다양한 모드와 블록 크기의 예측을 통해 기존의 비디오 부호화율과 비교하여 동일 PSNR(Pick to Signal Noise Ratio)에서 약 두 배의 압축율을 갖는다. 하지만 복잡도는 몇 배 이상 증가하게 된다. 높은 복잡도는 빠른 처리와 실시간 처리에 문제가 될 수 있다.
In the recursive quad-tree structure, HEVC estimates the optimal cost (RDC, Rate-Distortion Cost) through motion estimation with various block sizes, block shapes, and intra mode prediction over previous H.264 / AVC And is encoded into a mode having a minimum cost. Through the prediction of various modes and block sizes in this recursive quad tree structure, it has about twice the compression ratio in the same PSNR (Pick to Signal Noise Ratio) compared to the existing video coding rate. However, the complexity increases several times. High complexity can be a problem for fast processing and real-time processing.

대한민국 공개특허공보 제10-2013-0112374호(공개일 2013.10.14.)Korean Patent Publication No. 10-2013-0112374 (published on October 14, 2013).

따라서, 본 발명은 상기한 종래 기술의 문제점을 해결하기 위해 이루어진 것으로서, 본 발명의 목적은 고속 CU 결정을 위해 초기 CU 크기를 예측하여 해당 CU의 부호화 생략여부를 결정하고, CBF와 PU 모드 예측 비용을 이용하는 기법과 인트라 모드 예측 생략 기법을 이용함으로써, HEVC의 부호화 복잡도를 감소시켜 빠른 부호화 시간을 갖도록 하는 HEVC에서의 고속 CU 결정을 통한 부호화방법을 제공하는데 있다.
SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a method and apparatus for predicting an initial CU size for fast CU determination and determining whether to exclude a corresponding CU from coding, And a decoding method using an intra mode prediction omitting method, and to provide a coding method using a fast CU decision in an HEVC in which a coding complexity of an HEVC is reduced to have a fast coding time.

상기와 같은 목적을 달성하기 위한 본 발명의 HEVC에서의 고속 CU 결정을 통한 부호화방법은, CU 부호화 이전에, 현재 CU의 주변 CU들과 이전 프레임에서의 현재 CTU 위치 CU들의 위치에서 가장 큰 CU의 깊이값들 중에서 중간값을 선택하고, 상기 중간값에서 한 깊이값을 뺀 초기 CU 깊이값에 대응하는 초기 CU의 크기를 예측하는 단계를 포함하며, 상기 현재 CU의 크기가 상기 초기 CU의 크기보다 클 경우에 상기 현재 CU 및 상기 현재 CU의 하위 CU들의 부호화를 생략하는 것을 특징으로 한다.According to another aspect of the present invention, there is provided a method of encoding a fast CU in an HEVC, the method comprising: before a CU encoding, encoding a CU of a current CU in a current frame, Selecting an intermediate value among the depth values and predicting a size of an initial CU corresponding to an initial CU depth value obtained by subtracting a depth value from the intermediate value, wherein the size of the current CU is larger than the size of the initial CU The encoding of the current CU and the lower CUs of the current CU is skipped.

이 때, 상기 현재 CU의 크기가 상기 초기 CU의 크기보다 크지 않을 경우에, CU 부호화 과정에서, 상기 현재 CU의 인터 모드들의 CBF값들과 PU 모드 비용들을 확인 및 저장하는 단계를 포함하며, 상기 CBF와 SKIP 모드의 비용을 모두 이용한 조건을 각 PU 모드 비용과 비교하여 상기 현재 CU 내에 남아있는 다음 PU 모드 예측을 생략한다. 여기서, 상기 PU 모드의 비용이 이전의 SKIP 모드들의 비용의 평균값보다 작다면 상기 현재 CU 내에 남아있는 다음 PU 모드 예측을 생략하는 것이 바람직하다. 또한, 상기 평균값은, 이전의 SKIP 모드 비용 4개와 현재 SKIP 모드의 비용을 이용한 총 5개의 SKIP 모드 비용의 평균일 수 있다. 그리고, 상기 인터 모드들의 CBF값들에 대해, 인터 PU 모드가 수행될 때마다 서브 CBF를 구하고, 각 서브 CBF의 위치에 따라 AND 연산을 실행하여 서브 CBF 맵을 생성하여 CBF값이 0인 개수로 인트라 모드 생략 여부를 결정하는 것이 바람직하다. 이 때, 상기 CBF값이 0인 개수가 3개 이상인 경우에 인트라 모드를 생략하는 것이 바람직하다.
And checking and storing CBF values and PU mode costs of the inter mode of the current CU in the CU encoding process when the size of the current CU is not larger than the size of the initial CU, And the cost using the SKIP mode are compared with the cost of each PU mode to omit the next PU mode prediction remaining in the current CU. Here, it is desirable to omit the next PU mode prediction remaining in the current CU if the cost of the PU mode is less than the average value of the costs of the previous SKIP modes. Also, the average value may be an average of a total of five SKIP mode costs using the cost of the previous SKIP mode and the cost of the current SKIP mode. For each CBF value of the inter modes, a sub CBF is obtained every time the inter PU mode is performed, and an AND operation is performed according to the position of each sub CBF to generate a sub CBF map, It is preferable to determine whether or not the mode is omitted. In this case, it is preferable to omit the intra mode when the number of CBF values is 0 or more.

상술한 바와 같이, 본 발명에 의한 HEVC에서의 고속 CU 결정을 통한 부호화방법에 따르면, CTU 부호화가 이루어지기 전에 시작 CU 크기를 예측함으로써 불필요한 큰 크기의 CU 부호화를 생략할 수 있으므로, 부호화 시간을 감소시킬 수 있다.As described above, according to the encoding method using the fast CU determination in the HEVC according to the present invention, since the start CU size is predicted before the CTU encoding, unnecessary large-size CU encoding can be omitted, .

또한, CU 부호화 과정에서 CBF와 PU 모드 비용을 이용한 조건을 사용하여 빠른 CU 결정이 이루어질 수 있다.In addition, fast CU decision can be made using conditions using CBF and PU mode cost in CU encoding process.

그리고, 인터 PU 모드 예측 과정에서 얻은 서브 CBF값들을 이용해서 인트라 모드 예측 생략이 가능하여 부호화 시간을 감소시킬 수 있다.The intra-mode prediction can be omitted using the sub-CBF values obtained in the inter PU mode prediction process, thereby reducing the coding time.

한편, 본 발명은 표준 부호기 규격을 그대로 따르면서 적용할 수 있다.Meanwhile, the present invention can be applied while maintaining the standard encoder standard.

결국, 본 발명은 빠른 HEVC 부호화 속도를 요구하는 분야의 응용에 적용할 수 있다.
As a result, the present invention can be applied to applications requiring fast HEVC coding speed.

도 1은 통상의 쿼드 트리 구조 CU를 분할한 도면이다.
도 2는 통상의 PU 모드의 종류를 나타낸 도면이다.
도 3은 본 발명의 일 실시예에 의한 HEVC에서의 고속 CU 결정을 통한 부호화방법을 나타낸 흐름도이다.
도 4는 본 발명의 일 실시예에 의한 초기 CU 크기 예측을 결정하는 과정을 나타낸 개념도이다.
도 5는 본 발명의 일 실시예에 의한 인트라 모드 예측 생략을 위한 서브 CBF 맵 생성 과정을 나타낸 개념도이다.
FIG. 1 is a diagram of a conventional quad tree structure CU.
2 is a diagram showing a kind of a normal PU mode.
FIG. 3 is a flowchart illustrating a method of encoding by a fast CU determination in an HEVC according to an embodiment of the present invention.
4 is a conceptual diagram illustrating a process of determining an initial CU size prediction according to an embodiment of the present invention.
5 is a conceptual diagram illustrating a sub-CBF map generation process for omitting intra-mode prediction according to an embodiment of the present invention.

HEVC 비디오 부호화기는 재귀적 쿼드 트리 구조를 갖는 CU를 부호화에 적용함으로써 높은 부호화 효율을 얻는다. 그러나 이러한 재귀적 쿼드 트리 구조는 HEVC의 부호화 복잡도를 매우 증가시키는 결과를 갖는다. 이에 본 발명은 이러한 재귀적 쿼드 트리 구조 내에서 빠른 CU 결정이 가능한 알고리즘을 제공하고자 한다. 본 발명에서는, CTU 부호화 이전에 미리 초기 CU 크기를 예측하여 현재 CU와의 비교를 통해 현재 CU의 부호화 생략여부를 결정하며, CU 부호화 과정에서 CBF와 PU 모드 예측 비용을 이용한 조건을 확인하여 빠른 CU 결정이 이루어지도록 하며, 인터 PU 모드 예측 과정에서 얻은 CBF값들을 이용하여 인트라 모드 예측 생략이 가능하다. 이와 같이, 본 발명은 초기 CU 크기 예측 방법, CBF와 PU 모드의 예측 비용 이용한 빠른 CU 모드 결정 방법, 인트라 모드 예측 생략 방법의 세 과정으로 이루어져 있다. 본 발명에 따르면, 적은 화질 열화를 갖으면서 빠른 부호화 시간을 갖는 고속 CU 결정 방법을 제공할 수 있다.
HEVC video encoder obtains high coding efficiency by applying CU with recursive quad tree structure to coding. However, this recursive quadtree structure has a significant increase in the coding complexity of the HEVC. Accordingly, the present invention provides an algorithm capable of fast CU determination in the recursive quad tree structure. In the present invention, the initial CU size is predicted before the CTU encoding, and whether or not the current CU is omitted is determined through comparison with the current CU. In the CU encoding process, a condition using the CBF and the PU mode prediction cost is checked, And intra mode prediction can be omitted using the CBF values obtained in the inter PU mode prediction process. Thus, the present invention comprises three processes: an initial CU size prediction method, a fast CU mode determination method using a prediction cost of a CBF and a PU mode, and an intra mode prediction omission method. According to the present invention, it is possible to provide a fast CU determination method having a fast coding time while having a small image deterioration.

이하, 본 발명의 HEVC에서의 고속 CU 결정을 통한 부호화방법에 대하여 첨부된 도면을 참조하여 상세히 설명하기로 한다.Hereinafter, a method of encoding by a fast CU decision in the HEVC of the present invention will be described in detail with reference to the accompanying drawings.

도 3은 본 발명의 일 실시예에 의한 HEVC에서의 고속 CU 결정을 통한 부호화방법을 나타낸 흐름도이고, 도 4는 본 발명의 일 실시예에 의한 초기 CU 크기 예측을 결정하는 과정을 나타낸 개념도이며, 도 5는 본 발명의 일 실시예에 의한 인트라 모드 예측 생략을 위한 서브 CBF 맵 생성 과정을 나타낸 개념도이다.FIG. 3 is a flowchart illustrating a method of encoding by a fast CU determination in an HEVC according to an embodiment of the present invention. FIG. 4 is a conceptual diagram illustrating a process of determining an initial CU size prediction according to an embodiment of the present invention, 5 is a conceptual diagram illustrating a sub-CBF map generation process for omitting intra-mode prediction according to an embodiment of the present invention.

먼저, 초기 CU 크기 예측 방법에 대해 설명한다. 기존 HEVC에서는 최적의 CU를 찾기 위해 가장 큰 크기의 CTU 비용 조사를 시작으로 가장 작은 크기의 CU까지의 모든 비용을 계산한다. 그러나 QP값과 입력 영상의 해상도가 낮고, 입력 영상이 빠르고 복잡한 움직임을 보이는 경우 CTU가 최적의 CU 크기로 결정되는 확률이 낮았다. 따라서 무조건적으로 가장 큰 CTU의 비용 조사를 시작으로 하는 CU 부호화는 부호화 시간을 낭비할 수 있다.First, an initial CU size prediction method will be described. To find the optimal CU, the existing HEVC calculates all costs from the largest size CTU cost investigation to the smallest CU size. However, the probability that the CTU is determined as the optimum CU size is low when the QP value and the resolution of the input image are low and the input image shows fast and complex motion. Therefore, unconditionally, CU encoding starting from the cost investigation of the largest CTU can waste coding time.

그러므로 본 발명에서는 CU 부호화가 시작되기 전에 미리 입력 영상의 공간적, 시간적 특성을 적응적으로 이용하여 초기의 CU 크기를 예측함으로써 CU 부호화 시간을 감소시키고자 한다. 즉, 초기 CU 크기를 예측하기 위해서는 도 4와 같이 현재 CU의 주변 CU들과 이전 프레임에서의 현재 CTU 위치 CU들의 크기를 조사한다. 이러한 초기 CU 크기의 깊이값은 아래의 [수학식 3]과 같이 구할 수 있다.
Therefore, in the present invention, the CU coding time is reduced by predicting the initial CU size by adaptively using the spatial and temporal characteristics of the input image before starting the CU coding. That is, in order to predict the initial CU size, the size of the current CTU position CUs in the neighboring CUs of the current CU and the previous frame is examined as shown in FIG. The depth value of the initial CU size can be obtained by the following equation (3).

Figure 112014036588188-pat00003
Figure 112014036588188-pat00003

[수학식 3]의 A, B, C, D는 도 4와 같이 현재 CTU와 왼쪽, 왼쪽 위, 위, 오른쪽 위로 접해있는 CU들 중에서 A위치에서 가장 큰 CU의 깊이 값, B위치에서 가장 큰 CU의 깊이 값, 마찬가지로 C, D 위치에서의 가장 큰 CU의 깊이 값을 각각 나타낸다. 식(3)의 E는 바로 이전에 부호화된 프레임에서 현재 위치의 CTU 내에서 가장 큰 CU의 깊이 값을 말한다. 각각의 위치에서 가장 큰 CU의 깊이값들 중에서 중간값을 선택하고, 이 깊이값에서 한 깊이값을 빼면 초기 CU 깊이값이 결정된다.
As shown in FIG. 4, A, B, C, and D in Equation (3) represent the largest CU depth value at the A position among the CUs that are adjacent to the left, top left, The depth value of the CU, and the depth value of the largest CU at positions C and D, respectively. E in Eq. (3) refers to the depth value of the largest CU in the CTU of the current position in the immediately preceding encoded frame. Selecting the middle value among the depth values of the largest CUs at each position and subtracting one depth value from this depth value determines the initial CU depth value.

다음으로, CBF와 PU 모드의 비용을 이용한 빠른 CU 결정 방법에 대해 설명한다. 빠른 CU 결정을 위하여 먼저 CBF와 각 PU 모드의 비용과, SKIP 모드의 비용을 조사하면, PU 모드 예측 후에 CBF가 0이라면 부호화될 잔여 신호가 존재하지 않기 때문에 작은 비용을 갖으며, SKIP 모드는 가장 작은 비용을 발생시킨다. 따라서 이러한 점을 본 발명에 적용한다. 구체적으로, 인터 모드들의 CBF값들과 PU 모드 비용들을 확인하고 저장해둔다. 만약 PU 모드 예측 후에 휘도신호와 채도신호의 CBF가 모두 0이고, PU 모드의 비용이 [수학식 4]와 같이 이전의 SKIP 모드들의 비용의 평균값 보다 작다면 현재 CU 내에 남아있는 다음 PU 모드 예측을 모두 생략한다. 또한 현재 CU 위치의 하위 CU들의 부호화 과정도 생략된다. 이 조건은 모든 인터 PU 모드가 끝날 때마다 확인된다.
Next, a fast CU determination method using the costs of CBF and PU modes will be described. If the CBF is 0 after the PU mode prediction, there is no residual signal to be coded. Therefore, SKIP mode has a small cost. And generates a small cost. Therefore, this point is applied to the present invention. Specifically, CBF values of inter modes and PU mode costs are identified and stored. If the CBF of the luminance signal and the chroma signal are all 0 after the PU mode prediction and the cost of the PU mode is smaller than the average value of the costs of the previous SKIP modes as in Equation 4, the next PU mode prediction remaining in the current CU All are omitted. Also, the coding process of the lower CUs of the current CU position is omitted. This condition is checked at the end of every inter PU mode.

Figure 112014036588188-pat00004
Figure 112014036588188-pat00004

WAvgRDCostSKIP는 CU 크기에 따라 각각의 값이 따로 계산되어지며, 이 값은 스킵 모드가 최적의 모드로 선택될 때마다 이전 스킵 모드의 비용 4개와 현재 스킵 모드의 비용을 사용해서 갱신된다.
WAvgRDCost SKIP is calculated separately for each CU size, and this value is updated using the cost of the previous skip mode and the cost of the current skip mode whenever skip mode is selected as the optimal mode.

만약, 위의 CBF와 PU 모드 비용을 이용한 방법에 의해 CU 결정이 조기에 종료되지 않았다면, 인터 PU 모드 예측 과정 중에 획득한 CBF값들을 이용한 인트라 모드 생략 방법을 적용한다. 인터 PU 모드를 수행할 때 마다 4개의 NxN크기의 CBF를 각각 구해서 기록해둔다. 여기에서는 서브 CBF라고 표현한다. 인트라 모드를 수행할지 결정하기 위해 도 5에서 보이듯이 각 서브 CBF의 위치에 따라 AND 연산을 실행하여 서브 CBF 맵을 생성한다. CBF값이 0이 아닐 땐 1로 고려하여 AND 연산을 수행한다. 이러한 과정은 [수학식 5]와 같이 표현될 수 있다.
If the CU determination is not terminated early by the CBF and PU mode cost method, the intra mode omission method using the CBF values acquired during the inter PU mode prediction process is applied. Each time you perform an inter PU mode, you get and record four NxN CBFs. Here, it is referred to as a sub-CBF. To determine whether to perform the intra mode, an AND operation is performed according to the position of each sub-CBF as shown in FIG. 5 to generate a sub-CBF map. When the CBF value is not 0, 1 is considered and an AND operation is performed. This process can be expressed as [Equation 5].

Figure 112014036588188-pat00005
Figure 112014036588188-pat00005

SubCBF2Nx2N_i, SubCBFNx2N_i, SubCBF2NxN_i는 Inter 2Nx2N, Inter Nx2N, Inter 2NxN의 각각 CBF값을 나타낸다. 서브 CBF 맵 내의 4개의 값 중에서 3개 이상 0의 값을 갖는다면 다음 예측 모드인 인트라 모드의 예측을 수행하지 않는다.
SubCBF2Nx2N_i, SubCBFNx2N_i, and SubCBF2NxN_i represent CBF values of Inter 2Nx2N, Inter Nx2N, and Inter 2NxN, respectively. The prediction of the intra mode, which is the next prediction mode, is not performed if it has 3 or more values of 0 out of the four values in the sub-CBF map.

이상에서 몇 가지 실시예를 들어 본 발명을 더욱 상세하게 설명하였으나, 본 발명은 반드시 이러한 실시예로 국한되는 것이 아니고 본 발명의 기술사상을 벗어나지 않는 범위 내에서 다양하게 변형실시될 수 있다.While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the invention.

Claims (6)

CU(Coding Unit) 부호화 이전에, 현재 CU의 주변 CU들과 이전 프레임에서의 현재 CTU(Coding Tree Unit) 위치 CU들의 깊이값들 중에서 중간값을 선택하고, 상기 중간값에서 1을 뺀 초기 CU 깊이값에 대응하는 초기 CU의 크기를 예측하는 단계를 포함하며,
상기 현재 CU의 크기가 상기 초기 CU의 크기보다 클 경우에 상기 현재 CU 및 상기 현재 CU의 하위 CU들의 부호화를 생략하는 HEVC(High Efficiency Video Coding)에서의 고속 CU 결정을 통한 부호화방법.
An intermediate value is selected from among the depth values of the current CUs of the current CU and the current CU (Coding Tree Unit) position CUs in the previous frame, and the initial CU depth Value of the initial CU corresponding to the value of the initial CU,
Wherein the coding of the current CU and the lower CUs of the current CU is skipped when the size of the current CU is larger than the size of the initial CU.
제1항에 있어서,
상기 현재 CU의 크기가 상기 초기 CU의 크기보다 크지 않을 경우에,
CU 부호화 과정에서, 상기 현재 CU의 인터 모드들의 CBF(Coded Block Flag)값들과 PU(Prediction Unit) 모드 비용들을 확인 및 저장하는 단계를 포함하며,
상기 CBF와 SKIP 모드의 비용을 모두 이용한 조건을 각 PU 모드 비용과 비교하여 상기 현재 CU 내에 남아있는 다음 PU 모드 예측을 생략하는 HEVC에서의 고속 CU 결정을 통한 부호화방법.
The method according to claim 1,
If the size of the current CU is not greater than the size of the initial CU,
The method comprising: identifying and storing Coded Block Flag (CBF) values and Prediction Unit (PU) mode costs of intermodes of the current CU in a CU encoding process,
Comparing the condition using both the cost of the CBF and the SKIP mode to the cost of each PU mode, and omitting the next PU mode prediction remaining in the current CU.
제2항에 있어서,
상기 PU 모드의 비용이 이전의 SKIP 모드들의 비용의 평균값보다 작다면 상기 현재 CU 내에 남아있는 다음 PU 모드 예측을 생략하는 HEVC에서의 고속 CU 결정을 통한 부호화방법.
3. The method of claim 2,
And if the cost of the PU mode is less than the average value of the costs of the previous SKIP modes, skipping the next PU mode prediction remaining in the current CU.
제3항에 있어서,
상기 평균값은, 이전의 SKIP 모드 비용 4개와 현재 SKIP 모드의 비용을 이용한 총 5개의 SKIP 모드 비용의 평균인 HEVC에서의 고속 CU 결정을 통한 부호화방법.
The method of claim 3,
Wherein the average value is determined by a fast CU determination in an HEVC, which is an average of a total of five SKIP mode costs using four previous SKIP mode costs and a current SKIP mode cost.
제3항에 있어서,
상기 인터 모드들의 CBF값들에 대해, 인터 PU 모드가 수행될 때마다 서브 CBF를 구하고, 각 서브 CBF의 위치에 따라 AND 연산을 실행하여 서브 CBF 맵을 생성하여 CBF값이 0인 개수로 인트라 모드 생략 여부를 결정하는 HEVC에서의 고속 CU 결정을 통한 부호화방법.
The method of claim 3,
For each CBF value of the inter modes, a sub CBF is obtained every time the inter PU mode is performed, and an AND operation is performed according to the position of each sub CBF to generate a sub CBF map, A method of encoding by a high speed CU decision in HEVC.
제5항에 있어서,
상기 CBF값이 0인 개수가 3개 이상인 경우에 인트라 모드를 생략하는 HEVC에서의 고속 CU 결정을 통한 부호화방법.
6. The method of claim 5,
Wherein the intra mode is omitted when the number of CBF values is 0 or more.
KR1020140045906A 2014-04-17 2014-04-17 Method for coding data by fast coding unit decision in high efficiency video coding KR101603887B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020140045906A KR101603887B1 (en) 2014-04-17 2014-04-17 Method for coding data by fast coding unit decision in high efficiency video coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020140045906A KR101603887B1 (en) 2014-04-17 2014-04-17 Method for coding data by fast coding unit decision in high efficiency video coding

Publications (2)

Publication Number Publication Date
KR20150121278A KR20150121278A (en) 2015-10-29
KR101603887B1 true KR101603887B1 (en) 2016-03-18

Family

ID=54430291

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020140045906A KR101603887B1 (en) 2014-04-17 2014-04-17 Method for coding data by fast coding unit decision in high efficiency video coding

Country Status (1)

Country Link
KR (1) KR101603887B1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102601268B1 (en) * 2017-02-24 2023-11-10 주식회사 케이티 Method and apparatus for processing a video signal
CN109889831B (en) * 2019-02-18 2022-08-09 北方工业大学 Method, encoder and apparatus for 360 degree video intra mode selection based on CU size
CN110868593B (en) * 2019-11-18 2022-01-28 北方工业大学 Video CU fast partitioning based on regional decision tree

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
김재욱 외 2명, 2013년도 한국방송공학회 추계 학술대회, 2013.11, 172-173 (2 pages)

Also Published As

Publication number Publication date
KR20150121278A (en) 2015-10-29

Similar Documents

Publication Publication Date Title
JP2024045615A (en) Division block encoding method in video encoding, division block decoding method in video decoding, and recording medium for implementing the same
KR101718886B1 (en) Method and apparratus of video decoding
KR101431545B1 (en) Method and apparatus for Video encoding and decoding
KR20180037581A (en) Method and apparatus for encoding/decoding image and recording medium for storing bitstream
US20130266063A1 (en) Video encoding method and apparatus for fast intra prediction
KR20180061027A (en) Method and apparatus for encoding/decoding image and recording medium for storing bitstream
KR20170093833A (en) Coding of intra modes
KR20110073263A (en) Method and apparatus for encoding and decoding for intra prediction
KR102575827B1 (en) Method for encoding a partitioned block in video coding
KR101603887B1 (en) Method for coding data by fast coding unit decision in high efficiency video coding
KR101250608B1 (en) Method for encoding partitioned block in video encoding
KR20150048637A (en) Method and apparatus for inter color component prediction
CN108156458B (en) Method and device for determining coding mode
KR101466574B1 (en) Method and apparatus for scalable video encoding, method and apparatus for scalable video decoding
KR20150105347A (en) Intra prediction method and intra prediction apparatus using residual transform
KR20160106348A (en) Video Coding Method and Apparatus thereof
Katayama et al. Low-complexity intra coding algorithm in enhancement layer for SHVC
KR102062894B1 (en) Method for decoding partitioned block in video decoding and recording medium implementing the same
KR20140043015A (en) Method and apparatus for image encoding
KR20130055317A (en) Apparatus and method for encoding/decoding of video using block merging selecting candidate block in consecutive order
KR20140043014A (en) Method and apparatus for image encoding
KR20110126567A (en) Method for encoding partitioned block in video encoding, method for decoding partitioned block in video decoding and recording medium implementing the same
KR101366088B1 (en) Method and apparatus for encoding and decoding based on intra prediction
KR102163556B1 (en) Method and Apparatus for Detecting Scene Change of Nighttime Image in Compression Domain
KR101895389B1 (en) Method and Apparatus for image encoding

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20200206

Year of fee payment: 5