KR100275270B1 - Method and apparatus for interlaced binary shape coding - Google Patents

Method and apparatus for interlaced binary shape coding Download PDF

Info

Publication number
KR100275270B1
KR100275270B1 KR1019970067354A KR19970067354A KR100275270B1 KR 100275270 B1 KR100275270 B1 KR 100275270B1 KR 1019970067354 A KR1019970067354 A KR 1019970067354A KR 19970067354 A KR19970067354 A KR 19970067354A KR 100275270 B1 KR100275270 B1 KR 100275270B1
Authority
KR
South Korea
Prior art keywords
mode
data
encoded
field
mvd
Prior art date
Application number
KR1019970067354A
Other languages
Korean (ko)
Other versions
KR19990048612A (en
Inventor
조성렬
Original Assignee
전주범
대우전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 전주범, 대우전자주식회사 filed Critical 전주범
Priority to KR1019970067354A priority Critical patent/KR100275270B1/en
Publication of KR19990048612A publication Critical patent/KR19990048612A/en
Application granted granted Critical
Publication of KR100275270B1 publication Critical patent/KR100275270B1/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/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/107Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/149Data rate or code amount at the encoder output by estimating the code amount by means of a model, e.g. mathematical model or statistical model
    • 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/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Algebra (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PURPOSE: An apparatus is provided to be capable of decoding a binary shape signal. CONSTITUTION: A field binary alpha block(BAB) mode sensing part(10) checks whether a coding mode of a current field BAB is "all_0" or "all_255. If the coding mode is neither "all_0" nor "all_255", the field BAB mode sensing part(10) supplies the current field BAB data to a field BAB mode select part(20), a motion estimation part(32) in a motion estimating and compensating part(30), the first multiplexer(72) in a field reproduction part(70), via a path(L10). The field BAB mode select part(20) is supplied with a motion-compensated field BAB data from a motion compensation part(34) in the motion estimating and compensating part(30) via a path(L30). A field memory(74) stores reproduced field data, which indicates information associated with two field coded just before a current field. If the current field BAB is an upper field BAB included in a current upper field, the motion estimation part(32) extracts previously reproduced lower field data and previously reproduced upper field data from the field memory(74) via a path(L70). If the current field BAB is a lower field BAB included in a current lower field, the motion estimation part(32) extracts previously reproduced lower field data and presently reproduced upper field data from the field memory(74) via a path(L70). The current field BAB data is applied to the motion estimation part(32) from the field BAB mode sensing part(10) via the path(L10).

Description

이진 형상 신호의 격행 부호화 방법 및 장치A method and apparatus for joint encoding of binary shape signals

본 발명은 이진 형상 신호 (Binary Shape Signal)의 부호화 방법 및 장치에 관한 것으로서, 더욱 상세하게는 이진 형상 신호의 격행 부호화 방법 및 장치에 관한 것이다.The present invention relates to a method and apparatus for encoding a binary shape signal, and more particularly, to a method and apparatus for encoding a binary shape signal.

물체의 위치와 형상을 나타내는 이진 형상 신호는 프레임(또는 VOP) 내에 있는 이를테면 16 × 16 이진 화소 크기의 이진 알파 블럭(BAB : binary alpha block)로서 표현할 수 있는데, 각각의 이진 화소는 예를 들어 0 또는 255와 같이 배경 화소 또는 물체 화소를 나타내는 이진수 값을 갖는다. BAB는 콘텍스트 기반 산술 부호화(CAE : context-based arithmetic encoding) 기법과 같은 일반적인 비트 맵에 기초한 형상 부호화 기법을 이용하여 부호화할 수 있다.Binary shape signals representing the position and shape of an object can be represented as a binary alpha block (BAB) within a frame (or VOP), for example, a 16 × 16 binary pixel size, each binary pixel being, for example, zero. Or a binary value representing a background pixel or an object pixel, such as 255. BAB may be encoded using a shape coding technique based on a general bitmap such as a context-based arithmetic encoding (CAE) technique.

예를 들어, 인트라-프레임에서, 현재 BAB는 일반적인 인트라-CAE 기법을 사용하여 부호화되는데, 현재 BAB 내에 있는 각각의 화소는 현재 프레임으로부터 선택된 한 세트의 화소들로 구성된 인트라-콘텍스트에 기초하여 산술적으로 부호화된다. 인터-프레임에서, 현재 BAB는 어떤 CAE 기법이 더 적은 양의 부호화된 데이터를 생성하느냐에 따라 인트라-CAE 또는 인터-CAE 기법을 이용하여 부호화된다. 인터-CAE 기법에 따르면, 현재 BAB와 이전 프레임에 포함된 미리 결정된 각각의 후보 BAB들 사이의 차분을 나타내는 에러가 먼저 계산되고, 가장 유사한 후보 BABa와 움직임 벡터가 움직임 추정 기법에 의해 구해지는데, 가장 유사한 후보 BAB는 후보 BAB들 중에서 가장 적은 에러를 생성하는 후보 BAB를 나타내고, 움직임 벡터는 현재 BAB와 가장 유사한 후보 BAB 사이의 변위를 나타낸다. 따라서, 현재 BAB의 각각의 화소들은 인터-콘텍스트 및 움직임 벡터와 그 움직임 벡터 추정치 사이의 차이를 나타내는 움직임 벡터 차분에 근거하여 이를테면, 가변 길이 부호화(VLC : variable length coding) 기법등을 이용하여 부호화되며, 인터-콘텍스트는 현재 프레임에서 선택된 화소들로 이루어진 집합과, 움직임 벡터에 기초한 이전 프레임으로부터 선택된 화소들의 집합으로 구성된다. CAE 기법과 움직임 벡터에 대해 MPEG-4 Video Verificatioh Model Version 7.0, International Organization for Standardization, Coding of Moving Picture and Associated Audio Information, ISO/IEC JTC1/SC29/WG11 MPEG97/N1642, Bristol, April 1997을 참조한다.For example, in an intra-frame, the current BAB is encoded using the general intra-CAE technique, where each pixel in the current BAB is arithmetically based on an intra-context composed of a set of pixels selected from the current frame. Is encoded. In an inter-frame, the current BAB is encoded using intra-CAE or inter-CAE techniques depending on which CAE technique produces less amount of encoded data. According to the inter-CAE technique, an error representing the difference between the current BAB and each of the predetermined candidate BABs included in the previous frame is first calculated, and the most similar candidate BABa and the motion vector are obtained by the motion estimation technique. A similar candidate BAB represents a candidate BAB that produces the least error among the candidate BABs, and the motion vector represents a displacement between the current BAB and the most similar candidate BAB. Accordingly, each pixel of the current BAB is encoded using, for example, a variable length coding (VLC) technique based on the inter-context and the motion vector difference indicating the difference between the motion vector and the motion vector estimate. The inter-context consists of a set of pixels selected in the current frame and a set of pixels selected from the previous frame based on the motion vector. For CAE techniques and motion vectors, see MPEG-4 Video Verificatioh Model Version 7.0, International Organization for Standardization, Coding of Moving Picture and Associated Audio Information, ISO / IEC JTC1 / SC29 / WG11 MPEG97 / N1642, Bristol, April 1997.

이진 형상 신호를 보다 효율적으로 부호화화기 위해서 표 1에 있는 모드 신호들 중 하나를 각각의 BAB에 할당된다.In order to encode binary shape signals more efficiently, one of the mode signals in Table 1 is assigned to each BAB.

모드 1Mode 1 MVD == 0 && No UpdateMVD == 0 & & No Update 모드 2Mode 2 MVD != 0 && No UPdateMVD! = 0 && No UPdate 모드 3Mode 3 ALL 0ALL 0 모드 4Mode 4 ALL 255ALL 255 모드 5Mode 5 intra-CAEintra-CAE 모드 6Mode 6 MVD == 0 && inter-CAEMVD == 0 & & inter-CAE 모드 7Mode 7 MVD != 0 && inter-CAEMVD! = 0 & & inter-CAE

모드 1은 BAB의 MVD(Motion Vector Difference)가 0이고 BAB는 가장 유사한 후보 BAB에 의해 나타내어질 수 있다는 것을 의미하고, 모드 2는 BAB의 MVD는 0이 아닌 값이고 BAB는 가장 유사한 후보 BAB에 의해 나타내어질 수 있다는 것을 의미한다. 모드 1인 BAB에 대해서는 모드 신호만이 부호화되고, 모드 2인 BAB는 모드 신호와 MVD에 의해 나타내어진다. "No Update"를 결정함에 있어서, 가장 유사한 BAB의 각각의 화소와 현재 BAB 내에 있는 상응하는 화소 사이의 차분으로 이루어진 차분 BAB가 형성되고, 서브 블럭의 에러는 이를테면 서브 블럭 내에 있는 화소들의 절대값의 합일 때, 차분 BAB에 포함된 4 × 4 화소 크기의 4 × 4 개의 서브 블럭들의 에러가 미리 결정된 기준값 보다 작은지를 확인한다. 모든 서브 블럭의 에러가 기준값보다 작거나 같으면, BAB는 MVD 값에 따라 모드 1 또는 모드 2로 결정된다.Mode 1 means that the Motion Vector Difference (MVD) of BAB is 0 and BAB can be represented by the closest candidate BAB, Mode 2 means that the MVD of BAB is non-zero and BAB is the closest candidate BAB It can be represented. Only the mode signal is encoded for BAB in mode 1, and BAB in mode 2 is represented by the mode signal and MVD. In determining " No Update ", a difference BAB consisting of the difference between each pixel of the most similar BAB and the corresponding pixel currently in the BAB is formed, and the error of the sub block is, for example, the absolute value of the pixels in the sub block. When summed, it is checked whether an error of 4x4 subblocks of 4x4 pixel size included in the difference BAB is smaller than a predetermined reference value. If the errors of all sub blocks are less than or equal to the reference value, the BAB is determined to be Mode 1 or Mode 2 depending on the MVD value.

유사하게, BAB 내의 화소들이 모두 0으로 변했을 때 4 × 4 서브 블럭에 대한 에러가 기준값보다 작거나 같으면, BAB는 all_0 모드, 즉 모드 3으로 부호화된다. BAB 내의 화소들이 모두 255로 변했을 때 4 × 4 서브 블럭에 대한 에러가 기준값보다 작거나 같으면, BAB는 all_255 모드, 즉 모드 4로 부호화된다. 모드 3 또는 4인 BAB에 대해서는 모드 신호만 부호화되면 된다. BAB가 모드 1에서 4 사이에 해당하지 않으면, "인트라-CAE" 또는 "인터-CAE"가 BAB를 부호화하는데 채용되는데, 모드 5인 BAB는 모드 신호와 인트라-CAE 부호화된 BAB 데이터로 표현된다. 모드 6인 BAB는 모드 신호와 인터-CAE 부호화된 BAB 데이터에 의해 표현되며; 모드 7인 BAB는 모드 신호, 인터-CAE 부호화된 BAB 데이터, MVD에 의해 표현된다.Similarly, if the error for the 4x4 subblock is all less than or equal to the reference value when the pixels in the BAB all change to zero, then the BAB is encoded in all_0 mode, ie mode 3. If the errors in the 4x4 subblock are all less than or equal to the reference value when the pixels in the BAB all change to 255, the BAB is encoded in all_255 mode, that is, mode 4. For the BAB in mode 3 or 4, only the mode signal needs to be encoded. If the BAB does not fall between modes 1 to 4, "intra-CAE" or "inter-CAE" is employed to encode the BAB, and the mode 5 BAB is represented by the mode signal and the intra-CAE coded BAB data. BAB in mode 6 is represented by the mode signal and the inter-CAE coded BAB data; BAB in mode 7 is represented by a mode signal, inter-CAE coded BAB data, MVD.

MPEG-4에서는 위에 묘사된 모드 결정 방안이 이진 형상 신호를 필드별 부호화보다는 프레임별 부호화함에 있어서 제안되었고, 이진 형상 신호를 필드별로 부호화를 위한 방법 및 장치는 발명되지 않았다. 이진 형상 신호를 프레임별로 부호화함에 있어서 한 프레임 또는 VOP 내에 있는 물체의 움직임이 상당히 크면, 부호화 효율이 떨어지게 된다. 도 1a에서 1c를 참조하면, 큰 움직임을 갖는 물체가 도시되어 있는데, 각각 필드와 프레임으로 표현되어 있다.In MPEG-4, the mode determination method described above has been proposed for encoding a binary shape signal by frame rather than field-by-field encoding, and a method and apparatus for encoding a binary shape signal by field have not been invented. In encoding the binary shape signal frame by frame, if the motion of an object in one frame or VOP is large, the coding efficiency is reduced. Referring to Figure 1a to 1c, there is shown an object having a large movement, which is represented by a field and a frame, respectively.

도 1a는 상부 필드롤 도시하고 있고; 도 1b는 하부 필드를 도시하고 있으며; 도 1c는 이진 형상 신호의 프레임을 도시하고 있는데, 필드와 프레임 내에 있는 각각의 사각형은 한 화소를 나타내며, 빗금친 사각형은 물체에 속한 화소, 흰 사각형은 배경에 속한 화소이다. 프레임은 필드들의 각 행을 번갈아 배열함으로써 얻어지는데, 즉, 예를 들어, 상부 필드의 행들은 0에서 (2N-1)번째까지의 행을 갖는 프레임의 짝수 행에 위치하고, 하부 필드의 행들은 프레임의 홀수 행에 위치하며, 각 필드는 양의 정수인 N 개의 행을 갖고 있다. 순행 부호화 기법을 채용한 일반적인 이진 형상 신호 부호화 기법은 이진 형상 신호를 프레임별로 부호화한다. 그러나, 프레임 내의 물체의 움직임이 도 1a에서 1c에 도시된 바와 같이 큰 경우에는, 공간적 상관성이 매우 적은 이진 형상 신호가 부호화되어, 부호화 효율의 저하를 초래한다.1a shows the upper field roll; 1B shows the bottom field; Figure 1C shows a frame of binary shape signals, where each square in the field and frame represents one pixel, the hatched squares are pixels belonging to the object, and the white squares are pixels belonging to the background. The frame is obtained by alternating each row of fields, that is, for example, the rows of the upper field are located in the even rows of the frame with rows 0 through (2N-1), and the rows of the lower fields are framed. Located in odd rows of, each field has N rows that are positive integers. The general binary shape signal coding method employing the progressive coding method encodes a binary shape signal frame by frame. However, when the motion of an object in a frame is large as shown in Figs. 1A to 1C, a binary shape signal having very little spatial correlation is encoded, resulting in a decrease in coding efficiency.

지금까지는, 어떤 종래의 기술도 이진 형상 신호를 필드별로 부호화할 수 있는 방법 및 장치를 발명한 바가 없다.So far, no prior art has invented a method and apparatus capable of encoding a binary shape signal field by field.

따라서 본 발명의 목적은 이진 형상 신호를 부호화하는 방법 및 장치를 제공하는 것이다.It is therefore an object of the present invention to provide a method and apparatus for encoding a binary shape signal.

본 발명의 또 다른 목적은 이진 형상 신호를 필드별로 부호화하는 방법 및 장치를 제공하여 부호화 효율을 개선하는 것이다.Another object of the present invention is to improve a coding efficiency by providing a method and apparatus for encoding a binary shape signal for each field.

상기 목적을 달성하기 위해, 본 발명의 한 측면에 따르면, 이진 형상 신호의 목표 블럭을 부호화하는 방법에 있어서, 이진 형상 신호는 다수 개의 픽쳐들을 포함하고 있고, 각각의 픽쳐들은 제 1 및 제 2 이진수 값을 갖는 M × N 화소 크기의 다수 개의 블럭들로 나뉘어지며, 목표 블럭은 부호화될 현재 픽쳐의 블럭들 중 하나이고, M과 N은 양의 정수일 때: (a) 제 1 및 제 2 참조 블럭에 대한 목표 블럭의 에러가 미리 결정된 기준값보다 크지 않으면, 목표 블럭의 모드를 제 1 및 제 2 모드로 각각 결정하되, 각각의 참조 블럭은 M × N 개의 화소를 갖고 있고, 제 1 및 제 2 참조 블럭의 모든 화소들은 각각 제 1 및 제 2 이진수 값을 갖는 단계와; (b) 단계 (a)에서 제 1 및 제 2 모드로 결정되지 않은 경우, 현재 픽쳐에 대한 하나 이상의 이전 픽쳐들에 대하여 목표 블럭을 움직임 추정 및 보상하여 움직임 벡터를 포함하는 움직임 벡터 정보와 움직임 보상 블럭을 생성하되, 움직임 보상 블럭은 목표 블럭과 가장 유사한 블럭을 포함하는 단계와; (c) 목표 블럭과 가장 유사한 블럭 사이의 움직임 보상 에러(MCE) 및 움직임 벡터와 그 추정치 사이의 움직임 벡터 차분(MVD)를 계산하는 단계와; (d) MVD가 0이 아닌 경우, MVD를 부호화하여 부호화된 MVD 데이터를 제공하는 단계와; (e) MVD가 0이고 MCE가 기준값보다 크지 않으면 목표 블럭의 모드를 제 3 모드로 정하고, MVD는 0이 아닌 값을 갖고 MCE가 기준값보다 크지 않으면 목표 블럭의 모드를 제 4 모드로 정하는 단계와; (f) 단계 (e)에서 제 3 또는 제 4 모드로 결정되지 않은 경우, 인트라-부호화 데이터와 인터-부호화 데이터를 생성하되, 인트라-부호화 데이터는 미리 결정된 현재 픽쳐의 화소들에 기초하여 목표 블럭의 화소들을 부호화하여 생성하고, 인터-부호화 데이터는 현재 픽쳐 및 움직임 보상 블럭에 포함된 미리 결정된 화소들에 기초하여 목표 블럭의 화소들을 부호화하여 생성하는 단계와; (g) 인트라-부호화 데이터의 비트 수를 인터-부호화 데이터의 비트 수와 비교하는 단계와; (h) 인트라-부호화 데이터의 비트 수가 인터-부호화 데이터의 비트 수보다 크지 않으면, 목표 블럭의 모드를 제 5 모드로 정하는 단계 및; (i) 단계 (h)에서 제 5 모드로 결정되지 않은 경우, MVD가 0이면 목표 블럭의 모드를 제 6 모드로 정하고, MVD가 0이 아니면 목표 블럭의 모드를 제 7 모드로 정하는 단계를 포함하는 것을 특징으로 하는 이진 형상 신호 부호화 방법이 제공된다.In order to achieve the above object, according to an aspect of the present invention, in a method for encoding a target block of a binary shape signal, the binary shape signal includes a plurality of pictures, each picture being a first and a second binary number. When a target block is one of the blocks of the current picture to be encoded, and M and N are positive integers: (a) First and second reference blocks If the error of the target block for is not greater than a predetermined reference value, the mode of the target block is determined as the first and second modes, respectively, wherein each reference block has M × N pixels, and the first and second references are referred to. All pixels of the block have first and second binary values, respectively; (b) Motion vector information and motion compensation including a motion vector by motion estimation and compensation of the target block for one or more previous pictures for the current picture, if not determined as the first and second modes in step (a). Generating a block, wherein the motion compensation block includes a block most similar to the target block; (c) calculating a motion compensation error (MCE) between the target block and the most similar block and a motion vector difference (MVD) between the motion vector and its estimate; (d) if the MVD is not 0, encoding the MVD to provide encoded MVD data; (e) if the MVD is 0 and MCE is not greater than the reference value, set the mode of the target block to the third mode; if the MVD has a nonzero value and MCE is not greater than the reference value, set the mode of the target block to the fourth mode; ; (f) if not determined as the third or fourth mode in step (e), generate intra-encoded data and inter-encoded data, the intra-encoded data being based on the pixels of the predetermined current picture; Generating pixels by encoding the pixels of the target block, and encoding the pixels of the target block based on predetermined pixels included in the current picture and the motion compensation block; (g) comparing the number of bits of intra-coded data with the number of bits of inter-coded data; (h) if the number of bits of the intra-coded data is not greater than the number of bits of the inter-coded data, setting the mode of the target block to the fifth mode; (i) if it is not determined as the fifth mode in step (h), if the MVD is 0, setting the mode of the target block to the sixth mode; and if the MVD is not 0, setting the mode of the target block to the seventh mode. A binary shape signal encoding method is provided.

상기 목적을 달성하기 위해, 본 발명의 또 다른 측면에 따르면, 이진 형상 신호의 목표 블럭을 부호화하는 장치에 있어서, 이진 형상 신호는 다수 개의 픽쳐들을 포함하고 있고, 각각의 픽쳐들은 제 1 및 제 2 이진수 값을 갖는 M × N 화소 크기의 다수 개의 블럭들로 나뉘어지며, 목표 블럭은 부호화될 현재 픽쳐의 블럭들 중 하나이고, M과 N은 양의 정수일 때: 목표 블럭의 제 1 및 제 2 참조 블럭에 대한 에러가 미리 결정된 기준값보다 크지 않은 경우, 목표 블럭에 대해 타입 1 및 타입 2의 제 1 식별 신호를 각각 발생시키되, 각각의 참조 블럭은 M × N 개의 화소를 갖고 있고, 제 1 및 제 2 참조 블럭의 모든 화소들은 각각 제 1 및 제 2 이진수 값을 갖는 모드 감지 수단과; 부호화된 이진 형상 신호를 재생하고 재생된 이진 형상 신호를 생성하여 저장하되, 재생된 이진 형상 신호는 이전에 부호하된 픽쳐들을 포함하는 재생 수단과; 현재 픽쳐에 대한 하나 이상의 이전 픽쳐들에 해당하는 재생된 이진 형상 신호에 대해 목표 블럭을 움직임 추정하여 움직임 벡터 정보 및 움직임 보상 블럭을 생성하되, 움직임 벡터 정보는 움직임 벡터를 포함하고, 움직임 보상 블럭은 목표 블럭과 가장 유사한 블럭을 포함하는 움직임 추정 및 보상 수단과; 목표 블럭과 가장 유사한 블럭 사이의 움직임 보상 에러(MCE)를 계산하고 MCE가 기준값보다 크지 않으면 제 2 식별 신호를 생성하는 모드 선택 수단과; 움직임 벡터와 그 추정치 사이의 움직임 벡터 차분(MVD)를 계산하고 MVD를 부호화하여 부호화된 MVD 데이터를 생성하는 움직임 벡터 차분(MVD) 계산 수단과; 목표 블럭, 움직임 보상 블럭 및 재생된 이진 형상 신호에 기초하여 목표 블럭에 대해 인트라- 및 인터-부호화를 수행하여 인트라- 및 인터- 부호화 데이터를 각각 생성하고, 인트라- 및 인터-부호화 데이터의 비트 수에 기초하여 인트라- 및 인터-부호화 데이터 중 하나를 선택하며, 인트라-부호화 데이터가 선택되면 타입 3의 제 3 식별 신호를 제공하고, 인터-부호화 데이터가 선택되면 타입 4의 제 3 식별 신호를 제공하는 부호화 수단 및; MVD, 부호화된 MVD, 부호화 데이터 및 식별 신호들에 따라, 목표 블럭으 모드를 결정하고 결정된 모드에 따라 부호화된 목표 블럭 데이터를 생성하는 포매팅 수단을 포함하는 것을 특징으로 하는 이진 형상 신호 부호화 장치가 제공된다.In order to achieve the above object, according to another aspect of the present invention, in an apparatus for encoding a target block of a binary shape signal, the binary shape signal includes a plurality of pictures, each of the pictures are first and second When the target block is one of the blocks of the current picture to be encoded, and M and N are positive integers: see first and second of the target block. If the error for the block is not greater than a predetermined reference value, a first identification signal of type 1 and type 2 is generated for the target block, respectively, wherein each reference block has M × N pixels, Mode sensing means having all pixels of the second reference block having first and second binary values, respectively; Reproducing means for reproducing the encoded binary shape signal and for generating and storing the reproduced binary shape signal, wherein the reproduced binary shape signal includes previously coded pictures; The motion vector information and the motion compensation block are generated by motion estimation of the target block on the reproduced binary shape signal corresponding to one or more previous pictures for the current picture, wherein the motion vector information includes the motion vector, and the motion compensation block is Motion estimation and compensation means including a block most similar to the target block; Mode selection means for calculating a motion compensation error (MCE) between the target block and the closest block and generating a second identification signal if the MCE is not greater than a reference value; Motion vector difference (MVD) calculating means for calculating a motion vector difference (MVD) between the motion vector and its estimate and encoding MVD to generate coded MVD data; Intra- and inter-encoding data is performed on the target block based on the target block, the motion compensation block, and the reproduced binary shape signal to generate intra- and inter-coded data, respectively, and the number of bits of the intra- and inter-coded data. Select one of the intra- and inter-encoded data based on the second reference signal; provide a type 3 third identification signal if the intra-encoded data is selected, and provide a type 4 third identification signal if the inter-encoded data is selected Encoding means for performing; According to the MVD, the encoded MVD, the encoded data and the identification signals, the binary shape signal encoding apparatus comprising a formatting means for determining the target block mode and generating the encoded target block data according to the determined mode do.

도 1a, b 및 c는 이진 형상 신호에서의 상부 필드, 하부 필드, 프레임을 각각 도시한 도면,1a, b and c show an upper field, a lower field and a frame in a binary shape signal, respectively;

도2는 본 발명에 따른 이진 형상 신호의 격행 부호화 장치를 도시한 블럭 다이어 그램,2 is a block diagram showing the apparatus for encoding a binary form signal according to the present invention;

도 3은 본 발명에 따른 필드 BAB(binary alpha block)의 움직임 추정 과정을 도시한 도면,3 is a diagram illustrating a motion estimation process of a field binary alpha block (BAB) according to the present invention;

도 4는 본 발명에 따른 부호화 과정을 나타내는 순서도.4 is a flowchart illustrating an encoding process according to the present invention.

<도면의 주요부분에 대한 부호의 설명><Description of the code | symbol about the principal part of drawing>

10 : 필드 BAB 모드 감지부 20 : 필드 BAB 모드 선택부10: field BAB mode detection unit 20: field BAB mode selection unit

30 : 움직임 추정 및 보상부 32 : 움직임 추정부30: motion estimation and compensation unit 32: motion estimation unit

34 : 움직임 보상부 40 : 움직임 벡터(MV) 결정부34: motion compensation unit 40: motion vector (MV) determination unit

42 : MV 메모리 44 : 움직임 벡터 차분(MVD) 계산부42: MV memory 44: Motion vector difference (MVD) calculation unit

46 : MVD 부호화부 50 : 콘텍스트 기반 산술 부호화(CAE)부46: MVD encoder 50: context-based arithmetic coding (CAE) unit

52-1 : 인트라 CAE부 54-1 : 인트라 비트 계산부52-1: Intra CAE unit 54-1: Intra bit calculator

52-2 : 인터 CAE부 54-2 : 인터 비트 계산부52-2: Inter CAE unit 54-2: Inter bit calculation unit

56 : 비교부 58 : 선택부56: comparison unit 58: selection unit

60 : 포매팅부 62 : 모드 결정부60: formatting section 62: mode determination section

64 : 모드 부호화부 66 : 제 2 다중화부64 mode encoding unit 66 second multiplexing unit

70 : 필드 재생부 72 : 제 1 다중화부70: field reproducing unit 72: first multiplexer

74 : 필드 메모리74: field memory

본 발명에 따르면 이진 형상 신호를 픽쳐별로 효과적으로 부호화하는 방법 및 장치를 제공하되, 픽쳐는 프레임 또는 필드를 나타낸다. 본 발명의 바람직한 실시예에 따르면, 픽쳐는 필드로서 다루어지고, 본 발명은 물체의 큰 움직임을 수용하기 위해 필드별로 이진 형상 신호를 부호화하는 것에 대해 묘사될 것이다. 이진 형상 신호는 이전 및 현재 프레임을 포함하고 있고, 이전 프레임은 이전 상부 및 이전 하부 필드로 나뉘어지며, 현재 프레임은 현재 상부 및 현재 하부 필드로 나뉘어진다. 본 발명에 의한 방법 및 장치는 이전 상부 필드, 이전 하부 필드, 현재 상부 필드, 현재 하부 필드의 순으로 필드들을 처리한다. 각각의 필드는 P와 Q가 양의 정수일 때, P × Q개의 이진 화소들로 이루어진 블럭들로 나뉘어지며, 각각의 블럭은 상부 필드 BAB 또는 하부 필드 BAB로 지칭된다. 본 발명의 바람직한 실시예에서는 P와 Q가 모두 16으로 정해지며, 또 다른 실시예에서는 P와 Q가 8과 16으로 정해진다.According to the present invention, there is provided a method and apparatus for effectively encoding a binary shape signal for each picture, wherein a picture represents a frame or a field. According to a preferred embodiment of the present invention, the picture is treated as a field, and the present invention will be described for encoding binary shape signals on a field-by-field basis to accommodate large movements of an object. The binary shape signal includes the previous and current frames, the previous frame is divided into the previous upper and previous lower fields, and the current frame is divided into the current upper and current lower fields. The method and apparatus according to the present invention processes the fields in the order of the previous top field, the previous bottom field, the current top field, and the current bottom field. Each field is divided into blocks of P × Q binary pixels when P and Q are positive integers, each block referred to as an upper field BAB or a lower field BAB. In a preferred embodiment of the present invention, both P and Q are set to 16, and in another embodiment, P and Q are set to 8 and 16.

도 2를 참조하면, 본 발명에 따라 이진 형상 신호를 격행 부호화하는 장치가 도시되어 있다. 현재 상부 필드 BAB 데이터 또는 현재 하부 BAB 데이터가 필드 BAB 모드 감지부(10)로 입력되는데, 현재 상부 필드 데이터는 현재 상부 필드 BAB의 이진 화소 데이터를 포함하고 있고; 현재 하부 필드 BAB는 현재 하부 필드 BAB의 이진 화소 데이터를 포함하고 있다. 이진 호소 데이터에는 이진수, 예를 들어, 255와 0에 의해 물체 및 배경 화소가 각각 표시된다.Referring to Fig. 2, there is shown an apparatus for encoding the binary shape signal in accordance with the present invention. Current upper field BAB data or current lower BAB data is input to the field BAB mode sensing unit 10, wherein the current upper field data includes binary pixel data of the current upper field BAB; The current lower field BAB contains binary pixel data of the current lower field BAB. In binary appeal data, objects and background pixels are represented by binary numbers, for example, 255 and 0, respectively.

필드 BAB 모드 감지부(10)는 현재 필드 BAB의 부호화 모드가 "all_0" 또는 "all_255"인지를 조사한다. 구체적으로, 현재 필드 BAB는 T, S가 양의 정수일 때, T × S 화소 크기, 예를 들어 4 × 4 화소 크기로 나뉘어지는데, 제 1 실시예의 16 × 16 화소 크기인 필드 BAB는 4 × 4 개의 서브 블럭을 포함하고 8 × 16 화소 크기인 필드 BAB는 2 × 4 개의 서브 블럭을 포함한다. 현재 필드 BAB의 서브 블럭과 all_0 필드 BAB의 서브 블럭 사이의 에러가 미리 결정된 기준값보다 작거나 같으면, 현재 필드 BAB의 부호화 모드가 "all_0"임을 나타내는 타입 1의 식별 신호 S1이 생성되어 포매팅부(60) 내에 있는 모드 결정부(62)로 제공되는데, all_0 필드 BAB는 모든 화소값이 0인 필드 BAB이다. 현재 필드 BAB의 서브 블럭과 all_255 필드 BAB의 서브 블럭 사이의 에러가 미리 결정된 기준값보다 작거나 같으면, 현재 필드 BAB의 부호화 모드가 "all_255"임을 나타내는 타입 2의 식별 신호 S1이 생성되어 포매팅부(60) 내에 있는 모드 결정부(62)로 제공되는데, all_255 필드 BAB는 모든 화소값이 255인 필드 BAB이다.The field BAB mode detection unit 10 checks whether the encoding mode of the current field BAB is "all_0" or "all_255". Specifically, the current field BAB is divided into a T x S pixel size, for example, a 4 x 4 pixel size when T and S are positive integers. A field BAB having a size of 16 x 16 pixels in the first embodiment is 4 x 4 A field BAB including 8 subblocks and 8 × 16 pixels in size includes 2 × 4 subblocks. If the error between the subblock of the current field BAB and the subblock of the all_0 field BAB is less than or equal to a predetermined reference value, an identification signal S1 of type 1 indicating that the encoding mode of the current field BAB is "all_0" is generated and the formatting unit 60 is performed. ) Is provided to the mode determining unit 62, in which the all_0 field BAB is a field BAB in which all pixel values are zero. If the error between the subblock of the current field BAB and the subblock of the all_255 field BAB is less than or equal to a predetermined reference value, an identification signal S1 of type 2 indicating that the encoding mode of the current field BAB is "all_255" is generated and the formatting unit 60 is used. Is supplied to the mode determining unit 62, in which the all_255 field BAB is a field BAB in which all pixel values are 255.

현재 필드 BAB의 부호화 모드가 "all_0"도 아니고 "all_255"도 아니면, 필드 BAB 모드 감지부(10)는 현재 필드 BAB 데이터를 필드 BAB 모드 선택부(20), 움직임 추정 및 보상부(30) 내에 있는 움직임 추정부(32), 및 필드 재생부(70) 내에 있는 제 1 다중화부(72)로 경로 L10을 통하여 제공한다. 필드 BAB 모드 선택부(20)은 움직임 추정 및 보상부(30) 내에 있는 움직임 보상부(34)로부터 움직임 보상된 필드 BAB 데이터를 경로 L30을 통하여 제공받는다. 움직임 추정 및 보상 과정은 두 가지 경우에 따라 설명할 것인데, 현재 필드 BAB가 상부 필드 BAB인 경우와 하부 필드 BAB인 경우이다.If the encoding mode of the current field BAB is neither "all_0" nor "all_255", the field BAB mode detection unit 10 transmits the current field BAB data into the field BAB mode selection unit 20, the motion estimation and compensation unit 30. To the first multiplexer 72 in the motion estimation section 32 and the field reproducing section 70 via the path L10. The field BAB mode selector 20 receives the motion compensated field BAB data from the motion compensator 34 in the motion estimation and compensator 30 through the path L30. The motion estimation and compensation process will be described in two cases, where the current field BAB is the upper field BAB and the lower field BAB.

필드 재생부(70) 내에 있는 필드 메모리(74)에서는, 재생된 필드 데이터가 저장되어 있는데, 재생된 필드 데이터는 현재 필드 직전에 부호화된 두 개의 필드들에 대한 정보를 나타낸다. 현재 필드 BAB가 현재 상부 필드에 포함된 상부 필드 BAB이면, 움직임 추정부(32)는 필드 메모리 (74)로부터 경로 L70을 통해 재생된 이전 상부 필드 데이터와 재생된 이전 하부 필드 데이터를 추출하고; 현재 필드 BAB가 현재 하부 필드에 포함된 하부 필드 BAB이면, 움직임 추정부(32)는 필드 메모리(74)로부터 경로 L70을 통해 재생된 이전 하부 필드 데이터와 재생된 현재 상부 필드 데이터를 추출한다. 현재 필드 BAB 데이터는 필드 BAB 모드 감지부(10)으로부터 경로 L10을 통해 움직임 추정부(32)로 인가된다.In the field memory 74 in the field reproducing section 70, reproduced field data is stored, and the reproduced field data indicates information on two fields encoded immediately before the current field. If the current field BAB is the upper field BAB included in the current upper field, the motion estimation unit 32 extracts from the field memory 74 the previous upper field data and the previous lower field data reproduced through the path L70; If the current field BAB is the lower field BAB included in the current lower field, the motion estimation unit 32 extracts the previous lower field data reproduced through the path L70 and the reproduced current upper field data from the field memory 74. The current field BAB data is applied from the field BAB mode detector 10 to the motion estimation unit 32 via the path L10.

도 3을 참조하면, 본 발명의 바람직한 실시예에 따른 움직임 추정 및 보상 과정이 도시되어 있다. 현재 프레임 100은 현재 상부 필드 110과 현재 하부 필드 120을 포함하고 있고, 이전 프레임 200은 이전 상부 필드 210과 이전 하부 필드 220을 포함하고 있다.Referring to FIG. 3, a motion estimation and compensation process according to a preferred embodiment of the present invention is shown. The current frame 100 includes the current upper field 110 and the current lower field 120, and the previous frame 200 includes the previous upper field 210 and the previous lower field 220.

현재 필드 BAB가 현재 상부 필드 110에 포함된 상부 필드 BAB, 예를 들어, 현재 상부 필드 BAB(112)라면, 움직임 추정부(32)는 이전 하부 필드 220 내에 있는 제 1 이전 하부 필드 BAB(222)를 감지하는데, 제 1 이전 하부 필드 BAB(222)는 이전 하부 필드(220)에서 현재 상부 필드(110) 내에 있는 현재 상부 필드 BAB(112)와 같은 위치에 있다. 그리고 나서, 현재 상부 필드 BAB(112)는 이전 하부 필드(220)내에 형성된 제 1 이전 하부 탐색 영역(226) 내에서 한 화소씩 이동되는데, 제 1 이전 하부 탐색 영역(226)은 제 1 이전 하부 필드(222)를 포함해서 다수 개의 후보 필드 BAB들을 포함하고 있다. 각각의 변위에서, 현재 상부 필드 BAB(112)와 상응하는 후보 필드 BAB 사이의 에러가 계산된다.If the current field BAB is the upper field BAB included in the current upper field 110, for example, the current upper field BAB 112, then the motion estimator 32 is the first previous lower field BAB 222 within the previous lower field 220. The first previous lower field BAB 222 is in the same position as the current upper field BAB 112 in the current upper field 110 in the previous lower field 220. Then, the current upper field BAB 112 is moved by one pixel within the first previous lower search area 226 formed in the previous lower field 220, where the first previous lower search area 226 is moved to the first previous lower area. The field 222 includes a plurality of candidate field BABs. At each displacement, the error between the current upper field BAB 112 and the corresponding candidate field BAB is calculated.

그런 다음 움직임 추정부(32)는 이전 상부 필드(210)내에서 이전 상부 필드 BAB(212)를 감지하는데, 이전 상부 필드 BAB(212)는 현재 상부 필드 BAB(112)와 같은 위치에 있다. 그리고 나서, 현재 상부 필드 BAB(112)는 이전 상부 필드(210)내에 형성된 이전 상부 탐색 영역(214)내에서 한 화소씩 이동되는데, 이전 상부 탐색 영역(214)은 이전 상부 필드 BAB(212)를 포함하여 다수 개의 후보 필드 BAB들을 포함하고 있다. 각각의 변위에서 현재 상부 필드 BAB(112)와 상응하는 후보 필드 BAB 사이의 에러가 계산된다.The motion estimator 32 then detects the previous upper field BAB 212 in the previous upper field 210, where the previous upper field BAB 212 is at the same position as the current upper field BAB 112. Then, the current upper field BAB 112 is moved by one pixel in the previous upper search area 214 formed in the previous upper field 210, where the previous upper search area 214 moves the previous upper field BAB 212. Including a plurality of candidate field BABs. The error between the current upper field BAB 112 and the corresponding candidate field BAB at each displacement is calculated.

이와 유사하게, 현재 필드 BAB가 현재 하부 필드 120에 포함된 하부 필드 BAB, 예를 들어, 현재 하부 필드 BAB(122)라면, 움직임 추정부(32)는 현재 상부 필드 110 내에 있는 현재 상부 필드 BAB(114)를 감지하는데, 현재 상부 필드 BAB(114)는 현재 하부 필드 BAB(122)와 같은 위치에 있다. 그리고 나서, 현재 하부 필드 BAB(122)는 현재 상부 필드(110)내에 형성된 현재 상부 탐색 영역(116) 내에서 한 화소씩 이동되는데, 현재 상부 탐색 영역(116)은 현재 상부 필드(114)를 포함해서 다수 개의 후보 필드 BAB들을 포함하고 있다. 각각의 변위에서, 현재 하부 필드 BAB(122)와 상응하는 후보 필드 BAB 사이의 에러가 계산된다.Similarly, if the current field BAB is a lower field BAB included in the current lower field 120, for example, the current lower field BAB 122, the motion estimation unit 32 may determine the current upper field BAB (which is in the current upper field 110). 114, the current upper field BAB 114 is now in the same position as the lower field BAB 122. Then, the current lower field BAB 122 is moved by one pixel within the current upper navigation area 116 formed in the current upper field 110, where the current upper navigation area 116 includes the current upper field 114. Thus including a number of candidate field BABs. At each displacement, the error between the current lower field BAB 122 and the corresponding candidate field BAB is calculated.

그런 다음 움직임 추정부(32)는 이전 하부 필드(220)내에서 이전 하부 필드 BAB(224)를 감지하는데, 이전 하부 필드 BAB(224)는 현재 하부 필드 BAB(122)와 같은 위치에 있다. 그리고 나서, 현재 하부 필드 BAB(122)는 이전 하부 필드(220)내에 형성된 제 2 이전 하부 탐색 영역(228)내에서 한 화소씩 이동되는데, 제 2 이전 하부 탐색 영역(22814)은 이전 하부 필드 BAB(224)를 포함하여 다수 개의 후보 필드 BAB들을 포함하고 있다. 각각의 변위에서 현재 하부 필드 BAB(122)와 상응하는 후보 필드 BAB 사이의 에러가 계산된다.The motion estimator 32 then detects the previous lower field BAB 224 within the previous lower field 220, where the previous lower field BAB 224 is at the same position as the current lower field BAB 122. Then, the current lower field BAB 122 is moved by one pixel in the second previous lower search area 228 formed in the previous lower field 220, where the second previous lower search area 2228 is moved to the previous lower field BAB. A plurality of candidate field BABs are included, including 224. The error between the current lower field BAB 122 and the corresponding candidate field BAB at each displacement is calculated.

위에서 묘사된 바와 같이, 움직임 추정부(32)는 현재 필드 BAB를 이전 두 필드에 대해 움직임 추정하고 최소 에러를 생성하는 후보 필드 BAB를 최적 후보 필드 BAB로서 선택한다. 움직임 추정부(32)의 출력은 경로 L34의 현재 움직임 벡터와 필드 식별 플래그로서 움직임 벡터 차분(MVD) 결정부(40) 내에 있는 움직임 벡터(MV) 메모리(42)와 움직임 벡터 차분(MVD) 계산부(44) 및 움직임 추정부(34)로 인가되는데, 현재 움직임 벡터는 현재 필드 BAB와 최적 후보 필드 BAB 사이의 변위를 나타내며, 필드 식별 플래그는 최적 후보 필드 BAB가 어느 필드에 속한 것인지를 나타낸다.As depicted above, the motion estimator 32 selects as the best candidate field BAB the candidate field BAB that motion estimates the current field BAB for the previous two fields and generates the minimum error. The output of the motion estimation unit 32 calculates the motion vector difference (MVD) and the motion vector (MV) memory 42 in the motion vector difference (MVD) determination unit 40 as the current motion vector and the field identification flag of the path L34. Applied to the unit 44 and the motion estimation unit 34, the current motion vector indicates a displacement between the current field BAB and the best candidate field BAB, and the field identification flag indicates which field the best candidate field BAB belongs to.

움직임 보상부(34)는 필드 메모리(74)로부터 경로 L72를 통해 테를 두른 필드 BAB 데이터를 추출하는데, 테를 두른(bordered) 필드 BAB 데이터는 최적 후보 필드 BAB와 그 둘레의 1 화소 넓이의 테를 말하며; 테를 두른 필드 BAB 데이터는 움직임 보상된 필드 BAB 데이터로서 필드 BAB 모드 선택부(20)과 제 1 다중화부(72)로 경로 L30을 통해 제공된다.The motion compensator 34 extracts the framed BAB data framed from the field memory 74 via the path L72, and the framed field BAB data is framed at the optimal candidate field BAB and the width of one pixel around the frame. To say; The framed field BAB data is provided through the path L30 to the field BAB mode selector 20 and the first multiplexer 72 as motion compensated field BAB data.

MVD 계산부(44)는 경로 L34를 통해 움직임 추정부(32)로 부터 입력된 현재 움직임 벡터와 필드 식별 플래그에 따라 MV 메모리(42)로부터 움직임 벡터 추정치를 추출하는데, 움직임 벡터 추정치는 상기 MPEG-4에 따라 결정된 현재 필드 BAB의 미리 결정된 이웃하는 필드 BAB들 중 하나의 움직임 벡터이다. 그리고 나서 현재 움직임 벡터와 상응하는 움직임 벡터 추정치 사이의 움직임 벡터 차분(MVD)가 계산된다. MVD와 필드 식별 플래그는 움직임 벡터 차분 결정부(40) 내에 있는 MVD 부호화부(46) 및 모드 결정부(62)로 제공된다.The MVD calculator 44 extracts a motion vector estimate from the MV memory 42 according to the current motion vector and the field identification flag input from the motion estimator 32 via the path L34. The motion vector of one of the predetermined neighboring field BABs of the current field BAB determined according to four. The motion vector difference (MVD) between the current motion vector and the corresponding motion vector estimate is then calculated. The MVD and field identification flags are provided to the MVD encoder 46 and the mode determiner 62 in the motion vector difference determiner 40.

MVD 부호화부(46)는 MVD가 0이 아닌 값을 가지는 경우에만, MVD와 MVD 계산부(44)로부터의 필드 식별 플래그를 부호화하여 부호화된 MVD가 존재하면, 부호화된 MVD와 부호화된 필드 식별 플래그를 부호화된 MVD 데이터로서 콘텍스트 기반 산술 부호화(CAE)부(50) 내에 있는 인터 비트 계산부(54-2)와 선택부(58) 및 포매팅부(60) 내에 있는 제 2 다중화부(66)으로 경로 L40을 통해 제공하는데, CAE부(50)은 인트라-CAE부(52-1)와 인터-CAE부(52-2), 인트라-비트 계산부(54-1)과 인터-비트 계산부(54-2), 비교부(56) 및 선택부(58)을 포함하고 있다.The MVD encoder 46 encodes the field identification flags from the MVD and the MVD calculator 44 only when the MVD has a non-zero value, and if the encoded MVD exists, the encoded MVD and the encoded field identification flag. To the second multiplexer 66 in the inter-bit computation unit 54-2 in the context-based arithmetic encoding (CAE) unit 50 and the selector 58 and the formatting unit 60 as encoded MVD data. It is provided through the path L40, CAE unit 50 is the intra-CAE unit 52-1 and the inter-CAE unit 52-2, the intra-bit calculation unit 54-1 and the inter-bit calculation unit ( 54-2), a comparator 56 and a selector 58.

한편, 경로 L10의 현재 필드 BAB 데이터와 경로 L30의 움직임 보상된 필드 BAB에 따라, 필드 BAB 모드 선택부(20)은 현재 필드 BAB와 움직임 보상된 필드 BAB에 포함된 최적 후보 필드 BAB를 4 × 4 화소 크기의 서브 블럭들로 나눈다. 현재 필드 BAB내에 있는 서브 블럭과 최적 후보 필드 BAB 내에 있는 상응하는 후보 블럭 사이의 에러가 미리 결정된 기준값보다 작거나 같으면, 필드 BAB 모드 선택부(20)은 식별 신호 S2를 생성하는데, 이는 현재 BAB 필드가 부호화될 필요가 없음을 나타내며, S2는 모드 결정부(62)로 제공된다.On the other hand, according to the current field BAB data of the path L10 and the motion compensated field BAB of the path L30, the field BAB mode selector 20 selects 4 × 4 an optimal candidate field BAB included in the current field BAB and the motion compensated field BAB. Divide into subblocks of pixel size. If the error between the subblock in the current field BAB and the corresponding candidate block in the best candidate field BAB is less than or equal to the predetermined reference value, the field BAB mode selector 20 generates an identification signal S2, which is the current BAB field. Denotes that there is no need to be coded, and S2 is provided to the mode determination unit 62.

현재 필드 BAB와 최적 후보 필드 BAB 내에 있는 상응하는 서브 블럭 사이의 에러가 미리 결정된 기준값보다 크면, 필드 BAB 모드 선택부(20)은 현재 필드 BAB 데이터를 인트라-CAE부(52-1)과 인터-CAE부(52-2)로, 움직임 보상된 필드 BAB 데이터를 인터-CAE부(52-2)로 제공한다.If the error between the current field BAB and the corresponding sub-block in the best candidate field BAB is greater than a predetermined reference value, the field BAB mode selection unit 20 intercepts the current field BAB data with the intra-CAE unit 52-1. The CAE unit 52-2 provides the motion compensated field BAB data to the inter-CAE unit 52-2.

인트라-CAE부(52-1)는 현재 필드 BAB 자신과 제 1 다중화부(72)로부터 경로 L76을 통해 입력된 현재 필드 BAB 주변에 위치한 이전에 재생된 필드 BAB들에 기초하여 현재 필드 BAB 내에 있는 각각의 화소들에 대한 인트라-콘텍스트를 생성하고; 생성된 인트라-콘텍스트에 기반하여 일반적인 인트라-CAE 기법을 사용하여 현재 필드 BAB를 부호화한다. 현재 필드 BAB에 대한 인트라-CAE는 인트라-비트 계산부(54-1)과 선택부(58)로 입력된다.The intra-CAE unit 52-1 is in the current field BAB based on the current field BAB itself and previously reproduced field BABs located around the current field BAB input via the path L76 from the first multiplexer 72. Generate an intra-context for each pixel; Based on the generated intra-context, the current field BAB is encoded using a general intra-CAE technique. The intra-CAE for the current field BAB is input to the intra-bit calculator 54-1 and the selector 58.

인트라-비트 계산부(54-1)는 인트라-CAE 데이터의 비트 수를 계산하여 계산된 비트 수를 비교부(56)으로 제공한다.The intra-bit calculator 54-1 calculates the number of bits of the intra-CAE data and provides the calculated number of bits to the comparator 56. FIG.

인터-CAE부(52-2)는 경로 L76 상의 이전에 재생된 필드 BAB들과 필드 BAB 모드 선택부(20)로붙너의 움직임 보상된 필드 BAB에 기초하여 현재 필드 BAB 내에 있는 각각의 화소에 대한 인터-콘텍스트를 생성하고; 일반적인 인터-CAE 기법에 기초하여 현재 필드 BAB를 부호화한다. 현재 필드 BAB에 대한 인터-CAE 데이터는 인터-비트 계산부(54-2)와 선택부(58)로 인가된다.The inter-CAE section 52-2 intersects each pixel in the current field BAB based on the previously reproduced field BABs on the path L76 and the motion compensated field BAB of the field BAB mode selector 20. Create a context; The current field BAB is encoded based on the general inter-CAE technique. The inter-CAE data for the current field BAB is applied to the inter-bit calculator 54-2 and the selector 58.

인터 비트 계산부(54-2)는 경로 L40 상의 부호화딘 MVD 데이터와 인터-CAE부(52-2)로부터의 인터-CAE 데이터에 기초하여, 부호화된 MVD 데이터와 인터-CAE 데이터의 비트 수를 계산하여 계산된 비트 수를 비교부(56)으로 인가한다.The interbit calculation unit 54-2 calculates the number of bits of the encoded MVD data and the inter-CAE data based on the encoded MVD data on the path L40 and the inter-CAE data from the inter-CAE unit 52-2. The calculated and calculated number of bits is applied to the comparator 56.

비교부(560는 인트라-CAE 데이터의 비트 수와 인터-CAE 데이터 및 부호화된 MVD 데이터의 비트 수를 비교한다. 인트라-CAE 데이터의 비트 수가 인터-CAE 데이터 및 부호화된 MVD 데이터의 비트 수보다 작거나 같으면, 비교부(56)은 타입 3의 식별 신호 S3을 선택부(58)과 모드 결정부(62)로 제공하고; 그렇지 않으면 타입 4의 식별 신호 S3을 선택부(58)과 모드 결정부(62)로 제공한다.The comparison unit 560 compares the number of bits of the intra-CAE data with the number of bits of the inter-CAE data and the encoded MVD data. The number of bits of the intra-CAE data is smaller than the number of bits of the inter-CAE data and the encoded MVD data. Or the same, the comparator 56 provides the type 3 identification signal S3 to the selection unit 58 and the mode determination unit 62; otherwise, the type 4 identification signal S3 is selected for the selection unit 58 and the mode determination unit. Provided at 62.

선택부(58)는 타입 3 또는 4의 식별 신호에 따라 인트라-CAE 데이터 또는 인터-CAE 데이터 및 부호화된 MVD 데이터를 선택하여 포매팅부(60)에 있는 제 2 다중화부(66)으로 제공한다.The selector 58 selects the intra-CAE data or the inter-CAE data and the encoded MVD data according to the type 3 or 4 identification signal and provides the same to the second multiplexer 66 in the formatting unit 60.

모드 결정부(62)는 필드 BAB 모드 감지부(10), 필드 BAB 모드 선택부(20), 비교부(56) 및 MVD 계산부(44)로부터 각각 입력된 식별 신호 S1, S2, S3 및 MVD에 기초하여 현재 필드 BAB의 부호화 모드를 결정하여, 결정된 모드 신호를 포매팅부(60) 내에 있는 모드 부호화부(64)와 제 2 다중화부(66), 그리고 제 1 다중화부(72)로 제공한다. 표 2는 본 발명에 따라 현재 필드 BAB의 부호화 모드를 결정하는 방법을 보여준다.The mode determiner 62 is provided with identification signals S1, S2, S3 and MVD input from the field BAB mode detector 10, the field BAB mode selector 20, the comparator 56 and the MVD calculator 44, respectively. The coding mode of the current field BAB is determined based on the method, and the determined mode signal is provided to the mode encoder 64, the second multiplexer 66, and the first multiplexer 72 in the formatting unit 60. . Table 2 shows a method of determining an encoding mode of a current field BAB according to the present invention.

특히, 모드 1은 S2가 존재하고 MVD가 0일 때 현재 필드 BAB에 대해 결정되고; 모드 2는 S2가 존재하고 MVD가 0이 아닐 때이며; 모드 3은 타입 1의 S1이 존재할 때이고; 모드 4는 타입 2의 S1이 존재할 때이며; 모드 5는 MVD 값에 관계없이 타입 3의 S3가 존재할 때이고; 모드 6은 타입 4의 S3이 존재하고 MVD가 0일 때이며; 모드 7은 타입 4의 S3이 존재하고 MVD가 0이 아닐 때이며, "×" 표시는 상응하는 신호가 효력이 없음을 나타낸다.In particular, mode 1 is determined for the current field BAB when S2 is present and MVD is zero; Mode 2 is when S2 is present and MVD is not zero; Mode 3 is when type 1 S1 is present; Mode 4 is when S1 of type 2 is present; Mode 5 is when type 3 S3 is present regardless of the MVD value; Mode 6 is when type 4 S3 is present and MVD is 0; Mode 7 is when S3 of type 4 is present and MVD is not zero, and the "x" mark indicates that the corresponding signal is ineffective.

S1S1 S2S2 S3S3 MVDMVD 모드mode ×× ×× = 0= 0 모드 1Mode 1 ×× ×× ≠ 0≠ 0 모드 2Mode 2 타입 1Type 1 ×× ×× ×× 모드 3Mode 3 타입 2Type 2 ×× ×× ×× 모드 4Mode 4 ×× ×× 타입 3Type 3 = 0 또는 ≠ 0= 0 or ≠ 0 모드 5Mode 5 ×× ×× 타입 4Type 4 = 0= 0 모드 6Mode 6 ×× ×× 타입 4Type 4 ≠0≠ 0 모드 7Mode 7

제 1 다중화부(72)는 모드 결정부(62)로부터의 모드 신호에 따라 현재 필드 BAB에 상응하는 필드 BAB 데이터를 재생한다. 달리 말하면, 제 1 다중화부(72)는 모드 3 신호에 따라 all_0 필드 BAB를 경로 L76을 통하여 필드 메모리(74)로 제공하고; 모드 4 신호에 따라 all_255 필드 BAB를; 모드 5, 6, 또는 7 신호에 따라 현재 필드 BAB를; 모드 1 또는 2 신호에 따라 최적 후보 필드 BAB를 제공한다.The first multiplexer 72 reproduces the field BAB data corresponding to the current field BAB in accordance with the mode signal from the mode determiner 62. In other words, the first multiplexer 72 provides the all_0 field BAB to the field memory 74 via the path L76 according to the mode 3 signal; All_255 field BAB according to the mode 4 signal; Current field BAB according to mode 5, 6, or 7 signal; The best candidate field BAB is provided according to the mode 1 or 2 signal.

모드 부호화부(64)는 모드 결정부(62)로부터의 모드 신호를 이를테면 일반적인 VLC 기법을 사용하여 부호화하고 부호화된 모드 신호를 제 2 다중화부(66)으로 제공한다.The mode encoder 64 encodes the mode signal from the mode determiner 62 using a general VLC technique, and provides the encoded mode signal to the second multiplexer 66.

모드 결정부(66)로부터의 모드 신호에 따라, 제 2 다중화부(66)는 입력된 신호를 선택적으로 다중화하고 다중화된 신호를 부호화된 현재 필드 BAB 데이터로서 전송기(도시되지 않음)로 전송을 위해 제공한다. 부호화된 현재 필드 BAB는 모드 1 또는 2 신호인 경우에는 부호화된 모드 신호와 부호화된 MVD 데이터이고; 모드 3 또는 4 신호인 경우에는 부호화된 모드 신호이며; 모드 5 신호인 경우에는 인트라-CAE 데이터이고; 모드 6 또는 7 신호인 경우에는 부호화된 모드 신호, 인터-CAE 데이터 및 부호화된 MVD 데이터이다. 모드 1 또는 모드 6의 경우와 같이 MVD가 0일 때, 부호화된 MVD 데이터는 부호화된 필드 식별 신호를 포함함에 유의하라.In accordance with the mode signal from the mode determiner 66, the second multiplexer 66 selectively multiplexes the input signal and transmits the multiplexed signal to the transmitter (not shown) as encoded current field BAB data. to provide. The coded current field BAB is a coded mode signal and coded MVD data when it is a mode 1 or 2 signal; In the case of a mode 3 or 4 signal, it is an encoded mode signal; In the case of a mode 5 signal, it is intra-CAE data; In the case of a mode 6 or 7 signal, it is a coded mode signal, inter-CAE data, and coded MVD data. Note that when MVD is 0 as in the case of Mode 1 or Mode 6, the encoded MVD data includes the encoded field identification signal.

도 4a 및 4b를 참조하면 본 발명에 따라 필드별로 이진 형상 신호를 부호화하는 과정이 도시되어 있다. 단계 S1에서는, 현재 필드 BAB의 화소들이 모드 255 또는 0으로 대체될 수 있는지를 조사하고, 단계 S2에서는 도 2에 도시된 필드 BAB 모드 감지부(10)에서 행해진 것처럼, 현재 필드 BAB의 모든 화소들이 0으로 대체될 수 있으면 모드 3, 현재 필드 BAB의 모든 화소들이 255로 대체될 수 있으면 모드 4로 현재 필드 BAB의 모드를 결정한다. 현재 필드 BAB의 모드가 모드 3 또는 4로 결정되면, 단계 S3에서는 모드 신호가 부호화되고, 부호화된 모드 신호를 전송함으로써 종료한다.4A and 4B, a process of encoding a binary shape signal for each field according to the present invention is illustrated. In step S1, it is checked whether the pixels of the current field BAB can be replaced with the mode 255 or 0, and in step S2, as in the field BAB mode sensing unit 10 shown in FIG. Mode 3 if all can be replaced by 0, mode 4 determines the mode of the current field BAB if all pixels of the current field BAB can be replaced with 255. If the mode of the current field BAB is determined to be mode 3 or 4, in step S3 the mode signal is encoded and ends by transmitting the encoded mode signal.

단계 S1에서의 조사의 결과가 부정적이면, 단계 S4로 가서 현재 필드 BAB에 대한 움직임 추정 및 보상이 도 2에 도시된 움직임 추정 및 보상부(30)에서 수행되어 움직임 보상된 필드 BAB, 현재 움직임 벡터 및 필드 식별 플래그(FIF)를 생성한다. 단계 S5에서는 필드 BAB 모드 선택부(20)에서 움직임 보상 에러(MCE)와 MVD가 계산되는데, MCE는 현재 필드 BAB와 움직임 보상된 필드 BAB 내에 포함된 최적 후보 필드 BAB 사이의 에러이다.If the result of the investigation in step S1 is negative, go to step S4, the motion estimation and compensation for the current field BAB is performed in the motion estimation and compensation unit 30 shown in FIG. And a field identification flag (FIF). In step S5, the motion compensation error MCE and MVD are calculated by the field BAB mode selection unit 20, where MCE is an error between the current field BAB and the best candidate field BAB included in the motion compensated field BAB.

단계 S6에서, MCE는 미리 결정된 기준값(TH)과 비교되는데; MCE가 TH보다 작거나 같으면, 단계 S7로 간다. 단계 S7에서, MVD가 0이면 현재 필드 BAB는 모드 1로 결정되고, 그렇지 않으면 모드 2로 결정된다. 단계 S8에서는, 현재 필드 BAB의 모드가 모드 1 또는 2인지를 조사한다. 현재 필드 BAB에 모드 1이 할당된 것으로 판명되면, 모드 1 신호와 단계 S4에서 생성된 FIF가 단계 S9에서 부호화되고 종료된다. 현재 필드 BAB에 모드 2가 할당된 것으로 판명되면, 모드 2 신호, FIF 및 MVD가 단계 S10에서 부호화되고 부호화된 데이터를 전송함으로써 종료한다.In step S6, the MCE is compared with a predetermined reference value TH; If MCE is less than or equal to TH, go to step S7. In step S7, if MVD is zero, the current field BAB is determined to be mode 1, otherwise it is determined to mode 2. In step S8, it is checked whether the mode of the current field BAB is mode 1 or 2. If it is found that mode 1 is assigned to the current field BAB, the mode 1 signal and the FIF generated in step S4 are encoded and terminated in step S9. If it is found that mode 2 is assigned to the current field BAB, the mode 2 signal, FIF and MVD ends in step S10 by transmitting the encoded and encoded data.

단계 S6을 참조하면, MCE가 TH보다 큰 경우, 노드 B를 통해 단계 S11로 간다. 단계 S11에서, 현재 필드 BAB는 인트라-CAE 및 인터-CAE 부호화 방안을 사용하여 부호화되고, 인트라-CAE 데이터에 상응하는 비트 수와 인터-CAE 데이터에 상응하는 비트 수가, 도2에 도시된 인트라-CAE부(52-1), 인터-CAE부(52-2) 및 인트라-비트 계산부(54-1), 인터-비트 계산부(54-2)에 대해 설명된 바와 같이, 계산된다. 단계 S12에서 인트라-CAE 비트 수가 인터-CAE 비트 수보다 작거나 같으면 단계 S13으로 가고, 그렇지 않으면 단계 S15로 간다.Referring to step S6, if MCE is greater than TH, then node B goes to step S11. In step S11, the current field BAB is encoded using the intra-CAE and inter-CAE encoding schemes, the number of bits corresponding to the intra-CAE data and the number of bits corresponding to the inter-CAE data, the intra- shown in FIG. As described for the CAE unit 52-1, the inter-CAE unit 52-2, the intra-bit calculator 54-1, and the inter-bit calculator 54-2, the calculation is performed. If in step S12 the number of intra-CAE bits is less than or equal to the number of inter-CAE bits, go to step S13, otherwise go to step S15.

단계 S13에서는, 현재 필드 BAB의 모드가 모드 5로 정해지고, 단계 S14에서는, 모드 5 신호가 부호화되며 부호화된 모드 신호 및 인트라-CAE 데이터를 전송함으로써 종료한다. 단계 S15에서는, 현재 필드 BAB의 모드가, MVD가 0이면 모드 6으로, 그렇지 않으면 모드 7로 결정되고 단계 S16으로 계속된다. 단계 S16에서는 현재 필드 BAB의 모드가 모드 6인지 확인된다. 단계 S16에서, 모드 6으로 결정되면, 모드 6 신호와 FIF가 인터-CAE 데이터와 함께 단계 S17에서 부호화되어 전송되고 종료한다. 반면, 현재 필드 BAB의 모드가 모드 7이면, 단계 S18로 간다. 마지막으로 단계 S18에서는, 모드 7 신호, FIF 및 MVD가 부호화되로 인터-CAE 데이터와 함께 전송기로 전송된 후 종료한다.In step S13, the mode of the current field BAB is set to mode 5, and in step S14, the mode 5 signal is encoded and ends by transmitting the encoded mode signal and intra-CAE data. In step S15, the mode of the current field BAB is determined as mode 6 if MVD is 0, otherwise mode 7 and continues to step S16. In step S16, it is checked whether the mode of the current field BAB is mode 6. In step S16, if it is determined to be mode 6, the mode 6 signal and the FIF are encoded and transmitted together with the inter-CAE data in step S17, and ends. On the other hand, if the mode of the current field BAB is mode 7, the flow goes to step S18. Finally, in step S18, the mode 7 signal, FIF and MVD are encoded and transmitted together with the inter-CAE data to the transmitter, and then ends.

본 발명이 이진 형상 신호를 필드별로 부호화하는 것에 대해 설명되었지만, 이진 형상 신호를 프레임 별로 부호화하는 데 있어서도 같은 방안을 확장할 수 있다. 이러한 예에서, 움직임 추정 및 보상 과정은 두 개의 이전 필드 대신 이전 프레임에 대하여 수행될 것이다.Although the present invention has been described for encoding a binary shape signal on a field-by-field basis, the same scheme can be extended to encode a binary shape signal on a frame-by-frame basis. In this example, the motion estimation and compensation process will be performed for the previous frame instead of the two previous fields.

상기에 있어서 본발명의 특정의 실시예에 대하여 설명했지만, 본 명세서에 기재한 특허청구의 범위를 일탈하지 않고 당업자는 여러 가지의 변경을 가할 수 있음은 물론이다.While specific embodiments of the present invention have been described above, those skilled in the art can make various changes without departing from the scope of the claims described herein.

Claims (7)

이진 형상 신호의 목표 블럭을 부호화하는 방법에 있어서, 이진 형상 신호는 다수 개의 픽쳐들을 포함하고 있고, 각각의 픽쳐들은 제 1 및 제 2 이진수 값을 갖는 M × N 화소 크기의 다수 개의 블럭들로 나뉘어지며, 목표 블럭은 부호화될 현재 픽쳐의 블럭들 중 하나이고, M과 N은 양의 정수일 때:In a method of encoding a target block of a binary shape signal, the binary shape signal includes a plurality of pictures, each picture being divided into a plurality of blocks of M × N pixel size having a first and a second binary value. Where the target block is one of the blocks of the current picture to be encoded, and M and N are positive integers: (a) 제 1 및 제 2 참조 블럭에 대한 목표 블럭의 에러가 미리 결정된 기준값보다 크지 않으면, 목표 블럭의 모드를 제 1 및 제 2 모드로 각각 결정하되, 각각의 참조 블럭은 M × N 개의 화소를 갖고 있고, 제 1 및 제 2 참조 블럭의 모든 화소들은 각각 제 1 및 제 2 이진수 값을 갖는 단계와;(a) If the error of the target block for the first and second reference blocks is not greater than the predetermined reference value, the mode of the target block is determined as the first and second modes, respectively, where each reference block is M × N pixels. Wherein all pixels of the first and second reference blocks have first and second binary values, respectively; (b) 단계 (a)에서 제 1 및 제 2 모드로 결정되지 않은 경우, 현재 픽쳐에 대한 하나 이상의 이전 픽쳐들에 대하여 목표 블럭을 움직임 추정 및 보상하여 움직임 벡터를 포함하는 움직임 벡터 정보와 움직임 보상 블럭을 생성하되, 움직임 보상 블럭은 목표 블럭과 가장 유사한 블럭을 포함하는 단계와;(b) Motion vector information and motion compensation including a motion vector by motion estimation and compensation of the target block for one or more previous pictures for the current picture, if not determined as the first and second modes in step (a). Generating a block, wherein the motion compensation block includes a block most similar to the target block; (c) 목표 블럭과 가장 유사한 블럭 사이의 움직임 보상 에러(MCE) 및 움직임 벡터와 그 추정치 사이의 움직임 벡터 차분(MVD)를 계산하는 단계와;(c) calculating a motion compensation error (MCE) between the target block and the most similar block and a motion vector difference (MVD) between the motion vector and its estimate; (d) MVD가 0이 아닌 경우, MVD를 부호화하여 부호화된 MVD 데이터를 제공하는 단계와;(d) if the MVD is not 0, encoding the MVD to provide encoded MVD data; (e) MVD가 0이고 MCE가 기준값보다 크지 않으면 목표 블럭의 모드를 제 3 모드로 정하고, MVD는 0이 아닌 값을 갖고 MCE가 기준값보다 크지 않으면 목표 블럭의 모드를 제 4 모드로 정하는 단계와;(e) if the MVD is 0 and MCE is not greater than the reference value, set the mode of the target block to the third mode; if the MVD has a nonzero value and MCE is not greater than the reference value, set the mode of the target block to the fourth mode; ; (f) 단계 (e)에서 제 3 또는 제 4 모드로 결정되지 않은 경우, 인트라-부호화 데이터와 인터-부호화 데이터를 생성하되, 인트라-부호화 데이터는 미리 결정된 현재 픽쳐의 화소들에 기초하여 목표 블럭의 화소들을 부호화하여 생성하고, 인터-부호화 데이터는 현재 픽쳐 및 움직임 보상 블럭에 포함된 미리 결정된 화소들에 기초하여 목표 블럭의 화소들을 부호화하여 생성하는 단계와;(f) if not determined as the third or fourth mode in step (e), generate intra-encoded data and inter-encoded data, the intra-encoded data being based on the pixels of the predetermined current picture; Generating pixels by encoding the pixels of the target block, and encoding the pixels of the target block based on predetermined pixels included in the current picture and the motion compensation block; (g) 인트라-부호화 데이터의 비트 수를 인터-부호화 데이터의 비트 수와 비교하는 단계와;(g) comparing the number of bits of intra-coded data with the number of bits of inter-coded data; (h) 인트라-부호화 데이터의 비트 수가 인터-부호화 데이터의 비트 수보다 크지 않으면, 목표 블럭의 모드를 제 5 모드로 정하는 단계 및;(h) if the number of bits of the intra-coded data is not greater than the number of bits of the inter-coded data, setting the mode of the target block to the fifth mode; (i) 단계 (h)에서 제 5 모드로 결정되지 않은 경우, MVD가 0이면 목표 블럭의 모드를 제 6 모드로 정하고, MVD가 0이 아니면 목표 블럭의 모드를 제 7 모드로 정하는 단계를 포함하는 것을 특징으로 하는 이진 형상 신호 부호화 방법.(i) if it is not determined as the fifth mode in step (h), if the MVD is 0, setting the mode of the target block to the sixth mode; and if the MVD is not 0, setting the mode of the target block to the seventh mode. Binary shape signal encoding method characterized in that. 제 1 항에 있어서, 이진 형상 신호 부호화 방법이 단계 (i) 다음에,The method of claim 1, wherein the binary shape signal encoding method is followed by step (i): (j) 목표 블럭의 모드를 부호화하여 부호화된 모드 신호를 생성하는 단계 및;(j) encoding a mode of the target block to generate an encoded mode signal; (k) 목표 블럭의 모드에 따라 목표 블럭의 부호화 데이터를 생성하는 단계를 더 포함하는 것을 특징으로 하는 이진 형상 신호 부호화 방법.(k) generating encoded data of the target block according to the mode of the target block. 제 2 항에 있어서, 목표 블럭의 부호화 데이터가 부호화된 모드 신호를 포함하고, 제 4 모드인 경우에는 부호화된 MVD 데이터를, 제 5 모드인 경우에는 인트라-부호화 데이터를, 제 6 모드인 경우에는 인터-부호화 데이터를, 제 7 모드인 경우에는 인터-부호화 데이터 및 부호화된 MVD 데이터를 더 포함하는 것을 특징으로 하는 이진 형상 신호 부호화 방법.The method of claim 2, wherein the encoded data of the target block includes an encoded mode signal, encoded MVD data in the fourth mode, intra-encoded data in the fifth mode, and in the sixth mode. The inter-encoded data, in the seventh mode, further comprises inter-encoded data and encoded MVD data. 이진 형상 신호의 목표 블럭을 부호화하는 장치에 있어서, 이진 형상 신호는 다수 개의 픽쳐들을 포함하고 있고, 각각의 픽쳐들은 제 1 및 제 2 이진수 값을 갖는 M × N 화소 크기의 다수 개의 블럭들로 나뉘어지며, 목표 블럭은 부호화될 현재 픽쳐의 블럭들 중 하나이고, M과 N은 양의 정수일 때:In an apparatus for encoding a target block of a binary shape signal, the binary shape signal includes a plurality of pictures, each picture being divided into a plurality of blocks of M × N pixel size having first and second binary values. Where the target block is one of the blocks of the current picture to be encoded, and M and N are positive integers: 목표 블럭의 제 1 및 제 2 참조 블럭에 대한 에러가 미리 결정된 기준값보다 크지 않은 경우, 목표 블럭에 대해 타입 1 및 타입 2의 제 1 식별 신호를 각각 발생시키되, 각각의 참조 블럭은 M × N 개의 화소를 갖고 있고, 제 1 및 제 2 참조 블럭의 모든 화소들은 각각 제 1 및 제 2 이진수 값을 갖는 모드 감지 수단과;If the error for the first and second reference blocks of the target block is not greater than the predetermined reference value, first and second type identification signals of type 1 and type 2 are generated for the target block, respectively, where each reference block is M × N pieces. Mode sensing means having pixels and all pixels of the first and second reference blocks each having a first and a second binary value; 부호화된 이진 형상 신호를 재생하고 재생된 이진 형상 신호를 생성하여 저장하되, 재생된 이진 형상 신호는 이전에 부호하된 픽쳐들을 포함하는 재생 수단과;Reproducing means for reproducing the encoded binary shape signal and for generating and storing the reproduced binary shape signal, wherein the reproduced binary shape signal includes previously coded pictures; 현재 픽쳐에 대한 하나 이상의 이전 픽쳐들에 해당하는 재생된 이진 형상 신호에 대해 목표 블럭을 움직임 추정하여 움직임 벡터 정보 및 움직임 보상 블럭을 생성하되, 움직임 벡터 정보는 움직임 벡터를 포함하고, 움직임 보상 블럭은 목표 블럭과 가장 유사한 블럭을 포함하는 움직임 추정 및 보상 수단과;The motion vector information and the motion compensation block are generated by motion estimation of the target block on the reproduced binary shape signal corresponding to one or more previous pictures for the current picture, wherein the motion vector information includes the motion vector, and the motion compensation block is Motion estimation and compensation means including a block most similar to the target block; 목표 블럭과 가장 유사한 블럭 사이의 움직임 보상 에러(MCE)를 계산하고 MCE가 기준값보다 크지 않으면 제 2 식별 신호를 생성하는 모드 선택 수단과;Mode selection means for calculating a motion compensation error (MCE) between the target block and the closest block and generating a second identification signal if the MCE is not greater than a reference value; 움직임 벡터와 그 추정치 사이의 움직임 벡터 차분(MVD)를 계산하고 MVD를 부호화하여 부호화된 MVD 데이터를 생성하는 움직임 벡터 차분(MVD) 계산 수단과;Motion vector difference (MVD) calculating means for calculating a motion vector difference (MVD) between the motion vector and its estimate and encoding MVD to generate coded MVD data; 목표 블럭, 움직임 보상 블럭 및 재생된 이진 형상 신호에 기초하여 목표 블럭에 대해 인트라- 및 인터-부호화를 수행하여 인트라- 및 인터- 부호화 데이터를 각각 생성하고, 인트라- 및 인터-부호화 데이터의 비트 수에 기초하여 인트라- 및 인터-부호화 데이터 중 하나를 선택하며, 인트라-부호화 데이터가 선택되면 타입 3의 제 3 식별 신호를 제공하고, 인터-부호화 데이터가 선택되면 타입 4의 제 3 식별 신호를 제공하는 부호화 수단 및;Intra- and inter-encoding data is performed on the target block based on the target block, the motion compensation block, and the reproduced binary shape signal to generate intra- and inter-coded data, respectively, and the number of bits of the intra- and inter-coded data. Select one of the intra- and inter-encoded data based on the second reference signal; provide a type 3 third identification signal if the intra-encoded data is selected, and provide a type 4 third identification signal if the inter-encoded data is selected Encoding means for performing; MVD, 부호화된 MVD, 부호화 데이터 및 식별 신호들에 따라, 목표 블럭의 모드를 결정하고 결정된 모드에 따라 부호화된 목표 블럭 데이터를 생성하는 포매팅 수단을 포함하는 것을 특징으로 하는 이진 형상 신호 부호화 장치.And formatting means for determining a mode of the target block and generating coded target block data according to the determined mode according to the MVD, the encoded MVD, the encoded data, and the identification signals. 제 4 항에 있어서, MVD 결정 수단이:The method of claim 4 wherein the MVD determining means is: 현재 픽쳐에 있는 이전에 부호화된 블럭들의 움직임 벡터를 저장하는 수단과;Means for storing a motion vector of previously coded blocks in the current picture; 목표 블럭의 움직임 벡터의 추정치로서 저장 수단에 저장된 움직임 벡터들 중 하나를 찾아 MVD를 계산하는 수단 및;Means for finding one of the motion vectors stored in the storage means as an estimate of the motion vector of the target block and calculating the MVD; MVD를 부호화하여 부호화된 MVD 데이터를 제공하는 수단을 포함하는 것을 특징으로 하는 이진 형상 신호 부호화 장치.And means for encoding the MVD to provide coded MVD data. 제 5 항에 있어서, 부호화 수단이:The method of claim 5 wherein the encoding means is: 현재 픽쳐에 해당하는 재생된 이진 형상 신호의 한 부분에 포함된 화소들에 기초하여 목표 블럭을 인트라-부호화하여 인트라-부호화 데이터를 생성하는 수단과;Means for intra-coding the target block based on pixels included in one portion of the reproduced binary shape signal corresponding to the current picture to generate intra-coded data; 재생된 이진 형상 신호 및 움직임 보상 블럭의 한 부분에 포함된 화소들에 기초하여 목표 블럭을 인터-부호화하여 인터-부호화 데이터를 제공하는 수단과;Means for inter-coding the target block based on the reproduced binary shape signal and the pixels included in one portion of the motion compensation block to provide inter-coded data; 인트라-부호화 데이터의 비트 수를 알아내는 수단과;Means for finding the number of bits of intra-coded data; 인터 부호화 데이터의 비트 수와 부호화된 MVD 데이터의 비트 수의 합을 알아내는 수단과;Means for finding the sum of the number of bits of the inter coded data and the number of bits of the encoded MVD data; 인터 부호화 데이터의 비트 수와 부호화된 MVD 데이터의 비트 수의 합이 인트라-부호하 데이터의 비트 수보다 크면 타입 3의 제 3 식별 신호를 생성하고, 그렇지 않으면 타입 4의 제 3 식별 신호를 생성하는 수단 및;If the sum of the number of bits of the inter coded data and the number of bits of the encoded MVD data is larger than the number of bits of the intra-coded data, a third identification signal of type 3 is generated; otherwise, a third identification signal of type 4 is generated. Means; 타입 3의 제 3 식별 신호에 대해서는 부호화 데이터로서 인트라-부호화 데이터를 선택하고, 타입 4의 제 3 식별 신호에 대해서는 부호화 데이터로서 인터-부호화 데이터를 선택하는 수단을 포함하는 것을 특징으로 하는 이진 형상 신호 부호화 장치.Means for selecting intra-encoded data as encoded data for a type 3 third identification signal, and means for selecting inter-encoded data as encoded data for a type 3 third identification signal. Encoding device. 제 6 항에 있어서, 포매팅 수단이:The method of claim 6 wherein the formatting means: 제 1 내지 제 3 식별 신호와 MVD에 따라 목표 블럭의 모드를 결정하되, 타입 1의 제 1 식별 신호가 입력되면 목표 블럭의 모드를 제 1 모드로, 타입 2의 제 1 식별 신호가 입력되면 제 2 모드로, 제 2 식별 신호가 입력되고 MVD가 0이면 제 3 모드로, 제 2 식별 신호가 입력되고 MVD가 0이 아니면 제 4 모드로, 타입 3의 제 3 식별 신호가 입력되면 제 5 모드로, 타입 4의 제 3 식별 신호가 입력되고 MVD가 0이면 제 6 모드로, 타입 4의 제 3 식별 신호가 입력되고 MVD가 0이 아니면 제 7 모드로 설정하는 결정 수단과;The mode of the target block is determined according to the first to third identification signals and the MVD. If the first identification signal of type 1 is input, the mode of the target block is set to the first mode, and the first identification signal of type 2 is input. In the second mode, when the second identification signal is input and MVD is 0, in the third mode; when the second identification signal is input and the MVD is not 0, in the fourth mode; when the type 3 third identification signal is input, in the fifth mode. Determining means for setting to a sixth mode if a third identification signal of type 4 is input and MVD is 0 and to a seventh mode if a third identification signal of type 4 is input and MVD is not zero; 목표 블럭의 모드를 부호화하여 부호화된 모드 신호를 제공하는 수단 및;Means for encoding a mode of the target block to provide an encoded mode signal; 결정된 모드, 부호화 데이터 및 부호화된 모드 신호에 따라 부호화된 목표 블럭의 데이터를 생성하되, 제 1, 제 2 또는 제 3 모드이면 부호화된 모드 신호를, 제 4 모드이면 부호화된 모드 신호와 부호화된 MVD 데이터를, 제 5 또는 제 6 모드이면 부호화된 모드 신호와 부호화 데이터를, 제 7 모드이면 부호화된 모드 신호, 부호화된 MVD 데이터 및 부호화 데이터를, 부호화된 목표 블럭의 데이터로서 제공하는 제공 수단을 포함하는 것을 특징으로 하는 이진 형상 신호 부호화 장치.Generates data of the encoded target block according to the determined mode, the encoded data, and the encoded mode signal, wherein the encoded mode signal is generated in the first, second, or third mode, and the encoded mode signal and the encoded MVD in the fourth mode. Providing means for providing the encoded mode signal and the encoded data in the fifth or sixth mode and the encoded mode signal, the encoded MVD data, and the encoded data in the seventh mode as data of the encoded target block. Binary shape signal encoding apparatus characterized in that.
KR1019970067354A 1997-12-10 1997-12-10 Method and apparatus for interlaced binary shape coding KR100275270B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970067354A KR100275270B1 (en) 1997-12-10 1997-12-10 Method and apparatus for interlaced binary shape coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970067354A KR100275270B1 (en) 1997-12-10 1997-12-10 Method and apparatus for interlaced binary shape coding

Publications (2)

Publication Number Publication Date
KR19990048612A KR19990048612A (en) 1999-07-05
KR100275270B1 true KR100275270B1 (en) 2000-12-15

Family

ID=19526900

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970067354A KR100275270B1 (en) 1997-12-10 1997-12-10 Method and apparatus for interlaced binary shape coding

Country Status (1)

Country Link
KR (1) KR100275270B1 (en)

Also Published As

Publication number Publication date
KR19990048612A (en) 1999-07-05

Similar Documents

Publication Publication Date Title
EP0921497B1 (en) Interlaced binary shape coding apparatus
US9549192B2 (en) Motion picture encoding device and motion picture decoding device
USRE44663E1 (en) Image decoding apparatus for persistently storing reference images
KR100658181B1 (en) Video decoding method and apparatus
JP4148549B2 (en) Mode signal encoding device
JP3924071B2 (en) Video signal encoding device
CA2702769C (en) Motion estimation and compensation of video object planes for interlaced digital video
US20130128980A1 (en) Motion vector predictive encoding method, motion vector decoding method, predictive encoding apparatus and decoding apparatus, and storage media storing motion vector predictive encoding and decoding programs
KR100505306B1 (en) Decoding and coding method of moving image signal, and decoding and coding apparatus of moving image signal using the same
KR100558583B1 (en) Image encoding apparatus and method
JPH11112994A (en) Motion vector coding method of mpeg-4
CN101924934A (en) The advanced bi-directional predictive coding of interlaced scanning video
JPH10322696A (en) Signal encoder, signal encoding method, signal recording medium and signal transmitting method
US6724821B1 (en) Picture coding apparatus with coding efficiency improved
KR100238893B1 (en) Motion vector coding method and apparatus
US6058213A (en) Method and apparatus for encoding a binary shape signal
KR100275270B1 (en) Method and apparatus for interlaced binary shape coding
KR20050012706A (en) Image decoding device and image decoding method
JP2001224036A (en) Moving picture coder
JP2000261809A (en) Image coder coping with feature of picture
JP2005260464A (en) Picture coding device, picture decoding device, picture coding method, picture decoding method, picture coding program, picture decoding program, picture coding program recording medium and picture decoding program recording medium
KR100291719B1 (en) Apparatus and method for motion vector encoding of binary shape signals
JP6872412B2 (en) Video coding device and program
KR100293445B1 (en) Method for coding motion vector
JPH10285603A (en) Image encoding method

Legal Events

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

Payment date: 20110901

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20120903

Year of fee payment: 13

LAPS Lapse due to unpaid annual fee