TWI466453B - Digital data compression / decompression method and its system - Google Patents

Digital data compression / decompression method and its system Download PDF

Info

Publication number
TWI466453B
TWI466453B TW099137208A TW99137208A TWI466453B TW I466453 B TWI466453 B TW I466453B TW 099137208 A TW099137208 A TW 099137208A TW 99137208 A TW99137208 A TW 99137208A TW I466453 B TWI466453 B TW I466453B
Authority
TW
Taiwan
Prior art keywords
compressed
identification code
table unit
code table
cross
Prior art date
Application number
TW099137208A
Other languages
Chinese (zh)
Other versions
TW201218647A (en
Inventor
Yung Chao Chih
Original Assignee
Yung Chao Chih
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 Yung Chao Chih filed Critical Yung Chao Chih
Priority to TW099137208A priority Critical patent/TWI466453B/en
Publication of TW201218647A publication Critical patent/TW201218647A/en
Application granted granted Critical
Publication of TWI466453B publication Critical patent/TWI466453B/en

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

數位資料壓縮/解壓縮方法及其系統Digital data compression/decompression method and system thereof

本發明係關於一種數位資料壓縮/解壓縮方法及其系統,更特別是當進行數位資料壓縮時可同時提供非失真資料壓縮與高資料壓縮比的壓縮方法與系統。The present invention relates to a digital data compression/decompression method and system thereof, and more particularly to a compression method and system capable of simultaneously providing non-distortion data compression and high data compression ratio when performing digital data compression.

習知技術中,數位資料(Digital Data)壓縮技術區分成兩大類,第一類係無失真壓縮技術,而第二類係失真壓縮技術。其中,無失真壓縮的技術的特色係可完整地還原至原始資料,也因有此特性,故其資料壓縮比相較失真壓縮技術係有較低的問題,無法達成高資料壓縮比的需求,此類無失真壓縮技術的代表有:通訊資料壓縮技術(ITU-T V.42bis)、檔案類壓縮技術(LZ78、LZW、ZIP、RAR);而失真壓縮技術係可輕易達成高資料壓縮比的需求,然而該失真技術卻有無法還原成原始資料的問題,此類失真壓縮技術的代表有:影像類壓縮技術(GIF、PNG、CALIC、JPEG)等影像及音效資料壓縮技術(MP3、JPEG)。In the prior art, the digital data compression technology is divided into two categories, the first type is a distortion-free compression technology, and the second type is a distortion compression technology. Among them, the characteristics of the technology without distortion compression can be completely restored to the original data, and because of this characteristic, the data compression ratio has lower problems than the distortion compression technology, and the demand for high data compression ratio cannot be achieved. Representatives of such distortion-free compression technologies are: communication data compression technology (ITU-T V.42bis), file-based compression technology (LZ78, LZW, ZIP, RAR); and distortion compression technology can easily achieve high data compression ratio. Demand, however, the distortion technology has the problem of not being able to restore the original data. Such distortion compression technology is represented by image compression technology (GIF, PNG, CALIC, JPEG) and other audio and video data compression technologies (MP3, JPEG). .

故有賴提供一種資料壓縮技術,係可同時具有非失真資料壓縮與高資料壓縮比,使得可大幅地有效提高壓縮的品質。Therefore, it is necessary to provide a data compression technology, which can simultaneously have non-distortion data compression and high data compression ratio, so that the compression quality can be greatly improved.

本發明之一目的係提供一種數位資料壓縮/解壓縮系 統,係提供數位位址用以達到非失真資料壓縮與高資料壓縮比的目的。One object of the present invention is to provide a digital data compression/decompression system. The system provides digital addresses for non-distortion data compression and high data compression ratio.

本發明之另一目的係提供一種數位資料壓縮/解壓縮方法,係用以達到壓縮與解壓縮數位資料的目的。Another object of the present invention is to provide a digital data compression/decompression method for the purpose of compressing and decompressing digital data.

為達上述目的或其它目的,本發明係提供一種數位資料壓縮/解壓縮系統,係用以壓縮具有M位元位址之數位資料,其包含壓縮辨識碼產生單元(Compressed iDentify Code Generator;CDCG)、壓縮辨識碼表單元(Compressed iDentify Code Table;CDCT)、壓縮交叉驗證碼表單元(Compressed Cross Code Generator;CCCT)、位址檢驗單元(Address Check Unit;ACU)、位址內容讀取/解壓縮單元(Address Read Unit;ARU)與位址壓縮單元(Address Squeeze Unit;ASEU)。該壓縮辨識碼產生單元係接收數位位址,且該壓縮辨識碼產生單元係根據該數位位址產生2M 筆不重複的壓縮辨識碼;該壓縮辨識碼表單元係具有N2 個欄位,用以儲存2M 筆該壓縮辨識碼中相同欄位的一累加結果;以及,該壓縮交叉驗證碼表單元係由K2 筆的壓縮交叉驗證碼所組成,該壓縮交叉驗證碼係根據該數位位址產生之壓縮辨識碼中任一欄位與其它欄位的一比較結果而產生,其中該等壓縮交叉驗證碼分別地具有L2 個欄位。To achieve the above or other objects, the present invention provides a digital data compression/decompression system for compressing digital data having an M-bit address, which includes a Compressed iDentify Code Generator (CDCG). Compressed iDentify Code Table (CDCT), Compressed Cross Code Generator (CCCT), Address Check Unit (ACU), address content read/uncompress Address Read Unit (ARU) and Address Squeeze Unit (ASEU). The compressed identification code generating unit receives the digital address, and the compressed identification code generating unit generates a 2 M pen non-repetitive compressed identification code according to the digital address; the compressed identification code table unit has N 2 fields. for storing 2 M strokes of the compression a summing result identification code in the same column; and the compressed cross-validation code table cell lines by the K 2 pen compression cross-validation code consisting of the compressed cross-validation code based the number of bits in accordance with A comparison result of any field in the compressed identification code generated by the address and other fields is generated, wherein the compressed cross-validation codes respectively have L 2 fields.

為達上述目的或其它目的,本發明係提供一種數位資料壓縮/解壓縮方法,係用以壓縮/解壓縮具有M位元之數位資料,其方法包含:接收一數位位址用以產生2M 筆不重複且具M2 個欄位資料長度的壓縮辨識碼;累加該壓縮辨識碼中相同欄位以獲得一累加結果並儲存至具有N2 個欄位的該壓縮辨識碼表單元;以及,比較該數位位址產生之壓縮辨識碼中任一欄位與其它欄位以獲得一比較結果並儲存至具有L2 個欄位的該壓縮交叉驗證碼表單元,其中該任一欄位與其它欄位的彼此之間係僅只比較一次。To achieve the above or other objects, the present invention provides a digital data compression/decompression method for compressing/decompressing digital data having M bits, the method comprising: receiving a digital address for generating 2 M a compressed identification code that does not repeat the pen and has a length of M 2 field data; accumulates the same field in the compressed identification code to obtain an accumulated result and stores the compressed identification code table unit having N 2 fields; and Comparing any field in the compressed identification code generated by the digital address with other fields to obtain a comparison result and storing the compressed cross-validation code table unit with L 2 fields, wherein the other field and other The fields are only compared once each other.

亦即,若兩者之內容係同時都存在大於0之數值時,則於該壓縮交叉驗證碼單元中所對應的該欄位中填入數值1,以形成該壓縮交叉驗證碼,並累加儲存於對應的壓縮交叉驗證碼表單元中相對應之欄位;該位址檢驗單元係接收壓縮辨識碼、壓縮交叉驗證碼與壓縮辨識碼表單元及壓縮交叉驗證碼單元表驗證判斷壓縮辨識碼、壓縮交叉驗證碼是否已經儲存於壓縮辨識碼表單元及壓縮交叉驗證碼表單元。That is, if both contents have a value greater than 0 at the same time, the field corresponding to the field in the compressed cross-validation code unit is filled with a value of 1 to form the compressed cross-validation code, and is accumulated and stored. a corresponding field in the corresponding compressed cross-validation code table unit; the address verification unit receives the compression identification code, the compressed cross-validation code and the compressed identification code table unit, and the compressed cross-validation code unit table to verify and determine the compression identification code, Whether the compressed cross-validation code has been stored in the compressed identification code table unit and the compressed cross-validation code table unit.

該位址內容讀取/解壓縮單元係接收位址檢驗單元驗證判斷後得知壓縮辨識碼、壓縮交叉驗證碼已經儲存於壓縮辨識碼表單元及壓縮交叉驗證碼表單元,表示該數位資料解壓縮後之原始資料為1、反之不存在表示該數位資料解壓縮後之原始資料為0。The address content reading/decompression unit receives the address verification unit and determines that the compressed identification code and the compressed cross-validation code have been stored in the compressed identification code table unit and the compressed cross-validation code table unit, indicating that the digital data solution is The compressed original data is 1, and vice versa, the original data after decompressing the digital data is 0.

該位址壓縮單元係接收位址檢驗單元驗證判斷後得知壓縮辨識碼與壓縮交叉驗證碼係已儲存於壓縮辨識碼表單元及壓縮交叉驗證碼表單元,將壓縮辨識碼表單元減去壓縮辨識碼同時壓縮交叉驗證碼表單元減去壓縮交叉驗證碼即可完成該數位資料壓縮及變更資料的動作。The address compression unit receives the address verification unit and determines that the compressed identification code and the compressed cross-validation code are stored in the compressed identification code table unit and the compressed cross-validation code table unit, and the compressed identification code table unit is decompressed and compressed. The identification code compresses the cross-validation code table unit and subtracts the compressed cross-validation code to complete the compression and change of the data.

換言之,經上述壓縮方式而完成壓縮的該數位資料,可再藉由該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元相減經壓縮的該數位資料位址所轉換之該壓縮辨識碼與該壓縮交叉驗證碼並儲存於該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元,用以達成進行該數位資料的壓縮或變更壓縮資料為0的目的;反之,該數位資料藉由經轉換位址之該壓縮辨識碼與該壓縮交叉驗證碼所彼此相累加所形成之該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元,即可完成該數位資料壓縮的動作,換言之,該數位資料可藉由將該數位資料位址所轉換之該壓縮辨識碼與該壓縮交叉驗證碼累加至該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元並儲存該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元,用以進行達成該數位資料壓縮及變更壓縮資料為1的目的。In other words, the digital data compressed by the compression method can be further converted by the compressed identification code table unit and the compressed cross-check code table unit by the compressed digital data address. The compressed cross-validation code is stored in the compressed identification code table unit and the compressed cross-validation code table unit for achieving the purpose of compressing or changing the compressed data to 0; otherwise, the digital data is converted The compressed identification code table unit and the compressed cross-validation code table unit formed by accumulating the compressed identification code of the address and the compressed cross-validation code are completed, thereby completing the digital data compression operation, in other words, the digital data And accumulating the compressed identification code converted by the digital data address and the compressed cross-check code to the compressed identification code table unit and the compressed cross-check code table unit and storing the compressed identification code table unit and the compressed cross The verification code table unit is used for the purpose of achieving the compression of the digital data and changing the compressed data to 1.

此外,於另一實施例中,該位址壓縮單元係可根據其壓縮動作中對於該壓縮辨識碼表單元、該壓縮交叉驗證碼表單元、該壓縮辨識碼與該壓縮交叉驗證碼之間儲存/刪除的動作,亦可定義該位址壓縮單元為壓縮資料儲存/刪除單元,就實質而言,兩者定義相同。In addition, in another embodiment, the address compression unit may store between the compressed identification code table unit, the compressed cross-validation code table unit, the compressed identification code, and the compressed cross-check code according to a compression action thereof. The action of deleting/deleting may also define that the address compression unit is a compressed data storage/deletion unit, and in essence, the two definitions are the same.

與習知技術相較,本發明係將數位位址轉換成絕對不重複的壓縮辨識碼,並藉由該壓縮辨識碼產生壓縮交叉驗證碼,並分別地累加儲存至對應的壓縮辨識碼表單元與壓縮交叉驗證碼表單元中,用以提供該數位資料進行壓縮的動作;反之,藉由與該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元的比較,可進行壓縮資料的解壓縮動作,故本發明相較習知的技術係可大量的減少儲存已壓縮該數位資料的空間,故可用以達成非失真資料壓縮與高資料壓縮比的壓縮系統與方法。Compared with the prior art, the present invention converts a digital address into an absolute non-repetitive compressed identification code, and generates a compressed cross-validation code by the compressed identification code, and separately accumulates and stores them to a corresponding compressed identification code table unit. And compressing the cross-validation code table unit to provide the digital data for compression; conversely, by comparing the compressed identification code table unit with the compressed cross-validation code table unit, the compressed data can be decompressed Therefore, the present invention can reduce the space for storing the digital data by a large amount of comparison with the prior art, so that the compression system and method for achieving non-distortion data compression and high data compression ratio can be achieved.

為充分瞭解本發明之目的、特徵及功效,茲藉由下述具體之實施例,並配合所附之圖式,對本發明做一詳細說明,說明如後:參考第1圖,係本發明實施例之數位資料壓縮/解壓縮系統之示意圖。於本實施例中,提供一種數位資料壓縮/解壓縮系統10,係用以壓縮具有M位元位址之數位資料DD,其包含壓縮辨識碼產生單元12(CDCG)、壓縮辨識碼表單元14(CDCT)、壓縮交叉驗證碼表單元16(CCCT)、位址檢驗單元18(ACU)、位址內容讀取/解壓縮單元20(ARU)與位址壓縮單元22(ASEU)。其中,該壓縮辨識碼產生單元12係接收該數位位址DA且產生對應的複數壓縮辨識碼CDC與複數壓縮交叉驗證碼CCC。此外,該壓縮辨識碼產生單元12進一步包含壓縮辨識碼單元122與壓縮交叉驗證碼單元124,其用以分別地產生該等壓縮辨識碼CDC與該等壓縮交叉驗證碼CCC。In order to fully understand the objects, features and advantages of the present invention, the present invention will be described in detail with reference to the accompanying drawings. A schematic diagram of a digital data compression/decompression system. In this embodiment, a digital data compression/decompression system 10 is provided for compressing a digital data DD having an M-bit address, which includes a compressed identification code generating unit 12 (CDCG) and a compressed identification code table unit 14. (CDCT), Compressed Cross-Validation Code Table Unit 16 (CCCT), Address Check Unit 18 (ACU), Address Content Read/Decompress Unit 20 (ARU) and Address Compression Unit 22 (ASEU). The compressed identification code generating unit 12 receives the digital address address DA and generates a corresponding complex compressed identification code CDC and a complex compressed cross-check code CCC. In addition, the compressed identification code generating unit 12 further includes a compressed identification code unit 122 and a compressed cross-checking code unit 124 for respectively generating the compressed identification code CDC and the compressed cross-check code CCC.

該壓縮辨識碼單元122係具有M2 個欄位,且該數位位址DA係透過壓縮辨識碼產生單元12之該壓縮辨識碼單元122產生具有2M 筆絕對不重複的壓縮辨識碼CDC,如第2圖所示。The compressed identification code unit 122 has M 2 fields, and the digital address DA transmits the compressed identification code CDC having the 2 M pen absolute non-repetition through the compressed identification code unit 122 of the compressed identification code generating unit 12, such as Figure 2 shows.

壓縮交叉驗證碼單元124係具有L2 個欄位,且根據該壓縮辨識碼CDC相對應欄位之內容同時都有存在大於0之數值時,於該壓縮交叉證碼單元124中所對應的該欄位中儲存1,用以形成該壓縮交叉驗證碼CCC,如第3圖所示。舉例而言,該壓縮交叉驗證碼C00-01 係表示判斷該壓縮交叉驗證碼單元124中欄位0-0與0-1,若該等欄位同時存在大於0之數值時,於該壓縮交叉驗證碼單元124之欄位C00 的0-1欄位內的值加1;壓縮交叉驗證碼C00-0M 係表示該壓縮交叉驗證碼單元124中欄位0-0和0-M,若該等欄位同時存在大於0之數值時,於該壓縮交叉驗證碼單元124之C00 的0-M欄位內的值加1,依此規則類推,則壓縮交叉驗證碼CMM-M(M-1) 係表示該壓縮交叉驗證碼單元124之欄位MM和M(M-1)同時存在大於0之數值時,則於該壓縮交叉驗證碼單元124之CMM 的MM欄位內的值加1,用以形成該壓縮交叉驗證碼CCC。The compressed cross-validation code unit 124 has L 2 fields, and according to the content of the corresponding field of the compressed identification code CDC, when there is a value greater than 0, the corresponding corresponding to the compressed cross-code unit 124 A 1 is stored in the field to form the compressed cross-validation code CCC, as shown in FIG. For example, the compressed cross-validation code C 00-01 indicates that the fields 0-0 and 0-1 in the compressed cross-validation code unit 124 are determined. If the fields have values greater than 0, the compression is performed. The value in the field 0-1 of the field C 00 of the cross-validation code unit 124 is incremented by one; the compressed cross-validation code C 00-0M indicates the fields 0-0 and 0-M in the compressed cross-validation code unit 124, If there is a value greater than 0 in the fields, the value in the 0-M field of C 00 of the compressed cross-validation code unit 124 is incremented by 1. According to this rule, the cross-check code C MM-M is compressed. (M-1) indicates that when the fields MM and M(M-1) of the compressed cross-validation code unit 124 have a value greater than 0, the MM field of the C MM of the compressed cross-validation code unit 124 is The value of 1 is added to form the compressed cross-validation code CCC.

該壓縮辨識碼表單元14係提供具有N2 個欄位係用以儲存相同欄位之壓縮辨識碼CDC的累加結果。換言之,將該數位位址DA產生之該等壓縮辨識碼CDC之同一欄位中的內容累加至該壓縮辨識碼表單元14所對應之欄位中,例如該內容累加方式,係如下方程式所示,且該內容累加係儲存至該壓縮辨識碼表單元14中所對應的相同欄位中,如第4圖所示:The compressed identification code table unit 14 provides an accumulated result of the compressed identification code CDC having N 2 fields for storing the same field. In other words, the content in the same field of the compressed identification code CDC generated by the digital address DA is added to the field corresponding to the compressed identification code table unit 14, for example, the content accumulation mode is as shown in the following equation. And the content accumulation is stored in the same field corresponding to the compressed identification code table unit 14, as shown in FIG. 4:

I00 =A0 (0,0)+A1 (0,0)+A2 (0,0)+...+A2 M-1 (0,0)+A2 M (0,0);I 00 =A 0 (0,0)+A 1 (0,0)+A 2 (0,0)+...+A 2 M-1 (0,0)+A 2 M (0,0) ;

I01 =A0 (0,1)+A1 (0,1)+A2 (0,1)+...+A2 M-1 (0,1)+A2 M (0,1);I 01 =A 0 (0,1)+A 1 (0,1)+A 2 (0,1)+...+A 2 M-1 (0,1)+A 2 M (0,1) ;

..

..

..

IMM =A0 (M,M)+A1 (M,M)+A2 (M,M)+...+A2 M-1 (M,M)+A2 M (M,M)。I MM =A 0 (M,M)+A 1 (M,M)+A 2 (M,M)+...+A 2 M-1 (M,M)+A 2 M (M,M) .

此外,該壓縮交叉驗證碼表單元16係由具有K2 筆壓縮交叉驗證碼CCC所組成,亦即,該壓縮交叉驗證碼CCC係根據該壓縮辨識碼CDC中任一欄位與其它欄位的一比較結果產生。In addition, the compressed cross-validation code table unit 16 is composed of a K 2 pen compression cross-validation code CCC, that is, the compressed cross-validation code CCC is based on any field in the compressed identification code CDC and other fields. A comparison result is produced.

該位址檢驗單元18,係比較該壓縮辨識碼CDC、該壓縮交叉驗證碼CCC、該壓縮辨識碼表單元14、壓縮交叉驗證碼表單元16,用以判斷該數位位址DA是否壓縮於該壓縮辨識碼表單元14與壓縮交叉驗證碼表單元16。換言之,當要判斷該數位位址DA是否已壓縮於該壓縮辨識碼表單元14與壓縮交叉驗證碼表單元16時;首先,把該壓縮辨識碼表單元14與壓縮交叉驗證碼表單元16內的值分別地減去該壓縮辨識碼CDC與該壓縮交叉驗證碼CCC,並根據比較相減的結果,判斷該數位位址DA是否壓縮於該壓縮辨識碼表單元14與壓縮交叉驗證碼表單元16,亦即是否正確或錯誤,例如當比較相減後的壓縮辨識碼表單元14與壓縮交叉驗證碼表單元16無法相互驗證關聯,亦即表示該壓縮辨識碼CDC與該壓縮交叉驗證碼CCC判斷為錯誤,其進一步表示該數位位址DA所對應之數位資料DD內容係為0,其並未壓縮於該壓縮辨識碼表單元14、壓縮交叉驗證碼表單元16內;反之,當比較相減後的壓縮辨識碼表單元14與壓縮交叉驗證碼表單元16可相互驗證關聯,亦即表示該壓縮辨識碼CDC與該壓縮交叉驗證碼CCC判斷為正確,其進一步表示該數位位址DA所對應之該數位資料DD內容係為1,其係已壓縮於該壓縮辨識碼表單元14與壓縮交叉驗證碼表單元16內。The address verification unit 18 compares the compressed identification code CDC, the compressed cross-check code CCC, the compressed identification code table unit 14, and the compressed cross-validation code table unit 16 to determine whether the digital address DA is compressed. The identification code table unit 14 and the compressed cross-validation code table unit 16 are compressed. In other words, when it is determined whether the digital address address DA has been compressed in the compressed identification code table unit 14 and the compressed cross-validation code table unit 16, first, the compressed identification code table unit 14 and the compressed cross-validation code table unit 16 are The value of the compression identification code CDC and the compressed cross-validation code CCC are respectively subtracted, and based on the result of the comparison subtraction, it is determined whether the digital address address DA is compressed in the compressed identification code table unit 14 and the compressed cross-validation code table unit. 16, that is, whether it is correct or incorrect, for example, when the comparison subtracted compressed identification code table unit 14 and the compressed cross-validation code table unit 16 cannot mutually verify the association, that is, the compressed identification code CDC and the compressed cross-validation code CCC are indicated. If the error is determined, it further indicates that the digital data DD corresponding to the digital address DA is 0, which is not compressed in the compressed identification code table unit 14 and the compressed cross-validation code table unit 16; The reduced compression identification code table unit 14 and the compressed cross-validation code table unit 16 can mutually verify the association, that is, the compressed identification code CDC and the compressed cross-validation code CCC are determined as Indeed, further indicating that the digit address DA corresponds to the digital data DD of the contents of line 1, in which the compressed compression based cross-validation code table unit 1614 within the compression unit identification code table.

該位址內容讀取/解壓縮單元20係判斷來自該位址檢驗單元18結果,當位址檢驗單元18輸出結果係為正確時,該位址內容讀取/解壓縮單元20輸出的值為1;反之,當該位址檢驗單元18輸出結果係為錯誤時,該位址內容讀取/解壓縮單元20輸出的值為0。The address content reading/decompressing unit 20 judges the result from the address verifying unit 18, and when the output result of the address verifying unit 18 is correct, the value output by the address content reading/decompressing unit 20 is 1; conversely, when the output result of the address verifying unit 18 is an error, the value output by the address content reading/decompressing unit 20 is 0.

該位址壓縮單元22係除提供將該壓縮辨識碼CDC及該壓縮交叉驗證碼CCC分別地與壓縮辨識碼表單元14及壓縮交叉驗證碼表單元16內欄位的值相加,用以達成該數位位址DA之該數位資料DD為1的資料壓縮目的,如第5圖所示;於另外一方面,該位址壓縮單元22係提供將該壓縮辨識碼CDC與該壓縮交叉驗證碼CCC分別地與壓縮辨識碼表單元14與壓縮交叉驗證碼表單元16內欄位的值相減,用以達成該數位位址DA之該數位資料DD為0的資料壓縮目的,如第6圖所示。The address compression unit 22 adds the value of the compressed identification code CDC and the compressed cross-validation code CCC to the fields in the compressed identification code table unit 14 and the compressed cross-check code table unit 16, respectively, to achieve The digital data DD of the digital address DA is 1 for data compression purposes, as shown in FIG. 5; in another aspect, the address compression unit 22 provides the compressed identification code CDC and the compressed cross-validation code CCC. And subtracting the values of the fields in the compressed identification code table unit 14 and the compressed cross-validation code table unit 16 respectively, to achieve the data compression purpose of the digital address DA of the digital address DA being 0, as shown in FIG. Show.

參考第7圖,係本發明實施例之數位資料壓縮/解壓縮方法之流程圖。於本實施例中,數位資料壓縮/解壓縮方法係用以壓縮/解壓縮具有M位元位址之數位資料,其方法係起始於步驟S1,其係透過壓縮辨識碼產生單元接收該數位位址,並產生2M 筆絕對不重複的M2 個欄位的資料長度的壓縮辨識碼與L2 個欄位壓縮交叉驗證碼,其中藉由該壓縮辨識碼與壓縮交叉驗證碼之間欄位的累加,用以將累加的結果存放至該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元中。Referring to FIG. 7, a flowchart of a digital data compression/decompression method according to an embodiment of the present invention is shown. In this embodiment, the digital data compression/decompression method is used to compress/decompress digital data having an M-bit address, and the method starts in step S1, and the digital data is received by the compressed identification code generating unit. Address, and generate a 2 M pen absolute non-repetitive M 2 field data length compression identification code and L 2 field compression cross-validation code, wherein the column between the compression identification code and the compression cross-check code The accumulation of bits is used to store the accumulated results into the compressed identification code table unit and the compressed cross-validation code table unit.

接著步驟S2,該壓縮辨識碼、該壓縮交叉驗證碼、壓縮辨識碼表單元內欄位的值與壓縮交叉驗證碼表單元內欄位的值係透過位址檢驗單元驗證比對後,比對判斷出該壓縮辨識碼與壓縮交叉驗證碼是否已經儲存於該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元,用以產生比對結果,而根據該比對結果用以分別地進行解壓縮流程與壓縮流程。再者,上述中該比對判斷係分別地根據(i)該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內欄位的值經比對之後是否為大於0、等於0或小於0,以及(ii)係該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元之內容是否互相匹配,用以獲得對應的比對結果,而其中該匹配的定義係於後詳細說明。Next, in step S2, the compression identification code, the compressed cross-validation code, the value of the field in the compressed identification code table unit, and the value of the field in the compressed cross-validation code table unit are verified by the address verification unit, and then compared. Determining whether the compressed identification code and the compressed cross-validation code have been stored in the compressed identification code table unit and the compressed cross-check code table unit for generating a comparison result, and respectively decompressing according to the comparison result Process and compression process. Furthermore, the comparison determination is performed according to whether (i) the compressed identification code table unit and the value of the field in the compressed cross-validation code table unit are greater than 0, equal to 0 or less than 0, respectively. And (ii) whether the content of the compressed identification code table unit and the compressed cross-validation code table unit match each other to obtain a corresponding comparison result, wherein the definition of the matching is described in detail later.

於步驟S3中係為解壓縮流程,其係延續該步驟S2的比對,亦即當該比對結果係當該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內欄位的值經比對之後大於或等於0與該壓縮辨識碼表與該壓縮交叉驗證碼表單元之內容互相匹配兩者同時成立時,則該比對結果係表示為“正確”,並接著將該數位位址內容定義為1;反之,當該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內欄位的值比對之後係小於0與該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元之內容互相不匹配之至少其一成立時,則該比對結果係表示為“錯誤”,其係將該數位位址內容定義為0。In step S3, it is a decompression process, which is a continuation of the comparison of the step S2, that is, when the comparison result is compared with the value of the field in the compressed identification code table unit and the compressed cross-check code table unit. When the greater than or equal to 0 and the content of the compressed identification code table and the compressed cross-validation code table unit are mutually matched, the comparison result is expressed as "correct", and then the digital address content is Defined as 1; conversely, when the compressed identification code table unit is compared with the value of the field in the compressed cross-validation code table unit, it is less than 0 and the contents of the compressed identification code table unit and the compressed cross-validation code table unit are mutually When at least one of the mismatches is established, the comparison result is expressed as "error", which defines the contents of the digit address as 0.

此外,熟悉該項技術領域者應當可以了解到,該數位資料解壓縮的定義係可依照使用者習慣自行定義,亦即該數位資料可相較上述實施例做反向的定義。In addition, those skilled in the art should be able to understand that the definition of the digital data decompression can be defined according to the user's habits, that is, the digital data can be reversed compared with the above embodiments.

於步驟S4中係為壓縮流程,其同樣係延續該步驟S2的比對,亦即當該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內欄位的值經比對之後係大於或等於0與該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元之內容互相匹配兩者同時成立時,則該比對結果係表示為“正確”,並接著接收該數位位址,其中該數位位址係已儲存在該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元以及該數位位址的內容為1,而再根據該數位位址中新的內容為1或0,用以決定是否更新該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元。當該數位位址中新的內容係為1時,係表示該數位位址係已儲存在該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元中,亦即不對該數位位址進行任何動作;亦或者,當該數位位址中新的內容為0時,則將該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內的值減去該壓縮辨識碼或該壓縮交叉驗證碼,用以使得該數位位址中的內容由1更新為0。In step S4, it is a compression process, which is similar to the comparison of the step S2, that is, when the compressed identification code table unit is compared with the value of the field in the compressed cross-validation code table unit, it is greater than or equal to 0 and when the contents of the compressed identification code table unit and the compressed cross-validation code table unit are mutually matched, the comparison result is expressed as "correct", and then the digital address is received, wherein the digital position The address is stored in the compressed identification code table unit and the compressed cross-validation code table unit and the content of the digital address is 1, and then the new content in the digital address is 1 or 0, to determine whether to update The compressed identification code table unit and the compressed cross-validation code table unit. When the new content in the digital address is 1, it indicates that the digital address is stored in the compressed identification code table unit and the compressed cross-check code table unit, that is, no action is performed on the digital address. Or, when the new content in the digital address is 0, the compressed identification code table unit and the compressed cross-check code table unit are subtracted from the compressed identification code or the compressed cross-check code. So that the content in the digit address is updated from 1 to 0.

反之,當該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內欄位的值比對後係小於0與該壓縮辨識碼表與該壓縮交叉驗證碼表單元之內容互相不匹配之至少其一成立時,則該比對結果係表示為“錯誤”,則接著接收該數位位址,其中該數位位址係未儲存在該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元以及該數位位址的內容為0,並且再根據該數位位址中新的內容係為1或0用以決定是否更新該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元。當該數位位址中新的內容為1時,則將該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內的值分別地與該壓縮辨識碼或該壓縮交叉驗證碼相加,用以使得該數位位址中的內容由0更新為1;亦或者,當該數位位址中新的內容為0時,係表示該數位位址未儲存在該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元中,亦即不對該數位位址進行任何動作。Conversely, when the compressed identification code table unit is compared with the value of the field in the compressed cross-check code table unit, the value is less than 0, and the content of the compressed identification code table and the compressed cross-check code table unit does not match at least When it is established, the comparison result is expressed as "error", and then the digital address is received, wherein the digital address is not stored in the compressed identification code table unit and the compressed cross-certification code table unit and the digit The content of the address is 0, and then the new content in the digital address is 1 or 0 to decide whether to update the compressed identification code table unit and the compressed cross-check code table unit. And when the new content in the digital address is 1, the compressed identification code table unit and the compressed cross-check code table unit are respectively added to the compressed identification code or the compressed cross-check code, respectively, for The content in the digital address is updated from 0 to 1; or, when the new content in the digital address is 0, it indicates that the digital address is not stored in the compressed identification code table unit and the compressed cross-validation In the code table unit, that is, no action is performed on the digital address.

換言之,該步驟係表示已透過上述壓縮方式而完成壓縮的該數位資料,可再藉由該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元刪除經壓縮的該數位資料所轉換之該壓縮辨識碼與該壓縮交叉驗證碼,用以達成該壓縮數位資料變更為0的目的;以及,該數位資料可藉由將該數位資料所轉換之該壓縮辨識碼與該壓縮交叉驗證碼累加儲存至該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元,用以達成該壓縮數位資料變更為1的目的。In other words, the step is to indicate the digital data that has been compressed by the compression method, and the compressed identification can be further deleted by the compressed identification code table unit and the compressed cross-check code table unit to delete the compressed digital data. a code and the compressed cross-validation code for achieving the purpose of changing the compressed digital data to 0; and storing the digital identification data by the compressed identification code converted by the digital data and the compressed cross-checking code The compressed identification code table unit and the compressed cross-validation code table unit are used to achieve the purpose of changing the compressed digital data to 1.

值得注意的是,上述所提及該壓縮辨識碼表與該壓縮交叉驗證碼表單元之內容是否互相匹配係於此進一步說明。該相互匹配的定義係基於:It should be noted that whether the content of the compressed identification code table mentioned above and the content of the compressed cross-validation code table unit match each other is further described herein. The definition of this match is based on:

(i)唯一的壓縮辨識碼會產生唯一壓縮交叉驗證碼,且在此唯一的該壓縮辨識碼與該壓縮交叉驗證碼係分別地在各自不同的欄位內存放的資料來表示該數位位址係為唯一的;(i) the unique compressed identification code will generate a unique compressed cross-validation code, and the only one of the compressed identification code and the compressed cross-validation code system respectively stored in different fields indicates the digital address Be unique;

(ii)再經過將該壓縮辨識碼表減去待判斷的壓縮辨識碼,以及該壓縮交叉驗證碼表減去待判斷的壓縮交叉驗證碼;以及(ii) subtracting the compressed identification code to be determined from the compressed identification code table, and subtracting the compressed cross-validation code to be determined from the compressed cross-validation code table;

(iii)藉由產生壓縮交叉驗證碼的規則中,係可記錄壓縮辨識碼內欄位與欄位之間的關聯性,亦即壓縮辨識碼和壓縮交叉驗證碼之間係具有唯一的關聯模式。再者,每一組壓縮辨識碼和壓縮交叉驗證碼之間的關聯模式係根據上述所提及的方式所進行累加而形成的壓縮辨識碼表和壓縮交叉驗證碼表,仍然會繼承或保持互相的關聯性,故當一個不存在的出現在壓縮辨識碼和壓縮驗證碼都會影響這個關聯模式,進而導致關聯模式發生錯誤。(iii) By generating a compressed cross-validation code, the association between the field and the field in the compressed identification code can be recorded, that is, the compression identification code and the compressed cross-validation code have a unique correlation mode. . Furthermore, the association mode between each set of compressed identification code and the compressed cross-validation code is a compressed identification code table and a compressed cross-validation code table formed by accumulating according to the above-mentioned manner, and still inherits or maintains each other. Correlation, so when a non-existent occurrence of the compression identification code and the compression verification code will affect the association mode, resulting in an error in the association mode.

舉例而言,根據壓縮辨識碼表單元產生的方式,若I00 和I08 內同時存在有資料時,係會於壓縮交叉驗證碼表單元C00-08 內累加數值1,而此時具有1的C00-08 之該關聯模式係可定義為C00-08 所對應的該I00 和I08 內係同時存在有資料。For example, according to the manner in which the compressed identification code table unit is generated, if there is data in both I 00 and I 08 , the value 1 is accumulated in the compressed cross-validation code table unit C 00-08 , and has 1 at this time. C-mode lines 00-08 of the association may be defined as C 00-08 corresponding to the I 00 and I 08 exists within the system information simultaneously.

而於另一例子中,若第一壓縮辨識碼中A0 (0,0)、A0 (0,3)、A0 (0,5)與A0 (0,9)內均同時存在有資料時,其所對應轉換之第一壓縮交叉驗證碼中的C00-03 、C00-05 與C00-09 係記錄為1。此時,該第一壓縮辨識碼與該第一壓縮交叉驗證碼係分別地儲存至對應的第一壓縮辨識碼表單元與第一壓縮交叉驗證碼表單元中。再者,若有未儲存於上述該第一壓縮辨識碼表單元與該第一壓縮交叉驗證碼表單元內的第二壓縮辨識碼輸入且該第二壓縮辨識碼係僅於A0 (0,0)、A0 (0,3)與A0 (0,9)內存在有資料時,係同樣於對應第二壓縮交叉驗證碼內C00-03 與C00-09 記錄為1,當進行判斷時,將該第一壓縮辨識碼表單元(A0 (0,0)、A0 (0,3)、A0 (0,5)與A0 (0,9))與該第一壓縮交叉驗證碼表單元(C00-03 、C00-05 與C00-09 )分別地減去該第二壓縮辨識碼(A0 (0,0)、A0 (0,3)與A0 (0,9))與該第二壓縮交叉驗證碼(C00-03 與C00-09 ),則會造成原先以儲存之第一壓縮辨識碼與該第一壓縮交叉驗證碼產生對原有關聯模式的錯誤,該錯誤係由於在相減的過程中由於該第一壓縮辨識碼與該第二壓縮辨識碼相減時,僅剩下A0 (0,5),但卻對應於C00-05 的第一壓縮交叉驗證碼,兩者結果明顯已破壞原有之關聯模式,而導致不匹配;反之,若該第二壓縮辨識碼係與該第一壓縮辨識碼相同,其具有維持原有之該關聯模式,則可判斷該壓縮辨識碼表與該壓縮交叉驗證碼表單元之內容互相匹配。此外,上述中所提及之該M、N、K、L係為整數,且係可為相同之整數。In another example, if A 0 (0, 0), A 0 (0, 3), A 0 ( 0 , 5), and A 0 ( 0, 9 ) are both present in the first compression identification code, In the case of data, C 00-03 , C 00-05 and C 00-09 in the first compressed cross-validation code corresponding to the conversion are recorded as 1. At this time, the first compressed identification code and the first compressed cross-validation code are respectively stored in the corresponding first compressed identification code table unit and the first compressed cross-check code table unit. Furthermore, if there is a second compressed identification code input that is not stored in the first compressed identification code table unit and the first compressed cross-check code table unit, and the second compressed identification code is only A 0 (0, 0), A 0 (0,3) and A 0 (0,9) When there is data in the memory, the same is recorded in the corresponding second compressed cross-validation code C 00-03 and C 00-09 as 1 when performing When judging, the first compressed identification code table unit (A 0 (0,0), A 0 (0,3), A 0 (0,5) and A 0 (0,9)) and the first compression The cross-validation code table unit (C 00-03 , C 00-05 and C 00-09 ) subtracts the second compression identification code (A 0 (0,0), A 0 (0,3) and A 0 respectively) (0,9)) and the second compressed cross-validation code (C 00-03 and C 00-09 ), which will result in the original first compressed identification code stored and the first compressed cross-check code being generated. The error of the association mode, which is due to the fact that only A 0 ( 0 , 5) remains when the first compression identification code is subtracted from the second compression identification code in the subtraction process, but corresponds to C 00 -05 cross the first compression codes, both results clearly associated with the corrupted original mode, resulting in no match; , The identification code if the second compression system and the same identification code of the first compression, with the maintenance of the association mode can be judged that the identification code table is compressed with the compression unit cross-validation of the content code table match with each other. Further, the M, N, K, and L mentioned in the above are integers and may be the same integer.

與習知技術相較,本發明係將數位位址轉換成絕對不重複的壓縮辨識碼,並藉由該壓縮辨識碼產生壓縮交叉驗證碼,並分別地累加儲存至對應的壓縮辨識碼表單元與壓縮交叉驗證碼表單元中,用以提供該數位資料進行壓縮的動作;反之,藉由與該壓縮辨識碼表單元與該交叉驗證碼表單元的比較,可進行壓縮資料的解壓縮動作,故本發明相較習知的技術係可大量的減少資料儲存的空間,可以用以達成非失真資料壓縮與高資料壓縮比的壓縮系統與方法。Compared with the prior art, the present invention converts a digital address into an absolute non-repetitive compressed identification code, and generates a compressed cross-validation code by the compressed identification code, and separately accumulates and stores them to a corresponding compressed identification code table unit. And compressing the cross-validation code table unit to provide the digital data for compression; conversely, by comparing the compressed identification code table unit with the cross-validation code table unit, the decompressing action of the compressed data may be performed. Therefore, the present invention can reduce the space for data storage in a large amount, and can be used to achieve a non-distortion data compression and a high data compression ratio compression system and method.

本發明在上文中已以較佳實施例揭露,然熟習本項技術者應理解的是,該實施例僅用於描繪本發明,而不應解讀為限制本發明之範圍。應注意的是,舉凡與該實施例等效之變化與置換,均應設為涵蓋於本發明之範疇內。因此,本發明之保護範圍當以下文之申請專利範圍所界定者為準。The invention has been described above in terms of the preferred embodiments, and it should be understood by those skilled in the art that the present invention is not intended to limit the scope of the invention. It should be noted that variations and permutations equivalent to those of the embodiments are intended to be included within the scope of the present invention. Therefore, the scope of the invention is defined by the scope of the following claims.

12...壓縮辨識碼產生單元12. . . Compressed identification code generating unit

14...壓縮辨識碼表單元14. . . Compressed identification code table unit

16‧‧‧壓縮交叉驗證碼表單元16‧‧‧Compressed cross-validation code table unit

18‧‧‧位址檢驗單元18‧‧‧ address inspection unit

20‧‧‧位址內容讀取/解壓縮單元20‧‧‧Address content reading/decompression unit

22‧‧‧位址壓縮單元22‧‧‧Address compression unit

122‧‧‧壓縮辨識碼單元122‧‧‧Compressed identification code unit

124‧‧‧壓縮交叉驗證碼單元124‧‧‧Compressed cross-validation code unit

DA‧‧‧數位位址DA‧‧‧Digital Address

DD‧‧‧數位資料DD‧‧‧ digital data

CDC‧‧‧壓縮辨識碼CDC‧‧‧Compression Identification Code

CCC‧‧‧壓縮交叉驗證碼CCC‧‧‧Compressed cross-validation code

第1圖係本發明實施例之數位資料壓縮/解壓縮系統之系統方塊示意圖;1 is a block diagram showing a system of a digital data compression/decompression system according to an embodiment of the present invention;

第2圖係本發明實施例之數位資料壓縮/解壓縮系統之壓縮辨識碼示意圖;2 is a schematic diagram of a compression identification code of a digital data compression/decompression system according to an embodiment of the present invention;

第3圖係本發明實施例之數位資料壓縮/解壓縮系統之壓縮交叉驗證碼示意圖;3 is a schematic diagram of a compressed cross-validation code of a digital data compression/decompression system according to an embodiment of the present invention;

第4圖係本發明實施例之數位資料壓縮/解壓縮系統之壓縮辨識碼表單元示意圖;4 is a schematic diagram of a compressed identification code table unit of a digital data compression/decompression system according to an embodiment of the present invention;

第5圖與第6圖係本發明實施例之數位資料壓縮/解壓縮系統之位址壓縮單元動作示意圖;以及5 and 6 are schematic diagrams showing the operation of the address compression unit of the digital data compression/decompression system of the embodiment of the present invention;

第7圖係本發明實施例之數位資料壓縮/解壓縮方法之流程圖。Figure 7 is a flow chart of a digital data compression/decompression method according to an embodiment of the present invention.

10...數位資料壓縮/解壓縮系統10. . . Digital data compression/decompression system

12...壓縮辨識碼產生單元12. . . Compressed identification code generating unit

14...壓縮辨識碼表單元14. . . Compressed identification code table unit

16...壓縮交叉驗證碼表單元16. . . Compressed cross-validation code table unit

18...位址檢驗單元18. . . Address inspection unit

20...位址內容讀取/解壓縮單元20. . . Address content read/uncompress unit

22...位址壓縮單元twenty two. . . Address compression unit

122...壓縮辨識碼單元122. . . Compressed identification code unit

124...壓縮交叉驗證碼單元124. . . Compressed cross-validation code unit

DA...數位位址DA. . . Digital address

DD...數位資料DD. . . Digital data

CDC...壓縮辨識碼CDC. . . Compression identification code

CCC...壓縮交叉驗證碼CCC. . . Compressed cross-validation code

Claims (11)

一種數位資料壓縮/解壓縮系統,係用以壓縮/解壓縮M位元之一數位資料,其包含:一壓縮辨識碼產生單元,係接收一數位位址,且該壓縮辨識碼產生單元係根據該數位位址產生2M 筆不重複的一壓縮辨識碼;一壓縮辨識碼表單元,係具有N2 個欄位,用以儲存2M 筆該壓縮辨識碼中相同欄位的一累加結果;一壓縮交叉驗證碼表單元,係由K2 筆的一壓縮交叉驗證碼所組成,該壓縮交叉驗證碼係根據該壓縮辨識碼中任一欄位與其它欄位的一比較結果產生,其中該等壓縮交叉驗證碼分別地具有L2 個欄位;一位址檢驗單元,係藉由該壓縮辨識碼、該壓縮交叉驗證碼、壓縮辨識碼表單元與壓縮交叉驗證碼表單元,用以判斷該數位位址是否壓縮於該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元;一位址內容讀取/解壓縮單元,係根據該位址檢驗單元的判斷結果對應地輸出一值;以及一位址壓縮單元,係根據該位址檢驗單元的該判斷結果對應地提供將該壓縮辨識碼及該壓縮交叉驗證碼分別地與壓縮辨識碼表單元及壓縮交叉驗證碼表單元內欄位的值相加,或提供將該壓縮辨識碼與該壓縮交叉驗證碼分別地與壓縮辨識碼表單元與壓縮交叉驗證碼表單元內欄位的值相減,用以完成該數位位址之該數位資料的資料壓 縮。A digital data compression/decompression system for compressing/decompressing one bit of M-bit data, comprising: a compression identification code generating unit, receiving a digital address, and the compressed identification code generating unit is based on The digital address generates a compressed identification code that is not repeated by 2 M pens; and a compressed identification code table unit has N 2 fields for storing an accumulated result of the same field in the 2 M pen compressed identification code; a compressed cross-validation code table unit is composed of a compressed cross-validation code of a K 2 pen, and the compressed cross-validation code is generated according to a comparison result of any field in the compressed identification code with other fields, wherein the The equal-compression cross-validation code respectively has L 2 fields; the address-checking unit is used to determine by using the compressed identification code, the compressed cross-validation code, the compressed identification code table unit and the compressed cross-validation code table unit. Whether the digital address is compressed in the compressed identification code table unit and the compressed cross-certification code table unit; the address-based content reading/decompressing unit is correspondingly input according to the judgment result of the address verification unit And a location compression unit, correspondingly providing the compressed identification code and the compressed cross-validation code to the compressed identification code table unit and the compressed cross-validation code table according to the determination result of the address verification unit Adding values of the fields in the unit, or providing the compression identification code and the compressed cross-validation code respectively subtracted from the values of the fields in the compressed identification code table unit and the compressed cross-validation code table unit to complete the digital position The data of the digital data of the address is compressed. 如申請專利範圍第1項所述之數位資料資料壓縮/解壓縮系統,其中該比較結果係當該壓縮辨識碼中任一欄位與其它欄位相比較時,若該壓縮辨識碼中任一欄位與其它欄位皆大於0時,則於該所對應的該壓縮交叉驗證碼表單元之欄位加1。 The digital data compression/decompression system according to claim 1, wherein the comparison result is when any field in the compression identification code is compared with other fields, if any column in the compression identification code When both the bit and the other fields are greater than 0, the field of the compressed cross-check code table unit corresponding to the corresponding one is incremented by one. 如申請專利範圍第2項所述之數位資料資料壓縮/解壓縮系統,其中該比較結果係當該壓縮辨識碼中任一欄位與其它欄位相比較時,若該壓縮辨識碼中任一欄位與其它欄位之至少其一等於0時,則於該所對應的該壓縮交叉驗證碼表單元之欄位填入0。 The digital data compression/decompression system of claim 2, wherein the comparison result is when any field in the compressed identification code is compared with other fields, if any column in the compressed identification code When at least one of the bits and the other fields is equal to 0, the field of the corresponding compressed cross-validation code table unit is filled with 0. 如申請專利範圍第1項所述之數位資料壓縮/解壓縮系統,其中該壓縮辨識碼產生單元進一步包含一壓縮辨識碼單元與一壓縮交叉驗證碼單元,用以分別地對應產生該壓縮辨識碼與該壓縮交叉驗證碼。 The digital data compression/decompression system of claim 1, wherein the compressed identification code generating unit further comprises a compressed identification code unit and a compressed cross-check code unit for respectively generating the compressed identification code. With this compression cross-validation code. 如申請專利範圍第1項所述之數位資料壓縮/解壓縮系統,其中該M、N、K、L係為整數。 The digital data compression/decompression system of claim 1, wherein the M, N, K, and L are integers. 如申請專利範圍第5項所述之數位資料壓縮/解壓縮系統,其中該M、N、K、L係為相等之整數。 The digital data compression/decompression system of claim 5, wherein the M, N, K, and L are equal integers. 如申請專利範圍第1項所述之數位資料壓縮/解壓縮系統,其中該壓縮辨識碼表單元係為單一或複數個。 The digital data compression/decompression system of claim 1, wherein the compressed identification code table unit is single or plural. 一種數位資料壓縮/解壓縮方法,係用以壓縮/解壓縮具有M位元之一數位資料,其方法包含:接收一數位位址,用以產生2M 筆不重複且具M2 個 欄位資料長度的一壓縮辨識碼;累加該壓縮辨識碼中相同欄位以獲得一累加結果並儲存至具有N2 個欄位的一壓縮辨識碼表單元;比較該數位位址產生之壓縮辨識碼中任一欄位與其它欄位以獲得一比較結果,以形成一壓縮交叉驗證碼並儲存至具有L2 個欄位的一壓縮交叉驗證碼表單元,其中該任一欄位與其它欄位的彼此之間係僅只比較一次;驗證比對該壓縮辨識碼、該壓縮交叉驗證碼、該壓縮辨識碼表單元內欄位的值與該壓縮交叉驗證碼表單元內欄位的值,以判斷來產生一比對結果,其中該判斷係分別地根據該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內欄位的值經比對之後是否為大於0、等於0或小於0,以及該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元之內容是否互相匹配,用以獲得對應的該比對結果;以及根據該比對結果用以分別地進行一解壓縮流程與一壓縮流程。A digital data compression/decompression method for compressing/decompressing data having one bit of M bits, the method comprising: receiving a digit address for generating 2 M pens without repeating and having M 2 fields a compressed identification code of the data length; accumulating the same field in the compressed identification code to obtain an accumulated result and storing it in a compressed identification code table unit having N 2 fields; comparing the compressed identification code generated by the digital address Any field and other fields to obtain a comparison result to form a compressed cross-validation code and stored in a compressed cross-validation code table unit having L 2 fields, wherein any of the fields and other fields Comparing only one time to each other; verifying the value of the field within the unit of the compressed identification code, the compressed cross-validation code, the compressed identification code table unit, and the value of the field in the compressed cross-validation code table unit to determine Generating a comparison result, wherein the determining is based on whether the compressed identification code table unit and the value of the field in the compressed cross-validation code table unit are respectively greater than 0, equal to 0, or less than 0, and the pressure is Identifying the code table unit and the compression unit cross-validation code table whether the contents match each other, to obtain the corresponding comparison result; and means for separately performing a decompression process and a compression process based on the comparison result. 如申請專利範圍第8項所述之方法,其中該解壓縮流程進一步包含當該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內欄位的值經比對之後係大於或等於0及該壓縮辨識碼表與該壓縮交叉驗證碼表單元之內容互相匹配兩者同時成立時,則將該數位位址所對應的該數位資料定義為1,而當該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內欄位的值經比對之後係小於0與該壓縮辨識碼表 與該壓縮交叉驗證碼表單元之內容互相不匹配之至少其一成立時,則將該數位位址所對應的該數位資料定義為0。 The method of claim 8, wherein the decompression process further comprises: when the compressed identification code table unit is compared with a value of a field in the compressed cross-validation code table unit, greater than or equal to 0 and When the content of the compressed identification code table and the content of the compressed cross-validation code table unit are both matched, the digital data corresponding to the digital address is defined as 1, and when the compressed identification code table unit is intersected with the compression The value of the field in the verification code table unit is less than 0 after comparison and the compressed identification code table When at least one of the contents of the compressed cross-validation code table unit does not match, the digital data corresponding to the digital address is defined as 0. 如申請專利範圍第8項所述之方法,其中該壓縮流程進一步包含當該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內欄位的值經比對之後係大於或等於0及該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元之內容互相匹配兩者同時成立時,係接收該數位位址,其中該數位位址係已儲存在該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元以及該數位位址的內容為1,而再根據該數位位址中新的內容為1或0,用以決定是否更新該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元,當該數位位址中新的內容係為1時,係表示該數位位址已儲存在該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元中,而當該數位位址中新的內容係為0時,則將該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內的值減去該壓縮辨識碼或該壓縮交叉驗證碼,用以使得該數位位址中的內容由1更新為0。 The method of claim 8, wherein the compression process further comprises: when the compressed identification code table unit is compared with a value of a field in the compressed cross-validation code table unit, greater than or equal to 0 and the compression Receiving, when the identification code table unit and the content of the compressed cross-validation code table unit match each other, receiving the digital address, wherein the digital address is stored in the compressed identification code table unit and the compressed cross-validation code The table unit and the content of the digit address are 1, and then according to the new content in the digit address is 1 or 0, to determine whether to update the compressed identification code table unit and the compressed cross-certification code table unit, when When the new content in the digital address is 1, it indicates that the digital address is stored in the compressed identification code table unit and the compressed cross-check code table unit, and when the new content in the digital address is 0. And subtracting the compressed identification code or the compressed cross-validation code from the value in the compressed identification code table unit and the compressed cross-check code table unit, so that the content in the digital address is updated from 1 to 0. 如申請專利範圍第8項所述之方法,其中該壓縮流程進一步包含當該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內欄位的值經比對之後係小於0與該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元之內容互相不匹配之至少其一成立時,係接收該數位位址,其中該數位位址係未儲存在該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元以及該數位位址的內容為0,並且根據該數位位址中新 的內容係為1或0,用以決定是否更新該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元,當該數位位址中新的內容係為1時,則將該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元內的值分別地與該壓縮辨識碼或該壓縮交叉驗證碼相加,用以使得該數位位址中的內容由0更新為1,而當該數位位址中新的內容係為0時,係表示該數位位址未儲存在該壓縮辨識碼表單元與該壓縮交叉驗證碼表單元中。 The method of claim 8, wherein the compression process further comprises: when the compressed identification code table unit is compared with a value of a field in the compressed cross-validation code table unit, less than 0 and the compressed identification code. Receiving, when at least one of the table unit and the content of the compressed cross-validation code table unit does not match, receiving the digital address, wherein the digital address is not stored in the compressed identification code table unit and the compressed cross-validation code The table unit and the content of the digit address are 0, and according to the new address in the address The content is 1 or 0, and is used to determine whether to update the compressed identification code table unit and the compressed cross-check code table unit. When the new content in the digital address is 1, the compressed identification code table unit is And adding the value in the compressed cross-validation code table unit to the compressed identification code or the compressed cross-validation code, respectively, to update the content in the digital address from 0 to 1, and when the digital address is in the address When the new content is 0, it means that the digital address is not stored in the compressed identification code table unit and the compressed cross-check code table unit.
TW099137208A 2010-10-29 2010-10-29 Digital data compression / decompression method and its system TWI466453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099137208A TWI466453B (en) 2010-10-29 2010-10-29 Digital data compression / decompression method and its system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099137208A TWI466453B (en) 2010-10-29 2010-10-29 Digital data compression / decompression method and its system

Publications (2)

Publication Number Publication Date
TW201218647A TW201218647A (en) 2012-05-01
TWI466453B true TWI466453B (en) 2014-12-21

Family

ID=46552578

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099137208A TWI466453B (en) 2010-10-29 2010-10-29 Digital data compression / decompression method and its system

Country Status (1)

Country Link
TW (1) TWI466453B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200412733A (en) * 2002-07-31 2004-07-16 Btg Int Ltd Lossless data compression

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200412733A (en) * 2002-07-31 2004-07-16 Btg Int Ltd Lossless data compression

Also Published As

Publication number Publication date
TW201218647A (en) 2012-05-01

Similar Documents

Publication Publication Date Title
Zhang et al. Improving various reversible data hiding schemes via optimal codes for binary covers
KR101841103B1 (en) Vlsi efficient huffman encoding apparatus and method
JP5008106B2 (en) Data compression apparatus and method
US7728740B2 (en) Data compression for communication between two or more components in a system
JP4999025B2 (en) Data compression and decompression apparatus and method
US7548175B2 (en) Encoding apparatus, decoding apparatus, encoding method, computer readable medium storing program thereof, and computer data signal
CN112398484A (en) Coding method and related equipment
JP2012506665A (en) Method and apparatus for compressing and decompressing data records
US6584226B1 (en) Method and apparatus for implementing motion estimation in video compression
CN101751897A (en) Lookup table compression and decompression method and relevant device thereof
WO2023015831A1 (en) Huffman correction encoding method and system, and relevant components
Al-Bahadili A novel lossless data compression scheme based on the error correcting Hamming codes
TWI466453B (en) Digital data compression / decompression method and its system
US20100039300A1 (en) Lzw data compression algorithm
US9998142B1 (en) Techniques for invariant-reference compression
KR100359118B1 (en) Lossless data compression method for uniform entropy data
CN116208171A (en) Data compression and decompression method and device, electronic equipment and storage medium
CN102457284B (en) Digital data compression/decompression method and system
CN111263155B (en) Compression method and system for equal-resolution CR image
JP2924416B2 (en) High efficiency coding method
WO2020203191A1 (en) Compression device, compression method, and compression program
CN115514967B (en) Image compression method and image decompression method based on binary block bidirectional coding
TWI492615B (en) An improved decompressed image quality of vq and fast codebook training method, compressing method thereof, decompressing method thereof, and program product thereof
CN115729464A (en) Device for realizing FIFO memory capacity increase through data compression and decompression
Lin et al. Embedding Secret Data in a Vector Quantization Codebook Using a Novel Thresholding Scheme