KR19980075855A - Method and device for controlling frame memory for compressing video signal - Google Patents

Method and device for controlling frame memory for compressing video signal Download PDF

Info

Publication number
KR19980075855A
KR19980075855A KR1019970012218A KR19970012218A KR19980075855A KR 19980075855 A KR19980075855 A KR 19980075855A KR 1019970012218 A KR1019970012218 A KR 1019970012218A KR 19970012218 A KR19970012218 A KR 19970012218A KR 19980075855 A KR19980075855 A KR 19980075855A
Authority
KR
South Korea
Prior art keywords
memory
data
block
input
interface
Prior art date
Application number
KR1019970012218A
Other languages
Korean (ko)
Other versions
KR100240005B1 (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 KR1019970012218A priority Critical patent/KR100240005B1/en
Publication of KR19980075855A publication Critical patent/KR19980075855A/en
Application granted granted Critical
Publication of KR100240005B1 publication Critical patent/KR100240005B1/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/423Methods 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 characterised by memory arrangements

Landscapes

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

Abstract

본 발명은 동영상 신호의 압축을 위한 프레임 메모리 제어 방법 및 장치에 관한 것으로, 64비트를 워드로 하여 512 * 512의 크기로 구성하여 352 * 480 이하의 해상도를 가지는 동영상의 4 개의 데이터를 저장할 수 있도록 하고, 메모리의 워드를 64비트로 하여 4번의 동작을 수행하는 시간 분할 기법을 채용하여 4 주기 동안 4 번의 메모리 동작(입력영상 데이터 읽기/쓰기, 복원영상 데이터 읽기/쓰기)을 수행하도록 하여 전체적인 수행 속도의 저하가 일어나지 않도록 하고, 전체 블록을 유기적인 블록간의 동작에 필요한 신호들을 생성하는 제어블록과, 메모리로부터 읽고 쓰기위한 주소와 데이터를 생성하는 주소/데이터 블록 및 시간 분할 기법에 따라 각 주소 혹은 주소/데이터를 메모리와 연결하고 메모리 제어 신호의 생성 그리고 전체 출력 신호를 생성하는 인터페이스 블록들로 구성하여 회로의 크기와 복잡함을 줄일 수 있도록 한 것이다.The present invention relates to a method and apparatus for controlling a frame memory for compressing a video signal. The present invention relates to a 64-bit word and has a size of 512 * 512 to store four data of a video having a resolution of 352 * 480 or less. In addition, by adopting the time-division technique that performs four operations with the word of memory as 64-bit, four memory operations (reading / writing input image data, reading / writing reconstruction image data) are performed for four cycles. Address or address according to the control block for generating the signals necessary for the operation between the organic blocks, the address / data block for generating data and the data for reading and writing from the memory, and the time division technique. Connect data to memory and generate memory control signals and generate full output signals. The interface consists of a block is to reduce the size and complexity of the circuit.

Description

동영상 신호의 압축을 위한 프레임 메모리 제어 방법 및 장치Method and device for controlling frame memory for compressing video signal

본 발명은 동영상 신호의 압축을 위한 프레임 메모리 제어 방법 및 장치에 관한 것으로, 특히 동영상 압축기를 단일칩으로 구현할 때 확장성과 빠른 처리가 가능하도록 한 동영상 신호의 압축을 위한 프레임 메모리 제어 방법 및 장치에 관한 것이다.The present invention relates to a frame memory control method and apparatus for compressing a video signal, and more particularly, to a frame memory control method and apparatus for compressing a video signal to enable scalability and fast processing when a video compressor is implemented in a single chip. will be.

일반적으로 동영상을 압축하는데는 시간과 공간적인 관점에서의 데이터의 중복성을 제거함으로서 압축기능이 수행된다는 것은 이미 잘 알려진 사실이다.In general, it is well known that video compression is performed by removing data redundancy in terms of time and space.

압축 과정에는 시간적인 중복성을 검출하고 공간적인 중복성을 계산하는 두 가지 기능 블록들간의 유기적인 데이터의 흐름이 필요하게 되는데, 이를 위해 많은 양의 메모리가 필요하게 되고, 이때 필요한 메모리는 영상의 구성 단위인 프레임(한 화면)단위로 저장하고 읽는 것이 유리하다.The compression process requires the flow of organic data between two functional blocks that detect temporal redundancy and calculate spatial redundancy. For this, a large amount of memory is required, and the required memory is a component of an image. It is advantageous to save and read in frame units.

동영상의 시간적 중복성은 궤환을 통해 입력되는 프레임과 현재 프레임간에 이루어지게 되며 궤환을 통한 데이터는 공간적 중복성을 이용해 압축한 영상을 복원한 것으로 이러한 복원된 입력영상과 현재 입력 영상간의 시간적 관계를 고려하여 영상 데이터를 제공하기 위해 영상 메모리가 필요하고, 이 메모리를 제어하기 위한 메모리 제어기가 필요하게 된다.The temporal redundancy of the video is made between the frame input through feedback and the current frame, and the data through the feedback is a restored image compressed using spatial redundancy. Considering the temporal relationship between the restored input image and the current input image An image memory is required to provide data, and a memory controller is required to control this memory.

동영상 압축의 기본 알고리즘이 동일하므로 여러 동영상 압축기에서 이러한 메모리의 제어 부분이 필요하다.Since the basic algorithm of video compression is the same, many video compressors require a control part of this memory.

현재 동영상을 압축하는 하드웨어는 대부분은 다수의 독립적인 기능을 수행하는 반도체 구성이다.Currently, hardware that compresses video is mostly a semiconductor configuration that performs many independent functions.

따라서 입력 영상데이터의 저장과 복원된 영상 데이터를 관리할 기능 블록이 각각 존재하게 되고, 이 두 기능블록간의 공통된 기능을 수행하는 세부 블록들이 각각 독립적으로 동작함으로 동기를 맞추어야 한다.Therefore, a function block for storing the input image data and managing the reconstructed image data exists, and detailed blocks that perform a common function between the two functional blocks must be synchronized with each other.

즉, 디지털로 변환된 입력 데이터는 입력 영상데이터를 처리하는 기능블록의 입력이 되어 입력버퍼 메모리에 저장되고, 복원된 데이터는 영상 버퍼에 저장된다.That is, the digitally converted input data is input to a function block for processing input image data, and stored in the input buffer memory, and the restored data is stored in the image buffer.

그리고 시간적, 공간적 압축을 수행하기 위해 저장된 각각의 영상 데이터가 동기를 이루어 다른 기능블록이나 기능 칩으로 전달 된다.Each image data stored for temporal and spatial compression is synchronized and transferred to other functional blocks or functional chips.

이때에는 동기신호에 의해 데이터의 입출력에 따른 동기를 일치시켜야 한다.At this time, the synchronization according to the input / output of the data should be matched by the synchronization signal.

공간적 압축은 8비트의 입력 영상 데이터, 그리고 움직임 추정과 보상의 시간적 압축을 위해서는 8비트의 입력 영상 데이터 및 16비트의 복원 영상 데이터가 순차적으로 각 수행 블록으로 전송되어 각 기능이 수행되면서 전체적인 영상 압축이 이루어 지고, 이 경우에는 각각 메모리를 제어할 주소와 데이터 그리고 제어신호들의 수가 512 * 512 DRAM을 이용할 경우, 10비트의 주소, 6비트의 제어신호, 16비트의 데이터 버스로 메모리 신호만 32비트의 신호가 필요하고 16 비트의 입력 영상 데이터와 입력영상 제어신호들해서 단일 칩의 동영상 압축기의 구현에 있어 80개 이상의 입출력 신호가 요구된다.In spatial compression, 8-bit input image data and 8-bit input image data and 16-bit reconstructed image data are sequentially transmitted to each execution block for temporal compression of motion estimation and compensation. In this case, when the address and data to control the memory and the number of control signals using 512 * 512 DRAM, respectively, only the memory signal is 32-bit with 10-bit address, 6-bit control signal, and 16-bit data bus. 16 bits of input image data and input image control signals are required, and more than 80 input / output signals are required in the implementation of a single chip video compressor.

이러한 각각의 독립된 2개의 기능블록에는, 메모리와 직접 연결되는 인터페이서 블록, 읽기동작 블록, 쓰기동작 블록의 3부분이 존재하는데, 동일한 구성을 취함으로 공통된 로직이 존재하게 된다.In each of these two independent functional blocks, there are three parts of an interface block, a read operation block, and a write operation block which are directly connected to the memory. By taking the same configuration, common logic exists.

그러나 상기와 같이 동영상 압축기를 하나의 칩(Chip)으로 설계하는 데에는 각각 독립적 기능블록을 그대로 적용할 경우에 입출력 신호의 수가 많아 칩을 제조하기가 어렵게 되는 단점이 있었다.However, in designing a video compressor as one chip as described above, when each independent functional block is applied as it is, the number of input / output signals has a disadvantage in that it is difficult to manufacture a chip.

그리고 MPEG2 급의 영상을 압축하기 위해서는 빠른 처리가 요구되지만, 입력 영상데이터를 관리하는 기능블록과 복원된 영상 데이터를 관리하는 기능블록이 독립적으로 구성되어 각각의 메모리를 제어하므로 영상압축에 필요한 데이터를 제어하기 위한 압축기가 다수의 칩으로 구성되어 메모리가 처리 속도를 따라가지 못하게 되는 문제점이 있었다.In order to compress MPEG-2 video, fast processing is required, but the function block for managing input video data and the function block for reconstructed video data are independently configured to control each memory. Compressor for control is composed of a plurality of chips has a problem that the memory can not keep up with the processing speed.

이에 따라 본 발명의 두 개의 독립된 기능블록을 하나의 기능블록으로 합침으로 공통된 로직의 재사용으로 인한 회로의 크기와 복잡함을 줄이고, 시간 분할기법을 메모리 동작에 적용하여 빠른 처리가 가능하며 입출력 신호를 줄일 수 있도록 한 동영상 신호의 압축을 위한 프레임 메모리 제어 방법 및 장치를 제공함을 그 목적으로 한다.Accordingly, by combining two independent functional blocks of the present invention into one functional block, the circuit size and complexity due to the reuse of common logic are reduced, and the time division technique is applied to the memory operation to enable fast processing and reduce the input / output signal. It is an object of the present invention to provide a frame memory control method and apparatus for compressing a moving image signal.

이와 같은 목적을 달성하기 위한 본 발명은 64비트를 워드로 하여 512 * 512의 크기로 구성하여 352 * 480 이하의 해상도를 가지는 동영상의 4 개의 데이터를 저장할 수 있도록 하고, 메모리의 워드를 64비트로 하여 4번의 동작을 수행하는 시간 분할 기법을 채용하여 4 주기 동안 4번의 메모리 동작(입력영상 데이터 읽기/쓰기, 복원영상 테이터 읽기/쓰기)을 수행하도록 하여 전체적인 수행 속도의 저하가 일어나지 않도록 하고, 전체 블록을 유기적인 블록간의 동작에 필요한 신호들을 생성하는 제어블록과, 메모리로부터 읽고 쓰기위한 주소와 데이터를 생성하는 주소/데이터 블록 및 시간 분할 기법에 따라 각 주소 혹은 주소/데이터를 메모리와 연결하고 메모리 제어 신호의 생성 그리고 전체 출력 신호를 생성하는 인터페이스 블록들로 구성하여 회로의 크기와 복잡함을 줄일 수 있도록 한 것이다.In order to achieve the above object, the present invention configures a 64-bit word to a size of 512 * 512 to store four data of a video having a resolution of 352 * 480 or less, and makes a word of memory 64-bit. By adopting a time division technique that performs four operations, four memory operations (reading / writing input image data, reading / writing reconstructed image data) are performed for four cycles so that the overall execution speed is not reduced and the entire block The control block for generating signals necessary for the operation between the organic blocks, the address / data block for generating the address and data for reading and writing from the memory, and the time division technique. The size of the circuit, consisting of interface blocks that generate the signal and generate the entire output signal. And reduce the complexity.

도 1은 본 발명의 전체적인 구성을 나타낸 블럭도.1 is a block diagram showing the overall configuration of the present invention.

도 2는 본 발명의 동작 과정을 나타낸 플로우 챠트.2 is a flow chart illustrating an operation process of the present invention.

도 3은 본 발명의 일실시예에 따른 구성을 나타낸 블록도.3 is a block diagram showing a configuration according to an embodiment of the present invention.

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

1 : 제어부2 : 메모리1 control unit 2 memory

3 : 인터페이스4 : 입력영상 저장블록3: Interface 4: Input image storage block

5 : 입력영상 읽기블록6 : 복원영상 읽기블록5: Input image read block 6: Restored image read block

7 : 복원영상 쓰기블록7: Restoration image writing block

이하 본 발명을 첨부 도면에 의거 상세히 기술하여 보면 다음과 같다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 전체적인 구성을 나타낸 것으로, 내부의 전체적인 동작을 제어하기 위해 제어신호를 발생하는 제어부(controller)(1)와, 메모리(DRAM)(2)에 데이터를 입력시키거나 내,외부로 출력시키는 인터페이스(interface)(3)와, 상기 제어부(1)의 제어를 받으면서 현재의 입력영상 데이터를 인터페이스(3)를 거쳐 메모리(2)에 저장하기 위한 입력영상 저장블록(OFW)(4)과, 상기 제어부(1)의 제어를 받으면서 메모리(2)에 저장된 입력영상 데이터를 인터페이스(3)를 통해 읽기 위한 입력영상 읽기블록(OFR)(5)과, 상기 제어부(1)의 제어를 받으면서 복원된 영상데이터를 인터페이스(3)를 통해 메모리(2)에서 읽기위한 복원영상 일기블록(FDR)(6)과, 상기 제어부(1)의 제어를 받으면서 입력되는 복원영상 데이터를 인터페이스(3)를 통해 메모리(2)에 저장하기 위한 복원영상 저장블록(FDW)(7)들로 구성한 것이다.FIG. 1 shows the overall configuration of the present invention, in which data is inputted into a controller 1 and a memory 2 to generate a control signal to control the overall operation of the device. And an input image storage block (OFW) 4 for storing the current input image data in the memory 2 via the interface 3 while being controlled by the controller 1. And an input image reading block (OFR) 5 for reading the input image data stored in the memory 2 through the interface 3 under the control of the control unit 1, and controlling the control unit 1. Received image diary block (FDR) 6 for reading the reconstructed image data from the memory 2 via the interface 3 and the reconstructed image data input under the control of the controller 1; Reconstructed image for saving to memory (2) via Long block (FDW) (7).

여기서 각 블록(4)(5)(6)(7)은 시간 분할기법에 따라 각각에 주어진 동작시간 동안 메모리(2)의 동작에 맞게 읽기 동작의 경우에는 주소신호를, 쓰기 동작의 경우에는 주소신호와 데이터를 각각 생성하여 인터페이스(3)에 전달한다.Here, each block (4) (5) (6) (7) addresses an address signal in the case of a read operation and an address in the case of a write operation in accordance with the operation of the memory 2 for each given operation time according to a time division technique. Signals and data are each generated and delivered to the interface 3.

그러므로 제어부(1)는 아날로그 영상을 디지털 영상으로 변환하는 기능을 수행하는 NTSC 디코더로부터의 새로운 영상을 가리키는 신호, 압축기능 설정신호, 주 동작 클럭들을 입력받아 이 신호와 설정값으로부터 전체 동작에 필요한 신호를 발생하여 출력한다.Therefore, the control unit 1 receives a signal indicating a new image, a compression function setting signal, and a main operation clock from an NTSC decoder which performs a function of converting an analog image into a digital image, and from this signal and the set value, a signal necessary for the entire operation. Generate and print

상기 제어부(1)에서 출력되는 제어 신호들은 내부의 다른 블록으로 입력 되는데, 동일하게 출력되는 신호와 블록마다 고유하게 출력되는 신호로 구별되고, 새로운 영상의 시작과 영상의 형식, 그리고 입력 영상 데이터의 저장에 필요한 동기 신호와, 각 블록에 주어진 동작 시간을 알리는 신호, 그리고 주소 생성에 필요한 신호, 메모리(2)와 인터페이스(3)와 데이터를 외부로 출력시키기 위한 제어 신호들을 출력된다.The control signals output from the control unit 1 are input to other blocks inside, and are divided into identically output signals and signals uniquely output for each block, and start of a new image, format of the image, and input image data. A synchronization signal for storage, a signal for informing the operation time given to each block, a signal for address generation, and control signals for outputting the memory 2 and the interface 3 and data to the outside are output.

상기의 입력영상 저장블록(OFW)(4)에는 새로운 영상 형식, 동작 시간 그리고 동작에 필요한 동기 신호들이 제어 신호로 입력받으면서 현재의 입력영상 데이터를 변환시킨 후 영상 형식에 따라 구성된 메모리(2)에 쓰기위한 입력영상 데이터와 주소 그리고 유효신호와 함께 출력한다.The input image storage block (OFW) 4 converts the current input image data while receiving a new image format, operation time, and synchronization signals required for the operation as a control signal, and then converts the current input image data into a memory 2 configured according to the image format. Outputs with input image data, address and valid signal for writing.

상기의 입력영상 읽기블록(OFR)(5)에는 주소 생성에 필요한 계수 값들, 영상 형식 및 새로운 영상을 알리는 신호들을 입력받아 메모리(2)에서 데이터를 읽기 위한 주소와 그의 유효신호가 출력된다.The input image reading block (OFR) 5 receives coefficient values necessary for generating an address, an image format, and signals informing of a new image, and outputs an address for reading data from the memory 2 and a valid signal thereof.

상기의 복원영상 읽기블록(FDR)(6)은 상기 입력영상 읽기블록(5)와 동일한 신호를 입력받지만 계수의 값에만 차이가 있으며, 동일한 두 개의 신호가 출력되지만 유효신호의 기간이 다르다.The reconstructed picture reading block (FDR) 6 receives the same signal as the input picture reading block 5, but differs only in the value of the coefficient, and the same two signals are output but the duration of the valid signal is different.

복원 영상 저장블록(FDW)(7)은 저장할 입력 데이터와 이의 메모리(2) 상의 위치 영역을 알려주는 계수값과 동기신호가 입력되고 영상 형식에 따른 데이터와 주소 및 유효 신호가 출력된다.The reconstructed image storage block (FDW) 7 is inputted with a coefficient value and a synchronization signal indicating the input data to be stored and a location area on the memory 2 thereof, and data, an address, and a valid signal according to the image format are output.

상기의 인터페이스(interface)(3)에는 상기 4 블록(4)(5)(6)(7)로부터 주소, 데이터, 유효신호들, 제어부(1)로부터의 제어신호 및 메모리(2)로부터의 영상 형식에 따라 64비트 또는 32 비트의 데이터들이 입력되며, 메모리(2)의 주소, 메모리(2)의 제어신호, 출력 데이터 및 동기 신호들이 출력된다.The interface 3 has an address, data, valid signals from the four blocks 4, 5, 6 and 7, a control signal from the controller 1 and an image from the memory 2. Depending on the format, 64-bit or 32-bit data is input, and the address of the memory 2, the control signal of the memory 2, the output data and the synchronization signal are output.

각각의 동작을 제어부(1)에서 제어함으로서 각 블록으로부터의 신호가 제어부(1)로 궤환되지 않고 순차적으로 수행된다.By controlling each operation in the controller 1, signals from each block are sequentially performed without being fed back to the controller 1.

이는 시간을 분할 하여 저속의 메모리를 사용하면서 정확한 동작을 위한 것으로, 4개의 분할된 블록(OFW, OFR, FDW, FDR)의 고유 동작 시간과 그 시간동안에 수행해야할 각 블록의 동작을 알려 준다. 이렇게 함으로서 최적의 동작 상태를 유지할 수가 있다.This is for accurate operation by dividing the time and using low speed memory. The operation time of the four divided blocks (OFW, OFR, FDW, FDR) and the operation of each block to be performed during that time are known. In this way, an optimum operating state can be maintained.

본 발명에 의해 수행할 수 있는 입력영상 데이터의 형식과 압축 방법을 표현한 다음의 표에서 알 수 있는 바와 같이 MPEG1과 H261 일 경우는 영상 형식을 동일하지만, 내부적인 내부 제어 신호의 생성은 얼마간 다르게 된다.As shown in the following table representing the format and compression method of the input image data that can be performed by the present invention, in the case of MPEG1 and H261, the image format is the same, but the internal internal control signal generation is somewhat different. .

이와 같이 구성한 본 발명의 동영상 신호의 압축을 위한 프레임 메모리 장치는 데이터의 입력 - 쓰기 - 읽기 - 출력의 순으로 이루어 지는 것으로, 입력의 처리는 제어부(1)와 입력영상 저장블록(4)과 복원영상 저장블록(7)에서 수행하고, 쓰기/읽기 및 출력은 인터페이스(3)와 4개의 블록(4)(5)(6)(7)에서 수행한다.The frame memory device for compressing a video signal of the present invention configured as described above is composed of data input, write, read, and output. The input processing is performed by the control unit 1, the input image storage block 4, and the restoration. The image storage block 7 is performed, and the write / read and output are performed at the interface 3 and the four blocks 4, 5, 6 and 7.

먼저 압축의 방법과 프레임 속도(frame rete)를 설정하는 것으로 새로운 동작이 이루어 지며, 압축의 방법과 프레임 속도는 외부에서 하나의 설정 활성신호와 그 때의 설정 값을 실어 줌으로서 제어부(1)에서 이를 처리하여 내부의 각 블록(4)∼(7)으로 전송하고, 이 값은 메모리(2)의 동작에 있어 주소와 데이터를 생성하는 기준이 된다.First, a new operation is achieved by setting the compression method and the frame rate. The compression method and the frame rate are controlled by the controller 1 by carrying one set activation signal and the set value at that time. This is processed and transmitted to each of the internal blocks 4 to 7, and this value serves as a reference for generating addresses and data in the operation of the memory 2.

하나의 영상(프레임)은 2개의 필드 영상으로 구분 되는데, 매 필드 영상이 바뀔 때마다 제어부(1)에서 설정된 압축 방법값과 동작 속도를 기준으로 하여 내부의 블록에서 요구되는 신호를 발생한다.One image (frame) is divided into two field images, and whenever a field image is changed, a signal required in an internal block is generated based on a compression method value and an operation speed set by the controller 1.

입력영상 데이터는 프레임의 동기 신호에 따라 순차적으로 메모리(2)의 입력영상 영역에 저장되고, 시간/공간적 압축에 필요한 입력 프레임 데이터를 읽기 위한 입력 영상 읽기블록(5)은 압축방법에서의 단위로, 영상의 휘도성분은 16*16픽셀로 하고 색도성분을 두 개로 구분하여 8*8로 한 매크로 블록의 단위로 영상을 읽도록 한다.The input image data is sequentially stored in the input image region of the memory 2 according to the synchronization signal of the frame, and the input image reading block 5 for reading input frame data necessary for temporal / spatial compression is a unit in the compression method. In this case, the luminance component of the image is 16 * 16 pixels and the chroma component is divided into two and 8 * 8 to read the image in units of one macro block.

읽기 동작에서 주소 생성에 필요로 하는 계수 값들은 제어부(1)에서 입력되고, 복원영상의 읽기 동작도 같은 방법으로 이루어 지며, 복원 영상의 저장은 복원 영상 데이터의 입력이 블록(압축방법과 같은 8 * 8픽셀의 데이터) 단위로 입력되므로 메모리(2)에 매크로 블록(4개의 휘도 블록과 2개의 색도 블록, 그리고 2개의 빈 블록으로 구성)단위로 저장하기 위한 주소를 생성하고 입력 데이터를 생성함으로서 동작이 이루어 진다.The coefficient values required for address generation in the read operation are input from the control unit 1, and the read operation of the reconstructed image is performed in the same manner. * 8 pixels of data are inputted, so that an address for storing macro blocks (comprising of 4 luminance blocks, 2 chroma blocks, and 2 empty blocks) in memory 2 is generated and input data is generated. The action is made.

상기 각 블록(4)∼(7)의 동작은 주어진 활성 시간 동안 이루어 지는데, 이러한 활성 시간의 순서는 새로운 프레임의 시작점으로부터 복원영상 저장블록(7), 입력영상 저장블록(4), 입력영상 읽기블록(5), 복원영상 읽기블록(6)이며, 활성 시간은 주 동작 클럭인 28MHz의 1/4인 7MHz의 한 주기 동안 이루어 진다.The operation of each block (4) to (7) is performed for a given active time, the order of the active time is the reconstructed image storage block (7), the input image storage block (4), reading the input image from the start of the new frame Block 5, reconstructed image reading block 6, the active time is made for one period of 7MHz, which is 1/4 of the main operation clock 28MHz.

상기의 동작은 프레임의 유효 기간 동안 만 발생하며, 그 외의 시간에서는 항상 비활성 상태가 되어 메모리(2)로부터의 동작이 이루어지지 않는다.The above operation occurs only during the valid period of the frame, and is always inactive at other times and no operation from the memory 2 is performed.

입력영상 저장블록(4)은 새로운 프레임 시작 때까지 활성 신호가 주기적으로 발생하고, 입력영상 읽기블록(5)과 복원영상 읽기블록(6)은 한 프레임의 데이터를 다 읽을 동안만 주기적으로 활성 상태가 나타나게 되고, 복원영상 저장블록(7)은 복원 입력 플레임 데이터가 유효한 동안 활성 신호가 반복된다.The input image storage block 4 periodically generates an active signal until the start of a new frame, and the input image reading block 5 and the reconstructed image reading block 6 are periodically active only while reading data of one frame. Appears, and the reconstructed image storage block 7 repeats the active signal while the reconstructed input frame data is valid.

인터페이스(3)에서는 이러한 활성신호와 압축 형식 그리고 4 개의 블록(4)∼(7)으로부터의 유효 신호에 의해 유효한 동작을 메모리(2)와 연결하고 메모리(2)로부터 읽은 데이터를 외부로 유효신호와 함께 전송한다.The interface 3 connects a valid operation to the memory 2 by the activation signal, the compression format, and the valid signals from the four blocks 4 to 7 and the data read from the memory 2 to the valid signal. Send along with.

제어부(1)는 입력영상 읽기블록(5), 복원영상 읽기블록(6), 복원영상 저장블록(7)에서 필요로 하는 계수 값을 프레임 시작 부터 한 프레임 동안 영상 형식에 맞게 바뀌게 되고, 영상을 매크로 블록 단위로 분할 했을 때의 수평/수직으로의 계수값인 매크로 블록 계수값괴 매크로 블록내의 픽셀을 계수 하는 기능을 수행하는 픽셀 계수값을 바꾸게 된다.The controller 1 changes the coefficient values required by the input image read block 5, the reconstructed image read block 6, and the reconstructed image storage block 7 to match the image format for one frame from the start of the frame. The macroblock coefficient value, which is a horizontal / vertical coefficient value when divided into macroblock units, changes a pixel coefficient value that performs a function of counting pixels in a macroblock.

상기와 같은 본 발명의 동작 과정을 도 2의 플로우 챠트를 참고로 설명하면 다음과 같다.Referring to the flow chart of Figure 2 the operation of the present invention as described above with reference to.

처음 압축의 방법과 프레임 속도(frame rate)를 설정하는 초기화가 행하여 지고 이 때에는 압축의 방법과 프레임 속도는 외부에서 하나의 설정 활성신호와 그 때의 설정 값을 실어 줌으로서 제어부(1)에서 이를 처리하여 내부의 각 블록(4)∼(7)으로 전송하여 메모리(2)의 동작에 있어 주소와 데이터를 생성하는 기준이 되도록 한다(단계 11).Initialization is performed to set the compression method and the frame rate for the first time. In this case, the control method and the frame rate are carried out by the control unit 1 by carrying an external setting signal and the set value at that time. The data is processed and transferred to the respective blocks 4 to 7 so as to be a reference for generating addresses and data in the operation of the memory 2 (step 11).

다음에 새로운 프레임이 입력되는 가를 인식하여(단계 12) 입력이 있으면, 제어부(1)가 메모리(2)의 동작을 입력 모드로 전환하면서 매크로 블록 계수 및 픽셀 계수의 값을 초기화하는 한편(단계 13), 지금 입력되는 데이터가 새로운 프레임이 아니면 설정된 계수를 수행하면서 동기 신호를 발생시킨다(단계 14).Recognizing whether a new frame is input next (step 12), if there is an input, the controller 1 initializes the values of the macroblock coefficients and pixel coefficients while switching the operation of the memory 2 to the input mode (step 13). If the data currently input is not a new frame, a synchronization signal is generated while performing the set coefficient (step 14).

다음에 새 프레임 신호에 따라 제어부(1)에서 각 블록(4)(5)(6)(7)의 동작을 순차적으로 제어하기 위한 시간의 제어 신호를 각각 설정하고(단계 15), 메모리(2)의 주소 생성에 필요한 계수를 생성한 후 입력영상 데이터 및 복원영상 데이터의 입력에 따라 저장할 메모리(2)의 주소와 데이터를 생성한다(단계 16).Next, in accordance with the new frame signal, the control unit 1 sets a control signal of time for sequentially controlling the operation of each block (4) (5) (6) (7) (step 15), and the memory (2). After generating coefficients necessary for generating an address of the C), addresses and data of the memory 2 to be stored are generated according to the input image data and the reconstructed image data (step 16).

다음에 복원영상 저장블록(7), 입력영상 저장블록(4), 입력영상 읽기블록(5), 복원영상 읽기블록(6)들과 인터페이스(3)를 통해 동기 신호에 의해 순차적으로 메모리(2)에 연결시키면서 데이터를 저장하거나 읽도록 하되, 활성 시간은 주 동작 클럭인 28MHz의 1/4인 7MHz의 한 주기에 이루어 지도록 메모리(2)를 동작시킨다(단계 17).Next, the reconstruction image storage block 7, the input image storage block 4, the input image reading block 5, the reconstruction image reading block 6, and the interface 3 and the memory 3 are sequentially loaded by the synchronization signal. The memory 2 is operated to store or read data while the active time is performed in one cycle of 7 MHz, which is 1/4 of the main operation clock of 28 MHz (step 17).

그리고 메모리(2)에서 읽은 데이터를 인터페이스(3)를 통해 외부로 출력시킨다.(단계 18).Then, the data read from the memory 2 is outputted to the outside via the interface 3 (step 18).

즉, 입력영상 저장블록(4)은 메모리(2)의 빠른 페이지(Fast page) 모드를 이용하여 16비트의 입력데이터를 영상 형식에 맞게 구성하여 2번 메모리에 쓰기를 수행하고, 이때 필요한 주소와 데이터는 활성 시간동안 메모리(2)의 타이밍에 맞추어 발생하며, 메모리 제어 신호는 인터페이스(3)에서 동작에 맞는 제어 신호를 생성함으로서 메모리(2)의 쓰기 동작이 이루어 진다.That is, the input image storage block 4 writes the 16-bit input data to the image format using the fast page mode of the memory 2 and writes it to the second memory. Data is generated according to the timing of the memory 2 during the active time, and the memory control signal is written to the memory 2 by generating a control signal suitable for operation at the interface 3.

반면에 복원영상 저장블록(7)은 8비트의 복원 영상 데이터를 메모리(2)에 한번만 데이터를 쓰면 된다.On the other hand, the reconstructed image storage block 7 only needs to write 8-bit reconstructed image data to the memory 2 once.

그리고 영상 데이터를 압축을 위해 입력영상 데이터는 8비트, 그리고 복원영상 데이터는 16비트씩 필요함으로 복원 영상 데이터는 메모리(2) 빠른 페이지 모드를 이용해서 데이터를 2번 읽어야 한다.In order to compress the image data, the input image data is 8 bits and the reconstructed image data is required by 16 bits, so the reconstructed image data should be read twice using the memory (2) fast page mode.

본 발명은 단일 칩이나 복합 칩을 이용한 영상 압축기에 이용될 수 있는 것으로서, MPEG1/2, H. 261 등의 압축 규격을 구현할 경우에 사용되어 영상 압축에서 입력 영상과 복원 영상의 관리기능을 수행하게 된다.The present invention can be used in an image compressor using a single chip or a composite chip, and is used when implementing a compression standard such as MPEG1 / 2, H. 261, and the like to perform a management function of an input image and a reconstructed image in image compression. do.

또한 차후에 등장할 동영상 압축 방법에도 이용될 수 있으며, 실시간으로 영상을 처리/복원을 하는 부호기에 이용될 수 가 있다.In addition, it can be used in a video compression method that will appear later, it can be used in the encoder to process / restore the image in real time.

도 3은 본 발명의 동영상 신호의 압축을 위한 프레임 메모리 제어 장치를 MPEG1에 적용한 상태를 나타낸 것으로서, 아날로그/디지탈 변환기(21)에 의해 아날로그에서 디지털로 변환한 입력영상 데이터를 본 발명의 프레임 메모리 제어 장치(22)를 통해 메모리(2)의 입력영상 영역에 저장하고, 공간적 압축수단(23)에 의해 공간적 압축이 수행된 다음 코닝수단(24)을 통해 압축된 영상 데이터가 출력되도록 하는 한편, 상기의 공간 압축된 데이터가 복원수단(25)에 의해 복원된 복원입력 데이터를 본 발명의 프레임 메모리 제어 장치(22)를 통하여 메모리(2)의 복원 입력 영역에 저장한다.3 shows a state in which a frame memory control apparatus for compressing a video signal of the present invention is applied to MPEG1. The frame memory control of the present invention converts input image data converted from analog to digital by an analog / digital converter 21. The device 22 is stored in the input image area of the memory 2, and spatial compression is performed by the spatial compression means 23, and then compressed image data is output through the corning means 24. The spatially compressed data of the data is restored by the recovery means 25, and is then stored in the recovery input area of the memory 2 through the frame memory control device 22 of the present invention.

그리고 시간적 압축수단(26)에 의해 상기 복원 영상과 상기의 입력 영상간의 시간적 중복성을 이용해 다시 압축이 이루어지도록 한 후 코딩 수단(24)으로 출력되도록 한다.Then, the compression is performed again by the temporal compression means 26 by using the temporal redundancy between the reconstructed image and the input image and then output to the coding means 24.

이와 같은 순환은 영상입력 데이터의 매 프레임마다 동일하게 이루어 진다.Such a circulation is performed in every frame of the image input data.

따라서, 본 발명의 동영상 신호의 압축을 위한 프레임 메모리 제어 방법 및 장치에 의하여서는 64비트를 워드로 하여 처리함으로 이러한 속도 문제를 해결할 수 있어 복합 칩으로 동영상 부호기를 설계할 때 더욱 빠른 신호의 처리가 가능하도록 함은 물론, 메모리 인터페이스로 입력/출력되는 신호수를 최소로하여 빠른 수행 속도를 가진 최적화된 로직을 얻을 수가 있어 ASIC에 있어 안정된 처리를 가능하게 한 것이다.Therefore, the frame memory control method and apparatus for compressing a video signal of the present invention can solve such a speed problem by processing 64-bit as a word, so that faster signal processing when designing a video encoder with a composite chip is possible. In addition, the optimized logic with fast execution speed can be obtained by minimizing the number of signals input / output through the memory interface, which enables stable processing in the ASIC.

Claims (3)

내부의 전체적인 동작을 제어하기 위해 제어신호를 발생하는 제어부(1)와,A control unit 1 for generating a control signal for controlling the overall operation of the inside, 메모리(2)에 데이터를 입력시키거나 내,외부로 출력시키는 인터페이스(3)와,An interface 3 for inputting data into the memory 2 or outputting the data in and out of the memory 2; 상기 제어부(1)의 제어를 받으면서 현재의 입력영상 데이터를 인터페이스(3)를 거쳐 메모리(2)에 저장하기 위한 입력영상 저장블록(4)과,An input image storage block 4 for storing current input image data in the memory 2 via an interface 3 under the control of the controller 1, 상기 제어부(1)의 제어를 받으면서 메모리(2)에 저장된 입력영상 데이터를 인터페이스(3)를 통해 읽기 위한 입력영상 읽기블록(5)과,An input image reading block 5 for reading the input image data stored in the memory 2 through the interface 3 under the control of the controller 1; 상기 제어부(1)의 제어를 받으면서 복원된 영상데이터를 인터페이스(3)를 통해 메모리(2)에서 읽기위한 복원영상 일기블록(6)과,A restored image diary block 6 for reading the restored image data under the control of the controller 1 from the memory 2 through the interface 3; 상기 제어부(1)의 제어를 받으면서 입력되는 복원영상 데이터를 인터페이스(3)를 통해 메모리(2)에 저장하기 위한 복원영상 저장블록(7)들로 구성됨을 특징으로 하는 동영상 신호의 압축을 위한 프레임 메모리 제어 장치.Frame for compressing a video signal, characterized in that consisting of the reconstructed image storage block 7 for storing the reconstructed image data input under the control of the control unit 1 in the memory 2 through the interface (3) Memory control unit. 제 1 항에 있어서, 상기 인터페이스(3), 복원영상 저장블록(7), 입력영상 저장블록(4), 입력영상 읽기블록(5), 복원영상 읽기블록(6)들은 동기 신호에 의해 순차적으로 메모리(2)에 연결되도록 하여 시간 분할 기법에 의해 동영상 압축을 위한 영상 데이터를 관리하도록 한 동영상 신호의 압축을 위한 프레임 메모리 제어 장치.The method of claim 1, wherein the interface (3), the reconstructed image storage block (7), the input image storage block (4), the input image read block (5), and the reconstructed image read block (6) are sequentially arranged by a synchronization signal. A frame memory control device for compressing a video signal, which is connected to a memory (2) and manages video data for video compression by a time division technique. 처음 압축의 방법과 프레임 속도를 설정하는 초기화가 행하는 단계와,Initializing to set the compression method and the frame rate for the first time, 새로운 프레임이 입력되면, 내부의 동작을 입력 모드로 전환하면서 매크로 블록 계수 및 픽셀 계수의 값을 초기화하는 단계와,When a new frame is input, initializing the values of the macroblock coefficients and pixel coefficients while switching the internal operation to the input mode; 새로운 프레임이 아니면, 설정된 매크로 블록 계수 및 픽셀 계수를 수행하면서 동기 신호를 발생시키는 단계와,If it is not a new frame, generating a synchronization signal while performing the set macroblock coefficient and pixel coefficient; 새 프레임 신호에 따라 동작을 순차적으로 제어하기 위한 활성 시간을 각각 설정하는 단계와,Setting an active time for sequentially controlling the operation according to the new frame signal; 주소 생성에 필요한 계수를 생성한 후 저장할 주소와 데이터를 생성하는 단계와,Generating the addresses and data to be stored after generating the coefficients necessary for address generation; 복원영상 저장블록(7), 입력영상 저장블록(4), 입력영상 읽기블록(5), 복원영상 읽기블록(6)들과 인터페이스(3)를 통해 동기 신호에 의해 순차적으로 메모리(2)에 연결시키면서 데이터를 저장하거나 읽도록 메모리(3)를 동작시키는 단계와,The reconstructed image storage block (7), the input image storage block (4), the input image reading block (5), the reconstructed image reading block (6) and the interface (3) in order to the memory (2) sequentially Operating the memory 3 to store or read data while connecting; 메모리(2)에서 읽은 데이터를 인터페이스(3)를 통해 외부로 출력시키는 단계들에 의해 수행됨을 특징으로 하는 동영상 신호의 압축을 위한 프레임 메모리 제어 방법.A frame memory control method for compressing a video signal, characterized in that performed by steps of outputting data read from the memory (2) to the outside through the interface (3).
KR1019970012218A 1997-04-02 1997-04-02 Frame memory control method and device for moving image signal compression KR100240005B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970012218A KR100240005B1 (en) 1997-04-02 1997-04-02 Frame memory control method and device for moving image signal compression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970012218A KR100240005B1 (en) 1997-04-02 1997-04-02 Frame memory control method and device for moving image signal compression

Publications (2)

Publication Number Publication Date
KR19980075855A true KR19980075855A (en) 1998-11-16
KR100240005B1 KR100240005B1 (en) 2000-01-15

Family

ID=19501837

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970012218A KR100240005B1 (en) 1997-04-02 1997-04-02 Frame memory control method and device for moving image signal compression

Country Status (1)

Country Link
KR (1) KR100240005B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100498445B1 (en) * 2002-05-30 2005-07-01 삼성전자주식회사 Image encoding method and apparatus for improving performance

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100498445B1 (en) * 2002-05-30 2005-07-01 삼성전자주식회사 Image encoding method and apparatus for improving performance

Also Published As

Publication number Publication date
KR100240005B1 (en) 2000-01-15

Similar Documents

Publication Publication Date Title
KR100552576B1 (en) A method for processing a datastream of mpeg coded image representative data and an mpeg compatible digital signal processing system
JP4545250B2 (en) Method and apparatus for encoding and decoding video signals by using motion vector storage and readout
EP0592351B1 (en) Image decoder
JP2010050976A (en) Method and apparatus for providing higher resolution images in embedded device
US20130064304A1 (en) Method and System for Image Processing in a Microprocessor for Portable Video Communication Devices
JP3976353B2 (en) Digital camera
US5781242A (en) Image processing apparatus and mapping method for frame memory
KR100502413B1 (en) Image processing apparatus and method for converting image data between raster scan order and block scan order
KR100601618B1 (en) Apparatus for supplying the opimul data for hierachical motion estimator and method thereof
JP2007158550A (en) Image processing apparatus, and image processing method
KR100451584B1 (en) Device for encoding and decoding a moving picture using of a wavelet transformation and a motion estimation
KR100240005B1 (en) Frame memory control method and device for moving image signal compression
JPH10210399A (en) Memory address calculation device and method for block scanning and raster scanning
KR100377108B1 (en) The apparatus for processing of Raster-to-Block converting data
JP3253489B2 (en) Image data processing device
JP2001028749A (en) Device for image compression/expansion and display
JP2933029B2 (en) Digital signal encoding / decoding circuit
KR0123090B1 (en) Address generator for compensating the motion
JPH10341351A (en) Method and device for processing data
KR100210395B1 (en) Differential pulse coding modulator in mpeg-2 encoder
KR0123082B1 (en) Motion compensation circuit
KR19990003132A (en) Frame memory device
JPH1155661A (en) Image encoder
JP2001186524A (en) Video signal decoder
JPH06217283A (en) Encoding process unit and moving picture data encoding device, and decoding process unit and moving picture data decoding device

Legal Events

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

Payment date: 20121005

Year of fee payment: 14

FPAY Annual fee payment

Payment date: 20131025

Year of fee payment: 15

FPAY Annual fee payment

Payment date: 20141223

Year of fee payment: 16

FPAY Annual fee payment

Payment date: 20151023

Year of fee payment: 17

LAPS Lapse due to unpaid annual fee