KR20190084919A - Method And Apparatus For Video Encoding And Decoding - Google Patents

Method And Apparatus For Video Encoding And Decoding Download PDF

Info

Publication number
KR20190084919A
KR20190084919A KR1020190080700A KR20190080700A KR20190084919A KR 20190084919 A KR20190084919 A KR 20190084919A KR 1020190080700 A KR1020190080700 A KR 1020190080700A KR 20190080700 A KR20190080700 A KR 20190080700A KR 20190084919 A KR20190084919 A KR 20190084919A
Authority
KR
South Korea
Prior art keywords
bit depth
current block
pcm sample
sample
pcm
Prior art date
Application number
KR1020190080700A
Other languages
Korean (ko)
Other versions
KR102110228B1 (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 KR20190084919A publication Critical patent/KR20190084919A/en
Application granted granted Critical
Publication of KR102110228B1 publication Critical patent/KR102110228B1/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/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • 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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • 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/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • 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

Landscapes

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

Abstract

The present invention relates to a video encoding method, a video decoding method, and an apparatus using the same. According to an embodiment of the present invention, the video encoding method comprises the steps of: determining a bit depth value per pulse coding modulation (PCM) sample for a current block to which PCM is applied; and signaling information on a bit depth per PCM sample. The information on the bit depth per PCM sample may include a difference value for a reference value of the bit depth per PCM sample for the current block.

Description

비디오 인코딩 및 디코딩 방법과 이를 이용한 장치{Method And Apparatus For Video Encoding And Decoding}TECHNICAL FIELD [0001] The present invention relates to a video encoding and decoding method,

본 발명은 비디오 인코딩/디코딩 방법 및 장치에 관한 것으로서, 구체적으로는 PCM(Pulse Coding Modulation) 모드에서 영상 정보를 인코딩하는 방법 및 장치와 디코딩 하는 방법 및 장치에 관한 것이다.The present invention relates to a video encoding / decoding method and apparatus, and more particularly, to a method and apparatus for encoding video information in a PCM (Pulse Coding Modulation) mode and a method and apparatus for decoding.

최근 멀티미디어(multimedia) 환경이 구축되면서, 다양한 단말과 네트워크가 이용되고 있으며, 이에 따른 사용자 요구도 다변화하고 있다. Recently, as a multimedia environment has been established, a variety of terminals and networks have been used, and user demands have been diversified accordingly.

예컨대, 단말의 성능과 컴퓨팅 능력(computing ability)이 다양해짐에 따라서 지원하는 성능도 기기별로 다양해지고 있다. 또한 정보가 전송되는 네트워크 역시 유무선 네트워크와 같은 외형적인 구조뿐만 아니라, 전송하는 정보의 형태, 정보량과 속도 등 기능별로도 다양해지고 있다. 사용자는 원하는 기능에 따라서 사용할 단말과 네트워크를 선택하며, 사용자에게 기업이 제공하는 단말과 네트워크의 스펙트럼도 다양해지고 있다.For example, as the performance and computing ability of a terminal are diversified, the performance to be supported varies with each device. In addition, the network in which the information is transmitted is also diversified not only by the external structure such as a wired / wireless network, but also by the type of information to be transmitted, information amount and speed, and the like. The user selects the terminal and the network to be used according to the desired function, and the spectrum of the terminal and the network provided by the enterprise to the user is also diversified.

최근에는 HD(High Definition) 해상도를 가지는 방송이 국내뿐만 아니라 세계적으로 확대되어 서비스되면서, 많은 사용자들이 고해상도, 고화질의 영상에 익숙해지고 있다. 이에 따라서 많은 영상 서비스 관련 기관들이 차세대 영상 기기에 대한 개발에 박차를 가하고 있다. In recent years, as broadcasts having HD (High Definition) resolution are expanded not only in the domestic market but also in the world, many users are becoming accustomed to high resolution and high definition video. As a result, many video-related organizations are spurring the development of next-generation video equipment.

또한 HDTV와 더불어 HDTV의 4배 이상의 해상도를 갖는 UHD(Ultra High Definition)에 대한 관심이 증대되면서 보다 높은 해상도, 고화질의 영상을 압축하여 처리하는 기술에 대한 요구는 더 높아지고 있다.In addition, with the increasing interest in UHD (Ultra High Definition), which has a resolution more than four times that of HDTV in addition to HDTV, there is a growing demand for a technique for compressing and processing higher resolution and higher image quality.

영상을 압축하여 처리하기 위해, 시간적으로 이전 및/또는 이후의 픽처로부터 현재 픽처에 포함된 화소값을 예측하는 인터(inter) 예측 기술, 현재 픽처 내의 화소 정보를 이용하여 현재 픽처에 포함된 다른 화소값을 예측하는 인트라(intra) 예측 기술, 출현 빈도가 높은 심볼(symbol)에 짧은 부호를 할당하고 출현 빈도가 낮은 심볼에 긴 부호를 할당하는 엔트로피 인코딩 기술 등이 사용될 수 있다.An inter prediction technique for predicting a pixel value included in a current picture from a previous and / or a temporal picture in order to compress and process an image, an inter prediction technique for predicting a pixel value included in a current picture, An entropy encoding technique for assigning a short code to a symbol having a high appearance frequency and a long code to a symbol having a low appearance frequency can be used.

고해상도, 고화질 영상 서비스에 대한 수요가 증가함에 따라서, 전송되는 정보량 혹은 처리되는 정보량을 적정하게 제어하거나 최소화하는 방법이 필요하다.As the demand for high-resolution and high-definition video services increases, a method of appropriately controlling or minimizing the amount of information to be transmitted or the amount of information to be processed is needed.

본 발명의 목적은 PCM(Pulse Code Modulation) 모드의 인트라 코딩과 같이 샘플값 혹은 샘플값과 샘들 예측값의 차이에 해당하는 차분값을 주파수 변환 과정 없이 직접 부호화하는 모드에 있어 각 화면 혹은 각 블록의 발생 비트량을 제어할 수 없었던 종래 기술의 한계를 극복함으로써, 이러한 모드가 사용되더라도 비트율 제어가 용이하게 이루어질 수 있는 방법 및 장치를 제공하는 것이다. It is an object of the present invention to provide a method and a system for directly encoding a differential value corresponding to a difference between a sample value or a sample value and a sampled predicted value, such as intra-coding in a PCM (Pulse Code Modulation) mode, It is possible to provide a method and an apparatus which can easily control the bit rate even if such a mode is used by overcoming the limitations of the prior art which can not control the bit amount.

본 발명의 다른 목적은 종래 기술의 한계를 극복하기 위해 PCM 모드와 같이 샘플값혹은 차분값을 직접 인코딩할 블록들에 대해서 샘플당 비트 깊이 정보를 삽입하며, 이 정보를 상위 레벨의 값 또는 주변의 값으로부터 예측하여 사용함으로써 시그널링 오버헤드를 최소화하는 방법 및 장치를 제공하는 것이다. It is another object of the present invention to overcome the limitations of the prior art by inserting bit depth information per sample for blocks to directly encode sample values or difference values, such as PCM mode, Value of the signaling overhead by minimizing the signaling overhead.

본 발명의 또 다른 목적은 양자화 파라미터(QP)와 샘플당 비트 깊이와의 매핑 관계를 도입함으로써, QP 할당 및 시그널링만으로 부호화된 샘플값 혹은 차분값의 비트 깊이를 유도할 수 있도록 함으로써 부호화 대상 블록의 발생 비트량 제어를 용이하게 하거나, 반대로 부호화된 샘플값 혹은 차분값의 샘플당 비트 깊이 정보의 시그널링 만으로 부호화 대상 블록의 QP값을 유도할 수 있도록 함으로써 부호화 대상 블록의 QP 정보 시그널링을 생략할 수 있도록 하는 방법 및 장치를 제공하는 것이다.It is still another object of the present invention to introduce a mapping relationship between a quantization parameter (QP) and a bit depth per sample to derive a bit depth of a sample value or a difference value encoded by only QP allocation and signaling, It is possible to easily control the generated bit amount or to derive the QP value of the current block by signaling only the bit depth information per sample of the coded sample value or the difference value so that the QP information signaling of the current block can be omitted And to provide a method and an apparatus for performing the method.

(1) 본 발명의 일 실시형태는 비디오 인코딩 방법에 관한 것으로서, PCM(Pulse Coding Modulation)이 적용되는 현재 블록에 대하여 PCM 샘플당 비트 깊이 값을 결정하는 단계 및 PCM 샘플당 비트 깊이에 관한 정보를 시그널링하는 단계를 포함하며, 상기 PCM 샘플당 비트 깊이에 관한 정보는, 상기 현재 블록에 대한 PCM 샘플당 비트 깊이의 기준값에 대한 차이값을 포함할 수 있다.(1) One embodiment of the present invention relates to a video encoding method, comprising: determining a bit depth value per PCM sample for a current block to which PCM (Pulse Coding Modulation) is applied; Wherein the information on the bit depth per PCM sample may include a difference value relative to a reference value of bit depth per PCM sample for the current block.

(2) (1)에서, 상기 기준값은 상위 레벨 신택스를 통해 전송되는 PCM 샘플당 비트 깊이 기준값일 수 있다.(2) In (1), the reference value may be a bit depth reference value per PCM sample transmitted through a high-level syntax.

(3) (2)에서, 상기 시그널링 단계에서는, 상기 PCM 샘플당 비트 깊이 기준값을 시퀀스 파라미터 셋 또는 픽처 파라미터 셋을 통해서 전송할 수 있다.(3) In (2), in the signaling step, the bit depth reference value per PCM sample may be transmitted through a sequence parameter set or a picture parameter set.

(4) (2)에서, 상기 시그널링 단계에서는, 상기 차이값을 슬라이스 헤더 레벨 또는 처리 유닛 레벨에서 전송할 수 있다. (4) In (2), in the signaling step, the difference value may be transmitted at a slice header level or a processing unit level.

(5) (1)에서, 상기 기준값은 상기 현재 블록의 주변 블록들 중에서 PCM 모드가 적용된 블록의 PCM 샘플당 비트 깊이일 수 있다.(5) In (1), the reference value may be a bit depth per PCM sample of a block to which a PCM mode is applied among neighboring blocks of the current block.

(6) (5)에서, 상기 기준값은 PCM 모드가 적용된 블록들 중에서, 상기 현재 블록이 속하는 슬라이스 또는 픽처의 첫 번째 블록의 PCM 샘플당 비트 깊이일 수 있다.(6) In (5), the reference value may be a bit depth per PCM sample of a slice or a first block of a picture to which the current block belongs among blocks to which the PCM mode is applied.

(7) (5)에서, 상기 기준값은 PCM 모드가 적용된 블록들 중에서, 스캔 순서 또는 인코딩 순서상 현재 블록에 가장 가까운 블록의 PCM 샘플당 비트 깊이일 수 있다.(7) In (5), the reference value may be the bit depth per PCM sample of the block closest to the current block in the scan order or encoding order among the blocks to which the PCM mode is applied.

(8) 본 발명의 다른 실시형태는 비디오 인코딩 방법으로서, PCM(Pulse Coding Modulation)이 적용되는 현재 블록에 대하여 PCM 샘플당 비트 깊이 값을 결정하는 단계 및 PCM 샘플당 비트 깊이에 관한 정보를 시그널링하는 단계를 포함하며, 상기 PCM 샘플당 비트 깊이에 관한 정보는, 상기 현재 블록에 대한 PCM 샘플당 비트 깊이에 매핑되는 QP(Quantization parameter)를 포함할 수 있다.(8) Another embodiment of the present invention is a video encoding method comprising the steps of: determining a bit depth value per PCM sample for a current block to which PCM (Pulse Coding Modulation) is applied; and signaling information on bit depth per PCM sample Wherein the information on the bit depth per PCM sample may include a quantization parameter (QP) mapped to a bit depth per PCM sample for the current block.

(9) 보 발명의 또 다른 실시형태는 비디오 디코딩 방법으로서, PCM(Pulse Coding Modulation)이 적용되는 현재 블록에 대한 PCM 샘플당 비트 깊이 정보를 수신하는 단계 및 상기 현재 블록에 대한 PCM 샘플당 비트 깊이 정보를 기반으로 현재 블록을 복원하는 단계를 포함하며, 상기 현재 블록에 대한 PCM 샘플당 비트 깊이 정보는, 상기 현재 블록에 대한 PCM 샘플당 비트 깊이의 기준값에 대한 차이값을 포함할 수 있다.(9) According to still another embodiment of the present invention, there is provided a video decoding method comprising the steps of: receiving bit depth information per PCM sample for a current block to which PCM (Pulse Coding Modulation) is applied; And the bit depth information per PCM sample for the current block may include a difference value with respect to a reference value of bit depth per PCM sample for the current block.

(10) (9)에서, 상기 기준값은 상위 레벨 신택스를 통해 전송된 PCM 샘플당 비트 깊이 기준값일 수 있다.(10) In (9), the reference value may be a bit depth reference value per PCM sample transmitted through a high-level syntax.

(11) (10)에서, 상기 PCM 샘플당 비트 깊이 기준값은 시퀀스 파라미터 셋 또는 픽처 파라미터 셋을 통해서 전송될 수 있다.(11) In (10), the bit depth reference value per PCM sample may be transmitted through a sequence parameter set or a picture parameter set.

(12) (10)에서, 상기 차이값은 슬라이스 헤더 레벨 또는 처리 유닛 레벨에서 전송될 수 있다.(12) In (10), the difference value may be transmitted at the slice header level or processing unit level.

(13) (9)에서, 상기 기준값은 상기 현재 블록의 주변 블록들 중에서 PCM 모드가 적용된 블록의 PCM 샘플당 비트 깊이일 수 있다.(13) In (9), the reference value may be a bit depth per PCM sample of a block to which a PCM mode is applied, from neighboring blocks of the current block.

(14) (13)에서, 상기 기준값은, PCM 모드가 적용된 블록들 중에서, 상기 현재 블록이 속하는 슬라이스 또는 픽처의 첫 번째 블록의 PCM 샘플당 비트 깊이일 수 있다.(14) In (13), the reference value may be a bit depth per PCM sample of a slice or a first block of a picture to which the current block belongs, among the blocks to which the PCM mode is applied.

(15) (13)에서, 상기 기준값은 PCM 모드가 적용된 블록들 중에서, 스캔 순서 또는 디코딩 순서상 현재 블록에 가장 가까운 블록의 PCM 샘플당 비트 깊이일 수 있다.(15) In (13), the reference value may be the bit depth per PCM sample of the block closest to the current block in the scan order or decoding order among the blocks to which the PCM mode is applied.

(16) 본 발명의 또 다른 실시형태는 비디오 디코딩 방법으로서, PCM(Pulse Coding Modulation)이 적용되는 현재 블록에 대한 PCM 샘플당 비트 깊이 정보를 수신하는 단계 및 상기 현재 블록에 대한 PCM 샘플당 비트 깊이 정보를 기반으로 현재 블록을 복원하는 단계를 포함하며, 상기 현재 블록에 대한 PCM 샘플당 비트 깊이 정보는, 상기 현재 블록에 대한 PCM 샘플당 비트 깊이에 매핑되는 QP(Quantization parameter)를 포함할 수 있다.(16) According to still another embodiment of the present invention, there is provided a video decoding method comprising: receiving bit depth information per PCM sample for a current block to which PCM (Pulse Coding Modulation) is applied; And the bit depth information per PCM sample for the current block may include a quantization parameter (QP) mapped to a bit depth per PCM sample for the current block .

본 발명에 의하면, PCM(Pulse Code Modulation) 모드의 인트라 코딩 각 화면 혹은 각 블록의 발생 비트량을 제어할 수 없었던 종래 기술의 한계를 극복함으로써, PCM 모드가 사용되더라도 비트율을 용이하게 제어할 수 있다. According to the present invention, it is possible to easily control the bit rate even if the PCM mode is used, by overcoming the limitations of the prior art that can not control the intra-coding angle picture in the PCM (Pulse Code Modulation) mode or the amount of bits generated in each block .

본 발명에 의하면, PCM 모드로 인코딩할 블록들에 대해서 PCM 샘플당 비트 깊이 정보를 삽입하며, 이 정보를 상위 레벨의 값 또는 주변의 값으로부터 예측하여 사용함으로써 시그널링 오버헤드를 최소화할 수 있다. According to the present invention, the bit depth information per PCM sample is inserted into the blocks to be encoded in the PCM mode, and the signaling overhead can be minimized by using this information by predicting and using this information from a higher level value or surrounding value.

본 발명에 의하면, 양자화 파라미터(QP)와 PCM 샘플당 비트 깊이와의 매핑 관계를 도입함으로써, QP 할당 및 시그널링만으로 PCM 모드의 인트라 코딩이 적용된 블록의 발생 비트량을 용이하게 제어할 수 있다.According to the present invention, by introducing the mapping relationship between the quantization parameter (QP) and the bit depth per PCM sample, it is possible to easily control the generated bit amount of a block to which intra coding of the PCM mode is applied only by QP allocation and signaling.

도 1은 인코딩 장치의 일 실시예에 따른 기본 구성을 나타내는 블록도이다.
도 2는 디코딩 장치의 일 실시예에 따른 기본 구성을 나타내는 블록도이다.
도 3은 본 발명에 따라서 인코딩 장치에서 수행되는 PCM 샘플에 대한 비트율 제어 동작의 일 예를 개략적으로 설명하는 플로우 차트이다.
도 4는 본 발명에 따라서 인코딩 장치에서 수행되는 PCM 샘플에 대한 비트율 제어 동작의 다른 예를 개략적으로 설명하는 플로우 차트이다.
도 5는 본 발명에 따라서 시그널링되는 PCM 모드에 대한 비트량 정보에 관하여 개략적으로 설명하는 도면이다.
도 6은 본 발명에 따라서 현재 블록의 주변 블록들 중 PCM 모드로 인코딩/디코딩된 블록의 정보를 이용하여 현재 블록의 PCM 샘플당 비트 깊이 값을 예측하는 방법을 개략적으로 설명하는 도면이다.
도 7은 본 발명에 따른 디코딩 장치에서 PCM 모드가 적용된 블록을 복원하는 방법을 개략적으로 설명하는 플로우 차트이다.
1 is a block diagram showing a basic configuration according to an embodiment of an encoding apparatus.
2 is a block diagram showing a basic configuration according to an embodiment of a decoding apparatus.
3 is a flowchart schematically illustrating an example of a bit rate control operation for a PCM sample performed in an encoding apparatus according to the present invention.
4 is a flowchart schematically illustrating another example of a bit rate control operation for a PCM sample performed in an encoding apparatus according to the present invention.
5 is a schematic diagram for explaining bit amount information for a PCM mode signaled according to the present invention.
6 is a diagram schematically illustrating a method of predicting a bit depth value per PCM sample of a current block using information of a block encoded / decoded in a PCM mode among neighboring blocks of a current block according to the present invention.
7 is a flowchart schematically illustrating a method of restoring a block to which a PCM mode is applied in a decoding apparatus according to the present invention.

이하, 도면을 참조하여 본 발명의 실시예에 대하여 구체적으로 설명한다. 본 명세서의 실시예를 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 명세서의 요지를 흐릴 수 있다고 판단되는 경우에는 해당 설명을 생략할 수도 있다.Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In describing the embodiments of the present invention, if the detailed description of related known structures or functions is deemed to obscure the subject matter of the present specification, the description may be omitted.

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

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

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

도 1은 인코딩 장치의 일 실시예에 따른 기본 구성을 나타내는 블록도이다. 1 is a block diagram showing a basic configuration according to an embodiment of an encoding apparatus.

도 1을 참조하면, 인코딩 장치(100)는 인터 예측부(110), 인트라 예측부(120), 스위치(125), 감산기(130), 변환부(135), 양자화부(140), 엔트로피 인코딩부(150), 역양자화부(160), 역변환부(170), 가산기(175), 필터부(180) 및 픽처 버퍼(190)를 포함한다.1, the encoding apparatus 100 includes an inter prediction unit 110, an intra prediction unit 120, a switch 125, a subtractor 130, a transform unit 135, a quantization unit 140, An inverse quantization unit 160, an inverse transform unit 170, an adder 175, a filter unit 180, and a picture buffer 190.

인코딩 장치(100)는 입력 영상에 대해 인트라(intra) 모드 또는 인터(inter) 모드로 인코딩을 수행하고 비트스트림(bitstream)을 출력할 수 있다. 인트라 모드인 경우 스위치(125)가 인트라로 전환되고, 인터 모드인 경우 스위치(125)가 인터로 전환된다. 인코딩 장치(100)는 입력 영상의 입력 블록에 대한 예측 블록을 생성한 후, 입력 블록과 예측 블록의 차분을 인코딩할 수 있다.The 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 125 is switched to the intra mode, and in the inter mode, the switch 125 is switched to the inter mode. The encoding apparatus 100 may generate a prediction block for an input block of an input image and then encode a difference between the input block and the prediction block.

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

인터 모드인 경우, 인터 예측부(110)는, 움직임 예측 과정에서 픽처 버퍼(190)에 저장되어 있는 참조 영상에서 입력 블록에 대응하는 영역을 찾아 움직임 벡터를 구할 수 있다. 인터 예측부(110)는 움직임 벡터와 픽처 버퍼(190)에 저장되어 있는 참조 영상을 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다. In the inter mode, the inter-prediction unit 110 can obtain a motion vector by searching an area corresponding to an input block in a reference image stored in the picture buffer 190 in a motion prediction process. The inter prediction unit 110 may generate a prediction block by performing motion compensation using a motion vector and a reference image stored in the picture buffer 190. [

감산기(130)는 입력 블록과 생성된 예측 블록의 차분에 의해 레지듀얼 블록(residual block)을 생성할 수 있다. 변환부(135)는 레지듀얼 블록에 대해 변환(transform)을 수행하여 변환 계수(transform coefficient)를 출력할 수 있다. 그리고 양자화부(140)는 입력된 변환 계수를 양자화 파라미터에 따라 양자화하여 양자화된 계수(quantized coefficient)를 출력할 수 있다. 엔트로피 인코딩부(150)는, 양자화부(140)에서 산출된 값들 또는 인코딩 과정에서 산출된 인코딩 파라미터 값 등을 기초로, 양자화된 계수를 확률 분포에 따라 엔트로피 인코딩하여 비트스트림(bitstream)을 출력할 수 있다.The subtractor 130 may generate a residual block by a difference between the input block and the generated prediction block. The conversion unit 135 may perform a transform on the residual block to output a transform coefficient. The quantization unit 140 may quantize the input transform coefficient according to the quantization parameter to output a quantized coefficient. The entropy encoding unit 150 entropy-encodes the quantized coefficients according to the probability distribution, based on the values calculated in the quantization unit 140 or the encoding parameter values calculated in the encoding process, and outputs a bitstream .

양자화된 계수는 역양자화부(160)에서 역양자화되고 역변환부(170)에서 역변환될 수 있다. 역양자화, 역변환된 계수는 가산기(175)를 통해 예측 블록과 더해지고 복원 블록이 생성될 수 있다. The quantized coefficients can be inversely quantized in the inverse quantization unit 160 and inversely transformed in the inverse transformation unit 170. The inverse quantized and inverse transformed coefficients can be added to the prediction block through the adder 175 and a reconstruction block can be generated.

복원 블록은 필터부(180)를 거치고, 필터부(180)는 디블록킹 필터(deblocking filter), SAO(Sample Adaptive Offset), ALF(Adaptive Loop Filter) 중 적어도 하나 이상을 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(180)에서는 SAO가 적용된 경우에 ALF를 적용할지를 결정할 수도 있다. 필터부(180)를 거친 복원 블록은 픽처 버퍼(190)에 저장될 수 있다.The restoration 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) can do. The filter unit 180 may determine whether to apply the ALF when SAO is applied. The restoration block having passed through the filter unit 180 may be stored in the picture buffer 190.

도 2는 디코딩 장치의 일 실시예에 따른 기본 구성을 나타내는 블록도이다. 2 is a block diagram showing a basic configuration according to an embodiment of a decoding apparatus.

도 2를 참조하면, 디코딩 장치(200)는 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 인트라 예측부(240), 인터 예측부(250), 필터부(260) 및 픽처 버퍼(270)를 포함한다.2, the decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an intra prediction unit 240, an inter prediction unit 250, a filter unit 260 And a picture buffer 270.

디코딩 장치(200)는 인코딩 장치에서 출력된 비트스트림을 입력 받아 인트라 모드 또는 인터 모드로 디코딩을 수행하고 재구성된 영상, 즉 복원 영상을 출력할 수 있다. 인트라 모드인 경우 스위치가 인트라로 전환되고, 인터 모드인 경우 스위치가 인터로 전환될 수 있다. The decoding apparatus 200 receives the bitstream output from the encoding apparatus, decodes the bitstream into an intra mode or an inter mode, and outputs a reconstructed image, that is, a reconstructed image. In the intra mode, the switch is switched to the intra mode, and in the inter mode, the switch can be switched to the inter mode.

디코딩 장치(200)는 입력 받은 비트스트림으로부터 복원된 레지듀얼 블록(residual block)을 얻고 예측 블록을 생성한 후 복원된 레지듀얼 블록과 예측 블록을 더하여 재구성된 블록, 즉 복원 블록을 생성할 수 있다.The decoding apparatus 200 may obtain a residual block reconstructed from the input bitstream, generate a prediction block, and add the reconstructed residual block and the prediction block to generate a reconstructed block, i.e., a reconstructed block .

엔트로피 디코딩부(210)는, 입력된 비트스트림을 확률 분포에 따라 엔트로피 디코딩한다. 엔트로피 디코딩에 의해, 양자화된 (변환) 계수가 생성될 수 있다. The entropy decoding unit 210 entropy-decodes the input bitstream according to a probability distribution. By entropy decoding, a quantized (transform) coefficient can be generated.

양자화된 계수는 역양자화부(220)에서 역양자화되고 역변환부(230)에서 역변환되며, 양자화된 계수가 역양자화/역변환된 결과, 복원된 레지듀얼 블록(residual block)이 생성될 수 있다. The quantized coefficients are inversely quantized in the inverse quantization unit 220 and inversely transformed in the inverse transformation unit 230. As a result that the quantized coefficients are inversely quantized / inverse transformed, a reconstructed residual block can be generated.

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

복원된 레지듀얼 블록과 예측 블록은 가산기(255)를 통해 더해지고, 더해진 블록은 필터부(260)를 거친다. 필터부(260)는 디블록킹 필터, SAO, ALF 중 적어도 하나를 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(260)에서는 SAO가 적용된 경우에 ALF를 적용할지를 결정할 수도 있다. 필터부(260)는 재구성된 영상, 즉 복원 영상을 출력한다. 복원 영상은 픽처 버퍼(270)에 저장되어 화면 간 예측에 사용될 수 있다.The restored residual block and the prediction block are added through the adder 255, and the added block is passed through the filter unit 260. The filter unit 260 may apply at least one of the deblocking filter, SAO, and ALF to the restoration block or the restored picture. The filter unit 260 may determine whether to apply ALF when SAO is applied. The filter unit 260 outputs a reconstructed image, that is, a reconstructed image. The restored image is stored in the picture buffer 270 and can be used for inter-view prediction.

한편, 현재 블록에 대한 예측 모드가 인트라 모드인 경우에, 인코딩 장치 및 디코딩 장치는 무손실(lossless) 코딩을 위해 상술한 인트라 예측 모드 외에 PCM(Pulse Coding Modulation) 모드를 이용할 수 있다. On the other hand, when the prediction mode for the current block is the intra mode, the encoding apparatus and the decoding apparatus can use the PCM (Pulse Coding Modulation) mode in addition to the intraprediction mode described above for lossless coding.

PCM 모드는 인코딩 대상 블록의 압축 비트량이 원본 비트량보다 커지는 것을 막기 위한 안전 장치로서, 예측/변환 과정을 거치지 않고, 샘플값을 직접 인코딩한다.The PCM mode is a safety device for preventing the compressed bit amount of the encoding target block from becoming larger than the original bit amount, and directly encodes the sample value without performing the prediction / conversion process.

현재 블록에 대해 PCM 모드가 적용되는 경우, 인코딩 장치는 예측/변환 과정을 거치지 않고, PCM 모드가 적용된 현재 블록의 샘플값을 직접 인코딩하여 디코딩 장치로 전송할 수 있다. When the PCM mode is applied to the current block, the encoding device can directly encode the sample value of the current block to which the PCM mode is applied, and transmit the encoded data to the decoding device without performing the prediction / conversion process.

디코딩 장치는 PCM 모드가 적용되는 블록에 대해서는 예측/변환 등을 수행하지 않을 수 있다. PCM 모드가 적용된 블록에 대해서, 디코딩 장치는 인코딩 장치로부터 전송된 비트스트림을 파싱한 후, 파싱된 픽셀 값을 기반으로 복원 블록(reconstructed block)을 구성할 수 있다.The decoding apparatus may not perform prediction / conversion for the block to which the PCM mode is applied. For a block to which the PCM mode is applied, the decoding apparatus can parse the bit stream transmitted from the encoding apparatus and construct a reconstructed block based on the parsed pixel value.

PCM 모드가 적용되는 경우에, 인코딩 장치는 현재 블록에 대해 PCM 모드가 적용되는지를 지시하는 정보를 디코딩 장치로 전송할 수 있다. 디코딩 장치는 인코딩 장치로부터 수신한 정보를 기반으로 현재 블록에 PCM 모드를 적용할지를 결정할 수 있다. 이때, PCM 모드가 적용되는 블록은 CU, PU 또는 TU 중 어느 하나의 처리 유닛일 수도 있다. 또한, PCM 모드가 적용되는지를 지시하는 정보는 플래그(flag)로 전송될 수도 있다. In the case where the PCM mode is applied, the encoding device can transmit to the decoding device information indicating that the PCM mode is applied to the current block. The decoding apparatus can determine whether to apply the PCM mode to the current block based on the information received from the encoding apparatus. At this time, the block to which the PCM mode is applied may be a processing unit of any of CU, PU, or TU. In addition, information indicating whether the PCM mode is applied may be transmitted as a flag.

PCM 모드로 복원된 블록에 인루프 필터가 적용될 수도 있다, 예컨대, PCM 모드로 복원된 블록에, 디블록킹 필터, SAO 및/또는 ALF가 적용될 수 있다.An in-loop filter may be applied to the block reconstructed in the PCM mode, for example, a deblocking filter, SAO and / or ALF may be applied to the reconstructed block in the PCM mode.

한편, 방송 환경과 같이 CBR(Constant Bit-Rate)가 적용되는 환경에서 영상 코딩을 수행할 경우에는, 각 화면 혹은 각 화면을 구성하는 블록에 할당되는 양자화 간격을 양자화 파라미터(Quantization Parameter: QP)를 조정함에 의해 제어함으로써, 고정 비트율 전송이 가능하도록 비트율을 제어한다.On the other hand, when image coding is performed in an environment in which CBR (Constant Bit-Rate) is applied as in a broadcasting environment, quantization intervals allocated to blocks constituting each screen or each screen are referred to as quantization parameters (QP) The bit rate is controlled so as to enable transmission of a constant bit rate.

하지만, PCM 모드의 경우에는 샘플 값을 양자화 과정 없이 직접 코딩하므로, 양자화 간격을 제어할 수 없다. 따라서, PCM 모드가 적용되는 블록 또는 픽처에 대하여는 양자화 간격 제어 외의 다른 방법으로 비트율을 제어할 수 있다.However, in the PCM mode, since the sample value is directly coded without the quantization process, the quantization interval can not be controlled. Therefore, for a block or picture to which the PCM mode is applied, the bit rate can be controlled by a method other than the quantization interval control.

구체적으로, 본 발명에 따라서 PCM 모드를 적용하는 경우에는, PCM 모드를 적용할 블록에 대하여 인코딩 장치가 샘플 비트 깊이(bit depth)를 디코딩 장치로 시그널링할 수 있다. Specifically, when applying the PCM mode according to the present invention, the encoding apparatus can signal the sample bit depth to the decoding apparatus for the block to which the PCM mode is applied.

또한, 본 발명에 따라서 PCM 모드를 적용하는 경우에는 현재 블록에 적용되는 PCM 모드의 정보, 예컨대 비트 깊이에 관한 정보의 일부 또는 전부가 디코딩 장치에서 예측되도록 할 수도 있다. 비트 깊이 정보의 일부 또는 전부를 디코딩 장치에서 예측함으로써 PCM 모드가 적용된 블록의 샘플(설명의 편의를 위해, 이하 ‘PCM 샘플’이라 함)의 비트 깊이에 관한 정보를 전송하는데 필요한 비트량을 줄일 수 있다.In the case of applying the PCM mode according to the present invention, a part or all of the information on the PCM mode applied to the current block, for example, the bit depth, may be predicted by the decoding device. It is possible to reduce the amount of bits required to transmit information on the bit depth of a sample (hereinafter, referred to as 'PCM sample') of a block to which a PCM mode is applied by predicting part or all of the bit depth information in the decoding apparatus have.

또한, 일반적인 비트율 제어는 QP 값 제어를 통해 정보 전송 시에 발생하는 발생 비트량을 제어하므로, 본 발명에 따라서 PCM 모드를 적용하는 경우에 QP와 PCM 샘플의 비트 깊이를 매핑함으로써, PCM 모드가 적용된 블록에 대해서도 QP를 이용한 비트율 제어가 수행되도록 할 수도 있다. 이때, 인코딩 장치가 PCM 샘플당 비트 깊이 정보를 전송하여 디코딩 장치가 QP를 도출하는 매핑 관계를 이용할 수도 있고, 인코딩 장치가 QP를 전송하여 디코딩 장치가 PCM 샘플당 비트 깊이 값을 도출하는 매핑 관계를 이용할 수도 있다.Since the general bit rate control controls the amount of bits generated at the time of information transmission through the QP value control, when the PCM mode is applied according to the present invention, by mapping the bit depths of the QP and the PCM samples, The bit rate control using the QP may be performed for the block. At this time, a mapping relationship in which the encoding apparatus transmits bit depth information per PCM sample so that the decoding apparatus derives the QP may be used, and a mapping relationship in which the encoding apparatus transmits the QP and the decoding apparatus derives the bit depth value per PCM sample It can also be used.

이하, 도면과 표를 참조하여 본 발명에 대하여 구체적으로 설명한다.Hereinafter, the present invention will be described in detail with reference to the drawings and tables.

PCM 모드로 부호화된 블록의 비트량을 조절하기 위해서, 인코딩 장치는 PCM 샘플당 비트 깊이에 관한 정보를 포함하는 비트스트림을 디코딩 장치에 전송한다. 디코딩 장치는 수신한 비트스트림을 파싱하여 PCM 샘플당 비트 깊이에 관한 정보를 획득한다. 디코딩 장치는 상기 PCM 샘플당 비트 깊이를 기반으로 PCM 모드가 적용된 블록을 복원할 수 있다. In order to adjust the bit amount of the block encoded in the PCM mode, the encoding device transmits a bit stream containing information on the bit depth per PCM sample to the decoding device. The decoding apparatus parses the received bit stream to obtain information on the bit depth per PCM sample. The decoding apparatus can recover the block to which the PCM mode is applied based on the bit depth per PCM sample.

여기서, PCM 샘플당 비트 깊이는 PCM 모드로 인코딩/디코딩할 때 루마 신호(luma component) 및/또는 크로마 신호(chroma component)의 샘플 값을 몇 비트로 나타낼 것인지를 지시한다. Here, the bit depth per PCM sample indicates how many bits the sample value of the luma component and / or the chroma component will be represented when encoding / decoding in the PCM mode.

인코딩 장치는 PCM 샘플당 비트 깊이를 지시하기 위해, PCM 샘플당 비트 깊이의 기준값(이하, 설명의 편의를 위해 ‘PCM 샘플당 비트 깊이 기준값’이라 함)을 설정할 수 있다. 인코딩 장치는 현재 블록에 PCM 모드가 적용되는 경우에, 설정된 PCM 샘플당 비트 깊이의 기준값과 현재 블록에 대한 PCM 샘플당 비트 깊이의 차이값을 전송할 수 있다. 디코딩 장치는 PCM 샘플당 비트 깊이 기준값 및 상기 기준값과 현재 블록에 대한 PCM 샘플당 비트 깊이 간의 차이값(이하, 설명의 편의를 위해 ‘PCM 샘플당 비트 깊이 차이값’이라고 함)을 인코딩 장치로부터 수신할 수 있다. 디코딩 장치는 수신한 상기 PCM 샘플당 비트 깊이 기준값과 상기 차이값에 기반하여 PCM 모드가 적용된 블록을 복원할 수 있다. The encoding apparatus can set a reference value of the bit depth per PCM sample (hereinafter, referred to as a 'bit depth reference value per PCM sample') for indicating the bit depth per PCM sample. The encoding apparatus can transmit the difference between the reference value of the bit depth per PCM sample set and the bit depth per PCM sample for the current block when the PCM mode is applied to the current block. The decoding apparatus receives from the encoding device a bit depth reference value per PCM sample and a difference value between the reference value and the bit depth per PCM sample for the current block (hereinafter referred to as 'bit depth difference value per PCM sample' can do. The decoding apparatus can recover the block to which the PCM mode is applied based on the received bit depth reference value per the PCM sample and the difference value.

본 명세서에서는 설명의 편의를 위해, 루마 신호에 대하여 적용되는 방법 및 장치를 설명하지만, 크로마 신호에 대하여도 동일한 방법 및 장치를 통해서 적용될 수 있다.For convenience of explanation, the method and apparatus applied to the luma signal are described herein, but the same can be applied to the chroma signal through the same method and apparatus.

도 3은 본 발명에 따라서 인코딩 장치에서 수행되는 PCM 샘플에 대한 비트율 제어 동작의 일 예를 개략적으로 설명하는 플로우 차트이다. 3 is a flowchart schematically illustrating an example of a bit rate control operation for a PCM sample performed in an encoding apparatus according to the present invention.

도 3을 참조하면, 인코딩 장치는 PCM 모드에 대한 샘플당 비트 깊이 기준값을 결정한다(S310). Referring to FIG. 3, the encoding apparatus determines a bit depth reference value per sample for the PCM mode (S310).

인코딩 장치는 PCM 모드가 적용되는 블록의 PCM 샘플당 비트 깊이 값을 결정한다(S320).The encoding apparatus determines a bit depth value per PCM sample of a block to which the PCM mode is applied (S320).

인코딩 장치는 PCM 샘플당 비트 깊이 값에 관한 정보를 시그널링한다(S330). PCM 샘플당 비트 깊이 값에 관한 정보는 PCM 샘플당 비트 깊이 기준값 및 PCM 샘플당 비트 깊이 차이값을 포함한다. 인코딩 장치는 PCM 샘플당 비트 정보를 PCM 모드가 적용되는 블록마다 직접 시그널링하는 대신, 시그널링되는 비트량을 줄이기 위해 슬라이스, 픽처, 시퀀스와 같은 상위 레벨의 헤더에서 PCM 샘플당 비트 깊이 기준값을 시그널링하고, 하위 레벨에서 PCM 샘플당 비트 깊이 차이값을 시그널링할 수 있다. The encoding device signals information on the bit depth value per PCM sample (S330). Information about the bit depth value per PCM sample includes the bit depth reference value per PCM sample and the bit depth difference value per PCM sample. Instead of directly signaling the bit information per PCM sample for each block to which the PCM mode is applied, the encoding device signals the bit depth reference value per PCM sample in a high-level header such as a slice, picture, or sequence to reduce the amount of signaled signal, You can signal the bit depth difference value per PCM sample at the lower level.

여기서는 설명의 편의를 위해 인코딩 장치가 비트량을 제어하는 것으로 설명하였으나, 본 발명은 이에 한정되지 않는다. 예컨대, 도 1에 도시된 인코딩 장치의 내부 구성 중 S310 단계는 양자화부에서 수행되고, S320 단계는 엔트로피 인코딩부에서 수행될 수도 있다.Here, for convenience of explanation, the encoding apparatus is described as controlling the bit amount, but the present invention is not limited to this. For example, S310 among the internal configurations of the encoding apparatus shown in FIG. 1 may be performed in the quantization unit, and step S320 may be performed in the entropy encoding unit.

한편, 상술한 바와 같이, PCM 모드를 적용하는 경우에 QP와 PCM 샘플의 비트 깊이를 매핑함으로써, PCM 모드가 적용된 블록에 대해서도 QP를 이용한 비트율 제어가 수행되도록 할 수도 있다.Meanwhile, as described above, when the PCM mode is applied, the QP and the bit depth of the PCM sample are mapped to allow the bit rate control using the QP to be performed on the block to which the PCM mode is applied.

도 4는 본 발명에 따라서 인코딩 장치에서 수행되는 PCM 샘플에 대한 비트율 제어 동작의 다른 예를 개략적으로 설명하는 플로우 차트이다. 도 4의 경우에는, QP와 PCM 샘플의 비트 깊이를 매핑하여 PCM 모드가 적용되는 블록에 대하여 비트량 제어가 수행된다.4 is a flowchart schematically illustrating another example of a bit rate control operation for a PCM sample performed in an encoding apparatus according to the present invention. In the case of FIG. 4, bit amount control is performed on a block to which the PCM mode is applied by mapping the bit depth of the QP and the PCM sample.

도 4의 예에서는, 도 3의 경우와 달리 우선적으로 QP와 PCM 샘플당 비트 깊이 정보를 매핑한다(S410). 인코딩 장치는 후술하는 바와 같이 매핑 테이블 또는 매핑 계산식을 이용하여 PCM 샘플당 비트 깊이 정보와 QP를 매핑할 수 있다. 인코딩 장치는 현재 블록에 적용될 샘플당 비트 깊이에 대응하는 QP에 매핑되는 PCM 샘플당 깊이 정보를 결정할 수 있다.In the example of FIG. 4, QP and bit depth information per PCM sample are mapped first, unlike the case of FIG. 3 (S410). The encoding apparatus can map bit depth information and QP per PCM sample using a mapping table or a mapping calculation formula as described later. The encoding device may determine depth information per PCM sample that is mapped to a QP corresponding to the bit depth per sample to be applied to the current block.

이어서, 인코딩 장치는 도 3에서와 같이, PCM 모드에 대한 샘플당 비트 깊이 기준값을 결정한다(S420). Subsequently, the encoding apparatus determines a bit depth reference value per sample for the PCM mode, as in FIG. 3 (S420).

인코딩 장치는 PCM 모드가 적용되는 블록의 PCM 샘플당 비트 깊이 값을 결정한다(S430).The encoding apparatus determines a bit depth value per PCM sample of a block to which the PCM mode is applied (S430).

인코딩 장치는 PCM 샘플당 비트 깊이 값에 관한 정보를 시그널링한다(S440).The encoding device signals information regarding the bit depth value per PCM sample (S440).

PCM 샘플당 비트 깊이 값에 관한 정보는 PCM 샘플당 비트 깊이 기준값 및 PCM 샘플당 비트 깊이 차이값을 포함한다. 인코딩 장치는 PCM 샘플당 비트 정보를 PCM 모드가 적용되는 블록마다 직접 시그널링하는 대신, 시그널링되는 비트량을 줄이기 위해 슬라이스, 픽처, 시퀀스와 같은 상위 레벨의 헤더에서 PCM 샘플당 비트 깊이 기준값을 시그널링하고, 하위 레벨에서 PCM 샘플당 비트 깊이 차이값을 시그널링할 수 있다.Information about the bit depth value per PCM sample includes the bit depth reference value per PCM sample and the bit depth difference value per PCM sample. Instead of directly signaling the bit information per PCM sample for each block to which the PCM mode is applied, the encoding device signals the bit depth reference value per PCM sample in a high-level header such as a slice, picture, or sequence to reduce the amount of signaled signal, You can signal the bit depth difference value per PCM sample at the lower level.

도 4에서는 QP 에 대응하는 PCM 샘플당 비트 깊이 정보를 전송하여 현재 블록의 PCM 샘플당 비트 깊이 값을 제어하는 것을 설명하였으나, 반대로 PCM 샘플당 비트 깊이를 결정하고, 대응하는 QP 값을 전송하여 PCM 샘플당 비트 깊이 값을 제어하도록 할 수도 있다. 이 경우에 전송되는 QP 값은 PCM 샘플당 비트 깊이 값을 제어하는 외에도 역양자화, 필터링 등에 이용될 수 있다. 4, bit depth information per PCM sample corresponding to the QP is transmitted to control the bit depth value per PCM sample of the current block. Conversely, the bit depth per PCM sample is determined, and the corresponding QP value is transmitted, It is also possible to control the bit depth value per sample. In this case, the transmitted QP value can be used for inverse quantization, filtering, etc. in addition to controlling the bit depth value per PCM sample.

도 4의 예에서도 설명의 편의를 위해 인코딩 장치가 비트량을 제어하는 것으로 설명하였으나, 본 발명은 이에 한정되지 않는다. 예컨대, 도 1에 도시된 인코딩 장치의 내부 구성 중, S410 단계 및 S420 단계는 양자화부에서 수행될 수 있고, S430 단계는 엔트로피 인코딩부에서 수행될 수도 있다.In the example of FIG. 4, the encoding apparatus controls the bit amount for convenience of explanation, but the present invention is not limited to this. For example, among the internal configurations of the encoding apparatus shown in FIG. 1, steps S410 and S420 may be performed in the quantization unit, and step S430 may be performed in the entropy encoding unit.

도 3 및 도 4의 예에서와 같이, 본 발명에서는 PCM 샘플당 깊이 차이값을 시그널링해서 PCM 모드에 대한 비트량을 제어할 수 있다.As in the examples of FIGS. 3 and 4, in the present invention, the amount of bits for the PCM mode can be controlled by signaling the depth difference value per PCM sample.

도 5는 본 발명에 따라서 시그널링되는 PCM 모드에 대한 비트량 정보에 관하여 개략적으로 설명하는 도면이다.5 is a schematic diagram for explaining bit amount information for a PCM mode signaled according to the present invention.

도 5를 참조하면, 상위 레벨의 시퀀스 파라미터 셋(SPS) 또는 픽처 파라미터 셋(PPS)에서 PCM 샘플당 비트 깊이 기준값(510)이 전송된다. Referring to FIG. 5, a bit depth reference value 510 per PCM sample is transmitted in a higher level sequence parameter set (SPS) or a picture parameter set (PPS).

하위 레벨에서는 실제 적용되는 PCM 샘플당 비트 깊이값이 결정되어 전소될 수 있다. 예컨대 슬라이스 헤더에서 PCM 샘플당 비트 깊이값(520)이 결정되거나, CU, PU, TU 와 같은 처리 유닛 레벨에서 PCM 샘플당 비트 깊이 값(530)이 결정될 수 있다.At the lower level, the actual bit depth per PCM sample can be determined and burned. For example, a bit depth value 520 per PCM sample may be determined in a slice header, or a bit depth value 530 per PCM sample may be determined at a processing unit level such as CU, PU, TU.

이때, 현재 블록의 PCM 샘플당 비트 깊이값은 PCM 샘플당 비트 깊이 기준값과의 차이값 형태로 전송될 수 있다.At this time, the bit depth value per PCM sample of the current block can be transmitted as a difference value from the bit depth reference value per PCM sample.

예컨대, 처리 유닛(CU, PU,TU 등)의 PCM 샘플당 비트 깊이값(530)을 시그널링하고자 하는 경우에는, PCM 샘플당 비트 깊이 기준값(510)과의 차이값(530)을 처리 유닛 레벨에서 시그널링할 수 있다.For example, when signaling the bit depth value 530 per PCM sample of the processing unit (CU, PU, TU, etc.), the difference value 530 from the per bit PCM sample per bit depth reference value 530, Signaling.

또한, 슬라이스 헤더 레벨의 PCM 샘플당 비트 깊이 값(520)을 매개하여, 처리 유닛 레벨의 PCM 샘플당 비트 깊이 값(530)을 전송할 수도 있다. 예컨대, 슬라이스 헤더 레벨의 PCM 샘플당 비트 깊이 값(520)을 PCM 샘플당 비트 깊이 기준값(510)과의 차이값(540)을 전송하여 지시할 수 있다. 처리 유닛 레벨에서의 PCM 샘플당 비트 깊이 값(530)는 슬라이스 헤더 레벨의 PCM 샘플당 비트 깊이 값(520)과의 차이값(550)을 전송하여 지시할 수 있다. 이때, 인코딩 장치와 디코딩 장치가 슬라이스 헤더 레벨의 PCM 샘플당 비트 깊이 값만을 송수신하거나, 이용하도록 설정된 경우에는, 슬라이스 헤더 레벨의 PCM 샘플당 비트 깊이 값(520)과의 차이값(550)을 전송하지 않을 수도 있다.It may also send a bit depth value 530 per PCM sample of the processing unit level, mediating the bit depth value 520 per PCM sample of the slice header level. For example, the bit depth value 520 per PCM sample of the slice header level can be indicated by transmitting a difference value 540 to the bit depth reference value 510 per PCM sample. The PCM per sample bit depth value 530 at the processing unit level can be indicated by sending a difference value 550 to the bit depth value 520 per PCM sample of the slice header level. At this time, if the encoding apparatus and the decoding apparatus are set to transmit or receive only the bit depth value per PCM sample of the slice header level, the difference value 550 from the bit depth value 520 per PCM sample of the slice header level is transmitted It may not.

표 1은 각 레벨에서 전송되는 PCM 샘플당 비트 깊이에 관한 신택스의 일 예이다.Table 1 is an example of the syntax for the bit depth per PCM sample transmitted at each level.

<표 1><Table 1>

Figure pat00001
Figure pat00001

표 1을 참조하면, SPS 또는 PPS에서는 PCM 샘플당 비트 깊이 기준값이 전송된다. SPS 또는 PPS에서 전송되는 PCM 샘플당 비트 깊이 기준값은 해당 시퀀스 또는 해당 픽처에 공통적으로 적용된다.Referring to Table 1, in the SPS or PPS, the bit depth reference value per PCM sample is transmitted. The bit depth reference value per PCM sample transmitted in the SPS or PPS is applied in common to the corresponding sequence or the corresponding picture.

본 발명에서는 슬라이스 헤더에서 PCM 샘플당 비트 깊이 차이값이 전송될 수 있다. PCM 샘플당 비트 깊이 차이값은 PCM 샘플당 비트 깊이 기준값과 합쳐져서 실제 PCM 샘플당 비트 깊이 값을 나타낼 수 있다. 슬라이스 헤더에서 전송되는 PCM 샘플당 비트 깊이 차이값은 해당 슬라이스에 공통적으로 적용된다.In the present invention, a bit depth difference value per PCM sample can be transmitted in a slice header. The bit depth difference value per PCM sample can be combined with the bit depth reference value per PCM sample to indicate the bit depth value per actual PCM sample. The bit depth difference value per PCM sample transmitted in the slice header is commonly applied to the corresponding slice.

본 발명에서는 CU, PU, TU 등의 처리 유닛 레벨에서 PCM 샘플당 비트 깊이 차이값이 전송될 수도 있다. PCM 샘플당 비트 깊이 차이값은 PCM 샘플당 비트 깊이 기준값과 합쳐져서 실제 PCM 샘플당 비트 깊이 값을 나타낼 수 있다. 처리 유닛 레벨에서 전송되는 PCM 샘플당 비트 깊이 차이값은 해당 처리 유닛 레벨에 공통적으로 적용된다.In the present invention, the bit depth difference value per PCM sample may be transmitted at the processing unit level such as CU, PU, TU, and the like. The bit depth difference value per PCM sample can be combined with the bit depth reference value per PCM sample to indicate the bit depth value per actual PCM sample. The bit depth difference value per PCM sample transmitted at the processing unit level is commonly applied to the corresponding processing unit level.

표 1에서는 루마 성분에 관해서만 설명하고 있으나, 상술한 바와 같이 본 발명은 크로마 성분에도 동일하게 적용될 수 있다. 따라서, 크로마 성분에 대하여 SPS 또는 PPS 레벨에서 전송되는 PCM 샘플당 비트 깊이 기준값은 pcm_bit_depth_chroma 또는 pcm_bit_depth_cr/pcm_bit_depth_cb가 될 수 있다. 슬라이스 헤더 혹은 처리 유닛 레벨에서 전송되는 PCM 샘플당 비트 깊이 차이값은 pcm_bit_depth_delta_chroma 또는 pcm_bit_depth_delta_cr/pcm_bit_depth_delta_cb 가 될 수 있다.Although Table 1 describes only the luma component, as described above, the present invention can be similarly applied to the chroma component. Thus, the bit depth reference value per PCM sample transmitted at the SPS or PPS level for the chroma component may be pcm_bit_depth_chroma or pcm_bit_depth_cr / pcm_bit_depth_cb. The bit depth difference value per PCM sample transmitted at the slice header or processing unit level may be pcm_bit_depth_delta_chroma or pcm_bit_depth_delta_cr / pcm_bit_depth_delta_cb.

표 1과 같은 PCM 샘플당 비트 깊이 기준값을 시그널링할 때, 이미 인코딩된 샘플당 비트 깊이 정보를 이용하여 시그널링 비트 수를 줄일 수도 있다. When signaling the bit depth reference value per PCM sample as shown in Table 1, it is also possible to reduce the number of signaling bits using already encoded bit depth information per sample.

예컨대, SPS의 정보를 통해 샘플당 비트 깊이 값이 bit_depth_luma_minus8로 전송되는 경우를 가정하자. 이 경우에는, PCM 샘플당 비트 깊이 기준값을 표 1과 같이 직접 시그널링하는 대신, 아래 표 2와 같이 이미 시그널링된 샘플당 비트 깊이와의 차이값을 시그널링할 수도 있다.For example, suppose that the bit depth per sample is transmitted as bit_depth_luma_minus8 through the SPS information. In this case, instead of directly signaling the bit depth reference value per PCM sample as shown in Table 1, it is also possible to signal a difference value from the already signaled bit depth per sample as shown in Table 2 below.

<표 2><Table 2>

Figure pat00002
Figure pat00002

PCM 샘플당 비트 깊이에 관한 정보는 대상 블록에 PCM 모드가 적용되는 경우에만 시그널링될 수 있다. 예를 들어, 인코딩 장치는 표 3의 예와 같이, 현재 블록의 예측 모드가 인트라 예측 모드로서 PCM 모드가 적용되는 경우에, PCM 샘플당 비트 깊이 기준값(pcm_bit_depth_luma, pcm_bit_depth_cr, pcm_bit_depth_cbluma)을 전송할 수 있다.Information about the bit depth per PCM sample can only be signaled when the PCM mode is applied to the target block. For example, the encoding apparatus can transmit the per-PCM bit-per-sample depth reference values (pcm_bit_depth_luma, pcm_bit_depth_cr, pcm_bit_depth_cbluma) when the prediction mode of the current block is the intra prediction mode and the PCM mode is applied.

<표 3><Table 3>

Figure pat00003
Figure pat00003

이때, PCM 샘플당 비트 깊이 값은 PCM 샘플당 비트 깊이 차이값(pcm_bit_depth_delta_luma, pcm_bit_depth_delta_cr, pcm_bit_depth_delta_cb)을 통해서 표 4의 예와 같이 전송될 수 있다.At this time, the bit depth value per PCM sample can be transmitted through the bit depth difference value (pcm_bit_depth_delta_luma, pcm_bit_depth_delta_cr, pcm_bit_depth_delta_cb) per PCM sample as shown in Table 4.

<표 4><Table 4>

Figure pat00004
Figure pat00004

한편, 상위 레벨의 PCM 샘플당 비트 깊이 정보와의 차이값을 전송하는 대신, 이미 PCM 모드로 인코딩된 주변 블록의 PCM 샘플당 비트 깊이값을 이용하여 현재 블록의 PCM 샘플당 비트 깊이 값을 예측 인코딩 할 수도 있다.On the other hand, instead of transmitting the difference value from the bit depth information per a high-level PCM sample, the bit depth value per PCM sample of the current block is predicted and encoded using the bit depth value per PCM sample of the neighboring block already encoded in the PCM mode You may.

도 6은 본 발명에 따라서 현재 블록의 주변 블록들 중 PCM 모드로 인코딩/디코딩된 블록의 정보를 이용하여 현재 블록의 PCM 샘플당 비트 깊이 값을 예측하는 방법을 개략적으로 설명하는 도면이다.6 is a diagram schematically illustrating a method of predicting a bit depth value per PCM sample of a current block using information of a block encoded / decoded in a PCM mode among neighboring blocks of a current block according to the present invention.

도 6과 같이 CU, PU 또는 TU가 분할되었고, 이미 블록 P1, P2, P3이 PCM 모드로 인코딩/디코딩 되었다고 하자. 현재 블록 X 즉, 예측 대상 블록 또는 인코딩/디코딩 대상 블록에 PCM 모드가 적용되는 경우에, 현재 블록 X의 PCM 샘플당 비트 깊이를 블록 P1, P2, P3 중 적4어도 하나의 PCM 샘플당 비트 깊이 값을 이용하여 예측할 수 있다. 따라서, 인코딩 장치는 현재 블록에 대한 PCM 샘플당 비트 깊이 값과 상기 예측값의 차이값만을 시그널링할 수 있다. 디코딩 장치는 현재 블록에 대한 PCM 샘플당 비트 깊이 값과 상기 예측값의 차이값을 수신하고, 예측값에 상기 차이값을 더하여 현재 블록에 대한 PCM 샘플당 비트 깊이 값을 도출할 수 있다.Assume that CU, PU, or TU are divided as shown in FIG. 6 and blocks P1, P2, and P3 are already encoded / decoded in PCM mode. When the PCM mode is applied to the current block X, that is, the prediction target block or the encoding / decoding target block, the bit depth per PCM sample of the current block X is set to one bit depth per one PCM sample Can be predicted using a value. Therefore, the encoding apparatus can signal only the difference value between the bit depth per PCM sample and the predicted value for the current block. The decoding apparatus can receive the difference value between the bit depth per PCM sample and the predicted value for the current block and add the difference value to the predicted value to derive the bit depth per PCM sample for the current block.

예컨대, 도 6에서 이미 PCM 모드로 코딩된 블록들 중에서 코딩 순서상 현재 블록과 가장 가까운 블록을 이용하여 현재 블록의 PCM 샘플당 비트 깊이를 예측할 수 있다. 따라서, 인코딩 장치에서는 이미 PCM 모드로 인코딩 되었고, 인코딩 순서상 현재 블록과 가장 가까운 블록을 이용하여 현재 블록의 PCM 샘플당 비트 깊이를 예측할 수 있고, 디코딩 장치에서는 이미 PCM 모드로 디코딩 되었고, 디코딩 순서상 현재 블록과 가장 가까운 블록을 이용하여 현재 블록의 PCM 샘플당 비트 깊이를 예측 할 수 있다.For example, in FIG. 6, the bit depth per PCM sample of the current block can be predicted using the block closest to the current block in the coding order among the blocks already coded in the PCM mode. Therefore, in the encoding apparatus, the bit depth per PCM sample of the current block can be predicted using a block that is already encoded in the PCM mode and is the closest to the current block in the encoding order. In the decoding apparatus, The bit depth per PCM sample of the current block can be predicted using the block closest to the current block.

구체적으로, 인코딩 또는 디코딩 순서가 LCU 단위로 래스터 스캔의 순서이며, LCU 내에서는 깊이 우선 스캔이라면, 도 6에서 현재 블록 X의 PCM 샘플당 비트 깊이 값은 P3 블록의 PCM 샘플당 비트 깊이를 기반으로 예측될 수 있다.In particular, if the encoding or decoding order is a raster scan order in LCU and depth-first scans within the LCU, then the bit depth value per PCM sample of current block X in FIG. 6 is based on the bit depth per PCM sample of P3 block Can be predicted.

즉, P2 블록에 적용된 PCM 샘플당 비트 깊이 값을 현재 블록 X에 대한 PCM 샘플당 비트 깊이 예측 값으로 할 수 있다. 인코딩 장치는 P2 블록에 적용된 PCM 샘플당 비트 깊이 값과 현재 블록의 PCM 샘플당 비트 깊이 값의 차이를 시그널링 할 수 있다. 디코딩 장치는 P2 블록에 적용된 PCM 샘플당 깊이 값을 현재 블록의 PCM 샘플당 비트 깊이 예측 값으로 하고, 인코딩 장치로부터 수신한 PCM 샘플당 비트 깊이의 차이값을 더해서 현재 블록에 대한 PCM 샘플당 비트 깊이 값을 도출할 수 있다. That is, the bit depth value per PCM sample applied to the P2 block can be set as the bit depth predicted value per PCM sample with respect to the current block X. [ The encoding apparatus can signal the difference between the bit depth value per PCM sample applied to the P2 block and the bit depth value per PCM sample of the current block. The decoding device sets the depth value per PCM sample applied to the P2 block as the bit depth prediction value per PCM sample of the current block and adds the difference value of the bit depth per PCM sample received from the encoding device to determine the bit depth per PCM sample Value can be derived.

현재 픽처 혹은 현재 슬라이스에서 현재 블록이 최초로 PCM 모드에 의해 인코딩되거나 디코딩되는 경우(예컨대, 도 6의 P1 블록)에는, 이미 PCM 모드로 인코딩되거나 디코딩된 주변 블록이 없으므로, 앞서 설명한 바와 같이 상위 레벨의 PCM 관련 정보(PCM 샘플당 비트 깊이 기준 값, 슬라이스 헤더의 PCM 샘플당 비트 깊이 값 등)을 일종의 예측 값으로 이용할 수 있다.In the case where the current block in the current picture or the current slice is first encoded or decoded by the PCM mode (for example, P1 block in Fig. 6), since there is no peripheral block already encoded or decoded in the PCM mode, PCM related information (bit depth reference value per PCM sample, bit depth value per PCM sample of slice header, etc.) can be used as a kind of prediction value.

PCM 모드가 적용되는 현재 블록의 PCM 샘플당 비트 깊이 값이 구해지면, 이 비트 깊이를 이용하여 현재 블록의 샘플 값을 복원할 수 있다.When the bit depth per PCM sample of the current block to which the PCM mode is applied is obtained, the sample value of the current block can be recovered using this bit depth.

PCM 샘플 값 복원은 PCM 샘플당 비트 수로 표현된 PCM 샘플 값들을 복원되어야할 샘플당 비트 수에 맞도록 변환하는 과정이다. PCM sample value restoration is a process of converting the PCM sample values expressed in bits per PCM sample to fit the number of bits per sample to be restored.

표 5는 PCM 샘플 값을 복원하는 방법의 일 예를 나타낸 것이다.Table 5 shows an example of a method for restoring PCM sample values.

<표 5><Table 5>

Figure pat00005
Figure pat00005

ReconstructedLumaBlock[x][y]는 현재 블록 위치(x, y)에서의 복원된 루마 신호 값을 나타낸다. 각 신호 값은 BitDepthLuma 만큼의 비트 수로 표현된다.ReconstructedLumaBlock [x] [y] represents the restored luma signal value at the current block position (x, y). Each signal value is represented by a bit number of BitDepthLuma.

PCMSampleLuma[i]는 현재 블록의 래스터 스캔 순서상 i 번째 위치에서의 PCM 루마 샘플 값을 나타낸다. 각 샘플 값은 PCMBitDepthLuma 만큼의 비트 수로 표현된다. 현재 블록에 대한 PCMBitDepthLuma 값은 현재 블록의 각 PCM 루마 샘플 값을 나타내기 위해 이용되는 비트 수이다.PCMSampleLuma [i] represents the PCM luma sample value at the i-th position in the raster scan order of the current block. Each sample value is represented by a number of bits equal to PCMBitDepthLuma. The PCMBitDepthLuma value for the current block is the number of bits used to represent each PCM luma sample value in the current block.

표 5와 같은 변환 과정은 인코딩 장치와 디코딩 장치에서 동일하게 수행될 수 있다. 다만, 인코딩 장치에서는 표 5의 변환 과정에 앞서, 현재 블록의 샘플 값을 PCM 샘플값으로 변환하여 인코딩하는 과정이 추가될 수 있다.The conversion process as shown in Table 5 can be performed in the encoding apparatus and the decoding apparatus in the same manner. However, in the encoding apparatus, a process of converting the sample value of the current block into the PCM sample value and encoding the same before the conversion process of Table 5 may be added.

표 6은 현재 블록의 샘플 값들 PCM 샘플값으로 변환하여 인코딩하는 방법의 일 예를 나타낸 것이다.Table 6 shows an example of a method of converting the sample values of the current block into PCM sample values and encoding them.

<표 6><Table 6>

Figure pat00006
Figure pat00006

표 6의 예에서는 루마 블록의 픽셀 값을 샘플당 비트 깊이 값과 PCM 샘플당 비트 깊이 값의 차로 쉬프트 하여 PCM 샘플 값으로 변환하는 것을 방법을 나타내고 있다.Table 6 shows a method of converting the pixel value of a luma block into a PCM sample value by shifting the difference between the bit depth value per sample and the bit depth value per PCM sample.

표 7은 현재 블록의 샘플 값을 PCM 샘플값으로 변환하여 인코딩하는 방법의 다른 예를 나타낸 것이다. Table 7 shows another example of a method of converting a sample value of a current block into a PCM sample value and encoding the same.

<표 7><Table 7>

Figure pat00007
Figure pat00007

표 7의 예에서는 루마 블록의 픽셀 값을 샘플당 비트 깊이 값과 PCM 샘플당 비트 깊이 값의 차로 쉬프트 할 때, 라운딩 값을 고려하여 PCM 샘플 값으로 변환하는 것을 방법을 나타내고 있다.In the example of Table 7, when shifting the pixel value of the luma block by the difference between the bit depth value per sample and the bit depth per PCM sample, the rounding value is taken into consideration and converted to the PCM sample value.

한편, 상술한 바와 같이, 인코딩 장치와 디코딩 장치는 QP와 PCM 샘플당 비트 깊이 정보를 매핑해서 샘플의 비트량을 제어하는 방법을 사용할 수도 있다.Meanwhile, as described above, the encoding apparatus and the decoding apparatus may use a method of controlling the bit amount of a sample by mapping QP and bit depth information per PCM sample.

일반적인 비트율 제어 방법에 의하면, QP 값을 제어함으로써 샘플의 발생 비트량을 제어한다. 따라서, QP와 PCM 샘플 비트 깊이 정보 사이의 매핑 관계를 도입하면, QP를 할당하고 시그널링함으로써 PCM 모드 블록에 대한 발생 비트량도 제어할 수 있다. 또한, PCM 샘플당 비트 깊이를 결정하고 대응하는 QP를 할당하여 해당 QP를 통해 PCM 샘플당 비트 깊이를 제어할 수도 있다.According to a general bit rate control method, the amount of generated bits of a sample is controlled by controlling the QP value. Therefore, by introducing the mapping relationship between QP and PCM sample bit depth information, the amount of bits generated for the PCM mode block can also be controlled by allocating and signaling QP. It is also possible to determine the bit depth per PCM sample and assign a corresponding QP to control the bit depth per PCM sample through the QP.

QP와 PCM 샘플당 비트 깊이 사이의 매핑 관계는 매핑 테이블을 이용하여 정의할 수 있다.The mapping relationship between QP and bit depth per PCM sample can be defined using a mapping table.

표 8은 QP와 PCM 샘플당 비트 깊이와의 매핑 관계를 나타내는 매핑 테이블의 일 예이다.Table 8 is an example of a mapping table indicating a mapping relationship between QP and bit depth per PCM sample.

<표 8><Table 8>

Figure pat00008
Figure pat00008

표 8에 나타난 것과 같이, QP와 비트 깊이 사이의 매핑 관계는 1 대 1뿐만 아니라, 다수 대 1, 1 대 다수, 다수 대 다수일 수 있다. 주어진 QP에 대하여, 대응하는 PCM 샘플당 비트 깊이를 이용하고자 하는 경우에, 대응하는 PCM 샘플당 비트 깊이가 다수 존재한다면, 인코딩 장치는 어떤 PCM 샘플당 비트 깊이를 사용할 것인지를 추가적으로 시그널링할 수 있다. 혹은 주어진 PCM 샘플당 비트 깊이에 대응하는 QP를 이용하고자 하는 경우에, 대응하는 QP가 여러 개라면, 마찬가지로 인코딩 장치는 어떤 QP를 이용할 것인지를 추가로 시그널링 할 수도 있다. As shown in Table 8, the mapping relationship between QP and bit depth may be one to one as well as many to one, one to many, many to many. For a given QP, if the corresponding bit depth per PCM sample is desired to be used, the encoding device may additionally signal which bit depth per PCM sample to use if there are many bit depths per corresponding PCM sample. Or if it is desired to use a QP corresponding to a bit depth per given PCM sample, if the corresponding QP is several, then the encoding device may further signal which QP it will use.

QP와 PCM 샘플당 비트 깊이와의 매핑 관계는 매핑 테이블이 아닌 계산식을 이용하여 정의할 수도 있다.The mapping relationship between QP and bit depth per PCM sample can be defined using a calculation formula rather than a mapping table.

수식 1은 QP와 PCM 샘플당 비트 깊이와의 매핑 관계를 나타내는 식의 일 예이다.Equation 1 is an example of an equation expressing a mapping relationship between QP and bit depth per PCM sample.

<수식 1>&Lt; Formula 1 >

PCMSampleBitDepth = MAX(8-Max(QP-13,0)/6, 3)PCMSampleBitDepth = MAX (8-Max (QP-13,0) / 6, 3)

QP와 PCM 샘플당 비트 깊이 값 사이의 매핑 관계가 미리 설정되어 있는 경우에, 인코딩 장치는 PCM 샘플당 비트 깊이 값 또는 QP 값을 매번 시그널링할 필요가 없다. 디코딩 장치는 시그널링된 QP 값을 기반으로 PCM 샘플당 비트 깊이 값을 도출하거나 시그널링된 PCM 샘플당 비트 깊이 값을 기반으로 QP 값을 도출할 수 있다. If the mapping relationship between the QP and the PCM sample bit depth value is preset, the encoding apparatus does not need to signal the bit depth value or QP value per PCM sample every time. The decoding device may derive the bit depth value per PCM sample based on the signaled QP value or derive the QP value based on the bit depth value per signaled PCM sample.

QP와 PCM 샘플당 비트 깊이 값 사이의 매핑 관계는 인코딩 장치와 디코딩 장치 사이에 미리 동일하게 설정되어 있을 수 있다. The mapping relationship between the QP and the bit depth value per PCM sample may be set in advance between the encoding apparatus and the decoding apparatus in advance.

혹은, 인코딩 장치가 QP와 PCM 샘플당 비트 깊이 값 사이의 매핑 관계를 설정하는데 필요한 정보, 예컨대, 매핑 테이블 또는 매핑 식의 파라미터들을 시퀀스 파라미터 셋, 픽처 파라미터 셋, 슬라이스 파라미터 셋 등을 통해서 별도로 전송할 수도 있다. Alternatively, the encoding apparatus may separately transmit information necessary for setting a mapping relationship between the QP and the PCM sample bit depth value, for example, a mapping table or a mapping type parameter through a sequence parameter set, a picture parameter set, a slice parameter set, have.

또한, QP와 PCM 샘플당 비트 깊이 값 사이의 매핑 관계가 설정된다고 할 때, QP 값을 이용하여 구한 PCM 샘플당 비트 깊이 값을 현재 블록에 대한 PCM 샘플당 비트 깊이 예측값으로 하고, 시퀀스 파라미터 셋, 픽처 파라미터 셋, 슬라이스 헤더, 혹은 처리 유닛 레벨에서, PCM 모드가 적용된 현재 블록의 PCM 샘플당 비트 깊이 값과 예측값의 차이 값만을 전송할 수도 있다.If a mapping relationship between QP and bit depth per PCM sample is set, the bit depth per PCM sample obtained using the QP value is set as a bit depth prediction value per PCM sample for the current block, and a sequence parameter set, At the picture parameter set, slice header, or processing unit level, only the difference value between the bit depth value and the predicted value per PCM sample of the current block to which the PCM mode is applied may be transmitted.

도 7은 본 발명에 따른 디코딩 장치에서 PCM 모드가 적용된 블록을 복원하는 방법을 개략적으로 설명하는 플로우 차트이다.7 is a flowchart schematically illustrating a method of restoring a block to which a PCM mode is applied in a decoding apparatus according to the present invention.

도 7을 참조하면, 디코딩 장치는 인코딩 장치로부터 PCM 샘플당 비트 깊이 값에 관한 정보를 수신한다(S710). Referring to FIG. 7, the decoding apparatus receives information on the bit depth value per PCM sample from the encoding apparatus (S710).

디코딩 장치가 수신하는 PCM 샘플당 비트 깊이 값에 관한 정보는 PCM 샘플당 비트 깊이 기준값과 PCM 샘플당 비트 깊이 차이값을 포함한다. PCM 샘플당 비트 깊이 기준값은 SPS 또는 PPS를 통해 전송될 수 있다. PCM 샘플당 비트 깊이 차이값은 처리 유닛 레벨에서 혹은 슬라이스 헤더와 처리 유닛 레벨에서 각각 전송될 수 있다.Information about the bit depth value per PCM sample received by the decoding device includes the bit depth reference value per PCM sample and the bit depth difference value per PCM sample. The bit depth reference value per PCM sample can be transmitted via SPS or PPS. The bit depth difference value per PCM sample can be transmitted at the processing unit level or at the slice header and processing unit level, respectively.

또한, 디코딩 장치가 수신하는 PCM 샘플당 비트 깊이 값에 관한 정보는 현재 블록의 PCM 샘플당 비트 깊이값과 현재 블록의 PCM 샘플당 비트 깊이 예측값과의 차이값일 수도 있다. 현재 블록의 PCM 샘플당 비트 깊이 예측값은 현재 블록의 주변 블록 중 먼저 PCM 모드로 디코딩된 블록의 PCM 샘플당 비트 깊이 값이다. 디코딩 장치는 수신한 차이값을 PCM 샘플당 비트 깊이 예측값과 더하여 현재 블록의 PCM 샘플당 비트 깊이값을 도출할 수 있다. 주변의 PCM 모드로 디코딩된 블록들 중 어느 블록의 PCM 샘플당 비트 깊이값을 예측값으로 사용할 것인지는 미리 설정되어 있을 수도 있고, 인코딩 장치로부터 시그널링될 수도 있다. 예컨대, 현재 픽처 또는 현재 슬라이스에서 가장 먼저 PCM 모드로 디코딩된 블록의 PCM 샘플당 비트 깊이값을 PCM 모드가 적용되는 현재 블록의 PCM 샘플당 비트 깊이 예측 값으로 사용할 수 있다. 혹은, 현재 픽처 또는 현재 슬라이스에서 가장 먼저 PCM 모드로 디코딩된 블록들 중 스캐닝 순서상 혹은 디코딩 순서상 현재 블록에 가장 가까운 블록의 PCM 샘플당 비트 깊이값을 PCM 모드가 적용되는 현재 블록의 PCM 샘플당 비트 깊이 예측 값으로 사용할 수도 있다. The information on the bit depth per PCM sample received by the decoding device may be a difference value between the bit depth per PCM sample of the current block and the bit depth per PCM sample of the current block. The bit depth prediction value per PCM sample of the current block is the bit depth value per PCM sample of the block decoded first in the PCM mode among the neighboring blocks of the current block. The decoding apparatus can derive the bit depth value per PCM sample of the current block by adding the received difference value to the bit depth predicted value per PCM sample. Whether to use a bit depth value per PCM sample of a block decoded in the surrounding PCM mode as a predicted value may be set in advance or may be signaled from the encoding apparatus. For example, the bit depth value per PCM sample of the current picture or the block decoded first in the PCM mode in the current slice can be used as the bit depth prediction value per PCM sample of the current block to which the PCM mode is applied. Alternatively, the bit depth per PCM sample of the block closest to the current block in the scanning order or decoding order among the blocks decoded to the PCM mode first in the current picture or the current slice is set to a value per PCM sample of the current block to which the PCM mode is applied It can also be used as a bit depth prediction value.

또한, 디코딩 장치가 수신하는 PCM 샘플당 비트 깊이 값은 현재 블록에 대한 PCM 샘플당 비트 깊이에 매핑되는 QP 값을 포함할 수도 있다. The bit depth value per PCM sample received by the decoding device may also include a QP value that is mapped to the bit depth per PCM sample for the current block.

디코딩 장치는 현재 블록의 PCM 샘플당 비트 깊이 값을 결정할 수 있다(S720). 디코딩 장치는 상술한 바와 같이 수신한 정보들을 기반으로 현재 블록의 PCM 샘플당 비트 깊이를 결정할 수 있다. The decoding apparatus can determine the bit depth value per PCM sample of the current block (S720). The decoding apparatus can determine the bit depth per PCM sample of the current block based on the received information as described above.

예컨대, PCM 샘플당 비트 깊이 기준값과 PCM 샘플당 비트 깊이 차이값을 수신한 경우에, 디코딩 장치는, PCM 샘플당 비트 깊이 기준값과 PCM 샘플당 비트 깊이 차이값을 더해서, 현재 블록에 대한 PCM 샘플당 비트 깊이를 도출할 수 있다.For example, in the case of receiving the bit depth reference value per PCM sample and the bit depth difference value per PCM sample, the decoding apparatus adds the bit depth reference value per PCM sample and the bit depth difference per PCM sample, The bit depth can be derived.

현재 블록의 PCM 샘플당 비트 깊이값과 현재 블록의 PCM 샘플당 비트 깊이 예측값과의 차이값을 수신한 경우에, 디코딩 장치는 현재 블록의 PCM 샘플당 비트 깊이값과 현재 블록의 PCM 샘플당 비트 깊이 예측값과의 차이값을 더하여 현재 블록에 대한 PCM 샘플당 비트 깊이를 도출할 수 있다.When receiving the difference value between the bit depth value per PCM sample of the current block and the bit depth per PCM sample of the current block, the decoding apparatus calculates the bit depth value per PCM sample of the current block and the bit depth per PCM sample of the current block The bit depth per PCM sample for the current block can be derived by adding the difference from the predicted value.

현재 블록에 대한 PCM 샘플당 비트 깊이에 매핑되는 QP 값을 수신한 경우에, 디코딩 장치는 수신한 QP 값에 기반해서 현재 블록의 PCM 샘플당 비트 깊이를 도출할 수 있다.When a QP value mapped to the bit depth per PCM sample for the current block is received, the decoding device can derive the bit depth per PCM sample of the current block based on the received QP value.

디코딩 장치는 현재 블록의 PCM 샘플당 비트 깊이를 기반으로 현재 블록을 복원할 수 있다(S730). PCM 샘플값을 현재 블록의 샘플 값으로 변환하는 방법으로서, 표 6 또는 표 7의 예에서 사용된 변환의 역변환을 이용할 수 있다.The decoding apparatus can restore the current block based on the bit depth per PCM sample of the current block (S730). As a method of converting the PCM sample values into the sample values of the current block, an inverse transformation of the transformation used in the example of Table 6 or Table 7 can be used.

도 7의 예에서는 설명의 편의를 위해, 각 단계를 디코딩 장치가 수행하는 것으로 설명하였으나, 본 발명은 이에 한정되지 않는다. 도 7의 각 단계는, 예컨대 도 2에 도시된 디코딩 장치의 내부 구성 유닛들에 의해 수행될 수도 있다. 예를 들어, PCM 모드가 적용된 경우에 S710 단계 및 S720 단계는 엔트로피 디코딩부에서 수행될 수 있고, S730 단계는 역양자화부에서 수행될 수도 있다. In the example of FIG. 7, for convenience of description, each step is described as being performed by the decoding apparatus, but the present invention is not limited thereto. Each step of Fig. 7 may be performed, for example, by the internal constituent units of the decoding apparatus shown in Fig. For example, if the PCM mode is applied, steps S710 and S720 may be performed in the entropy decoding unit, and step S730 may be performed in the inverse quantization unit.

본 명세서에서 어떤 정보를 시그널링 한다는 것은 인코딩 장치에서 해당 정보를 비트스트림에 삽입하여 디코딩 장치에서 알 수 있도록 한다는 것을 의미하며, 디코딩 장치에서는 비트스트림을 파싱하여 정보를 얻어낸다는 것을 의미한다. Signaling certain information in this specification means that the encoding device inserts the information into the bitstream so that the decoding device can recognize the information, and the decoding device obtains information by parsing the bitstream.

또한, 상술한 예시적인 시스템에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 상술한 실시예들은 다양한 양태의 예시들을 포함한다. 예컨대, 각 실시예의 조합 역시 본 발명의 일 실시예로서 이해되어야 할 것이다.Also, while in the exemplary system described above, methods are described based on a flowchart as a series of steps or blocks, the present invention is not limited to the order of steps, and some steps may be performed in a different order than the steps described above Can occur at the same time. In addition, the above-described embodiments include examples of various aspects. For example, combinations of the embodiments are also to be understood as one embodiment of the present invention.

Claims (13)

PCM 샘플당 비트 깊이 정보를 비트스트림으로부터 획득하는 단계;
상기 획득한 PCM 샘플당 비트 깊이 정보에 기초하여 PCM 샘플당 비트 깊이를 유도하는 단계;
현재 블록에 PCM 모드가 적용되는지 여부를 결정하는 단계; 및
상기 현재 블록에 PCM 모드가 적용되는 것으로 결정된 경우, 상기 PCM 샘플당 비트 깊이에 기초하여 상기 현재 블록을 디코딩하는 단계를 포함하고,
상기 현재 블록을 디코딩하는 단계는,
상기 PCM 샘플당 비트 깊이에 기초하여 양자화 파라미터(QP)를 유도하는 단계; 및
상기 양자화 파라미터에 기초하여 상기 현재 블록을 역양자화하는 단계를 포함하고,
상기 현재 블록에 대한 예측 모드는 인트라 모드이고,
상기 PCM 샘플당 비트 깊이는 상기 PCM 샘플당 비트 깊이 정보가 지시하는 값과 소정의 값을 합산하여 유도되고, 상기 소정의 값은 1인 영상 복호화 방법.
Obtaining bit depth information per PCM sample from a bit stream;
Deriving a bit depth per PCM sample based on the obtained bit depth information per PCM sample;
Determining whether a PCM mode is applied to a current block; And
Decoding the current block based on a bit depth per PCM sample when it is determined that a PCM mode is applied to the current block,
Wherein the decoding of the current block comprises:
Deriving a quantization parameter (QP) based on the bit depth per PCM sample; And
And dequantizing the current block based on the quantization parameter,
Wherein the prediction mode for the current block is an intra mode,
Wherein the bit depth per PCM sample is derived by summing a value indicated by the bit depth information per PCM sample and a predetermined value,
제1항에 있어서,
상기 PCM 샘플당 비트 깊이 정보는 시퀀스 파라미터 셋 또는 픽쳐 파라미터 셋에 포함되는 영상 복호화 방법.
The method according to claim 1,
Wherein the bit depth information per PCM sample is included in a sequence parameter set or a picture parameter set.
제1항에 있어서,
상기 PCM 샘플당 비트 깊이 정보는 루마 신호에 대한 PCM 샘플당 비트 깊이 정보 및 크로마 신호에 대한 PCM 샘플당 비트 깊이 정보를 포함하는 영상 복호화 방법.
The method according to claim 1,
Wherein the bit depth information per PCM sample comprises bit depth information per PCM sample for a luma signal and bit depth information per PCM sample for a chroma signal.
제1항에 있어서,
상기 현재 블록에 PCM 모드가 적용되는지 여부를 결정하는 단계는 비트스트림으로부터 획득된 PCM 모드 적용 정보에 기초하여 수행되는 영상 복호화 방법.
The method according to claim 1,
Wherein the step of determining whether a PCM mode is applied to the current block is performed based on PCM mode adaptation information obtained from a bitstream.
제4항에 있어서,
상기 현재 블록은 CU(Coding Unit), PU(Prediction Unit) 또는 TU(Transform Unit)이고,
상기 PCM 모드 적용 정보는 상기 현재 블록의 유닛 레벨에 포함되는 영상 복호화 방법.
5. The method of claim 4,
The current block is a CU (Coding Unit), a PU (Prediction Unit), or a TU (Transform Unit)
Wherein the PCM mode application information is included in a unit level of the current block.
제4항에 있어서,
상기 PCM 모드 적용 정보는 플래그 정보인 영상 복호화 방법.
5. The method of claim 4,
And the PCM mode application information is flag information.
PCM 샘플당 비트 깊이를 결정하는 단계;
상기 결정한 PCM 샘플당 비트 깊이에 기초하여 PCM 샘플당 비트 깊이 정보를 부호화하는 단계;
현재 블록에 PCM 모드가 적용되는지 여부를 결정하는 단계; 및
상기 현재 블록에 PCM 모드가 적용되는 것으로 결정된 경우, 상기 PCM 샘플당 비트 깊이에 기초하여 상기 현재 블록을 부호화하는 단계를 포함하고,
상기 현재 블록을 부호화하는 단계는,
상기 PCM 샘플당 비트 깊이에 기초하여 양자화 파라미터(QP)를 유도하는 단계; 및
상기 양자화 파라미터에 기초하여 상기 현재 블록을 양자화하는 단계를 포함하고,
상기 현재 블록에 대한 예측 모드는 인트라 모드이고,
상기 PCM 샘플당 비트 깊이 정보는 상기 PCM 샘플당 비트 깊이와 소정의 값과의 차이값으로 부호화되고, 상기 소정의 값은 1인 영상 부호화 방법.
Determining a bit depth per PCM sample;
Encoding bit depth information per PCM sample based on the determined bit depth per PCM sample;
Determining whether a PCM mode is applied to a current block; And
And encoding the current block based on a bit depth per PCM sample when it is determined that a PCM mode is applied to the current block,
Wherein the encoding of the current block comprises:
Deriving a quantization parameter (QP) based on the bit depth per PCM sample; And
And quantizing the current block based on the quantization parameter,
Wherein the prediction mode for the current block is an intra mode,
Wherein the bit depth information per PCM sample is encoded with a difference value between a bit depth per PCM sample and a predetermined value,
제7항에 있어서,
상기 PCM 샘플당 비트 깊이 정보는 시퀀스 파라미터 셋 또는 픽쳐 파라미터 셋에 포함되는 영상 부호화 방법.
8. The method of claim 7,
Wherein the bit depth information per PCM sample is included in a sequence parameter set or a picture parameter set.
제7항에 있어서,
상기 PCM 샘플당 비트 깊이 정보는 루마 신호에 대한 PCM 샘플당 비트 깊이 정보 및 크로마 신호에 대한 PCM 샘플당 비트 깊이 정보를 포함하는 영상 부호화 방법.
8. The method of claim 7,
Wherein the bit depth information per PCM sample includes bit depth information per PCM sample for a luma signal and bit depth information per PCM sample for a chroma signal.
제7항에 있어서,
상기 현재 블록에 PCM 모드가 적용되는지 여부를 지시하는 PCM 모드 적용 정보를 부호화하는 단계를 더 포함하는 영상 부호화 방법.
8. The method of claim 7,
And encoding the PCM mode adaptation information indicating whether the PCM mode is applied to the current block.
제10항에 있어서,
상기 현재 블록은 CU(Coding Unit), PU(Prediction Unit) 또는 TU(Transform Unit)이고,
상기 PCM 모드 적용 정보는 상기 현재 블록의 유닛 레벨에 포함되는 영상 부호화 방법.
11. The method of claim 10,
The current block is a CU (Coding Unit), a PU (Prediction Unit), or a TU (Transform Unit)
Wherein the PCM mode adaptation information is included in a unit level of the current block.
제10항에 있어서,
상기 PCM 모드 적용 정보는 플래그 정보인 영상 부호화 방법.
11. The method of claim 10,
Wherein the PCM mode application information is flag information.
영상 복호화 장치에 의해 수신되고 복호화되어 영상을 복원하는데 사용되는 영상 데이터를 저장하는 컴퓨터 판독가능한 비일시적 기록 매체에 있어서,
상기 영상 데이터는 PCM 샘플당 비트 깊이 정보를 포함하고,
상기 PCM 샘플당 비트 깊이 정보는 PCM 샘플당 비트 깊이를 유도하는데 이용되고,
상기 PCM 샘플당 비트 깊이는 현재 블록에 PCM 모드가 적용되는 것으로 결정된 경우 상기 현재 블록을 디코딩하는데 이용되고,
상기 현재 블록의 디코딩은, 상기 PCM 샘플당 비트 깊이에 기초하여 양자화 파라미터(QP)를 유도하고, 상기 양자화 파라미터에 기초하여 상기 현재 블록을 역양자화하고,
상기 현재 블록에 대한 예측 모드는 인트라 모드이고,
상기 PCM 샘플당 비트 깊이는 상기 PCM 샘플당 비트 깊이 정보가 지시하는 값과 소정의 값을 합산하여 유도되고, 상기 소정의 값은 1인 컴퓨터 판독가능한 비일시적 기록 매체.
A computer-readable non-transitory medium for storing image data received and decoded by an image decoding apparatus and used for reconstructing an image,
Wherein the image data includes bit depth information per PCM sample,
The bit depth information per PCM sample is used to derive the bit depth per PCM sample,
Wherein the bit depth per PCM sample is used to decode the current block if it is determined that a PCM mode is applied to the current block,
The decoding of the current block may include deriving a quantization parameter (QP) based on the bit depth per PCM sample, dequantizing the current block based on the quantization parameter,
Wherein the prediction mode for the current block is an intra mode,
Wherein the bit depth per PCM sample is derived by summing a value indicated by the bit depth information per PCM sample with a predetermined value and wherein the predetermined value is one.
KR1020190080700A 2011-06-17 2019-07-04 Method And Apparatus For Video Encoding And Decoding KR102110228B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020110059293 2011-06-17
KR20110059293 2011-06-17

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020120065076A Division KR101998756B1 (en) 2011-06-17 2012-06-18 Method And Apparatus For Video Encoding And Decoding

Publications (2)

Publication Number Publication Date
KR20190084919A true KR20190084919A (en) 2019-07-17
KR102110228B1 KR102110228B1 (en) 2020-05-13

Family

ID=47906009

Family Applications (5)

Application Number Title Priority Date Filing Date
KR1020120065076A KR101998756B1 (en) 2011-06-17 2012-06-18 Method And Apparatus For Video Encoding And Decoding
KR1020190080699A KR102110227B1 (en) 2011-06-17 2019-07-04 Method And Apparatus For Video Encoding And Decoding
KR1020190080701A KR102110229B1 (en) 2011-06-17 2019-07-04 Method And Apparatus For Video Encoding And Decoding
KR1020190080702A KR102110230B1 (en) 2011-06-17 2019-07-04 Method And Apparatus For Video Encoding And Decoding
KR1020190080700A KR102110228B1 (en) 2011-06-17 2019-07-04 Method And Apparatus For Video Encoding And Decoding

Family Applications Before (4)

Application Number Title Priority Date Filing Date
KR1020120065076A KR101998756B1 (en) 2011-06-17 2012-06-18 Method And Apparatus For Video Encoding And Decoding
KR1020190080699A KR102110227B1 (en) 2011-06-17 2019-07-04 Method And Apparatus For Video Encoding And Decoding
KR1020190080701A KR102110229B1 (en) 2011-06-17 2019-07-04 Method And Apparatus For Video Encoding And Decoding
KR1020190080702A KR102110230B1 (en) 2011-06-17 2019-07-04 Method And Apparatus For Video Encoding And Decoding

Country Status (1)

Country Link
KR (5) KR101998756B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210130148A (en) * 2019-03-19 2021-10-29 인텔 코포레이션 High-level syntax for coding immersive video
WO2020251158A1 (en) * 2019-06-12 2020-12-17 엘지전자 주식회사 Point cloud data transmission device, point cloud data transmission method, point cloud data reception device, and point cloud data reception method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Keiichi Chono, "Proposal of enhanced PCM coding in HEVC", JCTVC-E192-r2, 21 March 2011.* *
Keiichi Chono, "Pulse code modulation mode for HEVC", JCTVC-E057, 16 March 2011.* *

Also Published As

Publication number Publication date
KR102110228B1 (en) 2020-05-13
KR20190084226A (en) 2019-07-16
KR20190084010A (en) 2019-07-15
KR20190084011A (en) 2019-07-15
KR102110229B1 (en) 2020-05-13
KR102110230B1 (en) 2020-05-13
KR102110227B1 (en) 2020-05-13
KR20120139608A (en) 2012-12-27
KR101998756B1 (en) 2019-07-10

Similar Documents

Publication Publication Date Title
KR102313195B1 (en) Methods And Apparatuses For Encoding and Decoding Quantization marix
US11323720B2 (en) Video encoding device, video decoding device, video encoding method, video decoding method, and program using inter prediction
KR102273183B1 (en) Method and apparatus for inter-layer prediction based on temporal sub-layer information
US11582461B2 (en) Video encoding device, video decoding device, video encoding method, video decoding method, and program restricts inter-prediction unit partitions based on coding unit depth
KR102110229B1 (en) Method And Apparatus For Video Encoding And Decoding
US20180302652A1 (en) Bitstream transformation apparatus, bitstream transformation method, distribution system, moving image encoding apparatus, moving image encoding method and computer-readable storage medium
WO2012173449A2 (en) Video encoding and decoding method and apparatus using same

Legal Events

Date Code Title Description
A107 Divisional application of patent
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right