KR19980015795A - In the MPEG-2 encoder, a differential pulse code modulator - Google Patents

In the MPEG-2 encoder, a differential pulse code modulator Download PDF

Info

Publication number
KR19980015795A
KR19980015795A KR1019960035233A KR19960035233A KR19980015795A KR 19980015795 A KR19980015795 A KR 19980015795A KR 1019960035233 A KR1019960035233 A KR 1019960035233A KR 19960035233 A KR19960035233 A KR 19960035233A KR 19980015795 A KR19980015795 A KR 19980015795A
Authority
KR
South Korea
Prior art keywords
signal
data
picture
image data
multiplexer
Prior art date
Application number
KR1019960035233A
Other languages
Korean (ko)
Other versions
KR100243464B1 (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 KR1019960035233A priority Critical patent/KR100243464B1/en
Publication of KR19980015795A publication Critical patent/KR19980015795A/en
Application granted granted Critical
Publication of KR100243464B1 publication Critical patent/KR100243464B1/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/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/43Hardware specially adapted for motion estimation or compensation
    • H04N19/433Hardware specially adapted for motion estimation or compensation characterised by techniques for memory access
    • 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/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/625Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]

Landscapes

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

Abstract

본 발명은 프레임 메모리 또는 움직임 추정기(ME)로부터 프레임 단위 또는 필드 단위의 원영상 데이터(Org_data1, Org_data2)가 8 비트씩 입력되는 래치부(30)와; 이 래치부(30)로부터의 원영상 데이터(Org_data1, Org_data 2)와 움직임 보상수단(MC)으로부터의 움직임 보상데이터(MCed_data1, MCed_ data2)를 감산하는 감산수단(32); 램컨트롤러(40)로부터의 라이트 어드레스신호(Wadrs)에 의해 상기 래치부(30)와 상기 감산수단(32)으로부터의 데이터를 저장하고, 리드 어드레스신호(Radrs)에 의해 출력하는 제 1 및 제 2 RAM(34, 36); 시스템 제어부로부터 입력되는 코딩식별신호(inter_intra)에 의해 상기 제 1 및 제 2 RAM(34, 36)의 영상데이터를 선택적으로 출력하는 제 3 멀티플렉서(38); 상기 램컨트롤러(40)로부터의 래치 이네이블신호(latch_en)에 의해 상기 제 3 멀티플렉서(38)로부터의 영상데이터를 정렬하는 정렬수단(42); 상기 램컨트롤러(42)로부터의 선택신호(SEL)에 의해 상기 정렬수단(42)으로부터의 영상데이터를 선택적으로 출력하는 제 4 멀티플렉서(44) 및; 상기 제 1 및 제 2 RAM(34, 36)에 저장된 영상데이터를 상기 제 3 멀티플렉서(38)를 통해 정렬수단(42)에 정렬시킨 후 상기 제 4 멀티플렉서(44)에 의해 출력시키는 램컨트롤러(40)로 구성된 것을 특징으로 한다.The present invention includes a latch unit 30 for inputting 8 bits of original image data (Org_data1, Org_data2) on a frame basis or field basis from a frame memory or a motion estimator (ME); Subtraction means 32 for subtracting the original image data (Org_data1, Org_data2) from the latch unit 30 and the motion compensation data (MCed_data1, MCed_data2) from the motion compensation means (MC); The data from the latch unit 30 and the subtracting unit 32 are stored by the write address signal Wadrs from the RAM controller 40 and the first and second RAMs 34 and 36; A third multiplexer (38) for selectively outputting image data of the first and second RAMs (34, 36) by a coding identification signal (inter_intra) input from the system control unit; Alignment means (42) for aligning the video data from the third multiplexer (38) by a latch enable signal (latch_en) from the RAM controller (40); A fourth multiplexer 44 for selectively outputting image data from the alignment means 42 by a selection signal SEL from the RAM controller 42; A RAM controller 40 for aligning the image data stored in the first and second RAMs 34 and 36 to the alignment means 42 through the third multiplexer 38 and outputting the image data to the fourth multiplexer 44 ).

Description

MPEG-2 부호화기에 있어서 차분펄스 부호변조기In the MPEG-2 encoder, a differential pulse code modulator

본 발명은 MPEG-2 부호화기에 있어서 차분펄스 부호변조기(DPCM)에 관한 것으로, 특히 MPEG-2 부호화기에서 차분펄스 부호변조기로 입력된 데이터가 램컨트롤러(RAMCON)로부터의 라이트 어드레스신호에 의해 저장수단(RAM)에 저장된 후 리드 어드레스신호에 의해 정렬수단에 정렬되어 출력됨으로써 이산여현변환이 용이하게 수행될 수 있도록 된 MPEG-2 부호화기에 있어서 차분펄스 부호변조기에 관한 것이다.More particularly, the present invention relates to a differential pulse code modulator (DPCM) in an MPEG-2 encoder. More particularly, the present invention relates to a differential pulse code modulator (DPCM) RAM), and arranged in alignment means by a read address signal, and outputted, so that the DCT can be easily performed. [0002] This invention relates to a differential pulse code modulator in an MPEG-2 encoder.

도 1은 일반적인 영상부호기를 나타낸 블록도로, 여기서 영상부호기는 프레임 메모리부(100), 차분펄스 부호변조기(120), 이산여현 변환기(130; DCT), 양자화기(140; Q), 가변길이부호기(150; VLC), 역양자화기(160; IQ), 역이산여현변환기(170; IDCT), 가산기(180) 및, 움직임보상기(190; MC)로 구성되어 있다.1 is a block diagram illustrating a general image encoder. The image encoder includes a frame memory unit 100, a differential pulse code modulator 120, a DCT (DCT) 130, a quantizer 140, An inverse quantizer 160, an IDCT 170, an adder 180, and a motion compensator 190 (MC).

한편, 상기 영상부호기는 이미 잘 알려진 바와 같이, 프레임 메모리부(100)를 매개로 입력되는 현재 영상신호와 움직임 보상기(190; MC)로부터 입력되는 이전 영상신호가 차분펄스 부호변조기(120)로 입력되고, 이후 상기 차분펄스 부호변조기(120)로부터의 영상 데이터가 이산여현변환기(130)로 입력되어 이산여현 변환되게 된다. 다음에, 상기 이산여현 변환기(130)에 의해 이산여현 변환된 영상 데이터가 양자화기(140)로 입력되어 양자화가 수행되고, 양자화된 데이터가 지그재그 스캔 후 런랭쓰 부호화와 가변길이 부호화됨으로써 압축 부호화가 수행되게 된다.As is well known, the image encoder receives a current image signal input through the frame memory unit 100 and a previous image signal input from a motion compensator 190 (MC) to a differential pulse code modulator 120 The image data from the differential pulse code modulator 120 is input to the DC-DC converter 130 and is subjected to DC-DC conversion. Next, the image data subjected to DCT by the DCT transformer 130 is input to a quantizer 140 and quantized. The quantized data is subjected to run-length encoding and variable length encoding after zigzag scanning, .

상기한 바와 같은 MPEG-2 규정의 영상부호화기에 있어서, I-픽처인 경우에는 그대로 출력되고, P-픽처와 B-픽처인 경우에는 화상간의 차 영상신호가 출력되도록 된 차분펄스 부호변조기가 필요하게 되었다.In the image encoder of the MPEG-2 standard as described above, a differential pulse code modulator is required which is output as it is in the case of I-picture and in which the difference image signal is outputted between P-picture and B-picture .

또한, 상기 차분펄스 부호변조기로 입력되는 영상신호는 I-픽처와 P-픽처 및 B-픽처로 구분되는 바, 이러한 영상신호, 예컨대 이전 화면과 차분 화면 및 현재 화면은 그대로 출력되게 된다. 그러나, 이산여현 변환기 설계시 이산여현 변환이 효율적으로 수행되면서 변환시간의 감소를 위해 상기 차분펄스 부호변조기로부터 출력되는 출력값의 조정이 필요하게 되었다.In addition, the video signal input to the differential pulse code modulator is divided into an I-picture, a P-picture and a B-picture, and the video signal, for example, the previous screen, the differential screen and the current screen are output as they are. However, it is necessary to adjust the output value output from the differential pulse code modulator in order to reduce the conversion time while the DCT is efficiently performed in the DCT converter design.

그리고, 프레임 메모리로부터 입력되는 원영상 데이터가 프레임 데이터 또는 필드 데이터이면서 움직임 보상기로부터 입력되는 움직임 보상데이터가 필드 형태로 예측된 데이터인 경우, 예컨대 픽쳐구조(Pic_str)가 프레임 픽쳐이고, 프레임 모션타입(frm_motion_type)이 필드 베이스의 형태인 경우에는 입력형태가 다르게 되어 적절한 어드레스의 변환이 필요로 되었다.When the original picture data input from the frame memory is frame data or field data and the motion compensation data input from the motion compensator is data predicted in a field form, for example, the picture structure (Pic_str) is a frame picture and the frame motion type frm_motion_type) is a field-based type, the input format is different, and proper address conversion is required.

이에 본 발명은 상기한 문제점을 해결하기 위한 것으로, MPEG-2 부호화기에서 프레임 메모리로부터 입력되는 원영상 데이터가 프레임 데이터 또는 필드 데이터이면서 움직임 보상기로부터 입력되는 움직임 보상데이터가 필드 형태로 예측된 경우에도 램컨트롤러(RAMCON)로부터의 라이트 어드레스신호에 의해 저장수단(RAM)에 저장된 후 리드 어드레스신호에 의해 정렬수단에 정렬되어 출력됨으로써 이산여현변환이 용이하게 수행될 수 있도록 된 MPEG-2 부호화기에 있어서 차분펄스 부호변조기를 제공하는데 그 목적이 있다.SUMMARY OF THE INVENTION The present invention has been made in order to solve the above problems, and it is an object of the present invention to provide a method and apparatus for decoding motion compensation data, In the MPEG-2 encoder in which the discrete cosine transform can be easily performed by being stored in the storage means (RAM) by the write address signal from the controller (RAMCON) and then outputted to the alignment means by the read address signal, Code modulator.

상기한 바의 목적을 달성하기 위한 본 발명은, 프레임 메모리 또는 움직임 추정기로부터 프레임 단위 또는 필드 단위의 원영상 데이터가 8 비트씩 입력되는 래치부와; 이 래치부로부터의 원영상 데이터와 움직임 보상수단으로부터의 움직임 보상데이터를 감산하는 감산수단; 램컨트롤러로부터의 라이트 어드레스신호에 의해 상기 래치부와 상기 감산수단으로부터의 데이터를 저장하고, 리드 어드레스신호에 의해 출력하는 제 1 및 제 2 RAM; 시스템 제어부로부터 입력되는 코딩식별신호에 의해 상기 제 1 및 제 2 RAM의 영상데이터를 선택적으로 출력하는 제 3 멀티플렉서; 상기 램컨트롤러로부터의 래치 이네이블신호에 의해 상기 제 3 멀티플렉서로부터의 영상데이터를 정렬하는 정렬수단; 상기 램컨트롤러로부터의 선택신호에 의해 상기 정렬수단으로부터의 영상데이터를 선택적으로 출력하는 제 4 멀티플렉서 및; 상기 제 1 및 제 2 RAM에 저장된 영상데이터를 상기 제 3 멀티플렉서를 통해 정렬수단에 정렬시킨 후 상기 제 4 멀티플렉서에 의해 출력시키는 램컨트롤러로 구성된 것을 특징으로 한다.According to an aspect of the present invention, there is provided an image processing apparatus including a latch unit for inputting eight bits of original image data in units of frames or fields from a frame memory or a motion estimator; Subtraction means for subtracting the original image data from the latch portion and the motion compensation data from the motion compensation means; First and second RAMs for storing data from the latch unit and the subtracting unit by a write address signal from the RAM controller and outputting the data by a read address signal; A third multiplexer for selectively outputting video data of the first and second RAMs according to a coding identification signal input from a system control unit; Alignment means for aligning image data from the third multiplexer by a latch enable signal from the RAM controller; A fourth multiplexer for selectively outputting image data from the alignment means in response to a selection signal from the RAM controller; And a ram controller which aligns the image data stored in the first and second RAMs to the alignment means through the third multiplexer and outputs the image data by the fourth multiplexer.

상기한 바와 같이 구성된 본 발명은, MPEG-2 부호화기에서 프레임 메모리로부터 입력되는 원영상 데이터가 프레임 데이터 또는 필드 데이터이면서 움직임 보상기로부터 입력되는 움직임 보상데이터가 필드 형태로 예측된 경우에도 램컨트롤러로부터의 라이트 어드레스신호에 의해 RAM에 저장된 후 리드 어드레스신호에 의해 정렬수단에 정렬되어 출력됨으로써 이산여현변환이 용이하게 수행될 수 있게 된다.According to the present invention configured as described above, even when the original image data input from the frame memory in the MPEG-2 encoder is frame data or field data and the motion compensation data input from the motion compensator is predicted in the form of a field, The address signal is stored in the RAM, and the address signals are aligned and output to the aligning means by the read address signal, so that the DCT can be easily performed.

도 1은 일반적인 영상부호기를 나타낸 블록도,1 is a block diagram illustrating a general image encoder,

도 2는 본 발명에 따른 MPEG-2 부호화기에 있어서 차분펄스 부호변조기의 1 실시예를 나타낸 블록도,FIG. 2 is a block diagram showing an embodiment of a differential pulse code modulator in the MPEG-2 encoder according to the present invention;

도 3은 도 2에 나타낸 램컨트롤러(RAMCON)를 나타낸 블록도,3 is a block diagram showing a RAM controller (RAMCON) shown in FIG. 2;

도 4는 도 3에 나타낸 램컨트롤러의 동작타이밍을 나타낸 타이밍도,4 is a timing chart showing the operation timing of the ram controller shown in Fig. 3,

도 5는 도 2에 나타낸 정렬부의 데이터 정렬순서를 도시한 도면이다.FIG. 5 is a diagram showing the data sorting order of the sorting unit shown in FIG. 2. FIG.

* 도면의 주요 부분에 대한 부호의 설명 *Description of the Related Art [0002]

10∼13: 제 1 내지 제 4 FIFO, 20: 라이트 어드레스 발생부,10 to 13: first to fourth FIFOs, 20: write address generator,

22: 리드 어드레스 발생부,22: a read address generating unit,

23: 라이트 어드레스 변환부, 24: 리드 어드레스 변환부,23: write address conversion unit, 24: read address conversion unit,

25,26,38,44: 제 1 ,제 2 , 제 3 및 제 4 멀티플렉서,25, 26, 38, 44: first, second, third and fourth multiplexers,

27: 입력데이터 판정부, 30: 래치부,27: input data judging unit, 30: latch unit,

32: 감산부, 34,36: 제 1 및 제 2 RAM,32: subtraction unit, 34,36: first and second RAM,

40: 램컨트롤러(RAMCON), 42: 정렬부.40: RAM controller (RAMCON), 42: Arrangement part.

이하, 본 발명의 바람직한 실시예를 첨부한 예시도면을 참조하여 상세히 설명한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

먼저, 이산여현 변환기(DCT)에 의해 이산여현변환이 수행되는 경우, 상기 변환은 8 × 8 블록단위로 수행되는 바, 이러한 8 × 8 블록단위의 처리는 차분펄스 부호변조기(DPCM)에서도 동일하게 적용되게 된다.First, when the DCT is performed by the DCT, the conversion is performed in units of 8 × 8 blocks. The processing in units of 8 × 8 blocks is performed in the same manner in the differential pulse code modulator (DPCM) .

그리고, 다음 표1은 차분펄스 부호변조기로 입력되는 8 × 8 영상블록 데이터에 대한 어드레스를 나타낸 것이다.Table 1 below shows the addresses of the 8x8 image block data input to the differential pulse code modulator.

[표 1][Table 1]

0 1 2 3 4 5 6 78 9 a b c d e f10 11 12 13 14 15 16 1718 19 1a 1b 1c 1d 1e 1f20 21 22 23 24 25 26 2728 29 2a 2b 2c 2d 2e 2f30 31 32 33 34 35 36 3738 39 3a 3b 3c 3d 3e 3f0 1 2 3 4 5 6 78 9 abcde f10 11 12 13 14 15 16 1718 19 1a 1b 1c 1f20 21 22 23 24 25 26 2728 29 2a 2b 2c 2d 2e 2f30 31 32 33 34 35 36 3738 39 3a 3b 3c 3d 3e 3f

여기서, 상기 8 × 8 영상블록 데이터가 프레임 메모리 또는 움직임 추정기(ME)로부터 차분펄스 부호변조기로 입력되는 경우, 상기 데이터가 이산여현변환기에 의해 용이하게 변환되도록 하기 위해서는 상기 데이터를 래치(latch)에 정렬시킨 후 출력하게 된다.Here, when the 8.times.8 image block data is input from the frame memory or the motion estimator (ME) to the differential pulse code modulator, the data is converted into a latch to easily convert the data by the DC / And then outputs the result.

한편, 현재 설계된 인코더에서의 데이터는 2 픽셀씩 처리되는 바, 이러한 2픽셀의 데이터가 차분펄스 부호변조기로 입력되는 경우에는 다음과 같은 어드레스의 데이터가 다음과 같은 순서로 입력되게 된다.On the other hand, data of the currently designed encoder is processed two pixels at a time. When two-pixel data is input to the differential pulse code modulator, the following address data are input in the following order.

(0, 1), (2, 3), (4, 5), (6, 7), (8, 9), (a, b), (c, d), …(0, 1), (2, 3), (4, 5), (6, 7), (8, 9), (a, b),

여기서, 상기 번호는 8 비트로 이루어진 각 픽셀의 어드레스를 나타낸다.Here, the number indicates the address of each pixel made up of 8 bits.

그리고, 상기 어드레스의 데이터가 상기 차분펄스 부호변조기로 입력된 후 이산여현변환기에 의해 계산이 용이하게 수행되도록 하기 위해 상기 차분펄스 부호변조기는 다음과 같은 순서로 어드레스의 데이터를 출력하게 된다.After the data of the address is inputted to the differential pulse code modulator, the differential pulse code modulator outputs data of the address in the following order so that the calculation can be easily performed by the DC-DC converter.

(0, 4), (1, 5), (2, 6), (3, 7), (8, c), (9, d), (a, e), …(0, 4), (1,5), (2,6), (3,7), (8, c), (9, d), (a,

여기서, 상기 번호는 8 비트로 이루어진 각 픽셀의 어드레스를 나타낸다.Here, the number indicates the address of each pixel made up of 8 bits.

도 2는 본 발명에 따른 MPEG-2 부호화기에 있어서 차분펄스 부호변조기의 1 실시예를 나타낸 블록도로, 여기서 상기 부호변조기는 래치부(30)와, 감산부(32), 제 1 및 제 2 RAM(34, 36), 제 3 및 제 4 멀티플렉서(38, 44), 램컨트롤러(40; RAMCON) 및, 정렬부(42)로 구성되게 된다.2 is a block diagram of an embodiment of a differential pulse code modulator in the MPEG-2 encoder according to the present invention, in which the code modulator comprises a latch unit 30, a subtractor 32, Third and fourth multiplexers 38 and 44, a RAM controller 40 and an aligner 42. The first and second multiplexers 38 and 44 are connected to the first and second multiplexers 38 and 44, respectively.

먼저, 프레임 메모리 또는 움직임 추정기(ME)로부터 프레임 단위의 원영상 데이터(Org_data1, Org_data2)가 8 비트씩 래치부(30)로 입력되고, 또한 움직임 보상기(MC: motion compenstor)로부터 입력되는 움직임 보상데이터(MCed_data1, MCed_data2)가 8 비트씩 감산기(32)로 입력되게 된다.First, 8 bits of original image data (Org_data1, Org_data2) in units of frames are input to the latch unit 30 from the frame memory or the motion estimator ME, and the motion compensation data inputted from the motion compensator (MC) (MCed_data1, MCed_data2) are input to the subtracter 32 by 8 bits.

그리고, 상기 래치부(30)는 상기 원영상 데이터(Org_data1, Org_data2)를 제 1 RAM(34)으로 입력함과 더불어 상기 감산기(32)로 입력하고, 이 감산기(32)는 상기 래치부(30)로부터의 상기 원영상 데이터(Org_data1, Org_data2)와 상기 움직임 보상기(MC)로부터의 상기 움직임 보상데이터(MCed_data1, MCed_ data2)의 차 데이터를 제 2 RAM(36)으로 입력하게 된다.The latch unit 30 inputs the original image data Org_data1 and Org_data2 to the first RAM 34 and the subtractor 32. The subtractor 32 subtracts the original image data Org_data1 and Org_data2 from the latch unit 30 The difference data between the original image data Org_data1 and Org_data2 from the motion compensator MC and the motion compensation data MCed_data1 and MCed_data2 from the motion compensator MC is input to the second RAM 36. [

여기서, 상기 제 1 RAM(34)은 상기 래치부(30)로부터의 원영상 데이터(Org_data1, Org_data2), 즉 I-픽쳐를 저장하고, 상기 제 2 RAM(36)은 상기 감산기(32)로부터의 차 데이터, 즉 P-픽쳐와 B-픽쳐를 저장하게 된다.Here, the first RAM 34 stores original image data (Org_data1, Org_data2), i.e., I-picture, from the latch unit 30, and the second RAM 36 stores the original image data Difference data, that is, a P-picture and a B-picture.

이후, 상기 제 1 및 제 2 RAM(34, 36)에 저장된 I-픽쳐와 P-픽쳐 및 B-픽쳐는 제 3 멀티플렉서(38)에 의해 선택적으로 출력되고, 이 제 3 멀티플렉서(38)는 시스템 제어부(도시되지 않음)로부터 입력되는 코딩식별신호(inter _intra)에 의해 인트라 코딩방식이면, I-픽쳐인 원영상 데이터(Org_data1, Org_data2)가 저장된 제 1 RAM(34)의 데이터를 출력하며, 인터 코딩방식이면 P-픽쳐 또는 B-픽쳐인 차 영상데이터가 저장된 제 2 RAM(36)의 데이터를 출력하게 된다.The I-picture and the P-picture and the B-picture stored in the first and second RAMs 34 and 36 are selectively output by the third multiplexer 38, The data of the first RAM 34 in which the original image data (Org_data1, Org_data2) as the I-picture is stored is output by the coding identification signal inter_intra inputted from the control unit (not shown) Coding method, the data of the second RAM 36, which is the P-picture or the B-picture, is stored.

여기서, 인트라 코딩방식인 경우, 예컨대 상기 시스템 제어부로부터 출력되는 코딩식별신호(inter_intra)가 1 인 경우에는 상기 제 3 멀티플렉서(38)는 제 1 RAM(34)의 데이터를 출력하고, 인터 코딩방식인 경우, 예컨대 상기 시스템 제어부로부터 출력되는 코딩식별신호(inter_intra)가 0 인 경우에는 상기 제 1 멀티플렉서(38)는 제 2 RAM(36)의 데이터를 출력하게 된다.Here, in the case of the intra coding scheme, for example, when the coding identification signal inter_intra outputted from the system control unit is 1, the third multiplexer 38 outputs the data of the first RAM 34, The first multiplexer 38 outputs the data of the second RAM 36 when the coding identification signal inter_intra outputted from the system controller is 0, for example.

한편, 램컨트롤러(40; RAMCON)가 라이트 어드레스신호(Wadrs)를 출력함으로써 상기 래치부(30)와 감산기(32)의 영상데이터가 상기 제 1 및 제 2 RAM(34, 36)의 어드레스로 저장되게 된다. 그리고, 상기 제 1 및 제 2 RAM(34, 36)에 저장된 상기 영상데이터가 출력되는 경우에는 상기 램컨트롤러(40)의 래치 이네이블신호(latch_en)에 의해 상기 제 1 및 제 2 RAM(34, 36)에 저장된 영상데이터가 4 클록 단위로 상기 제 1 멀티플렉서(38)를 통해 데이터가 정렬부(42)로 입력되어 정렬되게 된다.On the other hand, when the RAM controller 40 (RAMCON) outputs a write address signal Wadrs, the video data of the latch unit 30 and the subtractor 32 are stored in the addresses of the first and second RAMs 34 and 36 . When the image data stored in the first and second RAMs 34 and 36 are output, the first and second RAMs 34 and 36 are turned on by the latch enable signal latch_en of the RAM controller 40, 36 are input to the sorting unit 42 through the first multiplexer 38 in units of four clocks, and are aligned.

이후, 상기 정렬부(42)로 입력되는 영상데이터는 2 픽셀씩 처리되는 바, 이 입력데이터는 (0, 1), (2, 3), (4, 5), (6, 7)의 순서로 입력된 후 (0, 4), (1, 5), (2, 6), (3, 7)로 정렬되어 출력되게 된다.Thereafter, the image data input to the alignment unit 42 is processed by 2 pixels, and the input data is processed in the order of (0, 1), (2, 3), (4, 5) (0, 4), (1, 5), (2, 6), (3, 7).

여기서, 상기 번호는 8 비트로 이루어진 각 픽셀의 어드레스를 나타낸다.Here, the number indicates the address of each pixel made up of 8 bits.

도 3은 도 2에 나타낸 램컨트롤러를 나타낸 블록도로, 여기서 상기 램컨트롤러는 라이트 어드레스 발생부(20)와, 리드 어드레스 발생부(22), 라이트 어드레스 변환부(23), 리드 어드레스 변환부(24), 제 1 및 제 2 멀티플렉서(25, 26) 및, 입력데이터 판정부(27)로 구성되게 된다. 먼저, 이해를 용이하게 하기 위해 각 구성블록과 이 구성블록으로 입출력되는 신호를 개괄적으로 설명하게 된다.3 is a block diagram showing the RAM controller shown in FIG. 2, wherein the RAM controller includes a write address generating unit 20, a read address generating unit 22, a write address converting unit 23, a read address converting unit 24 ), First and second multiplexers 25 and 26, and an input data determination unit 27. First, in order to facilitate understanding, each constituent block and signal input / output to / from this constituent block will be outlined.

그리고, CLS신호는 시스템 클록이고, RST신호는 액티브 로우에서 동작되는 리세트신호이다. 그리고, 매크로블록 시작신호(MBS; macroblock start)는 프레임 메모리로부터 래치부(30)와 감산부(32)로 영상데이터가 입력되는 경우 출력에 의해 영상데이터의 입력시작을 나타내고, 이 매크로블록 시작신호(MBS)의 발생후 9 클록 번째부터 제 1 및 제 2 RAM(34, 36)으로의 저장이 시작되게 된다.The CLS signal is a system clock, and the RST signal is a reset signal operated in an active low. The macroblock start signal MBS indicates the start of the input of the video data by the output when the video data is input from the frame memory to the latch unit 30 and the subtractor 32, The storage from the 9th clock after the generation of the MBS to the first and second RAMs 34 and 36 is started.

그리고, 라이트 어드레스신호(Wadrs)는 상기 래치부(30)와 감산부(32)의 데이터가 제 1 및 제 2 RAM(34, 36)으로 저장되는 어드레스신호이고, 라이트 이네이블신호(WREN)는 상기 매크로블록 시작신호(MBS) 이후 9 클록 번째에 상기 래치부(30)와 감산부(32)의 데이터 저장을 가능하게 하는 신호이다.The write address signal Wadrs is an address signal in which the data of the latch 30 and the subtractor 32 are stored in the first and second RAMs 34 and 36. The write enable signal WREN is Is a signal enabling data storage of the latch unit 30 and the subtraction unit 32 at the 9th clock after the macroblock start signal MBS.

또한, 리드 어드레스신호(Radrs)는 상기 제 1 및 제 2 RAM(34, 36)에 저장된 데이터를 독출하는 어드레스신호이고, 패널블록 시작신호(PBS; pannel block start)는 매크로블록 시작신호(MBS) 이후 140 클록 번째부터 상기 제 1 및 제 2 RAM(34, 36)에 저장된 데이터의 출력을 시작하는 신호이다.The read address signal Radrs is an address signal for reading data stored in the first and second RAMs 34 and 36. The panel block start signal PBS is a macroblock start signal MBS ), And then starts outputting the data stored in the first and second RAMs 34 and 36 from the 140th clock.

그리고, 래치 이네이블신호(latch_en)는 정렬부(42)에 저장된 데이터가 선택으로 출력되도록 하는 신호이고, SEL신호는 상기 정렬부(42)로부터 제 2 멀티플렉서(44)로 입력된 데이터가 선택적으로 출력되도록 하는 선택신호이다.The latch enable signal latch_en is a signal for selectively outputting the data stored in the aligner 42. The SEL signal is a signal for selectively outputting the data input from the aligner 42 to the second multiplexer 44, And outputs the selected signal.

한편, MPEG-2에 있어서 움직임 추정의 특징은 픽쳐구조(Picture structure)와 픽쳐코딩타입(Picture coding type)을 기반으로 분류되어 필드 예측과 프레임 예측이 지원 가능하게 된다. 그리고, MPEG-2에서 픽쳐는 기존의 프레임과는 개념이 다른 부호화하는 단위로서, 프레임 픽쳐는 프레임 단위로 부호화되고, 필드 픽쳐는 필드단위로 부호화되게 된다.On the other hand, the feature of motion estimation in MPEG-2 is classified based on a picture structure (picture structure) and a picture coding type, so that field prediction and frame prediction can be supported. In MPEG-2, a picture is a unit for coding different from an existing frame. A frame picture is coded on a frame-by-frame basis, and a field picture is coded on a field-by-field basis.

또한, MPEG-2 비트 스트림 구조에서 픽쳐 코딩 확장자의 픽쳐구조에 따라 다음 표2와 같이 픽쳐가 분류되게 된다(MPEG IS: Table 6-13).In addition, according to the picture structure of the picture coding extension in the MPEG-2 bit stream structure, pictures are classified as shown in Table 2 (MPEG IS: Table 6-13).

[표 2][Table 2]

Picture_structurePicture_structure 의미meaning 0000 유보됨Reserved 0101 톱(Top) 필드Top field 1010 보텀(Bottom)필드Bottom field 1111 프레임 픽쳐Frame picture

상기 표2에서와 같이 픽쳐구조에 의해 픽쳐는 프레임 구조 픽쳐와 필드 구조 픽쳐(Top fied와 Bottom field)로 구분되는데, 앞서 말한 필드 픽쳐는 필드 구조만이 가능하나 프레임 픽쳐는 필드구조와 프레임 구조가 가능하다. 따라서 필드 픽쳐에서는 필드 예측만이 가능하나 프레임 픽쳐에서는 프레임 예측과 필드예측이 가능하다.As shown in Table 2, the picture is divided into a frame structure picture and a field structure picture (Top Fied and Bottom field) according to the picture structure. The field picture can be a field structure only, It is possible. Therefore, only field prediction is possible in the field picture, but frame prediction and field prediction are possible in the frame picture.

한편, 픽쳐구조신호(Pic_str)가 프레임 픽쳐신호, 예컨대 11 이고, 프레임 모션타입신호(frm_motion_type)가 필드 베이스의 신호, 예컨대 1 인 경우에는 입력형태가 다르게 되어 입력데이터 판정부(27)가 라이트 어드레스 선택신호(Wadrs_sel)를 출력하게 된다.On the other hand, when the picture structure signal Pic_str is a frame picture signal, for example, 11 and the frame motion type signal frm_motion_type is a field base signal, for example, 1, the input form is different, And outputs the selection signal Wadrs_sel.

따라서, 상기 라이트 어드레스 선택신호(Wadrs_sel)가 출력되는 경우에는 제 1 멀티플렉서(25)가 라이트 어드레스 변환부(23), 예컨대 프레임픽쳐 필드 어드레스 변환부로부터의 라이트 어드레스신호(Wadrs)를 출력하고, 상기 라이트 어드레스 선택신호가 출력되지 않은 경우에는 라이트 어드레스 발생부(20)로부터의 라이트 어드레스신호(Wadrs)를 출력하게 된다.Therefore, when the write address selection signal Wadrs_sel is output, the first multiplexer 25 outputs the write address signal Wadrs from the write address conversion unit 23, for example, the frame picture field address conversion unit, When the write address selection signal is not output, the write address signal Wadrs from the write address generation unit 20 is output.

그리고, 상기 라이트 어드레스 변환부(23)는 다음 표3의 프로그램식 논리배열(PLA; programmed logic array)에 의해 프레임 데이터 어드레스를 필드 데이터 어드레스로 변환하게 된다.The write address conversion unit 23 converts the frame data address into a field data address by a programmed logic array (PLA) shown in Table 3 below.

[표 3][Table 3]

제 1 블록 00000000 00000000 제 2 블록 00100000 00100000First block 00000000 00000000 Second block 00100000 00100000

00000001 00000001 00100001 0010000100000001 00000001 00100001 00100001

00000010 00000010 00100010 0010001000000010 00000010 00100010 00100010

00000011 00000011 00100011 0010001100000011 00000011 00100011 00100011

00000100 00001000 00100100 0010100000000100 00001000 00100100 00101000

00000101 00001001 00100101 0010100100000101 00001001 00100101 00101001

00000110 00001010 00100110 0010101000000110 00001010 00100110 00101010

00000111 00001011 00100111 0010101100000111 00001011 00100111 00101011

00001000 00010000 00101000 0011000000001000 00010000 00101000 00110000

00001001 00010001 00101001 0011000100001001 00010001 00101001 00110001

00001010 00010010 00101010 0011001000001010 00010010 00101010 00110010

00001011 00010011 00101011 0011001100001011 00010011 00101011 00110011

00001100 00011000 00101100 0011100000001100 00011000 00101100 00111000

00001101 00011001 00101101 0011100100001101 00011001 00101101 00111001

00001110 00011010 00101110 0011101000001110 00011010 00101110 00111010

00001111 00011011 00101111 0011101100001111 00011011 00101111 00111011

00010000 01000000 01100000 0110000000010000 01000000 01100000 01100000

00010001 01000001 01100001 0110000100010001 01000001 01100001 01100001

00010010 01000010 01100010 0110001000010010 01000010 01100010 01100010

00010011 01000011 01100011 0110001100010011 01000011 01100011 01100011

00010100 01001000 00110100 0110100000010100 01001000 00110100 01101000

00010101 01001001 00110101 0110100100010101 01001001 00110101 01101001

00010110 01001010 00110110 0110101000010110 01001010 00110110 01101010

00010111 01001011 00110111 0110101100010111 01001011 00110111 01101011

00011000 01010000 00111000 0111000000011000 01010000 00111000 01110000

00011001 01010001 00111001 0111000100011001 01010001 00111001 01110001

00011010 01010010 00111010 0111001000011010 01010010 00111010 01110010

00011011 01010011 00111011 0111001100011011 01010011 00111011 01110011

00011100 01011000 00111100 0111100000011100 01011000 00111100 01111000

00011101 01011001 00111101 0111100100011101 01011001 00111101 01111001

00011110 01011010 00111110 0111101000011110 01011010 00111110 01111010

00011111 01011011 00111111 0111101100011111 01011011 00111111 01111011

제 3 블록 01000000 00000100 제 4 블록 01100000 00100100Third block 01000000 00000100 Fourth block 01100000 00100100

01000001 00000101 01100001 0010010101000001 00000101 01100001 00100101

01000010 00000110 01100010 0010011001000010 00000110 01100010 00100110

01000011 00000111 01100011 0010011101000011 00000111 01100011 00100111

01000100 00001100 01100100 0010110001000100 00001100 01100100 00101100

01000101 00001101 01100101 0010110101000101 00001101 01100101 00101101

01000110 00001110 01100110 0010111001000110 00001110 01100110 00101110

01000111 00001111 01100111 0010111101000111 00001111 01100111 00101111

01001000 00010100 01101000 0011010001001000 00010100 01101000 00110100

01001001 00010101 01101001 0011010101001001 00010101 01101001 00110101

01001010 00010110 01101010 0011011001001010 00010110 01101010 00110110

01001011 00010111 01101011 0011011101001011 00010111 01101011 00110111

01001100 00011100 01101100 0011110000011100 01101100 00111100

01001101 00011101 01101101 0011110101001101 00011101 01101101 00111101

01001110 00011110 01101110 0011111001001110 00011110 01101110 00111110

01001111 00011111 01101111 0011111101111111 00011111 01101111 00111111

01010000 01000100 01110000 0110010001010000 01000100 01110000 01100100

01010001 01000101 01110001 0110010101010001 01000101 01110001 01100101

01010010 01000110 01110010 0110011001010010 01000110 01110010 01100110

01010011 01000111 01110011 0110011101010011 01000111 01110011 01100111

01010100 01001100 01110100 0111010001010100 01001100 01110100 01110100

01010101 01001101 01110101 0111010101010101 01001101 01110101 01110101

01010110 01001110 01110110 0111011001010110 01001110 01110110 01110110

01010111 01001111 01110111 0111011101010111 01001111 01110111 01110111

01011000 01010100 01111000 0111010001011000 01010100 01111000 01110100

01011001 01010101 01111001 0111010101011001 01010101 01111001 01110101

01011010 01010110 01111010 0111011001011010 01010110 01111010 01110110

01011011 01010111 01111011 0111011101011011 01010111 01111011 01110111

01011100 01011100 01111100 0111110001011100 01011100 01111100 01111100

01011101 01011101 01111101 0111110101011101 01011101 01111101 01111101

01011110 01011110 01111110 0111111001011110 01011110 01111110 01111110

01011111 01011111 01111111 0111111101011111 01011111 01111111 01111111

제 5 블록 10000000 10000100 제 6 블록 10100000 10100000The fifth block 10000000 10000100 The sixth block 10100000 10100000

10000001 10000101 10100001 1010000110000001 10000101 10100001 10100001

10000010 10000110 10100010 1010001010000010 10000110 10100010 10100010

10000011 10000111 10100011 1010001110000011 10000111 10100011 10100011

10000100 10001100 10100100 1010100010000100 10001100 10100100 10101000

10000101 10001101 10100101 1010100110000101 10001101 10100101 10101001

10000110 10001110 10100110 1010101010000110 10001110 10100110 10101010

10000111 10001111 10100111 1010101110000111 10001111 10100111 10101011

10001000 10010100 10101000 1011000010001000 10010100 10101000 10110000

10001001 10010101 10101001 1011000110001001 10010101 10101001 10110001

10001010 10010110 10101010 1011001010001010 10010110 10101010 10110010

10001011 10010111 10101011 1011001110001011 10010111 10101011 10110011

10001100 10011100 10101100 1011100010001100 10011100 10101100 10111000

10001101 10011101 10101101 1011100110001101 10011101 10101101 10111001

10001110 10011110 10101110 1011101010001110 10011110 10101110 10111010

10001111 10011111 10101111 1011101110001111 10011111 10101111 10111011

10010000 10000100 10110000 1010010010010000 10000100 10110000 10100100

10010001 10000101 10110001 1010010110010001 10000101 10110001 10100101

10010010 10000110 10110010 1010011010010010 10000110 10110010 10100110

10010011 10000111 10110011 1010011110010011 10000111 10110011 10100111

10010100 10001100 10110100 1010110010010100 10001100 10110100 10101100

10010101 10001101 10110101 1010110110010101 10001101 10110101 10101101

10010110 10001110 10110110 1010111010010110 10001110 10110110 10101110

10010111 10001111 10110111 1010111110010111 10001111 10110111 10101111

10011000 10010100 10111000 1011010010011000 10010100 10111000 10110100

10011001 10010101 10111001 1011010110011001 10010101 10111001 10110101

10011010 10010110 10111010 1011011010011010 10010110 10111010 10110110

10011011 10010111 10111011 1011011110011011 10010111 10111011 10110111

10011100 10011100 10111100 1011110010011100 10011100 10111100 10111100

10011101 10011101 10111101 1011110110011101 10011101 10111101 10111101

10011110 10011110 10111110 1011111010011110 10011110 10111110 10111110

10011111 10011111 10111111 1011111110011111 10011111 10111111 10111111

또한, 필드 프레임 선택신호(field_frame)는 이산여현변환의 형태(Dct_ type), 예컨대 필드 이산여현변환(field DCT)인가 프레임 이산여현변환(frame DCT)인가를 나타내는 신호로 입력데이터가 프레임 픽쳐인 경우에는 리드 어드레스 변환부(24), 예컨대 필드 리드 어드레스 변환부로부터의 리드 어드레스(Radrs) 신호를 출력하고, 필드 픽쳐인 경우에는 리드 어드레스 발생부(22)로부터의 리드 어드레스(Radrs) 신호를 출력하게 된다.In addition, the field frame selection signal field_frame is a signal indicating whether the type of the DCT is Dct_type, for example, field DCT or frame DCT. When the input data is a frame picture For example, a read address (Radrs) signal from the read address converting section 24, and in the case of a field picture, a lead address (Radrs) signal from the read address generating section 22 do.

그리고, 상기 리드 어드레스 변환부(24)는 다음 표4의 프로그램식 논리배열(PLA)에 의해 필드 데이터 어드레스를 독출하여 출력하게 된다.Then, the read address converting section 24 reads the field data address by the programmable logic array (PLA) shown in the following Table 4 and outputs it.

[표 4][Table 4]

제 1 블록 00000000 00000000 제 2 블록 00100000 00100000First block 00000000 00000000 Second block 00100000 00100000

00000001 00000001 00100001 0010000100000001 00000001 00100001 00100001

00000010 00000010 00100010 0010001000000010 00000010 00100010 00100010

00000011 00000011 00100011 0010001100000011 00000011 00100011 00100011

00000100 00001000 00100100 0010100000000100 00001000 00100100 00101000

00000101 00001001 00100101 0010100100000101 00001001 00100101 00101001

00000110 00001010 00100110 0010101000000110 00001010 00100110 00101010

00000111 00001011 00100111 0010101100000111 00001011 00100111 00101011

00001000 00010000 00101000 0011000000001000 00010000 00101000 00110000

00001001 00010001 00101001 0011000100001001 00010001 00101001 00110001

00001010 00010010 00101010 0011001000001010 00010010 00101010 00110010

00001011 00010011 00101011 0011001100001011 00010011 00101011 00110011

00001100 00011000 00101100 0011100000001100 00011000 00101100 00111000

00001101 00011001 00101101 0011100100001101 00011001 00101101 00111001

00001110 00011010 00101110 0011101000001110 00011010 00101110 00111010

00001111 00011011 00101111 0011101100001111 00011011 00101111 00111011

00010000 01000000 01100000 0110000000010000 01000000 01100000 01100000

00010001 01000001 01100001 0110000100010001 01000001 01100001 01100001

00010010 01000010 01100010 0110001000010010 01000010 01100010 01100010

00010011 01000011 01100011 0110001100010011 01000011 01100011 01100011

00010100 01001000 00110100 0110100000010100 01001000 00110100 01101000

00010101 01001001 00110101 0110100100010101 01001001 00110101 01101001

00010110 01001010 00110110 0110101000010110 01001010 00110110 01101010

00010111 01001011 00110111 0110101100010111 01001011 00110111 01101011

00011000 01010000 00111000 0111000000011000 01010000 00111000 01110000

00011001 01010001 00111001 0111000100011001 01010001 00111001 01110001

00011010 01010010 00111010 0111001000011010 01010010 00111010 01110010

00011011 01010011 00111011 0111001100011011 01010011 00111011 01110011

00011100 01011000 00111100 0111100000011100 01011000 00111100 01111000

00011101 01011001 00111101 0111100100011101 01011001 00111101 01111001

00011110 01011010 00111110 0111101000011110 01011010 00111110 01111010

00011111 01011011 00111111 0111101100011111 01011011 00111111 01111011

제 3 블록 01000000 00000100 제 4 블록 01100000 00100100Third block 01000000 00000100 Fourth block 01100000 00100100

01000001 00000101 01100001 0010010101000001 00000101 01100001 00100101

01000010 00000110 01100010 0010011001000010 00000110 01100010 00100110

01000011 00000111 01100011 0010011101000011 00000111 01100011 00100111

01000100 00001100 01100100 0010110001000100 00001100 01100100 00101100

01000101 00001101 01100101 0010110101000101 00001101 01100101 00101101

01000110 00001110 01100110 0010111001000110 00001110 01100110 00101110

01000111 00001111 01100111 0010111101000111 00001111 01100111 00101111

01001000 00010100 01101000 0011010001001000 00010100 01101000 00110100

01001001 00010101 01101001 0011010101001001 00010101 01101001 00110101

01001010 00010110 01101010 0011011001001010 00010110 01101010 00110110

01001011 00010111 01101011 0011011101001011 00010111 01101011 00110111

01001100 00011100 01101100 0011110000011100 01101100 00111100

01001101 00011101 01101101 0011110101001101 00011101 01101101 00111101

01001110 00011110 01101110 0011111001001110 00011110 01101110 00111110

01001111 00011111 01101111 0011111101111111 00011111 01101111 00111111

01010000 01000100 01110000 0110010001010000 01000100 01110000 01100100

01010001 01000101 01110001 0110010101010001 01000101 01110001 01100101

01010010 01000110 01110010 0110011001010010 01000110 01110010 01100110

01010011 01000111 01110011 0110011101010011 01000111 01110011 01100111

01010100 01001100 01110100 0111010001010100 01001100 01110100 01110100

01010101 01001101 01110101 0111010101010101 01001101 01110101 01110101

01010110 01001110 01110110 0111011001010110 01001110 01110110 01110110

01010111 01001111 01110111 0111011101010111 01001111 01110111 01110111

01011000 01010100 01111000 0111010001011000 01010100 01111000 01110100

01011001 01010101 01111001 0111010101011001 01010101 01111001 01110101

01011010 01010110 01111010 0111011001011010 01010110 01111010 01110110

01011011 01010111 01111011 0111011101011011 01010111 01111011 01110111

01011100 01011100 01111100 0111110001011100 01011100 01111100 01111100

01011101 01011101 01111101 0111110101011101 01011101 01111101 01111101

01011110 01011110 01111110 0111111001011110 01011110 01111110 01111110

01011111 01011111 01111111 0111111101011111 01011111 01111111 01111111

제 5 블록 10000000 10000100 제 6 블록 10100000 10100000The fifth block 10000000 10000100 The sixth block 10100000 10100000

10000001 10000101 10100001 1010000110000001 10000101 10100001 10100001

10000010 10000110 10100010 1010001010000010 10000110 10100010 10100010

10000011 10000111 10100011 1010001110000011 10000111 10100011 10100011

10000100 10001100 10100100 1010100010000100 10001100 10100100 10101000

10000101 10001101 10100101 1010100110000101 10001101 10100101 10101001

10000110 10001110 10100110 1010101010000110 10001110 10100110 10101010

10000111 10001111 10100111 1010101110000111 10001111 10100111 10101011

10001000 10010100 10101000 1011000010001000 10010100 10101000 10110000

10001001 10010101 10101001 1011000110001001 10010101 10101001 10110001

10001010 10010110 10101010 1011001010001010 10010110 10101010 10110010

10001011 10010111 10101011 1011001110001011 10010111 10101011 10110011

10001100 10011100 10101100 1011100010001100 10011100 10101100 10111000

10001101 10011101 10101101 1011100110001101 10011101 10101101 10111001

10001110 10011110 10101110 1011101010001110 10011110 10101110 10111010

10001111 10011111 10101111 1011101110001111 10011111 10101111 10111011

10010000 10000100 10110000 1010010010010000 10000100 10110000 10100100

10010001 10000101 10110001 1010010110010001 10000101 10110001 10100101

10010010 10000110 10110010 1010011010010010 10000110 10110010 10100110

10010011 10000111 10110011 1010011110010011 10000111 10110011 10100111

10010100 10001100 10110100 1010110010010100 10001100 10110100 10101100

10010101 10001101 10110101 1010110110010101 10001101 10110101 10101101

10010110 10001110 10110110 1010111010010110 10001110 10110110 10101110

10010111 10001111 10110111 1010111110010111 10001111 10110111 10101111

10011000 10010100 10111000 1011010010011000 10010100 10111000 10110100

10011001 10010101 10111001 1011010110011001 10010101 10111001 10110101

10011010 10010110 10111010 1011011010011010 10010110 10111010 10110110

10011011 10010111 10111011 1011011110011011 10010111 10111011 10110111

10011100 10011100 10111100 1011110010011100 10011100 10111100 10111100

10011101 10011101 10111101 1011110110011101 10011101 10111101 10111101

10011110 10011110 10111110 1011111010011110 10011110 10111110 10111110

10011111 10011111 10111111 1011111110011111 10011111 10111111 10111111

한편, 매크로블록 시작신호(MBS)가 입력되게 되면 9 클록이 지연된 후 데이터가 제 1 및 RAM(34, 36)에 저장되는 바, 이는 입력데이터가 래치부(30)를 통과하는 동안 지연되도록 하기 위한 것이다.On the other hand, when the macro block start signal MBS is inputted, the data is delayed by 9 clocks and then stored in the first and RAMs 34 and 36. This is because the input data is delayed while passing through the latch unit 30 .

이후, 상기 제 1 및 제 RAM(34, 36)의 데이터가 독출되는 경우에는 상기 매크로블록 시작신호(MBS) 이후 140 클록 번째 패널블록 시작신호(PBS)가 출력된 후 데이터의 독출이 시작되고, 1개의 클록에 대해 2개의 화소가 출력되어 1번에 2개의 어드레스가 출력되게 된다.When the data of the first and the RAMs 34 and 36 are read out, data is read out after the 140th panel block start signal PBS is outputted after the macroblock start signal MBS, Two pixels are output for one clock, and two addresses are output for one clock.

도 4는 도 3에 나타낸 램컨트롤러의 동작타이밍을 나타낸 타이밍도로, 여기서 매크로블록 시작신호(MBS)의 시작 이후 9 클록 번째에 라이트 어드레스신호(Wadrs)가 출력되고, 상기 매크로블록 시작신호(MBS) 이후 140 클록 번째에 패널블록 시작신호(PBS)가 출력되면서 리드 어드레스신호(Radrs)가 출력되게 된다.FIG. 4 is a timing diagram showing the operation timing of the ram controller shown in FIG. 3. Here, the write address signal Wadrs is outputted at the 9th clock after the start of the macro block start signal MBS, Then, a panel block start signal (PBS) is outputted at the 140th clock and the read address signal (Radrs) is outputted.

도 5는 도 2에 나타낸 정렬부의 데이터 정렬순서를 도시한 도면으로, 여기서 상기 도면은 제 3 및 제 4 멀티플렉서(38, 44)와, 정렬부(42)로 구성되게 된다. 그리고, 상기 정렬부(42)는 제 1 내지 제 4 FIFO(10∼13)로 이루어지게 된다. 먼저, 램컨트롤러(40)의 리드 어드레스신호(Radrs)에 의해 제 3 멀티플렉서(38)를 통해 제 1 및 제 2 RAM에 저장된 데이터가 2픽셀 단위로 제 1 FIFO(10), 제 3 FIFO(12), 제 2 FIFO(11), 제 4 FIFO(13)의 순서로 저장되게 된다.FIG. 5 is a diagram showing a data sorting order of the sorting unit shown in FIG. 2. Here, the drawing shows the third and fourth multiplexers 38 and 44 and the sorting unit 42. FIG. The alignment unit 42 includes first to fourth FIFOs 10 to 13. First, the data stored in the first and second RAMs via the third multiplexer 38 are read out by the read address signal Radrs of the RAM controller 40 in units of two pixels in the order of the first FIFO 10, the third FIFO 12 ), The second FIFO 11, and the fourth FIFO 13 in that order.

이후, 상기 램컨트롤러(40)의 래치 이네이블신호(latch_en)에 의해 제 1 및 제 2 FIFO(10, 11)의 첫 번째 데이터, 두 번째 데이터, 제 3 및 제 4 FIFO(12, 13)의 첫 번째 데이터, 두 번째 데이터의 순서로 출력되게 된다.The first data and the second data of the first and second FIFOs 10 and 11 and the data of the third and fourth FIFOs 12 and 13 are latched by the latch enable signal latch_en of the RAM controller 40 The first data, and the second data.

한편, 본원 청구범위의 각 구성요건에 병기된 도면참조부호는 본원 발명의 이해를 용이하게 하기 위한 것으로, 본원 발명의 기술적 범위를 도면에 도시한 실시예로 한정할 의도에서 병기한 것은 아니다.It should be noted that the drawings are not intended to limit the technical scope of the present invention to the embodiments shown in the drawings in order to facilitate understanding of the present invention.

이상에서 설명한 바와 같이 본 발명에 의하면, MPEG-2 부호화기에서 프레임 메모리로부터 입력되는 원영상 데이터가 프레임 데이터 또는 필드 데이터이면서 움직임 보상기로부터 입력되는 움직임 보상데이터가 필드 형태로 예측된 경우에도 램컨트롤러로부터의 라이트 어드레스신호에 의해 RAM에 저장된 후 리드 어드레스신호에 의해 정렬수단에 정렬되어 출력됨으로써 이산여현변환이 용이하게 수행될 수 있게 된다.As described above, according to the present invention, even when the original image data input from the frame memory in the MPEG-2 encoder is frame data or field data and the motion compensation data input from the motion compensator is predicted in the form of a field, The read address signal is stored in the RAM by the write address signal, and is output to the aligning means by the read address signal. Thus, the DCT can be easily performed.

Claims (9)

프레임 메모리 또는 움직임 추정기(ME)로부터 프레임 단위 또는 필드 단위의 원영상 데이터(Org_data1, Org_data2)가 8 비트씩 입력되는 래치부(30)와; 이 래치부(30)로부터의 원영상 데이터(Org_data1, Org_data2)와 움직임 보상수단(MC)으로부터의 움직임 보상데이터(MCed_data1, MCed_data2)를 감산하는 감산수단(32); 램컨트롤러(40)로부터의 라이트 어드레스신호(Wadrs)에 의해 상기 래치부(30)와 상기 감산수단(32)으로부터의 데이터를 저장하고, 리드 어드레스신호(Radrs)에 의해 출력하는 제 1 및 제 2 RAM(34, 36); 시스템 제어부로부터 입력되는 코딩식별신호(inter_intra)에 의해 상기 제 1 및 제 2 RAM(34, 36)의 영상데이터를 선택적으로 출력하는 제 3 멀티플렉서(38); 상기 램컨트롤러(40)로부터의 래치 이네이블신호(latch_en)에 의해 상기 제 3 멀티플렉서(38)로부터의 영상데이터를 정렬하는 정렬수단(42); 상기 램컨트롤러(42)로부터의 선택신호(SEL)에 의해 상기 정렬수단(42)으로부터의 영상데이터를 선택적으로 출력하는 제 4 멀티플렉서(44) 및; 상기 제 1 및 제 2 RAM(34, 36)에 저장된 영상데이터를 상기 제 3 멀티플렉서(38)를 통해 정렬수단(42)에 정렬시킨 후 상기 제 4 멀티플렉서(44)에 의해 출력시키는 램컨트롤러(40)로 구성된 것을 특징으로 하는 MPEG-2 부호화기에 있어서 차분펄스 부호변조기.A latch unit 30 for inputting 8 bits of original image data (Org_data1, Org_data2) in units of frames or fields from a frame memory or a motion estimator (ME); Subtraction means 32 for subtracting the original image data (Org_data1, Org_data2) from the latch unit 30 and the motion compensation data (MCed_data1, MCed_data2) from the motion compensation means (MC); The data from the latch unit 30 and the subtracting unit 32 are stored by the write address signal Wadrs from the RAM controller 40 and the first and second RAMs 34 and 36; A third multiplexer (38) for selectively outputting image data of the first and second RAMs (34, 36) by a coding identification signal (inter_intra) input from the system control unit; Alignment means (42) for aligning the video data from the third multiplexer (38) by a latch enable signal (latch_en) from the RAM controller (40); A fourth multiplexer 44 for selectively outputting image data from the alignment means 42 by a selection signal SEL from the RAM controller 42; A RAM controller 40 for aligning the image data stored in the first and second RAMs 34 and 36 to the alignment means 42 through the third multiplexer 38 and outputting the image data to the fourth multiplexer 44 Wherein the difference pulse code modulator comprises: 제 1 항에 있어서, 상기 제 1 RAM(34)은 상기 래치부(30)로부터의 원영상 데이터(Org_data1, Org_data2), 즉 I-픽쳐를 저장하고, 상기 제 2 RAM(36)은 상기 감산수단(32)으로부터의 차 데이터, 즉 P-픽쳐와 B-픽쳐를 저장하는 것을 특징으로 하는 MPEG-2 부호화기에 있어서 차분펄스 부호변조기.2. The image processing apparatus according to claim 1, wherein the first RAM (34) stores original image data (Org_data1, Org_data2), i.e., I-picture, from the latch unit (30) (32), that is, a P-picture and a B-picture are stored in the differential pulse code modulator. 제 1 항에 있어서, 상기 제 3 멀티플렉서(38)는 시스템 제어부로부터 입력되는 코딩식별신호(inter_intra)에 의해 인트라 코딩방식이면 I-픽쳐인 원영상 데이터(Org_data1, Org_data2)가 저장된 제 1 RAM(34)의 데이터를 출력하고, 인터 코딩방식이면 P-픽쳐 또는 B-픽쳐인 차 영상데이터가 저장된 제 2 RAM(36)의 데이터를 출력하는 것을 특징으로 하는 MPEG-2 부호화기에 있어서 차분펄스 부호변조기.The system according to claim 1, wherein the third multiplexer (38) comprises a first RAM (34) in which original video data (Org_data1, Org_data2), which is I-picture, is stored by a coding identification signal (inter_intra) And outputs the data of the second RAM 36 in which the difference image data which is a P-picture or a B-picture is stored in the inter-coding system. 제 1 항에 있어서, 상기 램컨트롤러(40)는 매크로블록 시작신호(MBS)가 출력된 후 9 클록 번째에 라이트 어드레스신호(Wadrs)와 라이트 이네이블신호(WREN)를 출력하는 라이트 어드레스 발생수단(20)과; 이 라이트 어드레스 발생수단(20)으로부터의 프레임픽쳐 라이트 어드레스신호를 필드픽쳐 라이트 어드레스신호로 변환하는 라이트 어드레스 변환수단(23); 상기 매크로블록 시작신호(MBS)가 출력된 후 140 클록 번째에 패널블록 시작신호(PBS)를 출력함과 더불어 리드 어드레스신호(Radrs)를 출력하는 리드 어드레스 발생수단(22); 이 리드 어드레스 발생수단(22)으로부터의 프레임픽쳐 리드 어드레스신호를 필드 리드 어드레스신호로 변환하는 리드 어드레스 변환수단(24); 픽쳐구조신호(Pic_str)가 프레임 픽쳐신호이고, 프레임 모션타입 신호(frm_motion_type)가 필드 베이스의 신호인 경우 라이트 어드레스 선택신호(Wadrs_sel)를 출력하는 입력데이터 판정수단(27); 이 입력데이터 판정수단(27)으로부터의 라이트 어드레스 선택신호(Wadrs_sel)에 의해 상기 라이트 어드레스 변환수단(23)으로부터의 라이트 어드레스신호와 상기 라이트 어드레스 발생부(20)로부터의 라이트 어드레스신호를 선택적으로 출력하는 제 1 멀티플렉서(25) 및; 시스템 제어부로부터의 필드 프레임 선택신호(field_frame)에 의해 상기 리드 어드레스 변환수단(24)으로부터의 리드 어드레스신호와 상기 리드 어드레스 발생부(22)로부터의 리드 어드레스신호를 선택적으로 출력하는 제 2 멀티플렉서(26)로 구성된 것을 특징으로 하는 MPEG-2 부호화기에 있어서 차분펄스 부호변조기.2. The semiconductor memory device according to claim 1, wherein the RAM controller (40) comprises write address generating means for outputting a write address signal (Wadrs) and a write enable signal (WREN) at the ninth clock after the macroblock start signal (MBS) 20); A write address converting means (23) for converting the frame picture write address signal from the write address generating means (20) into a field picture write address signal; A read address generating means (22) for outputting a panel block start signal (PBS) at 140th clock after the macroblock start signal (MBS) is outputted and for outputting a read address signal (Radrs); A read address converting means (24) for converting the frame picture read address signal from the read address generating means (22) into a field read address signal; Input data determination means (27) for outputting a write address selection signal (Wadrs_sel) when the picture structure signal (Pic_str) is a frame picture signal and the frame motion type signal (frm_motion_type) is a field base signal; And selectively outputs a write address signal from the write address conversion means 23 and a write address signal from the write address generation unit 20 by a write address selection signal Wadrs_sel from the input data determination means 27 A first multiplexer (25) for receiving the first multiplex signal; A second multiplexer 26 for selectively outputting a read address signal from the read address converting means 24 and a read address signal from the read address generating section 22 by a field frame select signal (field_frame) from the system control section Wherein the difference pulse code modulator comprises: 제 4 항에 있어서, 상기 매크로블록 시작신호(MBS)에 의해 영상데이터의 입력이 프레임 메모리로부터 래치부(30)와 감산수단(32)으로 시작되고, 상기 매크로블록 시작신호(MBS)의 9 클록 번째부터 제 1 및 제 2 RAM(34, 36)으로 영상데이터의 저장이 시작되는 것을 특징으로 하는 MPEG-2 부호화기에 있어서 차분펄스 부호변조기.The method as claimed in claim 4, wherein the input of the video data by the macroblock start signal (MBS) starts from the frame memory to the latch unit (30) and the subtraction unit (32) Wherein the first and second RAMs (34, 36) start storing image data. The differential pulse code modulator as claimed in claim 1, wherein the first and second RAMs (34, 36) 제 4 항에 있어서, 상기 라이트 어드레스신호(Wadrs)에 의해 상기 래치부(30)와 감산수단(32)의 데이터가 제 1 및 제 2 RAM(34, 36)으로 저장되고, 라이트 이네이블신호(WREN)에 의해 상기 매크로블록 시작신호(MBS)의 9 클록 번째에 상기 래치부(30)와 감산수단(32)의 데이터가 상기 제 1 및 제 2 RAM(34, 36)으로 저장되는 것을 특징으로 하는 MPEG-2 부호화기에 있어서 차분펄스 부호변조기.The semiconductor memory device according to claim 4, wherein the data of the latch unit (30) and the subtraction unit (32) are stored in the first and second RAMs (34, 36) by the write address signal (Wadrs) The data of the latch unit 30 and the subtracting unit 32 are stored in the first and second RAMs 34 and 36 at the 9th clock of the macroblock start signal MBS by the WREN Wherein the difference pulse code modulator is a differential pulse code modulator in an MPEG-2 encoder. 제 4 항에 있어서, 상기 리드 어드레스신호(Radrs)에 의해 상기 제 1 및 제 2 RAM(34, 36)에 저장된 데이터가 독출되고, 패널블록 시작신호(PBS)에 의해 매크로블록 시작신호(MBS)의 140 클록 번째부터 상기 제 1 및 제 2 RAM(34, 36)에 저장된 데이터가 출력되는 것을 특징으로 하는 MPEG-2 부호화기에 있어서 차분펄스 부호변조기.The method as claimed in claim 4, wherein the data stored in the first and second RAMs (34, 36) are read out by the read address signal (Radrs) and the macroblock start signal (MBS) And the data stored in the first and second RAMs (34, 36) is output from the 140th clock of the first pulse width modulator. 제 4 항에 있어서, 상기 라이트 어드레스 변환수단(23)는 프로그램식 논리배열(PLA)에 의해 프레임 데이터 어드레스를 필드 데이터 어드레스로 변환하는 것을 특징으로 하는 MPEG-2 부호화기에 있어서 차분펄스 부호변조기.The differential pulse code modulator according to claim 4, wherein the write address conversion means (23) converts the frame data address into a field data address by a programmable logic array (PLA). 제 4 항에 있어서, 상기 리드 어드레스 변환수단(24)은 프로그램식 논리배열(PLA)에 의해 필드 데이터 어드레스를 독출하여 출력하는 것을 특징으로 하는 MPEG-2 부호화기에 있어서 차분펄스 부호변조기.5. The differential pulse code modulator according to claim 4, wherein the read address conversion means (24) reads the field data address by a programmable logic array (PLA) and outputs it.
KR1019960035233A 1996-08-23 1996-08-23 Dpcm of mpeg-2 KR100243464B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960035233A KR100243464B1 (en) 1996-08-23 1996-08-23 Dpcm of mpeg-2

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960035233A KR100243464B1 (en) 1996-08-23 1996-08-23 Dpcm of mpeg-2

Publications (2)

Publication Number Publication Date
KR19980015795A true KR19980015795A (en) 1998-05-25
KR100243464B1 KR100243464B1 (en) 2000-02-01

Family

ID=19470604

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960035233A KR100243464B1 (en) 1996-08-23 1996-08-23 Dpcm of mpeg-2

Country Status (1)

Country Link
KR (1) KR100243464B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160109863A (en) 2015-03-13 2016-09-21 한국건설기술연구원 Anchoring Apparatus for Re-prestressing of Strand

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2514323T3 (en) * 2011-01-03 2014-10-28 Fundació Institut De Recerca De L'energía De Catalunya Opto-electronic device, system and procedure to obtain a spectrum of ambient light and modify an emitted light

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160109863A (en) 2015-03-13 2016-09-21 한국건설기술연구원 Anchoring Apparatus for Re-prestressing of Strand

Also Published As

Publication number Publication date
KR100243464B1 (en) 2000-02-01

Similar Documents

Publication Publication Date Title
JP5100015B2 (en) Video encoding method and apparatus for inter-screen or intra-screen encoding mode
WO2009130886A1 (en) Moving image coding device, imaging device and moving image coding method
JP2010016833A (en) Reduced cost decoder using bitstream editing for image cropping
JP2000270332A (en) Method and device for encoding dynamic picture
KR100266334B1 (en) Image signal encoding device
JP4945513B2 (en) Variable length decoding apparatus and moving picture decoding apparatus using the same
JP2006295721A (en) Image encoding apparatus and image encoding method
US6498814B1 (en) Drift-free transcoder and related method
US5973744A (en) Apparatus for decoding video data
JP2947389B2 (en) Image processing memory integrated circuit
KR19980015795A (en) In the MPEG-2 encoder, a differential pulse code modulator
KR19980015803A (en) In the MPEG-2 encoder, a differential pulse code modulator
KR100210395B1 (en) Differential pulse coding modulator in mpeg-2 encoder
JPH11136686A (en) Decoded image conversion circuit and decoded image converter
KR100243476B1 (en) Half-pixel compensator of a motion compensator
KR100255794B1 (en) First in first out buffer in motion compensator
KR100235487B1 (en) Half-pel compensator of a motion compensator
KR100202306B1 (en) Moving information variable coder for mpeg-2 image compression apparatus
JP2000299867A (en) Moving picture decoder
JPH10262255A (en) Image coder
JPH11308620A (en) Image decoder
JP2002010264A (en) Device for replacing compressed data
JPH10145785A (en) Method for encoding picture and device therefor
KR20000050508A (en) Apparatus for hierarchial motion estimation in image coder
KR19990079410A (en) Video output device using MPEG decoder

Legal Events

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

Payment date: 20121101

Year of fee payment: 14

LAPS Lapse due to unpaid annual fee