KR20060122530A - Direct memory access control apparatus for transmitting burst of image data that is different with sampling and the burst transmitting method thereof - Google Patents

Direct memory access control apparatus for transmitting burst of image data that is different with sampling and the burst transmitting method thereof Download PDF

Info

Publication number
KR20060122530A
KR20060122530A KR1020050045081A KR20050045081A KR20060122530A KR 20060122530 A KR20060122530 A KR 20060122530A KR 1020050045081 A KR1020050045081 A KR 1020050045081A KR 20050045081 A KR20050045081 A KR 20050045081A KR 20060122530 A KR20060122530 A KR 20060122530A
Authority
KR
South Korea
Prior art keywords
memory
component data
data
image data
burst
Prior art date
Application number
KR1020050045081A
Other languages
Korean (ko)
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 KR1020050045081A priority Critical patent/KR20060122530A/en
Publication of KR20060122530A publication Critical patent/KR20060122530A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/28DMA
    • G06F2213/2806Space or buffer allocation for DMA transfers

Abstract

An image processing apparatus capable of transmitting the burst of image data with different sampling extraction ratios and a burst transmitting method thereof are provided to differently make the structure of data without changing the size of the burst. Image data are stored in a memory(420). The memory is divided into a Y memory area and a Cb/Cr memory area. Y is stored in the Y memory area and Cb and Cr are alternately and sequentially stored in the Cb/Cr memory area. A DMA(Direct Memory Access) control device(430) stores the Y outputted by the line unit through an image data pre-processor(410) and an image decoder(450) in the Y memory area of the memory and the Cb and Cr in the Cb/Cr memory area. The DMA control device reads the components of Y, Cb and Cr in the image data with any one of the sample extraction ratios of Y:Cb:Cr=4:2:2 or 4:1:1 and transmits the read sample extraction ratio to an image compressor(440).

Description

표본 추출비가 다른 화상데이터의 버스트 전송이 가능한 화상처리장치 및 그 버스트 전송방법{Direct memory access control apparatus for transmitting burst of image data that is different with sampling and the burst transmitting method thereof}Direct memory access control apparatus for transmitting burst of image data that is different with sampling and the burst transmitting method

도 1은 종래의 화상처리장치의 블럭도,1 is a block diagram of a conventional image processing apparatus;

도 2는 종래의 화상 데이터 포맷의 일 실시예를 도시한 도면, 2 shows an embodiment of a conventional image data format;

도 3은 종래의 메모리 영역의 데이터 구조를 도시한 도면,3 is a diagram showing a data structure of a conventional memory area;

도 4는 본 발명의 일 실시예에 따른 화상처리장치의 블럭도,4 is a block diagram of an image processing apparatus according to an embodiment of the present invention;

도 5는 본 발명의 화상처리장치에 의한 화상 데이터 포맷의 일 실시예를 도시한 도면,5 is a view showing an embodiment of an image data format by the image processing apparatus of the present invention;

도 6은 본 발명의 일 실시예에 따른 DMA 제어장치의 세부적인 블럭도, 6 is a detailed block diagram of a DMA control apparatus according to an embodiment of the present invention;

도 7은 본 발명의 DMA 제어장치에 의한 메모리 영역의 데이터 구성을 도시한 도면, 그리고7 is a diagram showing the data configuration of a memory area by the DMA control apparatus of the present invention; and

도 8은 본 발명의 일 실시예에 따른 화상처리장치의 버스트 전송방법의 설명에 제공되는 흐름도이다.8 is a flowchart provided to explain a burst transmission method of an image processing apparatus according to an embodiment of the present invention.

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

410 : 화상데이터 전처리기 420 : 메모리410: Image data preprocessor 420: Memory

430 : DMA 제어장치 440 : 화상압축기430: DMA controller 440: image compressor

450 : 화상 복호화기450: image decoder

본 발명은 화상처리장치 및 그 버스트 전송방법에 관한 것으로, 더욱 상세하게는, 표본 추출비가 서로 다른 화상데이터를 최대 버스트(burst) 크기에 맞추어 전송하는 화상처리장치 및 그 버스트 전송방법에 관한 것이다.The present invention relates to an image processing apparatus and a burst transmission method, and more particularly, to an image processing apparatus and a burst transmission method for transmitting image data having different sampling ratios in accordance with a maximum burst size.

화상처리장치는 외부로부터 입력되는 화상을 처리하는 장치로, 구체적으로 외부 입출력기기로부터 입력되는 화상에 대응하는 화상데이터를 JPEG(Joint Photographic Experts Group)으로 압축하여 직접 메모리 액세스(Direct Memory Access : 이하 'DMA'라고 함) 동작을 통해 메모리에 저장하거나, 외부 입출력기기의 요구에 의해 메모리에 저장되어 있는 화상데이터를 DMA 동작을 통해 독출하는 것이 가능하다.The image processing apparatus is an apparatus for processing an image input from the outside. Specifically, the image processing apparatus compresses image data corresponding to an image input from an external input / output device into a Joint Photographic Experts Group (JPEG) to directly access memory. Or image data stored in the memory at the request of an external input / output device through the DMA operation.

DMA 동작은 CPU(Central Processing Unit)를 통해 CPU의 제어를 받지 않고, 버스에 연결된 메모리와 채널 사이에 직접 데이터 전송이 수행되는 동작으로, 화상처리장치에 구비된 DMA 제어장치에 의해 수행된다. DMA 제어장치는 버스를 통해 메모리와 채널 사이에 직접 데이터를 전송한다. The DMA operation is an operation in which data transfer is directly performed between a memory connected to a bus and a channel without being controlled by a CPU through a central processing unit (CPU), and is performed by a DMA controller provided in an image processing apparatus. The DMA controller transfers data directly between the memory and the channel via the bus.

도 1은 종래의 화상처리장치의 블럭도이다. 1 is a block diagram of a conventional image processing apparatus.

도 1을 참조하면, 종래의 화상처리장치는 화상데이터 전처리기(110), 메모리 (120), DMA 제어장치(130), 화상압축기(140), 및 화상 복호화기(150)를 포함한다.Referring to FIG. 1, a conventional image processing apparatus includes an image data preprocessor 110, a memory 120, a DMA controller 130, an image compressor 140, and an image decoder 150.

화상데이터 전처리기(110)는 화상데이터의 휘도(Luminance) 성분 Y, 색차(Chrominance) 성분 Cb, Cr을 Y : Cb : Cr = 4 : 2 : 2 및 Y : Cb : Cr = 4 : 1 : 1 중 어느 하나의 표본 추출비로 출력한다. 이때, 화상데이터 전처리기(110)는 Y, Cb, Cr 순서의 라인(line) 단위로 래스터(raster) 출력한다. The image data preprocessor 110 sets the luminance component Y, the chrominance component Cb, Cr of the image data Y: Cb: Cr = 4: 2: 2: and Y: Cb. : Cr = 4: 1: The sampling ratio of any one of them is output. At this time, the image data preprocessor 110 is Y, Cb, Cr Raster output in line units of sequence.

DMA 제어장치(130)는 라인 단위로 출력된 화상데이터를 각각의 성분 영역에 대응되는 메모리(120)의 영역에 저장한다. 그리고, DMA 제어장치(130)는 메모리(120)에 저장된 화상데이터 성분 Y, Cb, Cr을 Y : Cb : Cr = 4 : 2 : 2 및 Y : Cb : Cr = 4 : 1 : 1 중 어느 하나의 표본 추출비로 8 픽셀*8 픽셀 블록 단위로 독출하여 화상 압축기(140)에 전달한다. The DMA controller 130 stores image data output in units of lines in an area of the memory 120 corresponding to each component area. Then, the DMA controller 130 selects the image data components Y, Cb, and Cr stored in the memory 120 from Y: Cb: Cr = 4: 2: 2 and Y: Cb. : Cr = 4: 1: 1 The reading ratio of any one of the 8 pixel * 8 pixel block at a sampling ratio is transmitted to the image compressor 140.

구체적으로, 버스의 폭이 32비트이고 Y : Cb : Cr = 4 : 2 : 2의 표본 추출비를 이용할 경우, DMA 제어장치(130)는 Y는 16 픽셀(4 word)의 데이터를 화상 압축기(140)에 버스트(burst) 전송하고, Cb, Cr은 각각 8 픽셀(2 word)의 데이터를 화상 압축기(140)에 버스트 전송한다.Specifically, when the bus width is 32 bits and a sampling ratio of Y: Cb: Cr = 4: 2: 2 is used, the DMA controller 130 may store data of 16 pixels (4 words) in which Y is an image compressor ( Burst is transmitted to 140, and Cb and Cr respectively transmit 8 pixels (2 words) of data to the image compressor 140.

화상 압축기(140)는 이산 코사인 변환(Discrete Cosine Transform : DCT), 양자화, Huffman 코드를 이용해 전달된 화상데이터 성분을 순차적으로 이진 데이터로 부호화하여 압축한다. 압축된 화상데이터는 메모리(420)에 저장된다.The image compressor 140 sequentially encodes and compresses the image data components transmitted using Discrete Cosine Transform (DCT), quantization, and Huffman code into binary data. Compressed image data is stored in the memory 420.

화상 복호화기(150)는 화상 압축기(140)가 수행한 동작의 역 과정을 수행하여 화상데이터를 Y : Cb : Cr = 4 : 2 : 2 및 Y : Cb : Cr = 4 : 1 : 1 중 어느 하 나의 포맷으로 복원한다.The image decoder 150 performs the reverse process of the operation performed by the image compressor 140 to convert the image data into Y: Cb: Cr = 4: 2: 2 and Y: Cb. : Cr = 4: 1: Restores one of the formats.

DMA 제어장치(130)는 Y : Cb : Cr = 4 : 2 : 2 및 Y : Cb : Cr = 4 : 1 : 1 중 어느 하나의 포맷으로 복원된 각 성분 데이터를 메모리(120)에 저장한다.The DMA control unit 130 is Y: Cb: Cr = 4: 2: 2: and Y: Cb : Cr = 4: 1: 1 Each component data restored in one of the formats is stored in the memory 120.

도 2는 종래의 영상 데이터 포맷의 일 실시예를 도시한 도면이다. 도 2에 도시된 바와 같이, 화상데이터는 각 성분별로 8*8 블록 단위이며, Y : Cb : Cr = 4 : 2 : 2의 포맷을 가진다. 여기서, Y는 두 블록 Y1, Y2로 이루어진다. 즉, Y는 Y1 8*8 블록, Y2 8*8 블록으로 전체 16*8 블록으로 2 픽셀 당 Cb, Cr는 각각 8*8 블록으로 1 픽셀의 데이터를 갖는 형식을 가진다. 2 is a diagram illustrating an embodiment of a conventional image data format. As shown in Fig. 2, the image data is in units of 8 * 8 blocks for each component, and Y: Cb. : Cr = 4: 2: 2. Here, Y consists of two blocks Y1 and Y2. In other words, Y is an 8 * 8 block, Y2 is an 8 * 8 block, a total of 16 * 8 blocks, Cb per 2 pixels, and Cr is an 8 * 8 block.

도 3은 종래의 메모리 영역의 데이터 구조를 도시한 도면이다. 도 3을 참조하면, 도 1에 도시된 메모리(120)의 각 성분별 영역의 데이터 구성을 나타낸다. 도 2에 도시된 Y : Cb : Cr = 4 : 2 : 2의 포맷인 경우의 저장형식으로, Y, Cb, Cr은 각각 메모리 영역이 따로 지정된다. 3 is a diagram illustrating a data structure of a conventional memory area. Referring to FIG. 3, the data structure of each component region of the memory 120 illustrated in FIG. 1 is illustrated. Y shown in FIG. 2: Cb : Cr = 4: 2: A storage format in the case of 2: Y, Cb, and Cr each have a separate memory area.

Y는 8*8 블록 단위로 n * l 구조로 저장되며, Cb, Cr은 8*8 블록 단위로 각각 n * l 구조로 저장된다. 이때, 8 픽셀 즉, 2 word을 넘어서는 데이터는 메모리 영역의 주소가 달라진다.Y is stored in n * l structures in 8 * 8 blocks, and Cb and Cr are stored in n * l structures in 8 * 8 blocks. At this time, the data of more than 8 pixels, that is, 2 words, has a different address of the memory area.

따라서, Cb, Cr는 Y의 절반인 최대 2 word 버스트만 한 번의 버스 점유에 전송되므로, 버스 사용을 요청하고 준비하는데 소요되는 시간이 실제 데이터 전송 소요 시간 즉, 버스 점유 시간보다 더 소모되는 문제가 발생할 수 있다. Therefore, since Cb and Cr are transferred to only one bus occupancy up to 2 word bursts of half of Y, the time required to request and prepare for bus usage is more than the actual data transfer time, that is, the bus occupation time. May occur.

또한, 2 word을 넘어서는 메모리 영역의 주소가 달라지므로, Y를 4 word 전 송하기 위해 두 번의 주소 생성, Cb를 2 word 전송하기 위해 한번, Cr를 2 word 전송하기 위해 한 번의 주소 생성 총 네 번의 주소 생성 동작을 수행해야만 한다. 이는 버스트 연산이 불가능하므로 이로 인해 속도가 저하되어 결과적으로 성능이 저하되는 문제가 발생할 수 있다. In addition, since the address of the memory area beyond 2 words is different, two addresses are generated to transfer Y 4 words, one to transfer Cb 2 words, and one to transfer Cr 2 words. You must perform an address generation operation. This is not possible with a burst operation, which can result in a slowdown resulting in performance degradation.

만약 Cb, Cr 각각의 버스트 길이를 늘려 전송하고자 하면, Cb, Cr의 임시 저장 공간이 요구되므로, 메모리의 추가와 추가된 메모리에 저장된 Cb, Cr를 위한 주소 생성이 요구되므로 구조 및 동작이 복잡해지는 문제가 발생할 수 있다.If the burst length of Cb and Cr is to be increased and transmitted, temporary storage space of Cb and Cr is required. Therefore, the structure and operation are complicated because additional memory and address generation for Cb and Cr stored in the added memory are required. Problems may arise.

따라서, 본 발명의 목적은, 화상데이터를 이루는 각 성분의 표본 추출비가 다를 경우에도 각 성분의 버스트 크기를 변화시키지 않고 데이터 구조를 다르게 함으로써 표본 추출비가 다른 화상데이터의 버스트 전송이 가능한 화상처리장치 및 그 버스트 전송방법을 제공함에 있다.Accordingly, an object of the present invention is to provide an image processing apparatus capable of burst transmission of image data having different sampling ratios by changing the data structure without changing the burst size of each component even when the sampling ratio of each component constituting the image data is different; The burst transmission method is provided.

상기 목적을 달성하기 위한 본 발명에 따른 화상처리장치는, 휘도 성분 영역에 휘도 성분 데이터가 저장되고, 색차 성분 영역에 제1 및 제2 색차 성분 데이터가 저장되는 메모리, 및 상기 휘도 성분 데이터를 상기 휘도 성분 영역에 저장하고 상기 제1 및 제2 색차 성분을 상기 색차 성분 영역에 교차하여 저장하며, 상기 휘도 성분 데이터, 상기 제1 및 제2 색차 성분 데이터를 각각 n 픽셀 * m 픽셀의 소정 단위로 상기 메모리로부터 독출하는 DMA 제어장치를 포함한다.An image processing apparatus according to the present invention for achieving the above object is a memory that stores the luminance component data in the luminance component region, the first and second color difference component data in the color difference component region, and the luminance component data Store in the luminance component region and intersect the first and second chrominance components in the chrominance component region, and store the luminance component data and the first and second chrominance component data in predetermined units of n pixels * m pixels, respectively. And a DMA controller for reading from the memory.

또한, DMA 제어장치는, 상기 n 픽셀 단위로 상기 휘도 성분 데이터, 상기 제 1 및 제2 색차 성분 데이터의 메모리에 대한 주소를 생성하는 주소 생성기, 및 상기 휘도 성분 데이터, 상기 제1 및 제2 색차 성분 데이터를 상기 n 픽셀 * m 픽셀의 소정 단위로 생성하는 적어도 하나의 FIFO을 포함하는 것이 바람직하다.The DMA controller further includes an address generator for generating an address for a memory of the luminance component data, the first and second color difference component data in units of n pixels, and the luminance component data and the first and second color differences. It is preferable to include at least one FIFO for generating component data in a predetermined unit of the n pixel * m pixel.

그리고, 상기 휘도 성분 데이터는 Y이고, 상기 제1 색차 성분 데이터는 Cb, 상기 제2 색차 성분 데이터는 Cr이며, 상기 n 픽셀 * m 픽셀의 소정 단위는 16 픽셀 * 8 픽셀 블록 단위인 것이 바람직하다.The luminance component data is Y, the first chrominance component data is Cb, the second chrominance component data is Cr, and a predetermined unit of the n pixels * m pixels is 16 pixels * 8 pixel blocks. .

한편, 본 발명의 화상처리장치의 버스트 전송방법은, 휘도 성분 데이터, 제1 및 제2 색차 성분 데이터의 메모리에 대한 주소를 생성하는 단계, 상기 생성된 주소에 대응되도록 상기 휘도 성분 데이터를 상기 메모리의 휘도 성분 영역에 저장하고 상기 제1 및 제2 색차 성분을 상기 메모리의 색차 성분 영역에 교차하여 저장하는 단계, 및 데이터 출력 요청이 입력되면 상기 휘도 성분 데이터, 상기 제1 및 제2 색차 성분 데이터를 각각 n 픽셀 * m 픽셀의 소정 단위로 상기 메모리로부터 독출하는 단계를 포함한다.On the other hand, the burst transmission method of the image processing apparatus of the present invention, generating an address for the memory of the luminance component data, the first and second color difference component data, the memory component data to correspond to the generated address; Storing the first and second color difference components in the color difference component region of the memory, and storing the first and second color difference components in the luminance component region of the memory; Reading from the memory in predetermined units of n pixels * m pixels, respectively.

그리고, 상기 휘도 성분 데이터는 Y이고, 상기 제1 색차 성분 데이터는 Cb, 상기 제2 색차 성분 데이터는 Cr이며, 상기 n 픽셀 * m 픽셀의 소정 단위는 16 픽셀 * 8 픽셀 블록 단위인 것이 바람직하다.The luminance component data is Y, the first chrominance component data is Cb, the second chrominance component data is Cr, and a predetermined unit of the n pixels * m pixels is 16 pixels * 8 pixel blocks. .

이하에서는 도면을 참조하여 본 발명을 상세하게 설명한다.Hereinafter, with reference to the drawings will be described in detail the present invention.

도 4는 본 발명의 일 실시예에 따른 화상처리장치의 블럭도이다.4 is a block diagram of an image processing apparatus according to an embodiment of the present invention.

본 발명의 화상처리장치는 화상에 대응하는 화상데이터를 이루는 각 성분 데이터들 즉, Y, Cb, Cr의 표본 추출비가 다를 경우에도 각 성분 데이터의 버스트 크 기를 변화시키지 않고 데이터 구조를 다르게 함으로써 표본 추출비가 다른 화상데이터의 버스트 전송이 가능하다.According to the image processing apparatus of the present invention, even when the sampling ratios of the respective component data, that is, Y, Cb, and Cr, which constitute the image data corresponding to the image are different, sampling is performed by changing the data structure without changing the burst size of each component data. Burst transmission of image data with different ratios is possible.

도 4를 참조하면, 본 화상처리장치는 화상데이터 전처리기(410), 메모리(420), DMA 제어장치(430), 화상압축기(440), 및 화상 복호화기(450)를 포함한다.Referring to FIG. 4, the image processing apparatus includes an image data preprocessor 410, a memory 420, a DMA controller 430, an image compressor 440, and an image decoder 450.

화상데이터 전처리기(410), 화상압축기(440), 및 화상 복호화기(450)는 도 1에 도시하고 설명한 화상데이터 전처리기(110), 화상압축기(140), 및 화상 복호화기(150)와 동일한 동작을 수행하므로 동작 설명은 생략하기로 한다. The image data preprocessor 410, the image compressor 440, and the image decoder 450 may be connected to the image data preprocessor 110, the image compressor 140, and the image decoder 150 illustrated in FIG. 1. Since the same operation is performed, the description of the operation will be omitted.

메모리(420)에는 화상데이터가 저장된다. 구체적으로, 메모리(420)는 Y 메모리 영역, Cb/Cr 메모리 영역으로 구분되어, Y 메모리 영역에는 Y가 저장되고 Cb/Cr 메모리 영역에는 Cb, Cr이 교차되며 순차적으로 저장된다.Image data is stored in the memory 420. In detail, the memory 420 is divided into a Y memory area and a Cb / Cr memory area, where Y is stored in the Y memory area and Cb and Cr are crossed and sequentially stored in the Cb / Cr memory area.

DMA 제어장치(430)는 화상데이터 전처리기(410) 및 화상 복호화기(450)에 의해 라인 단위로 출력된 Y를 메모리(420)의 Y 메모리 영역에 저장하고, Cb, Cr을 각각 교차해 가며 메모리(420)의 Cb/Cr 메모리 영역에 저장한다. The DMA controller 430 stores Y output in the unit of lines by the image data preprocessor 410 and the image decoder 450 in the Y memory area of the memory 420, and crosses Cb and Cr, respectively. The memory 420 is stored in the Cb / Cr memory area of the memory 420.

그리고, DMA 제어장치(430)는 메모리(420)에 저장된 화상데이터 성분 Y, Cb, Cr을 Y : Cb : Cr = 4 : 2 : 2 및 Y : Cb : Cr = 4 : 1 : 1 중 어느 하나의 표본 추출비로 16 픽셀*8 픽셀 블록 단위로 독출하여 화상 압축기(440)에 전달한다. The DMA controller 430 then converts the image data components Y, Cb, and Cr stored in the memory 420 into Y: Cb: Cr = 4: 2: 2 and Y: Cb. The read ratio of any one of: Cr = 4: 1: 1 is read in units of 16 pixels * 8 pixels and transferred to the image compressor 440.

구체적으로, 버스의 폭이 32비트이고 Y : Cb : Cr = 4 : 2 : 2의 표본 추출비를 이용할 경우, DMA 제어장치(430)는 Y는 16 픽셀(4 word)의 데이터를 화상 압축기(440)에 버스트(burst) 전송하고, 마찬가지로 Cb, Cr은 각각 8 픽셀(2 word)씩 총 16 픽셀(4 word)의 데이터를 화상 압축기(440)에 버스트 전송한다.Specifically, when the bus width is 32 bits and a sampling ratio of Y: Cb: Cr = 4: 2: 2 is used, the DMA controller 430 is configured to store data of 16 pixels (4 words) in Y. Burst transfer to 440, and similarly, Cb and Cr burst transfer data of 16 pixels (4 words) to the image compressor 440, each of 8 pixels (2 words).

도 5는 본 발명의 화상처리장치에 의한 화상 데이터 포맷의 일 실시예를 도시한 도면이다. 5 is a diagram showing an embodiment of an image data format by the image processing apparatus of the present invention.

도 5에 도시된 바와 같이, 화상데이터는 각 성분별로 8*8 블록 단위이며, Y : Cb : Cr = 4 : 2 : 2의 포맷을 가진다. 본 발명에 따라, Y는 Y1 8*8 블록, Y2 8*8 블록으로 총 16*8 블록으로 2 픽셀 당 Cb, Cr는 각각 8*8 블록으로 16*8 한 블록을 이루어 2 픽셀의 데이터를 갖는 형식을 가진다. As shown in Fig. 5, the image data is in units of 8 * 8 blocks for each component, and Y: Cb. : Cr = 4: 2: 2. According to the present invention, Y is 8 * 8 blocks, Y2 8 * 8 blocks, 16 * 8 blocks in total, Cb per 2 pixels, and Cr is 8 * 8 blocks, 16 * 8 blocks, respectively, to obtain 2 pixels of data. Has the form

이로 인해, Y : Cb : Cr = 4 : 2 : 2의 포맷은 그대로 유지되고, Cb, Cr의 데이터 구조만 변화한다. 데이터 구조의 변화에 따라, Cb, Cr 각각의 버스트 길이는 변화하지 않아도 총 버스트 길이가 Y와 동일하게 길어진다. Due to this, Y: Cb The format of: Cr = 4: 2: 2 remains unchanged, and only the data structures of Cb and Cr change. As the data structure changes, the burst length of each of Cb and Cr does not change, but the total burst length becomes equal to Y.

그러므로, DMA 제어장치(430)는 Y1을 2 word, Y2을 2 word, 총 4 word 8라인즉, 16*8 블록을 버스트 전송하고, Cb를 2 word, Cr를 2 word, 총 4 word 8라인 즉, 16*8 블록을 버스트 전송하는 것이 가능해진다. Therefore, the DMA controller 430 transmits Y1 for 2 words, Y2 for 2 words, a total of 4 words and 8 lines, that is, 16 * 8 blocks, Cb for 2 words, Cr for 2 words, and 4 words for 8 lines. That is, it becomes possible to burst transfer a 16 * 8 block.

도 6은 본 발명의 일 실시예에 따른 DMA 제어장치의 세부적인 블럭도이다.6 is a detailed block diagram of a DMA control apparatus according to an embodiment of the present invention.

도 6을 참조하면, 본 DMA 제어장치(430)는 컨트롤러(432), 주소생성기(434), FIFO(436), 16*8 FIFO(438), 및 16*8 FIFO(438-1)을 포함한다.Referring to FIG. 6, the DMA controller 430 includes a controller 432, an address generator 434, a FIFO 436, a 16 * 8 FIFO 438, and a 16 * 8 FIFO 438-1. do.

주소생성기(434)는 컨트롤러(432)의 제어에 의해, 16 픽셀 즉, 4 word 단위로 메모리(420)의 주소를 생성한다. 구체적으로, 주소생성기(434)는 Y 4 word를 저장/독출하기 위한 Y 메모리 영역의 주소를 생성하고, Cb 2 word, Cr 2 word, 총 4 word를 저장/독출하기 위한 Cb/Cr 메모리 영역의 주소를 생성한다. The address generator 434 generates an address of the memory 420 in units of 16 pixels, that is, 4 words, under the control of the controller 432. Specifically, the address generator 434 generates the address of the Y memory area for storing / reading Y 4 words, and the Cb / Cr memory area for storing / reading Cb 2 word, Cr 2 word, and 4 words in total. Create an address.

FIFO(First In First Out)(436)는 컨트롤러(432)의 제어에 의해, 화상데이터를 입출력한다. 16*8 FIFO(438, 438-1)는 컨트롤러(432)의 제어에 의해, 화상 전처리기(410) 또는 화상 복호화기(450)로부터 라인 단위로 입력된 Y, Cb, Cr을 16*8 블록 단위로 입출력한다.The FIFO (First In First Out) 436 inputs and outputs image data under the control of the controller 432. The 16 * 8 FIFOs 438 and 438-1 block 16 * 8 blocks of Y, Cb, and Cr input line by line from the image preprocessor 410 or the image decoder 450 under the control of the controller 432. Input and output in units.

도 7은 본 발명의 DMA 제어장치에 의한 메모리 영역의 데이터 구성을 도시한 도면이다. Fig. 7 is a diagram showing the data structure of the memory area by the DMA control apparatus of the present invention.

도 7에 도시된 바와 같이, 도 4에 도시된 메모리(420)의 각 성분별 메모리 영역에 저장된 데이터 구성을 나타낸다. 도 5에 도시된 Y : Cb : Cr = 4 : 2 : 2의 포맷인 경우의 저장형식으로, Y, Cb, Cr은 Y 메모리 영역, Cb/Cr 메모리 영역으로 메모리 영역이 따로 지정된다. As shown in FIG. 7, a data structure stored in a memory region for each component of the memory 420 illustrated in FIG. 4 is illustrated. Y shown in Figure 5: Cb A storage format in the case of a format of Cr = 4: 2: 2, where Y, Cb, and Cr are designated as Y memory regions and Cb / Cr memory regions, respectively.

Y는 8*8 블록 단위로 n * l 구조로 저장되며, Cb, Cr은 8*8 블록 단위로 교차하며 순차적으로 저장되어 Y와 동일한 n * l 구조를 가진다. Y is stored in an n * l structure in 8 * 8 block units, and Cb and Cr intersect in 8 * 8 block units and are sequentially stored to have the same n * l structure as Y.

이때, 16 픽셀 즉, 4 word을 넘어서는 데이터는 메모리 영역의 주소가 달라진다. 이로 인해, 주소 생성기(434)는 화상데이터를 저장/독출하기 위해 Y 4 word에 대한 메모리 영역의 주소 생성 한번, Cb, Cr 4 word에 대한 메모리 영역의 주소 생성 한번, 총 두 번의 주소 생성만을 수행하면 된다.At this time, the data of more than 16 pixels, that is, 4 words has a different address of the memory area. For this reason, the address generator 434 performs only one address generation of the memory area for Y 4 words, one address generation of the memory areas for Cb and Cr 4 words, and a total of two address generations in order to store / read image data. Just do it.

도 8은 본 발명의 일 실시예에 따른 화상처리장치의 버스트 전송방법의 설명에 제공되는 흐름도이다.8 is a flowchart provided to explain a burst transmission method of an image processing apparatus according to an embodiment of the present invention.

도 8을 참조하면, 화상데이터 전처리기(410) 또는 화상 복호화기(450)는 화상데이터를 라인 단위로 출력한다(S800). Referring to FIG. 8, the image data preprocessor 410 or the image decoder 450 outputs image data in units of lines (S800).

DMA 제어장치(430)는 출력된 화상데이터에 대한 메모리의 주소를 생성한다(S810). DMA 제어장치(430)에 구비된 주소 생성기는 화상데이터를 16 픽셀 즉, 4 word 단위로 주소를 생성한다.The DMA controller 430 generates an address of a memory for the output image data (S810). The address generator provided in the DMA controller 430 generates an image data in units of 16 pixels, that is, 4 words.

DMA 제어장치(430)는 생성된 메모리 주소에 대응되도록 출력된 화상데이터를 메모리(420)에 저장한다(S820). 이때, DMA 제어장치(430)는 출력된 화상데이터의 휘도 성분 Y을 16 픽셀 즉, 4 word 단위로 주소 생성기(434)에 의해 생성된 주소에 따라 메모리(420)의 Y 영역에 저장하고, 색차 성분 Cb, Cr을 각각 8 픽셀씩 교차하여 총 16 픽셀 단위로 주소 생성기(434)에 의해 생성된 주소에 따라 메모리(420)의 Cb/Cr 영역에 순차적으로 저장한다.The DMA controller 430 stores the image data output to correspond to the generated memory address in the memory 420 (S820). At this time, the DMA controller 430 stores the luminance component Y of the output image data in the Y region of the memory 420 according to the address generated by the address generator 434 in units of 16 pixels, that is, 4 words, and the color difference. The components Cb and Cr cross each 8 pixels, and are sequentially stored in the Cb / Cr region of the memory 420 according to the address generated by the address generator 434 in units of 16 pixels in total.

DMA 제어장치(430)는 화상데이터 요청이 입력되었는지 여부를 판단한다(S830). The DMA controller 430 determines whether an image data request has been input (S830).

DMA 제어장치(430)는 저장된 화상데이터를 16*8 블록 단위로 독출한다(S840). 구체적으로, 표본 표출비가 Y : Cb : Cr = 4 : 2 : 2의 포맷인 경우, DMA 제어장치(430)는 4 word 단위로 주소 생성기(434)에 의해 생성된 주소에 해당하는 메모리(420)의 Y 영역에 저장된 Y를 4 word 씩 8라인 즉, 16*8 블록으로 출력한다. 그리고, DMA 제어장치(430)는 4 word 단위로 주소 생성기(434)에 의해 생성된 주소에 해당하는 메모리(420)의 Cb/Cr 영역에 저장된 Cb, Cr을 2 word 씩 총 4 word 8 라인 즉, 16*8 블록으로 출력한다. The DMA controller 430 reads the stored image data in units of 16 * 8 blocks (S840). Specifically, the sample presentation ratio is Y: Cb In the case of a format of Cr = 4: 2: 2, the DMA controller 430 converts 4 words of Y stored in the Y area of the memory 420 corresponding to the address generated by the address generator 434 in units of 4 words. 8 lines each, or 16 * 8 blocks. The DMA controller 430 is a total of 4 words, 8 lines of Cb and Cr stored in the Cb / Cr region of the memory 420 corresponding to the address generated by the address generator 434 in units of 4 words. , Output as 16 * 8 block.

Y : Cb : Cr = 4 : 1 : 1의 포맷인 경우에는, DMA 제어장치(430)는 4 word 단위로 주소 생성기(434)에 의해 생성된 주소에 해당하는 메모리(420)의 Y 영역에 저장된 Y를 16*8 블록으로 4블록을 출력한다. 그리고, DMA 제어장치(430)는 4 word 단위로 주소 생성기(434)에 의해 생성된 주소에 해당하는 메모리(420)의 Cb/Cr 영역에 저장된 Cb, Cr을 16*8 블록 한 블록을 출력한다. Y: Cb In the case of a format of Cr = 4: 1: 1, the DMA controller 430 uses 16 words stored in the Y area of the memory 420 corresponding to the address generated by the address generator 434 in units of 4 words. 4 blocks are output as 8 blocks. The DMA controller 430 outputs a block of 16 * 8 blocks of Cb and Cr stored in the Cb / Cr region of the memory 420 corresponding to the address generated by the address generator 434 in units of 4 words. .

이상 설명한 바와 같이, 본 발명에 따르면, 화상데이터를 이루는 각 성분 데이터의 버스트 길이를 변화시키지 않고도 데이터의 구조 변화에 따라 버스트 길이가 길어짐으로써, 버스 점유에 소모되는 시간이 감소되어 성능이 향상된다. 또한, 8 픽셀을 넘는 메모리 영역의 주소를 변경해 줄 필요가 없고, 추가적인 메모리가 필요하지 않으므로 인해 주소 생성이 간략화된다. As described above, according to the present invention, the burst length is increased according to the structure change of the data without changing the burst length of each component data constituting the image data, thereby reducing the time consumed by the bus occupancy and improving performance. It also simplifies address generation because there is no need to change the address of the memory area beyond 8 pixels and no additional memory is required.

또한, 이상에서는 본 발명의 바람직한 실시예에 대하여 도시하고 설명하였지만, 본 발명은 상술한 특정의 실시예에 한정되지 아니하며, 청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진자에 의해 다양한 변형실시가 가능한 것은 물론이고, 이러한 변형실시들은 본 발명의 기술적 사상이나 전망으로부터 이해되어져서는 안 될 것이다.In addition, although the preferred embodiment of the present invention has been shown and described above, the present invention is not limited to the specific embodiments described above, but the technical field to which the invention belongs without departing from the spirit of the invention claimed in the claims. Of course, various modifications can be made by those skilled in the art, and these modifications should not be understood from the technical spirit or the prospect of the present invention.

Claims (5)

휘도 성분 영역에 휘도 성분 데이터가 저장되고, 색차 성분 영역에 제1 및 제2 색차 성분 데이터가 저장되는 메모리; 및A memory for storing luminance component data in the luminance component region and storing first and second color difference component data in the chrominance component region; And 상기 휘도 성분 데이터를 상기 휘도 성분 영역에 저장하고 상기 제1 및 제2 색차 성분을 상기 색차 성분 영역에 교차하여 저장하며, 상기 휘도 성분 데이터, 상기 제1 및 제2 색차 성분 데이터를 각각 n 픽셀 * m 픽셀의 소정 단위로 상기 메모리로부터 독출하는 DMA 제어장치;를 포함하는 것을 특징으로 하는 화상처리장치.The luminance component data is stored in the luminance component region, the first and second color difference components are stored in the color difference component region, and the luminance component data and the first and second color difference component data are each n pixels *. and a DMA controller for reading from the memory in predetermined units of m pixels. 제 1항에 있어서,The method of claim 1, DMA 제어장치는,DMA controller, 상기 n 픽셀 단위로 상기 휘도 성분 데이터, 상기 제1 및 제2 색차 성분 데이터의 메모리에 대한 주소를 생성하는 주소 생성기; 및An address generator for generating an address for a memory of the luminance component data and the first and second color difference component data in units of n pixels; And 상기 휘도 성분 데이터, 상기 제1 및 제2 색차 성분 데이터를 상기 n 픽셀 * m 픽셀의 소정 단위로 생성하는 적어도 하나의 FIFO;를 포함하는 것을 특징으로 하는 화상처리장치.And at least one FIFO for generating the luminance component data and the first and second color difference component data in a predetermined unit of n pixels * m pixels. 제 1항에 있어서, The method of claim 1, 상기 휘도 성분 데이터는 Y이고, 상기 제1 색차 성분 데이터는 Cb, 상기 제2 색차 성분 데이터는 Cr이며,The luminance component data is Y, the first color difference component data is Cb, the second color difference component data is Cr, 상기 n 픽셀 * m 픽셀의 소정 단위는 16 픽셀 * 8 픽셀 블록 단위인 것을 특징으로 하는 화상처리장치.The predetermined unit of the n pixel * m pixel is 16 pixels * 8 pixel block unit. 휘도 성분 데이터, 제1 및 제2 색차 성분 데이터의 메모리에 대한 주소를 생성하는 단계;Generating an address for a memory of the luminance component data and the first and second chrominance component data; 상기 생성된 주소에 대응되도록 상기 휘도 성분 데이터를 상기 메모리의 휘도 성분 영역에 저장하고 상기 제1 및 제2 색차 성분을 상기 메모리의 색차 성분 영역에 교차하여 저장하는 단계; 및Storing the luminance component data in the luminance component region of the memory so as to correspond to the generated address, and storing the first and second color difference components in the color difference component region of the memory; And 데이터 출력 요청이 입력되면 상기 휘도 성분 데이터, 상기 제1 및 제2 색차 성분 데이터를 각각 n 픽셀 * m 픽셀의 소정 단위로 상기 메모리로부터 독출하는 단계;를 포함하는 것을 특징으로 하는 화상처리장치의 버스트 전송방법.And reading out the luminance component data and the first and second chrominance component data from the memory in predetermined units of n pixels * m pixels, respectively, when a data output request is input. Burst transmission method. 제 4항에 있어서,The method of claim 4, wherein 상기 휘도 성분 데이터는 Y이고, 상기 제1 색차 성분 데이터는 Cb, 상기 제2 색차 성분 데이터는 Cr이며,The luminance component data is Y, the first color difference component data is Cb, the second color difference component data is Cr, 상기 n 픽셀 * m 픽셀의 소정 단위는 16 픽셀 * 8 픽셀 블록 단위인 것을 특징으로 하는 화상처리장치의 버스트 전송방법.The predetermined unit of the n pixel * m pixel is a 16 pixel * 8 pixel block unit burst transmission method of the image processing apparatus.
KR1020050045081A 2005-05-27 2005-05-27 Direct memory access control apparatus for transmitting burst of image data that is different with sampling and the burst transmitting method thereof KR20060122530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050045081A KR20060122530A (en) 2005-05-27 2005-05-27 Direct memory access control apparatus for transmitting burst of image data that is different with sampling and the burst transmitting method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050045081A KR20060122530A (en) 2005-05-27 2005-05-27 Direct memory access control apparatus for transmitting burst of image data that is different with sampling and the burst transmitting method thereof

Publications (1)

Publication Number Publication Date
KR20060122530A true KR20060122530A (en) 2006-11-30

Family

ID=37707855

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050045081A KR20060122530A (en) 2005-05-27 2005-05-27 Direct memory access control apparatus for transmitting burst of image data that is different with sampling and the burst transmitting method thereof

Country Status (1)

Country Link
KR (1) KR20060122530A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9106936B2 (en) 2012-01-25 2015-08-11 Altera Corporation Raw format image data processing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9106936B2 (en) 2012-01-25 2015-08-11 Altera Corporation Raw format image data processing

Similar Documents

Publication Publication Date Title
US7106911B2 (en) Image processing apparatus and control method for inputting image data and encoding the data
US8866646B2 (en) Memory compression technique with low latency per pixel
JP5051087B2 (en) Lossless compression coding apparatus and lossless decoding apparatus
CN101099174A (en) Compression of images for computer graphics
US10026146B2 (en) Image processing device including a progress notifier which outputs a progress signal
CN103888777A (en) Video image compression/decompression device
US6640019B2 (en) Image processing apparatus capable of decoding, raster scan converting, and varying data at high speed, and method and computer readable storage medium for the same
JP3940672B2 (en) Image processing apparatus and image processing method
JP2010098352A (en) Image information encoder
CN116801051A (en) Image data interface conversion method and device
KR20060122530A (en) Direct memory access control apparatus for transmitting burst of image data that is different with sampling and the burst transmitting method thereof
US7330595B2 (en) System and method for video data compression
US20030185455A1 (en) Digital image processor
US11189006B2 (en) Managing data for transportation
US20050018910A1 (en) Method and apparatus for reducing the bandwidth required to transmit image data
US5991446A (en) Image conversion device
KR200309400Y1 (en) Raster-to-block Converter
JP2002084425A (en) Multi-level image data compression device
JP4364729B2 (en) Image data compression / decompression method and image processing apparatus
JP5070520B2 (en) Data processing device
JP2005142699A (en) Image companding apparatus
RU2298885C2 (en) Device for encoding and decoding video-frames
JP2000261630A (en) Image processor and its method
JP3626669B2 (en) Image input method and apparatus
JP3156853B2 (en) Decoding device and encoding / decoding device

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination