KR101631277B1 - Method and apparatus for encoding/decoding image based on skip mode - Google Patents
Method and apparatus for encoding/decoding image based on skip mode Download PDFInfo
- Publication number
- KR101631277B1 KR101631277B1 KR1020100010481A KR20100010481A KR101631277B1 KR 101631277 B1 KR101631277 B1 KR 101631277B1 KR 1020100010481 A KR1020100010481 A KR 1020100010481A KR 20100010481 A KR20100010481 A KR 20100010481A KR 101631277 B1 KR101631277 B1 KR 101631277B1
- Authority
- KR
- South Korea
- Prior art keywords
- mode
- block
- encoding
- encoded
- current block
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods 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/132—Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods 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/103—Selection of coding mode or of prediction mode
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/17—Methods 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/174—Methods 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 slice, e.g. a line of blocks or a group of blocks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/17—Methods 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/176—Methods 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/30—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability
- H04N19/34—Scalability techniques involving progressive bit-plane based encoding of the enhancement layer, e.g. fine granular scalability [FGS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
Abstract
제1 블록의 픽셀 값과 현재 슬라이스의 제1 블록 이전에 부호화 또는 복호화된 제2 블록의 픽셀 값을 비교하고, 비교 결과에 기초해 제1 블록을 스킵 모드로 부호화 또는 복호화하는 영상 부호화, 복호화 방법 및 장치가 개시된다.A video encoding and decoding method for comparing a pixel value of a first block with a pixel value of a second block encoded or decoded before the first block of the current slice and encoding or decoding the first block in a skip mode based on the comparison result And an apparatus are disclosed.
Description
본 발명은 영상을 부호화, 복호화하는 방법 및 장치에 관한 것으로 보다 상세히는 블록 단위로 영상을 부호화, 복호화하는 방법 및 장치에 관한 것이다. BACKGROUND OF THE
무선 네트워크 기술이 발전하면서, 무선 네트워크를 통한 디바이스 사이의 상호 연결이 이슈가 되고 있다. 많은 기업이 무선 네트워크를 통한 디바이스 사이의 상호 연결 기술을 확보하기 위해 노력하고 있다. 특히 최근에는 HDMI(High Definition Multimedia Interface)를 대체할 HD 상호 연결 기술에 대한 표준화가 WiHD(Wireless HD)를 통해 진행되고 있다. WiHD에 따르면 TV, 홈시어터, DVD 플레이어, 블루레이 플레이어, 캠코더와 같이 다양한 디바이스들이 무선 네트워크를 통해 상호 연결된다. As wireless network technologies evolve, interconnection between devices over wireless networks is becoming an issue. Many companies are making efforts to secure interconnection technology between devices over wireless networks. Recently, standardization of HD interconnect technology to replace High Definition Multimedia Interface (HDMI) is being conducted through WiHD (Wireless HD). According to WiHD, various devices such as TVs, home theater, DVD players, Blu-ray players and camcorders are interconnected via a wireless network.
본 발명이 해결하고자 하는 기술적 과제는 블록 단위로 영상을 부호화, 복호화하는 방법 및 장치를 제공하는데 있고, 상기 방법을 실행하기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록 매체를 제공하는데 있다.According to an aspect of the present invention, there is provided a method and apparatus for encoding and decoding an image on a block basis, and a computer-readable recording medium having recorded thereon a program for executing the method.
상기 기술적 과제를 해결하기 위한 본 발명의 일 실시예에 따른 영상 부호화 방법은 제1 블록의 픽셀 값과 현재 슬라이스의 상기 제1 블록 이전에 부호화된 제2 블록의 픽셀 값이 동일한지 판단하여 상기 제1 블록을 제1 모드로 부호화할지 결정하는 단계; 및 상기 결정에 기초해 선택적으로 상기 제1 블록을 상기 제1 모드로 부호화하는 단계를 포함하고, 상기 제1 모드는 상기 제1 블록이 상기 제2 블록과 동일하여 상기 제1 모드로 부호화되었음을 나타내는 정보를 상기 제1 블록의 픽셀 값 대신에 부호화하는 모드인 것을 특징으로 한다.According to an aspect of the present invention, there is provided a method of encoding an image, the method comprising: determining whether a pixel value of a first block is equal to a pixel value of a second block encoded before the first block of a current slice; Determining whether to encode one block into a first mode; And selectively encoding the first block in the first mode based on the determination, wherein the first mode is a mode in which the first block is the same as the second block and indicates that the first block is coded in the first mode Information is encoded in place of the pixel value of the first block.
본 발명에 따른 또 다른 실시예에 따르면, 상기 부호화하는 단계는 상기 결정에 기초해 상기 제1 모드, 이산 코사인 변환에 기초해 소정의 블록을 부호화하는 제2 모드 및 픽셀 값들에 대한 복수의 비트 플레인(bit plane)에 기초해 소정의 블록을 부호화하는 제3 모드 중 하나에 따라 상기 제1 블록을 부호화하는 단계를 포함한다.According to another embodiment of the present invention, the encoding step may include a second mode for encoding a predetermined block based on the first mode, a discrete cosine transform based on the determination, and a second mode for encoding a plurality of bit planes and a third mode for encoding a predetermined block based on a bit plane of the first block.
본 발명에 따른 또 다른 실시예에 따르면, 상기 정보는 상기 제1 블록이 상기 제1 모드에 따라 부호화되었음을 나타내는 플래그 정보인 것을 특징으로 한다.According to another embodiment of the present invention, the information is flag information indicating that the first block is coded according to the first mode.
본 발명에 따른 또 다른 실시예에 따르면, 상기 영상 부호화 방법은 상기 현재 슬라이스가 제1 모드에 따라 부호화된 블록을 포함하고 있음을 나타내는 플래그 정보를 부호화하는 단계를 더 포함한다.According to another embodiment of the present invention, the image encoding method further includes encoding flag information indicating that the current slice includes a block encoded according to the first mode.
상기 기술적 과제를 해결하기 위한 본 발명의 일 실시예에 따른 영상 복호화 방법은 제1 블록의 픽셀 값과 현재 슬라이스의 상기 제1 블록 이전에 부호화된 제2 블록의 픽셀 값이 동일하여 상기 제1 블록이 제1 모드로 부호화되었음을 나타내는 정보를 복호화하는 단계; 및 상기 정보에 기초해 선택적으로 상기 제1 모드에 따라 상기 제1 블록을 복호화하는 단계를 포함하고, 상기 제1 모드는 상기 제1 블록이 상기 제2 블록과 동일하여 상기 제1 모드로 부호화되었음을 나타내는 정보를 상기 제1 블록의 픽셀 값 대신에 부호화하는 모드인 것을 특징으로 한다.According to an aspect of the present invention, there is provided a method of decoding an image, the method including decoding a first block of a current block and a second block of the current block, Decoding the information indicating that the first mode is coded; And selectively decoding the first block in accordance with the first mode based on the information, wherein the first mode is one in which the first block is the same as the second block and is coded in the first mode And the information indicating the first block is encoded in place of the pixel value of the first block.
상기 기술적 과제를 해결하기 위한 본 발명의 일 실시예에 따른 영상 부호화 장치는 제1 블록의 픽셀 값과 현재 슬라이스의 상기 제1 블록 이전에 부호화된 제2 블록의 픽셀 값이 동일한지 판단하여 상기 제1 블록을 제1 모드로 부호화할지 결정하는 모드 결정부; 및 상기 결정에 기초해 선택적으로 상기 제1 블록을 상기 제1 모드로 부호화하는 부호화부를 포함하고, 상기 제1 모드는 상기 제1 블록이 상기 제2 블록과 동일하여 상기 제1 모드로 부호화되었음을 나타내는 정보를 상기 제1 블록의 픽셀 값 대신에 부호화하는 모드인 것을 특징으로 한다.According to an aspect of the present invention, there is provided an image encoding apparatus for determining whether a pixel value of a first block is equal to a pixel value of a second block encoded before a first block of a current slice, A mode decision unit for deciding whether to encode one block in the first mode; And an encoding unit for selectively encoding the first block in the first mode based on the determination, wherein the first mode is a mode in which the first block is the same as the second block and indicates that the first block is encoded in the first mode Information is encoded in place of the pixel value of the first block.
상기 기술적 과제를 해결하기 위한 본 발명의 일 실시예에 따른 영상 복호화 장치는 제1 블록의 픽셀 값과 현재 슬라이스의 상기 제1 블록 이전에 부호화된 제2 블록의 픽셀 값이 동일하여 상기 제1 블록이 제1 모드로 부호화되었음을 나타내는 정보를 복호화하는 모드 정보 복호화부; 및 상기 정보에 기초해 선택적으로 상기 제1 모드에 따라 상기 제1 블록을 복호화하는 복호화부를 포함하고, 상기 제1 모드는 상기 제1 블록이 상기 제2 블록과 동일하여 상기 제1 모드로 부호화되었음을 나타내는 정보를 상기 제1 블록의 픽셀 값 대신에 부호화하는 모드인 것을 특징으로 한다.According to an aspect of the present invention, there is provided an apparatus and method for decoding an image, the apparatus comprising: a first block including a first block, a second block, A mode information decoding unit decoding information indicating that the first mode is coded; And a decoding unit for decoding the first block according to the first mode selectively based on the information, wherein the first mode is a mode in which the first block is encoded in the first mode, And the information indicating the first block is encoded in place of the pixel value of the first block.
상기 기술적 과제를 해결하기 위해 본 발명은 상기 영상 부호화 방법 및 영상 복호화 방법을 실행하기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록 매체를 제공한다.According to an aspect of the present invention, there is provided a computer-readable recording medium having recorded thereon a program for executing the image encoding method and the image decoding method.
본 발명에 따르면, 하나의 프레임 안에서 동일한 블록이 반복되는 영상을 보다 효율적으로 부호화, 복호화할 수 있다.According to the present invention, an image in which the same block is repeated in one frame can be more efficiently encoded and decoded.
도 1은 본 발명의 일 실시예에 따른 영상 부호화 장치를 도시한다.
도 2는 본 발명의 일 실시예에 따른 영상 부호화 단위를 도시한다.
도 3은 본 발명의 일 실시예에 따른 스킵 모드를 판단하는 방법을 설명하기 위한 도면이다.
도 4는 본 발명의 또 다른 실시예에 따른 영상 부호화 장치를 도시한다.
도 5는 본 발명의 일 실시예에 따른 내추럴 모드 부호화부를 도시한다.
도 6a는 본 발명의 일 실시예에 따른 그래픽 모드 부호화부를 도시한다.
도 6b는 본 발명의 일 실시예에 따른 비트 플레인 기반 부호화 방법을 도시한다.
도 7은 본 발명의 또 다른 실시예에 따른 영상 부호화 장치를 도시한다.
도 8은 본 발명의 일 실시예에 따른 영상 복호화 장치를 도시한다.
도 9는 본 발명의 또 다른 실시예에 따른 영상 복호화 장치를 도시한다.
도 10은 본 발명의 일 실시예에 따른 영상 부호화 방법을 설명하기 위한 흐름도이다.
도 11은 본 발명의 또 다른 실시예에 따른 영상 부호화 방법을 설명하기 위한 흐름도이다.
도 12는 본 발명의 일 실시예에 따른 영상 복호화 방법을 설명하기 위한 흐름도이다.1 illustrates an image encoding apparatus according to an embodiment of the present invention.
FIG. 2 illustrates an image encoding unit according to an embodiment of the present invention.
3 is a diagram for explaining a method of determining a skip mode according to an embodiment of the present invention.
FIG. 4 illustrates an image encoding apparatus according to another embodiment of the present invention.
FIG. 5 illustrates a natural mode encoding unit according to an embodiment of the present invention.
6A illustrates a graphic mode encoding unit according to an embodiment of the present invention.
FIG. 6B illustrates a bit plane-based encoding method according to an embodiment of the present invention.
FIG. 7 illustrates an image encoding apparatus according to another embodiment of the present invention.
FIG. 8 illustrates an image decoding apparatus according to an embodiment of the present invention.
FIG. 9 illustrates an image decoding apparatus according to another embodiment of the present invention.
10 is a flowchart illustrating an image encoding method according to an embodiment of the present invention.
11 is a flowchart illustrating an image encoding method according to another embodiment of the present invention.
12 is a flowchart illustrating an image decoding method according to an embodiment of the present invention.
이하에서는 도면을 참조하여 본 발명의 실시예들을 상세히 설명한다. Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
도 1은 본 발명의 일 실시예에 따른 영상 부호화 장치를 도시한다. 1 illustrates an image encoding apparatus according to an embodiment of the present invention.
도 1을 참조하면, 본 발명의 일 실시예에 따른 영상 부호화 장치(100)는 모드 결정부(110), 부호화부(120) 및 모드 정보 부호화부(130)를 포함한다. Referring to FIG. 1, an image encoding
모드 결정부(110)는 현재 블록의 부호화에 이용되는 모드를 결정한다. 무선 네트워크를 통한 디바이스들의 상효 연결에 대한 기술들은 무선 네트워크를 통해 HD 이상의 고화질 콘텐트를 송수신하는 것을 목적으로 하고 있다. 다만, 다양한 디바이스 사이의 상호 연결이 가능하게하기 위해 적은 메모리와 낮은 복잡도에 포커스를 맞추어 표준화가 진행 중이다. 따라서, 영상의 부호화에 있어서도 최대한 낮은 복잡도를 추구하고 있는 바, MPEG-1, MPEG-2, MPEG-4 H.264/MPEG-4 AVC(Advanced Video coding)와 같은 종래 기술에 따른 영상 부호화 방법과 달리 압축률을 높이기 위한 복잡한 기법들을 이용하지 않는다. The
그러나, 영상의 픽셀 값들을 전혀 압축하지 않고 전송하는 것은 높은 전송율의 무선 네트워크를 요구하게 되므로, 이 또한 다양한 디바이스 사이의 상호 연결을 방해하는 요소가 될 수 있다. 따라서, 후술하는 스킵 모드(skip mode), 내추럴 모드(natural mode) 및 그래픽 모드(graphic mode)의 세 가지 모드를 이용하여 영상을 부호화, 복호화함으로써 낮은 복잡도와 적정 수준의 압축률을 보장할 수 있다.However, since transmitting pixel values of an image without compressing at all requires a wireless network with a high data rate, this can also be an obstacle to interconnection between various devices. Accordingly, it is possible to guarantee low complexity and an appropriate level of compression rate by encoding and decoding an image using three modes of a skip mode, a natural mode and a graphic mode, which will be described later.
스킵 모드는 현재 블록이 현재 블록에 인접한 블록과 동일한지 여부에 기초해 현재 블록을 부호화하는 모드이고, 내추럴 모드는 현재 블록이 자연 영상에 대한 블록이면, 이산 코사인 변환(DCT : discrete cosine transform) 및 비트 플레인(bit plane) 분할을 이용해 현재 블록을 부호화하는 모드이다. 그래픽 모드는 현재 블록이 문자(text)와 같이 인위적(artificially)으로 생성된 영상에 대한 블록이면, 비트 플레인 분할을 이용해 현재 블록을 부호화하는 모드이다. 스킵 모드, 내추럴 모드 및 그래픽 모드에 대해서는 도 3 내지 5를 참조하여 상세히 후술한다. The skip mode is a mode for encoding a current block based on whether the current block is the same as a block adjacent to the current block. The natural mode is a mode for discrete cosine transform (DCT) and a discrete cosine transform And a current block is encoded using a bit plane division. The graphics mode is a mode for encoding a current block using bit plane division if the current block is a block for an artificially generated image such as text. The skip mode, the natural mode and the graphic mode will be described later in detail with reference to FIGS.
모드 결정부(110)는 전술한 복수의 모드 중 어떤 모드에 따라 현재 블록을 부호화할지 결정한다. 우선, 모드 결정부(110)는 현재 블록이 현재 블록에 인접한 이전에 부호화된 현재 슬라이스의 다른 블록과 동일 또는 유사한지 판단한다. 현재 블록의 픽셀 값과 현재 슬라이스의 이전에 부호화된 블록의 픽셀 값을 비교하여 동일 또는 유사한지 판단한다. 도 2 및 3을 참조하여 상세히 설명한다. The
도 2는 본 발명의 일 실시예에 따른 영상 부호화 단위를 도시한다.FIG. 2 illustrates an image encoding unit according to an embodiment of the present invention.
도 2를 참조하면, 영상 부호화 장치(100)는 슬라이스 단위, 블록 단위, 비트 플레인 단위로 영상을 분할하여 부호화한다. 현재 픽처(210)를 복수의 슬라이스(212 내지 216)로 분할한다. 세로가 N인 복수의 슬라이스(212 내지 216)로 분할할 수 있다. 그런 다음 각각의 슬라이스를 NxN 크기의 블록으로 분할한다. 블록은 다시 최상위 비트에 대한 비트 플레인으로부터 최하위 비트에 대한 비트 플레인까지 복수의 비트 플레인으로 분할될 수 있다. 만약 블록의 픽셀 값 또는 이산 코사인 계수가 M 비트로 표현된다면, 전제 M 개의 비트 플레인으로 분할될 수 있다.Referring to FIG. 2, the image encoding
도 3은 본 발명의 일 실시예에 따른 스킵 모드를 판단하는 방법을 설명하기 위한 도면이다.3 is a diagram for explaining a method of determining a skip mode according to an embodiment of the present invention.
도 3을 참조하면, 도 2와 관련하여 전술한 바와 같이 현재 픽처(310)는 복수의 슬라이스로 분할될 수 있다. 영상 부호화 장치(100)가 도 3에 도시된 슬라이스(320)를 부호화하는 경우를 예로 들어 설명한다. Referring to FIG. 3, the
현재 슬라이스(320)의 현재 블록(322)을 부호화하기 위해 영상 부호화 장치(100)의 모드 결정부(110)는 현재 블록(322)이 현재 블록에 인접한 이전에 부호화된 블록(324)과 동일 또는 유사한지 판단한다. 부호화되는 현재 블록(322)은 공간적으로 인접한 이전에 부호화된 블록과 동일 또는 유사한 확률이 높다. 따라서, 모드 결정부(110)는 현재 블록(322)이 좌측에 인접한 이전에 부호화된 블록(324)과 동일 또는 유사하면, 현재 블록(322)의 부호화 모드를 스킵 모드로 결정할 수 있다. 인접한 블록(324)는 현재 블록의 부호화 바로 직전에 부호화된 블록일 수 있다.The
현재 블록(322)과 인접한 블록(324)이 동일 또는 유사한지 여부에 대한 판단은 다양한 방법으로 수행될 수 있다. 현재 블록(322)과 인접한 블록(324) 사이의 SAD(Sum of Absoulut Difference), MSE(Mean Square Error), SNR(Signal to Noise Ratio), 최대 차이(Max Difference) 등에 기초해 코스트(cost)를 계산하고, 계산된 코스트에 따라 현재 블록(322)과 인접한 블록(324)이 동일 또는 유사한지 판단한다. SAD, MSE, 최대 차이가 '0'에 가까울수록 현재 블록(322)과 인접한 블록(324)이 동일 또는 유사한 것으로 판단할 수 있다.The determination as to whether the
모드 결정부(110)는 현재 블록(322)과 인접한 블록(324)이 완전히 동일한 경우에만 현재 블록(322)의 부호화 모드를 스킵 모드로 결정할 수도 있고, 현재 블록(322)과 유사한 경우에도 현재 블록(322)의 부호화 모드를 스킵 모드로 결정할 수도 있다. 다시 말해, 전술한 SAD, MSE, 최대 차이 등이 '0'일 때만, 현재 블록(322)의 부호화 모드를 스킵모드로 결정할 수도 있고, 소정 임계 값 이하인 때에도 현재 블록(322)과 인접한 블록(324)이 유사한 것으로 판단하여 현재 블록(322)의 부호화 모드를 스킵 모드로 결정할 수도 있다.The
모드 결정부(110)가 현재 블록과 인접한 블록의 동일 또는 유사 여부를 판단한 결과, 현재 블록의 부호화 모드를 스킵 모드가 아닌 것으로 결정하면, 모드 결정부(110)는 다시 현재 블록을 내추럴 모드 및 그래픽 모드 중 어떤 모드로 부호화할지 판단한다. 현재 블록이 자연 연상, 즉 인위적으로 생성되지 않은 영상에 대한 블록인 것으로 판단되면 현재 블록의 부호화 모드를 내추럴 모드로 결정하고, 반대로 현재 블록이 텍스트, 컴퓨터 그래픽과 같이 인위적으로 생성된 영상에 대한 블록인 것으로 판단되면, 현재 블록의 부호화 모드를 그래픽 모드로 결정한다. If the
현재 블록을 내추럴 모드 및 그래픽 모드 중 어떤 모드에 따라 부호화할지 판단하는 기준에는 제한이 없으며, 다양한 알고리즘을 이용해 현재 블록이 인위적으로 생성된 영상에 대한 블록인지 판단할 수 있다. 예를 들어, 인위적인 영상은 특정 영역에 동일한 픽셀 값들이 분포할 확률이 높으므로, 현재 블록의 픽셀 값들을 비교하여 동일한 픽셀 값들이 소정 개수 이상이면, 인위적으로 생성된 영상에 대한 블록인 것으로 판단할 수 있다.There is no limitation on the criterion for determining whether to encode the current block according to the mode of the natural mode or the graphic mode, and it is possible to determine whether the current block is a block for an artificially generated image by using various algorithms. For example, since an artificial image has a high probability that the same pixel values are distributed in a specific region, the pixel values of the current block are compared, and if the same pixel values are equal to or more than a predetermined number, it is determined that the block is an artificially generated image .
또한, 본 발명의 또 다른 실시예에 따르면, 현재 블록을 내추럴 모드 및 그래픽 모드에 따라 각각 부호화한 다음, 부호화 결과를 RD 코스트(Rate Distortion Cost)에 기초해 내추럴 모드 또는 그래픽 모드를 현재 블록의 부호화 모드로 결정할 수 있는데, 이에 대한 상세한 설명은 도 7을 참조하여 후술한다. According to another embodiment of the present invention, the current block is encoded according to the natural mode and the graphic mode, and the encoding result is encoded in the natural mode or the graphics mode on the basis of the RD cost (Rate Distortion Cost) Mode, which will be described later in detail with reference to FIG.
모드 결정부(110)에서 현재 블록의 부호화에 이용될 모드를 결정하면, 부호화부는 모드 결정부(110)에서 결정된 부호화 모드에 따라 현재 블록을 부호화한다. When the
현재 블록이 이전에 부호화된 인접한 블록과 동일 또는 유사하여 현재 블록의 부호화 모드가 스킵 모드로 결정되었다면, 현재 블록의 픽셀 값 대신에 현재 블록이 스킵 모드로 부호화되었음을 나타내는 정보를 부호화한다. 현재 블록이 스킵 모드로 부호화되었음을 나타내는 플래그 정보를 현재 블록의 픽셀 값 대신에 부호화할 수 있다. If the current block is the same as or similar to the previously encoded neighboring block and the encoding mode of the current block is determined to be the skip mode, information indicating that the current block is encoded in the skip mode is encoded instead of the pixel value of the current block. The flag information indicating that the current block is coded in the skip mode can be encoded in place of the pixel value of the current block.
현재 블록의 픽셀 값을 직접 부호화하는 대신에 1 비트의 플래그 정보로 현재 블록을 부호화할 수 있으므로, 영상의 압축률이 향상된다. 또한, 스킵 모드로 현재 블록을 부호화하기 위해 현재 블록 바로 이전에 부호화된 블록만 참조하므로, 낮은 복잡도로 스킵 모드를 구현할 수 있다.The current block can be encoded with 1-bit flag information instead of directly encoding the pixel value of the current block, thereby improving the compression rate of the image. In addition, since the current block is coded in the skip mode, only the block immediately before the current block is referred to, so that the skip mode can be implemented with low complexity.
현재 블록이 이전에 부호화된 인접한 블록과 동일 또는 유사하지 않아 현재 블록의 부호화 모드가 스킵 모드가 아닌 것으로 결정되었다면, 부호화부(130)는 현재 블록을 내추럴 모드 또는 그래픽 모드에 따라 부호화한다. 모드 결정부(110)가 현재 블록의 부호화 모드를 내추럴 모드로 결정하였다면, 내추럴 모드에 따라 현재 블록을 부호화하고, 모드 결정부(110)가 현재 블록의 부호화 모드를 그래픽 모드로 결정하였다면, 그래픽 모드에 따라 부호화한다. 내추럴 모드 및 그래픽 모드에 따른 부호화 방법은 도 4 내지 6을 참조하여 상세히 설명한다. If it is determined that the current block is not the skip mode because the current block is not the same as or similar to the previously encoded neighboring block, the encoding unit 130 encodes the current block according to the natural mode or the graphic mode. If the
도 4는 본 발명의 또 다른 실시예에 따른 영상 부호화 장치를 도시한다. FIG. 4 illustrates an image encoding apparatus according to another embodiment of the present invention.
도 4를 참조하면, 본 발명의 일 실시예에 따른 영상 부호화 장치(400)는 모드 결정부(410), 내추럴 모드 부호화부(420), 그래픽 모드 부호화부(430) 및 모드 정보 부호화부(440)를 포함한다. 모드 결정부(410)는 도 1의 모드 결정부(110)에 대응되며, 내추럴 모드 부호화부(420), 그래픽 모드 부호화부(430) 및 모드 정보 부호화부(440)는 도 1의 부호화부(120)에 대응된다. 4, an
모드 결정부(410)는 현재 블록의 부호화 모드를 결정한다. 스킵 모드, 내추럴 모드 및 그래픽 모드 중 현재 블록의 부호화에 이용되는 모드를 결정할 수 있다.The
모드 결정부(410)가 현재 블록의 부호화 모드를 스킵 모드로 결정하면, 모드 정보 부호화부(440)는 현재 블록이 스킵 모드로 부호화되었음을 나타내는 정보를 부호화한다. 현재 블록의 픽셀 값 대신에 현재 블록이 스킵 모드로 부호화되었음을 나타내는 플래그 정보를 부호화할 수 있다.If the
모드 결정부(410)가 현재 블록의 부호화 모드를 내추럴 모드로 결정하면, 내추럴 모드 부호화부(420)는 현재 블록을 내추럴 모드에 따라 부호화한다. 현재 블록을 이산 코사인 변환하여 이산 코사인 계수들을 생성하고, 생성된 계수들을 복수의 비트 플레인으로 분리하여 각각의 비트 플레인을 비트 플레인 기반(bit plane basis) 부호화 방법을 이용해 부호화한다. 도 5를 참조하여 상세히 설명한다. If the
도 5는 본 발명의 일 실시예에 따른 내추럴 모드 부호화부를 도시한다. FIG. 5 illustrates a natural mode encoding unit according to an embodiment of the present invention.
도 5를 참조하면, 본 발명의 일 실시예에 다른 내추럴 모드 부호화부(420)는 변환부(510), 비트 플레인 선택부(520) 및 비트 플레인 부호화부(530)를 포함한다.5, the natural
변환부(510)는 현재 블록을 이산 코사인 변환(DCT : discrete cosine transform)하여 이산 코사인 변환 계수들을 생성한다. 이산 코사인 변환은 픽셀 도메인의 픽셀 값을 주파수 도메인으로 변환하여 주파수 도메인의 계수들을 생성하는 방법의 예시일 뿐이며, 다른 방법이 현재 블록의 변환에 이용될 수 있음은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 사람은 쉽게 알 수 있다. The
변환부(510)가 현재 블록을 이산 코사인 변환하여 생성된 이산 코사인 변환 계수들 중 DC(direct current) 성분의 계수에 대한 비트열은 그대로 비트스트림에 삽입된다. 그러나, AC(alternating current) 성분의 계수들은 비트 플레인 기반 부호화 방법에 따라 부호화된다. The bit stream for the DC (direct current) coefficient of the discrete cosine transform coefficients generated by the
비트 플레인 선택부(520)는 AC 성분의 계수들을 복수의 비트 플레인으로 분리한다. AC 성분의 계수들의 최상위 비트들로 구성된 비트 플레인으로부터 최하위 비트들로 구성된 비트 플레인까지 복수의 비트플레인으로 분리한다. M 비트의 AC 성분의 계수들을 비트 단위로 분리하여 M 개의 비트 플레인을 생성한다. AC 성분의 계수들에 대한 비트열들의 최상위 비트들로 구성된 제1 비트 플레인을 분리하고, 최상위 비트 다음의 비트들로 구성된 제2 비트 플레인을 분리한다. 비트 플레인의 분리를 최하위 비트까지 반복하여 M 개의 비트 플레인을 분리한다.The
비트 플레인 선택부(520)에서 복수의 비트 플레인을 분리하면, 비트 플레인 부호화부(530)는 생성된 복수의 비트 플레인 각각을 비트 플레인 기반 부호화 방법을 이용해 부호화한다. 비트 플레인을 부호화하는 방법에는 제한이 없으며, 종래 기술에 따른 모든 비트 플레인 기반 부호화 방법에 본 발명에 이용될 수 있다. 또한, 본 발명의 일 실시예에 따르면, 비트 마스크(bit mask)를 이용해 각각의 비트 플레인을 부호화할 수 있다. 각각의 비트 플레인에서 의미있는 비트가 존재하는 영역을 비트 마스트를 이용해 설정하고, 설정된 영역에 대해서만 비트 플레인 기반 부호화를 수행할 수 있다.When the
이상, 도 5와 관련하여 DC 계수 및 AC 계수를 분리하여 별도로 부호화하는 방법에 대해서 설명하였다. 그러나, 도 5와 관련하여 전술한 부호화 방법은 예시적인 것이며, 이산 코사인 변환 및 비트 플레인 기반 부호화 방법을 이용하여 현재 블록을 이용하는 모든 방법이 내추럴 모드 부호화부(420)에 적용될 수 있다. As described above, the method of separating the DC coefficients and the AC coefficients separately and coding them separately has been described with reference to FIG. However, the encoding method described above with reference to FIG. 5 is an exemplary one, and all the methods using the current block using the discrete cosine transform and the bit plane based encoding method can be applied to the natural
다시 도 4를 참조하면, 모드 결정부(410)가 현재 블록의 부호화 모드를 그래픽 모드로 결정하면, 그래픽 모드 부호화부(430)는 현재 블록을 그래픽 모드에 따라 부호화한다. 현재 블록의 픽셀 값을 복수의 비트 플레인으로 분리하여 각각의 비트 플레인을 비트 플레인 기반(bit plane basis) 부호화 방법을 이용해 부호화한다. 도 6a 및 6b를 참조하여 상세히 설명한다. Referring again to FIG. 4, when the
도 6a는 본 발명의 일 실시예에 따른 그래픽 모드 부호화부를 도시한다. 6A illustrates a graphic mode encoding unit according to an embodiment of the present invention.
도 6a를 참조하면, 본 발명의 일 실시예에 따른 그래픽 모드 부호화부(430)는 비트 플레인 선택부(610) 및 비트 플레인 부호화부(620)를 포함한다.Referring to FIG. 6A, the graphic
비트 플레인 선택부(610)는 현재 블록의 픽셀 값들을 복수의 비트 플레인으로 분리한다. P 비트의 픽셀 값들을 비트 단위로 분리하여 픽셀 값의 최상위 비트들로 구성된 비트 플레인으로부터 픽셀 값의 최하위 비트들로 구성된 비트 플레인까지 P 개의 비트 플레인을 생성한다. The
비트 플레인 선택부(610)에서 복수의 비트 플레인을 분리하면, 비트 플레인 부호화부(620)는 생성된 복수의 비트 플레인 각각을 비트 플레인 기반 부호화 방법을 이용해 부호화한다.When the bit
도 6b는 본 발명의 일 실시예에 따른 비트 플레인 기반 부호화 방법을 도시한다.FIG. 6B illustrates a bit plane-based encoding method according to an embodiment of the present invention.
도 6b를 참조하면, 비트 플레인 부호화부(620)는 동일한 비트 값들을 그룹화하여 비트 플레인을 부호화한다. 블록의 크기가 4x4이고, 픽셀 값이 8 비트인 경우를 예로 들어 설명하면, 비트 플레인 부호화부(620)는 먼저 최상위 비트인 비트 7에 대한 비트 플레인을 도 6b에 도시된 바와 같이 부호화한다. 비트 7에 대한 비트 플레인을 ‘0’의 그룹(631)과 ‘1’의 그룹들(632)로 나누어 부호화한다. 최상위 비트 7에 대한 비트 플레인이 동일한 비트를 포함하고 있지 않으므로, 먼저 ‘1’을 부호화하고, 분할 형태를 나타내기 위해 ‘000111111111000’을 부호화한다. Referring to FIG. 6B, the bit
비트 6에 대한 비트 플레인은 비트 7의 그룹들에 기초해 각각의 그룹들이 다시 서로 다른 비트 값에 의해 분할되는지 여부에 따라 부호화된다. 도 6b에 도시된 실시예에서는 ‘0’의 그룹(631) 및 ‘1’의 그룹(632)이 모두 분할되지 않았으므로, ‘0’의 그룹(631)이 분할되지 않았음을 나타내는 ‘00’과 ‘1’의 그룹(632)이 분할되지 않았음을 나타내는 ‘01’을 부호화한다.The bit planes for bit 6 are encoded according to whether groups are again divided by different bit values based on the groups of bits 7. 00 'indicating that the
비트 5에 대한 비트 플레인에서는 비트 6에 대한 비트 플레인의 ‘1’의 그룹(632)이 두 개의 그룹(634 및 644)로 분할된다. 따라서, ‘0’의 그룹이 분할되지 않았음을 나타내는 ‘00’을 먼저 부호화하고, ‘1’의 그룹(632)이 분할되었음을 나타내기 위해 ‘1’을 부호화한다. 그런 다음, ‘1’의 그룹(632)이 분할된 형태를 나타내기 위해 ‘0000011111’을 부호화한다. In the bit plane for bit 5, the
비트 4에 대한 비트 플레인에서는 ‘1’의 그룹(632)이 분할되어 생성된 그룹들(633 및 634) 중 ‘0’의 그룹(633)이 다시 한번 분할된다. 따라서, ‘0’의 그룹(631)이 분할되지 않았음을 나타내기 위해 ‘00’을 먼저 부호화한다. 또한, ‘1’의 그룹(632)이 분할되어 생성된 그룹들(633 및 634) 중 ‘0’의 그룹(633)이 분할되었음을 나타내기 위해 ‘1’을 부호화하고, ‘0’의 그룹(633)의 분할 형태를 나타내기 위해 ‘11100’이 부호화된다. 그런 다음, ‘1’의 그룹(634)은 분할되지 않았음을 나타내기 위해 ‘01’이 부호화된다.In the bit plane for bit 4, the
비트 플레인 부호화부(620)는 전술한 동일한 비트 값을 그룹화하여 생성된 비트 그룹에 기초한 비트 플레인 기반 부호화 방법을 최하위 비트까지 반복 적용하여 각각의 비트 플레인을 부호화한다. The bit-
다시, 도 4를 참조하면, 모드 정보 부호화부(440)는 현재 블록의 부호화에 이용된 모드에 대한 정보를 부호화한다. 모드 결정부(410)가 현재 블록의 부호화 모드를 스킵 모드로 결정하면, 모드 정보 부호화부(440)는 현재 블록이 스킵 모드에 따라 부호화되었음을 나타내는 정보를 부호화한다. 전술한 바와 같이 현재 블록이 스킵 모드에 따라 부호화되었음을 나타내는 플래그 정보를 부호화할 수 있다.Referring again to FIG. 4, the mode
모드 결정부(410)가 현재 블록의 부호화 모드를 내추럴 모드 또는 그래픽 모드로 결정하면, 모드 정보 부호화부(440)는 현재 블록이 내추럴 모드에 따라 부호화되었음을 나타내는 정보 또는 그래픽 모드에 따라 부호화되었음을 나타내는 정보를 부호화할 수 있다. 스킵 모드와 마찬가지로 현재 블록이 내추럴 모드 또는 그래픽 모드에 따라 부호화되었음을 나타내는 플래그 정보를 부호화할 수 있다. If the
또한, 모드 정보 부호화부(440)는 현재 블록을 포함하는 현재 슬라이스가 스킵 모드 또는 내추럴 모드 또는 그래픽 모드에 따라 부호화된 블록을 포함하는지 나타내는 정보를 부호화할 수 있다. 현재 슬라이스에 대한 플래그 정보이므로, 현재 슬라이스의 구문 요소(syntax element)로서 플래그 정보를 부호화할 수 있다.In addition, the mode
도 7은 본 발명의 또 다른 실시예에 따른 영상 부호화 장치를 도시한다. FIG. 7 illustrates an image encoding apparatus according to another embodiment of the present invention.
도 7을 참조하면, 본 발명의 또 다른 실시예에 따른 영상 부호화 장치(700)는 스킵 모드 결정부(710), 내추럴 모드 부호화부(720), 그래픽 모드 부호화부(730), 모드 결정부(740) 및 모드 정보 부호화부(750)를 포함한다. 7, an
스킵 모드 결정부(710) 및 모드 결정부(740)는 도 1의 모드 결정부(110)에 대응되고, 내추럴 모드 부호화부(720), 그래픽 모드 부호화부(730) 및 모드 정보 부호화부(750)는 도 1의 부호화부(120)에 대응된다. The skip
스킵 모드 결정부(710)는 현재 블록을 스킵 모드로 부호화할지 여부를 결정한다. 현재 블록의 픽셀 값과 현재 블록에 인접한 이전에 부호화된 블록의 픽셀 값을 비교하여 현재 블록과 인접한 블록이 동일 또는 유사한 것으로 판단되면 현재 블록의 부호화 모드를 스킵 모드로 결정한다 .The skip
스킵 모드 결정부(710)가 현재 블록의 부호화 모드를 스킵 모드로 결정하면, 모드 정보 부호화부(750)는 현재 블록이 스킵 모드로 부호화되었음을 나타내는 정보를 부호화한다. 전술한 바와 같이 현재 블록이 스킵 모드로 부호화되었음을 나타내는 플래그 정보가 모드 정보 부호화부(750)에서 부호화될 수 있다. When the skip
스킵 모드 결정부(710)가 현재 블록의 부호화 모드를 스킵 모드가 아닌 것으로 결정하면, 내추럴 모드 부호화부(720) 및 그래픽 모드 부호화부(730)는 현재 블록을 내추럴 모드 및 그래픽 모드로 각각 부호화한다. If the skip
모드 결정부(740)는 내추럴 모드 부호화부(720)의 부호화 결과와 그래픽 모드 부호화부(730)의 부호화 결과를 비교하여 현재 블록을 내추럴 모드로 부호화할지 그래픽 모드로 부호화할지 결정한다. The
내추럴 모드로 부호화한 결과와 그래픽 모드로 부호화한 결과에 기초해 RD 코스트를 계산한다. 코스트 = (Rate) + (lambda)x(distortion)에 따라 코스트를 계산하여 코스트가 작은 모드를 현재 블록의 부호화 모드로 결정한다. 'lambda'는 실시예에 따라 다르게 설정될 수 있으며, 'lambda'를 조정하여 내추럴 모드 및 그래픽 모드의 선택 비율을 변경할 수 있다.The RD cost is calculated based on the result of coding in the natural mode and the result of coding in the graphic mode. The cost is calculated according to the cost = (Rate) + (lambda) x (distortion), and the mode with a small cost is determined as the encoding mode of the current block. 'lambda' can be set differently according to the embodiment, and the selection ratio of the natural mode and the graphic mode can be changed by adjusting 'lambda'.
모드 결정부(740)에서 현재 블록의 부호화 모드를 내추럴 모드 또는 그래픽 모드로 결정하면, 모드 정보 부호화부(750)는 결정된 부호화 모드에 대한 정보를 부호화한다. 현재 블록이 내추럴 모드로 부호화되었음을 나타내는 플래그 정보 또는 그래픽 모드로 부호화되었음을 나타내는 플래그 정보를 부호화할 수 있다.When the
또한, 전술한 바와 같이 모드 정보 부호화부(750)는 각각의 블록에 대한 모드 정보 이외에 현재 슬라이스가 스킵 모드 또는 내추럴 모드 또는 그래픽 모드에 따라 부호화된 블록을 포함하는지 나타내는 정보를 부호화할 수 있다.In addition, as described above, the mode
도 8은 본 발명의 일 실시예에 따른 영상 복호화 장치를 도시한다. FIG. 8 illustrates an image decoding apparatus according to an embodiment of the present invention.
도 8을 참조하면, 본 발명의 일 실시예에 따른 영상 복호화 장치(800)는 모드 정보 복호화부(810) 및 복호화부(820)를 포함한다.Referring to FIG. 8, an apparatus 800 for decoding an image according to an embodiment of the present invention includes a mode
모드 정보 복호화부(810)는 비트스트림에 포함되어 있는 현재 블록의 부호화 모드에 대한 정보를 복호화한다. 비트스트림을 파싱하여 현재 블록이 스킵 모드, 내추럴 모드 및 그래픽 모드 중 어떤 모드로 부호화되었는지 나타내는 정보를 복호화한다. The mode
복호화부(820)는 모드 정보 복호화부(810)에서 복호화된 모드 정보에 기초해 현재 블록을 복호화한다. 모드 정보의 복호화 결과 현재 블록이 스킵 모드로 부호화되었다면, 현재 블록과 동일 또는 유사한 블록 즉, 인접한 이전에 복호화된 블록에 기초해 현재 블록을 복원한다. 인접한 블록은 현재 블록의 복호화 바로 이전에 복호화된 블록일 수 있다. 현재 블록이 내추럴 모드 또는 그래픽 모드로 부호화되었다면, 도 5 및 도 6a와 관련하여 전술한 부호화 방법들을 역으로 수행하여 현재 블록을 복원한다. 도 9를 참조하여 상세히 설명한다. The
도 9는 본 발명의 또 다른 실시예에 따른 영상 복호화 장치를 도시한다. FIG. 9 illustrates an image decoding apparatus according to another embodiment of the present invention.
도 9를 참조하면 본 발명의 또 다른 실시예에 따른 영상 복호화 장치(900)는 모드 정보 복호화부(910), 스킵 모드 복호화부(920), 내추럴 모드 복호화부(930) 및 그래픽 모드 복호화부(940)를 포함한다. 모드 정보 복호화부(910)는 도 8의 모드 정보 복호화부(810)에 대응되고, 스킵 모드 복호화부(920), 내추럴 모드 복호화부(930) 및 그래픽 모드 복호화부(940)는 도 8의 복호화부(820)에 대응된다. 9, the image decoding apparatus 900 according to another exemplary embodiment of the present invention includes a mode
모드 정보 복호화부(910)는 도 9의 모드 정보 복호화부(810)와 같이 비트스트림에 포함되어 있는 현재 블록의 부호화 모드에 대한 정보를 복호화한다.The mode
스킵 모드 복호화부(920)는 복호화된 모드 정보가 스킵 모드에 대한 정보이면, 현재 블록을 스킵 모드에 따라 복호화한다. 현재 블록이 인접한 이전에 복호화된 블록에 기초해 현재 블록을 복원한다. 인접한 블록을 그대로 복사함으로써 현재 블록을 복원할 수 있다.If the decoded mode information is information on the skip mode, the skip
내추럴 모드 복호화부(930)는 복호화된 모드 정보가 내추럴 모드에 대한 정보이면, 현재 블록을 내추럴 모드에 따라 복호화한다. 내추럴 모드 복호화부(930)는 우선 비트스트림에 포함되어 있는 이산 코사인 계수 중 DC 성분의 계수를 파싱한다. 그런 다음, 비트 플레인 기반 복호화 방법을 이용해 이산 코사인 계수 중 AC 성분의 계수들에 대한 복수의 비트 플레인을 복원한다. 복원된 복수의 비트 플레인을 결합하여 AC 성분의 계수들이 복원되면, 복원된 AC 성분의 계수들 및 파싱된 DC 성분의 계수에 기초해 역이산 코사인 변환을 수행한다. 역이산 코사인 변환의 결과 현재 블록이 복원된다.If the decoded mode information is information on the natural mode, the natural
그래픽 모드 복호화부(940)는 복호화된 모드 정보가 그래픽 모드에 대한 정보이면, 현재 블록을 그래픽 모드에 따라 복호화한다. 비트 플레인 기반 복호화 방법을 이용해 현재 블록의 픽셀 값들에 대한 복수의 비트 플레인을 복원한다. 그런 다음, 복원된 복수의 비트 플레인을 결합하여 현재 블록의 픽셀 값들을 복원한다. If the decoded mode information is information on the graphics mode, the graphics
도 10은 본 발명의 일 실시예에 따른 영상 부호화 방법을 설명하기 위한 흐름도이다.10 is a flowchart illustrating an image encoding method according to an embodiment of the present invention.
도 10을 참조하면, 단계 1010에서 본 발명의 일 실시예에 따른 영상 부호화 장치(100 또는 400)는 현재 블록을 스킵 모드로 부호화할지 결정한다. 스킵 모드는 현재 블록과 인접한 블록이 동일 또는 유사하면, 현재 블록의 픽셀 값 대신에 현재 블록이 스킵 모드로 부호화되었음을 나타내는 정보를 부호화하는 모드이다.Referring to FIG. 10, in
단계 1010에서 현재 블록의 부호화 모드가 스킵 모드가 아닌 것으로 결정되면, 단계 1020에서 영상 부호화 장치(100 또는 400)는 현재 블록을 내추럴 모드로 부호화할지 그래픽 모드로 부호화할지 결정한다. 도 1의 모드 결정부(110)와 관련하여 전술한 바와 같이 현재 블록이 자연 영상에 대한 블록인지 인위적으로 생성된 영상에 대한 블록인지 판단하여 현재 블록을 내추럴 모드로 부호화할지 그래픽 모드로 부호화할지 결정한다. If it is determined in
단계 1030에서 영상 부호화 장치(100 또는 400)는 현재 블록을 내추럴 모드로 부호화한다. 단계 1020의 판단 결과, 현재 블록이 자연 영상에 대한 블록으로 판단되면, 현재 블록을 내추럴 모드에 따라 부호화한다. 내추럴 모드의 부호화 방법은 도 5와 관련하여 전술하였다. In
단계 1040에서 영상 부호화 장치(100 또는 400)는 현재 블록을 그래픽 모드로 부호화한다. 단계 1020의 판단 결과, 현재 블록이 인위적으로 생성된 영상에 대한 블록으로 판단되면, 현재 블록을 그래픽 모드에 따라 부호화한다. 그래픽 모드의 부호화 방법은 도 6a와 관련하여 전술하였다. In
단계 1050에서 영상 부호화 장치(100 또는 400)는 현재 블록의 부호화에 이용된 부호화 모드에 대한 정보를 부호화한다. 단계 1010에서 현재 블록의 부호화 모드가 스킵 모드로 결정되었으면, 현재 블록의 픽셀 값 대신에 현재 블록이 스킵 모드로 부호화되었음을 나타내는 정보를 부호화한다. 또한, 단계 1010에서 현재 블록의 부호화 모드가 스킵 모드가 아닌 것으로 결정되어 단계 1030 내지 1040에서 내추럴 모드 또는 그래픽 모드에 따라 현재 블록을 부호화되었으면, 현재 블록이 내추럴 모드에 따라 부호화되었음을 나타내는 정보 또는 그래픽 모드에 따라 부호화되었음을 나타내는 정보를 부호화한다. In
도 11은 본 발명의 또 다른 실시예에 따른 영상 부호화 방법을 설명하기 위한 흐름도이다. 11 is a flowchart illustrating an image encoding method according to another embodiment of the present invention.
도 11을 참조하면, 단계 1110에서 본 발명의 일 실시예에 따른 영상 부호화 장치(100 또는 700)는 현재 블록을 스킵 모드로 부호화할지 결정한다. 단계 1110은 도 10의 단계 1010에 대응된다. Referring to FIG. 11, in
단계 1110에서 현재 블록의 부호화 모드가 스킵 모드가 아닌 것으로 결정되면, 단계 1120 및 1130에서 영상 부호화 장치(100 또는 700)는 현재 블록을 내추럴 모드 및 그래픽 모드에 따라 각각 부호화한다. If it is determined in
단계 1140에서 영상 부호화 장치(100 또는 700)는 현재 블록을 내추럴 모드로 부호화한 결과 및 그래픽 모드로 부호화한 결과를 비교하여 현재 블록의 부호화 모드를 결정한다. 내추럴 모드로 부호화한 결과 및 그래픽 모드로 부호화한 결과에 기초해 RD 코스트(Rate Distortion Cost)를 계산한다. 코스트 계산 결과 코스트가 작은 모드를 현재 블록의 부호화 모드로 결정한다. In
단계 1150에서 영상 부호화 장치(100 또는 700)는 현재 블록의 부호화에 이용된 부호화 모드에 대한 정보를 부호화한다. 단계 1110에서 현재 블록의 부호화 모드가 스킵 모드로 결정되었으면, 현재 블록의 픽셀 값 대신에 현재 블록이 스킵 모드로 부호화되었음을 나타내는 정보를 부호화한다. 또한, 단계 1110에서 현재 블록의 부호화 모드가 스킵 모드가 아닌 것으로 결정되어, 단계 1140에서 현재 블록의 부호화 모드가 내추럴 모드 또는 그래픽 모드로 결정되었으면, 현재 블록이 내추럴 모드에 따라 부호화되었음을 나타내는 정보 또는 그래픽 모드에 따라 부호화되었음을 나타내는 정보를 부호화한다. In
도 12는 본 발명의 일 실시예에 따른 영상 복호화 방법을 설명하기 위한 흐름도이다.12 is a flowchart illustrating an image decoding method according to an embodiment of the present invention.
도 12를 참조하면, 단계 1210에서 본 발명의 일 실시예에 따른 영상 복호화 장치(800 또는 900)는 비트스트림에 포함되어 있는 현재 블록의 부호화 모드에 대한 정보를 복호화한다. 비트스트림을 파싱하여 현재 블록이 스킵 모드, 내추럴 모드 및 그래픽 모드 중 어떤 모드로 부호화되었는지 나타내는 부호화 모드에 대한 정보를 복호화한다.Referring to FIG. 12, in
단계 1220에서 영상 복호화 장치(800 또는 900)는 복호화된 모드 정보에 기초해 현재 블록을 복호화한다. 단계 1210에서 모드 정보의 복호화 결과 현재 블록이 스킵 모드로 부호화되었다면, 현재 블록과 동일 또는 유사한 블록 즉, 인접한 이전에 복호화된 블록에 기초해 현재 블록을 복원한다. 현재 블록이 내추럴 모드 또는 그래픽 모드로 부호화되었다면, 도 5 및 도 6a와 관련하여 전술한 부호화 방법들을 역으로 수행하여 현재 블록을 복원한다. In
이상과 같이 본 발명은 비록 한정된 실시예와 도면에 의해 설명되었으나, 본 발명이 상기의 실시예에 한정되는 것은 아니며, 이는 본 발명이 속하는 분야에서 통상의 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다. 따라서, 본 발명의 사상은 아래에 기재된 특허청구범위에 의해서만 파악되어야 하고, 이와 균등하거나 또는 등가적인 변형 모두는 본 발명 사상의 범주에 속한다 할 것이다. 또한, 본 발명에 따른 시스템은 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, Modification is possible. Accordingly, the spirit of the present invention should be understood only in accordance with the following claims, and all of the equivalent or equivalent variations will fall within the scope of the present invention. In addition, the system according to the present invention can be embodied as computer-readable codes on a computer-readable recording medium.
예를 들어, 본 발명의 예시적인 실시예에 따른 영상 부호화 장치 및 영상 복호화 장치는 도 1, 4, 7, 8 및 9에 도시된 바와 같은 장치의 각각의 유닛들에 커플링된 버스, 상기 버스에 결합된 적어도 하나의 프로세서를 포함할 수 있다. 또한, 명령, 수신된 메시지 또는 생성된 메시지를 저장하기 위해 상기 버스에 결합되어, 전술한 바와 같은 명령들을 수행하기 위한 적어도 하나의 프로세서에 커플링된 메모리를 포함할 수 있다. For example, an image encoding apparatus and an image decoding apparatus according to an exemplary embodiment of the present invention includes a bus coupled to each unit of the apparatus as shown in Figs. 1, 4, 7, 8 and 9, Lt; RTI ID = 0.0 > and / or < / RTI > It may also include a memory coupled to the bus for storing instructions, received messages or generated messages and coupled to the at least one processor for performing the instructions as described above.
또한, 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크, 광데이터 저장장치 등이 있으며, 또한 캐리어 웨이브(예를 들어 인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.In addition, the computer-readable recording medium includes all kinds of recording apparatuses in which data that can be read by a computer system is stored. Examples of the recording medium include a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like, and a carrier wave (for example, transmission via the Internet). The computer-readable recording medium may also be distributed over a networked computer system so that computer readable code can be stored and executed in a distributed manner.
Claims (17)
상기 결정에 기초해 선택적으로 상기 제1 블록을 상기 제1 모드로 부호화하는 단계; 및
상기 현재 슬라이스가 상기 제1 모드로 부호화된 블록을 포함하는지 나타내는 1비트의 플래그 정보를 부호화하는 단계를 포함하고,
상기 제1 모드는 상기 제1 블록이 상기 제2 블록과 동일하여 상기 제1 모드로 부호화되었음을 나타내는 정보를 상기 제1 블록의 픽셀 값 대신에 부호화하는 모드인 것을 특징으로 하는 영상 부호화 방법.Determining whether to encode the first block in the first mode by determining whether the pixel value of the first block is the same as the pixel value of the second block encoded before the first block of the current slice;
Selectively encoding the first block into the first mode based on the determination; And
Encoding flag information of 1 bit indicating whether the current slice includes the block encoded in the first mode,
Wherein the first mode is a mode for encoding information indicating that the first block is the same as the second block and is encoded in the first mode instead of the pixel value of the first block.
상기 결정에 기초해 상기 제1 모드, 이산 코사인 변환에 기초해 소정의 블록을 부호화하는 제2 모드 및 픽셀 값들에 대한 복수의 비트 플레인(bit plane)에 기초해 소정의 블록을 부호화하는 제3 모드 중 하나에 따라 상기 제1 블록을 부호화하는 단계를 포함하는 것을 특징으로 하는 영상 부호화 방법.2. The method of claim 1,
A second mode for encoding a predetermined block based on the first mode, the discrete cosine transformation, and a third mode for encoding a predetermined block based on a plurality of bit planes for pixel values based on the determination; And encoding the first block according to one of the first and second blocks.
상기 제1 블록이 상기 제1 모드에 따라 부호화되었음을 나타내는 플래그 정보인 것을 특징으로 하는 영상 부호화 방법.3. The method of claim 2,
And flag information indicating that the first block is coded according to the first mode.
상기 정보에 기초해 선택적으로 상기 제1 모드에 따라 상기 제1 블록을 복호화하는 단계를 포함하고,
상기 제1 모드는 상기 제1 블록의 픽셀 값이 상기 제2 블록의 픽셀값과 동일하여 상기 제1 모드로 부호화되었음을 나타내는 정보를 상기 제1 블록의 픽셀 값 대신에 부호화하는 모드이고,
상기 정보를 복호화하는 단계는, 상기 현재 슬라이스가 상기 제1 모드로 부호화된 블록을 포함하는지 나타내는 1비트의 플래그 정보를 파싱하는 단계를 포함하는 것을 특징으로 하는 영상 복호화 방법.Decoding the information indicating that the first block is coded in the first mode because the pixel value of the first block is the same as the pixel value of the second block encoded before the first block of the current slice; And
And selectively decoding the first block according to the first mode based on the information,
Wherein the first mode is a mode for encoding information indicating that the pixel value of the first block is equal to the pixel value of the second block and is encoded in the first mode instead of the pixel value of the first block,
Wherein the step of decoding the information comprises parsing flag information of one bit indicating whether the current slice includes a block encoded in the first mode.
상기 정보에 기초해 상기 제1 모드, 이산 코사인 변환에 기초해 소정의 블록을 부호화하는 제2 모드 및 픽셀 값들에 대한 복수의 비트 플레인(bit plane)에 기초해 소정의 블록을 부호화하는 제3 모드 중 하나에 따라 상기 제1 블록을 복호화하는 단계를 포함하는 것을 특징으로 하는 영상 복호화 방법.6. The method of claim 5, wherein the decoding comprises:
A second mode for encoding a predetermined block based on the first mode and a discrete cosine transform based on the information, and a third mode for encoding a predetermined block based on a plurality of bit planes for pixel values And decoding the first block according to one of the first and second blocks.
상기 제1 블록이 상기 제1 모드에 따라 부호화되었음을 나타내는 플래그 정보를 파싱하는 단계를 포함하는 것을 특징으로 하는 영상 복호화 방법.7. The method of claim 6, wherein decrypting the information comprises:
And parsing flag information indicating that the first block is coded according to the first mode.
상기 결정에 기초해 선택적으로 상기 제1 블록을 상기 제1 모드로 부호화하는 부호화부를 포함하고,
상기 제1 모드는 상기 제1 블록이 상기 제2 블록과 동일하여 상기 제1 모드로 부호화되었음을 나타내는 정보를 상기 제1 블록의 픽셀 값 대신에 부호화하는 모드이고,
상기 부호화부는, 상기 현재 슬라이스가 상기 제1 모드로 부호화된 블록을 포함하는지 나타내는 1비트의 플래그 정보를 부호화하는 것을 특징으로 하는 영상 부호화 장치.A mode determining unit determining whether to encode the first block in the first mode by determining whether the pixel value of the first block is the same as the pixel value of the second block encoded before the first block of the current slice; And
And an encoding unit for selectively encoding the first block into the first mode based on the determination,
Wherein the first mode is a mode for encoding information indicating that the first block is the same as the second block and is encoded in the first mode instead of the pixel value of the first block,
Wherein the encoding unit encodes 1-bit flag information indicating whether the current slice includes the block encoded in the first mode.
상기 결정에 기초해 상기 제1 모드, 이산 코사인 변환에 기초해 소정의 블록을 부호화하는 제2 모드 및 픽셀 값들에 대한 복수의 비트 플레인(bit plane)에 기초해 소정의 블록을 부호화하는 제3 모드 중 하나에 따라 상기 제1 블록을 부호화하는 것을 특징으로 하는 영상 부호화 장치.The apparatus of claim 9, wherein the encoding unit
A second mode for encoding a predetermined block based on the first mode, the discrete cosine transformation, and a third mode for encoding a predetermined block based on a plurality of bit planes for pixel values based on the determination; And the first block is encoded according to one of the first and second blocks.
상기 제1 블록이 상기 제1 모드에 따라 부호화되었음을 나타내는 플래그 정보를 부호화하는 것을 특징으로 하는 영상 부호화 장치.11. The apparatus of claim 10, wherein the encoding unit
Wherein the encoding unit encodes flag information indicating that the first block is encoded according to the first mode.
상기 정보에 기초해 선택적으로 상기 제1 모드에 따라 상기 제1 블록을 복호화하는 복호화부를 포함하고,
상기 제1 모드는 상기 제1 블록이 상기 제2 블록과 동일하여 상기 제1 모드로 부호화되었음을 나타내는 정보를 상기 제1 블록의 픽셀 값 대신에 부호화하는 모드이고,
상기 복호화부는, 상기 현재 슬라이스가 상기 제1 모드로 부호화된 블록을 포함하는지 나타내는 1비트의 플래그 정보를 파싱하는 것을 특징으로 하는 영상 복호화 장치.A mode information decoding unit decoding the information indicating that the first block is encoded in the first mode because the pixel value of the first block is the same as the pixel value of the second block encoded before the first block of the current slice; And
And a decoding unit that selectively decodes the first block according to the first mode based on the information,
Wherein the first mode is a mode for encoding information indicating that the first block is the same as the second block and is encoded in the first mode instead of the pixel value of the first block,
Wherein the decoding unit parses 1-bit flag information indicating whether the current slice includes the block encoded in the first mode.
상기 정보에 기초해 상기 제1 모드, 이산 코사인 변환에 기초해 소정의 블록을 부호화하는 제2 모드 및 픽셀 값들에 대한 복수의 비트 플레인(bit plane)에 기초해 소정의 블록을 부호화하는 제3 모드 중 하나에 따라 상기 제1 블록을 복호화하는 것을 특징으로 하는 영상 복호화 장치.14. The apparatus of claim 13, wherein the decoding unit
A second mode for encoding a predetermined block based on the first mode and a discrete cosine transform based on the information, and a third mode for encoding a predetermined block based on a plurality of bit planes for pixel values And decodes the first block according to one of the first and second blocks.
상기 제1 블록이 상기 제1 모드에 따라 부호화되었음을 나타내는 플래그 정보를 파싱하는 것을 특징으로 하는 영상 복호화 장치.14. The apparatus of claim 13, wherein the mode information decoding unit
And parsing flag information indicating that the first block is coded according to the first mode.
Applications Claiming Priority (10)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US22902409A | 2009-07-28 | 2009-07-28 | |
US61/229,024 | 2009-07-28 | ||
US24321809P | 2009-09-17 | 2009-09-17 | |
US61/243,218 | 2009-09-17 | ||
US24413909P | 2009-09-21 | 2009-09-21 | |
US61/244,139 | 2009-09-21 | ||
US25760909P | 2009-11-03 | 2009-11-03 | |
US61/257,609 | 2009-11-03 | ||
KR1020090108663 | 2009-11-11 | ||
KR20090108663 | 2009-11-11 |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20110011503A KR20110011503A (en) | 2011-02-08 |
KR101631277B1 true KR101631277B1 (en) | 2016-06-16 |
Family
ID=43771699
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020100010481A KR101631277B1 (en) | 2009-07-28 | 2010-02-04 | Method and apparatus for encoding/decoding image based on skip mode |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101631277B1 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030169932A1 (en) * | 2002-03-06 | 2003-09-11 | Sharp Laboratories Of America, Inc. | Scalable layered coding in a multi-layer, compound-image data transmission system |
-
2010
- 2010-02-04 KR KR1020100010481A patent/KR101631277B1/en active IP Right Grant
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030169932A1 (en) * | 2002-03-06 | 2003-09-11 | Sharp Laboratories Of America, Inc. | Scalable layered coding in a multi-layer, compound-image data transmission system |
Also Published As
Publication number | Publication date |
---|---|
KR20110011503A (en) | 2011-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8588307B2 (en) | Method and apparatus for encoding and decoding mode information | |
KR101631280B1 (en) | Method and apparatus for decoding image based on skip mode | |
JP5957562B2 (en) | Video encoding / decoding method and apparatus using large size transform unit | |
EP2204044B1 (en) | Multimedia coding and decoding with additional information capability | |
AU2010231805B2 (en) | Image signal decoding device, image signal decoding method, image signal encoding device, image signal encoding method, and program | |
US20120230396A1 (en) | Method for Embedding Decoding Information in Quantized Transform Coefficients | |
KR101710622B1 (en) | Method and apparatus for encoding/decoding image based on skip mode | |
KR101631278B1 (en) | Method and apparatus for encoding/decoding mode information | |
KR101631277B1 (en) | Method and apparatus for encoding/decoding image based on skip mode | |
Abdi et al. | Real-time Watermarking Algorithm of H. 264/AVC Video Stream. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20190530 Year of fee payment: 4 |