KR0173915B1 - Apparatus and method of encoding the bit stream in video codec - Google Patents

Apparatus and method of encoding the bit stream in video codec Download PDF

Info

Publication number
KR0173915B1
KR0173915B1 KR1019950039246A KR19950039246A KR0173915B1 KR 0173915 B1 KR0173915 B1 KR 0173915B1 KR 1019950039246 A KR1019950039246 A KR 1019950039246A KR 19950039246 A KR19950039246 A KR 19950039246A KR 0173915 B1 KR0173915 B1 KR 0173915B1
Authority
KR
South Korea
Prior art keywords
data
length value
outputting
significant bit
pla
Prior art date
Application number
KR1019950039246A
Other languages
Korean (ko)
Other versions
KR970032147A (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 KR1019950039246A priority Critical patent/KR0173915B1/en
Publication of KR970032147A publication Critical patent/KR970032147A/en
Application granted granted Critical
Publication of KR0173915B1 publication Critical patent/KR0173915B1/en

Links

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/184Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being bits, e.g. of the compressed video stream
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/02Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components
    • H03K19/173Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components using elementary logic circuits as components
    • H03K19/177Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components using elementary logic circuits as components arranged in matrix form
    • H03K19/17704Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components using elementary logic circuits as components arranged in matrix form the logic functions being realised by the interconnection of rows and columns
    • H03K19/17708Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components using elementary logic circuits as components arranged in matrix form the logic functions being realised by the interconnection of rows and columns using an AND matrix followed by an OR matrix, i.e. programmable logic arrays
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/20Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits characterised by logic function, e.g. AND, OR, NOR, NOT circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

본 발명은 비데오 코덱에서의 비트열 부호화 장치 및 그 방법에 관한 것으로, 양자화기(2)로부터 양자화 데이터를 입력받아 숫자열인 경우는 숫자 데이터를 부호화하여 부호화된 데이터와 길이값을 출력하고, 문자열인 경우는 최하위 비트를 최상위 비트의 위치에 저장하여 부호화를 수행한 후 최상위 비트(MSB)와 부호화 데이터 그리고 길이값을 출력하는 PLA부(10), 상기 양자화기(2)로부터 부호(+/-) 데이터를 입력받고, 헤더 결정기(3)로부터 헤더 정보를 입력받고, 문자열인 경우는 상기 PLA부(10)로부터 최상위 비트를 입력받아 출력하는 플립플롭(20), 상기 PLA부(10)로부터 부호화 데이터를 입력받아 입력된 데이터를 쉬프트하여 출력하는 쉬프트 레지스터(30), 상기 PLA부(10)로부터 길이값을 입력받아 길이값을 카운트하여 길이값에 따라 다중화기 제어 신호를 출력하는 다중화 제어기(40), 및 상기 다중화 제어기(40)의 제어 신호에 의해 상기 쉬프트 레지스터(30)의 출력 데이터를 다중화 하여 출력하고, 상기 다중화 제어기(40)의 제어 신호에 의해 상기 플립플롭(20)에 저장된 데이터를 출력하는 다중화기(50)로 구성되어 부호(+/-) 비트 플립플롭에 저장하여 이를 고정시킨 후 나머지 비트를 모두 출력한 후 플립플롭의 데이터를 마지막에 출력하여 부호화하고, 또한 숫자 데이터가 아닌 문자 데이터의 경우에도 코더만 다르게 하여 동일한 하드웨어로 부호화 하므로서 하드웨어의 양을 줄일 수 있는 효과가 있다.The present invention relates to a bit string encoding apparatus and a method thereof in a video codec. In the case of a numeric string receiving quantized data from a quantizer 2, the present invention encodes numeric data to output encoded data and a length value, and then a character string. In the case of performing the encoding by storing the least significant bit in the position of the most significant bit, the PLA unit 10 which outputs the most significant bit (MSB), the encoded data and the length value, and the sign (+/-) from the quantizer 2 ) Data received, header information is received from the header determiner 3, and in the case of a string, the flip-flop 20 and the PLA unit 10 are encoded by receiving the most significant bit from the PLA unit 10 and outputting it. Shift register 30 for receiving data and shifting the input data and outputting the length value from the PLA unit 10 and counting the length value of the multiplexer control signal according to the length value. The output data of the shift register 30 is multiplexed and output by the multiplexing controller 40 and the control signal of the multiplexing controller 40, and the flip-flop is controlled by the control signal of the multiplexing controller 40. It consists of a multiplexer 50 that outputs the data stored in 20), stores it in a sign (+/-) bit flip-flop, fixes it, outputs all the remaining bits, and outputs the data of the flip-flop at the end. In addition, even in the case of character data rather than numeric data, the coder is encoded in the same hardware by different coders, thereby reducing the amount of hardware.

Description

비데오 코덱에서의 비트열 부호화 장치 및 그 방법Bitstream Coding Apparatus and Method in Video Codec

제1도는 본 발명이 적용되는 비데오 코덱의 구성도.1 is a block diagram of a video codec to which the present invention is applied.

제2도는 본 발명의 일실시예에 따른 비트열 부호화 장치의 전체 구성도.2 is an overall configuration diagram of a bit string encoding apparatus according to an embodiment of the present invention.

제3도는 본 발명의 일실시예에 따른 PLA부의 구성도.3 is a block diagram of a PLA unit according to an embodiment of the present invention.

제4도는 본 발명의 일실시예에 따른 전체 흐름도.4 is an overall flowchart according to an embodiment of the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

10 : PLA부 20 : 플립플롭10: PLA part 20: flip-flop

30 : 쉬프트레지스터 40 : 다중화 제어기30: shift register 40: multiplex controller

50 : 다중화기50: multiplexer

본 발명은 비데오 코덱에서의 비트열 부호화 장치 및 그 방법에 관한 것이다.The present invention relates to a bit string encoding apparatus and a method in a video codec.

일반적으로 비데오 코덱에서 부호화 장치는 양자화된 이산 여현 변환(DCT) 계수를 변/복조기를 거쳐 상대방 비데오 코덱으로 전송할 수 있는 비트열로 변환하는 장치를 말한다. 이러한 부호화 장치는 가능한한 비트열을 줄이기 위하여 가변길이 부호를 채택하고 있다. 비데오 코덱에서의 비트열 부화화는 크게 두가지로 나뉜다. 한가지는 양수, 음수를 가지는 부호(+/-)를 가진 숫자를 부호화 하는 것이고, 다른 하나는 이와는 별개로 블록의 종류, 각 블록의 코딩 유무를 나타내는 선택 사항을 부호화하는 것이다. 이 두가지 부호화의 큰 차이점은 숫자를 부호화한 것은 부호(+/-)를 뺀 절대값에 의해 전체 부호(Code) 데이터 중 마지막 한 비트를 제외한 나머지 비트가 결정이 된다는 점이고, 선택 사항을 부호화한 것은 선택 사항 중에 부호(+/-)에 해당하는 것이 없으므로 이와 같은 비트가 없다는 것이다. 그런데, 가변길이 부호화의 특징에 의해 숫자를 부호화할 때에 부호(+/-) 비트를 제일 앞부분에 써줄 수 없기 때문에 종래에는 부호(+/-) 비트를 가변적으로 변하는 부호 데이터의 마지막에 추가적으로 덧붙이는 방법을 사용하였다. 상기와 같은 종래의 방법은 부호(+/-) 비트의 위치가 매우 다양하기 때문에 하드웨어로 구현시 매우 복잡하고 하드웨어의 양이 늘어나는 문제점이 있었다.In general, in a video codec, an encoding apparatus refers to a device for converting a quantized discrete cosine transform (DCT) coefficient into a bit string that may be transmitted to a counterpart video codec through a modulator / demodulator. Such an encoding apparatus adopts a variable length code in order to reduce the bit string as much as possible. There are two major bitstream hatchings in a video codec. One is to encode numbers with positive and negative signs (+/-), and the other is to encode options that indicate the type of block and whether each block is coded separately. The big difference between these two encodings is that the number is encoded by the absolute value minus the sign (+/-), which determines the remaining bits of the entire code data except for the last bit. None of these options correspond to the sign (+/-), so there is no such bit. However, since the coded (+/-) bit cannot be written at the beginning when encoding a number due to the characteristic of variable length coding, conventionally, the coded (+/-) bit is additionally added to the end of the variable data that is variably changed. Method was used. In the conventional method as described above, since the positions of sign (+/-) bits are very diverse, it is very complicated when implemented in hardware, and the amount of hardware is increased.

상기와 같은 종래 기술의 문제점을 해결하기 위하여 안출된 본 발명은 부호(+/-) 비트 플립플롭에 저장하여 이를 고정시킨 후 나머지 비트를 모두 출력한 후 플립플롭의 데이터를 마지막에 출력하여 부호화하고, 또한 숫자 데이터가 아닌 문자 데이터의 경우에도 코더만 다르게 하여 동일한 하드웨어로 부호화 하므로서 하드웨어의 양을 줄일 수 있는 비데오 코덱에서의 비트열 부호화 장치 및 그 방법을 제공하는데 그 목적이 있다.In order to solve the problems of the prior art as described above, the present invention stores in a (+/-) bit flip-flop to fix it, outputs all the remaining bits, and then outputs the data of the flip-flop and encodes it. The present invention also provides a bit stream encoding apparatus and method for a video codec capable of reducing the amount of hardware by encoding only the coder in the case of character data rather than numeric data.

상기의 목적을 달성하기 위한 본 발명은 양자화기로부터 양자화 데이터를 입력받아 숫자열인 경우는 숫자 데이터를 부호화하여 부호화된 데이터와 길이값을 출력하고, 문자열인 경우는 최하위 비트를 최상위 비트 위치에 저장하여 부호화를 수행한 후 최상위 비트(MSB)와 부호화 데이터 그리고 길이값을 출력하는 PLA(Programmed Logic Array, 이하 PLA라 함) 수단, 상기 양자화기로부터 부호(+/-) 데이터를 입력받고, 헤더 결정기로부터 헤더 정보를 입력받고, 문자열인 경우는 상기 PLA 수단으로부터 최상위 비트를 입력받아 출력하는 플립플롭 수단, 상기 PLA 수단으로부터 부호화 데이터를 입력받아 데이터를 쉬프트하여 출력하는 쉬프트 레지스터 수단, 상기 PLA 수단으로부터 길이값을 입력받아 길이값을 카운트하여 길이값에 따라 다중화기 제어 신호를 출력하는 다중화 제어 수단 및 상기 다중화 제어 수단의 제어 신호에 의해 상기 쉬프트 레지스터 수단의 출력 데이터를 다중화 하여 출력하고, 상기 다중화 제어 수단의 제어 신호에 의해 상기 플립플롭 수단에 저장된 데이터를 출력하는 다중화 수단을 포함하는 것을 특징으로 한다.In order to achieve the above object, the present invention receives quantization data from a quantizer, encodes numeric data in the case of a numeric string, outputs encoded data and a length value, and stores the least significant bit in the most significant bit position in the case of a string. After performing the encoding, the PLA (Programmed Logic Array, PLA) means for outputting the most significant bit (MSB), the coded data and the length value, the sign (+ /-) data from the quantizer, the header determiner A flip-flop means for receiving header information from the PLA means and receiving a most significant bit from the PLA means, a shift register means for receiving encoded data from the PLA means and shifting and outputting the data, and a length from the PLA means. Input the value and count the length value and output the multiplexer control signal according to the length value. And multiplexing means for multiplexing and outputting output data of the shift register means by a multiplexing control means and a control signal of the multiplexing control means, and outputting data stored in the flip-flop means by a control signal of the multiplexing control means. It is characterized by.

또한 비데오 코덱에 적용되는 비트율 부호화 방법에 있어서, 양자화기로부터 데이터가 입력되면, 부호(+/-) 데이터와 최하위 비트를 최상위 비트의 위치에 저장한 문자열의 최상위 비트를 플립플롭 수단에 별도 저장하고, 부호화를 수행하여 부호화 데이터와 길이값을 출력하여 길이값을 감소하면서 부호화 데이터를 출력한 후 길이값이 1인지를 판단하는 제1단계; 상기 제1단계에서 길이값이 1이 아니면 길이값을 계속 감소하면서 부호화 데이터를 출력하고, 길이값이 1이면 플립플롭 수단에 저장된 데이터를 출력하고, 한 부호화 블록의 마지막 매크로 블록인지 판단하는 제2단계; 및 상기 제2단계에서 마지막 매크로 블록이 아니면 초기 상태로 복귀하여 부호화 과정을 반복하고, 마지막 매크로 블록이면 헤더 결정기로부터 헤더 정보를 플립플롭 수단에 입력받아 헤더 정보를 마지막에 삽입하여 출력한 후 종료하는 제3단계를 포함하는 것을 특징으로 한다.In the bit rate encoding method applied to the video codec, when data is input from the quantizer, the most significant bit of the string in which the sign (+/-) data and the least significant bit are stored in the position of the most significant bit is separately stored in the flip-flop means. A first step of performing encoding and outputting encoded data and a length value to reduce the length value and outputting the encoded data and then determining whether the length value is 1; In the first step, if the length value is not 1, the coded data is output while the length value is continuously decreased; if the length value is 1, the data stored in the flip-flop means is output; step; And repeating the encoding process by returning to an initial state if not the last macroblock in the second step. If the last macroblock, the header information is inputted to the flip-flop means from the header determiner, and the header information is inserted and outputted last. It characterized in that it comprises a third step.

이하, 첨부된 도면을 참조하여 본 발명의 일실시예를 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described an embodiment of the present invention;

제1도는 본 발명이 적용되는 비데오 코덱의 구성도로서, 도면에서 부호1은 이산 여현 변환기, 부호2는 양자화기, 부호3은 헤더 결정기, 부호4는 본 발명인 부호화기를 각각 나타낸다.FIG. 1 is a block diagram of a video codec to which the present invention is applied. In the drawing, code 1 represents a discrete cosine converter, code 2 represents a quantizer, code 3 represents a header determiner, and code 4 represents an encoder of the present invention.

본 발명의 동작을 살펴보면, 이산 여현 변환기(1)는 입력된 데이터를 이산 여현 변환하여 양자화기(2)로 출력한다. 상기 양자화기(2)는 이산 여현 변환된 아날로그 신호를 양자화 하여 디지털 신호를 부호화기(4)로 출력한다. 헤더 결정기(3)는 각 부호화 블록별로 부호화가 수행된 상태를 나타내기 위해 고정 길이의 헤더 정보를 상기 보호화기(4)에 출력한다. 상기 부호화기(4)는 상기 헤더 결정기(3)의 출력과 상기 양자화기(2)의 출력을 입력받아 부호화하여 부호화된 비트열을 출력한다.Referring to the operation of the present invention, the discrete cosine converter 1 converts the input data to discrete cosine and outputs it to the quantizer 2. The quantizer 2 quantizes the discrete cosine transformed analog signal and outputs a digital signal to the encoder 4. The header determiner 3 outputs fixed length header information to the protector 4 to indicate a state in which encoding is performed for each coding block. The encoder 4 receives an output of the header determiner 3 and an output of the quantizer 2 and outputs the encoded bit string.

제2도는 본 발명의 일실시예에 따른 비트열 부호화 장치의 전체 구성도로서, 도면에서 부호 10은 PLA부, 부호 20은 플립플롭, 부호 30은 쉬프트 레지스터, 부호 40은 다중화 제어기, 부호 50은 다중화기를 각각 나타낸다.2 is an overall configuration diagram of a bit string encoding apparatus according to an embodiment of the present invention, in which 10 is a PLA unit, 20 is a flip-flop, 30 is a shift register, 40 is a multiplexing controller, and 50 is a Each multiplexer is shown.

본 발명은 양자화기(2)로부터 양자화 데이터를 입력받아 숫자열인 경우는 숫자 데이터를 부호화하여 부호화된 데이터와 길이값을 출력하고, 문자열인 경우는 최하위 비트를 최상위 비트의 위치에 저장하여 부호화를 수행한 후 최상위 비트(MSB)와 부호화 데이터 그리고 길이값을 출력하는 PLA부(10), 상기 양자화기(2)로부터 부호(+/-) 데이터를 입력받고, 헤더 결정기(3)로부터 헤더 정보를 입력받고, 문자열인 경우는 상기 PLA부(10)로부터 최상위 비트를 입력받아 출력하는 플립플롭(20), 상기 PLA부(10)로부터 부호화 데이터를 입력받아 입력된 데이터를 쉬프트하여 출력하는 쉬프트 레지스터(30), 상기 PLA부(10)로부터 길이값을 입력받아 길이값을 카운트하여 길이값에 따라 다중화기 제어 신호를 출력하는 다중화 제어기(40), 및 상기 다중화 제어기(40)의 제어 신호에 의해 상기 쉬프트 레지스터(30)의 출력 데이터를 다중화 하여 출력하고, 상기 다중화 제어기(40)의 제어 신호에 의해 상기 플립플롭(20)에 저장된 데이터를 출력하는 다중화기(50)로 구성된다.The present invention receives the quantization data from the quantizer 2, encodes the numeric data in the case of the numeric string, outputs the encoded data and the length value, and stores the least significant bit in the position of the most significant bit in the case of the string, thereby performing encoding. After performing the most significant bit (MSB), the coded data and the PLA unit 10 for outputting the length value, the sign (+ /-) data is input from the quantizer 2, the header information from the header determiner (3) In the case of receiving a character string, a flip-flop 20 which receives the most significant bit from the PLA unit 10 and outputs it, and a shift register which receives encoded data from the PLA unit 10 and shifts the input data and outputs the shift register ( 30), the multiplexing controller 40 for receiving the length value from the PLA unit 10 and counting the length value and outputting a multiplexer control signal according to the length value, and the control scene of the multiplexing controller 40 By comprises a multiplexer (50) for outputting data stored in the flip-flop 20 by the control signal from the multiplexing controller 40 outputs the multiplexing output data of the shift register 30, and.

먼저 숫자 데이터에 대한 부호화 과정을 살펴보면, 양자화기(2)로부터 입력된 부호(+/-) 데이터는 플립플롭(20)에 저장되고, 나머지 양자화된 디지탈 데이터는 PLA부(10)에 입력된다. PLA부(10)는 입력된 양자화 데이터를 부호화하여 부호화된 데이터를 쉬프트 레지스터(30)에 출력한다. 또한 PLA부(10)는 입력된 양자화 데이터의 길이값을 다중화 제어기(40)에 출력한다. 쉬프트 레지스터(30)는 1비트씩 입력된 데이터를 쉬프트 하면서 다중화기(50)로 1비트씩 출력한다. 다중화 제어기(40)는 길이값을 감소하면서 카운트하여 길이값이 1이 아니면 쉬프트 레지스터(30)에 저장된 데이터가 출력될 수 있도록 다중화기(50)에 제어 신호를 출력하고, 길이값이 1이 되면 플립플롭(20)에 저장되었던 부호(+/-) 데이터가 출력될 수 있도록 다중화기(50)에 제어 신호를 출력한다. 다중화기(50)는 상기 다중화 제어기(40)의 제어에 의해 쉬프트 레지스터(30)에 저장된 데이터를 출력한 후 플립플롭(20)에 저장된 부호(+/-) 데이터를 비트열의 마지막에 출력한다. 상기와 같은 동작을 거쳐 한 블록에 대한 부호화가 완료되는 시점에 헤더 결정기(3)로부터 입력된 고정 길이의 헤더 정보를 플립플롭(20)에 1비트씩 저장하면서 부호화 블록의 마지막에 헤더 정보를 삽입하여 출력하여 한 블록에 대한 부호화를 완료한다.First, referring to the encoding process for the numeric data, sign (+/-) data input from the quantizer 2 is stored in the flip-flop 20, and the remaining quantized digital data is input to the PLA unit 10. The PLA unit 10 encodes the input quantized data and outputs the encoded data to the shift register 30. In addition, the PLA unit 10 outputs the length value of the input quantization data to the multiplexing controller 40. The shift register 30 outputs bit by bit to the multiplexer 50 while shifting data input by bit. The multiplexing controller 40 outputs a control signal to the multiplexer 50 so that the data stored in the shift register 30 can be outputted if the length value is decreased and counted while the length value is not 1, and the length value is 1, The control signal is output to the multiplexer 50 so that the sign (+/-) data stored in the flip-flop 20 can be output. The multiplexer 50 outputs data stored in the shift register 30 by the control of the multiplexing controller 40 and then outputs sign (+/−) data stored in the flip-flop 20 at the end of the bit string. Inserting header information at the end of the coding block while storing the fixed length header information inputted from the header determiner 3 in the flip-flop 20 at the time when encoding of one block is completed through the above operation. Outputs to complete the encoding of one block.

다음으로 문자열에 대한 부호화 과정은 숫자 데이터와는 달리 부호(+/-) 데이터가 존재하지 않으므로 PLA부(10)에서 입력된 비트열의 최하위 비트를 최상위 비트 위치에 저장하여 상기 최상위 비트를 플립플롭(20)에 출력하여 숫자 데이터에 대한 부호화 과정과 동일한 제어 동작을 통해 부호화를 수행한다.Next, since encoding (+/-) data does not exist unlike numeric data, the encoding process for the character string stores the least significant bit of the bit string input from the PLA unit 10 at the most significant bit position and flips the most significant bit. 20) and performs encoding through the same control operation as that of encoding numeric data.

제3도는 본 발명의 일실시예에 따른 PLA부(10)의 구성도로서, PLA부(10)는 양자화기(2)로부터 숫자 데이터의 양자화된 데이터를 입력받아 부호화하여 쉬프트 레지스터(30)에 출력하는 숫자 비트열 PLA부(11)와 상기 양자화기(2)로부터 양자화 데이터를 입력받아 길이값을 계산하여 다중화 제어기(40)에 출력하는 제1길이 PLA부(12)와 상기 양자화기(2)로부터 문자열의 양자화 데이터를 입력받아 최하위 비트를 최상위 비트의 위치에 저장하여 상기 최상위 비트에 저장된 데이타를 플립플롭(20)에 출력하고, 부호화된 데이터를 쉬프트 레지스터(30)에 출력하는 문자 비트열 PLA부(13) 및 상기 양자화기(2)로부터 양자화 데이터를 입력받아 길이값을 산출하여 상기 다중화 제어기(40)에 출력하는 제2길이 PLA부(14)로 구성된다.3 is a block diagram of the PLA unit 10 according to an embodiment of the present invention, the PLA unit 10 receives the quantized data of the numeric data from the quantizer 2 and encodes it to the shift register 30 The first length PLA unit 12 and the quantizer 2 that receive the quantized data from the numeric bit string PLA unit 11 and the quantizer 2, calculate a length value, and output the calculated quantization data to the multiplexing controller 40. Character string string receiving the quantized data of the character string from the string), storing the least significant bit at the position of the most significant bit, outputting the data stored in the most significant bit to the flip-flop 20, and outputting the encoded data to the shift register 30. The PLA unit 13 and the second length PLA unit 14 which receives the quantization data from the quantizer 2, calculates a length value, and outputs the length value to the multiplexing controller 40.

제4도는 본 발명의 일실시예에 따른 전체 흐름도이다.4 is an overall flowchart according to an embodiment of the present invention.

양자화기(2)로부터 데이타가 입력되면(100) 부호(+/-) 데이터와 최하위 비트를 최상위 비트의 위치에 저장한 문자열의 최상위 비트를 플립플롭(20)에 저장한다(200). PLA부(10)는 부호화 데이터와 길이값을 출력하고(300), 길이값을 감소하면서 부호화 데이터를 출력하고(400), 길이값이 1인지를 판단한다(500). 길이값이 1이 아니면 길이값을 계속 감소하면서 부호화 데이터를 출력하고(400), 길이값이 1이 되면 플립플롭(20)에 저장된 데이터를 출력하고(600), 한 부호화 블록의 마지막 매크로 블록인지 판단한다(700). 마지막 매크로 블록이 아니면 초기 상태로 복귀하여 부호화 과정을 반복하고(100 내지 700), 마지막 매크로 블록이면 헤더 결정기(3)로부터 헤더 정보를 플립플롭(20)에 입력받아(800) 헤더 정보를 마지막에 삽입하여 출력하고(900), 종료한다.When data is input from the quantizer 2 (100), the most significant bit of the string in which the sign (+/-) data and the least significant bit are stored in the position of the most significant bit is stored in the flip-flop 20 (200). The PLA unit 10 outputs the encoded data and the length value (300), outputs the encoded data while reducing the length value (400), and determines whether the length value is 1 (500). If the length value is not 1, the coded data is output while the length value is continuously decreased (400). If the length value is 1, the data stored in the flip-flop 20 is outputted (600). Determine (700). If not the last macro block, the process returns to the initial state and repeats the encoding process (100 to 700). If the last macro block, the header information is input from the header determiner 3 to the flip-flop 20 (800). Insert and output (900) and end.

상기와 같이 구성되어 동작하는 본 발명은 부호(+/-) 비트 플립플롭에 저장하여 이를 고정시킨후 나머지 비트를 모두 출력한 후 플립플롭의 데이터를 마지막에 출력하여 부호화하고, 또한 숫자 데이터가 아닌 문자 데이터의 경우에도 코더만 다르게 하여 동일한 하드웨어로 부호화 하므로서 하드웨어의 양을 줄일 수 있는 효과가 있다.The present invention constructed and operated as described above stores and stores it in a sign (+/-) bit flip-flop, outputs all the remaining bits, and then outputs and encodes data of the flip-flop at the end. In the case of character data, only the coder is differently encoded by using the same hardware, thereby reducing the amount of hardware.

Claims (3)

양자화기(2)로부터 양자화 데이터를 입력받아 숫자열인 경우는 숫자 데이터를 부호화하여 부호화된 데이터와 길이값을 출력하고, 문자열인 경우는 최하위 비트를 최상위 비트 위치에 저장하여 부호화를 수행한 후 최상위 비트(MSB)와 부호화 데이터 그리고 길이값을 출력하는 PLA(Programmed Logic Array, 이하 PLA라 함) 수단(10); 상기 양자화기(2)로부터 부호(+/-) 데이터를 입력받고, 헤더 결정기(3)로부터 헤더 정보를 입력받고, 문자열인 경우는 상기 PLA부(10)으로부터 최상위 비트를 입력받아 출력하는 플립플롭수단(20); 상기 PLA부(10)으로부터 부호화 데이터를 입력받아 입력된 데이터를 쉬프트하여 출력하는 쉬프트 레지스터수단(30); 상기 PLA부(10)으로부터 길이값을 입력받아 길이값을 카운트하여 길이값에 따라 다중화기 제어 신호를 출력하는 다중화 제어수단(40); 및 상기 다중화 제어 수단(40)의 제어 신호에 의해 상기 쉬프트 레지스터(30)의 출력 데이터를 다중화 하여 출력하고, 상기 다중화 제어 수단(40)의 제어 신호에 의해 상기 플립플롭 수단(20)에 저장된 데이터를 출력하는 다중화 수단(50)을 포함하는 것을 특징으로 하는 비데오 코덱에서의 비트열 부호화 장치.The quantizer 2 receives quantized data and encodes the numeric data in the case of the numeric string, outputs the encoded data and the length value, and in the case of the string, stores the least significant bit in the most significant bit position before performing encoding. PLA (Programmed Logic Array, PLA) means for outputting the bit (MSB), the coded data and the length value (10); A flip-flop that receives sign (+/-) data from the quantizer 2, receives header information from the header determiner 3, and receives a most significant bit from the PLA unit 10 in the case of a string. Means 20; Shift register means (30) which receives encoded data from the PLA unit (10) and shifts and outputs the input data; Multiplexing control means (40) for receiving the length value from the PLA unit (10) and counting the length value and outputting a multiplexer control signal according to the length value; And outputting the output data of the shift register 30 by multiplexing the control signal of the multiplexing control means 40 and storing the data in the flip-flop means 20 by the control signal of the multiplexing control means 40. And a multiplexing means (50) for outputting the bit stream encoding apparatus of the video codec. 제1항에 있어서, 상기 PLA수단(10)은, 양자화기(2)로부터 숫자 데이터의 양자화된 데이터를 입력받아 부호화하여 쉬프트 레지스터 수단(30)에 출력하는 숫자 비트열 PLA 수단(11); 상기 양자화기(2)로부터 양자화 데이터를 입력받아 길이값을 계산하여 다중화 제어 수단(40)에 출력하는 제1길이 PLA 수단(12); 상기 양자화기(2)로부터 문자열의 양자화 데이터를 입력받아 최하위 비트를 최상위 비트의 위치에 저장하여 상기 최상위 비트에 저장된 데이터를 플립플롭 수단(20)에 출력하고, 부호화된 데이터를 쉬프트 레지스터 수단(30)에 출력하는 문자 비트열 PLA 수단(13); 및 상기 양자화기(2)로부터 양자화 데이터를 입력받아 길이값을 산출하여 상기 다중화 제어 수단(40)에 출력하는 제2길이 PLA 수단(14)을 포함하는 것을 특징으로 하는 비데오 코덱에서의 비트열 부호화 장치.The apparatus of claim 1, wherein the PLA means (10) comprises: numeric bit string PLA means (11) for receiving quantized data of numeric data from the quantizer (2), encoding the encoded quantized data, and outputting the encoded data to the shift register means (30); First length PLA means (12) for receiving quantization data from the quantizer (2), calculating a length value, and outputting the calculated length value to the multiplexing control means (40); Receives the quantized data of the character string from the quantizer 2, stores the least significant bit at the position of the most significant bit, outputs the data stored in the most significant bit to the flip-flop means 20, and outputs the encoded data to the shift register means 30. A character bit string PLA means 13 outputting the same; And second length PLA means 14 for receiving quantization data from the quantizer 2 and calculating a length value and outputting the quantized data to the multiplexing control means 40. Device. 비데오 코덱에 적용되는 비트율 부호화 방법에 있어서, 양자화기(2)로부터 데이터가 입력되면, 부호(+/-) 데이터와 최하위 비트를 최상위 비트의 위치에 저장한 문자열의 최상위 비트를 플립플롭(20)에 별도 저장하고, 부호화를 수행하여 부호화 데이터와 길이값을 출력하여 길이값을 감소하면서 부호화 데이터를 출력한 후 길이값이 1인지를 판단하는 제1단계(100 내지 500); 상기 제1단계(100 내지 500)에서 길이값이 1이 아니면 길이값을 계속 감소하면서 부호화 데이터를 출력하고, 길이값이 1이면 플립플롭(20)에 저장된 데이터를 출력하고, 한 부호화 블록의 마지막 매크로 블록인지 판단하는 제2단계(600, 700); 및 상기 제2단계(600, 700)에서 마지막 매크로 블록이 아니면 초기 상태로 복귀하여 부호화 과정을 반복하고, 마지막 매크로 블록이면 헤더결정기(3)로부터 헤더 정보를 플립플롭(20)에 입력받아 헤더 정보를 마지막에 삽입하여 출력한 후 종료하는 제3단계(800, 900)를 포함하는 것을 특징으로 하는 비데오 코덱에서의 비트열 부호화 방법.In the bit rate encoding method applied to the video codec, when data is input from the quantizer 2, the most significant bit of the string in which the sign (+/-) data and the least significant bit are stored in the position of the most significant bit is flip-flop (20). A first step (100 to 500) of separately storing the data in a coded manner, outputting the encoded data and the length value, outputting the encoded data while reducing the length value, and determining whether the length value is 1; In the first step (100 to 500), if the length value is not 1, the encoded data is output while the length value is continuously decreased, and if the length value is 1, the data stored in the flip-flop 20 is output, and the last of one coding block is output. Determining whether it is a macro block (step 600, 700); And returning to the initial state if the last macroblock is not the last macroblock in the second step (600, 700), and if the last macroblock, the header information is received from the header determiner (3) into the flip-flop (20). And a third step (800, 900) of inserting and outputting at the end and ending the output.
KR1019950039246A 1995-11-01 1995-11-01 Apparatus and method of encoding the bit stream in video codec KR0173915B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950039246A KR0173915B1 (en) 1995-11-01 1995-11-01 Apparatus and method of encoding the bit stream in video codec

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1019950039246A KR0173915B1 (en) 1995-11-01 1995-11-01 Apparatus and method of encoding the bit stream in video codec
JPPCT/JP96/676 1995-11-30

Publications (2)

Publication Number Publication Date
KR970032147A KR970032147A (en) 1997-06-26
KR0173915B1 true KR0173915B1 (en) 1999-03-20

Family

ID=19432678

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950039246A KR0173915B1 (en) 1995-11-01 1995-11-01 Apparatus and method of encoding the bit stream in video codec

Country Status (1)

Country Link
KR (1) KR0173915B1 (en)

Also Published As

Publication number Publication date
KR970032147A (en) 1997-06-26

Similar Documents

Publication Publication Date Title
FI91474B (en) The video encoder
KR100341063B1 (en) Rate control apparatus and method for real-time video communication
EP0771120A3 (en) Video encoding and decoding apparatus
RU99109015A (en) ADAPTIVE SPEED CONTROL FOR COMPRESSING A DIGITAL VIDEO
KR970060176A (en) Encoding device, encoding method, transmission device, transmission method and recording medium
KR920003674A (en) Data compression system and method
KR20050067349A (en) A variable length coding apparatus and a variable length coding method
KR930702852A (en) Image data compression device
KR0173915B1 (en) Apparatus and method of encoding the bit stream in video codec
KR960013079A (en) Image information encoding / decoding device to secure minimum compression rate and limit data rate
JPH08275168A (en) Method and apparatus for run-length coding
JP2002094992A (en) Encoded data length detector and its method and image encoder
KR100590522B1 (en) Coding apparatus and method for orientation interpolator node
JPS6352812B2 (en)
KR100214838B1 (en) Variable length coder
KR100686354B1 (en) Huffman decoding method and device for using variable length tree
KR0162307B1 (en) High density recording method of high quality vcr
JPH06178282A (en) Picture coder
JPH06112836A (en) Quantizer
KR970014350A (en) Video signal coding device
KR100476389B1 (en) Binary Data Encoding Method of Image Signal
KR0184405B1 (en) Coding method and apparatus
KR100245787B1 (en) Apparatus for generating run and amp in digital video cassette recorder
KR0162348B1 (en) Bit packing device for digital image processor
KR100202393B1 (en) Qno determining device

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: 20121101

Year of fee payment: 15

FPAY Annual fee payment

Payment date: 20131101

Year of fee payment: 16

LAPS Lapse due to unpaid annual fee