KR950011196B1 - Image data compressing and decompressing apparatus - Google Patents

Image data compressing and decompressing apparatus Download PDF

Info

Publication number
KR950011196B1
KR950011196B1 KR1019920010814A KR920010814A KR950011196B1 KR 950011196 B1 KR950011196 B1 KR 950011196B1 KR 1019920010814 A KR1019920010814 A KR 1019920010814A KR 920010814 A KR920010814 A KR 920010814A KR 950011196 B1 KR950011196 B1 KR 950011196B1
Authority
KR
South Korea
Prior art keywords
buffer memory
image data
image
memory
code
Prior art date
Application number
KR1019920010814A
Other languages
Korean (ko)
Other versions
KR930001742A (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 후지제록스 가부시끼가이샤
Publication of KR930001742A publication Critical patent/KR930001742A/en
Application granted granted Critical
Publication of KR950011196B1 publication Critical patent/KR950011196B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Storing Facsimile Image Data (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)

Abstract

내용 없음.No content.

Description

화상 데이타 압축신장장치Image data compression extension device

제 1 도는 본 발명의 화상데이타 압축신장 장치를 사용한 팩시밀리장치.1 is a facsimile apparatus using the image data compression and expansion apparatus of the present invention.

제 2 도는 화상데이타 압축신장 장치의 요부확대도.2 is an enlarged view of the main part of the image data compression extension apparatus.

제 3 도는 버퍼메모리의 구조를 설명하는 도면.3 is a diagram for explaining the structure of a buffer memory.

제 4 도는 버퍼메모리의 사용과정을 설명하는 도면.4 is a diagram illustrating a process of using a buffer memory.

제 5 도는 버퍼메모리의 필요 용량의 산출을 설명하기 위한 도면.5 is a diagram for explaining calculation of a required capacity of a buffer memory.

제 6 도는 축소회로가 추가되어 있는 경우의 프린트경로를 나타낸 도면.6 is a view showing a print path when a reduction circuit is added.

제 7 도는 버퍼메모리와 페이지메모리를 설명하는 도면.7 is a diagram for explaining a buffer memory and a page memory.

제 8 도는 화상데이타 압축신장장치의 제 1 종래예를 사용한 팩시밀리장치.8 is a facsimile apparatus using the first conventional example of the image data compression and expansion apparatus.

제 9 도는 화상데이타 압축신장장치의 제 2 종래예를 사용한 팩시밀리장치.9 is a facsimile apparatus using a second conventional example of an image data compression and expansion apparatus.

제10도는 제 1 종래예의 화상데이타 압축신장장치이며, 간헐적으로 동작하는 화상독취부, 화상기록부를 사용하는 이유를 설명하는 도면.10 is a view for explaining the reason for using an image reading unit and an image recording unit operating intermittently, which is an image data compression and stretching apparatus of the first conventional example.

제11도는 화상데이타 압축신장장치에 있어서의 각종 동작시에 데이타가 흐르는 경로를 나타낸 도면.Fig. 11 is a diagram showing a path through which data flows during various operations in the image data compression and expansion apparatus.

본 발명은 팩시밀리장치등에 사용되고 있는 화상데이타 압축신장장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to an image data compression stretching apparatus used in a facsimile apparatus or the like.

화상데이타 압축신장장치는, 화상을 독취하여 얻는 이미지를 부호화에 의해서 압축하여 코드데이타로 하거나, 반대로 코드데이타를 복호화에 의해서 신장하여 이미지데이타로 하거나 하는 장치이며, 팩시밀리장치 등에 사용되고 있다.The image data compression / extension device is an apparatus for compressing an image obtained by reading an image to code data by encoding or conversely extending the code data to image data by decoding, and is used in a facsimile apparatus or the like.

[제 1 종래예][First Conventional Example]

버퍼메모리를 사용한 간헐 동작방식Intermittent operation method using buffer memory

제 8 도는 화상데이타 압축신장장치의 제 1 종래예를 사용한 팩시밀리장치이다. 제 8 도에서, 1은 화상독취부, 2는 화상기록부, 3은 버퍼메모리제어회로, 4는 버퍼메모리, 5는 압축신장부, 6은 코드기억부, 7은 조작판넬, 8은 CPU(중앙연산처리장치), 9는 ROM(리드·온리·메모리), 10은 RAM(랜덤·억세스·메모리), 11은 모뎀, 12는 회선제어부, 13은 통신회선, 14는 버스, 19는 화상데이타 입력제어회로, 20은 화상데이타 출력제어회로, 22는 화상데이타 압축신장장치이다.8 is a facsimile apparatus using the first conventional example of the image data compression and expansion apparatus. 8, 1 is an image reading unit, 2 is an image recording unit, 3 is a buffer memory control circuit, 4 is a buffer memory, 5 is a compression extension unit, 6 is a code memory unit, 7 is an operation panel, and 8 is a CPU (center). Arithmetic processing unit), 9 is ROM (lead only memory), 10 is RAM (random access memory), 11 is modem, 12 is line control unit, 13 is communication line, 14 is bus, 19 is input image data A control circuit, 20 is an image data output control circuit, and 22 is an image data compression and expansion device.

화상데이타입력회로(19)은 화상독취부(1)로부터의 이미지데이타를 버퍼메모리(4)에 기입할때에 제어하고, 화상데이타 출력제어회로(20)는, 화상기록부(2)에 전송하기 위해 버퍼메모리(4)에서 이미지데이타를 독출할 때에 제어를 행한다.The image data input circuit 19 controls when writing the image data from the image reading unit 1 into the buffer memory 4, and the image data output control circuit 20 transfers the image data to the image recording unit 2. In order to read the image data from the buffer memory 4, control is performed.

화상데이타 압축신장장치(22)가 행하는 주된 동작은, ① 화상독취동작, ② 인쇄동작, ③ 카피동작이다. 제11도는, 그들 동작을 행할때에, 데이타가 흐르는 경로를 나타낸다.The main operations performed by the image data compression and expansion device 22 are 1) image reading operation 2) printing operation and 3) copying operation. 11 shows a path through which data flows when performing these operations.

제11a도는, 화상독취동작시에 데이타가 흐르는 경로를 나타낸다. 화상독취부(1)에서 원고의 화상을 독취하여 이미지데이타를 생성하고, 일단 버퍼메모리(4)에 저장한다. 다음에 버퍼메모리(4)에서 이미지데이타를 꺼내서, 압축신장부(5)에서 부호화(코딩)하여 코드데이타로 변환한다.11A shows a path through which data flows in the image reading operation. The image reading unit 1 reads the image of the original to generate image data, and stores it in the buffer memory 4 once. Next, the image data is taken out from the buffer memory 4, encoded (coded) by the compressed expansion unit 5, and converted into code data.

부호화에 요하는 시간은, 화상의 복잡의 정도에 따라서 다르다. 예를들면 벡의 부분이 연속되어 있는 경우에는 단시간으로 끝나, 백과 흑과의 혼합정도가 심할수록, 시간이 길어진다.The time required for encoding depends on the degree of complexity of the image. For example, if the part of the beck is continuous, it ends in a short time, and the more the mixing degree of white and black becomes, the longer the time becomes.

1비트마다 백과 흑이 교호로 나타나는, 소위 「1 비트래더」로 불리는 화상의 경우가 가장 장시간을 요한다. 부호화된 코드데이타는 코드기억부(6)에 기억된다. 코드기억부(6)은 예를들면 DRAM(다이나믹·랜덤·억세스·메모리)으로 구성된다.The so-called "one bit ladder" in which white and black alternately appear every bit requires the longest time. The coded code data is stored in the code memory section 6. The code memory unit 6 is composed of, for example, DRAM (dynamic random access memory).

또 코드기억부(6)에 기억된 코드데이타를 다른 팩시밀리장치로 송신할때에는 코드기억부(6)→모뎀(11)→화선제어부(12)→통신회선(13)의 경로로 전송되고, 다른 팩시밀리장치내에 있는 코드기억부(6)에 기록된다.When the code data stored in the code storage unit 6 is transmitted to another facsimile device, the code storage unit 6 is transferred from the code storage unit 6 to the modem 11 to the line control unit 12 to the communication line 13. It is recorded in the code memory section 6 in the facsimile apparatus.

제11b도는, 인쇄동작시에 데이타가 흐르는 경로를 나타낸다. 인쇄동작은 다른 팩시밀리장치에서 코드데이타가 송신되어 왔을대 등에 행해진다. 코드기억부(6)의 코드데이타는 압축신장부(5)로 전송되어 복호화되고, 이미지데이타로 변환된다. 이미지데이타는 버퍼메모리(4)에 일단 저장된 후에 화상기록부(2)로 전송되어 인쇄된다.11B shows a path through which data flows in the printing operation. The printing operation is performed when code data has been transmitted from another fax machine. The code data of the code storage section 6 is transmitted to the compressed expansion section 5, decoded, and converted into image data. The image data is once stored in the buffer memory 4 and then transferred to the image recording section 2 for printing.

제11c도는, 카피동작시에 데이타가 흐르는 경로를 나타낸다. 화상독취부(1)에서 원고를 읽고 생성된 이미지데이타를 일단 버퍼메모리(4)에 저장하고, 이어서 화상기록부(2)로 전송하여 인쇄된다.11C shows a path through which data flows in the copy operation. The original is read by the image reading unit 1, and the generated image data is once stored in the buffer memory 4, and then transferred to the image recording unit 2 for printing.

조작판넬(7)은, 조작자가 여러가지의 동작지령을 발하기 위한 판넬이다. ROM(9)에는 COU(8)에서 행해지는 동작의 프로그램이 격납된다. RAM(10)은, CPU(8)이 동작을 행할때에 필요로 하는 작업영역을 제공한다.The operation panel 7 is a panel for the operator to issue various operation commands. The ROM 9 stores programs of operations performed in the COU 8. The RAM 10 provides a work area required when the CPU 8 performs an operation.

그러나, 버퍼메모리(4)의 용량은 원고 1페이지분의 이미지데이타량에 비해서, 아주 적은 것이 통상이다. 제 7 도는, 버퍼메모리와 페이지메모리를 설명하는 도면이다. 제 7a 도는 1페이지의 원고(17)를 나타내고, 제 7b 도는 원고(17)의 이미지데이타를 전부 격납할 수 있는 페이지메모리(16)를 나타내고 제 7c 도는 버퍼메모리(4)를 나타낸다. 버퍼메모리(4)는, 원고(17)내의 일부만 예를들면 실선부분의 화상의 이미지데이타만을 격납할 수 있고, 점선부분의 이미지데이타는 격납할 수 없다. 이것이 원인으로 되어 화상독취부(1)나 화상기록부(2)에는 다음에 설명한 바와같이 간헐적으로 동작하는 것을 사용하지 않으면 안된다.However, the capacity of the buffer memory 4 is usually very small compared to the amount of image data for one page of an original. 7 is a diagram for explaining a buffer memory and a page memory. FIG. 7A shows a page 17 of an original, FIG. 7B shows a page memory 16 capable of storing all the image data of the original 17, and FIG. 7C shows a buffer memory 4. FIG. The buffer memory 4 can store only the image data of the image of the solid line portion, for example, only a part of the document 17, but cannot store the image data of the dotted line portion. This causes the image reading unit 1 and the image recording unit 2 to use an intermittent operation as described below.

제10도는, 제 1 종래예의 화상데이타 압축신장장치에서는 간헐적으로 동작하는 화상독취부, 화상기록부를 사용해야 되는 이유를 설명하는 도면이다. 제10도에서, 4-1은 사용부, 4-3은 오버랩부, 18은 인쇄용지, 18-1, 18-3은 인쇄부, 18-2는 비인쇄부이다. 제10a도는 인쇄동작시의 인쇄용지(18)에 있어서의 인쇄상태를 나타내고, 제10b도는 독취동작시의 버퍼메모리(4)의 사용상태를 나타내고 있다.FIG. 10 is a diagram for explaining the reason why an image reading unit and an image recording unit operating intermittently in the image data compression and stretching apparatus of the first conventional example are used. In Fig. 10, 4-1 is a use portion, 4-3 is an overlap portion, 18 is a printing paper, 18-1, 18-3 is a printing portion, and 18-2 is a non-printing portion. FIG. 10A shows a print state on the print paper 18 during the print operation, and FIG. 10B shows a use state of the buffer memory 4 during the read operation.

버퍼메모리(4)는, 어드레스치가 증대되어서 최후의 어드레스로 되면, 그 다음에는 최초의 어드레스가 지정되는 등, 링버퍼로서 사용된다.The buffer memory 4 is used as a ring buffer when the address value is increased to become the last address, and then the first address is specified.

따라서, 화상독취동작시에 버퍼메모리(4)가 충만될때까지 독취한 상태에서, 또 독취를 속행하면, 새로운 이미지데이타는, 앞서 독취한 이미지데이타위에 오버랩되어 기입된다(제10b도의 오버랩부 4-3).Therefore, in the state of reading until the buffer memory 4 is full during the image reading operation and continuing the reading, new image data is overlapped and written on the previously read image data (overlap portion 4 in FIG. 10B). 3).

이렇게 되면 앞서의 이미지데이타는, 사용되지 않는 사이에 지워지게 된다.In this case, the previous image data is deleted while not in use.

그렇게 되서는 좋지 않으므로, 화상독취부(1)의 독취동작을 일단 정지시킨다. 그리고 버퍼메모리(4)의 이미지데이타를 압축신장부(5)에서 부호화하여 종료한 후에, 재차 화상독취부(1)의 독취동작을 앞서 정지한 위치에서 재개한다. 따라서, 화상독취부(1)로서는, 화상의 독취를 간헐적으로 행할 수 있는 이미지 스캐너를 사용해야 한다.Since it is not necessary to do so, the reading operation of the image reading unit 1 is once stopped. After the image data of the buffer memory 4 is encoded and terminated by the compression extension unit 5, the reading operation of the image reading unit 1 is resumed at the previously stopped position. Therefore, as the image reading unit 1, an image scanner capable of intermittently reading an image should be used.

또, 인쇄동작시에, 코드기억부(6)에서 압축신장부(5)를 거쳐서 버퍼메모리(4)에 격납되는 이미지데이타는 1페이지의 일부분뿐이다. 버퍼메모리(4)의 이미지데이타는, 일정속도로 화상기록부(2)로 전송된다. 그러나, 압축신장부(5)에서의 복호화의 속도는 화상의 복잡정도에 따라서 다르므로, 압축신장부(5)에서 버퍼베모리(4)에는 일정속도로는 전송되어오지 않는다. 그러므로, 버퍼메모리(4)가 공백으로 되는 경우도 있다. 그 상태에서 화상기록부(2)를 계속 동작시키면 인쇄용지에 공백부가 생기게 되어(제10도(a)의 비인쇄부 18-2), 화상이 도중에서 끊어지게 된다.In the printing operation, only a part of one page of image data is stored in the buffer memory 4 via the compression storage section 5 by the code storage section 6. Image data of the buffer memory 4 is transferred to the image recording unit 2 at a constant speed. However, since the speed of decoding in the compression extension section 5 depends on the complexity of the image, it is not transmitted at a constant speed from the compression extension section 5 to the buffer memory 4. Therefore, the buffer memory 4 may be left blank. If the image recording unit 2 continues to operate in this state, a blank portion is formed on the printing paper (non-printing unit 18-2 in Fig. 10A), and the image is cut off on the way.

그래서는 좋지 않으므로, 버퍼메모리(4)가 공백으로 되었을때에는, 화상기록부(2)의 인쇄동작을 일단 정지시키고, 다음의 이미지데이타가 버퍼메모리(4)에 도착한 후에 재개시킨다. 따라서, 화상기록부(2)로서는 인쇄를 간헐적으로 행할 수 있는 감역시 프린터나 도트프린터등이 사용된다.This is not so good. When the buffer memory 4 becomes empty, the printing operation of the image recording unit 2 is once stopped and resumed after the next image data arrives in the buffer memory 4. Therefore, as the image recording unit 2, a printer or a dot printer or the like at the time of intermittent printing capable of intermittently printing is used.

[제 2 종래예]Second Conventional Example

페이지 메모리를 사용한 연속동작방식Continuous operation method using page memory

상기한 제 1 종래예에서는, 화상독취부(1) 및 화상기록부(2)가 간헐적으로 동작하므로 독취시간이나 인쇄시간이 길다는 결점이 있다. 그래서, 간헐적이 아니고, 연속적으로 동작할 수 있도록 한 것이 있다.In the first conventional example described above, since the image reading unit 1 and the image recording unit 2 operate intermittently, there is a drawback that the reading time or the printing time is long. Therefore, there is something that can operate continuously without being intermittent.

제 9 도에, 화상데이타 압축신장장치의 제 2 종래예를 사용한 팩시밀리장치를 나타낸다. 부호는 제 8 도의 것에 대응하고 있다. 그리고, 15는 페이지메모리 제어부, 16은 페이지메모리이다. 페이지메모리(16)의 용량은 A3판의 사이즈로 도트밀도 400dpi(dot per inch)의 2치 데이타를 대상으로 하는 경우에는, 약 4M 바이트를 필요로 한다. 제 8 도와 같은 구성요소의 동작은, 제 1 종래예의 경우와 같으므로, 그 설명을 생략하겠다. 다만, 화상독취부(1)로서는 연속적으로 동작할 수 있는 이미지 스캐너를 사용하고, 화상기록부(2)로서는, 연속적으로 동작하는 프린터, 예를들면 레이저 빔 프린터를 사용한다. 이들은, 각각의 기종에 의해서 정해져 있는 일정속도로, 독취동작이나 인쇄동작등을 실행한다.9 shows a facsimile apparatus using the second conventional example of the image data compression and expansion apparatus. Reference numerals correspond to those in FIG. 15 is a page memory control unit, and 16 is a page memory. The capacity of the page memory 16 is about the size of A3 and requires about 4M bytes when the binary data having a dot density of 400 dpi (dot per inch) is targeted. Since the operation of the constituent elements as in the eighth diagram is the same as in the case of the first conventional example, the description thereof will be omitted. However, as the image reading unit 1, an image scanner that can operate continuously is used, and as the image recording unit 2, a printer that continuously operates, for example, a laser beam printer, is used. These perform a read operation, a print operation, or the like at a constant speed determined by each model.

페이지메모리(16)는, 제 7b 도에 나타낸 것과 같이 원고의 1페이지의 이미지데이타를 격납할 수 있는 용량을 갖고 있으므로, 원고 1페이지를 독취하거나, 인쇄하거나 할때에, 도중에서 독취나 인쇄를 정지를 필요는 없다. 따라서, 독취나 인쇄에 요하는 전체의 시간이 짧아져서, 고속화된다.The page memory 16 has a capacity for storing image data of one page of an original as shown in FIG. 7B. Therefore, when reading or printing one page of an original, the page memory 16 reads or prints on the way. There is no need to stop. Therefore, the entire time required for reading or printing is shortened, thereby speeding up.

또, 화상데이타 압축신장장치에 관련된 종래의 문헌으로서는, 예를들면 특개소 60-140975호 공보, 특개소 64-36461호 공보, 특개소 62-126430호 공보, 특개소 63-267060호 공보, 특개소 64-44678호 공보등이다.Moreover, as a conventional document related to an image data compression expansion apparatus, for example, Unexamined-Japanese-Patent No. 60-140975, Unexamined-Japanese-Patent No. 64-36461, Unexamined-Japanese-Patent No. 62-126430, Unexamined-Japanese-Patent No. 63-267060, It is publication 64-44678 publications.

그러나, 상기한 바와같은 제 2 종래예에 사용하는 페이지메모리는, 다수의 메모리 요소를 필요로 하므로 고가이고, 화상데이타 압축신장장치의 코스트를 높게하는 문제점이 있었다. 본 발명은, 이와같은 문제점을 해결하는 것을 과제로 한다.However, the page memory used in the second conventional example as described above is expensive because it requires a large number of memory elements and has a problem of increasing the cost of the image data compression and expansion device. This invention makes it a subject to solve such a problem.

즉, 본 발명은, 페이지메모리보다 적은 메모리 요소로 구성되어 있는 버퍼메모리를 사용하여도, 화상독취부, 화상기록부의 한쪽 또는 양쪽을 연속적으로 동작시킬 수 있는 화상데이타 압축신장장치를 제공하는 것을 목적으로 한다.That is, an object of the present invention is to provide an image data compression / expansion device capable of continuously operating one or both of the image reading unit and the image recording unit even when a buffer memory composed of fewer memory elements than the page memory is used. It is done.

상기 과제를 해결하기 위해서, 본 발명에서는, 화상데이타 압축신장장치의 구성을, 연속적으로 동작하는 화상독취부 및/또는 연속적으로 동작하는 화상기록부와, 압축신장부와, 이미지데이타의 일시적인 격납에 사용되는 버퍼메모리와, 상기 압축신장부에 의해서 압축하여 얻은 코드데이타를 기억하는 코드기억부를 구비하고, 이 버퍼메모리의 용량을 코드기억부의 용량, 채용하는 부호화방식에서의 최악압축율, 버퍼메모리와 화상기록부 또는 화상독취부와의 사이의 데이타 전송속도에 대한 압축신장부와 버퍼메모리 사이에 데이타 전송속도의 비를 기준으로 하여 정하는 것으로 하였다.In order to solve the above problems, in the present invention, the configuration of the image data compression extension apparatus is used for the temporary storage of the image reading unit which operates continuously and / or the image recording unit which operates continuously, the compression extension unit, and the image data. And a code memory unit for storing code data obtained by compression by the compression extension unit. The capacity of the buffer memory unit is the capacity of the code memory unit, the worst compression ratio in the coding scheme employing the buffer memory, and the image recording unit. Alternatively, the data transfer rate between the image reading unit and the compression expansion unit and the buffer memory is determined based on the ratio of the data transfer rate.

또, 화상데이타 신장장치를 연속적으로 동작하는 화상기록부와, 이 화상기록부의 기록동작중에 원고 1페이지분의 이미지데이타를 중단없이 송출할 수 있는 용량을 갖는 버퍼메모리와, 이 버퍼메모리에 이미지데이타를 공급하는 신장부와, 이 신장부가 신장동작할 때에, 신장에 가장 시간이 걸리는 코드데이타를 신장하는 경우라도, 이 버퍼메모리가 앰프터로 되지 않도록 버퍼메모리를 플로되는 방향으로 제어하는 버퍼메모리 제어회로를 갖는 구성으로 했다.In addition, an image recording unit for continuously operating an image data stretching device, a buffer memory having a capacity for sending out one page of original image data without interruption during a recording operation of the image recording unit, and image data in this buffer memory. A buffer memory control circuit that controls the buffer memory in the direction of flow so that the buffer memory does not become an amplifier even when extending the supplying section and the code data that takes the longest time to decompress when the decompression unit performs the decompression operation. It was set as having a configuration.

또, 화상데이타 압축장치를 연속적으로 동작하는 화상독취부와, 이 화상독취부의 독취동작중에 원고 1페이지분의 이미지데이타를 지우는 일없이 송출할 수 있는 용량을 갖는 버퍼메모리와, 이 버퍼메모리에서 이미지데이타의 공급을 받는 압축부와, 이 압축부와 압축 동작을 할때에 압축에 가장 시간이 걸리는 코드데이타를 압축하는 경우라도, 이 버퍼메모리가 플로되지 않도록 상기 버퍼메모리가 앰프티로되는 방향으로 제어하는 버퍼메모리 제어회로를 갖는 구성으로 했다.An image reading unit for continuously operating an image data compression device, a buffer memory having a capacity to be sent without erasing image data of one page of an original during a reading operation of the image reading unit, and a buffer memory Even when compressing a compression unit receiving image data and code data that takes the most time in compression when performing compression operation with this compression unit, the buffer memory is directed to the amplifier so that the buffer memory does not flow. The configuration has a buffer memory control circuit for controlling by the controller.

본 발명에서는 코드기억부의 용량을 C, 채용되는 부호화방식에서의 최악압축율을 K, 버퍼메모리와 화상기록부 또는 화상독취부와의 사이의 데이타 전송속도에 대한 압축신장부와 버퍼메모리 사이의 데이타 전송속도의 비를 P로 했을때, 버퍼메모리용량 Y를,In the present invention, the capacity of the code storage unit is C, the worst compression ratio in the coding scheme employed is K, and the data transfer rate between the compressed expansion unit and the buffer memory for the data transfer rate between the buffer memory and the image recording unit or the image reading unit. When the ratio is P, buffer memory capacity Y

의 관계를 만족하도록 정한다.To satisfy the relationship

이와같이 함으로써, 압축시에는, 연속적으로 동작하는 화상독취부에서 일정한 속도로 버퍼메모리에 계속적으로 전송되어 오는 이미지데이타를, 버퍼메모리가 플로되는 일없이 처리할 수 있다. 또 신장시에는, 연속적으로 동작하는 화상기록부로 버퍼메모리에서 일정한 속도로 이미지데이타를 송출해야만 되나 그것은 버퍼메모리가 앰프티로 되는 일없이 행할 수 있다.In this way, during compression, the image data continuously transmitted to the buffer memory at a constant speed can be processed by the image reading unit operating continuously, without causing the buffer memory to flow. At the time of decompression, image data must be sent from the buffer memory to a continuously operating image recording unit at a constant speed, but this can be done without the buffer memory becoming an amp.

용량 Y는 C, P의 값을 조정함으로써, 페이지메모리로 하는 경우의 용량보다 소(小)로 할 수 있으므로, 코스트를 저감시킬 수 있다.The capacity Y can be made smaller than the capacity of the page memory by adjusting the values of C and P, so that the cost can be reduced.

[실시예]EXAMPLE

이하, 본 발명의 실시예를 도면에 의해서 상세하게 설명하겠다. 제 1 도는, 본 발명의 화상데이타 압축신장장치를 사용한 팩시밀리장치이다. 부호는 제 8 도의 것에 대응하고 있다. 화상독취부(1), 화상기록부(2)로서는, 연속동작하는 것을 사용한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. 1 is a facsimile apparatus using the image data compression and expansion apparatus of the present invention. Reference numerals correspond to those in FIG. As the image reading unit 1 and the image recording unit 2, those which operate continuously are used.

제 2 도는 본 발명의 화상데이타 압축신장장치의 요부확대도이다. 부호는 제 1 도의 것에 대응하고 3-1은 메모리 사용량 카운터, 3-2는 메모리 사용량 판정회로, 3-3은 프레임 폭 레지스터, 3-4~3-6은 어드레스 레지스터, 3-7~3-9는 어드레스 카운터, DRE Q 1~3은 데이타 리퀘스트신호, ACK 1~3은 아크날리지신호, LE, LE1~3은 라인 앤드신호이다.2 is an enlarged view of the main part of the image data compression and stretching apparatus of the present invention. 3-1 is a memory usage counter, 3-2 is a memory usage determination circuit, 3-3 is a frame width register, 3-4 is an address register, and 3-7 is a 3- 3 code. 9 is an address counter, DRE Q 1 to 3 is a data request signal, ACK 1 to 3 is an acknowledgment signal, and L E and L E 1 to 3 are line and signal.

제 3 도는 버퍼메모리(4)의 구조를 설명하는 도면이다. 제 3a 도는 버퍼메모리(4)의 어드레스를 워드단위로 설정하고 있는 것을 나타내고 있다. 이 예에서는, 1워드는, 0에서 15까지의 16비트로 구성되어 있다. 버퍼메모리(4)는, 링버퍼로 사용한다. 즉, 최종 어드레스 Z의 다음에 어드레스를 진행시키고자 하는 때에는 최초의 어드레스 0으로 되돌아오게 어드레스지정이 된다.3 is a diagram for explaining the structure of the buffer memory 4. As shown in FIG. 3A shows that the address of the buffer memory 4 is set in word units. In this example, one word is composed of 16 bits from 0 to 15. The buffer memory 4 is used as a ring buffer. That is, when the address is to be advanced after the last address Z, addressing is performed so as to return to the first address 0.

제 3b 도는 버퍼메모리(4)의 용량을 1라인 길이(이것을 「프레임 폭」이라 함)가 W워드로 되어 있는 면에서 나타낸 것이다. 이면의 라인 1의 선두 어드레스는 W이고 라인 2 의 선두의 어드레스는 2W이다.3B shows the capacity of the buffer memory 4 in that the length of one line (this is called "frame width") is W word. The head address of line 1 on the back side is W and the head address of line 2 is 2W.

프레임폭(W)이 큰 원고의 경우에는, 격납할 수 있는 라인 수는 적다. 반대로, 프레임 폭(W)이 작은 원고의 경우에는, 격납할 수 있는 라인수는 많다.In the case of an original having a large frame width W, the number of lines that can be stored is small. In contrast, in the case of an original having a small frame width W, the number of lines that can be stored is large.

제 4 도는 신장시의 버퍼메모리의 사용과정을 설명하는 도면이다. 4-1은 사용부, 4-2는 공백부, LR는 독출라인(독출을 행하고 있는 라인), LW는 기입라인(기입을 행하고 있는 라인)이다. 제 4(a) 도는 사용전의 상태를 나타내고 있으며, 독출라인 LR도 기입라인 LW도 또 최초의 라인에 들어있지 않다.4 is a diagram for explaining a process of using a buffer memory during expansion. 4-1 is a use section, 4-2 is a blank section, L R is a read line (a line for reading), and L W is a write line (a line for writing). 4 (a) shows the state before use, and neither the read line L R nor the write line L W is included in the first line.

제 4b 도는 이미지데이타의 기입이 진행되고 있는 상태를 나타내고 있다. 기입라인 LW는 화살표 방향으로 진행하여 버퍼메모리(4)의 최종라인 가까이까지 와있다. 독출은 아직 개시되어 있지 않고, 독출라인 LR는 아직 최초의 라인에 들어있지 않다. 도트를 찍은 부분이 사용부 4-1이고, 공백부분이 공백부 4-2이다. 버퍼메모리(4)는 링버퍼로 사용되므로 최종 라인까지 기입해가면, 다음에는 최초라인으로 되돌아와서 기입이 행해진다.4B shows a state in which image data is being written. The write line L W runs in the direction of the arrow and reaches near the last line of the buffer memory 4. Readout is not yet disclosed, and readline L R is not yet on the first line. The part where the dot was taken is the use part 4-1, and the blank part is the blank part 4-2. Since the buffer memory 4 is used as a ring buffer, when writing to the last line, the buffer memory 4 returns to the first line and then writes.

제 4c 도는, 기입과 독출이 행해지고 있는 상태를 나타내고 있다. 독출라인 LR가 최초의 라인에서 스타트하여, 최종라인 가까이까지 진행하고 있다. 기입라인(LW)은, 최종라인에서 최초의 라인으로 되돌아와서, 독출이 종료되어 끝난 이미지데이타위에 상서(上書)하는 식으로 기입을 행하고 있다. 따라서, 메모리의 사용부(4-1), 공백부(4-2)는 도시하는 바와 같게 된다.4C shows a state in which writing and reading are performed. The read line L R starts at the first line and proceeds to near the final line. The writing line L W returns to the first line from the last line and writes in such a manner as to write on the image data after the reading is completed. Therefore, the use section 4-1 and the blank section 4-2 of the memory are as shown.

제 2 도의 메모리 사용량 카운터(3-1)는, 아직 독출되어 있지 않은 이미지 데이타라인 수, 즉, 제 4 도의 사용부(4-1)의 라인 수를 계수하는 카운터이다. 버퍼메모리 제어회로(3)에, 1라인의 기입이 종료된 것을 알리는 라인 앤드신호(LE)가 들어오면, 카운트가 +1되고, 1라인의 독출이 종료된 것을 알리는 라인앤드신호(LE)가 들어오면, 카운트가 -1로 된다.The memory usage counter 3-1 in FIG. 2 is a counter that counts the number of image data lines that have not been read yet, that is, the number of lines in the user section 4-1 in FIG. When the line-and-signal signal L E that informs the buffer memory control circuit 3 that writing of one line has ended, the count is +1, and the line-and signal L E that informs that the reading of one line has ended. ), The count becomes -1.

메모리사용량 판정회로(3-2)는 사용부(4-1)가 전혀 없어졌거나(엠프티 : Empty), 또는 버퍼메모리(4)가 사용부(4-1)에서 충만되었는지(플 : Full)를 판정하는 회로이다. 구체적으로는, 메모리 사용량 카운터(3-1)의 값(즉, 제 4 도의 도트를 찍은 사용부(4-1)의 라인수)과, 라인수(0) 또는 최대라인수(LMAX)를 비교함으로써 판정한다. 라인수(0)와 일치되었을때에는 앰프티신호 Em이 출력되고, 버퍼메모리(4)에 격납할 수 있는 최대라인수(LMAX)와 일치되었을대에는 플신호(Fu)가 출력된다.The memory usage judging circuit 3-2 determines whether the use section 4-1 is completely lost (empty) or the buffer memory 4 is full in the use section 4-1 (full). Is a circuit for determining. Specifically, the value of the memory usage counter 3-1 (that is, the number of lines of the use portion 4-1 in which the dot of FIG. 4 is taken) and the number of lines 0 or the maximum number of lines L MAX are determined. Judgment is made by comparison. When the number of lines coincides with the number of lines 0, the amplifier signal E m is output, and when the maximum number of lines L MAX that can be stored in the buffer memory 4 is matched, the full signal Fu is output.

프레임 폭 레지스터(3-3)에는, 프레임폭의 값(화상의 1라인을 구성하는 워드 수)이 설정된다. 이 예에서는, 그 값을 W로 한다. 예를들면, A3판의 용지의 가로폭을 갖는 원고를 400dpi의 화상독취부(1)에서 독취할때의 1라인의 비트수는, 4864비트이다. 이 프레임폭은, 1워드를 16비트로 하면, 304워드이다.In the frame width register 3-3, a value of the frame width (number of words constituting one line of an image) is set. In this example, the value is set to W. For example, the number of bits in one line when reading a document having a width of a sheet of A3 in the 400dpi image reading unit 1 is 4864 bits. This frame width is 304 words when one word is 16 bits.

압축신장부(5)에 압축동작을 시킬때에는, 화상독취부(1)에서 계속해서 이미지데이타가 송출되어도 받아들일 여지가 충분하도록, 버퍼메모리(4)는 앰프티에 가까운 상태로 있는 것이 요망된다. 한편, 신장동작시킬때에는 화상기록부(2)로 송출하는 이미지데이타가 중단되지 않도록 버퍼메모리(4)에는 이미지데이타가 충분히 존재하는 상태(플에 가까운 상태)에 있는 것이 바람직하다.When the compression stretching unit 5 is subjected to a compression operation, it is desired that the buffer memory 4 be in a state close to the ampliquary so that there is enough room to accept even if image data is continuously sent from the image reading unit 1. On the other hand, during the decompression operation, it is preferable that the image data is sufficiently present in the buffer memory 4 (close to the flop) so that the image data sent to the image recording unit 2 is not interrupted.

상기와 같은 상태를 실현하기 위해서는 버퍼메모리(4)의 용량등이 어떤 조건을 충족시키면 되는지를 설명하기 전에, 화상데이타 압축신장장치의 동작을, 화상독취동작, 인쇄동작, 카피동작으로 나눠서 설명하겠다.Before describing what conditions the capacity of the buffer memory 4 must satisfy in order to realize the above state, the operation of the image data compression and expansion apparatus will be explained by dividing the image reading operation, the printing operation, and the copy operation. .

[화상독취동작][Image reading operation]

이 동작은, 화상독취부(1)에서 독취한 이미지데이타를 일단 버퍼메모리(4)에 저장하고, 다음에 압축신장부(5)에서 코드데이타로 변환하여 코드기억부(6)에 기억하는 동작이다.This operation is an operation of storing the image data read by the image reading unit 1 in the buffer memory 4 once, then converting it into code data in the compression expansion unit 5 and storing it in the code storage unit 6. to be.

(1) 화상독취부(1)→버퍼메모리(4)로의 기입동작에 대해서 최초로, 압축신장부(5)에 기동을 걸고, 압축동작을 개시하려고 한다. 그러나, 버퍼메모리(4)에는 아직 이미지데이타가 독취되어 있지 않기 때문에, 메모리 사용량 판정회로(3-2)에서는 앰프티신호(Em)가 출력되어 있다. 압축처리의 대상으로 되는 이미지데이타가 없을때에는, 압축동작은 대기상태로 된다. 화상독취부(1)에 기동을 걸면, 이미지데이타가 동기신호에 따라, 1비트씩 시리즈로 화상데이타 입력제어회로(19)에 입력된다.(1) The write operation from the image reading unit 1 to the buffer memory 4 first starts the compression extension unit 5, and attempts to start the compression operation. However, since the image data has not yet been read in the buffer memory 4, the amplifier signal Em is output from the memory usage determining circuit 3-2. When there is no image data to be subjected to the compression process, the compression operation becomes a standby state. When the image reading unit 1 is activated, image data is input to the image data input control circuit 19 in series by one bit in accordance with the synchronization signal.

화상데이타 입력제어회로(19)에서 버퍼메모리(4)로의 이미지데이타의 입력은, 워드단위로(예, 1워드를 16비트로 하면, 16비트를 한 묶음으로 함) 파럴렐로 행해진다. 그 입력은, 데이타 리퀘스트신호(DREQ(1))에 응답하여 출력된 아크날리지신호(ACK 1)를 받아들인때에 행해진다.The input of image data from the image data input control circuit 19 to the buffer memory 4 is performed in parallel in word units (for example, when one word is 16 bits, 16 bits are bundled). The input is made when the arc nal signal ACK 1 output in response to the data request signal DREQ (1) is received.

어드레스레지스터(3-4)와 어드레스카운터(3-7)는, 화상데이타 입력제어회로(19)에서 버퍼메모리(4)으로의 입력을 할때에 사용된다. 어드레스 레지스터(3-4)는 현재 기입중의 라인의 선두의 어드레스를 나타낸다. 에를들면, 제 3 도(B)에서 라인 1 에 속하는 워드를 기입중인 기간은, W라고 하는 어드레스를 유지하고 있다. 어드레스 카운터(3-7)는, 기입을 행하고 있는 워드의 어드레스를 나타낸다.The address registers 3-4 and the address counters 3-7 are used when inputting from the image data input control circuit 19 to the buffer memory 4. The address register 3-4 indicates the address of the head of the line currently being written. For example, in the period in which the word belonging to the line 1 in FIG. 3B is being written, the address W is maintained. The address counter 3-7 shows the address of the word which is writing.

예를들면, 제 3b 도의 라인 1 의 선두에서 2번째의 워드를 기입하고 있을때에는, W+1로 되어 있는, 1워드 기입할때마다 +1된다. 또, 최초의 라인의 선두의 워드를 기입할때에는 어드레스 레지스터(3-4)의 내용(0)을 어드레스 카운터(3-7)로 세트한다.For example, when the second word is written from the beginning of the line 1 in Fig. 3B, it is +1 every time one word is written, which is W + 1. When the first word of the first line is written, the contents 0 of the address registers 3-4 are set to the address counters 3-7.

1라인분에 상당하는 워드를 송출할때마다. 라인앤드신호(LE1)가 출력한다. 이 라인앤드신호(L31)에 의해서, 어드레스레지스터(3-4)의 값은, 프레임 폭(W)을 가산한 값으로 된다. 예를들면, 라인 2 가 종료된 경우에는, 2W에 W가 가산되어서 3W로 된다(W2+W=3W). 버퍼메모리(4)로의 1라인분의 이미지데이타의 기입은, 버퍼메모리(4)에서의 메모리사용량을 1라인분 늘리므로 라인앤드신호(LE1)는 메모리사용량 카운터(3-1)에 입력되어 카운트를 +1로 한다.Every time a word is sent out for one line. The line and signal L E 1 are output. By the line-and-signal L 3 1, the value of the address register 3-4 becomes a value obtained by adding the frame width W. FIG. For example, when the line 2 is finished, W is added to 2W to be 3W (W2 + W = 3W). The writing of one line of image data to the buffer memory 4 increases the memory usage in the buffer memory 4 by one line, so the line-and-signal L E 1 is input to the memory usage counter 3-1. To make the count +1.

(2) 버퍼메모리(4)→코드기억부(6)로의 격납동작에 대해서 버퍼메모리(4)에 1라인이라도 기입되면, 앰프티신호(Em)가 없어진다. 앰프티신호(Em)가 없어졌을때에, 압축신장부(5)에 압축동작을 개시시킨다. 데이타 리퀘스트신호(EREQ 3)에 응답하여 아크날리지신호(ACK 3)가 출력되었을때에 버퍼메모리(4)의 이미지 데이타가 독출된다. 독출은, 최초의 라인의 선두에서 행해진다. 독출된 이미지데이타는 압축되어서, 코드기억부(6)에 격납된다. 어드레스 레지스터(3-6)는, 압축신장부(5)으로의 독출이 행해지고 있는 라인의 선두 어드레스를 나타낸다. 어드레스 카운터(3-9)는 압축신장부(5)로의 독출이 행해지고 있는 워드의 어드레스를 나타낸다. 최초 라인의 선두에 있는 워드의 독출을 행할때에는, 어드레스 레지스터(3-6)의 값(0)이, 어드레스 카운터(3-9)에 세트된다.(2) When one line is written into the buffer memory 4 for the storage operation from the buffer memory 4 to the code memory 6, the amplifier signal Em disappears. When the amplifier signal Em disappears, the compression extension section 5 starts a compression operation. The image data of the buffer memory 4 is read out when the acknowledgment signal ACK 3 is output in response to the data request signal EREQ 3. Reading is done at the beginning of the first line. The read image data is compressed and stored in the code memory section 6. The address registers 3-6 indicate the head address of the line on which the read / write to the compressed extension section 5 is performed. The address counter 3-9 indicates the address of the word being read out to the compressed extension section 5. When reading the word at the head of the first line, the value 0 in the address register 3-6 is set in the address counter 3-9.

1워드 독출할때마다, 어드레스 카운터(3-9)의 값은 +1된다. 1라인의 독출이 종료될때마다(즉, 라인 앤드신호(LE3)가 출력될때마다) 어드레스 레지스터(3-6)의 값에, 프레임 폭(W)이 가산된다. 또 버퍼메모리(4)에서 1라인 독출하면, 그 라인의 이미지데이타는 일이 끝나고, 메모리 사용량은 1라인 감소된 것으로 된다. 또, 라인앤드신호(LE3)가 입력되었을때에, 메모리 사용량 카운터(3-1)의 값을 -1한다.Each time one word is read, the value of the address counter 3-9 is +1. Each time the reading of one line is finished (that is, each time the line and signal L E 3 is output), the frame width W is added to the value of the address register 3-6. When one line is read from the buffer memory 4, the image data of the line is finished, and the memory usage is reduced by one line. When the line-and-signal L E 3 is input, the value of the memory usage counter 3-1 is -1.

[인쇄동작][Print Action]

이 동작은, 코드기억부(6)에 기억되어 있는 코드데이타를 압축신장부(5)에서 이미지데이타로 변환하여, 일단 버퍼메모리(4)에 저장하고, 화상기록부(2)로 송출하여 인쇄를 하는 동작이다.This operation converts the code data stored in the code storage section 6 into image data in the compression extension section 5, stores them in the buffer memory 4, sends them to the image recording section 2, and prints them. It is an operation.

(1) 코드기억부(6)→버퍼메모리(4)로 기입하는 동작에 대해서 압축신장부(5)를 기동하고, 코드기억부(6)의 코드데이타를 이미지데이타로 변환하여, 버퍼메모리(4)에 기입한다. 기입을 행하는 라인의 선두에서, 어드레스 레지스터(3-6)의 값을 어드레스 카운터(3-9)에 세트한다. 이미지데이타를 기입하는 어드레스는, 어드레스 카운터(3-9)에 의해서 지시된다. 1워드 기입할때마다 어드레스 카운터(3-9)의 값은 +1된다. 1라인의 기입을 끝내고 라인 앤드 신호(LE3)가 출력되면, 어드레스 레지스터(3-6)의 값에 프레임폭(W)이 가산되어 메모리 사용량 카운터(3-1)의 값이 +1된다.(1) In the operation of writing from the code memory unit 6 to the buffer memory 4, the compression expansion unit 5 is started, and the code data of the code memory unit 6 is converted into image data, thereby converting the buffer memory ( Fill in 4). At the beginning of the line to write, the value of the address register 3-6 is set in the address counter 3-9. The address for writing image data is instructed by the address counter 3-9. Each time one word is written, the value of the address counter 3-9 is +1. When writing of one line is finished and the line and signal L E 3 is output, the frame width W is added to the value of the address register 3-6, and the value of the memory usage counter 3-1 is +1. .

(2) 버퍼메모리(4)→화상기록부(2)로 독출하는 동작에 대해서 버퍼메모리(4)에서의 메모리 사용량이 증가되어, 플신호(Fu)가 출력되면, 화상기록부(2)가 기동된다. 또, 화상데이타 출력제어회로(20)로부터의 데이타 리퀘스트신호(DREQ 2)에 응답하여 아크날리지신호(ACK 2)가 출력될때에 버퍼메모리(4)에서 이미지데이타가 독출된다. 이 독출은, 워드단위로 행해지나, 화상데이타 출력제어회로(20)에서 화상기록부(2)로의 이미지데이타의 송출은, 동기신호에 따라서 시리즈 형식으로 행해진다.(2) The operation of reading from the buffer memory 4 to the image recording unit 2 increases the amount of memory used in the buffer memory 4 and outputs the full signal Fu, so that the image recording unit 2 is started. do. Further, image data is read out from the buffer memory 4 when the arc raw signal ACK 2 is output in response to the data request signal DREQ 2 from the image data output control circuit 20. FIG. The readout is performed in word units, but the image data output from the image data output control circuit 20 to the image recording unit 2 is performed in a series format in accordance with the synchronization signal.

버퍼메모리(4)에서 화상데이타 출력제어회로(20)로의 이미지데이타의 독출시에는, 최초라인의 선두에서, 어드레스 레지스터(3-5)의 값이 어드레스 카운터(3-8)에 세트된다. 어드레스 카운터(3-8)의 값은 1워드 독출마다 +1된다. 1라인의 독출을 끝내면 라인앤드신호 LE2가 출력되어 어드레스 레지스터(3-5)에 프레임폭(W)이 가산되는 동시에, 메모리사용량 카운터(3-1)의 값이 -1된다.When reading image data from the buffer memory 4 to the image data output control circuit 20, the value of the address register 3-5 is set in the address counter 3-8 at the head of the first line. The value of the address counter 3-8 is +1 for every word read. When the reading of one line is finished, the line-and-signal L E 2 is output, the frame width W is added to the address register 3-5, and the value of the memory usage counter 3-1 is -1.

[카피동작][Copy operation]

이 동작은, 화상독취부(1)에서 독출된 이미지데이타를 일단 버퍼메모리(4)에 저장하여, 화상기록부(2)에서 인쇄하는 동작이다. 화상독취부(1)에서 독취한 이미지데이타를 버퍼메모리(4)에 기입하는 동작은 [화상독취동작]의 항에서 설명한 동작과 같고, 버퍼메모리(4)의 이미지데이타를 화상기록부(2)로 독출하는 동작은 [인쇄동작]의 항에서 설명한 동작과 같다.This operation is an operation in which image data read out from the image reading unit 1 is once stored in the buffer memory 4 and printed in the image recording unit 2. The operation of writing the image data read by the image reading unit 1 into the buffer memory 4 is the same as the operation described in the section [Image reading operation], and the image data of the buffer memory 4 is transferred to the image recording unit 2. The reading operation is the same as the operation described in the section [Printing operation].

상기와 같은 동작을 원고 1페이지분을 도중에서 중단되지 않고, 연속해서 행할 수 있게 하려면, 버퍼메모리(4)는, 신장동작시에 있어서는 앰프티로 되어서는 안되고, 압축동작시에는 플로되어 있어서는 안된다. 본 발명은, 이 관계에 착안하여, 버퍼메모리(4)의 최저용량을 산출한 것이다. 다음에, 그 계산예를 설명하겠다.In order to allow the above operation to continue for one page of the original without interruption, the buffer memory 4 should not be an ampli- fier during the decompression operation and not flow during the compression operation. . In view of this relationship, the present invention calculates the minimum capacity of the buffer memory 4. Next, the calculation example will be described.

[버퍼메모리(4)의 용량의 계산예][Calculation Example of Capacity of Buffer Memory 4]

제 5 도는, 버퍼메모리(4)로서 필요로 하는 메모리용량의 산출을 설명하기 위한 도면이고 신장의 경우를 예로서 설명하겠다. 17은 원고, 17-1은 백부, 17-2는 최악압축화상부, 6-1은 백코드부, 6-2는 최악압축화상코드부, 21은 1비트 래더이다. 제 5a 도는, 인쇄동작시에 데이타가 흐르는 경로를 나타낸다. 제 5b 도는, 신장동작이 최악의 조건으로 행해지는 경우의 코드기억부(6), 버퍼메모리(4) 및 원고(17)의 상태를 나타낸다.5 is a diagram for explaining the calculation of the memory capacity required as the buffer memory 4, and the case of decompression will be described as an example. 17 is a manuscript, 17-1 is a white part, 17-2 is a worst compression picture part, 6-1 is a back code part, 6-2 is a worst compression picture code part, and 21 is a 1-bit ladder. 5A shows a path through which data flows in the printing operation. 5B shows the states of the code memory unit 6, the buffer memory 4, and the document 17 when the decompression operation is performed under the worst condition.

원고(17)의 최악압축화상부(17-2)라 함은, 화상독취부(1)에 의해서 독취압축하는 경우에 가장 압축율이 나쁜 화상부를 말한다. 그와같은 화상부는, 백과 흑이 1비트마다 교호로 배열되어 있는 화상인 1비트 래더(21)이다. 따라서 최악 압축화상부(17-2)는 1비트 래더(21)로 메꾸어져 있다.The worst compressed image portion 17-2 of the document 17 refers to an image portion having the worst compression ratio when read compression is performed by the image reading portion 1. Such an image portion is a one-bit ladder 21 which is an image in which white and black are alternately arranged every bit. Therefore, the worst compressed image part 17-2 is filled with the 1-bit ladder 21. As shown in FIG.

팩시밀리장치에 사용되는 MH 방식(Modified Huff-man방식)으로 1비트 래더(21)를 압축하면, 압축율은 1/4.5이다. 즉, 1비트의 이미지데이타를 압축하면, 4.5비트의 코드데이타로 된다는 율이다. 이 경우에는, 짧아지지 않고 오히려 길어진다.When the 1-bit ladder 21 is compressed by the MH method (Modified Huff-man method) used for the facsimile apparatus, the compression ratio is 1 / 4.5. In other words, when one bit of image data is compressed, 4.5 bits of code data is obtained. In this case, it is not shortened but rather long.

백코드부(6-1)는 백부(17-1)의 이미지데이타를 압축한 코드데이타를 격납하고 있는 부분이고, 최악압축화상코드(6-2)는, 최악압축화상부(17-2)의 이미지데이타를 압축한 코드데이타를 격납하고 있는 부분이다.The back code part 6-1 is a part which stores the code data which compressed the image data of the back part 17-1, and the worst compressed image code 6-2 is the worst compressed image part 17-2. This section contains the code data compressed from the image data.

제 5 도(A)의 각부의 용량 및 데이타의 전송속도를, 다음과 같이 설정한다.The capacity and transmission rate of data in each part of Fig. 5A are set as follows.

① 버퍼메모리(4)의 용량 ……………………………………………Y바이트① Capacity of buffer memory 4. … … … … … … … … … … … … … … … … Y bytes

② 코드기억부(6)의 용량 ……………………………………………C바이트② capacity of the code memory 6. … … … … … … … … … … … … … … … … C byte

③ 버퍼메모리(4)→화상기록부(2)로의 전송속도(일정) …………X바이트/S(3) Transfer rate (constant) from buffer memory 4 to image recording section 2. < … … … X bytes / S

(단, S…초)(S… seconds)

④ 코드기억부(6)→압축신장부(5)로의 전송속도 …………………nX바이트/S④ transmission speed from code memory section 6 to compression extension section. … … … … … … nX bytes / S

(단, n…정의정수. 상기의 X에 비해서 몇배로 되어 있는지를 나타낸 수)(Where n is a positive integer, which indicates how many times the X is)

⑤ 압축신장부(5)의 신장동작능력 …………………………………PX바이트/S⑤ Stretching operation capability of the compression extension part 5. … … … … … … … … … … … … PX bytes / S

(단, p…상기의 X에 비해서 몇배로 되어있는지를 나타낸 계수)(However, p ... coefficient indicating how many times compared with X mentioned above)

코드기억부(6)의 코드데이타를 압축신장부(5)에서 이미지데이타로 변환하여, 버퍼메모리(4)를 거쳐서 화상기록부(2)로 송출하는 경우에는, 1페이지분의 데이타 전송이 연속적으로 행해져도, 인쇄용지에 제10a도에 나타낸 것과 같은 비인쇄부(18-2)가 나올 수 없게 하는 것이 요청된다. 그렇게 하기 위해서는 예를 들면 압축신장부(5)에서의 신장처리에 가장 시간이 많이 걸리는 코드데이타가 있어도, 버퍼메모리(4)가 공백으로 되는 일없이 최후의 데이타까지 화상기록부(2)로 송출해야 한다. 그래서, 비인쇄부를 생기게 하는 가능성도 가장 높은 최악조건을 상정하고, 그와같은 조건하에 있어서도, 비인쇄부를 생기게 하지 않는 버퍼메모리(4)의 용량은 얼마인지를 다음에 산출한다.When the code data of the code storage section 6 is converted into image data by the compression extension section 5 and sent out to the image recording section 2 via the buffer memory 4, data transfer for one page is continuously performed. Even if it is done, it is requested that the non-printing portion 18-2, as shown in Fig. 10A, be prevented from appearing on the printing paper. In order to do so, even if there is code data that takes the most time for the decompression processing in the compression extension unit 5, for example, the last data must be sent to the image recording unit 2 without the buffer memory 4 becoming blank. do. Therefore, assuming the worst condition having the highest possibility of producing a non-printed portion, and calculating the capacity of the buffer memory 4 which does not produce a non-printed portion even under such conditions, the following is calculated.

우선 최악조건을 제 5b 도에서 설명하겠다. 최악조건을 규정하는 제 1 조건은, 도트를 찍어서 도시한 것과 같이 만일 신장하여 이미지데이타로 변환하면, 그 량이 버퍼메모리(4)를 알맞게 채울 정도의 양으로 되고, 또한 압축된 상태에서는 가장 근소한 영역을 사용하는 것만으로 코드기억부(6)에 격납되는 화상에 대응하는 코드데이타가 코드기억부(6)의 선두부분에 존재한다는 조건이다. 그와같은 화상이란, 백의 화상이다. 따라서, 코드기억부(6)의 선두에는, 백코드부(6-1)가 존재하고 있다.First, the worst condition will be described in FIG. 5B. The first condition that defines the worst condition is that the amount is enough to fill the buffer memory 4 if it is stretched and converted into image data as shown in the drawing, and the smallest area in the compressed state. The condition is that the code data corresponding to the image stored in the code storage section 6 exists at the head of the code storage section 6 only by using. Such an image is an image of a white. Therefore, the back code part 6-1 exists in the head of the code memory part 6. As shown in FIG.

최악조건을 규정하는 제 2 조건은, 백코드부(6-1)의 후에는, 신장처리를 하는데 가장 시간이 걸리는 코드데이타(압축율이 최악(최소))가 격납되어 있는 최악압축 화상코드부(6-2)가 존재하고 있다는 조건이다.The second condition that defines the worst condition is the worst compressed image code part (after the back code part 6-1) that stores the code data (the worst (minimum) compression rate) that takes the longest to perform the decompression process ( It is condition that 6-2) exists.

버퍼메모리(4)에서 화상기록부(2)로의 전송은 버퍼메모리(4)가 이미지데이타로 채워졌을때(플신호 Fu가 출력할때)에 개시된다.The transfer from the buffer memory 4 to the image recording section 2 is started when the buffer memory 4 is filled with image data (when the full signal Fu is output).

원고(17)의 폭을 A3판의 용지의 가로폭과 같게 하고, 이것을 도트밀도가 400dpi(dot per inch)의 화상독취부(1)에서 독취하면, 1라인의 이미지데이타는 4864비트로 된다. 따라서, 용량 Y비트의 버퍼메모리(4)에는, 다음 개수의 라인을 격납할 수 있다.If the width of the document 17 is equal to the width of the sheet of A3, and this is read by the image reading unit 1 having a dot density of 400 dpi (dot per inch), the image data of one line is 4864 bits. Therefore, the next number of lines can be stored in the buffer memory 4 having the capacity Y bits.

버퍼메모리(4)에 격납할 수 있는다음에, 버퍼메모리(4)에 채워진 백라인의 이미지데이타에 대응하는 백코드부(6-1)의 메모리량을 구한다. 4864 비트로 되는 이미지데이타의 백의 1라인을 코드데이타로 표현하려면 MH 방식으로 44비트를 요하므로, 백코드부(6-1)의 메모리량(비이트)은 다음과 같이 된다.Can be stored in the buffer memory (4) Next, the memory amount of the back code part 6-1 corresponding to the image data of the back line filled in the buffer memory 4 is obtained. In order to express one line of the back of image data of 4864 bits as code data, 44 bits are required in the MH method, so the memory amount (bite) of the back code section 6-1 is as follows.

백코드부(6-1)의로 하면, 최악압축화상코드부(6-2)의 메모리 용량은, 다음 식으로 구해진다.Of back cord part 6-1 In this case, the memory capacity of the worst compressed image code section 6-2 is obtained by the following equation.

최악압축화상코드부(6-2)의이 식의 제 2 항의 값은, Y=1M 바이트로 가정한 경우에, 1K 바이트보다 적으므로, 계산을 간략하게 하기 위해,Of the worst compressed image code section 6-2 The value of the second term of this equation is less than 1K bytes when assuming Y = 1M bytes, so to simplify the calculation,

최악압축화상코드부(6-2)의 메모리용량≒C …………………………………(1)Memory capacity #C of the worst compressed image code section 6-2. … … … … … … … … … … … … (One)

로 근사해서 생각하기로 한다.Let's think about it as cool.

최악(최소)의 압축율을 K로 하면, 최악압축화상코드부(6-2)의 코드데이타가 신장되어서 생성되는 이미지데이타의 양(바이트)는,When the worst-case (minimum) compression ratio is K, the code data of the worst-compressed image code section 6-2 is extended so that the amount (byte) of image data generated is

최악압축화상코드부(6-2)에 대응하는 이미지데이타량=KC…………………(2)Image data amount corresponding to worst compressed image code section 6-2 = KC... … … … … … … (2)

이다.to be.

백코드부(6-1)와 최악압축화상코드부(6-2)와의 코드데이타를 신장함으로써 생성되는 이미지데이타의 총량(바이트)은, Y+KC이다. 화상기록부(2)가 기동된 후에는, 버퍼메모리(4)에서 일정속도 X바이트/S로 연속해서 독출이 행해지므로, 상기의 총량을 연속해서 독출하여 끝내는데 요하는 시간(T1)은, 다음과 같이 된다.The total amount (byte) of image data generated by extending the code data between the back code section 6-1 and the worst compressed image code section 6-2 is Y + KC. After the image recording unit 2 is activated, reading is continuously performed at a constant speed X bytes / S in the buffer memory 4, so that the time T 1 required to continuously read and finish the above-described total amount is It becomes as follows.

………………………………………………………………(3) … … … … … … … … … … … … … … … … … … … … … … … … (3)

다른 한편, 최악압축화상코드부(6-2)의 코드데이타의 압축신장부(5)로의 전송은 백코드부(6-1)의 압축신장부(5)로의 전송이 끝나는대로 그에 계속해서 행해진다. 압축신장부(5) 최악압축화상코드부(6-2)의 코드데이타의 신장을 화상기록부(2)가 버퍼메모리(4)로부터의 독출을 개시한 것과 같은 시점부터 개시한다. 전송속도는 PX 바이트/S이므로, 최악압축화상코드부(6-2)를 신장한 이미지데이타의 버퍼메모리(4)로의 전송이 종료될때까지에 요하는 시간(T2)는, 다음과 같이 된다.On the other hand, the transmission of the code data from the worst compressed image code part 6-2 to the compressed extension part 5 is continuously performed as soon as the transfer of the back code part 6-1 to the compressed extension part 5 is completed. All. The decompression of the code extension of the compression extension section 5 and the worst compressed image code section 6-2 starts from the same point as when the image recording section 2 started reading from the buffer memory 4. Since the transfer rate is PX bytes / S, the time T 2 required until the transfer of the image data in which the worst compressed image code section 6-2 is extended to the buffer memory 4 is completed is as follows. .

……………………………………………………………………(4) … … … … … … … … … … … … … … … … … … … … … … … … … … (4)

화상기록부(2)에서 인쇄하고 있는 인쇄용지에 비인쇄부가 생기지 않도록 하기 위해서는 시간(T1)이 경과되기전에 최악압출화상코드부(6-2)의 코드데이타를 신장하여 끝나게 해둘 필요가 있다. 즉,In order to prevent the non-printing portion from occurring on the printing paper printed by the image recording portion 2, it is necessary to extend and end the code data of the worst-extruded image code portion 6-2 before the time T 1 elapses. In other words,

T1≥T2……………………………………………………………………………(5)T 1 ≥T 2 ... … … … … … … … … … … … … … … … … … … … … … … … … … … … … (5)

의 관계가 성립할 필요가 있다. (5)식에 (3), (4)식을 대입하여, 정리하면 버퍼메모리(4)의 용량(Y)은,The relationship needs to be established. Substituting equations (3) and (4) into equation (5), the capacity (Y) of the buffer memory 4 is

………………………………………………………………(6) … … … … … … … … … … … … … … … … … … … … … … … … (6)

로 산출된다.Is calculated.

즉, K·C·P의 값이 정해진 때에, Y를 (6)식을 만족하는 값으로 해주면, 화상독취부(1), 화상기록부(2)로서 연속동작하는 것을 사용하여도 독취한 이미지데이타의 일부가 소실되거나, 인쇄화상이 중단되는 일이 없어진다.That is, when the value of K, C, P is set, if Y is set to a value satisfying Eq. (6), the image data read out even by using the continuous operation as the image reading section 1 and the image recording section 2 is used. Part of the image is lost or the printed image is not interrupted.

가령, C=1M 바이트, P=0.8, K=1/4.5로 하면 Y≥1M/18 바이트로 된다. 만일, 제 9 도의 종래예와 같이, 코드기억부(6)의 원고 1페이지분의 코드데이타를 모두 이미지데이타로 변환된 것을 일단 페이지메모리(16)로 저장하는 경우에는 A3판, 4000dpi로 약 4M 바이트 필요하나, 그것에 비하여, 본 발명의 버퍼메모리(4)의 용량 1M/18 바이트의 값은, 매우 적다.For example, if C = 1M bytes, P = 0.8, K = 1 / 4.5, then Y≥1M / 18 bytes. If, as in the conventional example of FIG. 9, the code data for one page of the original code memory 6 has been converted into image data, and stored in the page memory 16, it is about 4M in A3 size and 4000 dpi. Bytes are required, but the value of the capacity 1M / 18 bytes of the buffer memory 4 of the present invention is very small.

제 6 도는 축소회로가 추가되어 있는 경우의 프린트경로를 나타낸 도면이다. 축소회로(23)은, 화상독취부(1)에서 독취하려고 하고 있는 원고의 용지사이즈가 인쇄용지의 사이즈보다 클때에, 인쇄용지의 사이즈에 맞도록 축소시키기 위한 회로이다. 축소는 단순한 방법을 예를 들으면, 데이타를 일부 솎아냄으로써 행해진다.6 is a diagram showing a print path when a reduction circuit is added. The reduction circuit 23 is a circuit for reducing the size of the original to be read by the image reading unit 1 so as to match the size of the printing paper when the paper size of the document to be read is larger than that of the printing paper. The reduction is done by, for example, stripping out some of the data, using a simple method.

솎아내기가 행해지므로, 이미지데이타를 버퍼메모리(4)에 공급하는 속도는, 축소회로(23)가 사이에 삽입되어 있지 않는 경우에 비해서 늦어진다. 공급속도가 늦어지면, 버퍼메모리(4)가 앰프티로 되기 쉬우므로, 상기한 C, n, P등의 값과 같다고 하면, 당초에 많은 이미지데이타를 수용해두도록, 버퍼메모리(4)의 용량의 다소 크게해 두어야 한다.Since the thinning is performed, the speed at which the image data is supplied to the buffer memory 4 is slower than when the reduction circuit 23 is not inserted in between. If the supply speed is slow, the buffer memory 4 tends to be an amp. Therefore, if the same value as C, n, P, etc., the capacity of the buffer memory 4 is to be accommodated at first. Should be somewhat larger.

또, 상기한 예에서는, 화상독취부(1)도 화상기록부(2)도 연속동작하는 것을 사용하는 것으로 했으나, 어느 한쪽이 연속동작하는 것이라도 좋다. 또, 신장동작만을 하는 화상데이타 신장장치에 적용할 수도 있고, 압축동작만을 행하는 화상압축장치에 적용하는 것도 가능하다.In the above example, it is assumed that the image reading unit 1 and the image recording unit 2 operate continuously, but either one may operate continuously. The present invention can also be applied to an image data stretching device that performs only the stretching operation, or can be applied to an image compression device that performs only the compression operation.

이상 설명한 바와같이, 본 발명의 화상데이타 압축신장장치에 의하면, 화상독취부나 화상기록부를 연속적으로 동작하는 것을 사용했다 하여도 페이지 메모리보다 훨씬 적은 용량의 버퍼메모리를 구비하는 것만으로 되므로, 코스트를 내릴 수 있다.As described above, according to the image data compression and expansion device of the present invention, even if the image reading unit or the image recording unit is operated continuously, it is only necessary to provide a buffer memory having a much smaller capacity than the page memory. You can get off.

Claims (1)

이미지데이타를 연속적으로 입/출력하는 화상독취부(1) 및 화상기록부(2)와, 이미지데이타를 연속적으로 입/출력 제어하는 화상데이타 입력제어회로(19) 및 화상데이타 출력제어회로(20)와, 상기 이미지데이타를 저장하는 버퍼메모리(4)와, 상기 버퍼메모리(4)의 이미지데이타를 입/출력하는 버퍼메모리 제어회로(3)와, 상기 버퍼메모리에서 출력된 이미지데이타를 코드데이타로 부호화하는 압축신장부(5)와, 상기 코드화된 데이타를 기억하는 코드기억부(6)로 구성되는 화상데이타 압축신장장치에 있어서, 상기 버퍼메모리의 용량(Y)은 하기식에 의해 결정하며,An image reading unit (1) and an image recording unit (2) for continuously inputting / outputting image data, an image data input control circuit (19) and an image data output control circuit (20) for controlling input / output of image data continuously And a buffer memory 4 for storing the image data, a buffer memory control circuit 3 for inputting / outputting image data of the buffer memory 4, and image data output from the buffer memory as code data. In the image data compression and expansion device, which comprises a compression expansion unit 5 for encoding and a code storage unit 6 for storing the encoded data, the capacity Y of the buffer memory is determined by the following equation, Y≥kc(1/p-1)Y≥kc (1 / p-1) (상기식에서 c는 코드기억부의 용량, k는 채용하는 부호화 방식에서의 최악압축율, p는 버퍼메모리와 화상기록부 또는 화상독취부 사이의 데이타 전송속도에 대한 압축신장부와 버퍼메모리 사이의 데이타 전송속도의 비임), 상기 버퍼메모리 제어회로는 상기 버퍼메모리(4)의 사용부(4-1)의 라인수를 계수하는 메모리 사용량 카운터(3-1)와, 상기 사용부(4-1)의 라인수가 최소라인수 똔느 최대라인수인지를 판정하는 메모리 사용량 판정회로(3-2)를 포함하는 것이 특징인 화상데이타 압축신장장치.(Where c is the capacity of the code memory unit, k is the worst compression rate in the coding scheme employed, and p is the data transfer rate between the compression extension unit and the buffer memory for the data transfer rate between the buffer memory and the image recording unit or the image reading unit). Is a memory usage counter 3-1 for counting the number of lines of the use section 4-1 of the buffer memory 4, and the lines of the use section 4-1. And a memory usage determining circuit (3-2) for determining whether the number is the minimum number or the maximum number of lines.
KR1019920010814A 1991-06-22 1992-06-22 Image data compressing and decompressing apparatus KR950011196B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP3177515A JPH04373261A (en) 1991-06-22 1991-06-22 Image data compressing and elongating device
JP91-177515 1991-06-22

Publications (2)

Publication Number Publication Date
KR930001742A KR930001742A (en) 1993-01-16
KR950011196B1 true KR950011196B1 (en) 1995-09-29

Family

ID=16032262

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019920010814A KR950011196B1 (en) 1991-06-22 1992-06-22 Image data compressing and decompressing apparatus

Country Status (2)

Country Link
JP (1) JPH04373261A (en)
KR (1) KR950011196B1 (en)

Also Published As

Publication number Publication date
JPH04373261A (en) 1992-12-25
KR930001742A (en) 1993-01-16

Similar Documents

Publication Publication Date Title
US5710638A (en) Image processing system with a buffer memory
JPS6118264A (en) Picture processor
CN102035968A (en) Image processing apparatus, control method therefor and program
EP0488274B1 (en) Method and apparatus for decoding and printing coded images
JPS6242551B2 (en)
US8126295B2 (en) Image processing apparatus and method of using the same
KR950011196B1 (en) Image data compressing and decompressing apparatus
US5008949A (en) Image processing system
JP3619025B2 (en) Encoding method and encoding apparatus
GB2148560A (en) Image processing system
KR950009644B1 (en) Management report printing method of facsimile
JP3478560B2 (en) Facsimile apparatus and control method of facsimile apparatus
JPS59223057A (en) Image processing device
JPH09219782A (en) Printing data generating device
JP2007060261A (en) Image formation apparatus
JP2825002B2 (en) Facsimile apparatus and data transfer method thereof
JPH0832814A (en) Facsimile equipment
JP4214678B2 (en) Document image reading device
JP3279327B2 (en) Image processing method
JP2003087474A (en) Image communication equipment
JP2869104B2 (en) Facsimile machine with storage function
JP3075871B2 (en) Facsimile machine
JP2941836B2 (en) Image processing device
JP3266773B2 (en) Facsimile apparatus and facsimile transmission method
JPH05328104A (en) Facsimile equipment

Legal Events

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

Payment date: 20010920

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee