KR20180123466A - Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus - Google Patents

Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus Download PDF

Info

Publication number
KR20180123466A
KR20180123466A KR1020180137027A KR20180137027A KR20180123466A KR 20180123466 A KR20180123466 A KR 20180123466A KR 1020180137027 A KR1020180137027 A KR 1020180137027A KR 20180137027 A KR20180137027 A KR 20180137027A KR 20180123466 A KR20180123466 A KR 20180123466A
Authority
KR
South Korea
Prior art keywords
block
encoding
conversion
type information
size
Prior art date
Application number
KR1020180137027A
Other languages
Korean (ko)
Inventor
김종호
김휘용
김문철
이진호
이하현
임성창
정세윤
조숙희
최진수
김진웅
안치득
이범식
Original Assignee
한국전자통신연구원
한국과학기술원
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 한국전자통신연구원, 한국과학기술원 filed Critical 한국전자통신연구원
Publication of KR20180123466A publication Critical patent/KR20180123466A/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/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • 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/30Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability

Landscapes

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

Abstract

Provided are a conversion encoding method and an apparatus thereof, and a decoding method and an apparatus thereof. The transcoding method may convert a difference block according to conversion type information determined in advance or adaptively. Then, any one of the converted difference blocks can be determined as a final block. An image coding device includes a prediction block generation part, a difference block generation part, and an encoding part.

Description

계층적 가변 블록 변환이 가능한 부호화 방법 및 장치 그리고 복호화 방법 및 장치{ENCODING METHOD AND APPARATUS FOR TRANSFORMMING HIERARCHICAL VARIABLE BLOCK AND DECODING METHOD AND APPARATUS} BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coding method and apparatus capable of performing hierarchical variable block conversion and a decoding method and apparatus using the same.

본 발명은 입력 영상을 복수의 블록으로 분할하고, 분할된 블록들 중 부호화 블록을 계층적으로 분할하여 변환 부호화하는 기술에 관한 것이다. The present invention relates to a technique for dividing an input image into a plurality of blocks, dividing an encoded block among the divided blocks hierarchically and transcoding.

일반적으로, 화면간 예측 부호화를 수행하는 경우, 변환 부호화 방법은 예측 분할 블록에 모두 동일한 4×4 또는 8×8 변환 블록을 적용하여 변환 부호화한다.In general, when inter picture prediction coding is performed, the transcoding method applies transcoding by applying the same 4x4 or 8x8 transform block to the predictive divided block.

예를 들어, 종래의 변환 부화화 방법은 16×16, 16×8, 8×16, 8×8, 4×8, 4×4 블록 모드에 대해 움직임 예측을 수행하여 차분 블록을 생성할 수 있다. 그리고, 4×4 또는 8×8 변환 블록을 이용하여 차분 블록을 변환 부호화할 수 있다. 이처럼, 종래의 변환 부호화 방법은 예측 모드에 관계없이 차분 블록에 모두 동일하게 변환 부호화를 수행함에 따라, 부호화 효율을 감소시킬 수 있다.For example, the conventional transforming method can generate a differential block by performing motion prediction on 16 × 16, 16 × 8, 8 × 16, 8 × 8, 4 × 8, and 4 × 4 block modes . Then, the differential block can be transcoded using the 4x4 or 8x8 transform block. As described above, the conventional transcoding method can perform the same transcoding on the difference block regardless of the prediction mode, thereby reducing the coding efficiency.

특히, 8×8 변환 블록을 이용하는 경우, 종래의 변환 부화화 방법은 예측 모드가 16×16, 16×8, 8×16, 8×8인 경우에만 변환 부호화를 수행할 수 있다는 한계가 존재한다.Particularly, in the case of using the 8x8 transform block, there is a limitation that the conventional transformed encoding method can perform the transform encoding only when the prediction modes are 16x16, 16x8, 8x16, and 8x8 .

이에 따라, 영상의 특성에 따라 변환 부호화를 다르게 적용하여 부호화 효율을 향상시킬 수 있는 기술이 요구된다.Accordingly, there is a need for a technique capable of improving coding efficiency by applying different transform coding according to the characteristics of an image.

본 발명은 부호화 블록의 크기에 맞는 변환 타입 정보를 생성하고, 변환 타입 정보에 기초하여 차분 블록을 변환 부호화하는 방법 및 장치, 복호화 방법 및 장치를 제공한다.The present invention provides a method and an apparatus, a decoding method, and an apparatus for generating conversion type information suitable for the size of an encoding block and transcoding the difference block based on the conversion type information.

본 발명의 일실시예에 따른 부호화 방법은, 부호화 블록을 복수의 예측 모드 정보에 따라 예측 부호화하여 복수의 예측 블록들을 생성하는 단계, 상기 부호화 블록과 상기 복수의 예측 블록들을 이용하여 복수의 차분 블록들을 생성하는 단계, 미리 정의된 변환 타입 정보 또는 적응적으로 결정된 변환 타입 정보에 따라 상기 차분 블록들을 각각 변환하는 단계 상기 변환된 차분 블록들 중 어느 하나를 최종 블록으로 결정하는 단계를 포함할 수 있다.A coding method according to an embodiment of the present invention includes the steps of generating a plurality of prediction blocks by predicting a coding block according to a plurality of prediction mode information, generating a plurality of prediction blocks by using the coding block and the plurality of prediction blocks, Transforming each of the differential blocks according to predefined transform type information or adaptively determined transform type information, and determining each of the transformed differential blocks as a final block .

또한, 상기 최종 블록으로 결정하는 단계는, 상기 변환된 차분 블록들 중 부호화 성능이 가장 좋은 어느 하나를 최종 블록으로 결정할 수 있다.In addition, in the step of determining as the final block, one of the transformed differential blocks having the best coding performance may be determined as a final block.

또한, 상기 변환된 차분 블록들의 율-왜곡 비용을 각각 계산하는 단계를 더 포함할 수 있다. 그러면, 상기 최종 블록으로 결정하는 단계는, 상기 계산된 율-왜곡 비용에 기초하여 상기 최종 블록을 결정할 수 있다.The method may further include calculating a rate-distortion cost of each of the converted differential blocks. The step of determining as the last block may then determine the last block based on the calculated rate-distortion cost.

또한, 상기 최종 블록으로 결정하는 단계는, 상기 계산된 율-왜곡 비용이 최소인 차분 블록을 최종 블록으로 결정하는 단계, 및 상기 최종 블록에 적용된 변환 타입 정보 및 예측 모드 정보의 전송 여부를 결정하는 단계를 포함할 수 있다.The determining of the final block may include determining a differential block having the minimum rate-distortion cost as a final block, and determining whether to transmit the conversion type information and the prediction mode information applied to the final block Step < / RTI >

또한, 상기 최종 블록에 적용된 변환 타입 정보 및 예측 모드 정보의 전송 여부를 결정하는 단계는, 상기 최종 블록에 적용된 변환 타입 정보 및 예측 모드 정보와, 부호화 블록에 인접한 주변 블록의 변환 타입 정보 및 예측 모드 정보에 기초하여 상기 최종 블록에 적용된 변환 타입 정보 및 예측 모드 정보를 전송할지 여부를 결정할 수 있다.In addition, the step of determining whether or not to transmit the conversion type information and the prediction mode information applied to the last block may include: converting type information and prediction mode information applied to the last block; conversion type information of a neighboring block adjacent to the encoding block; And determine whether to transmit the conversion type information and the prediction mode information applied to the last block based on the information.

또한, 상기 최종 블록으로 결정하는 단계는, 상기 최종 블록에 적용된 변환 타입 정보 및 예측 모드 정보와, 부호화 블록의 패턴 정보(Coded Block Pattern: CBP)를 결합하여 부가 정보를 생성할 수 있다.In addition, in the step of determining the final block, the additional information may be generated by combining the conversion type information and the prediction mode information applied to the final block and the coded block pattern (CBP) of the coding block.

또한, 상기 차분 블록들을 각각 변환하는 단계는, 단위 블록의 크기, 부호화 블록의 크기, 및 주변 블록의 양자화 정보 중 적어도 하나를 이용하여 적응적으로 변환 깊이를 결정하는 단계, 및 상기 부호화 블록의 크기를 기준으로 상기 변환 깊이 마다 변환 블록의 크기를 결정하는 단계를 포함할 수 있다.The transforming each of the difference blocks may include adaptively determining a transform depth using at least one of a size of a unit block, a size of a coding block, and quantization information of a neighboring block, And determining the size of the transform block for each of the transform depths.

또한, 상기 최종 블록에 적용된 예측 모드 정보에 기초하여 상기 부호화 블록을 예측 부호화하여 최종 예측 블록을 생성하는 단계, 상기 최종 예측 블록과 상기 부호화 블록을 이용하여 최종 차분 블록을 생성하는 단계, 상기 최종 블록에 적용된 변환 타입 정보에 기초하여 상기 최종 차분 블록을 변환하는 단계, 및 상기 변환된 최종 차분 블록을 양자화 및 엔트로피 부호화하는 단계를 더 포함할 수 있다.Generating a final prediction block by predicting the encoding block based on prediction mode information applied to the final block, generating a final difference block using the final prediction block and the encoding block, Transforming the final difference block based on the transform type information applied to the transform block, and quantizing and entropy-coding the transformed last difference block.

본 발명에 따르면, 부호화 블록의 크기에 맞는 변환 타입 정보에 기초하여 차분 블록을 변환 부호화 함에 따라 부호화 효율을 향상시킬 수 있다.According to the present invention, the coding efficiency can be improved by transcoding the difference block based on the conversion type information corresponding to the size of the encoding block.

본 발명에 따르면, 부호화 블록에 대해 미리 정의된 변환 타입 정보에 따라 차분 블록을 고정적으로 변환 부호화할 수 있다.According to the present invention, the difference block can be fixedly transcoded according to the conversion type information defined in advance for the encoding block.

본 발명에 따르면, 부호화 블록에 따라 적응적으로 생성된 변환 타입 정보에 따라 차분 블록을 적응적으로 변환 부호화 할 수 있다.According to the present invention, the difference block can be adaptively transcoded according to the transform type information adaptively generated according to the encoding block.

도 1은 본 발명의 일실시예에 따른 변환 부호화 방법을 설명하기 위해 제공되는 흐름도이다.
도 2는 본 발명의 일실시예에 따른 부호화 장치에서 최종 블록을 결정하는 구성을 설명하기 위해 제공되는 흐름도이다.
도 3은 본 발명의 일실시예에 따른 부호화 장치에서 최종 블록의 변환 타입 정보에 기초하여 변환된 최종 차분 블록을 부호화하는 구성을 설명하기 위해 제공되는 흐름도이다.
도 4는 본 발명의 일실시예에 따른 부호화 장치에서 부호화 블록에 적용 가능한 변환 타입 정보를 도시한 도면이다.
도 5는 본 발명의 일실시예에 따른 부호화 장치에서 변환 블록의 크기가 예측 블록의 크기보다 큰 변환 블록을 적용하는 경우의 변환 타입 정보를 도시한 도면이다.
도 6은 본 발명의 일실시예에 따른 부호화 장치의 세부 구성을 도시한 블록도이다.
도 7은 본 발명의 일실시예에 따른 변환 복호화 방법을 설명하기 위해 제공되는 흐름도이다.
도 8은 본 발명의 일시시예에 따른 복호화 장치의 세부 구성을 도시한 블록도이다.
도 9는 본 발명의 일시시예에 따른 부호화 블록의 패턴 정보(CBP)를 이용하는 구성을 설명하기 위해 제공되는 도면이다.
1 is a flow chart for explaining a transcoding method according to an embodiment of the present invention.
2 is a flowchart illustrating a configuration for determining a final block in an encoding apparatus according to an embodiment of the present invention.
3 is a flowchart illustrating a configuration for encoding a final transformed differential block based on transform type information of a final block in an encoding apparatus according to an embodiment of the present invention.
4 is a diagram illustrating conversion type information applicable to an encoding block in an encoding apparatus according to an embodiment of the present invention.
5 is a diagram illustrating conversion type information when a conversion block having a size of a conversion block larger than a size of a prediction block is applied in an encoding apparatus according to an embodiment of the present invention.
6 is a block diagram illustrating a detailed configuration of an encoding apparatus according to an embodiment of the present invention.
7 is a flowchart illustrating a conversion decoding method according to an embodiment of the present invention.
8 is a block diagram showing a detailed configuration of a decoding apparatus according to a temporary example of the present invention.
FIG. 9 is a diagram for explaining a configuration using pattern information (CBP) of a coding block according to a temporary example of the present invention.

이하에서, 첨부된 도면을 참조하여 본 발명에 따른 실시예들을 상세히 설명한다. 그러나, 본 발명이 실시예들에 의해 제한되거나 한정되는 것은 아니다. 또한, 각 도면에 제시된 동일한 참조 부호는 동일한 부재를 나타낸다.Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings. However, the present invention is not limited to or limited by the embodiments. In addition, the same reference numerals shown in the drawings denote the same members.

도 1은 본 발명의 일실시예에 따른 변환 부호화 방법을 설명하기 위해 제공되는 흐름도이다.1 is a flow chart for explaining a transcoding method according to an embodiment of the present invention.

도 1에 따르면, 101 단계에서, 부호화 장치는, 입력 영상을 복수의 블록들로 분할할 수 있다. 예를 들어, 부호화 장치는, 입력 영상을 복수의 단위 블록으로 분할할 수 있다. 여기서, 단위 블록은 부호화 블록 들 중 최대 크기를 갖는 블록으로서, 최상위 부호화 블록을 의미할 수 있다.According to FIG. 1, in step 101, the encoding apparatus can divide an input image into a plurality of blocks. For example, the encoding apparatus can divide an input image into a plurality of unit blocks. Here, the unit block is a block having the maximum size among the encoding blocks, and may mean the most significant encoded block.

이어, 102 단계에서, 부호화 장치는, 최대 변환 크기 및 분할 깊이를 결정할 수 있다.Then, in step 102, the encoding apparatus can determine the maximum conversion size and the division depth.

일례로, 부호화 장치는 단위 블록과 단위 블록의 예측 블록을 이용하여 생성한 차분 블록에 적용할 부호화 블록의 최대 변환 크기 및 분할 깊이를 결정할 수 있다. 이때, 부호화 장치는, 단위 블록의 크기에 기초하여 최대 변환 크기와 분할 깊이를 결정할 수 있다. 또한, 부호화 장치는, 주변 블록의 양자화 정보를 이용하여 최대 변환 크기와 분할 깊이를 결정할 수도 있다.For example, the encoding apparatus can determine a maximum conversion size and a division depth of a coding block to be applied to a difference block generated by using a prediction block of a unit block and a unit block. At this time, the encoding apparatus can determine the maximum conversion size and the division depth based on the size of the unit block. Further, the encoding apparatus may determine the maximum transform size and the depth of division using the quantization information of the neighboring blocks.

그리고, 103 단계에서, 부호화 장치는, 단위 블록을 복수의 부호화 블록으로 분할 할 수 있다. 이때, 부호화 장치는, 최대 변환 크기 및 분할 깊이에 기초하여 단위 블록을 복수의 부호화 블록들로 분할할 수 있다.Then, in step 103, the encoding device can divide the unit block into a plurality of encoding blocks. At this time, the encoding apparatus can divide the unit block into a plurality of encoding blocks based on the maximum conversion size and the division depth.

이어, 104 단계에서, 부호화 장치는, 부호화 블록에 대한 복수의 예측 블록을 생성할 수 있다. 이때, 부호화 장치는, 복수의 예측 모드에 따라 부호화 블록을 예측 부호화하여 복수의 예측 블록을 생성할 수 있다.Next, in step 104, the encoding apparatus can generate a plurality of prediction blocks for the encoding block. At this time, the encoding apparatus can generate a plurality of prediction blocks by encoding the encoded blocks in accordance with the plurality of prediction modes.

일례로, 부호화 장치는, 화면간 예측 모드 또는 화면내 예측 모드를 이용하여 부호화 블록을 예측 부호화하여 예측 블록을 생성할 수 있다. 여기서, 화면간 예측 모드는, 32×32, 16×16, 16×8, 8×16, 8×8, 8×4, 4×8 및 4×4 등의 예측 모드를 포함할 수 있다. 그리고, 화면내 예측 모드는 DC 예측 모드, 수직(Vertical) 예측 모드, 수평(Horizontal) 예측 모드 등 다양한 방향성 예측 모드들을 포함할 수 있다.For example, the encoding apparatus can generate a predictive block by predicting an encoded block using an inter-picture prediction mode or an intra-picture prediction mode. Here, the inter picture prediction mode may include prediction modes such as 32x32, 16x16, 16x8, 8x16, 8x8, 8x4, 4x8, and 4x4. The intra prediction mode may include various directional prediction modes such as a DC prediction mode, a vertical prediction mode, and a horizontal prediction mode.

먼저, 화면간 예측 모드를 이용하는 경우, 부호화 장치는 16×16 예측 모드를 적용한 경우의 예측 블록, 16×8 예측 모드를 이용한 경우의 예측 블록, … , 4×4 예측 모드를 이용한 경우의 예측 블록을 생성할 수 있다. 그리고, 화면내 예측 모드를 이용하는 경우, 부호화 장치는 DC 예측 모드를 이용한 경우의 예측 블록, 수직 예측 모드를 이용한 경우의 예측 블록, 수평 예측 모드를 이용한 경우의 예측 블록 등을 생성할 수 있다.First, in the case of using the inter picture prediction mode, the encoding apparatus includes a prediction block when a 16 × 16 prediction mode is applied, a prediction block when a 16 × 8 prediction mode is used, , And a prediction block in the case of using the 4x4 prediction mode can be generated. When the intra prediction mode is used, the encoding device can generate a prediction block in the case of using the DC prediction mode, a prediction block in the case of using the vertical prediction mode, and a prediction block in the case of using the horizontal prediction mode.

그리고, 105 단계에서, 부호화 장치는 예측 블록과 부호화 블록을 이용하여 차분 블록을 생성할 수 있다. 이때, 부호화 장치는 각 예측 블록과 부호화 블록의 차를 통해 차분 블록을 생성할 수 있다.Then, in step 105, the encoding apparatus can generate the difference block using the prediction block and the encoding block. At this time, the encoding apparatus can generate the difference block through the difference between each prediction block and the encoding block.

일례로, 5개의 예측 모드가 이용되어 5개의 예측 블록이 생성된 경우, 부호화 장치는, 부호화 블록에서 예측 블록 1을 감산하여 차분 블록 1을 생성하고, 부호화 블록에서 예측 블록 2를 감산하여 차분 블록 2를 생성하고, … 부호화 블록에서 예측 블록 5를 감산하여 차분 블록 5를 생성할 수 있다.For example, when five prediction modes are used to generate five prediction blocks, the coding apparatus generates a difference block 1 by subtracting the prediction block 1 from the encoding block, subtracts the prediction block 2 from the encoding block, 2, and ... The difference block 5 can be generated by subtracting the prediction block 5 from the encoding block.

이어, 106 단계에서, 부호화 장치는 미리 정의된 변환 타입 정보 또는 적응적으로 결정된 변환 타입 정보에 따라 복수의 차분 블록들을 각각 변환할 수 있다. 여기서, 변환 타입 정보는 변환 블록의 크기 및 변환 깊이를 포함할 수 있다. 이때, 변환 타입 정보는 단위 블록의 크기, 부호화 블록의 크기, 및 주변 블록의 양자화 정보 중 적어도 하나에 기초하여 미리 정의될 수도 있고, 적응적으로 결정될 수도 있다. 여기서, 주변 블록은 부호화 블록과 인접하게 위치하는 블록을 의미한다.Next, in step 106, the encoding apparatus can convert a plurality of differential blocks, respectively, according to predefined transform type information or adaptively determined transform type information. Here, the conversion type information may include the size of the conversion block and the conversion depth. At this time, the conversion type information may be defined in advance based on at least one of the size of the unit block, the size of the encoding block, and the quantization information of the neighboring blocks, or may be adaptively determined. Here, the neighboring block means a block located adjacent to the encoding block.

또한, 변환 타입 정보는 단일 변환 타입으로 미리 정의되거나, 적응적으로 결정될 수도 있고, 복수의 변환 타입으로 미리 정의되거나, 적응적으로 결정될 수도 있다. 이때, 변환 타입은 트리 구조 또는 계층적 구조를 가질 수 있다.Further, the conversion type information may be predefined as a single conversion type, determined adaptively, or may be predefined as a plurality of conversion types or may be determined adaptively. At this time, the conversion type may have a tree structure or a hierarchical structure.

일례로, 단일 변환 타입으로 미리 정의된 변환 타입 정보를 이용하는 경우, 16×16 예측 모드에 대응하는 변환 블록의 크기가 16×16, 변환 깊이가 1로 미리 정의될 수 있다. 그러면, 부호화 장치는 차분 블록을 16×16 변환 블록을 이용하여 변환할 수 있다.For example, when the conversion type information defined in advance as the single conversion type is used, the size of the conversion block corresponding to the 16 × 16 prediction mode can be predefined as 16 × 16 and the conversion depth is 1. Then, the encoding apparatus can convert the differential block using a 16x16 transform block.

다른 예로, 복수의 변환 타입으로 미리 정의된 변환 타입 정보를 이용하는 경우, 16×16 예측 모드에 대응하는 변환 블록의 크기가 16×16, 16×8, 8×16, 8×8, 변환 깊이가 2로 미리 정의될 수 있다. 그러면, 부호화 장치는, 차분 블록을 16×16 변환 블록을 이용하여 변환하고, 차분 블록을 16×8 변환 블록을 이용하여 변환하고, 차분 블록을 8×16 변환 블록을 이용하여 변환할 수 있다. 이외에, 부호화 블록이 64×64인 경우, 변환 블록의 크기가 64×64, 변환 깊이가 3 또는 변환 블록의 크기가 32×32, 변환 깊이가 2, 등으로 미리 정의될 수 있다. 그리고, 부호화 블록이 32×32인 경우, 변환 블록의 크기가 16×16, 변환 깊이가 2 또는 변환 블록의 크기가 8×8, 변환 깊이가 1, 등으로 미리 정의될 수 있다.As another example, when the conversion type information defined in advance for a plurality of conversion types is used, the size of the conversion block corresponding to the 16 × 16 prediction mode is 16 × 16, 16 × 8, 8 × 16, 8 × 8, 2 < / RTI > Then, the encoding apparatus can convert the differential block using the 16x16 conversion block, convert the differential block using the 16x8 conversion block, and convert the differential block using the 8x16 conversion block. In addition, when the coded block is 64x64, the size of the transform block may be 64x64, the transform depth may be 3 or the transform block size may be 32x32, the transform depth may be 2, and so on. If the encoding block is 32x32, the size of the transform block may be defined as 16x16, the transform depth may be 2 or the transform block size may be 8x8, the transform depth may be 1, and so on.

또 다른 예로, 부호화 장치는, 단위 블록의 크기, 부호화 블록의 크기, 및 주변 블록의 양자화 정보 중 적어도 하나에 기초하여 변환 깊이를 적응적으로 결정할 수 있다. 그리고, 부호화 장치는 부호화 블록의 크기를 기준으로 변환 깊이마다 변환 블록의 크기를 결정할 수 있다. 이때, 부호화 장치는 부호화 블록 내의 화소값 변화 또는 움직임 정보에 기초하여 적응적으로 변환 깊이 및 변환 블록의 크기를 결정할 수 있다. 예를 들어, 부호화 장치는, 부호화 블록내의 화소값 변화가 크거나, 또는 움직임이 많을수록 작은 블록 사이즈를 변환 블록의 크기로 결정할 수 있다. 그리고, 부호화 장치는, 부호화 블록내의 화소값 변화가 작거나, 또는 움직임이 적을수록 큰 블록 사이즈를 변환 블록의 크기로 결정할 수 있다. 이처럼, 부호화 장치는, 영상의 특성에 따라 적응적으로 변환 블록의 크기를 결정할 수 있다. 이어, 결정된 변환 블록을 이용하여 차분 블록을 변환할 수 있다.As another example, the encoding apparatus may adaptively determine a conversion depth based on at least one of a size of a unit block, a size of a coding block, and quantization information of a neighboring block. Then, the encoding apparatus can determine the size of the transform block for each transform depth based on the size of the encoding block. At this time, the encoding apparatus can adaptively determine the conversion depth and the size of the conversion block based on the pixel value change or the motion information in the encoding block. For example, the encoding apparatus can determine the block size as a size of the transform block as the change in the pixel value in the encoding block is large or as the motion is large. Then, the encoding apparatus can determine the larger block size as the size of the transform block as the change in the pixel value in the encoding block is small or the motion is less. As described above, the encoding apparatus can adaptively determine the size of the transform block according to the characteristics of the image. Then, the determined block may be used to transform the difference block.

그리고, 107 단계에서, 부호화 장치는, 복수의 차분 블록들 중에서 어느 하나를 최종 블록으로 결정할 수 있다. 이때, 부호화 장치는 차분 블록의 부호화 성능에 기초하여 복수의 차분블록들 중 어느 하나를 최종 블록으로 결정할 수 있다.In step 107, the encoding apparatus can determine any one of the plurality of difference blocks as a final block. At this time, the encoding apparatus can determine any one of the plurality of differential blocks as the final block based on the coding performance of the differential block.

예를 들어, 부호화 장치는, 차분 블록의 율-왜곡 비용, 차분 블록의 차분값, 및 차분 블록의 변환 계수값 중 적어도 하나를 이용하여 최종 블록을 결정할 수 있다.For example, the encoding apparatus can determine the last block using at least one of the rate-distortion cost of the difference block, the difference value of the difference block, and the transform coefficient value of the difference block.

이어, 108 단계에서, 부호화 장치는, 최종 블록에 적용된 예측 모드 정보 및 변환 타입 정보를 전송할지 여부를 결정할 수 있다.Next, in step 108, the encoding apparatus can determine whether to transmit the prediction mode information and the conversion type information applied to the last block.

이때, 부호화 장치는, 주변 블록의 변환 타입 정보와, 최종 블록의 변환 타입 정보에 기초하여 최종 블록의 변환 타입 정보를 복호화 장치로 전송할지 여부를 결정할 수 있다. 마찬가지로, 부호화 장치는, 주변 블록의 예측 모드 정보와 최종 블록의 예측 모드 정보에 기초하여 최종 블록의 예측 모드 정보를 복호화 장치로 전송할지 여부를 결정할 수 있다. 여기서, 최종 블록은, 부호화 블록이다.At this time, the encoding apparatus can determine whether to transfer the conversion type information of the last block to the decoding apparatus, based on the conversion type information of the neighboring blocks and the conversion type information of the last block. Likewise, the encoding apparatus can determine whether to transmit the prediction mode information of the last block to the decoding apparatus, based on the prediction mode information of the neighboring block and the prediction mode information of the last block. Here, the final block is a coded block.

일례로, 부호화 장치는, 부호화 블록의 변환 타입 정보와 주변 블록의 변환 타입 정보를 비교하여 일치 여부를 판단할 수 있다. 이때, 일치하는 경우, 부호화 장치는, 부호화 블록의 변환 타입 정보를 복호화 장치로 전송하지 않을 수 있다. 마찬가지로, 부호화 장치는 부호화 블록의 예측 모드 정보와 주변 블록의 예측 모드 정보를 비교하여 일치 여부를 판단할 수 있다. 이때, 일치하는 경우, 부호화 장치는 부호화 블록의 예측 모드 정보를 복호화 장치로 전송하지 않을 수 있다. 그러면, 복호화 장치는 주변 블록의 변환 타입 정보 및 예측 모드 정보를 이용하여 부호화 블록을 복원할 수 있다.For example, the encoding device can compare the conversion type information of the encoding block and the conversion type information of the neighboring block to determine whether or not they match. At this time, if they match, the encoding apparatus may not transmit the conversion type information of the encoding block to the decoding apparatus. Likewise, the encoding apparatus can compare the prediction mode information of the encoded block with the prediction mode information of the neighboring block to judge whether or not they match. At this time, if they match, the encoding apparatus may not transmit the prediction mode information of the encoding block to the decoding apparatus. Then, the decoding apparatus can restore the encoded block using the conversion type information and the prediction mode information of the neighboring blocks.

이때, 부호화 블록의 변환 타입 정보 및 예측 모드 정보와 주변 블록의 변환 타입 정보 및 예측 모드 정보가 일치하지 않는 경우, 부호화 장치는, 부호화 블록의 변환 타입 정보 및 예측 모드 정보를 복호화 장치로 전송할 수 있다.At this time, when the conversion type information and the prediction mode information of the encoding block do not match the conversion type information and the prediction mode information of the neighboring block, the encoding apparatus can transmit the conversion type information and the prediction mode information of the encoding block to the decoding apparatus .

이어, 109 단계에서, 부호화 장치는, 부가 정보(Side Information)를 생성하여 전송할 수 있다. Then, in step 109, the encoding apparatus can generate and transmit side information.

일례로, 부호화 블록의 변환 타입 정보 및 예측 모드 정보와 주변 블록의 변환 타입 정보 및 예측 모드 정보가 일치하지 않는 경우, 부호화 장치는, 부호화 블록의 패턴 정보(Coded Block Pattern: CBP)와, 최종 블록에 적용된 변환 타입 정보 및 예측 모드 정보를 결합하여 부가 정보를 생성할 수 있다. 그리고, 부호화 장치는, 생성된 부가 정보를 복호화 장치로 전송할 수 있다. For example, when the conversion type information and the prediction mode information of the encoding block do not match the conversion type information and the prediction mode information of the neighboring block, the encoding device generates the coded block pattern (CBP) The additional information can be generated by combining the conversion type information and the prediction mode information applied to the prediction mode information. Then, the encoding apparatus can transmit the generated additional information to the decoding apparatus.

이처럼, 부호화 장치는, CBP 정보와, 변환 타입 정보 및 예측 모드 정보를 결합함으로써 부가 정보의 양을 감소시킬 수 있다. 이때, 단일 변환 타입을 이용하는 경우, 부호화 장치는, 번호나 타입을 나타내는 부가 정보를 복호화 장치로 전송하지 않을 수 있다. 예를 들어, 변환 블록의 크기가 N×N이고, 변환 깊이가 1인 경우, 단일 변환 타입만을 사용하므로 부호화 장치는 부호화 블록의 변환 타입 정보 및 부호화 블록의 예측 모드 정보를 포함하는 부가 정보를 복호화 장치로 전송하지 않아도 된다.As described above, the encoding apparatus can reduce the amount of the additional information by combining the CBP information, the conversion type information, and the prediction mode information. At this time, when a single conversion type is used, the encoding apparatus may not transmit the additional information indicating the number or type to the decoding apparatus. For example, when the size of the transform block is N x N and the transform depth is 1, only the single transform type is used. Therefore, the encoding device decodes the additional information including the transform type information of the encoding block and the prediction mode information of the encoding block It does not have to be transmitted to the device.

도 2는 본 발명의 일실시예에 따른 부호화 장치에서 최종 블록을 결정하는 구성을 설명하기 위해 제공되는 흐름도이다.2 is a flowchart illustrating a configuration for determining a final block in an encoding apparatus according to an embodiment of the present invention.

도 2에 따르면, 201 단계에서, 부호화 장치는 차분 블록들 각각의 부호화 성능을 결정할 수 있다. 이때, 부호화 장치는, 부호화 성능을 결정하기 위해, 율-왜곡 비용, 차분값, 변환 계수값 등을 이용할 수 있다.2, in step 201, the encoding apparatus can determine the encoding performance of each of the differential blocks. At this time, the encoding apparatus can use a rate-distortion cost, a difference value, a transform coefficient value or the like to determine the encoding performance.

그리고, 202 단계에서, 부호화 장치는, 결정된 부호화 성능에 기초하여 변환된 복수의 차분 블록들 중 어느 하나를 최종 블록으로 결정할 수 있다.In step 202, the encoding apparatus can determine any one of the plurality of differential blocks converted based on the determined encoding performance as a final block.

일례로, 율-왜곡 비용을 이용하는 경우, 부호화 장치는 변환된 복수의 차분 블록들 각각의 율-왜곡 비용을 계산할 수 있다. 그리고, 부호화 장치는, 율-왜곡 비용이 최소인 차분 블록을 최종 블록으로 결정할 수 있다.In one example, when the rate-distortion cost is used, the encoding apparatus can calculate the rate-distortion cost of each of the plurality of transformed difference blocks. Then, the encoding apparatus can determine a differential block having the minimum rate-distortion cost as a final block.

예를 들어, 변환된 차분 블록이 3개인 경우, 부호화 장치는 변환된 차분 블록 1의 율-왜곡 비용 1을 계산하고, 변환된 차분 블록 2의 율-왜곡 비용 2를 계산하고, 변환된 차분 블록 3의 율-왜곡 비용 3을 계산할 수 있다. 이어, 부호화 장치는 율-왜곡 비용 1 내지 3 중에서 최소인 율-왜곡 비용을 선택할 수 있다. 그리고, 부호화 장치는, 선택된 율-왜곡 비용에 해당하는 변환된 차분 블록을 최종 블록으로 결정할 수 있다.For example, if there are three converted difference blocks, the encoder calculates the rate-distortion cost 1 of the transformed difference block 1, calculates the rate-distortion cost 2 of the transformed difference block 2, 3 rate-distortion cost 3 can be calculated. Then, the encoding apparatus can select a rate-distortion cost that is the smallest among the rate-distortion costs 1 to 3. Then, the encoding apparatus can determine the converted difference block corresponding to the selected rate-distortion cost as a final block.

다른 예로, 차분값을 이용하는 경우, 부호화 장치는, 변환된 복수의 차분 블록들 각각의 차분값을 계산할 수 있다. 그리고, 부호화 장치는, 계산된 차분값에 기초하여 최종 블록을 결정할 수 있다.As another example, when the difference value is used, the encoding device can calculate the difference value of each of the plurality of converted difference blocks. Then, the encoding apparatus can determine the last block based on the calculated difference value.

또 다른 예를, 변환 계수값을 이용하는 경우, 부호화 장치는, 변환된 복수의 차분 블록들 각각의 변환 계수값을 계산할 수 있다. 그리고, 부호화 장치는, 계산된 변환 계수값에 기초하여 최종 블록을 결정할 수 있다.As another example, when the transform coefficient value is used, the encoding device can calculate the transform coefficient value of each of the plurality of transformed difference blocks. Then, the encoding apparatus can determine the last block based on the calculated transform coefficient value.

도 3은 본 발명의 일실시예에 따른 부호화 장치에서 최종 블록의 변환 타입 정보에 기초하여 변환된 최종 차분 블록을 부호화하는 구성을 설명하기 위해 제공되는 흐름도이다.3 is a flowchart illustrating a configuration for encoding a final transformed differential block based on transform type information of a final block in an encoding apparatus according to an embodiment of the present invention.

도 3에 따르면, 먼저, 301 단계에서, 부호화 장치는, 최종 블록에 적용된 예측 모드 정보에 기초하여 예측 블록을 생성할 수 있다.3, in step 301, the encoding device can generate a prediction block based on the prediction mode information applied to the last block.

이어, 302 단계에서, 부호화 장치는 상기 생성된 예측 블록과 부호화 블록을 이용하여 최종 차분 블록을 생성할 수 있다. Next, in step 302, the encoding apparatus can generate a final difference block using the generated prediction block and the encoding block.

그리고, 303 단계에서, 부호화 장치는, 최종 블록에 적용된 변환 타입 정보에 기초하여 최종 차분 블록을 변환할 수 있다.Then, in step 303, the encoding apparatus can convert the final difference block based on the conversion type information applied to the last block.

이어, 304 단계에서, 부호화 장치는, 변환된 최종 차분 블록을 양자화하고, 양자화된 최종 차분 블록을 엔트로피 부호화할 수 있다. 그리고, 부호화 장치는, 엔트로피 부호화를 통해 생성된 비트스트림을 복호화 장치로 전송할 수 있다.Then, in step 304, the encoding apparatus quantizes the transformed last difference block, and entropy-codes the quantized final difference block. Then, the encoding apparatus can transmit the bitstream generated through the entropy encoding to the decryption apparatus.

도 3에서는, 최종 블록에 적용된 예측 모드 정보에 기초하여 최종 예측 블록을 생성하고, 최종 블록에 적용된 변환 타입 정보에 기초하여 최종 차분 블록을 변환하고, 변환된 최종 차분 블록을 양자화 및 엔트로피 부호화하는 구성에 대해 설명하였으나, 이는 실시예에 해당되며, 부호화 장치는 최종 예측 블록을 생성 및 최종 차분 블록을 변환하는 구성을 생략하고, 최종 블록을 바로 양자화 및 엔트로피 부호화할 수도 있다. 다시 말해, 부호화 성능 결정을 위해 율-왜곡 비용을 이용하는 경우, 변환된 차분 블록들의 율-왜곡 비용을 비교하는 과정에서, 부호화 장치는, 율-왜곡 비용이 최소인 차분 블록을 최종 블록으로 결정하고, 결정된 최종 블록을 양자화하고, 양자화된 최종 블록을 엔트로피 부호화할 수 있다.3, a final prediction block is generated based on the prediction mode information applied to the last block, a final difference block is converted based on the conversion type information applied to the last block, and a configuration for quantizing and entropy-encoding the converted final difference block However, the present embodiment corresponds to the embodiment, and the encoding apparatus may directly generate the final prediction block and omit the structure for converting the final difference block, and may directly quantize and entropy-encode the final block. In other words, when the rate-distortion cost is used for coding performance determination, in the process of comparing the rate-distortion cost of the converted difference blocks, the encoding device determines the difference block having the minimum rate-distortion cost as the final block , Quantize the determined last block, and entropy-encode the last quantized block.

도 4는 본 발명의 일실시예에 따른 부호화 장치에서 부호화 블록에 적용 가능한 변환 타입 정보를 도시한 도면이다. 도 4에서, 단위 블록의 크기는 8N×8N이고, 분할 깊이가 3이다.4 is a diagram illustrating conversion type information applicable to an encoding block in an encoding apparatus according to an embodiment of the present invention. 4, the size of the unit block is 8N x 8N, and the division depth is 3.

도 4에 따르면, 분할 깊이가 3인 경우, 단위 블록(410)은 4N×4N 부호화 블록들로 분할되고, 4N×4N 부호화 블록은 2N×2N 부호화 블록들로 분할되고, 2N×2N 부호화 블록은 N×N 부호화 블록들로 분할될 수 있다.4, when the division depth is 3, the unit block 410 is divided into 4N × 4N coded blocks, 4N × 4N coded blocks are divided into 2N × 2N coded blocks, and 2N × 2N coded blocks are divided into And may be divided into NxN encoded blocks.

먼저, 4N×4N 부호화 블록(430)에 대해 최대 변환 크기가 4N×4N, 변환 깊이가 3으로 미리 정의된 경우, 4N×4N 부호화 블록(430)에 적용 가능한 변환 타입은 431과 같을 수 있다. 이때, 4N×4N 부호화 블록(430)에 대해 최대 변환 크기가 2N×2N, 변환 깊이가 2로 미리 정의된 경우, 4N×4N 부호화 블록(430)에 적용 가능한 변환 타입은 432와 같을 수 있다.First, if the maximum transform size is 4N × 4N and the transform depth is 3, the transform type applicable to the 4N × 4N coding block 430 may be equal to 431. At this time, if the maximum transform size is 2N x 2N and the transform depth is defined as 2 for the 4N x 4N coding block 430, the transform type applicable to the 4N x 4N coding block 430 may be equal to 432. [

그리고, 2N×2N 부호화 블록(440)에 대해 최대 변환 크기가 2N×2N, 변환 깊이가 2로 미리 정의된 경우, 2N×2N 부호화 블록(440)에 적용 가능한 변환 타입은 441과 같을 수 있다. If the maximum transform size is 2N x 2N and the transform depth is 2 previously defined for the 2N x 2N coding block 440, the transform type applicable to the 2N x 2N coding block 440 may be equal to 441. [

그리고, N×N 부호화 블록(450)에 대해 최대 변환 크기가 N×N, 변환 깊이가 1로 미리 정의된 경우, N×N 부호화 블록(450)에 적용 가능한 변환 타입은 451과 같을 수 있다. 다시 말해, N×N 부호화 블록(450)에 적용 가능한 변환 블록의 크기가 4개일 수 있다.If the maximum transform size is N × N and the transform depth is previously defined as 1 for the N × N encoding block 450, the transform type applicable to the N × N encoding block 450 may be equal to 451. In other words, the size of the transform block applicable to the NxN encoding block 450 may be four.

도 5는 본 발명의 일실시예에 따른 부호화 장치에서 변환 블록의 크기가 예측 블록의 크기보다 큰 변환 블록을 적용하는 경우의 변환 타입 정보를 도시한 도면이다.5 is a diagram illustrating conversion type information when a conversion block having a size of a conversion block larger than a size of a prediction block is applied in an encoding apparatus according to an embodiment of the present invention.

도 5에 따르면, 4N×4N 부호화 블록(510)은 3개의 2N×2N 블록들과 4개의 N×N 블록들로 분할될 수 있다. 이때, 4N×4N 부호화 블록(510)에 대해 최대 변환 크기가 4N×4N, 변환 깊이가 3으로 미리 정의된 경우, 4N×4N 부호화 블록(510)에 적용 가능한 변환 타입은 520과 같을 수 있다.Referring to FIG. 5, the 4Nx4N coding block 510 may be divided into three 2Nx2N blocks and four NxN blocks. In this case, if the maximum transform size is 4N × 4N and the transform depth is 3, the transform type applicable to the 4N × 4N coding block 510 may be equal to 520.

도 6은 본 발명의 일실시예에 따른 부호화 장치의 세부 구성을 도시한 블록도이다.6 is a block diagram illustrating a detailed configuration of an encoding apparatus according to an embodiment of the present invention.

도 6에 따르면, 부호화 장치(600)는 예측 블록 생성부(610), 차분 블록 생성부(620), 변환부(630), 최종 블록 결정부(640), 양자화부(650), 및 엔트로피 부호화부(660)를 포함할 수 있다.6, the encoding apparatus 600 includes a predictive block generator 610, a differential block generator 620, a transformer 630, a final block determiner 640, a quantizer 650, and entropy encoding 660 < / RTI >

먼저, 예측 블록 생성부(610)는 부호화 블록을 복수의 예측 모드 정보에 따라 예측 부호화하여 복수의 예측 블록들을 생성할 수 있다. First, the prediction block generator 610 may generate a plurality of prediction blocks by predicting a coding block according to a plurality of prediction mode information.

여기서, 예측 모드 정보는 화면간 예측 모드, 화면내 예측 모드를 포함할 수 있다. 그리고, 화면간 예측 모드는 16×16, 16×8, 8×16, 8×8, 8×4, 4×8 및 4×4 등의 예측 모드를 포함할 수 있다. 그리고, 화면내 예측 모드는 DC 예측 모드, 수직(Vertical) 예측 모드, 수평(Horizontal) 예측 모드 등을 포함할 수 있다.Here, the prediction mode information may include an inter picture prediction mode and an intra prediction mode. The inter picture prediction mode may include prediction modes such as 16x16, 16x8, 8x16, 8x8, 8x4, 4x8, and 4x4. The intra prediction mode may include a DC prediction mode, a vertical prediction mode, a horizontal prediction mode, and the like.

차분 블록 생성부(620)는 부호화 블록과 복수의 예측블록들을 이용하여 복수의 차분 블록들을 생성할 수 있다. 예를 들어, 차분 블록 생성부(620)는 부호화 블록과 복수의 예측블록들 각각을 감산하여 복수의 차분 블록들을 생성할 수 있다.The difference block generator 620 may generate a plurality of difference blocks using the encoding block and the plurality of prediction blocks. For example, the difference block generation unit 620 may generate a plurality of difference blocks by subtracting each of the encoding block and the plurality of prediction blocks.

변환부(630)는 미리 정의된 변환 타입 정보 또는 적응적으로 결정된 변환 타입 정보에 따라 차분 블록들을 각각 변환할 수 있다. 이때, 변환부(630)는 단위 블록의 크기, 부호화 블록의 크기, 및 주변 블록의 양자화 정보 중 적어도 하나를 이용하여 미리 정의되거나 결정된 변환 타입 정보에 따라 차분 블록들을 각각 변환할 수 있다.The conversion unit 630 may convert the difference blocks according to the pre-defined conversion type information or adaptively determined conversion type information. At this time, the transform unit 630 may transform the difference blocks according to the transform type information that is defined or determined using at least one of the size of the unit block, the size of the encoding block, and the quantization information of the neighboring blocks.

여기서, 변환 타입 정보는 변환 블록의 크기 및 변환 깊이를 포함할 수 있다. 그리고, 변환 타입 정보는 단일 변환 타입 또는 복수의 변환 타입으로 미리 정의되거나, 결정될 수 있다. 이때, 복수의 변환 타입을 이용하는 경우, 변환 타입 정보는 트리 구조 또는 계층적 구조를 가질 수 있다.Here, the conversion type information may include the size of the conversion block and the conversion depth. The conversion type information may be predefined or determined as a single conversion type or a plurality of conversion types. At this time, when a plurality of conversion types are used, the conversion type information may have a tree structure or a hierarchical structure.

일례로, 변환부(630)는 단위 블록의 크기, 부호화 블록의 크기, 및 주변 블록의 양자화 정보 중 적어도 하나를 이용하여 변환 깊이를 결정할 수 있다. 그리고, 변환부(630)는 부호화 블록의 크기를 기준으로 변환 깊이마다 변환 블록의 크기를 결정할 수 있다. 이어, 변환부(630)는 결정된 변환 블록의 크기를 이용하여 부호화 블록을 변환할 수 있다.For example, the transform unit 630 can determine the transform depth using at least one of the size of the unit block, the size of the encoding block, and the quantization information of the neighboring blocks. The transform unit 630 can determine the size of the transform block for each transform depth based on the size of the encoding block. Then, the transform unit 630 may transform the encoded block using the determined transform block size.

최종 블록 결정부(640)는 변환된 차분 블록들 각각의 부호화 성능을 결정할 수 있다. 예를 들어, 최종 블록 결정부(640)는 율-왜곡 비용, 차분값, 변환 계수값 등을 이용하여 부호화 성능을 결정할 수 있다. 그리고, 최종 블록 결정부(640)는 부호화 성능이 가장 좋은 차분 블록을 최종 블록으로 결정할 수 있다.The final block determiner 640 can determine the coding performance of each of the transformed difference blocks. For example, the final block determiner 640 may determine a coding performance using a rate-distortion cost, a difference value, a transform coefficient value, and the like. Then, the final block determining unit 640 can determine the differential block having the best coding performance as the final block.

일례로, 율-왜곡 비용을 이용하는 경우, 최종 블록 결정부(640)는 변환된 차분 블록들 각각의 율-왜곡 비용을 계산할 수 있다. 이때, 최종 블록 결정부(640)는 율-왜곡 비용이 작을수록 부호화 성능이 좋은 것으로 결정할 수 있다. 그러면, 최종 블록 결정부(640)는 율-왜곡 비용이 최소인 차분 블록을 최종 블록으로 결정할 수 있다.For example, when using the rate-distortion cost, the final block determination unit 640 can calculate the rate-distortion cost of each of the converted difference blocks. At this time, the final block determiner 640 can determine that coding performance is better as the rate-distortion cost is smaller. Then, the final block determiner 640 can determine a differential block having the minimum rate-distortion cost as a final block.

그러면, 최종 블록이 결정된 경우, 예측 블록 생성부(610)는 최종 블록에 적용된 예측 모드 정보에 따라 부호화 블록을 예측 부호화하여 최종 예측 블록을 생성할 수 있다. 그리고, 차분 블록 생성부(620)는 생성된 예측 블록과 부호화 블록을 감산하여 최종 차분 블록을 생성할 수 있다. 그러면, 변환부(630)는 최종 차분 블록을 최종 블록에 적용된 변환 타입 정보에 따라 변환할 수 있다.Then, when the last block is determined, the prediction block generator 610 can predict the coding block according to the prediction mode information applied to the last block to generate the final prediction block. The difference block generation unit 620 may generate the final difference block by subtracting the generated prediction block from the encoded block. Then, the converting unit 630 can convert the final difference block according to the conversion type information applied to the final block.

이어, 양자화부(650)는 변환된 최종 차분 블록을 양자화할 수 있다. 그리고, 엔트로피 부호화부(650)는 양자화된 최종 차분 블록을 엔트로피 부호화하여 비트스트림을 출력할 수 있다.The quantization unit 650 may then quantize the transformed last differential block. The entropy encoding unit 650 can entropy-encode the quantized final difference block to output a bitstream.

한편, 최종 블록 결정부(640)는 부호화 블록의 예측 모드 정보 및 부호화 블록의 변환 타입 정보를 복호화 장치로 전송할지 여부를 결정할 수 있다.Meanwhile, the final block determiner 640 can determine whether to transmit the prediction mode information of the encoding block and the conversion type information of the encoding block to the decoding device.

예를 들어, 최종 블록 결정부(640)는 부호화 블록의 변환 타입 정보 및 예측 모드 정보와, 주변 블록의 변환 타입 정보 및 예측 모드 정보가 일치하는지 여부를 비교할 수 있다. 그리고, 일치하는 경우, 최종 블록 결정부(640)는 부호화 블록의 변환 타입 정보 및 예측 모드 정보를 복호화 장치로 전송하지 않을 수 있다. 그리고, 일치하지 않는 경우, 최종 블록 결정부(640)는 부호화 블록의 변환 타입 정보 및 예측 모드 정보를 복호화 장치로 전송할 수 있다. 이때, 복호화 장치로 전송되는 부가 정보의 비트량을 감소시키기 위해, 부호화 장치는 부호화 블록의 변환 타입 정보 및 예측 모드 정보와, 부호화 블록의 패턴 정보(CBP)를 결합하여 부가 정보를 생성할 수 있다. 이어, 부호화 장치는 생성된 부가 정보를 복호화 장치로 전송할 수 있다.For example, the final block determining unit 640 can compare whether the conversion type information and the prediction mode information of the encoding block, the conversion type information of the neighboring block, and the prediction mode information coincide with each other. If they match, the final block determination unit 640 may not transmit the conversion type information and the prediction mode information of the encoding block to the decoding apparatus. If they do not match, the final block determination unit 640 can transmit the conversion type information and the prediction mode information of the encoding block to the decoding apparatus. At this time, in order to reduce the bit amount of the additional information transmitted to the decoding apparatus, the encoding apparatus can generate additional information by combining the conversion type information and the prediction mode information of the encoding block and the pattern information (CBP) of the encoding block . Then, the encoding apparatus can transmit the generated additional information to the decoding apparatus.

이처럼, 변환 타입은 예측 블록의 크기에 따라 고정된 것이 아니라, 차분 블록을 계층적으로 가변 블록 변환함에 따라 영상의 변환에 유연하게 적응할 수 있다. 예를 들어, 도 10을 참조하면, 16×16 부호화 블록 내에서 4×4, 8×8 변환 타입이 혼합되어 적용되거나, 8×16 변환 타입이 적용되는 등과 같이 가변 블록 변환(1020)이 가능하다. 다시 말해, 16×16 부호화 블록 내에서 변환 타입이 4×4, 8×8 두 종류로만 고정되어 분할 변환(1010)하지 않고, 영상의 특성에 따라 다양한 크기로 가변 블록 변환할 수 있다.As described above, the transformation type is not fixed according to the size of the prediction block, but can be flexibly adapted to the transformation of the image by hierarchically varying the block of the difference block. For example, referring to FIG. 10, a variable block transform 1020 can be performed by applying 4 × 4 and 8 × 8 transform types in a 16 × 16 encoded block, applying an 8 × 16 transform type, etc. Do. In other words, the conversion type is fixed to only 4 × 4 and 8 × 8 in the 16 × 16 encoded block, and variable block conversion can be performed in various sizes according to the characteristics of the image without performing the division conversion (1010).

도 7은 본 발명의 일실시예에 따른 변환 복호화 방법을 설명하기 위해 제공되는 흐름도이다.7 is a flowchart illustrating a conversion decoding method according to an embodiment of the present invention.

도 7에 따르면, 먼저, 701단계에서, 복호화 장치는 부호화 장치로부터 비트스트림을 수신할 수 있다.Referring to FIG. 7, first, in step 701, the decoding apparatus can receive a bitstream from a coding apparatus.

이어, 702 단계에서, 복호화 장치는 부호화 블록의 변환 타입 정보 및 예측 모드 정보를 획득할 수 있다. 여기서, 부호화 블록의 변환 타입 정보는, 최종 블록에 적용된 변환 타입 정보이고, 부호화 블록의 예측 모드 정보는, 최종 블록에 적용된 예측 모드 정보일 수 있다.. 그리고, 변환 타입 정보는 변환 블록의 크기 및 변환 깊이를 포함할 수 있다. In step 702, the decoding apparatus can obtain the conversion type information and the prediction mode information of the encoding block. Here, the conversion type information of the encoding block is the conversion type information applied to the last block, and the prediction mode information of the encoding block may be the prediction mode information applied to the last block. And a conversion depth.

일례로, 복호화 장치는 부호화 장치로부터 부가 정보를 수신할 수 있다. 여기서, 부가 정보는 부호화 블록의 변환 타입 정보 및 부호화 블록의 예측 모드 정보와, 부호화 블록의 패턴 정보가 결합된 형태일 수 있다. 그러면, 복호화 장치는 부가 정보로부터 부호화 블록의 변환 타입 정보 및 부호화 블록의 예측 모드 정보를 획득할 수 있다. For example, the decoding apparatus can receive additional information from the encoding apparatus. Here, the additional information may be a combination of conversion type information of the encoding block, prediction mode information of the encoding block, and pattern information of the encoding block. Then, the decoding apparatus can obtain the conversion type information of the encoding block and the prediction mode information of the encoding block from the additional information.

다른 예로, 부호화 블록의 변환 타입 정보 및 예측 모드 정보와, 주변 블록의 변환 타입 정보 및 예측 모드 정보가 일치하여, 부호화 장치로부터 부호화 블록의 변환 타입 정보 및 예측 모드 정보가 수신되지 않은 경우, 복호화 장치는 주변 블록의 변환 타입 정보 및 예측 모드 정보를 획득할 수 있다.As another example, when the conversion type information and the prediction mode information of the encoding block are identical with the conversion type information and the prediction mode information of the neighboring block, and the conversion type information and the prediction mode information of the encoding block are not received from the encoding device, Can obtain the conversion type information and the prediction mode information of the neighboring blocks.

이어, 703 단계에서, 복호화 장치는, 획득된 변환 타입 정보 및 예측 모드 정보를 이용하여 차분 블록을 복원할 수 있다. 이때, 복호화 장치는, 최종 블록의 변환 타입 정보 및 예측 모드 정보를 이용하여 차분 블록을 복원할 수 있다. 또한, 복호화 장치는, 주변 블록의 변환 타입 정보 및 예측 모드 정보를 이용하여 차분 블록을 복원할 수도 있다.Next, in step 703, the decoding apparatus can restore the difference block using the obtained conversion type information and prediction mode information. At this time, the decoding apparatus can restore the difference block using the conversion type information and prediction mode information of the last block. Also, the decoding apparatus may recover the difference block using the conversion type information and the prediction mode information of the neighboring blocks.

일례로, 복호화 장치는 엔트로피 복호화된 블록을 역양자화할 수 있다. 그리고, 복호화 장치는, 역양자화된 블록을 상기 획득된 변환 타입 정보에 따라 역변환하여 차분 블록을 복원할 수 있다.For example, the decoding apparatus can dequantize entropy-decoded blocks. Then, the decoding apparatus can restore the difference block by inversely transforming the dequantized block according to the obtained conversion type information.

그리고, 704 단계에서, 복호화 장치는, 상기 획득된 예측 모드 정보를 이용하여 엔트로피 복호화된 블록의 예측 블록을 생성할 수 있다. In step 704, the decoding apparatus may generate a prediction block of the entropy-decoded block using the obtained prediction mode information.

이어, 705 단계에서, 복호화 장치는 복호화 블록의 예측 블록과, 역변환을 통해 생성된 차분 블록을 더하여 부호화 블록을 복원할 수 있다.In step 705, the decoding apparatus may restore the encoded block by adding the prediction block of the decoded block and the differential block generated through the inverse transform.

도 8은 본 발명의 일시시예에 따른 복호화 장치의 세부 구성을 도시한 블록도이다.8 is a block diagram showing a detailed configuration of a decoding apparatus according to a temporary example of the present invention.

도 8에 따르면, 복호화 장치는, 엔트로피 복호화부(810), 정보 획득부(820), 역양자화 및 역 변환부(830), 예측 블록 생성부(840), 및 복원부(850)를 포함할 수 있다.8, the decoding apparatus includes an entropy decoding unit 810, an information obtaining unit 820, an inverse quantization and inverse transforming unit 830, a prediction block generating unit 840, and a restoring unit 850 .

엔트로피 복호화부(810)는 부호화 장치로부터 수신한 비트스트림을 엔트로피 복호화할 수 있다.The entropy decoding unit 810 can entropy decode the bitstream received from the encoding apparatus.

그러면, 정보 획득부(820)는 엔트로피 복호화된 블럭으로부터 최종 블록의 변환 타입 정보 및 최종 블록의 예측 모드 정보를 획득할 수 있다. 여기서, 변환 타입 정보는 변환 블록의 크기 및 변환 깊이를 포함할 수 있다. Then, the information obtaining unit 820 can obtain the conversion type information of the last block and the prediction mode information of the last block from the entropy-decoded block. Here, the conversion type information may include the size of the conversion block and the conversion depth.

역양자화 및 역변환부(830)는 엔트로피 복호화된 블록을 역양자화할 수 있다. 그리고, 역양자화 및 역변환부(830)는 역양자화된 블록을 최종 블록의 변환 타입 정보에 따라 역변환하여 차분 블록을 복원할 수 있다.The inverse quantization and inverse transform unit 830 can dequantize the entropy-decoded blocks. The inverse quantization and inverse transform unit 830 can invert the inversely quantized block according to the transform type information of the last block to restore the difference block.

그리고, 예측 블록 생성부(840)는 최종 블록의 예측 모드 정보에 기초하여 엔트로피 복호화된 블록의 예측 블록을 생성할 수 있다.The prediction block generator 840 may generate a prediction block of the entropy-decoded block based on the prediction mode information of the final block.

그러면, 복원부(850)는 생성된 예측 블록과 복원된 차분 블록을 더하여 부호화 블록을 복원할 수 있다.Then, the restoring unit 850 can restore the encoded block by adding the generated prediction block and the restored difference block.

한편, 정보 획득부(820)는 단위 블록의 크기, 부호화 블록의 크기, 및 주변 블록의 양자화 정보 중 적어도 하나에 기초하여 변환 타입 정보를 적응적으로 결정할 수도 있다. 이때, 변환 타입 정보는 단위 블록의 크기, 부호화 블록의 크기, 및 주변 블록의 양자화 정보 중 적어도 하나에 기초하여 미리 정의될 수도 있다. 그러면, 정보 획득부(820)는 미리 정의되거나, 또는 적응적으로 결정된 변환 타입 정보에 기초하여 최종 블록의 변환 타입 정보와 최종 블록의 예측 모드 정보를 획득할 수 있다.Meanwhile, the information obtaining unit 820 may adaptively determine the conversion type information based on at least one of the size of the unit block, the size of the encoding block, and the quantization information of the neighboring blocks. At this time, the conversion type information may be defined in advance based on at least one of the size of the unit block, the size of the encoding block, and the quantization information of the neighboring blocks. Then, the information obtaining unit 820 can obtain the conversion type information of the last block and the prediction mode information of the last block based on the conversion type information that is predefined or adaptively determined.

이때, 부호화 장치에서 최종 블록의 변환 타입 정보 및 예측 모드 정보와, 부호화 블록의 패턴 정보(CBP)를 결합하여 생성한 부가 정보를 전송한 경우, 정보 획득부(820)는 부가 정보에서 부호화 블록의 패턴 정보(CBP)를 분리하여 최종 블록의 변환 타입 정보 및 예측 모드 정보를 획득할 수도 있다. 예를 들어, 정보 획득부(820)는 아래의 표 1과 같이 부호화 블록의 패턴 정보를 추출함에 따라 최종 블록의 변환 타입 정보 및 예측 모드 정보를 획득할 수 있다.In this case, when the coding apparatus transmits the additional information generated by combining the conversion type information and the prediction mode information of the last block and the pattern information (CBP) of the coding block, the information obtaining unit 820 obtains, from the additional information, The pattern information CBP may be separated to obtain the conversion type information and the prediction mode information of the last block. For example, the information obtaining unit 820 can obtain the conversion type information and the prediction mode information of the last block by extracting the pattern information of the encoding block as shown in Table 1 below.

for(j=0; j<4; j++)
{
if(cbp&(1<<j))
{
T8_flag[j] = T8_flag;
}else{
T8_flag[j] = 0;
}
}
for (j = 0; j &lt;4; j ++)
{
if (cbp & (1 << j))
{
T8_flag [j] = T8_flag;
} else {
T8_flag [j] = 0;
}
}

표 1에서, j는 변환 블록의 번호(0: 도 9의 좌측 위쪽, 3: 도 9의 우측 아래쪽 블록), T8_flag는 부호화 장치에서 전송된 부가 정보에 포함된 변환 타입 정보, T8_flag[]는 부호화 블록의 패턴 정보(CBP)를 이용하여 각 8×8 블록에 해당하는 변환 타입 정보이다.In Table 1, j indicates the number of the conversion block (0: upper left in Fig. 9, 3: lower right block in Fig. 9), T8_flag indicates conversion type information included in the additional information transmitted from the encoder, T8_flag [ Is the conversion type information corresponding to each 8x8 block using the block pattern information CBP.

표 1에 따르면, 전송된 2비트 부가 정보가 부호화 블록의 패턴 정보를 이용하여 각 변환 블록에 대해 총 4비트로 복원될 수 있다. According to Table 1, the transmitted 2-bit additional information can be restored to a total of 4 bits for each transform block using the pattern information of the encoding block.

이상과 같이 본 발명은 비록 한정된 실시예와 도면에 의해 설명되었으나, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상의 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다.While the invention has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. This is possible.

그러므로, 본 발명의 범위는 설명된 실시예에 국한되어 정해져서는 아니 되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다.Therefore, the scope of the present invention should not be limited to the described embodiments, but should be determined by the equivalents of the claims, as well as the claims.

610: 예측 블록 생성부
620: 차분 블록 생성부
630: 변환부
640: 최종 블록 결정부
650: 양자화부
660: 엔트로피 부호화부
610:
620: Difference block generation unit
630:
640:
650: Quantization unit
660: Entropy coding unit

Claims (11)

부호화 블록에 대해 예측을 수행하여 예측 블록을 생성하는 예측 블록 생성부;
상기 부호화 블록과 상기 예측 블록에 기초하여 상기 부호화 블록에 대한 차분 블록을 생성하는 차분 블록 생성부; 및
상기 차분 블록을 부호화하는 부호화부를 포함하고,
상기 부호화부는,
상기 차분 블록에 대해 변환을 수행할 지 여부를 결정하고, 상기 차분 블록에 대해 변환을 수행하는 것으로 결정된 경우, 상기 변환을 수행하기 위한 변환 타입 정보에 기초하여 상기 변환을 수행하고, 상기 차분 블록에 대해 양자화를 수행하고, 상기 차분 블록에 대해 엔트로피 부호화를 수행하며,
상기 변환 타입 정보는 변환 블록의 크기를 포함하고,
상기 변환 블록의 크기는 상기 부호화 블록의 크기에 기초하여 결정되는 영상 부호화 장치.
A prediction block generator for generating prediction blocks by performing prediction on the encoded blocks;
A difference block generation unit for generating a difference block for the encoding block based on the encoding block and the prediction block; And
And an encoding unit for encoding the difference block,
Wherein the encoding unit comprises:
Wherein the step of determining whether or not to perform the conversion on the differential block performs the conversion on the basis of the conversion type information for performing the conversion when it is determined to perform the conversion on the differential block, Performs entropy encoding on the differential block,
Wherein the conversion type information includes a size of a conversion block,
Wherein the size of the transform block is determined based on the size of the encoding block.
제1항에 있어서,
상기 부호화부는,
상기 차분 블록에 대해 변환을 수행하지 않는 것으로 결정된 경우,
상기 차분 블록에 대한 변환을 스킵하고, 상기 차분 블록을 양자화하는 영상 부호화 장치.
The method according to claim 1,
Wherein the encoding unit comprises:
If it is determined not to perform the transform on the differential block,
And skips the transform for the difference block and quantizes the difference block.
제1항에 있어서,
상기 변환 타입 정보는 상기 부호화 블록의 크기에 기초하여 결정되는 영상 부호화 장치.
The method according to claim 1,
Wherein the conversion type information is determined based on a size of the encoding block.
제1항에 있어서,
상기 변환 타입 정보는 계층적 트리 구조에 기반하여 결정되는 영상 부호화 장치.
The method according to claim 1,
Wherein the transform type information is determined based on a hierarchical tree structure.
제1항에 있어서,
상기 변환 타입 정보는 최대 변환 크기 또는 변환 깊이에 기초하여 결정되는 영상 부호화 장치.
The method according to claim 1,
Wherein the conversion type information is determined based on a maximum conversion size or conversion depth.
비트스트림으로부터 부호화 블록에 대한 부호화된 차분 블록을 획득하고, 상기 부호화된 차분 블록을 복호화하는 복호화부;
상기 부호화 블록에 대해 예측을 수행하여 예측 블록을 생성하는 예측 블록 생성부; 및
상기 복호화된 차분 블록과 상기 생성된 예측 블록에 기초하여 상기 부호화 블록을 복원하는 복원부를 포함하고,
상기 복호화부는,
상기 차분 블록에 대해 엔트로피 복호화를 수행하고, 상기 차분 블록에 대해 역양자화를 수행하고, 상기 차분 블록에 대해 역변환을 수행할 지 여부를 결정하고, 상기 차분 블록에 대해 역변환을 수행하는 것으로 결정된 경우, 변환 타입 정보에 기초하여 상기 역변환을 수행하며,
상기 변환 타입 정보는 변환 블록의 크기를 포함하고,
상기 변환 블록의 크기는 상기 부호화 블록의 크기에 기초하여 결정되는 영상 복호화 장치.
A decoding unit which obtains an encoded difference block for a coded block from a bitstream and decodes the coded difference block;
A prediction block generator for generating prediction blocks by performing prediction on the encoded blocks; And
And a reconstruction unit for reconstructing the coded block based on the decoded difference block and the generated prediction block,
Wherein the decoding unit comprises:
Wherein the decoding unit performs entropy decoding on the differential block, performs inverse quantization on the differential block, determines whether or not to perform an inverse transform on the differential block, and determines to perform inverse transform on the differential block, Performs the inverse conversion based on the conversion type information,
Wherein the conversion type information includes a size of a conversion block,
Wherein the size of the transform block is determined based on the size of the encoding block.
제6항에 있어서,
상기 복호화부는,
상기 차분 블록에 대해 역변환을 수행하지 않는 것으로 결정된 경우,
상기 차분 블록을 역양자화하고, 상기 역양자화된 차분 블록에 대한 역변환은 스킵하는 영상 복호화 장치.
The method according to claim 6,
Wherein the decoding unit comprises:
If it is determined that the inverse transform is not performed on the differential block,
Quantizing the differential block, and skipping the inverse transformation on the inversely quantized differential block.
제6항에 있어서,
상기 변환 타입 정보는 상기 부호화 블록의 크기에 기초하여 결정되는 영상 복호화 장치.
The method according to claim 6,
Wherein the conversion type information is determined based on the size of the encoding block.
제6항에 있어서,
상기 변환 타입 정보는 계층적 트리 구조에 기반하여 결정되는 영상 복호화 장치.
The method according to claim 6,
Wherein the conversion type information is determined based on a hierarchical tree structure.
제6항에 있어서,
상기 변환 타입 정보는 최대 변환 크기 또는 변환 깊이에 기초하여 결정되는 영상 복호화 장치.
The method according to claim 6,
Wherein the conversion type information is determined based on a maximum conversion size or a conversion depth.
영상 부호화 장치에 의해 생성된 비트스트림을 저장하는 컴퓨터 판독 가능한 기록 매체로서, 상기 영상 부호화 장치는,
부호화 블록에 대해 예측을 수행하여 예측 블록을 생성하는 예측 블록 생성부;
상기 부호화 블록과 상기 예측 블록에 기초하여 상기 부호화 블록에 대한 차분 블록을 생성하는 차분 블록 생성부; 및
상기 차분 블록을 부호화하는 부호화부를 포함하고,
상기 부호화부는,
상기 차분 블록에 대해 변환을 수행할 지 여부를 결정하고, 상기 차분 블록에 대해 변환을 수행하는 것으로 결정된 경우, 상기 변환을 수행하기 위한 변환 타입 정보에 기초하여 상기 변환을 수행하고, 상기 차분 블록에 대해 양자화를 수행하고, 상기 차분 블록에 대해 엔트로피 부호화를 수행하며,
상기 변환 타입 정보는 변환 블록의 크기를 포함하고,
상기 변환 블록의 크기는 상기 부호화 블록의 크기에 기초하여 결정되는 컴퓨터 판독 가능한 기록 매체.
A computer-readable recording medium storing a bit stream generated by a video encoding apparatus,
A prediction block generator for generating prediction blocks by performing prediction on the encoded blocks;
A difference block generation unit for generating a difference block for the encoding block based on the encoding block and the prediction block; And
And an encoding unit for encoding the difference block,
Wherein the encoding unit comprises:
Wherein the step of determining whether or not to perform the conversion on the differential block performs the conversion on the basis of the conversion type information for performing the conversion when it is determined to perform the conversion on the differential block, Performs entropy encoding on the differential block,
Wherein the conversion type information includes a size of a conversion block,
And the size of the transform block is determined based on the size of the encoding block.
KR1020180137027A 2010-07-16 2018-11-09 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus KR20180123466A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020100069214 2010-07-16
KR20100069214 2010-07-16

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020180004900A Division KR101918956B1 (en) 2010-07-16 2018-01-15 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus

Related Child Applications (1)

Application Number Title Priority Date Filing Date
KR1020200098329A Division KR20200096474A (en) 2010-07-16 2020-08-06 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus

Publications (1)

Publication Number Publication Date
KR20180123466A true KR20180123466A (en) 2018-11-16

Family

ID=45613445

Family Applications (8)

Application Number Title Priority Date Filing Date
KR1020110048082A KR101791158B1 (en) 2010-07-16 2011-05-20 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
KR1020170137412A KR101820348B1 (en) 2010-07-16 2017-10-23 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
KR1020180004902A KR101918958B1 (en) 2010-07-16 2018-01-15 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
KR1020180004900A KR101918956B1 (en) 2010-07-16 2018-01-15 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
KR1020180004901A KR101918957B1 (en) 2010-07-16 2018-01-15 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
KR1020180137027A KR20180123466A (en) 2010-07-16 2018-11-09 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
KR1020200098329A KR20200096474A (en) 2010-07-16 2020-08-06 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
KR1020210168055A KR102453953B1 (en) 2010-07-16 2021-11-30 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus

Family Applications Before (5)

Application Number Title Priority Date Filing Date
KR1020110048082A KR101791158B1 (en) 2010-07-16 2011-05-20 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
KR1020170137412A KR101820348B1 (en) 2010-07-16 2017-10-23 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
KR1020180004902A KR101918958B1 (en) 2010-07-16 2018-01-15 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
KR1020180004900A KR101918956B1 (en) 2010-07-16 2018-01-15 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
KR1020180004901A KR101918957B1 (en) 2010-07-16 2018-01-15 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus

Family Applications After (2)

Application Number Title Priority Date Filing Date
KR1020200098329A KR20200096474A (en) 2010-07-16 2020-08-06 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
KR1020210168055A KR102453953B1 (en) 2010-07-16 2021-11-30 Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus

Country Status (1)

Country Link
KR (8) KR101791158B1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020159316A1 (en) * 2019-02-01 2020-08-06 엘지전자 주식회사 Image coding method based on secondary transform and apparatus therefor
WO2021006697A1 (en) * 2019-07-10 2021-01-14 엘지전자 주식회사 Image decoding method for residual coding and apparatus therefor
WO2021040485A1 (en) * 2019-08-31 2021-03-04 엘지전자 주식회사 Video decoding method using simplified residual data coding in video coding system, and apparatus therefor
WO2021040487A1 (en) * 2019-08-31 2021-03-04 엘지전자 주식회사 Image decoding method for residual data coding in image coding system, and apparatus therefor
WO2021040407A1 (en) * 2019-08-31 2021-03-04 엘지전자 주식회사 Method for decoding video using simplified residual data coding in video coding system and device therefor
WO2021040406A1 (en) * 2019-08-31 2021-03-04 엘지전자 주식회사 Video or image coding method and device therefor
WO2021060940A1 (en) * 2019-09-25 2021-04-01 엘지전자 주식회사 Image encoding/decoding method and apparatus for signaling residual coding method used for encoding block to which bdpcm is applied, and method for transmitting bitstream
WO2021086151A1 (en) * 2019-11-01 2021-05-06 엘지전자 주식회사 Transform-based image coding method and device for same
WO2021086152A1 (en) * 2019-11-01 2021-05-06 엘지전자 주식회사 Transform-based method for coding image, and device therefor
WO2021086149A1 (en) * 2019-11-01 2021-05-06 엘지전자 주식회사 Image coding method based on transform, and device therefor

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11356702B2 (en) 2018-06-06 2022-06-07 Lg Electronics Inc. Method for performing transform index coding on basis of intra prediction mode, and device therefor
CN108881913B (en) * 2018-08-03 2020-09-22 西安万像电子科技有限公司 Method and apparatus for image encoding

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100846769B1 (en) * 2002-02-19 2008-07-16 삼성전자주식회사 Method for encoding motion image having fixed computational complexity and apparatus thereof
JP2004129055A (en) 2002-10-04 2004-04-22 Rohm Co Ltd Data compression device and data expansion device
JP2004361420A (en) 2004-09-27 2004-12-24 Kazuhiro Okada Angular velocity sensor
KR100703770B1 (en) * 2005-03-25 2007-04-06 삼성전자주식회사 Video coding and decoding using weighted prediction, and apparatus for the same
JP2011075418A (en) 2009-09-30 2011-04-14 Yamaha Corp Vibration type physical quantity sensor

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11284082B2 (en) 2019-02-01 2022-03-22 Lg Electronics Inc. Image coding method based on secondary transform and apparatus therefor
US11632551B2 (en) 2019-02-01 2023-04-18 Lg Electronics Inc. Image coding method based on secondary transform and apparatus therefor
WO2020159316A1 (en) * 2019-02-01 2020-08-06 엘지전자 주식회사 Image coding method based on secondary transform and apparatus therefor
WO2021006697A1 (en) * 2019-07-10 2021-01-14 엘지전자 주식회사 Image decoding method for residual coding and apparatus therefor
US11451785B2 (en) 2019-08-31 2022-09-20 Lg Electronics Inc. Video decoding method using simplified residual data coding in video coding system, and apparatus therefor
WO2021040487A1 (en) * 2019-08-31 2021-03-04 엘지전자 주식회사 Image decoding method for residual data coding in image coding system, and apparatus therefor
US11902587B2 (en) 2019-08-31 2024-02-13 Lg Electronics Inc. Image decoding method for residual data coding in image coding system, and apparatus therefor
US11683495B2 (en) 2019-08-31 2023-06-20 Lg Electronics Inc. Video decoding method using simplified residual data coding in video coding system, and apparatus therefor
WO2021040485A1 (en) * 2019-08-31 2021-03-04 엘지전자 주식회사 Video decoding method using simplified residual data coding in video coding system, and apparatus therefor
US11490125B2 (en) 2019-08-31 2022-11-01 Lg Electronics Inc. Image decoding method for residual data coding in image coding system, and apparatus therefor
WO2021040407A1 (en) * 2019-08-31 2021-03-04 엘지전자 주식회사 Method for decoding video using simplified residual data coding in video coding system and device therefor
WO2021040406A1 (en) * 2019-08-31 2021-03-04 엘지전자 주식회사 Video or image coding method and device therefor
CN114731435A (en) * 2019-09-25 2022-07-08 Lg电子株式会社 Image encoding/decoding method and apparatus signaling residual encoding method for encoding block to which BDPCM is applied, and method of transmitting bitstream
US11638024B2 (en) 2019-09-25 2023-04-25 Lg Electronics Inc. Image encoding/decoding method and apparatus for signaling residual coding method used for encoding block to which BDPCM is applied, and method for transmitting bitstream
WO2021060940A1 (en) * 2019-09-25 2021-04-01 엘지전자 주식회사 Image encoding/decoding method and apparatus for signaling residual coding method used for encoding block to which bdpcm is applied, and method for transmitting bitstream
WO2021086149A1 (en) * 2019-11-01 2021-05-06 엘지전자 주식회사 Image coding method based on transform, and device therefor
WO2021086152A1 (en) * 2019-11-01 2021-05-06 엘지전자 주식회사 Transform-based method for coding image, and device therefor
WO2021086151A1 (en) * 2019-11-01 2021-05-06 엘지전자 주식회사 Transform-based image coding method and device for same

Also Published As

Publication number Publication date
KR101918957B1 (en) 2018-11-15
KR20180008843A (en) 2018-01-24
KR20210150337A (en) 2021-12-10
KR101820348B1 (en) 2018-01-19
KR101918956B1 (en) 2018-11-15
KR20180008844A (en) 2018-01-24
KR20180008845A (en) 2018-01-24
KR102453953B1 (en) 2022-10-12
KR20200096474A (en) 2020-08-12
KR101791158B1 (en) 2017-10-27
KR20120008436A (en) 2012-01-30
KR20170122158A (en) 2017-11-03
KR101918958B1 (en) 2018-11-15

Similar Documents

Publication Publication Date Title
KR101918958B1 (en) Encoding method and apparatus for transformming hierarchical variable block and decoding method and apparatus
US9215463B2 (en) Image encoding/decoding method and device
EP3282696B1 (en) Method for decoding and apparatus for encoding images by using large transformation units
DK2996342T3 (en) Method and apparatus for encoding and decoding image using large transform unit.
JP2017212751A (en) Video encoding method and device
KR20140005101A (en) Method and apparatus for entropy encoding video, and method and apparatus for entropy decoding video
CN103782600A (en) Image encoding/decoding method for rate-distortion optimization and device for performing same
KR20110065092A (en) Method and apparatus for encoding and decoding image by using rotational transform
KR101596085B1 (en) Apparatus and method for video coding/decoding using adaptive intra prediction
KR101911587B1 (en) Apparatus and method for video coding/decoding using adaptive intra prediction
KR101564563B1 (en) Method and apparatus for encoding and decoding image using large transform unit
KR20160077027A (en) Method and apparatus for encoding and decoding image using large transform unit
KR101564944B1 (en) Method and apparatus for encoding and decoding image using large transform unit
KR101464980B1 (en) Method and apparatus for encoding and decoding image using large transform unit
KR101464979B1 (en) Method and apparatus for encoding and decoding image using large transform unit
KR20130107414A (en) Video coding method using adaptive division transform
KR20180014423A (en) Method and apparatus for encoding and decoding image using large transform unit
KR20170034861A (en) Method and apparatus for encoding and decoding image using large transform unit
KR20150045979A (en) Method and apparatus for encoding and decoding image using large transform unit
KR20140139458A (en) Method and apparatus for encoding residual block, and method and apparatus for decoding residual block
KR20130050850A (en) Table based delta qp encoding method
KR20140067996A (en) Method and apparatus for image encoding, and method and apparatus for image decoding
KR20140071304A (en) Method and apparatus for encoding residual block, and method and apparatus for decoding residual block

Legal Events

Date Code Title Description
A107 Divisional application of patent
A201 Request for examination
AMND Amendment
E902 Notification of reason for refusal
AMND Amendment
E90F Notification of reason for final refusal
AMND Amendment
E601 Decision to refuse application
X091 Application refused [patent]
E601 Decision to refuse application
E801 Decision on dismissal of amendment
A107 Divisional application of patent