KR20220136969A - Method and apparatus for parallel entropy encoding/decoding - Google Patents

Method and apparatus for parallel entropy encoding/decoding Download PDF

Info

Publication number
KR20220136969A
KR20220136969A KR1020220121783A KR20220121783A KR20220136969A KR 20220136969 A KR20220136969 A KR 20220136969A KR 1020220121783 A KR1020220121783 A KR 1020220121783A KR 20220121783 A KR20220121783 A KR 20220121783A KR 20220136969 A KR20220136969 A KR 20220136969A
Authority
KR
South Korea
Prior art keywords
bitstream
partial
information
bin
codeword
Prior art date
Application number
KR1020220121783A
Other languages
Korean (ko)
Other versions
KR102486026B1 (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 한국전자통신연구원
Publication of KR20220136969A publication Critical patent/KR20220136969A/en
Application granted granted Critical
Publication of KR102486026B1 publication Critical patent/KR102486026B1/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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • 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/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • 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/184Methods 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 bits, e.g. of the compressed video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

In accordance with the present invention, an entropy decoding method includes the following steps of: deriving scheduling information from a header of a bitstream received from an encoder; rearranging a partial bitstream constituting the received bitstream in accordance with a de-binarizing sequence by using the derived scheduling information; deriving a bin corresponding to the bitstream based on the rearranged partial bitstream; and acquiring a syntax element by inversely binarizing the derived bin. In accordance with the present invention, image encoding/decoding efficiency can be improved.

Description

병렬 엔트로피 부호화/복호화 방법 및 장치 {METHOD AND APPARATUS FOR PARALLEL ENTROPY ENCODING/DECODING}Parallel entropy encoding/decoding method and apparatus {METHOD AND APPARATUS FOR PARALLEL ENTROPY ENCODING/DECODING}

본 발명은 영상 처리에 관한 것으로서, 보다 상세하게는 엔트로피 부호화/복호화 방법 및 장치에 관한 것이다.The present invention relates to image processing, and more particularly, to an entropy encoding/decoding method and apparatus.

최근 HD(High Definition) 해상도를 가지는 방송 서비스가 국내뿐만 아니라 세계적으로 확대되면서, 많은 사용자들이 고해상도, 고화질의 영상에 익숙해지고 있으며 이에 따라 많은 기관들이 차세대 영상기기에 대한 개발에 박차를 가하고 있다. 또한 HDTV와 더불어 HDTV의 4배 이상의 해상도를 갖는 UHD(Ultra High Definition)에 대한 관심이 증대되면서 보다 높은 해상도, 고화질의 영상에 대한 압축기술이 요구되고 있다.Recently, as broadcasting services with high definition (HD) resolution are expanding not only domestically but also worldwide, many users are getting used to high-resolution and high-definition images, and accordingly, many institutions are spurring the development of next-generation imaging devices. In addition, as interest in UHD (Ultra High Definition) having a resolution four times higher than that of HDTV increases along with HDTV, a compression technology for higher resolution and high-definition images is required.

영상 압축을 위해, 시간적으로 이전 및/또는 이후의 픽쳐로부터 현재 픽쳐에 포함된 픽셀값을 예측하는 인터(inter) 예측 기술, 현재 픽쳐 내의 픽셀 정보를 이용하여 현재 픽쳐에 포함된 픽셀값을 예측하는 인트라(intra) 예측 기술, 출현 빈도가 높은 심볼(symbol)에 짧은 부호를 할당하고 출현 빈도가 낮은 심볼에 긴 부호를 할당하는 엔트로피 부호화 기술 등이 사용될 수 있다.For image compression, inter prediction technology that predicts pixel values included in the current picture from temporally previous and/or later pictures, predicting pixel values included in the current picture using pixel information in the current picture An intra prediction technique, an entropy encoding technique in which a short code is assigned to a symbol having a high frequency of occurrence and a long code is assigned to a symbol having a low frequency of occurrence, may be used.

본 발명의 기술적 과제는 영상 부호화/복호화 효율을 향상시킬 수 있는 영상 부호화 방법 및 장치를 제공함에 있다.An object of the present invention is to provide an image encoding method and apparatus capable of improving image encoding/decoding efficiency.

본 발명의 다른 기술적 과제는 영상 부호화/복호화 효율을 향상시킬 수 있는 영상 복호화 방법 및 장치를 제공함에 있다.Another technical object of the present invention is to provide an image decoding method and apparatus capable of improving image encoding/decoding efficiency.

본 발명의 또 다른 기술적 과제는 영상 부호화/복호화 효율을 향상시킬 수 있는 엔트로피 부호화 방법 및 장치를 제공함에 있다.Another technical object of the present invention is to provide an entropy encoding method and apparatus capable of improving image encoding/decoding efficiency.

본 발명의 또 다른 기술적 과제는 영상 부호화/복호화 효율을 향상시킬 수 있는 엔트로피 복호화 방법 및 장치를 제공함에 있다.Another technical object of the present invention is to provide an entropy decoding method and apparatus capable of improving image encoding/decoding efficiency.

1. 본 발명의 일 실시 형태는 엔트로피 복호화 방법이다. 상기 방법은 부호화기로부터 수신된 비트스트림의 헤더(header)로부터 스케쥴링 정보를 도출하는 단계, 상기 도출된 스케쥴링 정보를 이용하여, 상기 수신된 비트스트림을 구성하는 부분 비트스트림을 역 이진화(de-binarization) 순서에 따라 재정렬하는 단계, 상기 재정렬된 부분 비트스트림을 기반으로, 상기 비트스트림에 대응하는 빈(bin)을 도출하는 단계 및 상기 도출된 빈을 역 이진화하여 구문 요소(syntax element)를 획득하는 단계를 포함하고, 상기 스케쥴링 정보는, 상기 수신된 비트스트림을 구성하는 부분 비트스트림 각각의 위치에 관한 정보 및 상기 부분 비트스트림의 역이진화 순서에 관한 정보를 포함한다.1. One embodiment of the present invention is an entropy decoding method. The method includes deriving scheduling information from a header of a bitstream received from an encoder, and de-binarizing a partial bitstream constituting the received bitstream by using the derived scheduling information. Reordering according to an order, deriving a bin corresponding to the bitstream based on the rearranged partial bitstream, and obtaining a syntax element by inverse binarizing the derived bin The scheduling information includes information on a position of each of the partial bitstreams constituting the received bitstream and information on a de-binarization order of the partial bitstream.

2. 1에 있어서, 상기 빈의 LPB(Least Probable Bin) 확률에 대한 전체 확률 구간은, 각각 대표 확률을 갖는 복수의 확률 구간으로 분류되고, 상기 부분 비트스트림은 적어도 하나의 코드워드로 구성되고, 상기 부분 비트스트림을 구성하는 코드워드는 동일한 대표 확률에 대응될 수 있다.2. The whole probability interval for LPB (Least Probable Bin) probability of the bin according to 1, is classified into a plurality of probability intervals each having a representative probability, and the partial bitstream consists of at least one codeword, Codewords constituting the partial bitstream may correspond to the same representative probability.

3. 2에 있어서, 상기 빈 도출 단계는, 상기 수신된 비트스트림의 헤더로부터 코드워드 길이 정보를 도출하는 단계 및 상기 도출된 코드워드 길이 정보에 기반하여 상기 비트스트림에 대응하는 빈을 도출하는 단계를 더 포함할 수 있고, 상기 코드워드 길이 정보는, 상기 복수의 확률 구간 각각의 대표 확률에 대한, 코드워드의 최소 길이 및 최대 길이에 관한 정보일 수 있다.3. The method of 2, wherein the bin deriving step comprises: deriving codeword length information from a header of the received bitstream; and deriving a bin corresponding to the bitstream based on the derived codeword length information. may further include, and the codeword length information may be information about a minimum length and a maximum length of a codeword with respect to a representative probability of each of the plurality of probability intervals.

4. 3에 있어서, 상기 빈 도출 단계는, 상기 도출된 코드워드 길이 정보를 이용하여, 상기 복수의 확률 구간 각각의 대표 확률에 대한, 코드워드-빈 매핑 테이블을 결정하는 단계 및 상기 결정된 코드워드-빈 매핑 테이블을 이용하여 상기 비트스트림에 대응하는 빈을 도출하는 단계를 더 포함할 수 있다. 4. The method of 3, wherein the bin derivation comprises: using the derived codeword length information, determining a codeword-bin mapping table for a representative probability of each of the plurality of probability intervals, and the determined codeword The method may further include deriving a bin corresponding to the bitstream by using a bin mapping table.

5. 본 발명의 다른 실시 형태는 엔트로피 복호화 장치이다. 상기 장치는 부호화기로부터 수신된 비트스트림의 헤더(header)로부터 스케쥴링 정보를 도출하고, 상기 도출된 스케쥴링 정보를 이용하여, 상기 수신된 비트스트림을 구성하는 부분 비트스트림을 역 이진화(de-binarization) 순서에 따라 재정렬하는 비트스트림 결정기, 상기 재정렬된 부분 비트스트림을 기반으로, 상기 비트스트림에 대응하는 빈(bin)을 도출하는 빈 복호화기(bin decoder) 및 상기 도출된 빈을 역 이진화하여 구문 요소(syntax element)를 획득하는 역 이진화기(de-binarizer)를 포함하고, 상기 스케쥴링 정보는, 상기 수신된 비트스트림을 구성하는 부분 비트스트림 각각의 위치에 관한 정보 및 상기 부분 비트스트림의 역이진화 순서에 관한 정보를 포함한다.5. Another embodiment of the present invention is an entropy decoding device. The apparatus derives scheduling information from a header of a bitstream received from an encoder, and de-binarizes a partial bitstream constituting the received bitstream by using the derived scheduling information. A bitstream determiner that reorders according to syntax element), wherein the scheduling information includes information on a position of each of the partial bitstreams constituting the received bitstream and a de-binarization order of the partial bitstream. include information about

6. 5에 있어서, 상기 빈의 LPB(Least Probable Bin) 확률에 대한 전체 확률 구간은, 각각 대표 확률을 갖는 복수의 확률 구간으로 분류되고, 상기 부분 비트스트림은 적어도 하나의 코드워드로 구성되고, 상기 부분 비트스트림을 구성하는 코드워드는 동일한 대표 확률에 대응될 수 있다.6. The method of 5, wherein the entire probability interval for LPB (Least Probable Bin) probability of the bin is classified into a plurality of probability intervals each having a representative probability, and the partial bitstream consists of at least one codeword, Codewords constituting the partial bitstream may correspond to the same representative probability.

7. 6에 있어서, 상기 수신된 비트스트림의 헤더로부터 코드워드 길이 정보를 도출하는 코드워드 길이 계산기를 더 포함하고, 상기 빈 복호화기는 상기 도출된 코드워드 길이 정보에 기반하여 상기 비트스트림에 대응하는 빈을 도출할 수 있고, 상기 코드워드 길이 정보는, 상기 복수의 확률 구간 각각의 대표 확률에 대한, 코드워드의 최소 길이 및 최대 길이에 관한 정보일 수 있다.7. The method of 6, further comprising a codeword length calculator for deriving codeword length information from a header of the received bitstream, wherein the bin decoder is configured to generate codeword length information corresponding to the bitstream based on the derived codeword length information. A bin may be derived, and the codeword length information may be information about a minimum length and a maximum length of a codeword with respect to a representative probability of each of the plurality of probability intervals.

8. 7에 있어서, 상기 도출된 코드워드 길이 정보를 이용하여, 상기 복수의 확률 구간 각각의 대표 확률에 대한, 코드워드-빈 매핑 테이블을 결정하는 매핑 테이블 결정기를 더 포함할 수 있고, 상기 빈 복호화기는 상기 결정된 코드워드-빈 매핑 테이블을 이용하여 상기 비트스트림에 대응하는 빈을 도출할 수 있다.8. The method of 7, further comprising a mapping table determiner configured to determine a codeword-bin mapping table with respect to the representative probability of each of the plurality of probability intervals by using the derived codeword length information, wherein the bin The decoder may derive a bin corresponding to the bitstream by using the determined codeword-bin mapping table.

9. 본 발명의 또 다른 실시 형태는 영상 복호화 방법이다. 상기 방법은 부호화기로부터 수신된 비트스트림의 헤더(header)로부터 스케쥴링 정보를 도출하는 단계, 상기 도출된 스케쥴링 정보를 이용하여, 상기 수신된 비트스트림을 구성하는 부분 비트스트림을 역 이진화(de-binarization) 순서에 따라 재정렬하는 단계, 상기 재정렬된 부분 비트스트림을 기반으로, 상기 비트스트림에 대응하는 빈(bin)을 도출하는 단계, 상기 도출된 빈을 역 이진화하여 구문 요소(syntax element)를 획득하는 단계 및 상기 획득한 구문 요소를 이용하여 복원 영상을 생성하는 단계를 포함하고, 상기 스케쥴링 정보는, 상기 수신된 비트스트림을 구성하는 부분 비트스트림 각각의 위치에 관한 정보 및 상기 부분 비트스트림의 역이진화 순서에 관한 정보를 포함한다.9. Another embodiment of the present invention is a video decoding method. The method includes deriving scheduling information from a header of a bitstream received from an encoder, and de-binarizing a partial bitstream constituting the received bitstream by using the derived scheduling information. rearranging according to the order, deriving a bin corresponding to the bitstream based on the rearranged partial bitstream, and obtaining a syntax element by inverse binarizing the derived bin and generating a reconstructed image by using the acquired syntax element, wherein the scheduling information includes information about a position of each of the partial bitstreams constituting the received bitstream and an order of inverse binarization of the partial bitstream. includes information about

10. 9에 있어서, 상기 빈의 LPB(Least Probable Bin) 확률에 대한 전체 확률 구간은, 각각 대표 확률을 갖는 복수의 확률 구간으로 분류되고, 상기 부분 비트스트림은 적어도 하나의 코드워드로 구성되고, 상기 부분 비트스트림을 구성하는 코드워드는 동일한 대표 확률에 대응될 수 있다.10. The method of 9, wherein the entire probability interval for LPB (Least Probable Bin) probability of the bin is classified into a plurality of probability intervals each having a representative probability, and the partial bitstream consists of at least one codeword, Codewords constituting the partial bitstream may correspond to the same representative probability.

11. 10에 있어서, 상기 빈 도출 단계는, 상기 수신된 비트스트림의 헤더로부터 코드워드 길이 정보를 도출하는 단계 및 상기 도출된 코드워드 길이 정보에 기반하여 상기 비트스트림에 대응하는 빈을 도출하는 단계를 더 포함할 수 있고, 상기 코드워드 길이 정보는, 상기 복수의 확률 구간 각각의 대표 확률에 대한, 코드워드의 최소 길이 및 최대 길이에 관한 정보일 수 있다.11. The method of 10, wherein the bin deriving comprises: deriving codeword length information from a header of the received bitstream; and deriving a bin corresponding to the bitstream based on the derived codeword length information. may further include, and the codeword length information may be information about a minimum length and a maximum length of a codeword with respect to a representative probability of each of the plurality of probability intervals.

12. 11에 있어서, 상기 빈 도출 단계는, 상기 도출된 코드워드 길이 정보를 이용하여, 상기 복수의 확률 구간 각각의 대표 확률에 대한, 코드워드-빈 매핑 테이블을 결정하는 단계 및 상기 결정된 코드워드-빈 매핑 테이블을 이용하여 상기 비트스트림에 대응하는 빈을 도출하는 단계를 더 포함할 수 있다.12. The method of 11, wherein the bin derivation comprises: determining a codeword-bin mapping table for a representative probability of each of the plurality of probability intervals using the derived codeword length information; The method may further include deriving a bin corresponding to the bitstream by using a bin mapping table.

본 발명에 따른 영상 부호화 방법에 의하면, 영상 부호화/복호화 효율이 향상될 수 있다.According to the image encoding method according to the present invention, image encoding/decoding efficiency can be improved.

본 발명에 따른 영상 복호화 방법에 의하면, 영상 부호화/복호화 효율이 향상될 수 있다.According to the image decoding method according to the present invention, image encoding/decoding efficiency can be improved.

본 발명에 따른 엔트로피 부호화 방법에 의하면, 영상 부호화/복호화 효율이 향상될 수 있다.According to the entropy encoding method according to the present invention, image encoding/decoding efficiency can be improved.

본 발명에 따른 엔트로피 복호화 방법에 의하면, 영상 부호화/복호화 효율이 향상될 수 있다.According to the entropy decoding method according to the present invention, image encoding/decoding efficiency can be improved.

도 1은 본 발명이 적용되는 영상 부호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 2는 본 발명이 적용되는 영상 복호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 3은 본 발명에 따른 코드워드 길이 제한의 일 실시예를 개략적으로 나타내는 표이다.
도 4는 본 발명에 따른 비트스트림 파싱 과정에 대한 스케쥴링 방법의 일 실시예를 개략적으로 나타내는 개념도이다.
도 5는 본 발명에 따른 비트스트림 파싱 과정에 대한 스케쥴링 방법의 다른 실시예를 개략적으로 나타내는 개념도이다.
도 6은 본 발명에 따른 병렬 엔트로피 부호화 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 7은 본 발명에 따른 병렬 엔트로피 복호화 장치의 일 실시예를 개략적으로 나타내는 블록도이다.
도 8은 본 발명에 따른 병렬 엔트로피 부호화 장치의 다른 실시예를 개략적으로 나타내는 블록도이다.
도 9는 본 발명에 따른 병렬 엔트로피 복호화 장치의 다른 실시예를 개략적으로 나타내는 블록도이다.
도 10은 본 발명에 따른 병렬 엔트로피 부호화 장치의 또 다른 실시예를 개략적으로 나타내는 블록도이다.
도 11은 본 발명에 따른 병렬 엔트로피 복호화 장치의 또 다른 실시예를 개략적으로 나타내는 블록도이다.
도 12는 본 발명에 따른 병렬 엔트로피 부호화 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
도 13은 본 발명에 따른 병렬 엔트로피 복호화 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
1 is a block diagram illustrating a configuration of an image encoding apparatus to which the present invention is applied according to an embodiment.
2 is a block diagram illustrating a configuration of an image decoding apparatus to which the present invention is applied according to an embodiment.
3 is a table schematically showing an embodiment of a codeword length limitation according to the present invention.
4 is a conceptual diagram schematically illustrating an embodiment of a scheduling method for a bitstream parsing process according to the present invention.
5 is a conceptual diagram schematically illustrating another embodiment of a scheduling method for a bitstream parsing process according to the present invention.
6 is a block diagram schematically illustrating an embodiment of a parallel entropy encoding apparatus according to the present invention.
7 is a block diagram schematically illustrating an embodiment of a parallel entropy decoding apparatus according to the present invention.
8 is a block diagram schematically illustrating another embodiment of a parallel entropy encoding apparatus according to the present invention.
9 is a block diagram schematically illustrating another embodiment of a parallel entropy decoding apparatus according to the present invention.
10 is a block diagram schematically showing another embodiment of a parallel entropy encoding apparatus according to the present invention.
11 is a block diagram schematically showing another embodiment of a parallel entropy decoding apparatus according to the present invention.
12 is a flowchart schematically illustrating an embodiment of a parallel entropy encoding method according to the present invention.
13 is a flowchart schematically illustrating an embodiment of a parallel entropy decoding method according to the present invention.

이하, 도면을 참조하여 본 발명의 실시 형태에 대하여 구체적으로 설명한다. 본 명세서의 실시예를 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 명세서의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.EMBODIMENT OF THE INVENTION Hereinafter, embodiment of this invention is described concretely with reference to drawings. In describing the embodiments of the present specification, if it is determined that a detailed description of a related known configuration or function may obscure the gist of the present specification, the detailed description thereof will be omitted.

어떤 구성 요소가 다른 구성 요소에 “연결되어” 있다거나 “접속되어” 있다고 언급된 때에는, 그 다른 구성 요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있으나, 중간에 다른 구성 요소가 존재할 수도 있다고 이해되어야 할 것이다. 아울러, 본 발명에서 특정 구성을 “포함”한다고 기술하는 내용은 해당 구성 이외의 구성을 배제하는 것이 아니며, 추가적인 구성이 본 발명의 실시 또는 본 발명의 기술적 사상의 범위에 포함될 수 있음을 의미한다. When it is said that a component is “connected” or “connected” to another component, it may be directly connected or connected to the other component, but it is understood that other components may exist in between. it should be In addition, the description of "including" a specific configuration in the present invention does not exclude configurations other than the corresponding configuration, and means that additional configurations may be included in the practice of the present invention or the scope of the technical spirit of the present invention.

제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다.Terms such as first, second, etc. may be used to describe various elements, but the elements should not be limited by the terms. The above terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, a first component may be referred to as a second component, and similarly, a second component may also be referred to as a first component.

또한 본 발명의 실시예에 나타나는 구성부들은 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시되는 것으로, 각 구성부들이 분리된 하드웨어나 하나의 소프트웨어 구성단위로 이루어짐을 의미하지 않는다. 즉, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수 개의 구성부로 나뉘어져 기능을 수행할 수 있고 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.In addition, the components shown in the embodiment of the present invention are shown independently to represent different characteristic functions, and it does not mean that each component is composed of separate hardware or a single software component. That is, each component is listed as each component for convenience of description, and at least two components of each component are combined to form one component, or one component can be divided into a plurality of components to perform a function, and each Integrated embodiments and separate embodiments of the components are also included in the scope of the present invention without departing from the essence of the present invention.

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

도 1은 본 발명이 적용되는 영상 부호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.1 is a block diagram illustrating a configuration of an image encoding apparatus to which the present invention is applied according to an embodiment.

도 1을 참조하면, 상기 영상 부호화 장치(100)는 움직임 예측부(111), 움직임 보상부(112), 인트라 예측부(120), 스위치(115), 감산기(125), 변환부(130), 양자화부(140), 엔트로피 부호화부(150), 역양자화부(160), 역변환부(170), 가산기(175), 필터부(180) 및 참조 픽쳐 버퍼(190)를 포함한다. Referring to FIG. 1 , the image encoding apparatus 100 includes a motion prediction unit 111 , a motion compensation unit 112 , an intra prediction unit 120 , a switch 115 , a subtractor 125 , and a transform unit 130 . , a quantizer 140 , an entropy encoder 150 , an inverse quantizer 160 , an inverse transform unit 170 , an adder 175 , a filter unit 180 , and a reference picture buffer 190 .

영상 부호화 장치(100)는 입력 영상에 대해 인트라(intra) 모드 또는 인터(inter) 모드로 부호화를 수행하고 비트스트림을 출력할 수 있다. 인트라 모드인 경우 스위치(115)가 인트라로 전환되고, 인터 모드인 경우 스위치(115)가 인터로 전환될 수 있다. 영상 부호화 장치(100)는 입력 영상의 입력 블록에 대한 예측 블록을 생성한 후, 입력 블록과 예측 블록의 차분(residual)을 부호화할 수 있다.The image encoding apparatus 100 may encode an input image in an intra mode or an inter mode and output a bitstream. In the intra mode, the switch 115 may be switched to the intra mode, and in the inter mode, the switch 115 may be switched to the inter mode. The image encoding apparatus 100 may generate a prediction block for an input block of an input image, and then encode a residual between the input block and the prediction block.

인트라 모드인 경우, 인트라 예측부(120)는 현재 블록 주변의 이미 부호화된 블록의 픽셀값을 이용하여 공간적 예측을 수행하여 예측 블록을 생성할 수 있다.In the intra mode, the intra prediction unit 120 may generate a prediction block by performing spatial prediction using pixel values of an already encoded block around the current block.

인터 모드인 경우, 움직임 예측부(111)는, 움직임 예측 과정에서 참조 픽쳐 버퍼(190)에 저장되어 있는 참조 영상에서 입력 블록과 가장 매치가 잘 되는 영역을 찾아 움직임 벡터를 구할 수 있다. 움직임 보상부(112)는 움직임 벡터를 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다. In the inter mode, the motion prediction unit 111 may obtain a motion vector by finding a region that best matches the input block in the reference image stored in the reference picture buffer 190 during the motion prediction process. The motion compensator 112 may generate a prediction block by performing motion compensation using a motion vector.

감산기(125)는 입력 블록과 생성된 예측 블록의 차분에 의해 잔차 블록(residual block)을 생성할 수 있다. 변환부(130)는 잔차 블록에 대해 변환(transform)을 수행하여 변환 계수(transform coefficient)를 출력할 수 있다. 그리고 양자화부(140)는 입력된 변환 계수를 양자화 파라미터에 따라 양자화하여 양자화된 계수(quantized coefficient)를 출력할 수 있다. The subtractor 125 may generate a residual block by the difference between the input block and the generated prediction block. The transform unit 130 may perform transform on the residual block to output a transform coefficient. In addition, the quantization unit 140 may quantize the input transform coefficient according to the quantization parameter to output a quantized coefficient.

엔트로피 부호화부(150)는, 양자화부(140)에서 산출된 값들 또는 부호화 과정에서 산출된 부호화 파라미터 값 등을 기초로 엔트로피 부호화를 수행하여 비트스트림(bit stream)을 출력할 수 있다. The entropy encoding unit 150 may output a bit stream by performing entropy encoding based on the values calculated by the quantization unit 140 or encoding parameter values calculated during the encoding process.

엔트로피 부호화가 적용되는 경우, 높은 발생 확률을 갖는 심볼(symbol)에 적은 수의 비트가 할당되고 낮은 발생 확률을 갖는 심볼에 많은 수의 비트가 할당되어 심볼이 표현됨으로써, 부호화 대상 심볼들에 대한 비트열의 크기가 감소될 수 있다. 따라서 엔트로피 부호화를 통해서 영상 부호화의 압축 성능이 높아질 수 있다. 엔트로피 부호화부(150)는 엔트로피 부호화를 위해 지수 골룸(exponential golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 부호화 방법을 사용할 수 있다. When entropy encoding is applied, a small number of bits are allocated to a symbol having a high probability of occurrence and a large number of bits are allocated to a symbol having a low probability of occurrence to express the symbol, so that bits for symbols to be encoded The size of the column may be reduced. Accordingly, compression performance of image encoding may be improved through entropy encoding. The entropy encoder 150 may use an encoding method such as exponential golomb, Context-Adaptive Variable Length Coding (CAVLC), or Context-Adaptive Binary Arithmetic Coding (CABAC) for entropy encoding.

도 1의 실시예에 따른 영상 부호화 장치는 인터 예측 부호화, 즉 화면 간 예측 부호화를 수행하므로, 현재 부호화된 영상은 참조 영상으로 사용되기 위해 복호화되어 저장될 필요가 있다. 따라서 양자화된 계수는 역양자화부(160)에서 역양자화되고 역변환부(170)에서 역변환된다. 역양자화, 역변환된 계수는 가산기(175)를 통해 예측 블록과 더해지고 복원 블록(Reconstructed Block)이 생성된다. Since the image encoding apparatus according to the embodiment of FIG. 1 performs inter prediction encoding, that is, inter prediction encoding, the currently encoded image needs to be decoded and stored to be used as a reference image. Accordingly, the quantized coefficient is inverse quantized by the inverse quantization unit 160 and inversely transformed by the inverse transformation unit 170 . The inverse-quantized and inverse-transformed coefficients are added to the prediction block through the adder 175 and a reconstructed block is generated.

복원 블록은 필터부(180)를 거치고, 필터부(180)는 디블록킹 필터(deblocking filter), SAO(Sample Adaptive Offset), ALF(Adaptive Loop Filter) 중 적어도 하나 이상을 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(180)는 적응적 인루프(in-loop) 필터로 불릴 수도 있다. 디블록킹 필터는 블록 간의 경계에 생긴 블록 왜곡을 제거할 수 있다. SAO는 코딩 에러를 보상하기 위해 픽셀값에 적정 오프셋(offset) 값을 더해줄 수 있다. ALF는 복원된 영상과 원래의 영상을 비교한 값을 기초로 필터링을 수행할 수 있다. 필터부(180)를 거친 복원 블록은 참조 픽쳐 버퍼(190)에 저장될 수 있다.The reconstructed block passes through the filter unit 180, and the filter unit 180 applies at least one of a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) to the reconstructed block or the reconstructed picture. can do. The filter unit 180 may be referred to as an adaptive in-loop filter. The deblocking filter can remove block distortion at the boundary between blocks. The SAO may add an appropriate offset value to a pixel value to compensate for a coding error. The ALF may perform filtering based on a value obtained by comparing the reconstructed image and the original image. The reconstructed block passing through the filter unit 180 may be stored in the reference picture buffer 190 .

도 2는 본 발명이 적용되는 영상 복호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.2 is a block diagram illustrating a configuration of an image decoding apparatus to which the present invention is applied according to an embodiment.

*도 2를 참조하면, 상기 영상 복호화 장치(200)는 엔트로피 복호화부(210), 역양자화부(220), 역변환부(230), 인트라 예측부(240), 움직임 보상부(250), 가산기(255), 필터부(260) 및 참조 픽쳐 버퍼(270)를 포함한다.* Referring to FIG. 2 , the image decoding apparatus 200 includes an entropy decoding unit 210 , an inverse quantization unit 220 , an inverse transform unit 230 , an intra prediction unit 240 , a motion compensator 250 , and an adder. 255 , a filter unit 260 and a reference picture buffer 270 .

영상 복호화 장치(200)는 부호화기에서 출력된 비트스트림을 입력 받아 인트라 모드 또는 인터 모드로 복호화를 수행하고 재구성된 영상, 즉 복원 영상을 출력할 수 있다. 인트라 모드인 경우 스위치가 인트라로 전환되고, 인터 모드인 경우 스위치가 인터로 전환될 수 있다. 영상 복호화 장치(200)는 입력 받은 비트스트림으로부터 복원된 잔차 블록(reconstructed residual block)을 얻고 예측 블록을 생성한 후 복원된 잔차 블록과 예측 블록을 더하여 재구성된 블록, 즉 복원 블록을 생성할 수 있다.The image decoding apparatus 200 may receive a bitstream output from the encoder, perform decoding in an intra mode or an inter mode, and output a reconstructed image, that is, a reconstructed image. In the case of the intra mode, the switch may be switched to the intra mode, and in the case of the inter mode, the switch may be switched to the inter mode. The image decoding apparatus 200 obtains a reconstructed residual block from the received bitstream, generates a prediction block, and then adds the reconstructed residual block and the prediction block to generate a reconstructed block, that is, a reconstructed block. .

엔트로피 복호화부(210)는, 입력된 비트스트림을 확률 분포에 따라 엔트로피 복호화하여, 양자화된 계수(quantized coefficient) 형태의 심볼을 포함한 심볼들을 생성할 수 있다. 엔트로피 복호화 방법은 상술한 엔트로피 부호화 방법과 유사하다.The entropy decoding unit 210 may entropy-decode the input bitstream according to a probability distribution to generate symbols including symbols in the form of quantized coefficients. The entropy decoding method is similar to the entropy encoding method described above.

엔트로피 복호화 방법이 적용되는 경우, 높은 발생 확률을 갖는 심볼에 적은 수의 비트가 할당되고 낮은 발생 확률을 갖는 심볼에 많은 수의 비트가 할당되어 심볼이 표현됨으로써, 각 심볼들에 대한 비트열의 크기가 감소될 수 있다. 따라서 엔트로피 복호화 방법을 통해서 영상 복호화의 압축 성능이 높아질 수 있다. When the entropy decoding method is applied, a small number of bits are allocated to a symbol having a high occurrence probability and a large number of bits are allocated to a symbol having a low occurrence probability to represent the symbol, so that the size of the bit stream for each symbol is can be reduced. Accordingly, the compression performance of image decoding may be improved through the entropy decoding method.

양자화된 계수는 역양자화부(220)에서 역양자화되고 역변환부(230)에서 역변환되며, 양자화된 계수가 역양자화/역변환 된 결과, 복원된 잔차 블록이 생성될 수 있다. The quantized coefficient is inverse quantized by the inverse quantizer 220 and inverse transformed by the inverse transform unit 230 , and as a result of inverse quantization/inverse transformation of the quantized coefficient, a reconstructed residual block may be generated.

인트라 모드인 경우, 인트라 예측부(240)는 현재 블록 주변의 이미 부호화된 블록의 픽셀값을 이용하여 공간적 예측을 수행하여 예측 블록을 생성할 수 있다. 인터 모드인 경우, 움직임 보상부(250)는 움직임 벡터 및 참조 픽쳐 버퍼(270)에 저장되어 있는 참조 영상을 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다. In the intra mode, the intra prediction unit 240 may generate a prediction block by performing spatial prediction using pixel values of an already encoded block around the current block. In the inter mode, the motion compensator 250 may generate a prediction block by performing motion compensation using a motion vector and a reference image stored in the reference picture buffer 270 .

복원된 잔차 블록과 예측 블록은 가산기(255)를 통해 더해지고, 더해진 블록은 필터부(260)를 거칠 수 있다. 필터부(260)는 디블록킹 필터, SAO, ALF 중 적어도 하나 이상을 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(260)는 재구성된 영상, 즉 복원 영상을 출력할 수 있다. 복원 영상은 참조 픽쳐 버퍼(270)에 저장되어 인터 예측에 사용될 수 있다.The reconstructed residual block and the prediction block may be added through the adder 255 , and the added block may pass through the filter unit 260 . The filter unit 260 may apply at least one of a deblocking filter, SAO, and ALF to a reconstructed block or a reconstructed picture. The filter unit 260 may output a reconstructed image, that is, a reconstructed image. The reconstructed image may be stored in the reference picture buffer 270 and used for inter prediction.

도 1 및 도 2에서 상술한 바와 같이, 부호화기 및 복호화기는 각각 엔트로피 부호화 및 엔트로피 복호화를 수행할 수 있다. 엔트로피 부호화/복호화가 적용되는 경우, 높은 발생 확률을 갖는 심볼에 적은 수의 비트가 할당되고 낮은 발생 확률을 갖는 심볼에 많은 수의 비트가 할당되어 심볼이 표현됨으로써, 부호화 대상 심볼들에 대한 비트열의 크기가 감소될 수 있다. 엔트로피 부호화/복호화를 위해 사용되는 방법에는 지수 골룸, CAVLC, CABAC 등이 있을 수 있다.As described above with reference to FIGS. 1 and 2 , the encoder and the decoder may perform entropy encoding and entropy decoding, respectively. When entropy encoding/decoding is applied, a small number of bits are allocated to a symbol having a high probability of occurrence and a large number of bits are allocated to a symbol having a low probability of occurrence to express the symbol, so that the bit string for the symbols to be encoded is size can be reduced. Methods used for entropy encoding/decoding may include exponential Gollum, CAVLC, CABAC, and the like.

예를 들어, 부호화기 및 복호화기에는 가변 길이 부호화(VLC) 테이블과 같은 엔트로피 부호화/복호화를 수행하기 위한 테이블이 저장될 수 있고, 부호화기 및 복호화기는 저장된 가변 길이 부호화 테이블을 사용하여 엔트로피 부호화/복호화를 수행할 수 있다. For example, a table for performing entropy encoding/decoding such as a variable length encoding (VLC) table may be stored in the encoder and the decoder, and the encoder and the decoder perform entropy encoding/decoding using the stored variable length encoding table. can be done

부호화기 및 복호화기는 대상 심볼의 이진화(binarization) 방법 및 대상 심볼/빈(bin)의 확률 모델(probability model)을 도출한 후, 도출된 이진화 방법 또는 확률 모델을 사용하여 엔트로피 부호화/복호화를 수행할 수도 있다. The encoder and decoder may derive a binarization method of a target symbol and a probability model of a target symbol/bin, and then perform entropy encoding/decoding using the derived binarization method or probability model. have.

여기서, 이진화(binarization)란 심볼의 값을 2진수의 열(bin sequence/string)로 표현하는 것을 의미한다. 빈(bin)은 심볼이 이진화를 통해 2진수의 열로 표현될 때, 각각의 2진수의 값(0 또는 1)을 의미한다. 확률 모델이란, 문맥 정보(context information)/문맥 모델(context model)을 통해서 도출될 수 있는 부호화/복호화 대상 심볼/빈의 예측된 확률을 의미한다. 문맥 정보/문맥 모델은 부호화/복호화 대상 심볼/빈의 확률을 결정하기 위한 정보를 말한다.Here, binarization means expressing a symbol value as a binary sequence (bin sequence/string). A bin means a value (0 or 1) of each binary number when a symbol is expressed as a string of binary numbers through binarization. The probabilistic model refers to a predicted probability of a symbol/bin to be encoded/decoded that can be derived through context information/context model. The context information/context model refers to information for determining the probability of a symbol/bin to be encoded/decoded.

보다 상세하게, CABAC 엔트로피 부호화 방법은, 이진화되지 않은 심볼을 이진화(binarization)하여 빈으로 변환하고, 주변 및 부호화 대상 블록의 부호화 정보 혹은 이전 단계에서 부호화된 심볼/빈의 정보를 이용하여 문맥 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 부호화(arithmetic encoding)를 수행하여 비트스트림을 생성할 수 있다.In more detail, the CABAC entropy encoding method converts a non-binarized symbol into a bin by binarizing it, and constructs a context model using encoding information of neighboring and encoding target blocks or information on symbols/bins encoded in the previous step. A bitstream may be generated by determining and predicting the occurrence probability of a bin according to the determined context model and performing arithmetic encoding of the bin.

즉, 부호화기/복호화기는 주변 블록의 부호화/복호화 정보와 이전 단계에서 부호화/복호화된 빈(bin)의 발생 확률을 이용하여 효과적으로 엔트로피 부호화/복호화를 수행할 수 있다. 또한 부호화 단계에서 부호화기는 주변 블록의 부호화 정보를 통해 문맥 모델을 선택하고, 선택된 문맥 모델에 따라 발생된 빈의 발생 확률 정보를 업데이트할 수 있다.That is, the encoder/decoder can effectively perform entropy encoding/decoding using the encoding/decoding information of the neighboring blocks and the probability of occurrence of bins encoded/decoded in the previous step. In addition, in the encoding step, the encoder may select a context model through the encoding information of the neighboring block, and update the occurrence probability information of a bin generated according to the selected context model.

HD급 이상의 크기를 가지는 UHD급 영상에 대해 단일 부호화기 및/또는 단일 복호화기가 사용되는 경우, 단일 프로세서에 요구되는 작업량이 매우 많고 영상 처리 속도가 매우 늦을 수 있다. 따라서, 부호화 및/또는 복호화 프로세스의 병렬화를 통해 부호화 효율을 향상시키는 방법이 제공될 수 있다. 이를 위해 움직임 보상, 영상 보간(interpolation), DCT(Discrete Cosine Transform), 양자화 등의 프로세스에 대한 병렬화 방법이 제공될 수 있으며, 상술한 엔트로피 부호화/복호화 프로세스에 대해서도 병렬화 방법이 적용될 수 있다.When a single encoder and/or a single decoder is used for a UHD-level image having a size greater than or equal to the HD-level, the amount of work required for a single processor may be very high and the image processing speed may be very slow. Accordingly, a method for improving encoding efficiency through parallelization of encoding and/or decoding processes may be provided. To this end, a parallelization method for processes such as motion compensation, image interpolation, DCT (Discrete Cosine Transform), and quantization may be provided, and the parallelization method may be applied to the above-described entropy encoding/decoding process.

병렬 엔트로피 부호화/복호화는 복수 개의 엔트로피 부호화기 및/또는 복수 개의 엔트로피 복호화기를 이용하여 수행될 수 있다. 병렬 엔트로피 부호화/복호화를 위해 사용되는 기술에는, 가변 길이의 빈 시퀀스(bin sequence)를 가변 길이의 코드워드(codeword)로 매핑(mapping) 및/또는 변환(conversion)하는, PIPE(Probability Interval Partitioning Entropy) 및 V2V(Variable length to Variable length) 등이 있을 수 있다. PIPE 및 V2V 방식은 단일 엔트로피 부호화기/복호화기 및 병렬 엔트로피 부호화기/복호화기에 모두 적용될 수 있다.Parallel entropy encoding/decoding may be performed using a plurality of entropy encoders and/or a plurality of entropy decoders. In a technique used for parallel entropy encoding/decoding, PIPE (Probability Interval Partitioning Entropy) for mapping and/or converting a variable-length bin sequence into a variable-length codeword ) and V2V (Variable Length to Variable Length). The PIPE and V2V schemes can be applied to both a single entropy encoder/decoder and a parallel entropy encoder/decoder.

병렬 엔트로피 부호화/복호화 과정에서 빈(bin)의 확률은 양자화 간격에 따라 나누어질 수 있다. 나누어진 각각의 확률 구간들은 부호화기 측에서 각각의 확률 구간에 대응되는 빈(bin) 부호화기에 할당될 수 있으며, 복호화기 측에서 각각의 확률 구간에 대응되는 빈(bin) 복호화기에 할당될 수 있다. 또한 나누어진 각각의 확률 구간에는 상기 각각의 확률 구간에 대응되는 대표 확률 값이 존재할 수 있다. PIPE 또는 V2V 기술이 병렬 엔트로피 부호화/복호화에 사용되는 경우, 복수 개의 엔트로피 부호화기/복호화기는, 각각 이에 할당된 LPB(Least Probable Bin) 확률 구간 및 상기 확률 구간에 대응되는 대표 LPB 확률 값을 이용하여 부호화/복호화를 수행할 수 있다. 여기서, LPB는 0과 1의 빈의 값 중 더 적게 나타나는 빈의 값을 의미할 수 있다. 이하, 후술되는 실시예들에서, 확률 구간은 LPB 확률 구간을 의미할 수 있고, 대표 확률은 대표 LPB 확률을 의미할 수 있다.In the parallel entropy encoding/decoding process, the probability of a bin may be divided according to a quantization interval. Each of the divided probability intervals may be allocated to a bin encoder corresponding to each probability interval at the encoder side, and may be allocated to a bin decoder corresponding to each probability interval at the decoder side. In addition, each divided probability interval may include a representative probability value corresponding to each probability interval. When PIPE or V2V technology is used for parallel entropy encoding/decoding, a plurality of entropy encoders/decoders encode using LPB (Least Probable Bin) probability interval allocated thereto, respectively, and a representative LPB probability value corresponding to the probability interval. /Decryption can be performed. Here, LPB may mean a value of a bin appearing less among the bin values of 0 and 1. Hereinafter, in the embodiments described below, the probability interval may mean an LPB probability interval, and the representative probability may indicate a representative LPB probability.

부호화기에서, 병렬화된 각각의 엔트로피 부호화기는 고정된 대표 확률로 빈을 코딩하고, 부호화기는 출력인 코드워드의 집합을 비트스트림의 형태로 복호화기로 전송할 수 있다. 예를 들어, 부호화기는 부호화 대상 심볼을 이진화하여 빈으로 변환하고, 문맥 모델러 및/또는 확률 예측기를 통해 부호화 대상 빈 각각에 대한 LPB 확률 값을 예측 및/또는 도출할 수 있다. 부호화기는 문맥 모델러 및/또는 확률 예측기를 통해 예측된 LPB 확률 값을 이용하여, 빈 각각에 대한 확률 구간 및 확률 구간 각각에 대한 대표 LPB 확률을 도출할 수 있다. 각각의 빈은, 이에 대응되는 확률 구간이 할당된 빈 부호화기에서 엔트로피 부호화될 수 있다. 이 때, 각각의 빈 부호화기에 입력된 빈 시퀀스(bin sequence)는 코드워드 테이블에 의해 코드워드로 변환될 수 있다. 즉, 각각의 빈 부호화기에 입력된 빈 시퀀스는 코드워드 테이블 매핑을 통해, 코드워드 형태로 출력될 수 있다. 출력된 코드워드는 비트스트림에 포함되어, NAL(Network Abstraction Layer) 단위로 복호화기로 전송될 수 있다. In the encoder, each entropy encoder parallelized may code a bin with a fixed representative probability, and the encoder may transmit a set of output codewords in the form of a bitstream to the decoder. For example, the encoder may binarize the encoding object symbol to convert it into a bin, and may predict and/or derive an LPB probability value for each encoding object bin through a context modeler and/or a probability predictor. The encoder may derive a probability interval for each bin and a representative LPB probability for each probability interval by using the LPB probability value predicted through the context modeler and/or the probability predictor. Each bin may be entropy-encoded in a bin encoder to which a corresponding probability interval is allocated. In this case, a bin sequence input to each bin encoder may be converted into a codeword by a codeword table. That is, the bin sequence input to each bin encoder may be output in the form of a codeword through codeword table mapping. The output codeword may be included in the bitstream and transmitted to the decoder in units of Network Abstraction Layer (NAL).

복호화기로 전송된 비트스트림은 복호화기에 의해 파싱(parsing)될 수 있다. 파싱 과정에서, 복호화기는 가변 길이의 코드워드를 가변 길이의 빈 시퀀스로 매핑 및/또는 변환시킬 수 있다. 이 때, 각각의 빈에 대한 비교 과정에서, 오버헤드가 발생할 수 있다. The bitstream transmitted to the decoder may be parsed by the decoder. In the parsing process, the decoder may map and/or convert the variable-length codeword into an empty variable-length sequence. In this case, an overhead may occur in the comparison process for each bin.

또한, 부호화기에 포함된 엔트로피 부호화기의 개수는 복호화기에 포함된 엔트로피 복호화기의 개수와 서로 다를 수 있고, 예를 들어, 부호화된 비트스트림이 복호화기로 전송되어 복호화되는 경우, 엔트로피 복호화기의 개수가 엔트로피 부호화기의 개수보다 작을 수 있다. 이 때, 일례로 각각의 엔트로피 복호화기는 하나의 대표 확률에 대응되는 비트스트림을 파싱(parsing)한 후, 다른 대표 확률에 대응되는 비트스트림을 파싱할 수 있다. 파싱 후에 각각의 빈은 역이진화(de-binarization) 과정을 통해 의미 있는 구문 요소(syntax element)의 값으로 복호화되므로, 상술한 파싱 과정은, 역이진화 단계의 지연을 야기할 수 있으며, 이는 전체 엔트로피 복호화 속도에 큰 영향을 미칠 수 있다. Also, the number of entropy encoders included in the encoder may be different from the number of entropy decoders included in the decoder. It may be smaller than the number of encoders. In this case, for example, each entropy decoder may parse a bitstream corresponding to one representative probability and then parse a bitstream corresponding to another representative probability. After parsing, each bin is decoded into a value of a meaningful syntax element through a de-binarization process. Therefore, the above-described parsing process may cause a delay in the de-binarization step, which causes the total entropy It can have a big impact on the decryption speed.

역이진화 단계에서의 지연을 감소시키기 위해, 부호화기에 포함된 각각의 엔트로피 부호화기는, 비트스트림 내의 복호화 가능 위치에 관한 정보를 상기 비트스트림의 헤더에 추가할 수 있으며, 복호화 가능 위치에 관한 정보가 헤더에 포함된 비트스트림이 복호화기로 전송될 수 있다. 본 명세서에서 상기 복호화 가능 위치는, 최소 단위 비트스트림에서 엔트로피 복호화가 시작되는 지점 및/또는 엔트로피 복호화가 끝나는 지점을 의미할 수 있다. 또한, 상기 최소 단위 비트스트림은, 부호화기에서 복호화기로 전송되는 비트스트림 내에서, 엔트로피 복호화가 수행되는 최소 단위를 나타낼 수 있으며, 예를 들어 상기 최소 단위 비트스트림은 하나의 코드워드(codeword)에 대응될 수 있다. 이 때, 각각의 엔트로피 복호화기는, 비트스트림 전체의 시작 지점이 아닌, 비트스트림의 중간 지점(예를 들어, 최소 단위 비트스트림의 시작 지점)에서부터 엔트로피 복호화를 수행할 수 있다. 복호화기는 비트스트림의 헤더에 포함된 복호화 가능 위치에 관한 정보를 이용하여, 각 엔트로피 복호화기에서의 비트스트림 파싱 과정에 대한 스케쥴링(scheduling)을 수행할 수 있다. 그러나, 상술한 바와 같이 복호화 가능 위치에 관한 정보가 이용되는 경우에도, 파싱 후 역이진화가 수행되기 전의 빈(bin)은 의미 있는 구문 요소의 값으로 인식될 수 없으므로, 역이진화 단계에서 지연이 발생할 수 있으며 엔트로피 복호화기의 출력이 지연될 수 있다. In order to reduce the delay in the de-binarization step, each entropy encoder included in the encoder may add information about a decodable position in the bitstream to the header of the bitstream, and the information about the decodable position is included in the header. The bitstream included in the ? may be transmitted to the decoder. In the present specification, the decodable position may mean a point at which entropy decoding starts and/or a point at which entropy decoding ends in the minimum unit bitstream. In addition, the minimum unit bitstream may indicate a minimum unit in which entropy decoding is performed in a bitstream transmitted from an encoder to a decoder. For example, the minimum unit bitstream corresponds to one codeword. can be In this case, each entropy decoder may perform entropy decoding from an intermediate point of the bitstream (eg, a starting point of the minimum unit bitstream) rather than a starting point of the entire bitstream. The decoder may perform scheduling of a bitstream parsing process in each entropy decoder by using information on a decodeable position included in the header of the bitstream. However, as described above, even when information about a decodable position is used, a bin before de-binarization after parsing cannot be recognized as a meaningful syntax element value, so a delay may occur in the de-binarization step. and the output of the entropy decoder may be delayed.

상술한 바와 같이 파싱 과정 및 역이진화 과정에서 지연이 발생하는 경우, 병렬 엔트로피 부호화/복호화 속도가 감소될 수 있다. 따라서, 파싱 과정 및 역이진화 과정에서 발생하는 지연을 최소화할 수 있는 병렬 엔트로피 부호화/복호화 방법이 요구된다.As described above, when a delay occurs in the parsing process and the inverse binarization process, the parallel entropy encoding/decoding speed may be reduced. Therefore, there is a need for a parallel entropy encoding/decoding method capable of minimizing the delay occurring in the parsing process and the de-binarization process.

도 3은 본 발명에 따른 코드워드 길이 제한의 일 실시예를 개략적으로 나타내는 표이다. 도 3은 대표 LPB 확률이 될 수 있는 LPB의 고정 확률 값 각각에 대한, 코드워드의 최소 길이 및 최대 길이를 도시한다.3 is a table schematically showing an embodiment of a codeword length limitation according to the present invention. 3 shows the minimum length and maximum length of a codeword, for each fixed probability value of an LPB, which may be a representative LPB probability.

엔트로피 부호화기의 출력인 코드워드가 생성될 때, 코드워드의 길이는 가변적인 값을 가질 수 있다. 그러나, 상술한 바와 같이 복호화기에서 가변 길이의 코드워드가 가변 길이의 빈 시퀀스로 변환 및/또는 매핑되는 경우에는 많은 연산량이 요구되므로, 코드워드 파싱 과정에서 오버헤드가 발생할 수 있다. 따라서, 소정의 고정된 길이의 코드워드가 사용될 수도 있으며, 이 경우, 복호화기의 파싱 속도가 향상될 수 있다. 그러나, 소정의 고정된 길이의 코드워드가 사용되는 경우에는, 부호화 효율이 감소된다는 문제점이 발생할 수 있다.When the codeword that is the output of the entropy encoder is generated, the length of the codeword may have a variable value. However, as described above, when a variable-length codeword is converted and/or mapped to a variable-length empty sequence in the decoder, a large amount of computation is required, and thus an overhead may occur in the codeword parsing process. Accordingly, a codeword of a predetermined fixed length may be used, and in this case, the parsing speed of the decoder may be improved. However, when a codeword of a predetermined fixed length is used, there may be a problem in that encoding efficiency is reduced.

따라서, 파싱 과정에서 발생하는 오버헤드를 감소시키기 위해, 코드워드의 길이가 최소 길이 이상, 최대 길이 이하로 제한될 수 있다. 코드워드의 최소 길이 및 최대 길이는, 병렬 엔트로피 부호화기가 갖는 대표 LPB 확률 각각에 대해 정의될 수 있다. 즉, 코드워드의 최소 길이 및 최대 길이는, 부호화기 내의 각각의 엔트로피 부호화기가 갖는 대표 LPB 확률 값을 고려하여 정의될 수 있다. Accordingly, in order to reduce overhead generated in the parsing process, the length of the codeword may be limited to a minimum length or more and a maximum length or less. The minimum length and maximum length of the codeword may be defined for each of the representative LPB probabilities of the parallel entropy encoder. That is, the minimum length and the maximum length of the codeword may be defined in consideration of a representative LPB probability value of each entropy encoder in the encoder.

예를 들어, 부호화기는 코드워드 길이 계산기를 포함할 수 있다. 상기 코드워드 길이 계산기는, 대표 확률이 될 수 있는 고정 확률 값 각각에 대해, 부호화 효율을 고려하여 최적의 코드워드 길이(최소 길이 및 최대 길이)를 도출할 수 있다. 이 때, 부호화기에 포함된 각각의 엔트로피 부호화기는, 이에 대응되는 대표 확률 값에 따라, 최소 길이 이상, 최대 길이 이하의 길이를 갖는 코드워드를 생성할 수 있다. 도 3은 도출된 코드워드의 최소 길이 및 최대 길이의 실시예를 도시한다. For example, the encoder may include a codeword length calculator. The codeword length calculator may derive an optimal codeword length (minimum length and maximum length) in consideration of encoding efficiency for each fixed probability value that may be a representative probability. In this case, each entropy encoder included in the encoder may generate a codeword having a length greater than or equal to the minimum length and less than or equal to the maximum length according to a corresponding representative probability value. 3 shows an embodiment of the minimum length and maximum length of a derived codeword.

도 3을 참조하면, 각각의 고정 확률 값에 대해, 코드워드의 최대 길이 및 최소 길이가 도출될 수 있다. 예를 들어, 고정 확률 값이 0.5인 경우, 코드워드의 최대 길이는 8, 코드워드의 최소 길이는 6일 수 있다. 또한, 고정 확률 값이 0.005인 경우, 코드워드의 최대 길이는 13, 코드워드의 최소 길이는 1일 수 있다. Referring to FIG. 3 , for each fixed probability value, a maximum length and a minimum length of a codeword may be derived. For example, when the fixed probability value is 0.5, the maximum length of the codeword may be 8, and the minimum length of the codeword may be 6. Also, when the fixed probability value is 0.005, the maximum length of the codeword may be 13 and the minimum length of the codeword may be 1.

또한, 도 3의 실시예에서는, 고정 확률 값이 높을수록, 코드워드의 최대 길이 값이 작고 최소 길이 값이 클 수 있다. 따라서, LPB의 고정 확률 값이 클수록 코드워드 길이 값의 분산이 적고, LPB의 고정 확률 값이 작을수록 코드워드 길이 값의 분산이 클 수 있다.In addition, in the embodiment of FIG. 3 , as the fixed probability value increases, the maximum length value of the codeword may be small and the minimum length value may be large. Accordingly, the larger the fixed probability value of the LPB, the smaller the variance of the codeword length value, and the smaller the fixed probability value of the LPB, the greater the variance of the codeword length value.

고정 확률 값 각각에 대해 도출되는 코드워드의 최소 길이 및 최대 길이는, 상술한 실시예에 한정되지 않으며, 경우에 따라 다양한 형태로 도출될 수 있다. 이하, 부호화기에서 도출되는 코드워드의 최소 길이 및 최대 길이에 관한 정보는, 코드워드 길이 정보라 한다.The minimum length and maximum length of the codeword derived for each of the fixed probability values are not limited to the above-described embodiment, and may be derived in various forms depending on the case. Hereinafter, information on the minimum length and maximum length of the codeword derived from the encoder is referred to as codeword length information.

부호화기에서 도출된 코드워드 길이 정보는, 비트스트림의 헤더에 포함되어 복호화기로 전송될 수 있다. 이 때, 복호화기는 전송된 코드워드 길이 정보를 이용하여 코드워드를 빈 시퀀스로 매핑시키거나 변환할 수 있으며, 병렬 엔트로피 복호화 속도가 향상될 수 있다.The codeword length information derived from the encoder may be included in the header of the bitstream and transmitted to the decoder. In this case, the decoder may map or convert the codeword into an empty sequence by using the transmitted codeword length information, and the parallel entropy decoding speed may be improved.

도 4는 본 발명에 따른 비트스트림 파싱 과정에 대한 스케쥴링 방법의 일 실시예를 개략적으로 나타내는 개념도이다. 4 is a conceptual diagram schematically illustrating an embodiment of a scheduling method for a bitstream parsing process according to the present invention.

도 4는 부호화기에 포함된 빈(bin) 부호화기의 개수와 복호화기에 포함된 빈(bin) 복호화기의 개수가 동일한 경우의 스케쥴링 방법을 도시한다. 도 4의 실시예에서, 빈 부호화기의 개수와 빈 복호화기의 개수는 각각 4개라 가정한다.4 illustrates a scheduling method when the number of bin encoders included in the encoder is equal to the number of bin decoders included in the decoder. In the embodiment of FIG. 4 , it is assumed that the number of bin encoders and the number of bin decoders are each four.

도 4의 410은 부호화기에서 출력되어 복호화기로 전송되는 비트스트림의 일 실시예를 나타낸다. 상기 비트스트림을 구성하는 각각의 블록(점선으로 구분된 블록)은 최소 단위 비트스트림을 나타낼 수 있으며, 예를 들어, 각각의 최소 단위 비트스트림은 하나의 코드워드에 대응될 수 있다. 각 최소 단위 비트스트림에 표시된 번호는, 파싱 후에 역이진화가 수행되는 순서를 나타낼 수 있다. 또한, 도 4의 411, 413, 415, 417 각각은, 하나의 빈 부호화기의 대표 확률에 대응되는, 모든 최소 단위 비트스트림의 집합을 나타낼 수 있다. 이하, 하나의 대표 확률 및/또는 하나의 확률 구간에 대응되는 모든 최소 단위 비트스트림의 집합은 대표 확률 단위 비트스트림이라 한다.Reference numeral 410 of FIG. 4 shows an embodiment of a bitstream output from an encoder and transmitted to a decoder. Each block (blocks separated by a dotted line) constituting the bitstream may represent a minimum unit bitstream, for example, each minimum unit bitstream may correspond to one codeword. A number indicated in each minimum unit bitstream may indicate an order in which de-binarization is performed after parsing. In addition, each of 411 , 413 , 415 , and 417 of FIG. 4 may represent a set of all minimum unit bitstreams corresponding to the representative probability of one bin encoder. Hereinafter, a set of all minimum unit bitstreams corresponding to one representative probability and/or one probability interval is referred to as a representative probability unit bitstream.

도 4의 420은 도 410의 비트스트림을 4개의 빈 복호화기의 코어(core)에 할당하는 방법의 일 실시예를 도시한다. 도 4의 420을 참조하면, 하나의 대표 확률 단위 비트스트림은 하나의 빈 복호화기의 코어에 할당될 수 있다. 여기서, 코어는 연산을 수행하는 프로세서(processor)를 의미할 수 있다. 이 때, 각각의 빈 복호화기는, 이에 할당된 대표 확률 단위 비트스트림에 대하여 엔트로피 복호화를 수행할 수 있다. 420 of FIG. 4 shows an embodiment of a method of allocating the bitstream of FIG. 410 to cores of four bin decoders. Referring to 420 of FIG. 4 , one representative probability unit bitstream may be allocated to a core of one bin decoder. Here, the core may mean a processor that performs an operation. In this case, each bin decoder may perform entropy decoding on the representative probability unit bitstream allocated thereto.

파싱 후에 각각의 빈은 역이진화 과정을 통해 의미 있는 구문 요소의 값으로 복호화될 수 있다. 이 때, 비트스트림이 빈 시퀀스로 변환되는 파싱 과정은, 역이진화 과정과는 별개로, 독립적으로 수행될 수 있다. 예를 들어, 비트스트림이 빈 시퀀스로 변환되는 순서와 역이진화가 수행되는 순서는 각각 별개로 정해질 수 있다. 따라서, 도 4의 420에서는 역이진화 단계에서 필요한 빈에 대한 파싱이 지연되어, 역이진화 과정의 지연이 발생할 수 있다. 즉, 도 4의 420의 실시예에 의한 파싱 과정은, 역이진화 단계의 지연을 야기할 수 있으며, 이는 전체 엔트로피 복호화기의 지연을 발생시킬 수 있다. 따라서, 역이진화 과정에서 발생되는 지연을 감소시킬 수 있는 엔트로피 복호화 방법이 제공될 수 있다.After parsing, each bean can be decoded into a value of a meaningful syntax element through the de-binarization process. In this case, a parsing process in which the bitstream is converted into an empty sequence may be performed independently of the de-binarization process. For example, an order in which a bitstream is converted into an empty sequence and an order in which de-binarization is performed may be separately determined. Accordingly, in 420 of FIG. 4 , parsing of bins required in the de-binarization step is delayed, and thus the de-binarization process may be delayed. That is, the parsing process according to the embodiment 420 of FIG. 4 may cause a delay of the de-binarization step, which may cause a delay of the entire entropy decoder. Accordingly, an entropy decoding method capable of reducing a delay generated in the de-binarization process can be provided.

도 4의 430은 부호화기에서 출력되어 복호화기로 전송되는 비트스트림의 다른 실시예를 나타낸다. 상기 비트스트림을 구성하는 각각의 블록(점선으로 구분된 블록)은 최소 단위 비트스트림을 나타낼 수 있으며, 예를 들어, 각각의 최소 단위 비트스트림은 하나의 코드워드에 대응될 수 있다. 각 최소 단위 비트스트림에 표시된 번호는, 파싱 후에 역이진화가 수행되는 순서를 나타낼 수 있다. 또한, 도 4의 433, 435, 437, 439 각각은, 대표 확률 단위 비트스트림을 나타낼 수 있다. Reference numeral 430 of FIG. 4 shows another embodiment of a bitstream output from an encoder and transmitted to a decoder. Each block (blocks separated by a dotted line) constituting the bitstream may represent a minimum unit bitstream, for example, each minimum unit bitstream may correspond to one codeword. A number indicated in each minimum unit bitstream may indicate an order in which de-binarization is performed after parsing. In addition, each of 433, 435, 437, and 439 of FIG. 4 may represent a representative probability unit bitstream.

또한, 도 4의 430의 비트스트림 헤더(431)는 비트스트림 파싱 과정의 스케쥴링을 위한, 스케쥴링 정보를 포함할 수 있다. 여기서, 스케쥴링은 심볼의 구문 요소에 대한 역이진화 순서를 고려하여, 비트스트림을 재정렬하는 프로세스를 의미할 수 있다. 스케쥴링이 수행되면, 재정렬된 비트스트림이 빈 복호화기에 할당될 수 있다. 스케쥴링 정보의 구체적인 실시예는 후술된다.Also, the bitstream header 431 of 430 of FIG. 4 may include scheduling information for scheduling a bitstream parsing process. Here, the scheduling may refer to a process of rearranging the bitstream in consideration of the inverse binarization order of the syntax elements of the symbol. When scheduling is performed, the reordered bitstream may be allocated to an empty decoder. A specific embodiment of the scheduling information will be described later.

도 4의 440은 도 430의 비트스트림을 4개의 빈 복호화기의 코어에 할당하는 방법의 실시예를 도시한다. 440 of FIG. 4 shows an embodiment of a method of allocating the bitstream of FIG. 430 to cores of four bin decoders.

도 4의 440을 참조하면, 하나의 대표 확률 단위 비트스트림은 복수 개의 부분 비트스트림으로 분류 및/또는 분할될 수 있다. 여기서 부분 비트스트림은, 비트스트림 재정렬을 위해, 부호화기에서 결정되는 엔트로피 복호화 단위를 나타낼 수 있으며, 하나의 부분 비트스트림은 한 개 또는 복수 개의 최소 단위 비트스트림을 포함할 수 있다. 대표 확률 단위 비트스트림이 부분 비트스트림으로 분할된 경우, 각각의 엔트로피 복호화기는, 대표 확률 단위 비트스트림 전체의 시작 지점이 아닌, 비트스트림의 중간 지점(예를 들어, 부분 비트스트림의 시작 지점)에서 파싱을 시작할 수 있다.Referring to 440 of FIG. 4 , one representative probability unit bitstream may be classified and/or divided into a plurality of partial bitstreams. Here, the partial bitstream may indicate an entropy decoding unit determined by the encoder for bitstream rearrangement, and one partial bitstream may include one or a plurality of minimum unit bitstreams. When the representative probability unit bitstream is divided into partial bitstreams, each entropy decoder is not at the starting point of the entire representative probability unit bitstream, but at the middle point of the bitstream (eg, the starting point of the partial bitstream). You can start parsing.

복호화기는 심볼의 구문 요소에 대한 역이진화 순서를 고려하여, 역이진화 과정에서 우선적으로 필요한 빈이 먼저 파싱될 수 있도록, 부분 비트스트림을 재정렬하여 각각의 빈 복호화기에 할당되는 비트스트림을 결정할 수 있다. 이 때, 복호화기는 빈 복호화기의 개수를 고려하여, 복수의 빈 복호화기가 서로 비슷한 작업량을 가질 수 있도록 비트스트림을 할당할 수 있다. The decoder may determine the bitstream assigned to each bin decoder by rearranging the partial bitstreams so that the bins that are preferentially necessary in the debinarization process can be parsed first in consideration of the debinarization order of the syntax elements of the symbols. In this case, the decoder may allocate the bitstream so that the plurality of bin decoders may have similar workloads to each other in consideration of the number of bin decoders.

대표 확률 단위 비트스트림이 부분 비트스트림으로 분할 및/또는 분류되는 지점은 부호화기에서 결정될 수 있으며, 각각의 대표 확률 단위 비트스트림 및/또는 각각의 부분 비트스트림에 대한 파싱의 우선순위도 부호화기에서 결정될 수 있다. 상기 결정 과정에서, 부호화기는 심볼의 구문 요소에 대한 역이진화 순서를 고려하여, 부분 비트스트림 및 우선순위를 결정할 수 있다.A point at which the representative probability unit bitstream is divided and/or classified into partial bitstreams may be determined by the encoder, and the priority of parsing for each representative probability unit bitstream and/or each partial bitstream may also be determined by the encoder. have. In the determination process, the encoder may determine the partial bitstream and the priority in consideration of the inverse binarization order of the syntax elements of the symbol.

이하, 본 명세서에서 대표 확률 단위 비트스트림이 부분 비트스트림으로 분할 및/또는 분류되는 지점에 관한 정보는 부분 비트스트림 정보라 하고, 각각의 대표 확률 단위 비트스트림 및/또는 각각의 부분 비트스트림에 대한 파싱의 우선순위에 관한 정보는 우선순위 정보라 한다. 상술한 스케쥴링 정보는 상기 부분 비트스트림 정보 및 상기 우선순위 정보를 포함할 수 있으며, 스케쥴링을 위해 필요한 추가 정보가 존재하는 경우, 상기 추가 정보를 포함할 수도 있다.Hereinafter, information on a point at which the representative probability unit bitstream is divided and/or classified into partial bitstreams is referred to as partial bitstream information, and for each representative probability unit bitstream and/or each partial bitstream Information on the priority of parsing is referred to as priority information. The above-described scheduling information may include the partial bitstream information and the priority information, and when additional information necessary for scheduling exists, it may include the additional information.

스케쥴링 정보가 결정되면, 엔트로피 부호화기는 상기 결정된 스케쥴링 정보를 비트스트림의 헤더(431)에 추가하여 복호화기로 전송할 수 있다. 복호화기는 전송된 스케쥴링 정보를 기반으로, 우선 순위가 높은 대표 확률 단위 비트스트림 및/또는 우선 순위가 높은 부분 비트스트림을 인식할 수 있고, 부분 비트스트림 단위로 파싱을 수행할 수 있다. 복호화기는 스케쥴링 정보를 기반으로 비트스트림 파싱 과정에 대한 스케쥴링을 수행하여, 역이진화 단계에서 발생되는 지연을 최소화할 수 있다. When the scheduling information is determined, the entropy encoder may add the determined scheduling information to the header 431 of the bitstream and transmit it to the decoder. The decoder may recognize a high-priority representative probability unit bitstream and/or a high-priority partial bitstream based on the transmitted scheduling information, and may perform parsing in units of partial bitstreams. The decoder may perform scheduling of the bitstream parsing process based on the scheduling information, thereby minimizing the delay generated in the de-binarization step.

상술된 방법에 의하면, 복호화기에 포함된 복수의 빈 복호화기 간에 원활한 작업 분배가 이루어질 수 있고, 역이진화 단계에서의 지연이 최소화될 수 있다. 따라서, 병렬 엔트로피 복호화기에서의 출력 지연이 최소화될 수 있고, 엔트로피 복호화 수행 과정이 고속화될 수 있다.According to the above-described method, a smooth work distribution can be achieved among a plurality of empty decoders included in the decoder, and a delay in the de-binarization step can be minimized. Accordingly, the output delay in the parallel entropy decoder can be minimized, and the entropy decoding process can be speeded up.

도 5는 본 발명에 따른 비트스트림 파싱 과정에 대한 스케쥴링 방법의 다른 실시예를 개략적으로 나타내는 개념도이다. 5 is a conceptual diagram schematically illustrating another embodiment of a scheduling method for a bitstream parsing process according to the present invention.

도 5는 복호화기에 포함된 빈(bin) 복호화기의 개수가 부호화기에 포함된 빈(bin) 부호화기의 개수보다 작은 경우의 스케쥴링 방법을 도시한다. 도 5의 실시예에서, 빈 부호화기의 개수는 4개, 빈 복호화기의 개수는 3개라 가정한다.5 illustrates a scheduling method when the number of bin decoders included in the decoder is smaller than the number of bin encoders included in the encoder. In the embodiment of FIG. 5 , it is assumed that the number of bin encoders is 4 and the number of bin decoders is three.

도 5의 510은 부호화기에서 출력되어 복호화기로 전송되는 비트스트림의 실시예를 나타낸다. 상기 비트스트림을 구성하는 각각의 블록(점선으로 구분된 블록)은 최소 단위 비트스트림을 나타낼 수 있으며, 예를 들어, 각각의 최소 단위 비트스트림은 하나의 코드워드에 대응될 수 있다. 각 최소 단위 비트스트림에 표시된 번호는, 파싱 후에 역이진화가 수행되는 순서를 나타낼 수 있다. 또한, 도 5의 511, 513, 515, 517 각각은, 대표 확률 단위 비트스트림을 나타낼 수 있다. 도 5의 510에서는 총 4개의 대표 확률 단위 비트스트림이 존재할 수 있다.Reference numeral 510 of FIG. 5 shows an embodiment of a bitstream output from an encoder and transmitted to a decoder. Each block (blocks separated by a dotted line) constituting the bitstream may represent a minimum unit bitstream, for example, each minimum unit bitstream may correspond to one codeword. A number indicated in each minimum unit bitstream may indicate an order in which de-binarization is performed after parsing. In addition, each of 511, 513, 515, and 517 of FIG. 5 may represent a representative probability unit bitstream. In 510 of FIG. 5 , a total of four representative probability unit bitstreams may exist.

도 5의 520은 도 510의 비트스트림을 3개의 빈 복호화기의 코어(core)에 할당하는 방법의 실시예를 도시한다. 도 5의 520을 참조하면, 하나의 대표 확률 단위 비트스트림은 하나의 빈 복호화기의 코어에 할당될 수 있다. 이 때, 각각의 빈 복호화기는, 이에 할당된 대표 확률 단위 비트스트림에 대하여 엔트로피 복호화를 수행할 수 있다. 520 of FIG. 5 shows an embodiment of a method of allocating the bitstream of FIG. 510 to cores of three bin decoders. Referring to 520 of FIG. 5 , one representative probability unit bitstream may be allocated to a core of one bin decoder. In this case, each bin decoder may perform entropy decoding on the representative probability unit bitstream allocated thereto.

도 5의 520에서, 빈 복호화기의 개수는 3개이므로, 파싱이 시작될 때에는, 3개의 빈 복호화기에 각각 하나의 대표 확률 단위 비트스트림이 할당될 수 있다. 이 때, 빈 복호화기에 할당되지 못한 대표 확률 단위 비트스트림은, 빈 복호화기에 할당된 3개의 대표 확률 단위 비트스트림 중 적어도 하나가 모두 파싱된 후에, 파싱될 수 있다. 이 경우, 역이진화 우선순위가 높은 빈이 역이진화 우선순위가 낮은 빈보다 늦게 파싱되어, 역이진화 과정에서 지연이 발생할 수 있다. 즉, 도 5의 520의 실시예에 의한 파싱 과정은, 역이진화 단계의 지연을 야기할 수 있으며, 이는 전체 엔트로피 복호화기의 지연을 발생시킬 수 있다. 따라서, 역이진화 과정에서 발생되는 지연을 감소시킬 수 있는 엔트로피 복호화 방법이 제공될 수 있다.In 520 of FIG. 5 , since the number of bin decoders is three, when parsing starts, one representative probability unit bitstream may be allocated to each of the three bin decoders. In this case, the representative probability unit bitstream not allocated to the bin decoder may be parsed after at least one of the three representative probability unit bitstreams allocated to the bin decoder are all parsed. In this case, a bin having a high inverse binarization priority is parsed later than a bin having a low inverse binarization priority, and delay may occur in the inverse binarization process. That is, the parsing process according to the embodiment 520 of FIG. 5 may cause a delay of the de-binarization step, which may cause a delay of the entire entropy decoder. Accordingly, an entropy decoding method capable of reducing a delay generated in the de-binarization process can be provided.

도 5의 530은 부호화기에서 출력되어 복호화기로 전송되는 비트스트림의 다른 실시예를 나타낸다. 상기 비트스트림을 구성하는 각각의 블록(점선으로 구분된 블록)은 최소 단위 비트스트림을 나타낼 수 있으며, 예를 들어, 각각의 최소 단위 비트스트림은 하나의 코드워드에 대응될 수 있다. 각 최소 단위 비트스트림에 표시된 번호는, 파싱 후에 역이진화가 수행되는 순서를 나타낼 수 있다. 또한, 도 5의 533, 535, 537, 539 각각은, 대표 확률 단위 비트스트림을 나타낼 수 있다. Reference numeral 530 of FIG. 5 shows another embodiment of a bitstream output from an encoder and transmitted to a decoder. Each block (blocks separated by a dotted line) constituting the bitstream may represent a minimum unit bitstream, for example, each minimum unit bitstream may correspond to one codeword. A number indicated in each minimum unit bitstream may indicate an order in which de-binarization is performed after parsing. In addition, each of 533, 535, 537, and 539 of FIG. 5 may represent a representative probability unit bitstream.

또한, 도 5의 530의 비트스트림 헤더(531)는 비트스트림 파싱 과정의 스케쥴링을 위한, 스케쥴링 정보를 포함할 수 있다. 여기서, 상기 스케쥴링 정보는 부분 비트스트림 정보 및 우선순위 정보를 포함할 수 있으며, 스케쥴링을 위해 필요한 추가 정보가 존재하는 경우, 상기 추가 정보를 포함할 수도 있다. 스케쥴링이 수행되면, 재정렬된 비트스트림이 3개의 빈 복호화기에 할당될 수 있다. Also, the bitstream header 531 of 530 of FIG. 5 may include scheduling information for scheduling a bitstream parsing process. Here, the scheduling information may include partial bitstream information and priority information, and when additional information necessary for scheduling exists, it may include the additional information. When scheduling is performed, the reordered bitstream may be allocated to three bin decoders.

도 5의 540은 도 530의 비트스트림을 3개의 빈 복호화기의 코어에 할당하는 방법의 실시예를 도시한다. 540 of FIG. 5 shows an embodiment of a method of allocating the bitstream of FIG. 530 to cores of three bin decoders.

도 5의 540을 참조하면, 하나의 대표 확률 단위 비트스트림은 복수 개의 부분 비트스트림으로 분류 및/또는 분할될 수 있다. 여기서, 하나의 부분 비트스트림은 한 개 또는 복수 개의 최소 단위 비트스트림을 포함할 수 있다. 대표 확률 단위 비트스트림이 부분 비트스트림으로 분할된 경우, 각각의 엔트로피 복호화기는, 대표 확률 단위 비트스트림 전체의 시작 지점이 아닌, 비트스트림의 중간 지점(예를 들어, 부분 비트스트림의 시작 지점)에서 파싱을 시작할 수 있다.Referring to 540 of FIG. 5 , one representative probability unit bitstream may be classified and/or divided into a plurality of partial bitstreams. Here, one partial bitstream may include one or a plurality of minimum unit bitstreams. When the representative probability unit bitstream is divided into partial bitstreams, each entropy decoder is not at the starting point of the entire representative probability unit bitstream, but at the middle point of the bitstream (eg, the starting point of the partial bitstream). You can start parsing.

복호화기는 심볼의 구문 요소에 대한 역이진화 순서를 고려하여, 역이진화 과정에서 우선적으로 필요한 빈이 먼저 파싱될 수 있도록, 부분 비트스트림을 재정렬하여 각각의 빈 복호화기에 할당되는 비트스트림을 결정할 수 있다. 이 때, 복호화기는 빈 복호화기의 개수를 고려하여, 복수의 빈 복호화기가 서로 비슷한 작업량을 가질 수 있도록 비트스트림을 할당할 수 있다. The decoder may determine the bitstream assigned to each bin decoder by rearranging the partial bitstreams so that the bins that are preferentially necessary in the debinarization process can be parsed first in consideration of the debinarization order of the syntax elements of the symbols. In this case, the decoder may allocate the bitstream so that the plurality of bin decoders may have similar workloads to each other in consideration of the number of bin decoders.

상술된 스케쥴링 과정을 수행하기 위해 필요한, 스케쥴링 정보(부분 비트스트림 정보 및 우선순위 정보)는 부호화기에서 결정될 수 있다. 상기 결정 과정에서, 부호화기는 심볼의 구문 요소에 대한 역이진화 순서를 고려하여, 부분 비트스트림 및 우선순위를 결정할 수 있다. 스케쥴링 정보가 결정되면, 엔트로피 부호화기는 상기 결정된 스케쥴링 정보를 비트스트림의 헤더(531)에 추가하여 복호화기로 전송할 수 있다. Scheduling information (partial bitstream information and priority information) required to perform the above-described scheduling process may be determined by the encoder. In the determination process, the encoder may determine the partial bitstream and the priority in consideration of the inverse binarization order of the syntax elements of the symbol. When the scheduling information is determined, the entropy encoder may add the determined scheduling information to the header 531 of the bitstream and transmit it to the decoder.

복호화기는 전송된 스케쥴링 정보를 기반으로, 우선 순위가 높은 대표 확률 단위 비트스트림 및/또는 우선 순위가 높은 부분 비트스트림을 인식할 수 있고, 부분 비트스트림 단위로 파싱을 수행할 수 있다. 복호화기는 스케쥴링 정보를 기반으로 비트스트림 파싱 과정에 대한 스케쥴링을 수행하여, 역이진화 단계에서 발생되는 지연을 최소화할 수 있다. The decoder may recognize a high-priority representative probability unit bitstream and/or a high-priority partial bitstream based on the transmitted scheduling information, and may perform parsing in units of partial bitstreams. The decoder may perform scheduling of the bitstream parsing process based on the scheduling information, thereby minimizing the delay generated in the de-binarization step.

상술된 방법에 의하면, 복호화기에 포함된 복수의 빈 복호화기 간에 원활한 작업 분배가 이루어질 수 있고, 역이진화 단계에서의 지연이 최소화될 수 있다. 따라서, 병렬 엔트로피 복호화기에서의 출력 지연이 최소화될 수 있고, 엔트로피 복호화 수행 과정이 고속화될 수 있다.According to the above-described method, a smooth work distribution can be achieved among a plurality of empty decoders included in the decoder, and a delay in the de-binarization step can be minimized. Accordingly, the output delay in the parallel entropy decoder can be minimized, and the entropy decoding process can be speeded up.

도 6은 본 발명에 따른 병렬 엔트로피 부호화 장치의 일 실시예를 개략적으로 나타내는 블록도이다. 6 is a block diagram schematically illustrating an embodiment of a parallel entropy encoding apparatus according to the present invention.

도 6의 실시예에 따른 병렬 엔트로피 부호화 장치는 이진화기(binarizer)(610), 확률 예측기(probability estimator)(620), 확률 양자화기(probability quantizer)(630), 코드워드 길이 계산기(640), 매핑 테이블 계산기(650), 빈 시퀀스 계산기(660), 빈(bin) 부호화기(670), 버퍼(680) 및 비트스트림 결정기(690)를 포함할 수 있다. 도 6의 실시예에 따른 병렬 엔트로피 부호화 장치는 병렬 엔트로피 부호화를 수행하기 위해, 복수 개의 빈 부호화기(670)를 포함할 수 있다.The parallel entropy encoding apparatus according to the embodiment of FIG. 6 includes a binarizer 610, a probability estimator 620, a probability quantizer 630, a codeword length calculator 640, It may include a mapping table calculator 650 , a bin sequence calculator 660 , a bin encoder 670 , a buffer 680 , and a bitstream determiner 690 . The parallel entropy encoding apparatus according to the embodiment of FIG. 6 may include a plurality of bin encoders 670 to perform parallel entropy encoding.

도 6을 참조하면, 이진화기(610)는 부호화 단계에서 얻어진 각 구문 요소들을 이진화할 수 있다. 이 때, 상기 이진화 과정에 의해 각 구문 요소들은 빈 시퀀스로 변환될 수 있다. 여기서, 빈 시퀀스는 0과 1의 조합으로 구성될 수 있다. 확률 예측기(620)는 이진화 과정에 의해 얻어진 빈들 각각에 대해, LPB 확률을 예측할 수 있다.Referring to FIG. 6 , the binarizer 610 may binarize each syntax element obtained in the encoding step. In this case, each syntax element may be converted into an empty sequence by the binarization process. Here, the empty sequence may be composed of a combination of 0 and 1. The probability predictor 620 may predict the LPB probability for each of the bins obtained by the binarization process.

확률 양자화기(630)는 부호화 효율을 높이기 위해, 확률 구간을 나누어, 빈들 각각에 대한 LPB 확률 양자화를 수행할 수 있다. 즉, 확률 양자화기(630)는 예측된 빈의 LPB 확률을 이용하여 각각의 빈이 어떤 확률 구간에 해당되는지 판단할 수 있다. 확률 양자화기(630)는 각각의 빈에 대해, 상기 각각의 빈에 대응되는 확률 구간에 따라, 복수 개의 빈 부호화기들 중 엔트로피 부호화에 사용되는 빈(bin) 부호화기(670)를 결정할 수 있다.The probability quantizer 630 may perform LPB probability quantization on each of the bins by dividing the probability interval in order to increase encoding efficiency. That is, the probability quantizer 630 may determine which probability interval each bin corresponds to by using the LPB probability of the predicted bin. The probability quantizer 630 may determine, for each bin, a bin encoder 670 used for entropy encoding among a plurality of bin encoders according to a probability interval corresponding to each bin.

코드워드 길이 계산기(640)는, 대표 확률 값 각각에 대해, 부호화 효율을 고려하여 최적의 코드워드 길이(최소 길이 및 최대 길이)를 도출 및/또는 획득할 수 있다. 이 때, 코드워드 길이 계산기(640)는 부호화 효율을 유지하기 위해, 대표 확률 값의 특성을 기반으로, 코드워드의 최소 길이 및 최대 길이를 결정할 수 있다.The codeword length calculator 640 may derive and/or obtain an optimal codeword length (minimum length and maximum length) for each representative probability value in consideration of encoding efficiency. In this case, the codeword length calculator 640 may determine the minimum length and the maximum length of the codeword based on the characteristic of the representative probability value in order to maintain encoding efficiency.

일 실시예로, 도출된 코드워드의 최소 길이 및 최대 길이에 관한 정보(코드워드 길이 정보)는 비트스트림의 헤더에 포함되어 복호화기로 전송될 수 있다. 이 때, 복호화기는 상기 헤더에 포함된 코드워드 길이 정보를 이용하여, 각각의 빈 복호화기에서 파싱되는 코드워드의 최소 길이 및 최대 길이를 결정할 수 있다. As an embodiment, information on the minimum and maximum lengths of the derived codewords (codeword length information) may be included in the header of the bitstream and transmitted to the decoder. In this case, the decoder may determine the minimum length and the maximum length of the codeword parsed by each bin decoder by using the codeword length information included in the header.

다른 실시예로, 각각의 대표 확률에 대한 코드워드의 최대 길이 및 최소 길이는, 부호화기 및 복호화기에서 동일한 알고리즘을 이용하여 도출될 수도 있다. 이 때, 코드워드의 최대 길이 및 최소 길이는, 각각의 빈 부호화기의 대표 확률 값에 기반하여 도출될 수 있다. In another embodiment, the maximum length and the minimum length of the codeword for each representative probability may be derived using the same algorithm in the encoder and the decoder. In this case, the maximum length and the minimum length of the codeword may be derived based on the representative probability value of each bin encoder.

상술한 실시예에 따르면, 코드워드 길이 계산기(640)에 의해 코드워드의 길이가 일정 범위로 제한됨으로써, 비트스트림에 대한 파싱 속도가 향상될 수 있다.According to the above-described embodiment, since the length of the codeword is limited to a certain range by the codeword length calculator 640, the parsing speed of the bitstream can be improved.

매핑 테이블 계산기(650)는 코드워드 길이 계산기(640)에 의해 생성된 코드워드 길이 정보를 이용하여, 매핑 테이블을 선택 및/또는 생성할 수 있다. 여기서, 상기 매핑 테이블은 빈 시퀀스가 코드워드로 변환 및/또는 매핑되는 과정에 사용될 수 있다. 따라서, 상기 매핑 테이블은 코드워드-빈 매핑 테이블로 불릴 수도 있다.The mapping table calculator 650 may select and/or generate a mapping table by using the codeword length information generated by the codeword length calculator 640 . Here, the mapping table may be used in a process of converting and/or mapping an empty sequence to a codeword. Accordingly, the mapping table may be referred to as a codeword-bin mapping table.

일례로, 코드워드의 최소 길이 및 최대 길이는 소정의 고정된 값일 수 있다. 이 때, 부호화기 및 복호화기에는 상기 범위 내의 코드워드 길이 값 각각에 대한 소정의 매핑 테이블이 동일하게 저장되어 있을 수 있다. 코드워드의 최소 길이와 최대 길이가 동일한 경우에는, 하나의 고정된 길이의 매핑 테이블이 저장되어 있을 수도 있다.For example, the minimum length and maximum length of the codeword may be predetermined fixed values. In this case, a predetermined mapping table for each codeword length value within the above range may be equally stored in the encoder and the decoder. When the minimum length and the maximum length of the codeword are the same, one fixed-length mapping table may be stored.

부호화기는 상기 저장된 매핑 테이블 중에서 하나를 선택하여 사용할 수 있다. 또한 부호화기는, 상기 저장된 매핑 테이블 중에서 어떤 매핑 테이블이 사용되는지 여부를 지시하는, 매핑 테이블 선택 정보를 비트스트림의 헤더에 추가하여 복호화기로 전송할 수 있다. 이 때, 복호화기는 전송된 매핑 테이블 선택 정보를 이용하여, 저장된 복수의 매핑 테이블 중에서 하나의 매핑 테이블을 선택할 수 있다.The encoder may select and use one of the stored mapping tables. Also, the encoder may add mapping table selection information indicating whether a mapping table is used among the stored mapping tables to a header of the bitstream and transmit it to the decoder. In this case, the decoder may select one mapping table from among a plurality of stored mapping tables by using the transmitted mapping table selection information.

다른 예로, 상기 매핑 테이블은, 부호화기 및 복호화기에서 동일한 생성 알고리즘을 이용하여 생성될 수도 있다. 이 때, 부호화기 및 복호화기는 최소 길이 및 최대 길이에 의해 정해지는 코드워드 길이 범위 내에서, 각각의 코드워드 길이에 대응되는 매핑 테이블을 생성할 수 있다.As another example, the mapping table may be generated using the same generation algorithm in the encoder and the decoder. In this case, the encoder and the decoder may generate a mapping table corresponding to each codeword length within a codeword length range determined by the minimum length and the maximum length.

상기 생성 알고리즘 외에, 매핑 테이블 생성을 위한 추가 정보가 존재하는 경우, 부호화기는 상기 추가 정보를 비트스트림의 헤더에 추가하여 복호화기로 전송할 수 있다. 여기서, 상기 추가 정보에는 예를 들어, 코드워드의 최대 길이 및 최소 길이에 관한 정보가 있을 수 있다. 이 때, 복호화기는 상기 전송된 코드워드의 최대 길이 및 최소 길이에 관한 정보를 이용하여 매핑 테이블을 생성할 수 있다.When additional information for generating a mapping table exists in addition to the generation algorithm, the encoder may add the additional information to the header of the bitstream and transmit it to the decoder. Here, the additional information may include, for example, information on a maximum length and a minimum length of a codeword. In this case, the decoder may generate a mapping table by using information on the maximum length and minimum length of the transmitted codeword.

상술한 경우에, 부호화기는 생성된 매핑 테이블 중에서 하나를 선택하여 사용할 수 있다. 또한 부호화기는, 상기 생성된 매핑 테이블 중에서 어떤 매핑 테이블이 사용되는지 여부를 지시하는, 매핑 테이블 선택 정보를 비트스트림의 헤더에 추가하여 복호화기로 전송할 수 있다. 이 때, 복호화기는 전송된 매핑 테이블 선택 정보를 이용하여, 복수의 매핑 테이블 중에서 하나의 매핑 테이블을 선택할 수 있다.In the above-described case, the encoder may select and use one of the generated mapping tables. In addition, the encoder may add mapping table selection information indicating whether a mapping table is used among the generated mapping tables to a header of the bitstream and transmit it to the decoder. In this case, the decoder may select one mapping table from among a plurality of mapping tables by using the transmitted mapping table selection information.

빈 시퀀스 계산기(660)는, 심볼의 구문 요소에 대한 이진화/역이진화 순서에 관한 정보 및 각각의 빈의 확률에 관한 정보를 도출할 수 있다. 빈 시퀀스 계산기(660)는 상기 도출된 정보를 기반으로, 비트스트림 파싱 과정에 대한 스케쥴링 정보를 도출할 수 있다. 여기서, 스케쥴링은 심볼의 구문 요소에 대한 역이진화 순서를 고려하여, 비트스트림을 재정렬하는 프로세스를 의미할 수 있다.The bin sequence calculator 660 may derive information about the binarization/inverse binarization order of the syntax elements of the symbol and information about the probability of each bin. The bin sequence calculator 660 may derive scheduling information for a bitstream parsing process based on the derived information. Here, the scheduling may refer to a process of rearranging the bitstream in consideration of the inverse binarization order of the syntax elements of the symbol.

도 4에서 상술한 바와 같이, 스케쥴링 정보는 부분 비트스트림 정보 및 우선순위 정보를 포함할 수 있으며, 스케쥴링을 위해 필요한 추가 정보가 존재하는 경우, 상기 추가 정보를 포함할 수도 있다. 여기서, 부분 비트스트림 정보는 대표 확률 단위 비트스트림이 부분 비트스트림으로 분할되는 지점에 관한 정보를 나타내고, 우선순위 정보는 각각의 대표 확률 비트스트림 및/또는 각각의 부분 비트스트림에 대한 파싱의 우선순위에 관한 정보를 나타낼 수 있다. As described above with reference to FIG. 4 , the scheduling information may include partial bitstream information and priority information, and when additional information necessary for scheduling exists, the scheduling information may also include the additional information. Here, the partial bitstream information indicates information on a point at which the representative probability unit bitstream is divided into partial bitstreams, and the priority information indicates a parsing priority for each representative probability bitstream and/or each partial bitstream. information about can be displayed.

상술한 바와 같이, 부호화기에 포함된 빈 부호화기의 개수는 복호화기에 포함된 빈 복호화기의 개수와 서로 다를 수 있고, 예를 들어, 빈 복호화기의 개수가 빈 복호화기의 개수보다 작을 수 있다. 이 경우, 역이진화 우선순위가 높은 빈이 역이진화 우선순위가 낮은 빈보다 늦게 파싱되어, 역이진화 과정에서 지연이 발생할 수 있다. 이 때, 빈 시퀀스 계산기(660)에서 도출된 스케쥴링 정보가 엔트로피 복호화 과정에 사용됨으로써, 역이진화 과정에서 발생되는 지연이 최소화될 수 있다. 도출된 스케쥴링 정보를 비트스트림의 헤더에 추가 및/또는 포함시키기 위해, 빈 시퀀스 계산기(660)는 상기 스케쥴링 정보를 비트스트림 결정기(690)로 보낼 수 있다.As described above, the number of bin encoders included in the encoder may be different from the number of bin decoders included in the decoder, for example, the number of bin decoders may be smaller than the number of bin decoders. In this case, a bin having a high inverse binarization priority is parsed later than a bin having a low inverse binarization priority, and delay may occur in the inverse binarization process. In this case, since the scheduling information derived from the bin sequence calculator 660 is used in the entropy decoding process, a delay occurring in the de-binarization process can be minimized. In order to add and/or include the derived scheduling information to the header of the bitstream, the bin sequence calculator 660 may send the scheduling information to the bitstream determiner 690 .

상술한 코드워드 길이 계산기(640) 및 빈 시퀀스 계산기(660)에서 도출된 정보가 엔트로피 복호화에 사용되는 경우, 병렬 엔트로피 복호화기의 출력 지연이 최소화될 수 있다. 따라서, 엔트로피 복호화 수행 과정이 고속화될 수 있다.When information derived from the above-described codeword length calculator 640 and bin sequence calculator 660 is used for entropy decoding, the output delay of the parallel entropy decoder can be minimized. Accordingly, the entropy decoding process can be speeded up.

빈 부호화기(670)는 매핑 테이블 계산기(650)에 의해 도출된 매핑 테이블을 이용하여, 각각의 빈(bin)에 대한 엔트로피 부호화를 수행할 수 있다. 각각의 빈 부호화기(670)는, 대표 확률에 대응하는 매핑 테이블을 이용하여, 이진화된 빈들을 코드워드로 변환할 수 있다. 빈 부호화기(670)에서 출력된 코드워드는 버퍼(680)에 저장될 수 있다. The bin encoder 670 may perform entropy encoding on each bin by using the mapping table derived by the mapping table calculator 650 . Each bin encoder 670 may convert the binarized bins into codewords using a mapping table corresponding to the representative probability. The codeword output from the bin encoder 670 may be stored in the buffer 680 .

버퍼에 저장된 코드워드들은 비트스트림 결정기(690)를 통해 복호화기로 전송되거나 저장될 수 있다. 비트스트림 결정기(690)는 비트스트림의 헤더에, 헤더 정보를 추가할 수 있다. 상기 헤더 정보에는 예를 들어, 코드워드 길이 정보, 매핑 테이블 선택 정보, 매핑 테이블 생성을 위해 추가되는 정보, 스케쥴링 정보 등이 있을 수 있다. 비트스트림 결정기(690)는 생성된 비트스트림을 복호화기로 전송할 수 있다. 복호화기는, 전송된 비트스트림에 포함된 헤더 정보를 이용하여 코드워드 길이를 제한하거나 비트스트림을 재정렬함으로써, 복호화 지연을 최소화할 수 있고, 출력 속도를 향상시킬 수 있다.The codewords stored in the buffer may be transmitted or stored to the decoder through the bitstream determiner 690 . The bitstream determiner 690 may add header information to the header of the bitstream. The header information may include, for example, codeword length information, mapping table selection information, information added to generate a mapping table, scheduling information, and the like. The bitstream determiner 690 may transmit the generated bitstream to a decoder. The decoder may minimize the decoding delay and improve the output speed by limiting the codeword length or rearranging the bitstream using header information included in the transmitted bitstream.

도 7은 본 발명에 따른 병렬 엔트로피 복호화 장치의 일 실시예를 개략적으로 나타내는 블록도이다. 7 is a block diagram schematically illustrating an embodiment of a parallel entropy decoding apparatus according to the present invention.

도 7의 실시예에 따른 병렬 엔트로피 복호화 장치는 코드워드 길이 계산기(710), 매핑 테이블 계산기(720), 비트스트림 결정기(730), 빈 복호화기(740), 버퍼(750), 확률 양자화기(760), 확률 예측기(770) 및 역이진화기(780)를 포함할 수 있다. 도 7의 실시예에 따른 병렬 엔트로피 복호화 장치는 병렬 엔트로피 복호화를 수행하기 위해, 복수 개의 빈(bin) 복호화기(740)를 포함할 수 있다.The parallel entropy decoding apparatus according to the embodiment of FIG. 7 includes a codeword length calculator 710, a mapping table calculator 720, a bitstream determiner 730, a bin decoder 740, a buffer 750, and a probability quantizer ( 760 ), a probability predictor 770 , and an inverse binarizer 780 . The parallel entropy decoding apparatus according to the embodiment of FIG. 7 may include a plurality of bin decoders 740 to perform parallel entropy decoding.

도 7을 참조하면, 코드워드 길이 계산기(710)는 부호화기에서 전송된 비트스트림의 헤더로부터 코드워드 길이 정보를 도출할 수 있다. Referring to FIG. 7 , the codeword length calculator 710 may derive codeword length information from the header of a bitstream transmitted from the encoder.

상술한 바와 같이, 가변적인 코드워드의 길이에 의해, 비트스트림 파싱 과정에서 오버헤드가 발생하여 파싱 속도가 감소될 수 있다. 이와 같은 문제점을 해결하기 위해 부호화기에서는, 병렬 엔트로피 부호화기가 갖는 대표 LPB 확률 각각에 대해, 코드워드의 최소 길이 및 최대 길이가 정해질 수 있다. As described above, due to the variable length of the codeword, an overhead may occur in the bitstream parsing process, thereby reducing the parsing speed. In order to solve such a problem, in the encoder, the minimum length and the maximum length of the codeword may be determined for each of the representative LPB probabilities of the parallel entropy encoder.

일 실시예로, 도출된 코드워드의 최소 길이 및 최대 길이에 관한 정보(코드워드 길이 정보)는 비트스트림의 헤더에 포함되어 복호화기로 전송될 수 있다. 이 때, 복호화기는 상기 헤더에 포함된 코드워드 길이 정보를 이용하여, 각각의 빈 복호화기에서 파싱되는 코드워드의 최소 길이 및 최대 길이를 결정할 수 있다. As an embodiment, information on the minimum and maximum lengths of the derived codewords (codeword length information) may be included in the header of the bitstream and transmitted to the decoder. In this case, the decoder may determine the minimum length and the maximum length of the codeword parsed by each bin decoder by using the codeword length information included in the header.

다른 실시예로, 각각의 대표 확률에 대한 코드워드의 최대 길이 및 최소 길이는, 부호화기 및 복호화기에서 동일한 알고리즘을 이용하여 도출될 수도 있다. 이 때, 코드워드의 최대 길이 및 최소 길이는, 각각의 빈 부호화기의 대표 확률 값에 기반하여 도출될 수 있다. In another embodiment, the maximum length and the minimum length of the codeword for each representative probability may be derived using the same algorithm in the encoder and the decoder. In this case, the maximum length and the minimum length of the codeword may be derived based on the representative probability value of each bin encoder.

상술한 실시예에 따르면, 코드워드 길이 계산기(710)에 의해 코드워드의 길이가 일정 범위로 제한됨으로써, 비트스트림에 대한 파싱 속도가 향상될 수 있다.According to the above-described embodiment, since the length of the codeword is limited to a certain range by the codeword length calculator 710, the parsing speed of the bitstream can be improved.

매핑 테이블 계산기(720)는 코드워드 길이 계산기(710)에 의해 도출된 코드워드 길이 정보를 이용하여, 매핑 테이블을 선택 및/또는 생성할 수 있다. 이 때, 상기 매핑 테이블은 각 빈 복호화기(740)의 대표 확률에 기반하여 선택 및/또는 생성될 수 있다.The mapping table calculator 720 may select and/or generate a mapping table by using the codeword length information derived by the codeword length calculator 710 . In this case, the mapping table may be selected and/or generated based on the representative probability of each bin decoder 740 .

일례로, 코드워드의 최소 길이 및 최대 길이는 소정의 고정된 값일 수 있다. 이 때, 부호화기 및 복호화기에는 상기 범위 내의 코드워드 길이 값 각각에 대한 소정의 매핑 테이블이 동일하게 저장되어 있을 수 있다. 코드워드의 최소 길이와 최대 길이가 동일한 경우에는, 하나의 고정된 길이의 매핑 테이블이 저장되어 있을 수도 있다.For example, the minimum length and maximum length of the codeword may be predetermined fixed values. In this case, a predetermined mapping table for each codeword length value within the above range may be equally stored in the encoder and the decoder. When the minimum length and the maximum length of the codeword are the same, one fixed-length mapping table may be stored.

부호화기는 상기 저장된 매핑 테이블 중에서 하나를 선택하여 사용할 수 있다. 또한 부호화기는, 상기 저장된 매핑 테이블 중에서 어떤 매핑 테이블이 사용되는지 여부를 지시하는, 매핑 테이블 선택 정보를 비트스트림의 헤더에 추가하여 복호화기로 전송할 수 있다. 이 때, 복호화기는 전송된 매핑 테이블 선택 정보를 이용하여, 저장된 복수의 매핑 테이블 중에서 하나의 매핑 테이블을 선택할 수 있다.The encoder may select and use one of the stored mapping tables. Also, the encoder may add mapping table selection information indicating whether a mapping table is used among the stored mapping tables to a header of the bitstream and transmit it to the decoder. In this case, the decoder may select one mapping table from among a plurality of stored mapping tables by using the transmitted mapping table selection information.

다른 예로, 상기 매핑 테이블은, 부호화기 및 복호화기에서 동일한 생성 알고리즘을 이용하여 생성될 수도 있다. 이 때, 부호화기 및 복호화기는 최소 길이 및 최대 길이에 의해 정해지는 코드워드 길이 범위 내에서, 각각의 코드워드 길이에 대응되는 매핑 테이블을 생성할 수 있다.As another example, the mapping table may be generated using the same generation algorithm in the encoder and the decoder. In this case, the encoder and the decoder may generate a mapping table corresponding to each codeword length within a codeword length range determined by the minimum length and the maximum length.

상기 생성 알고리즘 외에, 매핑 테이블 생성을 위한 추가 정보가 존재하는 경우, 부호화기는 상기 추가 정보를 비트스트림의 헤더에 추가하여 복호화기로 전송할 수 있다. 여기서, 상기 추가 정보에는 예를 들어, 코드워드의 최대 길이 및 최소 길이에 관한 정보가 있을 수 있으며, 코드워드의 최대 길이 및 최소 길이는 병렬 엔트로피 부호화기가 갖는 대표 LPB 확률 각각에 대해 정해질 수 있다. 이 때, 복호화기는 상기 전송된 코드워드의 최대 길이 및 최소 길이에 관한 정보를 이용하여 매핑 테이블을 생성할 수 있다.When additional information for generating the mapping table exists in addition to the generation algorithm, the encoder may add the additional information to the header of the bitstream and transmit it to the decoder. Here, the additional information may include, for example, information on a maximum length and a minimum length of a codeword, and the maximum length and minimum length of the codeword may be determined for each of the representative LPB probabilities of the parallel entropy encoder. . In this case, the decoder may generate a mapping table using information about the maximum length and minimum length of the transmitted codeword.

상술한 경우에, 부호화기는 생성된 매핑 테이블 중에서 하나를 선택하여 사용할 수 있다. 또한 부호화기는, 상기 생성된 매핑 테이블 중에서 어떤 매핑 테이블이 사용되는지 여부를 지시하는, 매핑 테이블 선택 정보를 비트스트림의 헤더에 추가하여 복호화기로 전송할 수 있다. 이 때, 복호화기는 전송된 매핑 테이블 선택 정보를 이용하여, 복수의 매핑 테이블 중에서 하나의 매핑 테이블을 선택할 수 있다. In the above-described case, the encoder may select and use one of the generated mapping tables. In addition, the encoder may add mapping table selection information indicating whether a mapping table is used among the generated mapping tables to a header of the bitstream and transmit it to the decoder. In this case, the decoder may select one mapping table from among a plurality of mapping tables by using the transmitted mapping table selection information.

상술한 실시예에서, 매핑 테이블은 부호화기로부터 전송된 코드워드 길이 정보를 이용하여 결정된다. 따라서, 각각의 대표 확률에 대한 코드워드의 길이가 제한될 수 있으며, 파싱 과정의 지연이 최소화되고 빈 복호화기(740)의 출력 속도가 향상될 수 있다.In the above-described embodiment, the mapping table is determined using codeword length information transmitted from the encoder. Accordingly, the length of the codeword for each representative probability may be limited, the delay of the parsing process may be minimized, and the output speed of the bin decoder 740 may be improved.

비트스트림 결정기(730)는 부호화기로부터 전송된 비트스트림의 헤더에 포함된, 헤더 정보를 복호화할 수 있다. 상기 헤더 정보는 예를 들어, 스케쥴링 정보(부분 비트스트림 정보 및/또는 우선순위 정보)를 포함할 수 있다. 비트스트림 결정기(730)는 상기 스케쥴링 정보를 이용하여, 각 대표 확률 단위 비트스트림을 부분 비트스트림으로 분류하고, 빈 복호화기(740)로 입력되는 비트스트림에 대한 스케쥴링을 수행할 수 있다. 이 때, 복호화기는 빈 복호화기의 개수를 고려하여, 복수의 빈 복호화기가 서로 비슷한 작업량을 가질 수 있도록, 비트스트림을 빈 복호화기에 할당할 수 있다. 스케쥴링 방법에 대한 구체적인 실시예는 도 4, 도 5에서 상술한 바 있으므로, 생략하기로 한다.The bitstream determiner 730 may decode header information included in the header of the bitstream transmitted from the encoder. The header information may include, for example, scheduling information (partial bitstream information and/or priority information). The bitstream determiner 730 may classify each representative probability unit bitstream into a partial bitstream by using the scheduling information, and may perform scheduling on the bitstream input to the bin decoder 740 . In this case, in consideration of the number of bin decoders, the decoder may allocate the bitstream to the bin decoders so that the plurality of bin decoders may have similar workloads to each other. Since a specific embodiment of the scheduling method has been described above with reference to FIGS. 4 and 5 , it will be omitted.

비트스트림 결정기(730)는 부호화기로부터 전송된 스케쥴링 정보를 이용하여 비트스트림에 대한 스케쥴링을 수행함으로써, 역이진화 단계에서의 입력 지연을 최소화할 수 있다. The bitstream determiner 730 may minimize the input delay in the de-binarization step by performing scheduling on the bitstream using the scheduling information transmitted from the encoder.

상술한 코드워드 길이 계산기(710) 및 비트스트림 결정기(730)에서 도출된 정보가 엔트로피 복호화에 사용되는 경우, 병렬 엔트로피 복호화기의 출력 속도가 향상될 수 있다. 따라서, 엔트로피 복호화 수행 과정이 고속화될 수 있다.When the information derived from the codeword length calculator 710 and the bitstream determiner 730 described above is used for entropy decoding, the output speed of the parallel entropy decoder may be improved. Accordingly, the entropy decoding process can be speeded up.

각각의 빈 복호화기(740)는 스케쥴링된 비트스트림 및 대표 확률에 대응하는 매핑 테이블을 이용하여 코드워드를 빈 시퀀스로 변환할 수 있다. 이 때, 각각의 빈 복호화기(740)로 입력되는 비트스트림은 일례로 대표 LPB 확률에 따라 결정될 수 있다.Each bin decoder 740 may convert a codeword into a bin sequence by using a mapping table corresponding to the scheduled bitstream and the representative probability. In this case, the bitstream input to each bin decoder 740 may be determined according to, for example, a representative LPB probability.

빈 복호화기(740)에서 출력된 빈들은 순서에 따라 버퍼(750), 확률 양자화기(760)를 거쳐 확률 예측기(770)로 입력될 수 있다. 확률 예측기(770)는 입력되는 빈(bin)에 대한, LPB 확률을 도출할 수 있다. 빈 시퀀스는, 확률 예측기(770)를 거친 후, 역이진화기(780)를 통해 의미 있는 구문 요소의 값으로 복호화될 수 있다.The bins output from the bin decoder 740 may be input to the probability predictor 770 through the buffer 750 and the probability quantizer 760 in order. The probability predictor 770 may derive an LPB probability for an input bin. After passing through the probability predictor 770 , the empty sequence may be decoded into a meaningful syntax element value through the inverse binarizer 780 .

도 8은 본 발명에 따른 병렬 엔트로피 부호화 장치의 다른 실시예를 개략적으로 나타내는 블록도이다. 8 is a block diagram schematically illustrating another embodiment of a parallel entropy encoding apparatus according to the present invention.

도 8의 실시예에 따른 병렬 엔트로피 부호화 장치는 이진화기(810), 확률 예측기(820), 확률 양자화기(830), 코드워드 길이 계산기(840), 매핑 테이블 계산기(850), 빈(bin) 부호화기(860) 및 버퍼(870)를 포함할 수 있다. 도 8의 실시에에 따른 병렬 엔트로피 부호화 장치는 병렬 엔트로피 부호화를 수행하기 위해, 복수 개의 빈 부호화기(860)를 포함할 수 있다.The parallel entropy encoding apparatus according to the embodiment of FIG. 8 includes a binarizer 810, a probability predictor 820, a probability quantizer 830, a codeword length calculator 840, a mapping table calculator 850, and a bin. It may include an encoder 860 and a buffer 870 . The parallel entropy encoding apparatus according to the embodiment of FIG. 8 may include a plurality of bin encoders 860 to perform parallel entropy encoding.

상술한 바와 같이, 부호화기는 파싱 과정에서 발생하는 오버헤드를 감소시켜 복호화기의 출력 속도를 향상시키기 위해, 코드워드의 길이를 제한할 수 있다. 소정의 고정된 길이의 코드워드가 사용되는 경우에는 부호화 효율이 감소될 수 있으므로, 부호화기는 빈 부호화기 및/또는 빈 복호화기 각각에 대해, 코드워드의 최소 길이 및 최대 길이를 결정할 수 있다.As described above, the encoder may limit the length of the codeword in order to improve the output speed of the decoder by reducing overhead generated in the parsing process. Since encoding efficiency may be reduced when a codeword of a predetermined fixed length is used, the encoder may determine the minimum length and maximum length of the codeword for each of the bin encoder and/or the bin decoder.

도 8을 참조하면, 코드워드 길이 계산기(840)는, 빈 부호화기의 대표 확률 값 각각에 대해, 부호화 효율을 고려하여 최적의 코드워드 길이(최소 길이 및 최대 길이)를 도출 및/또는 획득할 수 있다. 이 때, 코드워드 길이 계산기(840)는 부호화 효율을 유지하기 위해, 대표 확률의 특성을 기반으로, 코드워드의 최소 길이 및 최대 길이를 결정할 수 있다. Referring to FIG. 8 , the codeword length calculator 840 may derive and/or obtain an optimal codeword length (minimum length and maximum length) in consideration of encoding efficiency for each representative probability value of the bin encoder. have. In this case, the codeword length calculator 840 may determine the minimum length and the maximum length of the codeword based on the characteristic of the representative probability in order to maintain encoding efficiency.

도 8의 실시예에서, 상술된 구성을 제외한 나머지 구성의 동작은 도 6의 실시예에서와 동일하므로 생략한다.In the embodiment of FIG. 8 , the operations of the components other than the above-described configuration are the same as in the embodiment of FIG. 6 , and thus will be omitted.

도 9는 본 발명에 따른 병렬 엔트로피 복호화 장치의 다른 실시예를 개략적으로 나타내는 블록도이다. 9 is a block diagram schematically illustrating another embodiment of a parallel entropy decoding apparatus according to the present invention.

도 9의 실시예에 따른 엔트로피 복호화 장치는 코드워드 길이 계산기(910), 매핑 테이블 계산기(920), 빈(bin) 복호화기(930), 버퍼(940), 확률 양자화기(950), 확률 예측기(960) 및 역이진화기(970)를 포함한다. 도 9의 실시예에 따른 병렬 엔트로피 복호화 장치는 병렬 엔트로피 복호화를 수행하기 위해, 복수의 빈(bin) 복호화기(930)를 포함할 수 있다. 도 9의 실시예에 따른 병렬 엔트로피 복호화 장치는 도 7의 실시예에 따른 병렬 엔트로피 복호화 장치와 유사하게 동작할 수 있다. The entropy decoding apparatus according to the embodiment of FIG. 9 includes a codeword length calculator 910 , a mapping table calculator 920 , a bin decoder 930 , a buffer 940 , a probability quantizer 950 , and a probability predictor. 960 and an inverse binarizer 970 . The parallel entropy decoding apparatus according to the embodiment of FIG. 9 may include a plurality of bin decoders 930 to perform parallel entropy decoding. The parallel entropy decoding apparatus according to the embodiment of FIG. 9 may operate similarly to the parallel entropy decoding apparatus according to the embodiment of FIG. 7 .

부호화기로부터 전송된 비트스트림은, 복호화기에 포함된 복수의 빈 복호화기(930)에 할당될 수 있다. 이 때, 복호화기는 상기 전송된 비트스트림의 헤더에 포함된 헤더 정보를 이용하여, 각각의 빈 복호화기에 할당되는 비트스트림을 결정할 수 있다. 이 때, 가변적인 코드워드의 길이에 의해, 비트스트림의 파싱 과정에서 오버헤드가 발생하여 파싱 속도가 감소될 수 있다. 이와 같은 문제점을 해결하기 위해 코드워드 길이 계산기(910)는, 병렬 엔트로피 부호화기가 갖는 대표 LPB 확률 각각에 대해, 코드워드의 최소 길이 및 최대 길이를 결정할 수 있다. The bitstream transmitted from the encoder may be allocated to a plurality of bin decoders 930 included in the decoder. In this case, the decoder may determine the bitstream allocated to each empty decoder by using header information included in the header of the transmitted bitstream. In this case, due to the variable length of the codeword, an overhead may occur in the parsing process of the bitstream, thereby reducing the parsing speed. In order to solve this problem, the codeword length calculator 910 may determine the minimum length and the maximum length of the codeword for each of the representative LPB probabilities of the parallel entropy encoder.

일 실시예로, 부호화기에서 도출된 코드워드의 최소 길이 및 최대 길이에 관한 정보(코드워드 길이 정보)가 비트스트림의 헤더에 포함되어 복호화기로 전송될 수 있다. 이 때, 코드워드 길이 계산기(910)는 상기 헤더에 포함된 코드워드 길이 정보를 이용하여, 각각의 빈 복호화기에서 파싱되는 코드워드의 최소 길이 및 최대 길이를 결정할 수 있다. As an embodiment, information (codeword length information) about the minimum length and maximum length of the codeword derived from the encoder may be included in the header of the bitstream and transmitted to the decoder. In this case, the codeword length calculator 910 may determine the minimum length and the maximum length of the codeword parsed by each bin decoder by using the codeword length information included in the header.

다른 실시예로, 각각의 대표 확률에 대한 코드워드의 최대 길이 및 최소 길이는, 부호화기 및 복호화기에서 동일한 알고리즘을 이용하여 도출될 수도 있다. 이 때, 코드워드의 최대 길이 및 최소 길이는, 각각의 빈 부호화기의 대표 확률 값에 기반하여 도출될 수 있다. In another embodiment, the maximum length and the minimum length of the codeword for each representative probability may be derived using the same algorithm in the encoder and the decoder. In this case, the maximum length and the minimum length of the codeword may be derived based on the representative probability value of each bin encoder.

매핑 테이블 계산기(920)는, 각각의 빈(bin) 복호화기(930)의 대표 확률에 관한 정보 및 코드워드 길이 계산기(910)에 의해 결정된 코드워드의 최소 길이 및 최대 길이에 관한 정보를 이용하여, 매핑 테이블을 결정할 수 있다. 매핑 테이블 결정 방법의 구체적인 실시예는 도 7에서 상술된 바 있으므로, 생략하기로 한다.The mapping table calculator 920 uses information about the representative probability of each bin decoder 930 and information about the minimum and maximum lengths of the codewords determined by the codeword length calculator 910 . , the mapping table can be determined. Since a specific embodiment of the mapping table determination method has been described above with reference to FIG. 7 , it will be omitted.

상술된 코드워드 길이 계산기(910) 및 매핑 테이블 계산기(920)에 의해, 병렬 엔트로피 복호화기의 출력 속도가 향상될 수 있다. 따라서, 엔트로피 복호화 수행 과정이 고속화될 수 있다.By the codeword length calculator 910 and the mapping table calculator 920 described above, the output speed of the parallel entropy decoder may be improved. Accordingly, the entropy decoding process can be speeded up.

도 9의 실시예에서, 상술된 구성을 제외한 나머지 구성의 동작은 도 7의 실시예에서와 동일하므로 생략한다.In the embodiment of FIG. 9 , the operations of the components other than the above-described configuration are the same as in the embodiment of FIG. 7 , and thus will be omitted.

*도 10은 본 발명에 따른 병렬 엔트로피 부호화 장치의 또 다른 실시예를 개략적으로 나타내는 블록도이다. * FIG. 10 is a block diagram schematically showing another embodiment of a parallel entropy encoding apparatus according to the present invention.

도 10의 실시예에 따른 따른 병렬 엔트로피 부호화 장치는 이진화기(1010), 확률 예측기(1020), 확률 양자화기(1030), 빈 시퀀스 계산기(1040), 빈(bin) 부호화기(1050), 버퍼(1060) 및 비트스트림 결정기(1070)를 포함할 수 있다. 도 10의 실시에에 따른 병렬 엔트로피 부호화 장치는 병렬 엔트로피 부호화를 수행하기 위해, 복수 개의 빈 부호화기(1050)를 포함할 수 있다.The parallel entropy encoding apparatus according to the embodiment of FIG. 10 includes a binarizer 1010, a probability predictor 1020, a probability quantizer 1030, a bin sequence calculator 1040, a bin encoder 1050, and a buffer ( 1060 ) and a bitstream determiner 1070 . The parallel entropy encoding apparatus according to the embodiment of FIG. 10 may include a plurality of bin encoders 1050 to perform parallel entropy encoding.

도 10을 참조하면, 이진화기(1010) 부호화 단계에서 얻어진 각 구문 요소들을 이진화할 수 있다. 이 때, 상기 이진화 과정에 의해 각 구문 요소들은 빈 시퀀스로 변환될 수 있다. 확률 예측기(1020)는 이진화 과정에 의해 얻어진 빈들 각각에 대해, 발생 확률을 계산할 수 있다. 또한 확률 양자화기(1030)는 확률 구간을 나누어, 빈들 각각에 대한 LPB 확률 양자화를 수행할 수 있다. Referring to FIG. 10 , each syntax element obtained in the encoding step of the binarizer 1010 may be binarized. In this case, each syntax element may be converted into an empty sequence by the binarization process. The probability predictor 1020 may calculate an occurrence probability for each of the bins obtained by the binarization process. Also, the probability quantizer 1030 may divide a probability interval and perform LPB probability quantization on each of the bins.

빈 시퀀스 계산기(1040)는, 비트스트림 파싱 과정에 대한 스케쥴링 정보를 도출할 수 있다. 도 4에서 상술한 바와 같이, 스케쥴링 정보는 부분 비트스트림 정보 및 우선순위 정보를 포함할 수 있으며, 스케쥴링을 위해 필요한 추가 정보가 존재하는 경우, 상기 추가 정보를 포함할 수도 있다. 여기서, 부분 비트스트림 정보는 대표 확률 단위 비트스트림이 부분 비트스트림으로 분할되는 지점에 관한 정보를 나타내고, 우선순위 정보는 각각의 대표 확률 비트스트림 및/또는 각각의 부분 비트스트림에 대한 파싱의 우선순위에 관한 정보를 나타낼 수 있다. The bin sequence calculator 1040 may derive scheduling information for a bitstream parsing process. As described above with reference to FIG. 4 , the scheduling information may include partial bitstream information and priority information, and when additional information necessary for scheduling exists, the scheduling information may also include the additional information. Here, the partial bitstream information indicates information on a point at which the representative probability unit bitstream is divided into partial bitstreams, and the priority information indicates a parsing priority for each representative probability bitstream and/or each partial bitstream. information can be displayed.

상술한 바와 같이, 파싱 과정에서는 역이진화 우선순위가 높은 빈이 역이진화 우선순위가 낮은 빈보다 늦게 파싱될 수 있으며, 이 경우, 역이진화 과정에서 지연이 발생할 수 있다. 이 때, 빈 시퀀스 계산기(1040)에서 도출된 스케쥴링 정보가 엔트로피 복호화 과정에 사용됨으로써, 역이진화 과정에서 발생되는 지연이 최소화될 수 있다. 도출된 스케쥴링 정보를 비트스트림의 헤더에 추가 및/또는 포함시키기 위해, 빈 시퀀스 계산기(1040)는 상기 스케쥴링 정보를 비트스트림 결정기(1070)로 보낼 수 있다. 비트스트림 결정기(1070)는 상기 스케쥴링 정보를 비트스트림의 헤더에 추가할 수 있으며, 상기 비트스트림은 복호화기로 전송될 수 있다.As described above, in the parsing process, a bin having a high inverse binarization priority may be parsed later than a bin having a low inverse binarizing priority, and in this case, a delay may occur in the inverse binarization process. In this case, since the scheduling information derived from the bin sequence calculator 1040 is used in the entropy decoding process, a delay generated in the de-binarization process can be minimized. In order to add and/or include the derived scheduling information to the header of the bitstream, the bin sequence calculator 1040 may send the scheduling information to the bitstream determiner 1070 . The bitstream determiner 1070 may add the scheduling information to a header of a bitstream, and the bitstream may be transmitted to a decoder.

상술된 빈 시퀀스 계산기(1040)에 의해, 병렬 엔트로피 복호화기의 출력 속도가 향상될 수 있다. 따라서, 엔트로피 복호화 수행 과정이 고속화될 수 있다.By the above-described bin sequence calculator 1040, the output speed of the parallel entropy decoder can be improved. Accordingly, the entropy decoding process can be speeded up.

도 10의 실시예에서, 상술된 구성을 제외한 나머지 구성의 동작은 도 6의 실시예에서와 동일하므로 생략한다.In the embodiment of FIG. 10 , the operations of the components other than the above-described configuration are the same as in the embodiment of FIG. 6 , and thus will be omitted.

도 11은 본 발명에 따른 병렬 엔트로피 복호화 장치의 또 다른 실시예를 개략적으로 나타내는 블록도이다.11 is a block diagram schematically showing another embodiment of a parallel entropy decoding apparatus according to the present invention.

도 11의 실시예에 따른 엔트로피 복호화 장치는 비트스트림 결정기(1110), 빈(bin) 복호화기(1120), 버퍼(1130), 확률 양자화기(1140), 확률 예측기(1150) 및 역이진화기(1160)를 포함한다. 도 11의 실시예에 따른 병렬 엔트로피 복호화 장치는 병렬 엔트로피 복호화를 수행하기 위해, 복수의 빈(bin) 복호화기(930)를 포함할 수 있다. 도 11의 실시예에 따른 병렬 엔트로피 복호화 장치는 도 7의 실시예에 따른 병렬 엔트로피 복호화 장치와 유사하게 동작할 수 있다. The entropy decoding apparatus according to the embodiment of FIG. 11 includes a bitstream determiner 1110, a bin decoder 1120, a buffer 1130, a probability quantizer 1140, a probability predictor 1150, and an inverse binarizer ( 1160). The parallel entropy decoding apparatus according to the embodiment of FIG. 11 may include a plurality of bin decoders 930 to perform parallel entropy decoding. The parallel entropy decoding apparatus according to the embodiment of FIG. 11 may operate similarly to the parallel entropy decoding apparatus according to the embodiment of FIG. 7 .

비트스트림 결정기(1110)는 부호화기로부터 전송된 비트스트림의 헤더에 포함된, 헤더 정보를 복호화할 수 있다. 상기 헤더 정보는 예를 들어, 스케쥴링 정보(부분 비트스트림 정보, 우선순위 정보 및/또는 비트스트림 재정렬을 위해 필요한 추가 정보)를 포함할 수 있다. 비트스트림 결정기(1110)는 상기 스케쥴링 정보를 이용하여, 각 대표 확률 단위 비트스트림을 부분 비트스트림으로 분류하고, 빈 복호화기(1120)로 입력되는 비트스트림에 대한 스케쥴링을 수행할 수 있다. 이 때, 복호화기는 빈 복호화기의 개수를 고려하여, 복수의 빈 복호화기가 서로 비슷한 작업량을 가질 수 있도록, 각 빈 복호화기에 할당되는 비트스트림을 결정할 수 있다. The bitstream determiner 1110 may decode header information included in the header of the bitstream transmitted from the encoder. The header information may include, for example, scheduling information (partial bitstream information, priority information, and/or additional information required for bitstream rearrangement). The bitstream determiner 1110 may classify each representative probability unit bitstream into a partial bitstream by using the scheduling information, and perform scheduling on the bitstream input to the bin decoder 1120 . In this case, in consideration of the number of bin decoders, the decoder may determine a bitstream allocated to each bin decoder so that the plurality of bin decoders can have similar workloads.

비트스트림 결정기(1110)는 부호화기로부터 전송된 스케쥴링 정보를 이용하여 비트스트림에 대한 스케쥴링을 수행함으로써, 역이진화 단계에서의 입력 지연을 최소화할 수 있다. The bitstream determiner 1110 may minimize the input delay in the de-binarization step by performing scheduling on the bitstream using the scheduling information transmitted from the encoder.

**

*도 11의 실시예에서, 상술된 구성을 제외한 나머지 구성의 동작은 도 7의 실시예에서와 동일하므로 생략한다.* In the embodiment of FIG. 11 , the operations of the remaining components except for the above-described configuration are the same as in the embodiment of FIG. 7 , and thus will be omitted.

도 12는 본 발명에 따른 병렬 엔트로피 부호화 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.12 is a flowchart schematically illustrating an embodiment of a parallel entropy encoding method according to the present invention.

도 12를 참조하면, 부호화기는 구문 요소들을 정해진 이진화 방법을 이용하여 빈 시퀀스로 변환시킬 수 있다(S1210). 여기서, 빈 시퀀스는 0과 1의 조합으로 구성될 수 있으며, 각각의 0 또는 1은 빈(bin)이라 불릴 수 있다.Referring to FIG. 12 , the encoder may convert syntax elements into an empty sequence using a predetermined binarization method ( S1210 ). Here, the bin sequence may be composed of a combination of 0 and 1, and each 0 or 1 may be referred to as a bin.

부호화기는 이진화된 각각의 빈에 대한 LPB 확률을 결정할 수 있으며(S1220), 빈(bin)의 확률 구간을 양자화 간격에 따라 나눌 수 있다(S1230). The encoder may determine the LPB probability for each binarized bin (S1220), and divide the probability interval of the bin according to the quantization interval (S1230).

또한, 부호화기는, 복호화기의 역이진화 단계에서의 입력 지연을 최소화하기 위해, 스케쥴링 정보를 도출할 수 있다(S1240). 상술한 바와 같이, 상기 스케쥴링 정보는 부분 비트스트림 정보 및 우선순위 정보를 포함할 수 있으며, 스케쥴링을 위해 필요한 추가 정보가 존재하는 경우, 상기 추가 정보를 포함할 수도 있다. 도출된 스케쥴링 정보는 비트스트림의 헤더에 포함되어 복호화기로 전송될 수 있다.Also, the encoder may derive scheduling information in order to minimize an input delay in the de-binarization step of the decoder ( S1240 ). As described above, the scheduling information may include partial bitstream information and priority information, and when additional information necessary for scheduling exists, it may include the additional information. The derived scheduling information may be included in the header of the bitstream and transmitted to the decoder.

상술한 바와 같이, 빈(bin)의 확률 구간은 양자화 간격에 따라 나누어질 수 있으며, 나누어진 각각의 확률 구간들은 각각의 확률 구간에 대응되는 빈(bin) 부호화기에 할당될 수 있다. 부호화기는 각각의 빈에 대응되는 확률 구간에 따라, 양자화를 통해, 각각의 빈의 엔트로피 부호화에 사용되는 빈 부호화기를 결정할 수 있다(S1250).As described above, the probability interval of a bin may be divided according to the quantization interval, and each divided probability interval may be assigned to a bin encoder corresponding to each probability interval. The encoder may determine a bin encoder used for entropy encoding of each bin through quantization according to a probability interval corresponding to each bin ( S1250 ).

부호화기는, 빈 부호화기의 대표 LPB 확률 각각에 대해, 소정의 알고리즘에 의해 코드워드 길이 정보를 도출할 수 있다(S1260). 여기서, 상기 코드워드 길이 정보는 일례로 코드워드의 최소 길이 및 최대 길이에 관한 정보일 수 있다. 코드워드 길이 정보가 도출되면, 부호화기는 상기 도출된 코드워드 길이 정보를 이용하여 매핑 테이블을 결정할 수 있다. 여기서, 상기 매핑 테이블은 빈 시퀀스가 코드워드로 변환 및/또는 매핑되는 과정에 사용되는 테이블을 의미할 수 있다.The encoder may derive codeword length information by a predetermined algorithm for each of the representative LPB probabilities of the bin encoder (S1260). Here, the codeword length information may be, for example, information about a minimum length and a maximum length of a codeword. When the codeword length information is derived, the encoder may determine a mapping table using the derived codeword length information. Here, the mapping table may refer to a table used in a process of converting and/or mapping an empty sequence to a codeword.

부호화기는 상기 결정된 매핑 테이블을 이용하여, 각각의 빈에 대한 빈(bin) 부호화를 수행할 수 있다(S1270). 부호화기는 빈 부호화를 수행함으로써 이진화된 빈들을 코드워드로 변환할 수 있다. 출력된 코드워드는 비트스트림에 포함되어, NAL 단위로 복호화기로 전송될 수 있다.The encoder may perform bin encoding for each bin by using the determined mapping table (S1270). The encoder may convert the binarized bins into codewords by performing bin encoding. The output codeword may be included in the bitstream and transmitted to the decoder in NAL units.

도 13은 본 발명에 따른 병렬 엔트로피 복호화 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.13 is a flowchart schematically illustrating an embodiment of a parallel entropy decoding method according to the present invention.

도 13을 참조하면, 복호화기는 부호화기로부터 비트스트림을 수신할 수 있다(S1310). 수신된 비트스트림의 헤더는 헤더 정보를 포함할 수 있다. 여기서, 상기 헤더 정보에는 예를 들어, 코드워드 길이 정보, 매핑 테이블 선택 정보, 매핑 테이블 생성을 위해 추가되는 정보, 스케쥴링 정보 등이 있을 수 있다.Referring to FIG. 13 , the decoder may receive a bitstream from the encoder ( S1310 ). The header of the received bitstream may include header information. Here, the header information may include, for example, codeword length information, mapping table selection information, information added to generate a mapping table, scheduling information, and the like.

복호화기는, 비트스트림의 헤더로부터 스케쥴링 정보를 도출할 수 있으며, 역이진화 단계에서의 입력 지연을 최소화하기 위해, 도출된 스케쥴링 정보를 이용하여, 비트스트림에 대한 스케쥴링을 수행할 수 있다(S1320). 여기서, 스케쥴링은 심볼의 구문 요소에 대한 역이진화 순서를 고려하여, 비트스트림을 재정렬하는 프로세스를 의미할 수 있다. 이 때, 복호화기는 빈 복호화기의 개수를 고려하여, 복수의 빈 복호화기가 서로 비슷한 작업량을 가질 수 있도록, 비트스트림을 빈 복호화기에 할당할 수 있다.The decoder may derive scheduling information from the header of the bitstream, and to minimize input delay in the de-binarization step, the decoder may perform scheduling on the bitstream by using the derived scheduling information ( S1320 ). Here, the scheduling may refer to a process of rearranging the bitstream in consideration of the inverse binarization order of the syntax elements of the symbol. In this case, in consideration of the number of bin decoders, the decoder may allocate the bitstream to the bin decoders so that the plurality of bin decoders may have similar workloads to each other.

다시 도 13을 참조하면, 복호화기는 부호화기에서 전송된 비트스트림의 헤더로부터 코드워드 길이 정보를 도출할 수 있다(S1330). 여기서, 코드워드 길이 정보는, 각 빈(bin)복호화기의 대표 LPB 확률에 대응하는, 코드워드의 최소 길이 및 최대 길이에 대한 정보를 의미할 수 있다. 코드워드 길이 정보가 도출되면, 복호화기는 상기 도출된 코드워드 길이 정보를 이용하여 매핑 테이블을 결정할 수 있다.Referring again to FIG. 13 , the decoder may derive codeword length information from the header of the bitstream transmitted from the encoder ( S1330 ). Here, the codeword length information may mean information on the minimum length and the maximum length of the codeword corresponding to the representative LPB probability of each bin decoder. When the codeword length information is derived, the decoder may determine a mapping table using the derived codeword length information.

복호화기는 상기 결정된 매핑 테이블을 이용하여, 각각의 빈에 대한 빈(bin) 복호화를 수행할 수 있다(S1340). 이 때, 복호화기에 포함된 복수의 빈 복호화기는, 각각 이에 할당된 확률 구간에 대응되는 빈을 복호화할 수 있다. 복호화기는 빈 복호화를 수행함으로써, 코드워드를 빈으로 변환할 수 있다. The decoder may perform bin decoding for each bin by using the determined mapping table (S1340). In this case, a plurality of bin decoders included in the decoder may decode a bin corresponding to a probability interval allocated thereto, respectively. The decoder may convert a codeword into a bin by performing bin decoding.

복호화기는, 확률 양자화 단계를 거친 후, 빈(bin) 복호화기에서 출력된 각각의 빈에 대해, LPB 확률을 결정할 수 있다(S1350). 또한 복호화기는, 빈 복호화기에서 출력된 각각의 빈에 대해 역이진화를 수행하여, 의미 있는 구문 요소의 값을 도출할 수 있다(S1360).The decoder may determine the LPB probability for each bin output from the bin decoder after the probability quantization step is performed ( S1350 ). Also, the decoder may de-binarize each bin output from the bin decoder to derive a value of a meaningful syntax element ( S1360 ).

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

상술한 실시예는 다양한 양태의 예시들을 포함한다. 다양한 양태들을 나타내기 위한 모든 가능한 조합을 기술할 수는 없지만, 해당 기술 분야의 통상의 지식을 가진 자는 다른 조합이 가능함을 인식할 수 있을 것이다. 따라서, 본 발명은 이하의 특허청구범위 내에 속하는 모든 다른 교체, 수정 및 변경을 포함한다고 할 것이다.The above-described embodiments include examples of various aspects. It is not possible to describe every possible combination for representing the various aspects, but one of ordinary skill in the art will recognize that other combinations are possible. Accordingly, it is intended that the present invention cover all other substitutions, modifications and variations falling within the scope of the following claims.

Claims (3)

비트스트림으로부터, 복수의 부분 비트스트림의 분할 지점에 관한 부분 비트스트림 정보를 복호화하는 단계;
상기 복수의 부분 비트스트림에 대한 부호화 순서를 나타내는 부호화 순서 정보를 획득하는 단계;
상기 부호화 순서 정보에 따라, 상기 복수의 부분 비트스트림을 복호화하는 단계; 및
상기 복호화된 부분 비트스트림을 기반으로 영상을 복원하는 단계를 포함하고,
상기 비트스트림은 헤더 영역과 데이터 영역으로 구분되고,
상기 헤더 영역은 상기 부분 비트스트림 정보를 포함하고,
상기 비트스트림의 상기 데이터 영역은 상기 복수의 부분 비트스트림을 포함하고, 상기 복수의 부분 비트스트림 각각의 종료 지점은 상기 복수의 부분 비트스트림 각각의 부분 비트스트림 정보에 기초하여 결정되고,
현재 부분 비트스트림의 복호화를 위하여, 이전 부분 비트스트림의 부분 비트스트림 정보로부터 결정된 상기 이전 부분 비트스트림의 종료 지점과 상기 현재 부분 비트스트림의 부분 비트스트림 정보로부터 결정된 상기 현재 부분 비트스트림의 종료 지점 사이의 비트열이 파싱되고,
상기 비트열이 파싱됨으로써, 양자화된 변환계수가 생성되고,
상기 양자화된 변환계수를 역양자화 및 역변환함으로써, 잔차 블록이 생성되고,
상기 잔차 블록에 따라, 상기 영상이 복원되는 것을 특징으로 하는 영상 복호화 방법.
decoding, from the bitstream, partial bitstream information about a splitting point of a plurality of partial bitstreams;
obtaining encoding order information indicating an encoding order of the plurality of partial bitstreams;
decoding the plurality of partial bitstreams according to the encoding order information; and
Reconstructing an image based on the decoded partial bitstream,
The bitstream is divided into a header area and a data area,
The header area includes the partial bitstream information,
the data region of the bitstream includes the plurality of partial bitstreams, and an end point of each of the plurality of partial bitstreams is determined based on partial bitstream information of each of the plurality of partial bitstreams;
For decoding of the current partial bitstream, between an end point of the previous partial bitstream determined from partial bitstream information of the previous partial bitstream and an end point of the current partial bitstream determined from partial bitstream information of the current partial bitstream bit string is parsed,
By parsing the bit string, a quantized transform coefficient is generated,
By inverse quantizing and inverse transforming the quantized transform coefficient, a residual block is generated,
The image decoding method, characterized in that the image is reconstructed according to the residual block.
영상을 부호화하여 구문 요소를 획득하는 단계;
복수의 부분 비트스트림의 분할 지점에 관한 부분 비트스트림 정보를 결정하는 단계;
상기 복수의 부분 비트스트림에 대한 부호화 순서를 나타내는 부호화 순서 정보를 결정하는 단계; 및
상기 구문 요소, 상기 부분 비트스트림 정보, 및 상기 부호화 순서 정보를 부호화하여 비트스트림을 생성하는 단계를 포함하고,
상기 비트스트림은 헤더 영역과 데이터 영역으로 구분되고,
상기 헤더 영역은 상기 부분 비트스트림 정보를 포함하고,
상기 비트스트림의 상기 데이터 영역은 상기 복수의 부분 비트스트림 각각의 종료 지점을 결정하는데 상기 복수의 부분 비트스트림 각각의 부분 비트스트림 정보가 이용되고,
현재 부분 비트스트림의 부분 비트스트림 정보는 이전 부분 비트스트림의 종료 지점과 상기 현재 부분 비트스트림의 종료 지점에 따른 상기 현재 부분 비트스트림의 비트열을 나타내고,
상기 비트열의 생성을 위하여, 영상의 소정 블록에 대한 잔차 블록이 생성되고,
상기 잔차 블록의 변환 및 양자화에 따라, 상기 영상이 부호화되는 것을 특징으로 하는 것을 특징으로 하는 영상 부호화 방법.
encoding an image to obtain a syntax element;
determining partial bitstream information about a splitting point of a plurality of partial bitstreams;
determining encoding order information indicating an encoding order of the plurality of partial bitstreams; and
generating a bitstream by encoding the syntax element, the partial bitstream information, and the encoding order information;
The bitstream is divided into a header area and a data area,
The header area includes the partial bitstream information,
In the data region of the bitstream, partial bitstream information of each of the plurality of partial bitstreams is used to determine an end point of each of the plurality of partial bitstreams;
The partial bitstream information of the current partial bitstream indicates the bitstream of the current partial bitstream according to the end point of the previous partial bitstream and the end point of the current partial bitstream,
To generate the bit stream, a residual block for a predetermined block of an image is generated,
The image encoding method, characterized in that the image is encoded according to the transformation and quantization of the residual block.
영상 복호화 장치에 수신되고 영상에 포함된 현재 블록을 복원하는데 이용되는 비트스트림을 저장한 컴퓨터 판독가능한 기록매체로서,
상기 비트스트림은 구문 요소, 부분 비트스트림 정보, 및 부호화 순서 정보를 포함하고,
상기 비트스트림은 헤더 영역과 데이터 영역으로 구분되고,
상기 헤더 영역은 상기 부분 비트스트림 정보를 포함하고,
상기 비트스트림의 상기 데이터 영역은 복수의 부분 비트스트림을 포함하고,
상기 복수의 부분 비트스트림 각각의 부분 비트스트림 정보는 상기 비트스트림에서 상기 복수의 부분 비트스트림 각각의 종료 지점을 결정하는데 이용되는 것을 특징으로 하고,
상기 부호화 순서 정보는 상기 복수의 부분 비트스트림에 대한 부호화 순서를 나타내는 것을 특징으로 하고,
현재 부분 비트스트림의 부분 비트스트림 정보는 이전 부분 비트스트림의 종료 지점과 상기 현재 부분 비트스트림의 종료 지점에 따른 상기 현재 부분 비트스트림의 비트열을 나타내고,
상기 비트열의 생성을 위하여, 영상의 소정 블록에 대한 잔차 블록이 생성되고,
상기 잔차 블록의 변환 및 양자화에 따라, 상기 영상이 부호화되는 것을 특징으로 하는 비트스트림을 저장한 컴퓨터 판독가능한 기록매체.
A computer-readable recording medium storing a bitstream received by an image decoding apparatus and used to restore a current block included in an image, comprising:
The bitstream includes syntax elements, partial bitstream information, and encoding order information,
The bitstream is divided into a header area and a data area,
The header area includes the partial bitstream information,
the data region of the bitstream includes a plurality of partial bitstreams,
Partial bitstream information of each of the plurality of partial bitstreams is used to determine an end point of each of the plurality of partial bitstreams in the bitstream,
The encoding order information is characterized in that it indicates an encoding order of the plurality of partial bitstreams,
The partial bitstream information of the current partial bitstream indicates the bitstream of the current partial bitstream according to the end point of the previous partial bitstream and the end point of the current partial bitstream,
To generate the bit stream, a residual block for a predetermined block of an image is generated,
The image is encoded according to transformation and quantization of the residual block.
KR1020220121783A 2011-02-21 2022-09-26 Method and apparatus for parallel entropy encoding/decoding KR102486026B1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
KR1020110015230 2011-02-21
KR20110015230 2011-02-21
KR1020220017729A KR102449190B1 (en) 2011-02-21 2022-02-10 Method and apparatus for parallel entropy encoding/decoding

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020220017729A Division KR102449190B1 (en) 2011-02-21 2022-02-10 Method and apparatus for parallel entropy encoding/decoding

Publications (2)

Publication Number Publication Date
KR20220136969A true KR20220136969A (en) 2022-10-11
KR102486026B1 KR102486026B1 (en) 2023-01-10

Family

ID=46886155

Family Applications (13)

Application Number Title Priority Date Filing Date
KR1020120017485A KR101726274B1 (en) 2011-02-21 2012-02-21 Method and apparatus for parallel entropy encoding/decoding
KR1020150111745A KR101726276B1 (en) 2011-02-21 2015-08-07 Method and apparatus for parallel entropy encoding/decoding
KR1020170021581A KR101797055B1 (en) 2011-02-21 2017-02-17 Method and apparatus for parallel entropy encoding/decoding
KR1020170147209A KR101894407B1 (en) 2011-02-21 2017-11-07 Method and apparatus for parallel entropy encoding/decoding
KR1020180100448A KR101975254B1 (en) 2011-02-21 2018-08-27 Method and apparatus for parallel entropy encoding/decoding
KR1020190049550A KR102071667B1 (en) 2011-02-21 2019-04-29 Method and apparatus for parallel entropy encoding/decoding
KR1020190049548A KR102071665B1 (en) 2011-02-21 2019-04-29 Method and apparatus for parallel entropy encoding/decoding
KR1020190049549A KR102071666B1 (en) 2011-02-21 2019-04-29 Method and apparatus for parallel entropy encoding/decoding
KR1020200008841A KR102171380B1 (en) 2011-02-21 2020-01-22 Method and apparatus for parallel entropy encoding/decoding
KR1020200137812A KR102275730B1 (en) 2011-02-21 2020-10-22 Method and apparatus for parallel entropy encoding/decoding
KR1020210087950A KR102363426B1 (en) 2011-02-21 2021-07-05 Method and apparatus for parallel entropy encoding/decoding
KR1020220017729A KR102449190B1 (en) 2011-02-21 2022-02-10 Method and apparatus for parallel entropy encoding/decoding
KR1020220121783A KR102486026B1 (en) 2011-02-21 2022-09-26 Method and apparatus for parallel entropy encoding/decoding

Family Applications Before (12)

Application Number Title Priority Date Filing Date
KR1020120017485A KR101726274B1 (en) 2011-02-21 2012-02-21 Method and apparatus for parallel entropy encoding/decoding
KR1020150111745A KR101726276B1 (en) 2011-02-21 2015-08-07 Method and apparatus for parallel entropy encoding/decoding
KR1020170021581A KR101797055B1 (en) 2011-02-21 2017-02-17 Method and apparatus for parallel entropy encoding/decoding
KR1020170147209A KR101894407B1 (en) 2011-02-21 2017-11-07 Method and apparatus for parallel entropy encoding/decoding
KR1020180100448A KR101975254B1 (en) 2011-02-21 2018-08-27 Method and apparatus for parallel entropy encoding/decoding
KR1020190049550A KR102071667B1 (en) 2011-02-21 2019-04-29 Method and apparatus for parallel entropy encoding/decoding
KR1020190049548A KR102071665B1 (en) 2011-02-21 2019-04-29 Method and apparatus for parallel entropy encoding/decoding
KR1020190049549A KR102071666B1 (en) 2011-02-21 2019-04-29 Method and apparatus for parallel entropy encoding/decoding
KR1020200008841A KR102171380B1 (en) 2011-02-21 2020-01-22 Method and apparatus for parallel entropy encoding/decoding
KR1020200137812A KR102275730B1 (en) 2011-02-21 2020-10-22 Method and apparatus for parallel entropy encoding/decoding
KR1020210087950A KR102363426B1 (en) 2011-02-21 2021-07-05 Method and apparatus for parallel entropy encoding/decoding
KR1020220017729A KR102449190B1 (en) 2011-02-21 2022-02-10 Method and apparatus for parallel entropy encoding/decoding

Country Status (1)

Country Link
KR (13) KR101726274B1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101726274B1 (en) * 2011-02-21 2017-04-18 한국전자통신연구원 Method and apparatus for parallel entropy encoding/decoding
WO2018194190A1 (en) * 2017-04-18 2018-10-25 엘지전자(주) Methods and devices for entropy encoding and decoding of video signal
WO2018207956A1 (en) * 2017-05-10 2018-11-15 엘지전자(주) Method and device for entropy-encoding and entropy-decoding video signal
KR102586709B1 (en) * 2019-04-10 2023-10-11 한국전자통신연구원 Transmitting apparatus, receiveing apparatus and method for protecting video
JP7379541B2 (en) * 2019-06-03 2023-11-14 エルジー エレクトロニクス インコーポレイティド Matrix-based intra prediction device and method
CN111818335B (en) * 2020-07-03 2022-04-26 Tcl华星光电技术有限公司 Entropy coding method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0865171A (en) * 1994-08-19 1996-03-08 Ricoh Co Ltd Data expansion device, data expansion method, decoder, decoding method, real time video equipment, encoder and entropy decoder
JPH10336680A (en) * 1997-02-13 1998-12-18 Rockwell Sci Center Llc Data compression method
KR100201918B1 (en) * 1994-02-23 1999-06-15 이토가 미찌야 Compression of palettized images and binarization for bitwise coding of m-ary alphabets therefor
JP2009518917A (en) * 2005-12-07 2009-05-07 イマジネイション テクノロジーズ リミテッド Data decoding
KR20100052945A (en) * 2008-11-11 2010-05-20 삼성전자주식회사 Apparatus for processing video encoding and decoding using video separation based on slice level and method therefor
KR20100138425A (en) * 2009-06-25 2010-12-31 한양대학교 산학협력단 Apparatus and method for encoding image capable of parallel processing in decoding and apparatus and method for decoding image capable of parallel processing
KR101726276B1 (en) * 2011-02-21 2017-04-17 한국전자통신연구원 Method and apparatus for parallel entropy encoding/decoding

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008042497A (en) * 2006-08-04 2008-02-21 Seiko Epson Corp Decoding device, information reproducing device, and electronic apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100201918B1 (en) * 1994-02-23 1999-06-15 이토가 미찌야 Compression of palettized images and binarization for bitwise coding of m-ary alphabets therefor
JPH0865171A (en) * 1994-08-19 1996-03-08 Ricoh Co Ltd Data expansion device, data expansion method, decoder, decoding method, real time video equipment, encoder and entropy decoder
JPH10336680A (en) * 1997-02-13 1998-12-18 Rockwell Sci Center Llc Data compression method
JP2009518917A (en) * 2005-12-07 2009-05-07 イマジネイション テクノロジーズ リミテッド Data decoding
KR20100052945A (en) * 2008-11-11 2010-05-20 삼성전자주식회사 Apparatus for processing video encoding and decoding using video separation based on slice level and method therefor
KR20100138425A (en) * 2009-06-25 2010-12-31 한양대학교 산학협력단 Apparatus and method for encoding image capable of parallel processing in decoding and apparatus and method for decoding image capable of parallel processing
KR101726276B1 (en) * 2011-02-21 2017-04-17 한국전자통신연구원 Method and apparatus for parallel entropy encoding/decoding

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
유은경, 남정학, 박시내, 심동규, ‘적응적 V2V 엔트로피 부호화 방법’, 한국방송공학회 학술발표대회 논문집, 2011.07., 585-588. *

Also Published As

Publication number Publication date
KR101894407B1 (en) 2018-09-05
KR101975254B1 (en) 2019-05-08
KR20150099489A (en) 2015-08-31
KR20180099596A (en) 2018-09-05
KR102071666B1 (en) 2020-01-31
KR20180095777A (en) 2018-08-28
KR20170021814A (en) 2017-02-28
KR102275730B1 (en) 2021-07-12
KR20190047672A (en) 2019-05-08
KR102071667B1 (en) 2020-01-31
KR20210088479A (en) 2021-07-14
KR20190047674A (en) 2019-05-08
KR102363426B1 (en) 2022-02-16
KR102486026B1 (en) 2023-01-10
KR20200012004A (en) 2020-02-04
KR101726274B1 (en) 2017-04-18
KR102171380B1 (en) 2020-10-29
KR20220026550A (en) 2022-03-04
KR20200126352A (en) 2020-11-06
KR20190047673A (en) 2019-05-08
KR101726276B1 (en) 2017-04-17
KR102071665B1 (en) 2020-01-31
KR101797055B1 (en) 2017-11-16
KR20120095815A (en) 2012-08-29
KR102449190B1 (en) 2022-09-30

Similar Documents

Publication Publication Date Title
KR101867884B1 (en) Method for encoding/decoding an intra prediction mode and apparatus for the same
KR102449190B1 (en) Method and apparatus for parallel entropy encoding/decoding
KR101876173B1 (en) Method and apparatus for encoding/decoding video in intra prediction mode
KR20140044403A (en) Method for encoding and decoding images, and device using same
KR102431675B1 (en) Entrpy decoding method and apparatus for transform skip information
US20130223528A1 (en) Method and apparatus for parallel entropy encoding/decoding
US20130322535A1 (en) Method for encoding and decoding images using plurality of reference images and device using method
WO2012067412A2 (en) Method and apparatus for parallel entropy encoding/decoding
KR20120100839A (en) Entropy encoding/decoding method

Legal Events

Date Code Title Description
A107 Divisional application of patent
E701 Decision to grant or registration of patent right
GRNT Written decision to grant