KR100246641B1 - Digital vcr formatter - Google Patents

Digital vcr formatter Download PDF

Info

Publication number
KR100246641B1
KR100246641B1 KR1019970029961A KR19970029961A KR100246641B1 KR 100246641 B1 KR100246641 B1 KR 100246641B1 KR 1019970029961 A KR1019970029961 A KR 1019970029961A KR 19970029961 A KR19970029961 A KR 19970029961A KR 100246641 B1 KR100246641 B1 KR 100246641B1
Authority
KR
South Korea
Prior art keywords
segment
memory
data
unit
units
Prior art date
Application number
KR1019970029961A
Other languages
Korean (ko)
Other versions
KR19990005743A (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 KR1019970029961A priority Critical patent/KR100246641B1/en
Publication of KR19990005743A publication Critical patent/KR19990005743A/en
Application granted granted Critical
Publication of KR100246641B1 publication Critical patent/KR100246641B1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/12Formatting, e.g. arrangement of data block or words on the record carriers
    • G11B20/1201Formatting, e.g. arrangement of data block or words on the record carriers on tapes
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/12Formatting, e.g. arrangement of data block or words on the record carriers
    • G11B2020/1264Formatting, e.g. arrangement of data block or words on the record carriers wherein the formatting concerns a specific kind of data
    • G11B2020/1265Control data, system data or management information, i.e. data used to access or process user data
    • G11B2020/1285Status of the record carrier, e.g. space bit maps, flags indicating a formatting status or a write permission
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B2220/00Record carriers by type
    • G11B2220/90Tape-like record carriers

Abstract

본 발명은 디지털 브이씨알의 포멧팅(Formatting) 장치에 관한 것으로, 가변 길이 부호화된 세그먼트 단위의 데이터를 먼저 16비트 단위로 패킹한 다음 매크로 블럭 단위로 저장함으로써 세그먼트 메모리의 크기와 처리 시간을 줄이도록 하고, 또한 한 세그먼트 기간 즉 2048클럭 동안에 세그먼트 데이타의 저장 및 포맷팅, 그리고 ECC로의 전송이 이루어 질 수 있도록 하는 디지털 브이씨알의 포맷팅 장치를 제공하는데 그 목적이 있는 것으로, 이와같은 목적은 가변길이 부호화된 세그먼트 단위의 데이타를 입력받아 16비트 단위의 세그먼트 데이타로 패킹하는 제 1 패커부; 핑퐁 구조로 구성되어 상기 제 1 패커부로부터 출력되는 16비트 단위의 세그먼트 데이터를 매크로 블럭단위로 저장하는 세그먼트 메모리; 상기 세그먼트 메모리의 출력을 인가받아 이를 세그먼트 플래그 메모리에 저장된 정보를 근거로 각 패스 과정에 의해 패킹하는 제 2 패커부; 상기 제 2 패커부에 의해 패킹된 세그먼트 데이타를 소정 비트단위로 재배열하여 ECC로 출력하는 ECC 메모리; 상기 세그먼트 메모리에 저장된 가변길이 부호화된 세그먼트 단위 데이타의 어드레스 정보를 각 패스 과정마다 저장하는 세그먼트 플래그 메모리로 구성됨으로써 달성된다.The present invention relates to a device for formatting a digital VR, and to reduce the size and processing time of a segment memory by first packing the data of a variable length coded segment unit in 16 bit units and then storing the data in macro block units. It is also an object of the present invention to provide a digital VRL formatting apparatus that allows storage and formatting of segment data and transmission to ECC during one segment period, that is, 2048 clocks. A first packer unit receiving the data in segment units and packing the segment data in 16 bit units; A segment memory having a ping-pong structure and storing segment data of 16-bit units output from the first packer unit in macroblock units; A second packer unit receiving the output of the segment memory and packing it by each pass process based on information stored in the segment flag memory; An ECC memory for rearranging the segment data packed by the second packer unit in predetermined bit units and outputting the segment data; The segment flag memory stores address information of variable length coded segment unit data stored in the segment memory for each pass process.

Description

디지털 브이씨알의 포맷팅 장치(Formatting Apparatus for a Digital VCR)Formatting Apparatus for a Digital VCR

본 발명은 디지털 브이씨알의 포멧팅(Formatting) 장치에 있어서, 세그먼트 단위의 데이터를 저장하기 위한 핑퐁 구조로 구성된 메모리의 크기를 줄일 수 있도록 하는 디지털 브이씨알의 포멧팅(Formatting) 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to a formatting apparatus for digital BCs, which can reduce the size of a memory having a ping-pong structure for storing data in segments.

일반적으로 DCT 블록의 데이터를 양자화(Quantization)하기 위해서는 3가지의 양자화 벡터, 즉 클래스 번호(Class No.), 영역 번호(Area No.), 양자화 번호(QNO)가 필요하다.In general, three quantization vectors, that is, a class number, an area number, and a quantization number QNO, are required to quantize data of a DCT block.

클래스 번호(Class No.)는 DCT 블록의 각 화소의 계수에 의해서 결정되며, 영역 번호(Area No.)는 DCT 블록 단위로 결정되며, 또한 양자화 번호(QNO)는 매크로 블록 단위로 결정된다.The class number (Class No.) is determined by the coefficient of each pixel of the DCT block, the area number (Area No.) is determined in units of DCT blocks, and the quantization number (QNO) is determined in units of macro blocks.

이후 양자화된 데이터는 각 DCT 블록 단위로 연속되는 ??0??의 갯수와 AC 계수의 크기를 나타내는 RLC(Run-Length-Coding), 즉 (RUN, AMP)값을 발생하고, 이 값을 기 규정된 코드 표에 의해 VLC(Variable-Length-Coding)를 수행한다.Subsequently, the quantized data generates RLC (Run-Length-Coding), that is, (RUN, AMP) value representing the number of ?? 0 ?? and the magnitude of the AC coefficient in succession for each DCT block. VLC (Variable-Length-Coding) is performed by the prescribed code table.

이렇게 VLC까지 수행된 데이터는 즉, 가변 길이 부호화된 DCT 블록의 AC 데이터는 도 1 에 도시된 바와 같이 핑퐁(ping-pong) 구조를 가지는 제 1 세그먼트 메모리(100)와 제 2 세그먼트 메모리(110)에 세그먼트 단위로 저장된다.The data performed up to the VLC, that is, the AC data of the variable length coded DCT block, has a ping-pong structure as shown in FIG. 1. Are stored in segments.

즉, N번째의 세그먼트 블록이 제 1 세그먼트 메모리(100)에 라이트된 다음 포맷터(120)로 리드되기 시작하면, 제 2 세그먼트 메모리(110)는 N+1번째 세그먼트 블록을 입력받아 라이트 하게 된다.That is, when the N-th segment block is written to the first segment memory 100 and then started to be read into the formatter 120, the second segment memory 110 receives and writes the N + 1-th segment block.

또한, 상기 제 2 세그먼트 메모리(110)에 N+1번째 세그먼트 블록이 라이트 완료된 다음 패커부(120)로 리드되기 시작하면, 제 1 세그먼트 메모리(100)는 N+2번째 세그먼트 블록을 인가 받아 이를 라이트 하게 된다.In addition, when the N + 1th segment block is written to the second segment memory 110 and then read to the packer unit 120, the first segment memory 100 receives the N + 2th segment block and receives the N + 2th segment block. Will be written.

그러므로, 제 1 세그먼트 메모리(100)와 제 2 세그먼트 메모리(110)는 같은 크기를 갖는 메모리이며, 1 세그먼트의 크기(1920 워드)를 저장할 수 있는 용량이 되어야 한다.Therefore, the first segment memory 100 and the second segment memory 110 are the memory having the same size, and should be a capacity capable of storing the size of one segment (1920 words).

즉, 디지털 브이씨알의 디포맷팅은 세그먼트 단위로 처리되기 때문에 1 세그먼트 단위를 저장할 수 있는 용량이 되어야 하며, 참고로 1 세그먼트(1920 바이트)는 5개의 매크로 블록(384 바이트)으로 구성되고, 1 매크로 블록은 6개의 DCT 블록으로 구성되며, 1 DCT 블록은 64 바이트로 구성된다.In other words, since the deformatting of digital VR is processed by segment, it should be a capacity to store 1 segment unit. For reference, 1 segment (1920 byte) is composed of 5 macro blocks (384 bytes), and 1 macro is used. The block consists of six DCT blocks, and one DCT block consists of 64 bytes.

따라서, 상기 제 1 세그먼트 메모리(100) 및 제 2 세그먼트 메모리(110)는 각 DCT 블록이 저장될 수 있도록 항시 DCT 블록당 64 워드의 공간을 확보해 두어야 한다.Therefore, the first segment memory 100 and the second segment memory 110 should always have a space of 64 words per DCT block so that each DCT block can be stored.

이렇게 저장된 데이터를 패커부(120)에서 입력받아 16비트 단위로 패킹(packing)을 행하게 되는데, 현재 상기 제 1 세그먼트 메모리(100)에 저장된 DCT 블록을 패스 1(pass 1), 패스 2(pass 2), 패스 3(pass 3) 과정에 의해 패킹중이라면 그 결과는 핑퐁 구조로 된 제 1 ECC 메모리(130)에 저장되고, 제 2 세그먼트 메모리(110)에 저장된 DCT 블록을 패킹팅 중이라면 그 결과는 제 2 ECC 메모리(140)에 저장된다.The stored data is received from the packer unit 120 and packed in units of 16 bits. The DCT block currently stored in the first segment memory 100 is passed through pass 1 and pass 2. ), The result is stored in the first ECC memory 130 having a ping-pong structure, and the result is a result of packing the DCT block stored in the second segment memory 110 if the packing is performed by a pass 3 process. Is stored in the second ECC memory 140.

여기서 패스 1(pass 1) 과정은 DCT 블록 단위의 포멧팅 과정이다. 즉, 각 블록단위로 할당된 영역에 가변길이 부호화 코드를 패킹하여 저장하고, 남으면 제 1 보조 메모리(150)에 저장된다.Here, the pass 1 process is a formatting process in units of DCT blocks. That is, the variable length coded code is packed and stored in an area allocated to each block unit, and when stored, the variable length coding code is stored in the first auxiliary memory 150.

패스 2(pass 2) 과정은 매크로 블록 단위의 포맷팅 과정이다. 즉, 매크로 블록단위로 할당된 77바이트 영역중 패스 1 과정후의 빈 영역에 패스 1 과정후에 제 1 보조 메모리(150)에 저장된 자기 매크로 블록 데이타를 패킹하여 저장한다.The pass 2 process is a formatting process in macro block units. That is, the magnetic macroblock data stored in the first auxiliary memory 150 after the pass 1 process is packed and stored in an empty area after the pass 1 process among the 77-byte areas allocated in units of macro blocks.

이 과정에서 저장되지 못한 유효 비트도 상기 패스 1(pass 1) 과정과 같이 여분의 메모리인 제 2 보조 메모리(160)에 저장된다.Valid bits that are not stored in this process are also stored in the second auxiliary memory 160, which is an extra memory as in the pass 1 process.

패스 3(pass 3) 과정은 DCT 블록과 매크로 블록의 구분 없이 세그먼트 내의 30개 DCT 블록 모두에 대해 상기 패스 2(pass 2) 과정에서 저장되지 못한 유효 비트를 재차 패킹하여 빈곳에 저장하는 과정이다.A pass 3 process is a process of repacking valid bits not stored in the pass 2 process for all 30 DCT blocks in a segment without distinguishing the DCT block and the macro block and storing them in an empty place.

이 과정에서도 저장되지 못한 유효 비트는 버리게 된다.This process also discards valid bits that were not stored.

상기의 동작에 의해 패킹된 가변길이 부호화된 데이타는 핑퐁 구조의 제 1 ECC 메모리(130) 및 제 2 ECC 메모리(140)에 저장된 다음 ECC(Error Correcting Coding)부로 출력되는데, 이의 전체 동작을 도 2 를 참조하여 설명된다.The variable length coded data packed by the above operation is stored in the first ECC memory 130 and the second ECC memory 140 having a ping-pong structure, and then output to the error correcting coding (ECC) unit. It is explained with reference to.

보통 한 세그먼트 데이타를 저장하거나, 포맷팅하는 경우 2048개의 클럭동안 이의 동작이 이루어지는데, 먼저 처음 2048클럭동안 현재 인가되는 가변길이 부호화된 세그먼트 단위의 데이타를 제 1 세그먼트 메모리(100)에 저장하고, 다음 2048클럭동안 두번째 인가되는 가변길이 부호화된 세그먼트 단위의 데이타를 제 2 세그먼트 메모리(110)에 저장하게 된다.Usually, when storing or formatting one segment data, its operation is performed for 2048 clocks. First, data of a variable length coded segment unit currently applied for the first 2048 clocks is stored in the first segment memory 100, and then During the 2048 clock, data of a variable length coded segment unit applied second is stored in the second segment memory 110.

이때, 상기 제 1 세그먼트 메모리(100)에 저장된 세그먼트 단위의 데이타는 패커부(120)에 의해 포맷팅되어 제 1 ECC 메모리(130)에 저장된다.In this case, the data of the segment unit stored in the first segment memory 100 is formatted by the packer unit 120 and stored in the first ECC memory 130.

세번째 2048클럭동안에는 제 1 세그먼트 메모리(100)에 세번째의 가변길이 부호화된 세그먼트 단위의 데이타를 저장함과 아울러 제 2 세그먼트 메모리(110)에 저장된 데이타를 패커부(120)에서 패킹하게 되고, 또한 제 1 ECC 메모리(130)에 저장된 첫번째 가변길이 부호화된 세그먼트 단위의 데이타를 ECC부로 전송하게 된다.During the third 2048 clock, the data of the third variable length coded segment unit is stored in the first segment memory 100, and the data stored in the second segment memory 110 is packed by the packer unit 120. The first variable length encoded segment data stored in the ECC memory 130 is transmitted to the ECC unit.

이와같은 동작을 마지막 가변길이 부호화된 세그먼트 단위의 데이타를 ECC부로 전송할때까지 반복하게 된다.This operation is repeated until the last variable length coded segment unit data is transmitted to the ECC unit.

그런데, 이와 같은 경우 가변 길이 부호화된 하나의 DCT 블록의 크기가 최대 64 워드의 크기를 가지므로 최악의 경우를 대비한 64 워드의 공간을 항시 확보해 두어야 하므로, 한 세그먼트의 데이터를 저장하기 위해서는 핑퐁 구조를 가지는 세그먼트 메모리가 각각 1920 워드의 크기를 저장할 수 있는 용량이 되어야 한다.However, in this case, since the size of one variable-length coded DCT block has a maximum size of 64 words, 64 words of space for the worst case should be secured at all times. A segmented memory having a structure must be capable of storing a size of 1920 words each.

또한, 세그먼트 단위 데이타의 저장, 패킹, ECC로의 전송이 각각의 2048클럭동안 이루어지므로 그만큼 시간이 소요되므로 고속의 처리소자가 필요로 하게 되어 원가상승의 요인이 되는 문제점이 있다.In addition, since the storage, packing, and transmission to ECC are performed for each 2048 clocks, segment processing of the data requires a high-speed processing device, which causes cost increase.

따라서, 본 발명은 이러한 문제점을 감안하여, 가변길이 부호화된 세그먼트 단위의 데이타를 먼저 16비트 단위로 패킹한 다음 매크로 블럭단위로 저장함으로써 세그먼트 메모리의 크기를 줄이도록 하고, 또한 한 세그먼트 기간 즉 2048클럭 동안에 세그먼트 데이타의 저장 및 포맷팅, 그리고 ECC로의 전송이 이루어 질 수 있도록 하는 디지털 브이씨알의 포맷팅 장치를 제공하는데 그 목적이 있다.Therefore, in view of the above problem, the present invention packs the data of the variable-length coded segment unit first in 16-bit units and stores it in the macro block unit, thereby reducing the size of the segment memory, and also for one segment period, that is, 2048 clocks. It is an object of the present invention to provide a formatting device of digital BCs that allows storage and formatting of segment data and transmission to ECC.

도 1 은 일반적인 디지털 브이씨알의 포멧팅 장치를 나타낸 블록도.1 is a block diagram showing a conventional digital VR formatting device.

도 2 는 도 1 에 의거하여 가변길이 부호화된 데이타의 처리 흐름을 나타낸도.2 is a view showing a processing flow of variable length coded data according to FIG. 1;

도 3 은 본 발명에 의거한 디지털 브이씨알의 포멧팅 장치를 나타낸 블록도.3 is a block diagram showing a device for formatting a digital VR according to the present invention;

도 4 는 도 3 의 세그먼트 플래그 메모리에 저장되는 플래그 정보를 나타낸도.4 is a diagram illustrating flag information stored in a segment flag memory of FIG. 3;

도 5 는 도 3 에 의거하여 가변길이 부호화된 데이타의 처리 흐름을 나타낸도.5 is a view showing a processing flow of variable length coded data according to FIG. 3;

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

200 : 제 1 패커부 210, 220 : 제 1 세그먼트 메모리200: first packer section 210, 220: first segment memory

230 : 제 2 패커부 240 : ECC 메모리230: second packer unit 240: ECC memory

250 : 제어부 260, 270 : 세그먼트 플래그 메모리250: control unit 260, 270: segment flag memory

상기 목적을 달성하기 위해 본 발명에 의한 디지털 브이씨알의 포맷팅 장치는 도 3 에 도시한 바와 같이, 가변길이 부호화된 세그먼트 단위의 데이타를 입력받아 16비트 단위의 세그먼트 데이타로 패킹하는 제 1 패커부(200); 핑퐁 구조로 구성되어 상기 제 1 패커부(200)로부터 출력되는 16비트 단위의 세그먼트 데이터를 매크로 블럭단위로 저장하는 세그먼트 메모리(200, 210); 상기 세그먼트 메모리(200, 210)의 출력을 인가받아 이를 세그먼트 플래그 메모리(260, 270)에 저장된 정보를 근거로 각 패스 과정에 의해 패킹하는 제 2 패커부(230); 상기 제 2 패커부(230)에 의해 패킹된 세그먼트 데이타를 소정 비트단위로 재배열하여 ECC로 출력하는 ECC 메모리(240); 상기 세그먼트 메모리(210, 220)에 저장된 가변길이 부호화된 세그먼트 단위 데이타의 시작 어드레스와 그 길이 및 끝 어드레스와 그 길이의 정보와 패스 과정에 대한 플래그(flag)정보를 각 패스 과정마다 저장하는 세그먼트 플래그 메모리(260, 270)로 구성된다.In order to achieve the above object, a digital VRL formatting apparatus according to the present invention includes a first packer unit which receives data of a variable length coded segment unit and packs it into 16-bit unit data as shown in FIG. 200); A segment memory (200, 210) configured to have a ping-pong structure and storing segment data of 16-bit units output from the first packer unit (200) in macroblock units; A second packer unit 230 receiving the outputs of the segment memories 200 and 210 and packing them by each pass process based on information stored in the segment flag memories 260 and 270; An ECC memory 240 for rearranging the segment data packed by the second packer unit 230 by a predetermined bit unit and outputting the segment data by ECC; A segment flag for storing a start address, a length and an end address of the variable length coded segment unit data stored in the segment memories 210 and 220, information about the length, and flag information about a pass process for each pass process. Memory 260 and 270.

이와 같이 구성된 본 발명의 디지털 브이씨알의 포맷팅 장치를 상세히 설명하면 다음과 같다.The formatting apparatus of the digital VR of the present invention configured as described above will be described in detail as follows.

가변 길이 부호화된 DCT 블록 단위의 1세그먼트 데이터 즉, (RUN, AMP)값은 제 1 패커부(200)로 인가되어 16비트 단위로 패킹이 행해지는데, 일반적으로 포맷팅 과정중에 처리 속도의 증가를 위하여 16비트 단위의 데이타를 사용하기 때문에 미리 16비트 단위로 패킹하는 것이다.One segment data of variable length coded DCT block units, that is, (RUN, AMP) values are applied to the first packer unit 200 to be packed in units of 16 bits. Generally, in order to increase processing speed during a formatting process, Since 16-bit data is used, the 16-bit data is packed in advance.

즉, 패스 1 과정을 수행하게 되는데, 가변길이 부호화된 세그먼트 단위의 데이타는 최소 3비트부터 최대 16까지의 값을 가지므로 16비트 이하의 값들을 패스 1 과정에 의하여 16비트 단위로 패킹하게 되며, 참고로 종래에는 이 과정을 세그먼트 메모리에서 행하였다.That is, a pass 1 process is performed. Since data of a variable length coded segment unit has a value of at least 3 bits up to 16, a value of 16 bits or less is packed in 16 bit units by a pass 1 process. For reference, this process is conventionally performed in the segment memory.

이때, 제 1 패커부(200)에 의한 패킹시 발생하는 가변길이 부호화된 세그먼트 단위 데이타의 시작 어드레스와 그 길이 및 끝 어드레스와 그 길이의 정보와 패스 과정에 대한 플래그(flag)정보는 제어부(250)에 의해 세그먼트 플래그 메모리(260, 270)에 저장되는데, 이에 대한 메모리의 구조는 도 4 에 도시하였다.In this case, the start address, the length and the end address of the variable length coded segment unit data generated during the packing by the first packer unit 200, the information of the length, and the flag information on the pass process may be controlled. Is stored in the segment flag memories 260 and 270, and the structure of the memory is shown in FIG.

이의 구조는 각 DCT 블록에 대하여 23비트로 구성되는데, 최상위 비트(MSB)부터 1비트의 크기를 갖는 플래그(flag)와, 7비트의 시작 어드레스(SA), 4비트의 시작 데이타의 길이(SL), 7비트의 끝 어드레스(EA), 4비트의 끝 데이타의 길이(EL)로 구성된다.Its structure consists of 23 bits for each DCT block, including a flag having a size of 1 bit from the most significant bit (MSB), a 7-bit start address (SA), and a 4-bit start data length (SL). And an end address (EA) of 7 bits and a length (EL) of end data of 4 bits.

즉, 한 세그먼트 데이타에 대하여 690비트의 크기를 갖는데, 이는 한 세그먼트가 30개의 DCT 블록으로 이루어지므로 30×23비트로 이루어져야 한다.That is, it has a size of 690 bits for one segment data, which should be composed of 30 × 23 bits because one segment is composed of 30 DCT blocks.

제어부(250)에서 의해 만일 패킹 16비트단위의 DCT 블록내에서 하나의 DCT블록의 EOB(End of Block)이 검출되었다면, 그 DCT 블록은 패킹이 완료되었음을 의미하므로, 세그먼트 플래그 메모리(260, 270)에 저장된 플래그는 ??0??으로 셋팅될 것이고, 그렇지 않으면 ??1??로 셋팅될 것이다.If the control unit 250 detects an end of block (EOB) of one DCT block in a DCT block of packed 16-bit units, the DCT block indicates that packing is completed, and thus, the segment flag memories 260 and 270 may be used. The flag stored in will be set to ?? 0 ??, otherwise it will be set to ?? 1 ??.

한편, 상기 제 1 패커부(200)에서 16비트로 패킹된 가변길이 부호화된 세그먼트 단위의 데이타는 핑퐁 구조의 제 1 세그먼트 메모리(210) 및 제 2 세그먼트 메모리(220)에 핑퐁 형태로 저장되는데, 상기 제 1 패커부(200)에 의해 16비트 단위로 세그먼트 데이타가 패킹되었으므로 그 크기는 그만큼 줄어들게 된다.Meanwhile, data of a variable length coded segment unit packed with 16 bits in the first packer unit 200 is stored in a ping pong form in the first segment memory 210 and the second segment memory 220 having a ping pong structure. Since the segment data is packed in units of 16 bits by the first packer unit 200, the size thereof is reduced.

즉, 각 DCT 블록에 대하여 항시 16바이트 크기의 공간을 확보하는 것이 아니라 패스 1 에 의하여 미리 패킹을 행하여 매크로 블록단위로 저장하기 때문에 메모리의 공간을 대폭 줄일 수 있는 것이다.In other words, instead of securing a space of 16 bytes for each DCT block at all times, the space of the memory can be significantly reduced because packing is performed in advance by pass 1 and stored in units of macro blocks.

상기 세그먼트 메모리(210, 220)에 저장된 DCT 블록단위의 세그먼트 데이타는 제 2 패커부(230)로 인가되어 패스 2 과정과 패스 3 과정이 수행되는데, 만일 패스 2 과정에서의 매크로 블럭단위의 시작 어드레스(SA)와 끝 어드레스(EA) 다음 식 1에 의하여 정의된다.The segment data of the DCT block unit stored in the segment memories 210 and 220 is applied to the second packer unit 230 to perform a pass 2 process and a pass 3 process. (SA) and end address (EA) are defined by the following equation (1).

[식 1][Equation 1]

Figure kpo00001
Figure kpo00001

여기서,

Figure kpo00002
는 매크로 블럭의 위치를 나타낸 것으로, 0부터 4까지의 값을 가지게 되는데, 이는 즉 한 매크로 블럭이 5개의 세그먼트 블럭으로 구성되기 때문이다.here,
Figure kpo00002
Denotes the position of the macro block, which has a value from 0 to 4 because one macro block is composed of five segment blocks.

한편, 상기 제 2 패커부(230)에서 매크로 블록단위의 패스 2 수행시에는 세그먼트 플래그 메모리(260, 270)에 저장된 정보를 근거로 패킹을 행하게 되는데, 만일 이 과정에서도 매크로 블록의 EOB가 제어부(250)에서 검출되지 않았다면, 플래그에는 ??0??이 셋팅될 것이다.On the other hand, when the second packer unit 230 performs path 2 in units of macro blocks, packing is performed based on information stored in the segment flag memories 260 and 270. Even in this process, the EOB of the macro block is controlled by the controller ( If not detected at 250), the flag will be set to ?? 0 ??.

또한 상기 제 2 패커부(230)는 패스 2 수행후 세그먼트 데이타 단위의 패스 3 과정을 수행하게 되는데, 이때는 굳이 세그먼트 플래그 메모리(260, 270)에 저장된 정보를 참조하지 않아도 된다.In addition, the second packer unit 230 performs the pass 3 process of the segment data unit after the pass 2 is performed. In this case, the second packer unit 230 does not have to refer to the information stored in the segment flag memories 260 and 270.

상기 제 2 패커부(230)에 의해 패킹된 16비트 단위로 처리된 세그먼트 데이타는 ECC 메모리(240)로 전달되는데, 16비트 단위로 패킹된 세그먼트 데이타를 385바이트로 재배열하기 위한 것으로서, 패킹 동작은 16비트로 하였지만 ECC부로 전달하기 위해서는 8비트 단위로 전송해야 한다.Segment data processed in units of 16 bits packed by the second packer unit 230 is transferred to the ECC memory 240. The segment data packed in units of 16 bits is rearranged to 385 bytes. Is set to 16 bits, but must be transmitted in units of 8 bits to be transferred to the ECC unit.

그러나, 종래에는 모든 한 세그먼트의 데이타는 2048클럭동안에 포맷팅과 ECC부로의 전송이 이루어지게 되는데, 종래에는 메모리에 저장과 포맷팅, 그리고 ECC부로의 전송이 각각의 2048클럭동안에 이루어져 한 쌍의 핑퐁 구조를 갖는 메모리를 사용하였지만, 본 발명에서는 매크로 블럭 단위로 포맷팅을 행하였기 때문에 세그먼트 메모리(210, 220)의 공간과 그 처리속도가 단축되어 하나의 ECC 메모리(240)만 가지고도 ECC부로의 전송이 가능하다.However, conventionally, all segments of data are formatted and transmitted to the ECC unit during 2048 clocks. In the related art, a pair of ping-pong structures are stored in memory, formatted, and transferred to the ECC unit during each 2048 clocks. In the present invention, since the formatting is performed in units of macro blocks in the present invention, the space of the segment memories 210 and 220 and the processing speed thereof are shortened, so that only one ECC memory 240 can be transferred to the ECC unit. Do.

즉, 도 5 에 도시한 바와같이, 포맷팅 과정에서 처리시간이 줄어들어 2048-(385+??)클럭동안 포맷팅이 가능해 지고, 또한 385+??클럭동안에 ECC부로의 전송이 가능하게 되어 하나의 ECC 메모리(240)만 가지고도 전송이 가능하게 되어 그만큼 메모리의 갯수와 공간이 줄어들게 된다.??That is, as shown in FIG. 5, processing time is reduced in the formatting process to enable formatting during 2048- (385+ ??) clocks, and also transfer to the ECC unit during 385+ ?? clocks, thereby providing a single ECC. Transfer is possible even with only the memory 240, so that the number and space of the memory is reduced.

이상에서 상세히 설명한 바와 같이 본 발명에 의한 디지털 브이씨알의 포맷팅 장치는, 가변길이 부호화된 8비트 단위의 데이타를 미리 16비트 단위로 패킹하여 매크로 블록단위로 핑퐁 구조를 가지는 세그먼트 메모리에 의해 패스 과정을 실행하므로 그만큼 메모리의 용량과 처리시간이 줄어들게 된다.As described in detail above, the digital VRL formatting apparatus according to the present invention packs the data of the variable length coded 8-bit unit in 16-bit units in advance and performs a pass process by a segment memory having a ping-pong structure in macro-block units. This reduces the amount of memory and processing time.

또한 이의 처리시간이 줄어들게 되어 하나의 2048 클럭동안 포맷팅과 ECC부로의 전송이 이루어질 수 있으므로 하나의 ECC 메모리만을 사용하므로 원가절감의 효과가 있게된다.In addition, since the processing time is reduced, formatting and transmission to the ECC unit can be performed for one 2048 clock, thereby reducing the cost by using only one ECC memory.

Claims (9)

가변길이 부호화된 세그먼트 단위의 데이타를 입력받아 16비트 단위의 세그먼트 데이타로 패킹하는 제 1 패커부;A first packer unit receiving the variable length coded segment unit data and packing the segment data in 16 bit units; 핑퐁 구조로 구성되어 상기 제 1 패커부로부터 출력되는 16비트 단위의 세그먼트 데이터를 매크로 블럭단위로 저장하는 세그먼트 메모리;A segment memory having a ping-pong structure and storing segment data of 16-bit units output from the first packer unit in macroblock units; 상기 세그먼트 메모리의 출력을 인가받아 이를 세그먼트 플래그 메모리에 저장된 정보를 근거로 각 패스 과정에 의해 패킹하는 제 2 패커부;A second packer unit receiving the output of the segment memory and packing it by each pass process based on information stored in the segment flag memory; 상기 제 2 패커부에 의해 패킹된 세그먼트 데이타를 소정 비트단위로 재배열하여 ECC로 출력하는 ECC 메모리;An ECC memory for rearranging the segment data packed by the second packer unit in predetermined bit units and outputting the segment data; 상기 세그먼트 메모리에 저장된 가변길이 부호화된 세그먼트 단위 데이타의 어드레스 정보를 각 패스 과정마다 저장하는 세그먼트 플래그 메모리로 구성됨을 특징으로 하는 디지털 브이씨알의 포맷팅 장치.And a segment flag memory for storing address information of variable length coded segment unit data stored in the segment memory for each pass process. 제 1 항에 있어서, 제 2 패커부는 패스 2 과정과 패스 3 과정을 수행하는 것을 특징으로 하는 디지털 브이씨알의 포맷팅 장치.2. The apparatus of claim 1, wherein the second packer unit performs a pass 2 process and a pass 3 process. 제 1 항에 있어서, 세그먼트 플래그 메모리에 저장된 정보는 세그먼트 메모리에 저장된 가변길이 부호화된 세그먼트 단위 데이타의 시작 어드레스와 그 길이 및 끝 어드레스와 그 길이의 정보와 패스 과정에 대한 플래그 정보인 것을 특징으로 하는 디지털 브이씨알의 포맷팅 장치.The method of claim 1, wherein the information stored in the segment flag memory is a start address, a length and an end address of the variable length coded segment unit data stored in the segment memory, and information about the length and flag information about a pass process. Formatting device of digital VR. 제 3 항에 있어서, 플래그 정보는 1 비트인 것을 특징으로 하는 디지털 브이씨알의 포맷팅 장치.4. The apparatus of claim 3, wherein the flag information is one bit. 제 3 항에 있어서, 시작 어드레스는 7 비트인 것을 특징으로 하는 디지털 브이씨알의 포맷팅 장치.4. The apparatus of claim 3, wherein the start address is 7 bits. 제 3 항에 있어서, 시작 어드레스의 길이는 4 비트인 것을 특징으로 하는 디지털 브이씨알의 포맷팅 장치.4. The apparatus of claim 3, wherein the length of the start address is 4 bits. 제 3 항에 있어서, 끝 어드레스는 7 비트인 것을 특징으로 하는 디지털 브이씨알의 포맷팅 장치.4. The apparatus of claim 3, wherein the end address is 7 bits. 제 3 항에 있어서, 끝 어드레스의 길이는 4 비트인 것을 특징으로 하는 디지털 브이씨알의 포맷팅 장치.4. The apparatus of claim 3, wherein the end address is 4 bits long. 제 3 항 또는 제 4 항에 있어서, 플래그는 각 패스 과정에 의해 EOB가 검출되면 ??0??으로 셋팅되고, 그렇지 않으면 ??1??로 셋팅되는 것을 특징으로 하는 디지털 브이씨알의 포맷팅 장치.5. The apparatus of claim 3 or 4, wherein the flag is set to ?? 0 ?? if the EOB is detected by each pass process, otherwise it is set to ?? 1 ??. .
KR1019970029961A 1997-06-30 1997-06-30 Digital vcr formatter KR100246641B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970029961A KR100246641B1 (en) 1997-06-30 1997-06-30 Digital vcr formatter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970029961A KR100246641B1 (en) 1997-06-30 1997-06-30 Digital vcr formatter

Publications (2)

Publication Number Publication Date
KR19990005743A KR19990005743A (en) 1999-01-25
KR100246641B1 true KR100246641B1 (en) 2000-03-15

Family

ID=19512841

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970029961A KR100246641B1 (en) 1997-06-30 1997-06-30 Digital vcr formatter

Country Status (1)

Country Link
KR (1) KR100246641B1 (en)

Also Published As

Publication number Publication date
KR19990005743A (en) 1999-01-25

Similar Documents

Publication Publication Date Title
KR970005575B1 (en) Bitrate reduction method and circuitry
EP0613303B1 (en) Image signal compression apparatus and method thereof
US5652583A (en) Apparatus for encoding variable-length codes and segmenting variable-length codewords thereof
JP3022784B2 (en) High-speed variable-length decoding device
US5751860A (en) Method for compressing and decompressing digital image data
EP0587324B1 (en) Data formatting apparatus
US5701125A (en) Method for compression of data using single pass LZSS and run-length encoding
JP4065425B2 (en) Variable length coding packing architecture
KR100246641B1 (en) Digital vcr formatter
KR100246640B1 (en) Digital vcr formatter
KR100246639B1 (en) Digital vcr formatter
US5654806A (en) Code manipulation for a high speed JPEG decoder
KR100246643B1 (en) Deformatting device of a digital vcr
KR100246642B1 (en) Deformatting and variable length decoding device of a digital vcr
EP0831661B1 (en) Apparatus for decoding variable length coded data
KR19990049271A (en) Variable Length Decoding and Deformatting Device of Digital VR
KR19990005763A (en) Digital VRF Formatting Device
JP3500039B2 (en) Digital video signal processor
KR100246645B1 (en) Deformatting device of a digital vcr
KR19990049269A (en) How to control digital BC run amplifier memory
KR20000004672A (en) Format/deformat apparatus of a digital video cassette recorder
JPH11251922A (en) Compression-encoding device and method
US6522270B1 (en) Method of coding frequently occurring values
JP3368164B2 (en) Encoding / decoding system
KR19990005765A (en) Digital V Deformatting 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
LAPS Lapse due to unpaid annual fee