CN1268135C - Method, device and recording medium for encoding, and method, device and recording medium for decoding - Google Patents
Method, device and recording medium for encoding, and method, device and recording medium for decoding Download PDFInfo
- Publication number
- CN1268135C CN1268135C CNB988040115A CN98804011A CN1268135C CN 1268135 C CN1268135 C CN 1268135C CN B988040115 A CNB988040115 A CN B988040115A CN 98804011 A CN98804011 A CN 98804011A CN 1268135 C CN1268135 C CN 1268135C
- Authority
- CN
- China
- Prior art keywords
- new
- output value
- decoding
- data
- image data
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/85—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
- H04N19/88—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving rearrangement of data among different coding units, e.g. shuffling, interleaving, scrambling or permutation of pixel data or permutation of transform coefficient data among different blocks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/124—Quantisation
- H04N19/126—Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/132—Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/136—Incoming video signal characteristics or properties
- H04N19/14—Coding unit complexity, e.g. amount of activity or edge presence estimation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
- H04N19/423—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
- H04N19/61—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/124—Quantisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/13—Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/30—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/91—Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Image Processing (AREA)
Abstract
Description
发明领域field of invention
本发明涉及用于编码输入图像数据的编码方法、编码装置和记录媒体,还涉及用于解码经编码的图像数据的解码方法、解码装置和记录媒体。The present invention relates to an encoding method, encoding device and recording medium for encoding input image data, and also relates to a decoding method, decoding device and recording medium for decoding encoded image data.
相关技术related technology
根据对数字信号处理技术的改进,已实现能够压缩、编码和记录数字图像信号并能够解码、解压和重现数字图像信号的装置;而且DVC(数字盒式录像磁带)可作为一个例子。在由HD数字VCR协会编辑的“运用6.3mm磁带的客户使用数字VCR”的说明书中描述了DVC的格式。According to improvements in digital signal processing technology, devices capable of compressing, encoding, and recording digital image signals and decoding, decompressing, and reproducing digital image signals have been realized; and DVC (Digital Video Cassette) can be taken as an example. The format of DVC is described in the specification of "Customer Use Digital VCR Using 6.3mm Tape" edited by the HD Digital VCR Association.
在包含DVC的数字图像装置中,由于输入图像数据量很大,所以通过压缩和编码减小数据量,而且解码经编码的图像数据,从而通过解码重现构成初始图像,如一般实践的那样。In a digital image device including DVC, since input image data is large, the amount of data is reduced by compression and encoding, and the encoded image data is decoded to reproduce an original image by decoding, as is generally practiced.
图25是示出在传统数字图像装置中编码部分的结构的方框图。在图25中,标号2501表示第一输入端、标号2502表示第一信号格式转换部分、标号2503表示开关、标号2504表示第二输入端,标号2505表示第二信号格式转换部分、标号2506表示重排(shuffling)部分、标号2507表示正交变换部分、标号2508表示可变长度编码部分和标号2509表示经编码的图像输出终端。Fig. 25 is a block diagram showing the structure of an encoding section in a conventional digital image device. In Fig. 25, reference numeral 2501 represents a first input terminal, reference numeral 2502 represents a first signal format conversion part, reference numeral 2503 represents a switch, reference numeral 2504 represents a second input terminal, reference numeral 2505 represents a second signal format conversion part, and reference numeral 2506 represents a repeating A shuffling section, reference numeral 2507 denotes an orthogonal transformation section, reference numeral 2508 denotes a variable-length coding section, and reference numeral 2509 denotes an encoded image output terminal.
要编码以记录的图像信号的例子是YUV422分量信号,它包括亮度(Y)信号、第一色差(U)信号和第二色差(V)信号,以4∶2∶2的比率。当从第一输入终端2501输入这个YUV422分量时,由第一信号格式转换部分2502将它转换成YUV411分量信号(下面称为YUV格式信号),它包括四个Y信号,一个U信号和一个V信号,作为每帧的象素量,如图26所示。An example of an image signal to be encoded for recording is a YUV422 component signal which includes a luminance (Y) signal, a first color difference (U) signal and a second color difference (V) signal at a ratio of 4:2:2. When this YUV422 component is input from the first input terminal 2501, it is converted into a YUV411 component signal (hereinafter referred to as a YUV format signal) by the first signal format conversion part 2502, which includes four Y signals, a U signal and a V The signal, as the amount of pixels per frame, is shown in Fig. 26.
另一方面,除了YUV格式信号之外的图像信号,例如,数字RGB分量信号(下面称为RGB格式信号),它包括红色(R)信号、绿色(G)信号和蓝色(G)信号,有时会变成输入信号。在这种情况下,要求由第二信号转换部分2505将来自第二输入端2504的RGB格式信号输入转换成YUV格式信号。RGB格式信号具有以每帧4∶4∶4的比率的水平象素,如图27所示。在第二信号格式转换部分2505中,通过将RGB象素值用于各个坐标,获得On the other hand, an image signal other than a YUV format signal, for example, a digital RGB component signal (hereinafter referred to as an RGB format signal), which includes a red (R) signal, a green (G) signal, and a blue (G) signal, Sometimes it becomes an input signal. In this case, it is required that the RGB format signal input from the second input terminal 2504 be converted into a YUV format signal by the second signal conversion section 2505 . The RGB format signal has horizontal pixels at a ratio of 4:4:4 per frame, as shown in FIG. 27 . In the second signal format conversion section 2505, by using RGB pixel values for the respective coordinates, obtain
Y=0.30R+0.59G+0.11BY=0.30R+0.59G+0.11B
U=0.70R-0.59G-0.11BU=0.70R-0.59G-0.11B
V=-0.30R-0.59G+0.89B;V=-0.30R-0.59G+0.89B;
此外,U和V信号的水平象素的数量将减小至1/4以获得YUV格式信号。In addition, the number of horizontal pixels of U and V signals will be reduced to 1/4 to obtain YUV format signals.
通过开关2503向重排部分2506提供由第二信号格式转换部分获得的YUV格式信号,而且如图所示以相同的方法进行处理。The YUV format signal obtained by the second signal format converting section is supplied to the rearranging section 2506 through the switch 2503, and is processed in the same way as shown in the figure.
将发送到重排部分2506的YUV信号的Y信号、U信号和V信号分成包括M水平象素和N垂直象素的块(一般,M=N=8)。将位于显示屏的相同区域中的Y信号的4个块、U信号的一个块和V信号的一个块定义为宏块。通过将这个宏块用作一个单元,由位于帧中的分开位置处的5个宏块形成用作编码单元的同步块,如图28所示。The Y signal, U signal, and V signal of the YUV signal sent to the rearrangement section 2506 are divided into blocks including M horizontal pixels and N vertical pixels (generally, M=N=8). Four blocks of the Y signal, one block of the U signal, and one block of the V signal located in the same area of the display screen are defined as a macro block. By using this macroblock as a unit, a sync block serving as a coding unit is formed from 5 macroblocks located at separated positions in a frame, as shown in FIG. 28 .
把重排图像信号发送到正交变换部分2507,而且在块单元中经历正交变换(一般,离散余弦变换)。把经历正交变换的图像信号发送到可变长度编码部分2508,并进行编码,从而在上述同步块中的代码量不多于特定值。通过执行上述重排,对于整个帧,平均化每个同步块所需的代码量,而且可以有效地执行编码;此外,即使在重现期间仍存在误差,它们也分散在整个显示屏上,从而误差变得不太显著。从编码图像的输出终端2509输出经编码的图像信号。The rearranged image signal is sent to the orthogonal transform section 2507, and undergoes orthogonal transform (generally, discrete cosine transform) in block units. The image signal subjected to orthogonal transformation is sent to variable length encoding section 2508, and encoded so that the code amount in the above-mentioned sync block is not more than a certain value. By performing the rearrangement described above, the amount of codes required for each sync block is averaged for the entire frame, and encoding can be performed efficiently; moreover, even if errors still exist during reproduction, they are scattered over the entire display screen, thereby The error becomes less significant. An encoded image signal is output from an output terminal 2509 for encoded image.
可变长度编码部分对于经历了正交变换的系数串中的一组零游程(zerorun),即,连续0的数量,和值,即,在零游程之后的非零系数实施可变长度编码。图29是对于DVC的可变长度编码表。The variable-length encoding section performs variable-length encoding on a set of zeroruns, ie, the number of consecutive 0s, and values, ie, non-zero coefficients following the zeroruns, in the coefficient string subjected to the orthogonal transform. Fig. 29 is a variable length coding table for DVC.
在对于DVC的可变长度码中,代码长度不少于3比特,和不多于16比特,而且由它的高阶8比特唯一确定代码长度。此外,它的特征还在于,当发生概率较高时,分配具有较短代码长度的码字。将一系列码字的结束称为EOB。In the variable length code for DVC, the code length is not less than 3 bits, and not more than 16 bits, and the code length is uniquely determined by its high-
下面,参照图29和30,描述可变长度编码操作。Next, referring to Figs. 29 and 30, the variable length encoding operation will be described.
假设,在图30中,已完成对系数A(系数值9)的编码。接下去要编码的部分是3个连续0,和紧接其后的非零系数2(系数组B)。此时,零游程是3,而值是2。根据图29,将系数组B编码成“111001000”。Assume that, in FIG. 30, encoding of coefficient A (coefficient value 9) has been completed. The next part to be coded is 3 consecutive 0s, followed by the non-zero coefficient 2 (coefficient group B). At this point, the zero run is 3 and the value is 2. According to FIG. 29, the coefficient group B is encoded as "111001000".
在系数组B之后,编码位于系数组B之后的系数C。由于“0”不存在于系数组B和系数C之间,所以此时零游程是0。由于值是-6,所以将系数C编码成“101111”,如图29所示。After the coefficient group B, the coefficient C located after the coefficient group B is encoded. Since "0" does not exist between the coefficient group B and the coefficient C, the zero run is 0 at this time. Since the value is -6, the coefficient C is encoded as "101111" as shown in FIG. 29 .
图31是示出用于解码可变长度编码图像信号以获得普通图像信号的解码的方框图。在图31中,标号3101表示经编码的图像输入终端、标号3102表示可变长度解码部分、标号3103表示正交反变换部分、标号3104表示去重排(deshuffling)部分、标号3105表示第一信号格式转换部分、标号3106表示第一信号输出终端、标号3107表示第二信号格式转换部分和标号3108表示第二信号输出终端。Fig. 31 is a block diagram showing decoding for decoding a variable-length coded image signal to obtain an ordinary image signal. In FIG. 31,
由可变长度解码部分3102解码输入到编码图像输入终端3101的编码图像信号(码字串)。在根据图29的可变长度表解码码字串的情况下,可以考虑下列方法。The coded image signal (codeword string) input to the coded
第一种方法是逐位扫描码字串,直至确定它的代码长度(码字),而且根据表格,输出确定的码字的零游程和值。通过图32,描述这个方法。The first method is to scan the codeword string bit by bit until its code length (codeword) is determined, and according to the table, output the zero-run sum of the determined codeword. Through Figure 32, this method is described.
在图32中,将码字首部的3位数据看作是候选者,而且判断是否确定代码长度(与在图32中的代码a所表示的描述相对应)。如果不确定代码长度,那么将另具有接下去的1位数据的码字看作是候选者,而且判断是否确定代码长度(与在图32中的代码b所表示的描述相对应)。重复这个操作,直至确定代码长度,从而确定码字(与在图32中的代码c所表示的描述相对应)。In FIG. 32, the 3-bit data at the head of the code word is regarded as a candidate, and it is judged whether to determine the code length (corresponding to the description indicated by code a in FIG. 32). If the code length is not determined, another code word having the next 1-bit data is regarded as a candidate, and it is judged whether to determine the code length (corresponding to the description represented by code b in FIG. 32 ). This operation is repeated until the code length is determined, thereby determining the codeword (corresponding to the description indicated by code c in FIG. 32).
接着,对于已确定的码字,参照该表格,从而获得它的零游程和值(与由图32中的代码d所表示的描述相对应)。Next, for the codeword that has been determined, this table is referred to, thereby obtaining its zero-run sum value (corresponding to the description represented by code d in Fig. 32).
结果,已解码一个码字;因此,从码字串的首部中删除该码字的长度(在这个例子中,7比特),而且取出下一个码字的首部。As a result, one codeword has been decoded; therefore, the length of the codeword (7 bits in this example) is deleted from the header of the codeword string, and the header of the next codeword is taken out.
重复上述操作,直至EOB再次出现。(可变长度解码方法1)Repeat the above operations until EOB appears again. (variable length decoding method 1)
作为第二种方法,可以使用制备用于所有码字的表格的方法。在DVC的情况下,由于最大码长度是16,所以通过参照其中输入16位数据的表格,可以立即执行编码,而且输出与每个位模式相对应的代码长度、零游程和值,如图33所示(可变长度解码方法2)。As a second method, a method of preparing a table for all codewords can be used. In the case of DVC, since the maximum code length is 16, encoding can be performed immediately by referring to a table in which 16-bit data is input, and the code length, zero-run, and value corresponding to each bit pattern are output, as shown in Fig. 33 Shown (variable length decoding method 2).
由正交反变换部分3103将经历变量长度解码的数据以块为单元解码成YUV格式信号。此后,由去重排部分3104执行与重排相反的操作,而且把信号转换成YUV422分量信号,例如,由去重排部分3104将信号转换成YVU422分量信号,而且从第一信号输出终端3106输出。另一方面,当输出RGB格式时,由第二信号格式转换部分3107从YUV格式获得RGB格式信号,而且从第二信号输出终端3108输出。The data subjected to variable length decoding is decoded into a YUV format signal in units of blocks by the orthogonal
还可通过运用算法处理装置执行上述处理,诸如计算机。换句话说,通过软件执行上述编码和解码处理,可以运用计算机进行处理,其中在上述计算机中通过如图34所述的数据总线3403把外部存储器3401、包括超超高速缓冲存储器、寄存器和算术单元的CPU3402和硬盘3404相互连接。通过软件实施编码和解码处理,连到计算机的记录媒体(诸如,硬盘)上的图像数据可以被编码并被记录在DVC上;以及可以把记录在DVC上的经编码的图像数据直接提取到计算机中,并经历解码处理,以在与计算机相连的监视器上被指示出来。The above-described processing can also be performed by using an arithmetic processing device, such as a computer. In other words, the above-mentioned encoding and decoding processes are performed by software, and the processing can be performed by using a computer in which the
然而,当通过计算机执行上述编码和解码时,发生下列问题。However, when the above-described encoding and decoding are performed by a computer, the following problems occur.
当编码图像数据,或者通过运用计算机解码编码的图象数据时,要求在非常短的时间内计算大量数据。When encoding image data, or decoding encoded image data by using a computer, it is required to calculate a large amount of data in a very short time.
例如,当编码或解码NTSC图像信号,(1)在编码期间,对于包含720个水平象素和480个垂直象素的1帧图象数据,需要在1/30秒内,执行信号格式转换、正交变换和可变长度编码,和(2)在解码期间,需要对于经编码的1-帧图像数据,在1/30秒内执行可变长度解码,正交反变换和信号格式转换。否则,不能实时实现编码和解码而没有帧丢失(dropout)。For example, when encoding or decoding an NTSC image signal, (1) during encoding, for 1 frame of image data containing 720 horizontal pixels and 480 vertical pixels, it is necessary to perform signal format conversion, Orthogonal transform and variable length encoding, and (2) during decoding, variable length decoding, orthogonal inverse transform, and signal format conversion need to be performed within 1/30 second for encoded 1-frame image data. Otherwise, encoding and decoding cannot be achieved in real time without frame dropout.
当输入RGB格式信号时,和当通过计算机执行如图25实时的编码处理时,图35示出数据流。在外部存储器3401(与由标号3551所示的虚线相对应)的区域中映射输入RGB格式信号。把映射的RGB格式信号传递到CPU3402(3552)、经过计算以把信号转换成YUV格式信号(3553),和一次写到外部存储器3401的另一个区域(3554)。接着,根据依赖重排模式获得的地址,从外部存储器3401以块为单元读取图像信号,传递到COU202(3555)并经历正交变换和垂直长度编码(3556),从而通过数据总线3403输出经编码的图像信号(3557)。FIG. 35 shows data flow when an RGB format signal is input, and when encoding processing is performed by a computer in real time as in FIG. 25 . The input RGB format signal is mapped in the area of the external memory 3401 (corresponding to the dotted line shown by reference numeral 3551). The mapped RGB format signal is delivered to the CPU 3402 (3552), processed to convert the signal into a YUV format signal (3553), and written to another area of the
当运用计算机执行如图31所示的解码处理时,在CPU3402中取出通过数据总线3403传递的经编码图像信号(与图36中的标号3651表示的虚线相对应)、经历可变长度解码和正交反变换(3652)并一次传递到外部存储器3401以执行去重排(如图36所示)。接着,根据依赖去重排模式获得的地址,将信号从外部存储器3401传递到CPU3402,从而经历信号格式转换(3654)、由CPU3402转换成RGB格式信号(3655)、和再次传递到外部存储器3401(3656)。通过将存储在外部存储器3401中的图像信号映射在显示装置(诸如,VRAM)上,可以执行图像显示和记录。When the decoding process shown in FIG. 31 is executed by using a computer, the encoded image signal (corresponding to the dotted line indicated by
在外部存储器3401和CPU3402之间传递数据一般比在寄存器之间或在CPU内部的超超高速缓冲存储器与寄存器之间进行数据传递所需的时间要长。在传统例子中,在外部存储器3401和CPU3402之间进行四次数据传递,而且根据计算机的体系结构,这会损害实时图像处理。Transferring data between the
接着,在运用正交变换进行编码和解码的情况下,需要对编码和解码执行正交变换。然而,由于用于普通图像信号的正交变换是由包括无理数相乘的复杂计算形成的,所以需要很长的计算时间或大型电路。Next, in the case of encoding and decoding using orthogonal transform, it is necessary to perform orthogonal transform on encoding and decoding. However, since the orthogonal transformation for general image signals is formed by complicated calculations including multiplication of irrational numbers, a long calculation time or a large-scale circuit is required.
甚至传统例子经常运用蝶形(butterfly)计算,其中计算两个输入的和与差,以增加正交变换计算的速度。在这个蝶形计算中,对于两个输入X0和X1,计算输出值Y0,即X0+X1和输出值Y1,即X0-X1。当在计算机上执行上,处理如下所述的计算。Even conventional examples often employ butterfly calculations, in which the sum and difference of two inputs are calculated, to increase the speed of orthogonal transform calculations. In this butterfly calculation, for two inputs X0 and X1, an output value Y0 is calculated which is X0+X1 and an output value Y1 which is X0-X1. When executed on a computer, the calculations described below are processed.
(1)将输入值X0设在寄存器A中。(1) Set the input value X0 in register A.
(2)将输入值X1设在寄存器B中。(2) Set the input value X1 in register B.
(3)将寄存器B的输出(X1)设在寄存器C中(产生X1的副本)。(3) Set the output (X1) of register B in register C (creating a copy of X1).
(4)把寄存器A的输出(X0)加到寄存器B的输出(X1),而且将结果(计算X0+X1)设在寄存器B中。(4) Add the output (X0) of the register A to the output (X1) of the register B, and set the result (calculate X0+X1) in the register B.
(5)从寄存器A的输出(X0)中减去寄存器C的输出(X1),而且将结果(计算X0-X1)设在寄存器A中。(5) Subtract the output (X1) of register C from the output (X0) of register A, and set the result (calculate X0-X1) in register A.
(6)输出寄存器B的输出作为Y0。(6) The output of the output register B is taken as Y0.
(7)输出寄存器A的输出作为Y1。(7) The output of the output register A is taken as Y1.
虽然,如上所述蝶形计算十分简单,但是当执行计算时它至少需要三个寄存器以获得两个计算输出。Although, the butterfly calculation is very simple as described above, it requires at least three registers to obtain two calculation outputs when the calculation is performed.
另一方面,8维正交变换常用于图像编码,而且在这种情况下,需要同时执行4组的2-输入蝶形计算。出于这个目的,总共需要12个寄存器。On the other hand, 8-dimensional orthogonal transforms are often used in image coding, and in this case, 4 sets of 2-input butterfly calculations need to be performed simultaneously. For this purpose, a total of 12 registers are required.
然而,在个人计算机中最普遍使用的Intel的CPU都没有那么多寄存器;即使最新的MMX可兼容CPU也只有4个整数寄存器和8个MMX寄存器。为了对缺乏寄存器作出补偿,将在一些寄存器中的数据保存在存储器上。由于重复执行上述蝶形计算以进行正交变换,经常要将寄存器值保存在存储器上,从而大大延迟执行时间。However, Intel's CPUs, which are most commonly used in personal computers, don't have that many registers; even the latest MMX-compatible CPUs have only 4 integer registers and 8 MMX registers. To compensate for the lack of registers, the data in some registers is kept on memory. Since the butterfly calculation described above is repeatedly performed for orthogonal transformation, register values are often saved on memory, thereby greatly delaying execution time.
如上所述,在蝶形计算期间保存在存储器上导致增加编码和解码图像信号及音频信号的计算时间的严重问题。As described above, saving on the memory during the butterfly calculation causes a serious problem of increasing the calculation time for encoding and decoding image signals and audio signals.
此外,当对上述可变长度解码方法1和可变长度解码方法2进行编程以进行可变长度解码,并运用计算机执行时,发生下列问题。Furthermore, when the above-mentioned variable
在可变长度解码方法1的情况下,需要用分支指令来判断在每次扫描时是否可确定一个码字。然而,当使用在当今计算机中占主导地位的CPU,Intel的奔腾时,每次执行分支指令,都要清除在分支信息之前获得的用于高速处理的处理信息。因此,必须获得上述处理信息以执行随后的计算,而且在该期间内,处理被中断。在对DVC进行可变长度解码的情况下,当以比特为单位执行扫描时,必须执行分支指令最大达11次,而且对于一个码字平均执行3次。In the case of the variable
换句话说,在可变长度解码方法2的情况下,该表的所需大小要求对于每个输入比特模式保存三个参数,即,代码长度、零游程和值。当假设这三个参数中每个参数具有1比特,表格的大小变成3×216=192千比特。然而,由于在最新奔腾的情况下,设置在CPU中的超超高速缓冲存储器的大小大约为16千比特,所以不能将在可变长度解码方法2中所述的表格全部存储在上述超超高速缓冲存储器中。出于这个原因,要参照的表格内容很有可能不存储在超超高速缓冲存储器中。如果表格内容不包括在超超高速缓冲存储器中,那么必须将它从外部存储器传递到超超高速缓冲存储器,从而大大延长了处理时间。In other words, in the case of variable
即使在两种情况下,由于利用计算机实时进行传统编码和解码存在一定困难,所以发生问题。Even in both cases, problems arise due to certain difficulties in conventional encoding and decoding using a computer in real time.
发明概述Summary of the invention
考虑到传统问题,本发明旨于提供一种高速编码方法、编码装置和编码程序,用于通过把具有预定信号格式的输入图象数据分成块单元并在上述块单元中执行正交变换来执行编码;本发明还提供一种高速解码方法、解码装置和解码程序,用于通过对编码数据进行正交反变换和信号格式变换来获得图象数据。In view of the conventional problems, the present invention aims to provide a high-speed encoding method, encoding apparatus, and encoding program for performing encoding by dividing input image data having a predetermined signal format into block units and performing orthogonal transformation in the above-mentioned block units. Coding: The present invention also provides a high-speed decoding method, decoding device and decoding program, which are used to obtain image data by performing orthogonal inverse transformation and signal format transformation on coded data.
为了获得上述目的,本发明的权利要求1是一种编码方法,用于通过把所述图像数据分成块单元并在所述块单元中执行正交变换来以预定信号格式编码输入图象数据,包括:In order to achieve the above object,
用于根据所述多个块形成宏块的宏块形成步骤,a macroblock forming step for forming a macroblock from said plurality of blocks,
用于把以所述预定信号格式的所述图像数据转换成以另一种信号格式的图像数据的信号格式转换步骤,a signal format conversion step for converting said image data in said predetermined signal format into image data in another signal format,
用于正交变换以经历所述信号格式转换的所述图像数据的正交变换步骤,和an orthogonal transformation step for orthogonally transforming said image data subjected to said signal format conversion, and
用于编码所述正交变换步骤的输出的编码步骤,其中an encoding step for encoding the output of said orthogonal transform step, wherein
在所述宏块单元中连续执行所述信号格式转换步骤、所述正交变换步骤和所述编码步骤。The signal format converting step, the orthogonal transforming step, and the encoding step are successively performed in units of macroblocks.
本发明的权利要求4是如权利要求1所述的编码方法,其特征在于,所述输入图像数据包括红、绿和蓝信号,而且在所述信号格式转换之后获得的图像数据包括亮度、第一色差和第二色差信号。
本发明的权利要求7是如权利要求1所述的编码方法,其特征在于,所述输入图象数据包括亮度、第一色差和第二色差信号,和在所述信号格式转换之后获得的图像数据包括亮度、第一色差和第二色差信号,它们具有不同于在所述转换之前的结构。
本发明的权利要求10是一种编码方法,用于通过把所述图像数据分成块单元并在所述块单元中执行正交变换来以预定信号格式编码输入图象数据,包括:Claim 10 of the present invention is an encoding method for encoding input image data in a predetermined signal format by dividing said image data into block units and performing orthogonal transformation in said block units, comprising:
象素值检测步骤,用于在所述块中检测输入象素值和判断在所述块中的所有象素值是相等或近似相等或不等,和a pixel value detection step for detecting input pixel values in said block and judging whether all pixel values in said block are equal or approximately equal or not equal, and
正交变换步骤,其中,在块中由所述象素值检测步骤判断所有所述象素值是相等还是近似相等、在所述块中根据一个象素的值产生DC系数分量值和将所有AC系数分量值设为零和在其它块中执行普通正交变换计算。Orthogonal transformation step, wherein, in the block, it is judged by the pixel value detection step whether all the pixel values are equal or approximately equal, in the block, a DC coefficient component value is generated from the value of one pixel and all The AC coefficient component values are set to zero and ordinary orthogonal transform calculations are performed in other blocks.
本发明的权利要求13是一种编码方法,用于通过把所述图像数据分成块单元并在所述块单元中执行正交变换来以预定信号格式编码输入图象数据,Claim 13 of the present invention is an encoding method for encoding input image data in a predetermined signal format by dividing said image data into block units and performing orthogonal transformation in said block units,
假设把所述水平方向或所述垂直方向称为第一方向,而且把所述其它方向称为第二方向,而且假设所述两维块具有m×n个象素,沿着所述第一方向具有m个象素和沿着所述第二方向具有n个象素,Assuming that the horizontal direction or the vertical direction is referred to as a first direction, and the other direction is referred to as a second direction, and assuming that the two-dimensional block has m×n pixels, along the first direction has m pixels and along the second direction has n pixels,
所述方法包括:The methods include:
第一正交变换步骤,用于在沿着所述第一方向的m个象素单元中正交变换在所述两维块中的所述输入象素值,a first orthogonal transform step for orthogonally transforming said input pixel values in said two-dimensional block in m pixel units along said first direction,
象素值检测步骤,用于在沿着所述第二方向的n个系数单元中检测在所述第一正交变换步骤中获得的系数分量值,和a pixel value detecting step for detecting the coefficient component values obtained in the first orthogonal transform step in n coefficient units along the second direction, and
第二正交变换步骤,其中,在由所述象素值检测步骤中检测的系数中,根据所述n个系数中的一个系数的值产生DC系数分量值,而且将所有AC系数分量值设为零,而且在所述n个系数中的其它系数中执行普通正交变换计算,其中所述系数包含沿着所述第二方向并具有相同或近似相同的系数值的所述n个系数。The second orthogonal transform step, wherein, among the coefficients detected in the pixel value detecting step, a DC coefficient component value is generated from a value of one of the n coefficients, and all AC coefficient component values are set to is zero, and ordinary orthogonal transform calculations are performed in other coefficients of the n coefficients, wherein the coefficients include the n coefficients along the second direction and having the same or approximately the same coefficient values.
本发明的权利要求16一种编码方法,用于通过把所述图像数据分成块单元并在所述块单元中执行正交变换来以预定信号格式编码输入图象数据,Claim 16 of the present invention is an encoding method for encoding input image data in a predetermined signal format by dividing said image data into block units and performing orthogonal transformation in said block units,
假设把所述水平方向或所述垂直方向称为第一方向,而且把所述其它方向称为第二方向,而且假设所述两维块具有m×n个象素,沿着所述第一方向具有m个象素和沿着所述第二方向具有n个象素,Assuming that the horizontal direction or the vertical direction is referred to as a first direction, and the other direction is referred to as a second direction, and assuming that the two-dimensional block has m×n pixels, along the first direction has m pixels and along the second direction has n pixels,
所述方法包括:The methods include:
第一正交变换步骤,用于在沿着所述第一方向的m个象素单元中正交变换在所述两维块中的所述输入象素值,a first orthogonal transform step for orthogonally transforming said input pixel values in said two-dimensional block in m pixel units along said first direction,
象素值检测步骤,用于在沿着所述第二方向的n个系数单元中检测在所述第一正交变换步骤中获得的系数分量值,和a pixel value detecting step for detecting the coefficient component values obtained in the first orthogonal transform step in n coefficient units along the second direction, and
第二正交变换步骤,其中,在由所述象素值检测步骤中检测的系数中,将对于所述n个系数的DC系数分量值和所有AC系数分量值设为零,而且在所述n个系数中的其它系数中执行普通正交变换计算,其中所述系数包含沿着所述第二方向并具有系数值的所述n个系数,所有系数值都为0或近似为0。The second orthogonal transform step, wherein, among the coefficients detected in the pixel value detecting step, the DC coefficient component values and all the AC coefficient component values for the n coefficients are set to zero, and in the Ordinary orthogonal transform calculations are performed on other coefficients of the n coefficients, wherein said coefficients include said n coefficients along said second direction and having coefficient values, all of which are zero or approximately zero.
本发明的权利要求22是一种编码方法,用于通过把所述图像数据分成块单元并在所述块单元中执行正交变换来以预定信号格式编码输入图象数据,Claim 22 of the present invention is an encoding method for encoding input image data in a predetermined signal format by dividing said image data into block units and performing orthogonal transformation in said block units,
当通过至少正交变换计算来根据两个输入值X0和X1产生输出值Y0即,X0+X1和输出值Y1,即,X0-X1时,When an output value Y0, i.e., X0+X1 and an output value Y1, i.e., X0−X1 are generated from two input values X0 and X1 by at least an orthogonal transformation calculation,
所述方法包括:The methods include:
首先,用于将所述X0加到所述X1以产生新的X1的加法步骤,First, an addition step for adding the X0 to the X1 to produce a new X1,
其次,用于加倍所述X0以产生新的X0的加倍步骤,和Second, a doubling step for doubling the X0 to produce a new X0, and
第三,用于从所述新X0中减去所述新X1以产生更新的X0的减法步骤,其中Third, a subtraction step for subtracting said new X1 from said new X0 to produce an updated X0, wherein
将所述新X1用作输出值Y0,而且将所述更新的X0用作输出值Y1。The new X1 is used as output value Y0, and the updated X0 is used as output value Y1.
本发明的权利要求25是一种编码方法,用于通过把所述图像数据分成块单元并在所述块单元中执行正交变换来以预定信号格式编码输入图象数据,Claim 25 of the present invention is an encoding method for encoding input image data in a predetermined signal format by dividing said image data into block units and performing orthogonal transformation in said block units,
当通过至少正交变换计算来根据两个输入值X0和X1产生输出值Y0即,X0+X1和输出值Y1,即,X0-X1时,When an output value Y0, i.e., X0+X1 and an output value Y1, i.e., X0−X1 are generated from two input values X0 and X1 by at least an orthogonal transformation calculation,
所述方法包括:The methods include:
首先,用于从所述X0中减去所述X1以产生新的X0的减法步骤,First, a subtraction step for subtracting said X1 from said X0 to produce a new X0,
其次,用于加倍所述X1以产生新的X1的加倍步骤,和Second, a doubling step for doubling the X1 to produce a new X1, and
第三,将所述新X0加到所述新X1以产生新的X1的加法步骤,其中Third, an addition step of adding said new X0 to said new X1 to generate a new X1, wherein
将所述新X1用作输出值Y0,而且将所述更新的X0用作输出值Y1。The new X1 is used as output value Y0, and the updated X0 is used as output value Y1.
本发明的权利要求28是一种编码方法,用于通过把所述图像数据分成块单元并在所述块单元中执行正交变换来以预定信号格式编码输入图象数据,Claim 28 of the present invention is an encoding method for encoding input image data in a predetermined signal format by dividing said image data into block units and performing orthogonal transformation in said block units,
当通过至少正交变换计算来根据两个输入值X0和X1产生输出值Y0即,X0+X1和输出值Y1,即,X0-X1时,When an output value Y0, i.e., X0+X1 and an output value Y1, i.e., X0−X1 are generated from two input values X0 and X1 by at least an orthogonal transformation calculation,
所述方法包括:The methods include:
首先,用于把所述X0加到所述X1以产生新X1的第一加法步骤,First, a first addition step for adding said X0 to said X1 to produce a new X1,
其次,用于把所述X0加到所述X0以产生新X0的第二加法步骤,和Next, a second addition step for adding said X0 to said X0 to produce a new X0, and
第三,用于从所述新X0中减去所述新X1以产生更新的X0的减法步骤,其中Third, a subtraction step for subtracting said new X1 from said new X0 to produce an updated X0, wherein
将所述新X1用作输出值Y0,而且将所述更新的X0用作输出值Y1。The new X1 is used as output value Y0, and the updated X0 is used as output value Y1.
本发明的权利要求31是一种编码方法,用于通过把所述图像数据分成块单元并在所述块单元中执行正交变换来以预定信号格式编码输入图象数据,Claim 31 of the present invention is an encoding method for encoding input image data in a predetermined signal format by dividing said image data into block units and performing orthogonal transformation in said block units,
当通过至少正交变换计算来根据两个输入值X0和X1产生输出值Y0即,X0+X1和输出值Y1,即,X0-X1时,When an output value Y0, i.e., X0+X1 and an output value Y1, i.e., X0−X1 are generated from two input values X0 and X1 by at least an orthogonal transformation calculation,
所述方法包括:The methods include:
首先,用于从所述X0中减去所述X1以产生新X0的减法步骤,First, a subtraction step for subtracting said X1 from said X0 to produce a new X0,
其次,用于把所述X1加到所述X1以产生新X0的第一加法步骤,和Next, a first addition step for adding the X1 to the X1 to produce a new X0, and
第三,用于把所述新X0加到所述新X1以产生新X1的第二加法步骤,其中Third, a second addition step for adding said new X0 to said new X1 to generate new X1, wherein
将所述新X1用作输出值Y0,而且将所述更新的X0用作输出值Y1。The new X1 is used as output value Y0, and the updated X0 is used as output value Y1.
本发明的权利要求34是一种编码方法,用于通过把所述图像数据分成块单元并在所述块单元中执行正交变换来以预定信号格式编码输入图象数据,Claim 34 of the present invention is an encoding method for encoding input image data in a predetermined signal format by dividing said image data into block units and performing orthogonal transformation in said block units,
当通过至少正交变换计算来根据两个输入值X0和X1产生输出值Y0即,X0+X1和输出值Y1,即,X0-X1时,When an output value Y0, i.e., X0+X1 and an output value Y1, i.e., X0-X1 are generated from two input values X0 and X1 by at least an orthogonal transformation calculation,
所述方法包括:The methods include:
首先,用于把所述X0加到所述X1以产生新的X1的第一加法步骤,First, a first addition step for adding said X0 to said X1 to produce a new X1,
其次,用于把用作二进制数的所述X0向MSB侧移一位以产生新的X0的移位步骤,和Next, a shifting step for shifting said X0 used as a binary number one bit to the MSB side to generate a new X0, and
第三,用于从所述新X0中减去所述新X1以产生更新的X0的减法步骤,其中Third, a subtraction step for subtracting said new X1 from said new X0 to produce an updated X0, wherein
将所述新X1用作输出值Y0,而且将所述更新的X0用作输出值Y1。The new X1 is used as output value Y0, and the updated X0 is used as output value Y1.
本发明的权利要求37是一种编码方法,用于通过把所述图像数据分成块单元并在所述块单元中执行正交变换来以预定信号格式编码输入图象数据,Claim 37 of the present invention is an encoding method for encoding input image data in a predetermined signal format by dividing said image data into block units and performing orthogonal transformation in said block units,
当通过至少正交变换计算来根据两个输入值X0和X1产生输出值Y0即,X0+X1和输出值Y1,即,X0-X1时,When an output value Y0, i.e., X0+X1 and an output value Y1, i.e., X0−X1 are generated from two input values X0 and X1 by at least an orthogonal transformation calculation,
所述方法包括:The methods include:
首先,用于从所述X0中减去所述X1以产生新X0的减法步骤,First, a subtraction step for subtracting said X1 from said X0 to produce a new X0,
第二,用于将用作二进制数的所述X1向MSB侧移一位以产生新X1的移位步骤,和second, a shift step for shifting said X1 used as a binary number one bit towards the MSB to produce a new X1, and
第三,用于把所述新X0加到所述新X1以产生新X1的第二加法步骤,其中Third, a second addition step for adding said new X0 to said new X1 to generate new X1, wherein
将所述新X1用作输出值Y0,而且将所述更新的X0用作输出值Y1。The new X1 is used as output value Y0, and the updated X0 is used as output value Y1.
本发明的权利要求40是一种解码方法,用于对编码数据进行可变长度解码、正交反变换和信号格式转换以获得图像数据,Claim 40 of the present invention is a decoding method for performing variable length decoding, orthogonal inverse transformation, and signal format conversion on coded data to obtain image data,
当对于所述编码数据的每个码字的所述最大码字长度是n(n:自然数)时,When the maximum codeword length for each codeword of the encoded data is n (n: natural number),
所述可变长度解码步骤包括:The variable length decoding step includes:
(1)第一表格参照步骤,用于通过将所述码字的j位数据用作输入来参照第一表格、用于当代码长度s是j或更少时从所述第一表格输出代码长度相关信息和解码数据、和用于当代码长度s是j+1或更多时输出代码长度相关信息和第二表格访问信息,和(1) A first table referring step for referring to a first table by using j-bit data of the code word as input, for outputting a code length from the first table when the code length s is j or less related information and decoded data, and for outputting code length related information and second table access information when the code length s is j+1 or more, and
(2)第二表格参照步骤,用于根据所述第二表格访问信息和所述码字的s位数据计算第二表格地址、用于根据所述第二表格地址参照所述第二表格、和用于输出解码数据。(2) The second table reference step, for calculating the second table address according to the second table access information and the s-bit data of the code word, for referring to the second table according to the second table address, and for outputting decoded data.
本发明的权利要求43是一种解码方法,用于对编码数据进行可变长度解码、正交反变换和信号格式转换以获得图像数据,Claim 43 of the present invention is a decoding method for performing variable-length decoding, orthogonal inverse transformation, and signal format conversion on coded data to obtain image data,
当所述编码数据是经过可变长度编码的码字串,其每个码字的最大码字长度是n(n:自然数)时,When the encoded data is a variable-length encoded codeword string, and the maximum codeword length of each codeword is n (n: a natural number),
所述可变长度解码步骤包括:The variable length decoding step includes:
(1)码字串获得步骤,用于从所述码字串的首部获得j位数据,(1) a codeword string obtaining step, used to obtain j-bit data from the header of the codeword string,
(2)第一表格参照步骤,用于通过将所述获得的j位数据用作输入来参照第一表格、用于当代码长度s是j或更少时从所述第一表格输出代码长度相关信息和解码数据、和用于当代码长度s是j+1或更多时从所述第一表格输出代码长度相关信息和第二表格访问信息,和(2) A first table referring step for referring to a first table by using said obtained j-bit data as input, for outputting a code length correlation from said first table when the code length s is j or less information and decoded data, and for outputting code length related information and second table access information from said first table when the code length s is j+1 or more, and
(3)第二表格参照步骤,用于从所述码字串的首部获得s位数据、根据所述第二表格访问信息和所述s位数据计算第二表格地址、用于根据所述第二表格地址参照所述第二表格、和用于输出解码数据,和(3) The second table reference step is used to obtain s-bit data from the header of the codeword string, calculate the second table address according to the second table access information and the s-bit data, and calculate the second table address according to the first two table addresses refer to the second table, and are used to output decoded data, and
(4)位移步骤,用于从所述代码长度相关信息获得代码s、用于从所述码字串的首部删除所述s位代码、和用于重复这个操作直至出现结束码。(4) A displacement step for obtaining a code s from the code length related information, for deleting the s-bit code from the head of the code word string, and for repeating this operation until an end code occurs.
本发明的权利要求46是一种解码方法,用于对编码数据进行可变长度解码、正交反变换和信号格式转换以获得图像数据,Claim 46 of the present invention is a decoding method for performing variable-length decoding, orthogonal inverse transformation, and signal format conversion on coded data to obtain image data,
当所述编码数据是经过可变长度编码的码字串,其每个码字的最大码字长度是n(n:自然数)时,When the encoded data is a variable-length encoded codeword string, and the maximum codeword length of each codeword is n (n: a natural number),
所述可变长度解码步骤包括:The variable length decoding step includes:
(1)码字串获得步骤,用于从所述码字串的首部获得j位数据,(1) a codeword string obtaining step, used to obtain j-bit data from the header of the codeword string,
(2)扩充第一表格参照步骤,其中通过将获得的j位数据用作输入来参照第一表格,而且当k或更少的连续码字的代码长度之和是j或更少时,从第一表格输出所述k连续码字的代码长度相关信息和所述k或更少连续码字中的每个码字的解码数据,而且当代码长度s是j+1或更多时,从所述第一表格输出代码长度相关信息和第二表格访问信息,和(2) Expanding the first table referencing step, wherein the first table is referred to by using the obtained j-bit data as input, and when the sum of the code lengths of k or less consecutive codewords is j or less, from the first A table outputs the code length-related information of the k consecutive code words and the decoded data of each code word in the k or less consecutive code words, and when the code length s is j+1 or more, from the The first table outputs code length related information and the second table access information, and
(3)第二表格参照步骤,用于从所述码字串的首部获得s位数据、根据所述第二表格访问信息和所述s位数据计算第二表格地址、用于根据所述第二表格地址参照所述第二表格、和用于输出解码数据。(3) The second table reference step is used to obtain s-bit data from the header of the codeword string, calculate the second table address according to the second table access information and the s-bit data, and calculate the second table address according to the first A second table address refers to the second table, and is used to output decoded data.
本发明的权利要求49是一种解码方法,用于对编码数据进行可变长度解码、正交反变换和信号格式转换以获得图像数据,Claim 49 of the present invention is a decoding method for performing variable-length decoding, orthogonal inverse transformation, and signal format conversion on coded data to obtain image data,
当所述编码数据是经过可变长度编码的码字,其每个码字的最大码字长度是n(n:自然数)时,When the coded data is a variable-length encoded codeword, and the maximum codeword length of each codeword is n (n: a natural number),
所述可变长度解码步骤包括:The variable length decoding step includes:
(1)码字串获得步骤,用于从所述码字串的首部获得j位数据,(1) a codeword string obtaining step, used to obtain j-bit data from the header of the codeword string,
(2)第一表格参照步骤,其中通过将所述获得的j位数据用作输入来参照第一表格,当m个或更少连续码字的代码长度总和是j或更少时,并且当唯一确定所述m个连续码字和紧接着所述m个连续码字的码字的代码长度之和时,从第一表格输出关于所述m个连续码字和接着所述m个连续码字的总代码长度的信息、对于所述m个或更少连续码字中的每个的解码数据和关于接着所述m个连续码字的所述码字的第二表格访问信息,和(2) A first table referring step, wherein the first table is referred to by using said obtained j-bit data as input, when the sum of the code lengths of m or less consecutive codewords is j or less, and when the unique When determining the sum of the code lengths of the m consecutive codewords and the codewords next to the m consecutive codewords, outputting information about the m consecutive codewords and the m consecutive codewords from the first table information on the total code length of , decoded data for each of said m or fewer consecutive codewords and second table access information on said codeword following said m consecutive codewords, and
(3)第二表格参照步骤,用于通过将所述第二表格访问信息用作输入来访问第二表格,而且输出关于接着所述m连续码字的所述码字的解码数据。(3) A second table referring step of accessing a second table by using the second table access information as an input, and outputting decoded data on said codewords following said m consecutive codewords.
本发明的权利要求73是一种解码方法,用于对编码数据进行正交反变换和信号格式转换以获得图像数据,Claim 73 of the present invention is a decoding method for performing orthogonal inverse transformation and signal format conversion on coded data to obtain image data,
当至少通过正交反变换计算,根据两个输入值X0和X1,产生输出值Y0,即,X0+X1,和输出值Y1,即,X0-X1时,When an output value Y0, i.e., X0+X1, and an output value Y1, i.e., X0-X1 are produced from two input values X0 and X1, calculated by at least an orthogonal inverse transformation,
所述方法包括:The methods include:
首先,用于把所述X0加到所述X1以产生新X1的加法步骤,First, an addition step for adding said X0 to said X1 to produce a new X1,
其次,用于加倍所述X0以产生新X0的加倍步骤,和Second, a doubling step for doubling the X0 to produce a new X0, and
第三,用于从所述新X0中减去所述新X1以产生更新的X0的加法步骤,其中Third, an addition step for subtracting said new X1 from said new X0 to produce an updated X0, wherein
把所述新X1用作输出值Y0,而且把所述更新的X0用作输出值Y1。The new X1 is used as output value Y0, and the updated X0 is used as output value Y1.
本发明的权利要求76是一种解码方法,用于对编码数据进行正交反变换和信号格式转换以获得图像数据,Claim 76 of the present invention is a decoding method for performing orthogonal inverse transformation and signal format conversion on coded data to obtain image data,
当通过正交反变换计算等,根据两个输入值X0和X1,产生输出值Y0,即,X0+X1,和输出值Y1,即,X0-X1时,When an output value Y0, that is, X0+X1, and an output value Y1, that is, X0-X1 are produced from two input values X0 and X1 by orthogonal inverse transformation calculation, etc.,
所述方法包括:The methods include:
首先,用于从所述X0中减去所述X1以产生新X0的减法步骤,First, a subtraction step for subtracting said X1 from said X0 to produce a new X0,
其次,用于加倍所述X1以产生新X1的加倍步骤,和Second, a doubling step for doubling said X1 to produce new X1, and
第三,用于把所述新X0加到所述新X1以产生新X1的加法步骤,其中Third, an addition step for adding said new X0 to said new X1 to generate new X1, wherein
把所述新X1用作输出值Y0,而且把所述更新的X0用作输出值Y1。The new X1 is used as output value Y0, and the updated X0 is used as output value Y1.
本发明的权利要求79是一种解码方法,用于对编码数据进行正交反变换和信号格式转换以获得图像数据,Claim 79 of the present invention is a decoding method for performing orthogonal inverse transformation and signal format conversion on coded data to obtain image data,
当至少通过正交反变换计算,根据两个输入值X0和X1,产生输出值Y0,即,X0+X1,和输出值Y1,即,X0-X1时,When an output value Y0, i.e., X0+X1, and an output value Y1, i.e., X0-X1 are produced from two input values X0 and X1, calculated by at least an orthogonal inverse transformation,
所述方法包括:The methods include:
首先,用于把所述X0加到所述X1以产生新X1的第一加法步骤,First, a first addition step for adding said X0 to said X1 to produce a new X1,
其次,用于把所述X0加到所述X0以产生新X0的第二加法步骤,和Next, a second addition step for adding said X0 to said X0 to produce a new X0, and
第三,用于从所述新X0中减去所述新X1以产生更新的X0的减法步骤,其中Third, a subtraction step for subtracting said new X1 from said new X0 to produce an updated X0, wherein
把所述新X1用作输出值Y0,和把所述更新X0用作输出值Y1。The new X1 is used as the output value Y0, and the updated X0 is used as the output value Y1.
本发明的权利要求82是一种解码方法,用于对编码数据进行正交反变换和信号格式转换以获得图像数据,Claim 82 of the present invention is a decoding method for performing orthogonal inverse transformation and signal format conversion on coded data to obtain image data,
当至少通过正交反变换计算,根据两个输入值X0和X1,产生输出值Y0,即,X0+X1,和输出值Y1,即,X0-X1时,When an output value Y0, i.e., X0+X1, and an output value Y1, i.e., X0-X1 are produced from two input values X0 and X1, calculated by at least an orthogonal inverse transformation,
所述方法包括:The methods include:
首先,用于从所述X0中减去所述X1以产生新X0的减法步骤,First, a subtraction step for subtracting said X1 from said X0 to produce a new X0,
其次,用于把所述X1加到所述X1以产生新X0的第一加法步骤,和Next, a first addition step for adding the X1 to the X1 to produce a new X0, and
第三,用于把所述新X0加到所述新X1以产生新X1的第二加法步骤,其中Third, a second addition step for adding said new X0 to said new X1 to generate new X1, wherein
把所述新X1用作输出值Y0,和把所述更新X0用作输出值Y1。The new X1 is used as the output value Y0, and the updated X0 is used as the output value Y1.
本发明的权利要求85是一种解码方法,用于对编码数据进行正交反变换和信号格式转换以获得图像数据,Claim 85 of the present invention is a decoding method for performing orthogonal inverse transformation and signal format conversion on coded data to obtain image data,
当至少通过正交反变换计算,根据两个输入值X0和X1,产生输出值Y0,即,X0+X1,和输出值Y1,即,X0-X1时,When an output value Y0, i.e., X0+X1, and an output value Y1, i.e., X0-X1 are produced from two input values X0 and X1, calculated by at least an orthogonal inverse transformation,
所述方法包括:The methods include:
首先,用于把所述X0加到所述X1以产生新X1的第一加法步骤,First, a first addition step for adding said X0 to said X1 to produce a new X1,
其次,用于将用作二进制数的所述X0向MSB侧移一位以产生新X0的移位步骤,和Second, a shift step for shifting said X0 used as a binary number one bit to the MSB side to generate a new X0, and
第三,用于从所述新X0中减去所述新X1以产生更新的X0的减法步骤,其中Third, a subtraction step for subtracting said new X1 from said new X0 to produce an updated X0, wherein
把所述新X1用作输出值Y0,和把所述更新的X0用作输出值Y1。The new X1 is used as the output value Y0, and the updated X0 is used as the output value Y1.
本发明的权利要求88是一种解码方法,用于对编码数据进行正交反变换和信号格式转换以获得图像数据,Claim 88 of the present invention is a decoding method for performing orthogonal inverse transformation and signal format conversion on coded data to obtain image data,
当至少通过正交反变换计算,根据两个输入值X0和X1,产生输出值Y0,即,X0+X1,和输出值Y1,即,X0-X1时,When an output value Y0, i.e., X0+X1, and an output value Y1, i.e., X0-X1 are produced from two input values X0 and X1, calculated by at least an orthogonal inverse transformation,
其特征在于,所述方法包括:It is characterized in that the method comprises:
首先,用于从所述X0中减去所述X1以产生新X0的减法步骤,First, a subtraction step for subtracting said X1 from said X0 to produce a new X0,
其次,用于将用作二进制数的所述X1向MSB侧移一位以产生新X1的移位步骤,和Next, a shifting step for shifting said X1 used as a binary number one bit towards the MSB to produce a new X1, and
第三,用于把所述新X0加到所述新X1以产生新X1的第二加法步骤,其中Third, a second addition step for adding said new X0 to said new X1 to generate new X1, wherein
把所述新X1用作输出值Y0,和把所述更新的X0用作输出值Y1。The new X1 is used as the output value Y0, and the updated X0 is used as the output value Y1.
本发明的权利要求91是一种解码方法,用于在块单元中对编码数据进行正交反变换和信号格式转换以获得图像数据,其特征在于,包括:Claim 91 of the present invention is a decoding method for performing orthogonal inverse transformation and signal format conversion on coded data in block units to obtain image data, characterized in that it includes:
存在范围检测步骤,其中,当将所述编码信息对正交系数分量解码时,只检测非零正交系数分量,而且通过把所述正交系数分量的位置存储在块内,在块单元中检测正交系数分量的存在范围,和Existence range detection step, wherein, when decoding said encoded information to orthogonal coefficient components, only non-zero orthogonal coefficient components are detected, and by storing the positions of said orthogonal coefficient components in blocks, in block units detecting the existence range of the orthogonal coefficient components, and
正交反变换步骤,其中,当通过存在范围检测步骤把除了DC分量之外的系数分量全部设为0时,用所述DC分量或所述DC分量的倍数来代替所述块的象素值,而且当存在除了所述DC分量之外的系数分量时,执行普通正交反变换。an orthogonal inverse transform step in which, when the coefficient components other than the DC component are all set to 0 by the existence range detection step, the pixel value of the block is replaced with the DC component or a multiple of the DC component , and when there are coefficient components other than the DC component, ordinary orthogonal inverse transform is performed.
本发明的权利要求94是一种解码方法,用于在块单元中对编码数据进行正交反变换和信号格式转换以获得图像数据,Claim 94 of the present invention is a decoding method for performing orthogonal inverse transformation and signal format conversion on coded data in block units to obtain image data,
当把输入象素分成水平和垂直两维块单元并通过正交变换转换成正交系数分量,而且利用正交反变换等,解码通过编码所述正交系数分量获得的信息时,When input pixels are divided into horizontal and vertical two-dimensional block units and converted into orthogonal coefficient components by orthogonal transformation, and information obtained by encoding the orthogonal coefficient components is decoded by using orthogonal inverse transformation or the like,
假设把水平或垂直方向称为第一方向,而且把其它方向称为第二方向,和所述两维块具有m×n个系数分量,它包括沿着所述第一方向的m个系数分量和沿着所述第二方向的n个系数分量,Assume that the horizontal or vertical direction is referred to as a first direction, and the other direction is referred to as a second direction, and that the two-dimensional block has m×n coefficient components including m coefficient components along the first direction and n coefficient components along the second direction,
其特征在于,所述方法包括:It is characterized in that the method comprises:
存在范围检测步骤,用于当将所述编码信息解码成正交系数分量时,对于所述m个系数分量单元,沿着所述第一方向检测非零正交系数分量的存在范围,和an existence range detection step of detecting an existence range of non-zero orthogonal coefficient components along the first direction for the m coefficient component units when the encoded information is decoded into orthogonal coefficient components, and
正交反变换选择步骤,其中,提供用于将正交系数分量转换成象素分量的多种正交反变换步骤,而且依赖于由所述存在范围检测步骤检测到的所述范围选择所述正交反变换步骤。an orthogonal inverse transform selection step, wherein a plurality of orthogonal orthogonal transform steps for converting the orthogonal coefficient components into pixel components are provided, and the range is selected depending on the range detected by the existence range detection step Orthogonal inverse transform step.
本发明的权利要求97是一种解码方法,用于在块单元中对编码数据进行正交反变换和信号格式转换以获得图像数据,Claim 97 of the present invention is a decoding method for performing orthogonal inverse transformation and signal format conversion on coded data in block units to obtain image data,
当把输入象素分成水平和垂直两维块单元并通过正交变换转换成正交系数分量,而且利用正交反变换等,解码通过编码所述正交系数分量获得的信息时;假设把水平或垂直方向称为第一方向,而且把其它方向称为第二方向,和所述两维块具有m×n个系数分量,它包括沿着所述第一方向的m个系数分量和沿着所述第二方向的n个系数分量,When the input pixels are divided into horizontal and vertical two-dimensional block units and converted into orthogonal coefficient components by orthogonal transformation, and the information obtained by encoding the orthogonal coefficient components is decoded by using orthogonal inverse transformation or the like; it is assumed that the horizontal Or the vertical direction is called the first direction, and the other directions are called the second direction, and the two-dimensional block has m×n coefficient components, which includes m coefficient components along the first direction and along n coefficient components in the second direction,
提供沿着所述第一方向和所述第二方向的一种或多种正交反变换步骤以将正交系数分量转换成象素分量,providing one or more orthogonal inverse transform steps along said first direction and said second direction to convert orthogonal coefficient components into pixel components,
所述方法包括:The methods include:
第一方向存在范围检测步骤,用于当把所述编码信息解码成正交系数分量时,对于所述m系数分量单元,沿着所述第一方向检测非零正交系数分量的存在范围,A first direction existence range detection step, for when decoding the encoded information into orthogonal coefficient components, for the m coefficient component unit, detect the existence range of non-zero orthogonal coefficient components along the first direction,
第一方向正交反变换选择步骤,用于依赖于由所述第一方向存在范围检测步骤检测到的所述范围,选择所述第一方向正交反变换步骤,a first direction orthogonal inverse transform selection step for selecting said first direction orthogonal inverse transform step depending on said range detected by said first direction presence range detection step,
第二方向存在范围检测步骤,用于在所述第一方向正交反变换之后,对于n个系数分量单元,沿着所述第二方向检测非零正交系数分量的存在范围,和The second direction existence range detection step is used to detect the existence range of non-zero orthogonal coefficient components along the second direction for n coefficient component units after the orthogonal inverse transformation in the first direction, and
第二方向正交反变换选择步骤,用于依赖于由所述第二方向存在范围检测步骤检测到的所述范围,选择所述第二方向正交反变换步骤。A second direction orthogonal inverse transform selection step for selecting said second direction orthogonal inverse transform step depending on said range detected by said second direction presence range detection step.
本发明的权利要求103是如权利要求97所述的解码方法,其特征在于,当执行所述存在范围检测时,在编码期间通过Z形扫描来重新排列正交系数分量的情况下,把要存储在每个正交变换单元中的沿着所述第一方向的存在范围设在所述最后非零正交系数分量的位置上。Claim 103 of the present invention is the decoding method according to
本发明的权利要求109是一种解码方法,用于对编码数据进行正交反变换和信号格式转换以获得图像数据,包括:Claim 109 of the present invention is a decoding method for performing orthogonal inverse transformation and signal format conversion on coded data to obtain image data, comprising:
解码步骤,用于以预定信号格式解码编码的数据,a decoding step for decoding the encoded data in a predetermined signal format,
正交反变换步骤,用于对所述解码数据进行正交反变换,和an orthogonal inverse transform step for performing an orthogonal inverse transform on the decoded data, and
信号格式转换步骤,用于将经历所述正交反变换的以所述预定信号格式的所述图像数据转换成以另一种信号格式的图像数据,其中a signal format converting step of converting said image data in said predetermined signal format subjected to said orthogonal inverse transform into image data in another signal format, wherein
对于在预定范围内的数据,连续执行所述解码步骤、所述正交反变换步骤和所述信号格式转换步骤。For data within a predetermined range, the decoding step, the orthogonal inverse transform step and the signal format conversion step are continuously performed.
本发明的权利要求112是如权利要求109所述的解码方法,其特征在于,以所述预定信号格式的所述图象数据包括亮度、第一色差和第二色差信号,而且在信号格式转换之后的数据包括红、绿和蓝信号。Claim 112 of the present invention is the decoding method as claimed in claim 109, characterized in that said image data in said predetermined signal format includes luminance, first color difference, and second color difference signals, and in the signal format conversion The subsequent data includes red, green and blue signals.
本发明的权利要求115是如权利要求109所述的解码方法,其特征在于,以所述预定信号格式的所述图像数据包括亮度、第一色差和第二色差信号,而且在信号格式转换之后的图像数据包括亮度、第一色差和第二色差信号,它具有与在转换之前不同的结构。Claim 115 of the present invention is the decoding method according to claim 109, characterized in that said image data in said predetermined signal format includes luminance, first color difference and second color difference signals, and after signal format conversion The image data of includes luminance, first color-difference and second color-difference signals, which have a different structure than before conversion.
附图概述Figure overview
图1是示出本发明的第一实施例的方框图;FIG. 1 is a block diagram showing a first embodiment of the present invention;
图2是示出当利用计算机实现本发明的第一实施例时数据流程的示意图;Fig. 2 is a schematic diagram showing data flow when utilizing a computer to realize the first embodiment of the present invention;
图3是示出本发明的第二实施例的方框图;Figure 3 is a block diagram illustrating a second embodiment of the present invention;
图4是示出本发明的第三实施例的方框图;Figure 4 is a block diagram illustrating a third embodiment of the present invention;
图5是示出本发明的第四实施例的方框图;Fig. 5 is a block diagram showing a fourth embodiment of the present invention;
图6是示出本发明的第五实施例的流程图;FIG. 6 is a flowchart illustrating a fifth embodiment of the present invention;
图7是示出本发明的第六实施例的流程图;FIG. 7 is a flowchart illustrating a sixth embodiment of the present invention;
图8是示出本发明的第七实施例的流程图;FIG. 8 is a flowchart showing a seventh embodiment of the present invention;
图9是示出本发明的第八实施例的流程图;FIG. 9 is a flowchart showing an eighth embodiment of the present invention;
图10是示出本发明的第九实施例的流程图;FIG. 10 is a flowchart showing a ninth embodiment of the present invention;
图11是示出本发明的第10实施例的流程图;Fig. 11 is a flowchart showing a tenth embodiment of the present invention;
图12是示出本发明的第11实施例的流程图;Fig. 12 is a flowchart showing an eleventh embodiment of the present invention;
图13是示出根据本发明的第11实施例的第一表格的示图;FIG. 13 is a diagram showing a first table according to an eleventh embodiment of the present invention;
图14是示出获得使用根据本发明的第11实施例的第二表格的方法的示图;FIG. 14 is a diagram showing a method of obtaining a second table using an eleventh embodiment of the present invention;
图15是示出本发明的第12实施例的流程图;Fig. 15 is a flowchart showing a twelfth embodiment of the present invention;
图16是示出本发明的第13实施例的流程图;Fig. 16 is a flowchart showing a thirteenth embodiment of the present invention;
图17是根据本发明的第13实施例的第一表格的示图;FIG. 17 is a diagram of a first table according to a thirteenth embodiment of the present invention;
图18是示出本发明的第14实施例的流程图;Fig. 18 is a flowchart showing a fourteenth embodiment of the present invention;
图19是简单示出根据本发明的第14实施例的第一表格的示图;FIG. 19 is a diagram simply showing a first table according to a fourteenth embodiment of the present invention;
图20是示出本发明的第15实施例的方框图;Fig. 20 is a block diagram showing a fifteenth embodiment of the present invention;
图21是示出本发明的第16实施例的方框图;Fig. 21 is a block diagram showing a sixteenth embodiment of the present invention;
图22是示出本发明的第17实施例的方框图;Fig. 22 is a block diagram showing a seventeenth embodiment of the present invention;
图23是示出本发明的第18实施例的方框图;Fig. 23 is a block diagram showing an eighteenth embodiment of the present invention;
图24是示出当利用计算机实现本发明的第18实施例时数据流程的示意图;Fig. 24 is a schematic diagram showing the flow of data when the eighteenth embodiment of the present invention is realized by a computer;
图25是示出传统图像数据编码的方框图;Fig. 25 is a block diagram showing conventional image data encoding;
图26是示出YUV格式信号的结构的方框图;Fig. 26 is a block diagram showing the structure of a YUV format signal;
图27是示出RGB格式信号的结构的方框图;Fig. 27 is a block diagram showing the structure of an RGB format signal;
图28是示出重排的方框图;Figure 28 is a block diagram illustrating rearrangement;
图29是对于DVC的可变长度码的示图;29 is a diagram for a variable length code of DVC;
图30是示出对于DVC的可变长度编码的示图;FIG. 30 is a diagram illustrating variable length coding for DVC;
图31是示出传统图像信号解码的方框图;Fig. 31 is a block diagram showing conventional image signal decoding;
图32是示出传统可变长度编码方法1的示图;FIG. 32 is a diagram illustrating a conventional variable
图33是示出传统可变长度编码方法2的示图;FIG. 33 is a diagram illustrating a conventional variable
图34是简单地示出计算机的结构的示图;FIG. 34 is a diagram simply showing the structure of a computer;
图35是示出当利用计算机实现传统编码时数据流程的示意图;Fig. 35 is a schematic diagram showing the flow of data when utilizing a computer to implement conventional encoding;
图36是示出当利用计算机实现传统解码时数据流程的示意图;Fig. 36 is a schematic diagram showing the flow of data when utilizing a computer to realize conventional decoding;
图37(a)是示出软盘的物理格式的示图;FIG. 37( a) is a diagram showing the physical format of a floppy disk;
图37(b)是示出容纳软盘的外壳的示图;和Fig. 37 (b) is a diagram showing a casing accommodating a floppy disk; and
图37(c)是将程序记录到软盘并从中再现的示图。Fig. 37(c) is a diagram for recording and reproducing a program to a floppy disk.
执行本发明的最佳模式BEST MODE FOR CARRYING OUT THE INVENTION
下面,参照附图,描述根据本发明的实施例。Hereinafter, referring to the drawings, embodiments according to the present invention will be described.
参照图1和2描述本发明的实施例,第一实施例。An embodiment of the present invention, a first embodiment, is described with reference to FIGS. 1 and 2 .
图1是示出根据第一实施例的编码装置的结构的方框图。在图1中,标号101表示输入端、标号102表示用作重现排列的重排部分、标号103表示信号格式转换部分、标号104表示正交变换部分、标号105表示可变长度编码部分和标号106表示输出端。假设,从输入端101输入的图像信号是RGB格式信号。FIG. 1 is a block diagram showing the structure of an encoding device according to a first embodiment. In FIG. 1, reference numeral 101 denotes an input terminal, reference numeral 102 denotes a rearrangement section for reproducing arrangement, reference numeral 103 denotes a signal format conversion section, reference numeral 104 denotes an orthogonal transformation section, reference numeral 105 denotes a variable-length coding section, and reference numeral 106 represents an output terminal. Assume that the image signal input from the input terminal 101 is an RGB format signal.
由重排部分102重排从输入端101输入的RGB格式信号。把经重排的RGB格式信号送到信号格式转换部分103,而且转换成YUV格式信号。由正交变换部分104正交变换YUV格式信号,而且获得正交变换系数。由可变长度编码部分105对正交变换系数进行Huffman编码。此时,适当地量化上述正交变换系数,从而在所有同步块中的代码数量不超过某一值。从输出端106输出经编码的图像信号。The RGB format signal input from the input terminal 101 is rearranged by the rearrangement section 102 . The rearranged RGB format signal is sent to the signal format conversion section 103, and converted into a YUV format signal. The YUV format signal is orthogonally transformed by the orthogonal transformation section 104, and an orthogonal transformation coefficient is obtained. The orthogonal transform coefficients are Huffman encoded by the variable length encoding section 105 . At this time, the above-mentioned orthogonal transform coefficients are appropriately quantized so that the number of codes in all sync blocks does not exceed a certain value. The encoded image signal is output from the output terminal 106 .
图2示出当利用计算机执行本实施例的处理时数据流的示图。在图2中,标号201表示外部存储器、标号202表示CPU和标号203表示数据总线。FIG. 2 is a diagram showing the flow of data when the processing of the present embodiment is executed with a computer. In FIG. 2,
正如传统例子的情况,把输入RGB格式信号映射在外部存储器201的区域中(与图2中的标号251所示的虚线相对应)。对于映射在外部存储器201中的RGB格式信号,把根据重排模式存储在地址中的象素数据传递到CPU202(标号252)。在CPU202处,顺序执行正交变换和可变长度编码。一系列这些计算能在同步块中,即,在30个块单元中被执行,当假设对于一个象素的信息量是1字节,需要30×8×8=1920字节,这些字节可保存在CPU内部超高速缓冲存储器中。在用于计算的寄存器和超高速缓冲存储器之间数据传递时间大大短于在寄存器和外部存储器201之间的时间。因此,可以连续执行信号格式转换和正交变换,而不运用外部存储器。通过数据总线203输出经编码的图像信号(标号254)。As in the case of the conventional example, the input RGB format signal is mapped in the area of the external memory 201 (corresponding to the dotted line indicated by reference numeral 251 in FIG. 2). For the RGB format signal mapped in the
如上所述,与如图35所示的传统的例子相比,在第一实施例中,在信号格式转换之后,可以省略将数据一次写回到存储器以再次执行重排的操作和再次从存储器读取数据以执行正交变换和可变长度编码的操作。结果,不需要在CPU和外部存储器之间的数据传递,从而大大缩短处理时间。As described above, compared with the conventional example shown in FIG. 35, in the first embodiment, after the signal format conversion, the operation of once writing data back to the memory to perform rearrangement again and reloading from the memory again can be omitted. Operations that read data to perform orthogonal transformation and variable length encoding. As a result, data transfer between the CPU and external memory is not required, thereby greatly reducing processing time.
在本实施例中,将RGB格式用作输入图像信号;然而,即使当输入信号是YUV422分量信号,而且由信号转换部分将YUV422分量信号转换成YUV411分量信号,也可以获得相同效果。In this embodiment, the RGB format is used as the input image signal; however, even when the input signal is a YUV422 component signal and the YUV422 component signal is converted into a YUV411 component signal by the signal conversion section, the same effect can be obtained.
可以产生记录媒体,诸如,磁记录媒体或光记录媒体,其中记录了用于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行与上述相同的操作。A recording medium such as a magnetic recording medium or an optical recording medium may be produced in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment is recorded, and the same operations as above can be performed with such a medium.
上述实施例主要与本发明的权利要求1、2和3相对应。The above-described embodiments mainly correspond to
参照图3,描述本发明的实施例,第二实施例。图3是示出根据第二实施例的编码装置的结构的方框图。如图3上述的标号301是象素值输入部分、标号302表示象素块生成部分、标号303表示象素值检测部分、标号304表示正交变换部分、标号305表示AC分量零设定部分和标号306表示输出部分。Referring to Fig. 3, an embodiment of the present invention, a second embodiment, is described. Fig. 3 is a block diagram showing the structure of an encoding device according to a second embodiment. As shown in Fig. 3, the
接着,在下面描述第二实施例的操作时,也将同时描述根据本发明的编码方法的实施例的操作。Next, when the operation of the second embodiment is described below, the operation of the embodiment of the encoding method according to the present invention will also be described simultaneously.
在本实施例中,首先由块生成部分302将从象素值输入部分301以象素为单元输入的视频数据分成两维块,它包括水平8象素和垂直8象素。接着,象素值检测部分303执行检测以判断在每个块中的所有象素值是否近似相等。结果在块中的象素值几乎相等的情况下,由AC分量零设定部分305将块中的给定象素值或它的倍数设为DC系数分量,而且将所有其它AC系数分量值设为0,并由输出部分306执行输出。相反,在块中的象素值不近似相等的情况下,正交变换部分304执行普通两维正交变换,而且由输出部分306执行输出。In this embodiment, the video data input from the pixel
当在块中的象素值近似相等时,在上述第二实施例中省略正交变换计算,从而可以大大减小正交变换所需的计算量。此外,在AC分量零设定部分305处,可以将从在块中的多个象素值获得的计算结果用作DC系数分量值。此外,一般,采用离散余弦变换(DCT)作为正交变换。When the pixel values in a block are approximately equal, the orthogonal transform calculation is omitted in the second embodiment described above, so that the amount of calculation required for the orthogonal transform can be greatly reduced. Furthermore, at the AC component zero
可以产生记录媒体,诸如磁记录媒体或光记录媒体,其中记录了对于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行如上所述的相同操作。A recording medium, such as a magnetic recording medium or an optical recording medium, is recorded in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment can be produced, and the same operations as described above can be performed with such a medium.
上述实施例主要与本发明的权利要求10至12相对应。The above-described embodiments mainly correspond to
参照图4,描述第三个发明的实施例,第三实施例。Referring to Fig. 4, a third embodiment of the invention, the third embodiment, will be described.
图4是示出根据第三实施例的编码装置的结构的方框图。标号401表示第一正交变换部分、标号402表示图像值检测部分、标号403表示第二正交变换部分和标号404表示AC分量零设定部分。Fig. 4 is a block diagram showing the structure of an encoding device according to a third embodiment.
如图4所示的象素值输入部分301和块生成部分302的操作与参照图3所述的相同。The operations of the pixel
首先由第一正交变换部分401沿着水平方向对在块中的象素值进行正交变换。接着,象素值检测部分402检测象素值(系数分量)、经历沿着水平方向、垂直方向的正交变换并检测在正交变换单元中沿着垂直方向的所有系数分量值是否近似相等。First, the pixel values in the block are subjected to orthogonal transformation in the horizontal direction by the first
在正交变换单元中沿着垂直方向的系数分量值近似相等的情况下,由AC分量零设定部分404将在上述正交变换单元中沿着垂直方向的给定系数分量值或它的倍数设定为DC系数分量,而且将所有其它AC系数分量值设为0,然后由输出部分306执行输出。相反,在正交变换单元中沿着垂直方向的上述系数分量值不近似相等的情况下,第二正交变换部分403执行普通正交变换,而且由输出部分306执行输出。In the case where the coefficient component values along the vertical direction in the orthogonal transform unit are approximately equal, the AC component zero
在本实施例中,进行选择以确定在沿着水平或垂直方向的第二次两维正交变换时执行的正交变换,是否执行正交变换计算。由于通过第一正交变换信息通常集中在系数分量的某些部分上,所以在第二正交变换时大量出现只具有DC分量的变换单元。因此,可以大大减小实际执行正交变换计算的次数。In this embodiment, a selection is made to determine whether or not to perform orthogonal transformation calculation for the orthogonal transformation performed at the time of the second two-dimensional orthogonal transformation along the horizontal or vertical direction. Since information is generally concentrated on certain parts of the coefficient components by the first orthogonal transform, transform units having only DC components appear in large numbers at the time of the second orthogonal transform. Therefore, the number of times of actually performing orthogonal transform calculations can be greatly reduced.
可以产生记录媒体,诸如磁记录媒体或光记录媒体,其中记录了用于根据本实施例,利用计算机执行所有装置或部分装置的功能的程序,而且利用这种媒体可以执行与上述相同的操作。A recording medium such as a magnetic recording medium or an optical recording medium may be produced in which a program for executing the functions of all or part of the devices with a computer according to the present embodiment is recorded, and the same operations as above can be performed with this medium.
上述实施例主要与本发明的权利要求13至15相对应。The above-described embodiments mainly correspond to
下面,参照图5,描述第四发明的实施例,第四实施例。Next, referring to FIG. 5, an embodiment of the fourth invention, the fourth embodiment, will be described.
图5是示出根据第四实施例的编码装置的结构的方框图。在图5中,标号501表示象素值检测部分、标号502表示DC/AC分量零设定部分。Fig. 5 is a block diagram showing the structure of an encoding device according to a fourth embodiment. In FIG. 5,
如图5所示,象素值输入部分301、块生成部分302和第一正交变换部分401的操作与如图4所示的相同。As shown in FIG. 5, the operations of the pixel
象素值检测部分501检测象素值(系数分量)、经历沿着水平方向、垂直方向的垂直变换并检测在正交变换单元中沿着垂直方向的所有系数分量值是否近似为零。The pixel
在正交变换单元中沿着垂直方向的系数分量值近似为零的情况下,由DC/AC分量零设定部分502将在正交变换单元中沿着垂直方向的上述DC系数分量值设为零,并由输出部分306执行输出。相反,在正交变换单元中沿着垂直方向的上述系数分量值不近似为零的情况下,第二正交变换部分403执行普通的正交变换,而且由输出部分306执行输出。In the case where the coefficient component value along the vertical direction in the orthogonal transform unit is approximately zero, the DC/AC component zero
同样,在本实施例中,作出选择以确定在沿着水平或垂直方向第二次两维正交变换时执行的正交变换,是否执行正交变换计算。一般在第二次正交变换期间,大量出现其中所有系数分量为零的正交变换单元。因此,可以大大减小实际执行正交变换计算的次数。Also, in this embodiment, a selection is made to determine whether or not to perform orthogonal transformation calculation for the orthogonal transformation performed at the time of the second two-dimensional orthogonal transformation along the horizontal or vertical direction. Typically during the second orthogonal transform, orthogonal transform units in which all coefficient components are zero occur in large numbers. Therefore, the number of times of actually performing orthogonal transform calculations can be greatly reduced.
可以产生记录媒体,诸如,磁记录媒体或光记录媒体,其中记录了用于根据本实施例,利用计算机执行所有装置或部分装置的功能,而且利用这种媒体可以执行与上述相同的操作。A recording medium, such as a magnetic recording medium or an optical recording medium, is recorded in which functions for executing all or part of the means with a computer according to the present embodiment can be produced, and the same operations as above can be performed with this medium.
上述实施例主要与本发明的权利要求16至18相对应。The above-described embodiments mainly correspond to
在第二、第三和第四实施例中,当施于能够同时计算K个象素或K个正交系数的计算装置时,通过改变,可以进一步提供效率,从而在K个象素单元中,执行在上述实施例中的检测等。In the second, third and fourth embodiments, when applied to a calculation device capable of simultaneously calculating K pixels or K orthogonal coefficients, the efficiency can be further improved by changing, so that in K pixel units , perform the detection and the like in the above-described embodiments.
此外,本发明可用于任何给定的图像信号,而且相对于维数和正交变换的类型,还可应用除了实施例的那些之外的其它任一给定方法。此外,可以改变对于两维正交变换的水平和垂直计算的序列。Furthermore, the present invention can be applied to any given image signal, and any given method other than those of the embodiment can also be applied with respect to the number of dimensions and the type of orthogonal transformation. Furthermore, the sequence of horizontal and vertical calculations for two-dimensional orthogonal transforms can be changed.
此外,还可通过多种方法来实现方框图所述的实施例的结构和它们的处理序列。In addition, the structures of the embodiments described in the block diagrams and their processing sequences can also be realized by various methods.
参照图6,描述第五个发明的实施例,第五实施例。Referring to Fig. 6, a fifth embodiment of the invention, the fifth embodiment, will be described.
图6是示出根据第五实施例的加法/减法的流程图。如图6所示的标号601表示第一输入步骤、标号602表示第二输入步骤、标号603表示第一计算步骤、标号604表示第二计算步骤、标号605表示第三计算步骤、标号606表示第一输出步骤和标号607表示第二输出步骤。Fig. 6 is a flowchart showing addition/subtraction according to the fifth embodiment. The
接着,描述本实施例的操作。Next, the operation of the present embodiment is described.
首先,在第一输入步骤601中,将输入值X0设在寄存器A中,而且在第二输入步骤602中,将输入值X1设在寄存器B中。在第一计算步骤603中,把寄存器A的输出(输入值X0)加到寄存器B的输出(输入X1),而且将结果(新的X1)设在寄存器B中。在第二计算步骤604中,加倍(double)寄存器A的输出(输入值X0),而且将结果(新X0)设在寄存器A中。在第三计算步骤605中,从寄存器A的输出(新的X0)中减去寄存器B的输出(新的X1),而且将结果(更新的X0)设在寄存器A中。最后,在第一输出步骤606中,输出寄存器B的输出作为输出值Y0,而且在第二输出步骤607中,输出寄存器A的输出作为输出值Y1。First, in the
如上所述,在本实施例中,只将两个寄存器,寄存器A和B用来实现蝶形计算。出于这个原因,只用八个寄存器,就可实现8维正交变换所需的4组蝶形计算。在这种情况下,通过利用最新的MMX-可兼容寄存器,可实现正交变换,而不必保存在存储器上。此外,由于对于正交变换,重复上述加法和减法计算,所以在本发明的实施例中的输出可以变成对于下一个加法和减法计算的输入。As mentioned above, in this embodiment, only two registers, registers A and B, are used to realize the butterfly calculation. For this reason, with only eight registers, the four sets of butterfly calculations required for 8-dimensional orthogonal transformations can be realized. In this case, by utilizing the latest MMX-compatible registers, an orthogonal transformation can be realized without saving on the memory. Furthermore, since the above-mentioned addition and subtraction calculations are repeated for the orthogonal transformation, the output in the embodiment of the present invention can become an input for the next addition and subtraction calculation.
可以产生记录媒体,诸如,磁记录媒体或光记录媒体,其中记录了用于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行与上述相同的操作。A recording medium such as a magnetic recording medium or an optical recording medium may be produced in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment is recorded, and the same operations as above can be performed with such a medium.
上述实施例主要与本发明的权利要求22至24和73至75相对应。The above-described embodiments mainly correspond to
参照图7,描述第六发明的实施例,第六实施例。图7是示出根据第六实施例的加法/减法的流程图。虽然如图7所示的结构与如图6所示的大致相同,但是在图中的标号703表示第一计算步骤、标号704表示第二计算步骤和标号705表示第三计算步骤。Referring to Fig. 7, an embodiment of the sixth invention, the sixth embodiment, will be described. Fig. 7 is a flowchart showing addition/subtraction according to the sixth embodiment. Although the structure shown in FIG. 7 is substantially the same as that shown in FIG. 6, reference numeral 703 in the figure denotes a first calculation step, reference numeral 704 denotes a second calculation step, and reference numeral 705 denotes a third calculation step.
在本实施例中,首先,在第一输入步骤601中,将输入值X0设在寄存器A中,而且在第二输入步骤602中,将输入值X1设在寄存器B中。在第一计算步骤703中,从寄存器A的输出(输入值X0)中减去寄存器B的输出(输入值X1),而且把结果(新X0)设在寄存器A中。在第二计算步骤704中,加倍寄存器B的输出(输入值X1),而且将结果(新X1)设在寄存器B中。在第三计算步骤705中,把寄存器A的输出(新X0)加到寄存器B的输出(新X1),而且把结果(更新的X1)设在寄存器B中。最后,在第一输出步骤606中,输出寄存器B的输出作为输出值Y0,而且在第二输出步骤607中,输出寄存器A的输出作为输出值Y1。In this embodiment, first, in the
正如第五实施例的情况,在本实施例中,只用两个寄存器就可实现蝶形计算。As in the case of the fifth embodiment, in this embodiment, butterfly calculation can be realized with only two registers.
可以产生记录媒体,诸如,磁记录媒体或光记录媒体,其中记录了用于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行与上述相同的操作。A recording medium such as a magnetic recording medium or an optical recording medium may be produced in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment is recorded, and the same operations as above can be performed with such a medium.
上述实施例主要与本发明的权利要求25至27和76至78相对应。The above-described embodiments mainly correspond to claims 25 to 27 and 76 to 78 of the present invention.
参照图8,描述第七发明的实施例,第七实施例。图8是输出根据第七实施例的加法/减法的流程图。在本实施例中,将第五实施例的第二计算步骤604改成第二计算步骤804。首先,在第一输入步骤601中,将输入值X0设在寄存器A中,而且在第二输入步骤602中,将输入值X1设在寄存器B中。在第一计算步骤603中,把寄存器A的输出加到寄存器B的输出(X1),而且把结果(新X1)设在寄存器B中。在第二计算步骤704中,把寄存器A的输出(输入值X0加到寄存器A的输出(输入值X0),而且把结果(新X0)设在寄存器A中。在第三计算步骤605中,从寄存器A的输出(新X0)中减去寄存器B的输出(新X1),而且把结果(更新的X0)设在寄存器A中。最后,在第一输出步骤606中,输出寄存器B的输出作为输出值Y0,而且在第二输出步骤607中,输出寄存器A的输出作为输出值Y1。Referring to Fig. 8, an embodiment of the seventh invention, the seventh embodiment, will be described. Fig. 8 is a flow chart outputting addition/subtraction according to the seventh embodiment. In this embodiment, the second calculation step 604 in the fifth embodiment is changed to a
如上所述,在本实施例中,通过附加计算实现第五实施例的加倍计算。由于加法计算是计算机的基本功能,而且可以高速完成,所以可以高速完成蝶形计算。此外,在CPU能够同时执行两个指令的情况下,很有可能与另一个指令同时执行加法指令,从而可以进一步提高计算效率。As described above, in this embodiment, the double calculation of the fifth embodiment is realized by additional calculation. Since addition calculation is a basic function of a computer and can be done at high speed, butterfly calculation can be done at high speed. Furthermore, in cases where the CPU is capable of executing two instructions simultaneously, it is highly possible to execute the addition instruction concurrently with another instruction, which can further improve computational efficiency.
可以产生记录媒体,诸如,磁记录媒体或光记录媒体,其中记录了用于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行与上述相同的操作。A recording medium such as a magnetic recording medium or an optical recording medium may be produced in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment is recorded, and the same operations as above can be performed with such a medium.
上述实施例主要与本发明的权利要求28至30和79至81相对应。The above-described embodiments mainly correspond to
参照图9,描述第八发明的实施例,第八实施例。Referring to Fig. 9, an eighth embodiment, an embodiment of the eighth invention, will be described.
图9是示出根据第八实施例的加法/减法的流程图。在本实施例中,将第六实施例的第二计算步骤704改成第二计算步骤904。首先,在第一输入步骤601中,将输入值X0设在寄存器A中,在第二输入步骤602中,将输入值X1设在寄存器B中。在第一计算步骤703中,从寄存器A的输出(输入值X0)中减去寄存器B的输出(输入值X1),而且将结果(新X0)设在寄存器A中。在第二计算步骤904中,把寄存器B的输出(输入值X1)加到寄存器B的输出(输入值X1),而且把结果(新X1)设在寄存器B中。在第三计算步骤705中,把寄存器A的输出(新X0)加到寄存器B的输出(新X1),而且把结果(更新的X1)设在寄存器B中。最后,在第一输出步骤606中,输出寄存器B的输出作为输出值Y0,而且在第二输出步骤607中,输出寄存器A的输出作为输出值Y1。Fig. 9 is a flowchart showing addition/subtraction according to the eighth embodiment. In this embodiment, the second calculation step 704 in the sixth embodiment is changed to a second calculation step 904 . First, in the
在本实施例中,还由高速加法计算完成第五实施例的加倍计算。In this embodiment, the doubling calculation of the fifth embodiment is also completed by high-speed addition calculation.
可以产生记录媒体,诸如,磁记录媒体或光记录媒体,其中记录了用于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行与上述相同的操作。A recording medium such as a magnetic recording medium or an optical recording medium may be produced in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment is recorded, and the same operations as above can be performed with such a medium.
上述实施例主要与本发明的权利要求31至33和82至84相对应。The above-described embodiments mainly correspond to
参照图10,描述第九发明的实施例,第九实施例。Referring to Fig. 10, an embodiment of the ninth invention, the ninth embodiment, will be described.
图10是示出根据第九实施例的加法/减法的流程图。在本实施例中,将第五实施例的第二计算步骤604改成第二计算步骤1004。首先,在第一输入步骤601中,把输入值X0设在寄存器A中,而且在第二输入步骤602中,把输入值X1设在寄存器B中。在第一计算步骤603中,把寄存器A的输出(输入值X0)加到寄存器B的输出(输入X1),而且把结果(新X1)设在寄存器B中。在第二计算步骤1004中,将寄存器A的输出(输入值X0)移一位到MSB侧,而且把结果(新X0)设在寄存器A中。在第三计算步骤605中,从寄存器A的输出(新X0)中减去寄存器B的输出(新X1),而且把结果(更新的X0)设在寄存器A中。最后,在第一输出步骤606中,输出寄存器B的输出作为输出值Y0,而且在第二输出步骤607中,输出寄存器A的输出作为输出值Y1。Fig. 10 is a flowchart showing addition/subtraction according to the ninth embodiment. In this embodiment, the second calculation step 604 in the fifth embodiment is changed to the second calculation step 1004 . First, in the
如上所述,在本实施例中,通过简单的移位计算,完成第五实施例的加倍计算。由于移位计算是计算机的基本功能,而且可以高速实现,所以高速完成蝶形计算。As described above, in this embodiment, the doubling calculation of the fifth embodiment is performed by simple shift calculation. Since the shift calculation is a basic function of a computer and can be realized at high speed, the butterfly calculation is completed at high speed.
可以产生记录媒体,诸如,磁记录媒体或光记录媒体,其中记录了用于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行与上述相同的操作。A recording medium such as a magnetic recording medium or an optical recording medium may be produced in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment is recorded, and the same operations as above can be performed with such a medium.
上述实施例主要与本发明的权利要求34至36和85至87相对应。The above-described embodiments mainly correspond to
参照图11,描述第十发明的实施例,第十实施例。Referring to Fig. 11, an embodiment of the tenth invention, the tenth embodiment, will be described.
图11是示出根据第十实施例的加法/减法的流程图。在本实施例中,将第六实施例的第二计算步骤704改成第二计算步骤1104。首先,在第一输入步骤601中,把输入值X0设在寄存器A中,而且在第二输入步骤602中,把输入值X1设在寄存器B中。在第一计算步骤703中,从寄存器A的输出(输入X0)中减去寄存器B的输出(输入值X1),而且把结果(新X0)设在寄存器A中。在第二计算步骤1104中,将寄存器B的输出(输入值X1)向MSB侧移一位,而且把结果(新X1)设在寄存器B中。在第三计算步骤705中,把寄存器A的输出(新X0)加到寄存器B的输出(新X1),而且把结果(更新的X1)设在寄存器B中。最后,在第一输出步骤606中,输出寄存器B的输出作为输出值Y0,而且在第二输出步骤607中,输出寄存器A的输出作为输出值Y1。Fig. 11 is a flowchart showing addition/subtraction according to the tenth embodiment. In this embodiment, the second calculation step 704 in the sixth embodiment is changed to the second calculation step 1104 . First, in the
在本实施例中,还由高速移位计算来完成第五实施例的加倍计算。In this embodiment, the doubling calculation of the fifth embodiment is also performed by high-speed shift calculation.
如上所述,在本发明的第五至第十实施例中,通过只用两个寄存器,可以完成蝶形计算,即,用于正交变换的基本计算,而且可以使将计算结果保存在存储器上降至最小,从而可以大大缩短计算时间。As described above, in the fifth to tenth embodiments of the present invention, by using only two registers, the butterfly calculation, that is, the basic calculation for the orthogonal transformation can be performed, and the calculation result can be stored in the memory. rise to a minimum, which can greatly reduce the calculation time.
通过上述实施例之外的其它方法,可以实现根据本发明的运用加倍计算(包括加法计算和移位计算)的方法;除了只用软件实现之外,还可用硬件来实现。此外,在实际正交变换计算中,除了本发明的基本技术,可以附加与要执行的正交变换相对应的各种计算。The method of using doubling calculations (including addition calculations and shift calculations) according to the present invention can be implemented by other methods than the above-mentioned embodiments; in addition to only software implementation, it can also be implemented by hardware. Furthermore, in actual orthogonal transform calculation, besides the basic technique of the present invention, various calculations corresponding to the orthogonal transform to be performed can be added.
不仅可将在第五至第十实施例中所述的正交变换方法应用于对于编码的正交变换,还可以完全相同的方法应用于对于解码的正交反变换。Not only the orthogonal transform method described in the fifth to tenth embodiments can be applied to the orthogonal transform for encoding, but also the exact same method can be applied to the orthogonal inverse transform for decoding.
可以产生记录媒体,诸如,磁记录媒体或光记录媒体,其中记录了用于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行与上述相同的操作。A recording medium such as a magnetic recording medium or an optical recording medium may be produced in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment is recorded, and the same operations as above can be performed with such a medium.
上述实施例主要与本发明的权利要求37至39和88至90相对应。The above-described embodiments mainly correspond to
参照图12至14,描述第11发明的实施例,第11实施例。An eleventh embodiment, an embodiment of the eleventh invention, will be described with reference to Figs. 12 to 14 .
根据本发明,在下列实施例中的可变长度码是其中一个码字的代码长度的最大值(如图29所示)是16的代码,而且由来自码字的首部的8位来唯一确定代码长度s。According to the present invention, the variable length code in the following embodiments is a code in which the maximum value (as shown in FIG. 29 ) of the code length of one code word is 16, and is uniquely determined by 8 bits from the head of the code word code length s.
图12是示出根据本实施例的可变长度解码方法的流程图。FIG. 12 is a flowchart showing a variable length decoding method according to the present embodiment.
当输入码字时,运用来自首部的8位数据作为第一表格访问数据,执行对第一表格的访问。在第一表格中,唯一确定输入8位数据的代码长度s。当s≤8时,输出作为代码长度的零游程和值以及要解码的数据。当码字是EOB,例如,设为具有零游程的127,从而将它识别为EOB。When a code word is input, access to the first table is performed using 8-bit data from the header as first table access data. In the first table, the code length s of input 8-bit data is uniquely determined. When s ≤ 8, output the run-sum value of zero as the code length and the data to be decoded. When the codeword is EOB, for example, it is set to 127 with zero run, thereby identifying it as EOB.
例如,当码字是“01111100110011”,获得来自码字的首部的8位,即,“01111100”。当将这输入到第一表格时,s=5,获得零游程=1和值-1。同时,码字是“01111”,从而完成对码字的解码。For example, when the codeword is "01111100110011", 8 bits from the header of the codeword, ie, "01111100", are obtained. When entering this into the first table, s=5, zero runs = 1 and a value of -1 is obtained. At the same time, the code word is "01111", thereby completing the decoding of the code word.
此外,当s≥9,输出用于获得对第二表格的访问的屏蔽(mask)模式和偏置值,以及代码长度s。屏蔽模式和偏置值相对于值s是唯一的。In addition, when s≥9, a mask pattern and offset value for obtaining access to the second table, and a code length s are output. Masking patterns and bias values are unique with respect to value s.
图13是示出在详细参照第一表格之前和之后的操作示图。参照第一表格的结构,当输入值在“00000000”至“11011111”的范围内,代码长度不大于8位;因此,从第一表格示出代码长度、零游程和值(输出1)。FIG. 13 is a diagram showing operations before and after referring to the first table in detail. With reference to the structure of the first table, when the input value is in the range of "00000000" to "11011111", the code length is not greater than 8 bits; therefore, the code length, zero run and value (output 1) are shown from the first table.
换句话说,当输入值是在“11100000”至“11111101”的范围内时,确定代码长度s;然而,由于s≥9,所以不能只用输入值来输出经解码数据。此时,输出用于获得对第二表格的访问的屏蔽模式和偏置值(输出2)。In other words, when the input value is in the range of "11100000" to "11111101", the code length s is determined; however, since s≥9, decoded data cannot be output using only the input value. At this time, the mask pattern and offset value for gaining access to the second table are output (output 2).
当输入值是“11111110”时,13位代码的低阶6位直接成为零游程值,而且值为0(输出3)。另一方面,当输入值是“11111111”,通过简单的计算,可从16位代码的低阶9位获得该值,而且零游程是0(输出4)。When the input value is "11111110", the low-
图14是示出在第一表格的输出、要获得的码字和第二表格之间关系的示图。下面描述当s≥9时获得解码数据的方法。Fig. 14 is a diagram showing the relationship between the output of the first table, the codeword to be obtained, and the second table. A method of obtaining decoded data when s≥9 is described below.
构成第二表格,从而以码字的递增序列,排列代码长度为9至13(除了输出3之外)的码字的地址(初始值:0)和输出值。The second table is constituted so that addresses (initial value: 0) and output values of codewords having code lengths of 9 to 13 (except output 3) are arranged in an increasing sequence of codewords.
最新获得的s位码字经历屏蔽模式,即,第一表格的输出,和AND计算。通过此刻屏蔽获得的值t(图中的虚线部分)是在具有相同代码长度的码字内唯一确定的值。接着,利用根据第一表格的代码长度,唯一确定的偏置f,计算a=f+t。当把a输入到第二表格,可以唯一获得与其相对应的码字的输出,即,零游程和值。The newly obtained s-bit codeword is subjected to masking mode, ie, output of the first table, and AND calculation. The value t obtained by masking at this moment (dotted line portion in the figure) is a uniquely determined value within codewords having the same code length. Next, a=f+t is calculated using the uniquely determined offset f according to the code length in the first table. When a is input into the second table, the output of the codeword corresponding to it can be uniquely obtained, that is, the zero-run sum value.
当例如,解码码字“1111011110”,发生下列情况。When, for example, the codeword "1111011110" is decoded, the following happens.
首先,获得来自首部的8位数据,即,“11110111”。模式“11110111的代码长度是10;而且与其相对应的屏蔽模式和偏置值分别是“11111”和32。First, 8-bit data from the header, ie, "11110111", is obtained. The code length of the pattern "11110111 is 10; and the corresponding mask pattern and offset value are "11111" and 32, respectively.
由于代码长度是10,所以发现码字是“1111011110”。因此,屏蔽值t是屏蔽模式“11111”和“11110”的AND,即,30。Since the code length is 10, the code word is found to be "1111011110". Therefore, the mask value t is the AND of the mask patterns "11111" and "11110", ie, 30.
到第二表格的输入地址变成f+t=30+32=62。此时的输出是零游程0和值22,从而解码码字“1111011110”。The input address to the second table becomes f+t=30+32=62. The output at this point is a zero run of 0 and a value of 22, thus decoding the codeword "1111011110".
在本实施例中的可变长度码中,出现具有代码长度为8或更小的代码的概率大约为90%。因此,由一个表格参考操作解码的概率大约是90%;即使在其它情况下,可由两个参考操作完成解码。此外,由于输出1和输出2都需要3比特,所以第一表格的尺寸变成3×28=768比特。另一方面,第二表格的尺寸是2×128=256比特,这是因为输入地址是在0至128的范围内,而且参数,即,零游程和值,需要2比特。两个表格的尺寸总和是1千比特,而且可将它充分地存储在超高速缓冲存储器中。此外,在输出3和输出4的情况下,可通过简单的计算来获得零游程和值,如果已知代码长度的话。In the variable-length codes in this embodiment, the probability of occurrence of a code having a code length of 8 or less is about 90%. Therefore, the probability of decoding by one table reference operation is about 90%; even in other cases, decoding can be done by two reference operations. Furthermore, since both
如上所述,在第11实施例中,当解码可变长度代码时,首先获得来自码字首部的8位数据,而且参照表格;如果代码长度为9比特或更多,那么再次参照表格,从而可以获得经解码的数据。此时所需的处理是以大约90%概率的一次表格访问(最大两次),最大执行两次分支指令(一般一次),以及简单的计算。As described above, in the eleventh embodiment, when decoding a variable-length code, first obtain 8-bit data from the codeword header, and refer to the table; if the code length is 9 bits or more, then refer to the table again, thereby Decoded data can be obtained. The processing required at this time is one table access (maximum two times) with a probability of about 90%, maximum execution of two branch instructions (generally one time), and simple calculation.
因此,根据本实施例,与在解释传统技术时描述的可变长度解码方法1相比,可以大大减小分支指令执行次数。此外,与可变长度解码方法2相比,参照的表格尺寸足够小,而将要访问的表格存储在超高速缓冲存储器中的概率很高,从而可以大大减小从外部存储器传递表格数据的时间。结果,与可变长度解码方法1和2相比,可以更高的速率来执行解码计算。Therefore, according to the present embodiment, compared with the variable-
可以产生记录媒体,诸如,磁记录媒体或光记录媒体,其中记录了用于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行与上述相同的操作。A recording medium such as a magnetic recording medium or an optical recording medium may be produced in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment is recorded, and the same operations as above can be performed with such a medium.
上述实施例主要与本发明的权利要求40至42相对应。The above-described embodiments mainly correspond to claims 40 to 42 of the present invention.
参照图15,描述第12发明的实施例,第12实施例。Referring to Fig. 15, an embodiment of the twelfth invention, a twelfth embodiment, will be described.
图15是示出根据第12实施例的可变长度解码方法的流程图。本实施例采用具有如图34所示的结构的计算机,而且寄存器的尺寸为32位。Fig. 15 is a flowchart showing a variable length decoding method according to the twelfth embodiment. This embodiment employs a computer having the structure shown in Fig. 34, and the size of the register is 32 bits.
首先,将来自存储在外部存储器3401中的码字串的首部的32位数据装在寄存器A中,同时码字串在MSB(最高有效位),而且设定32为其余代码长度L。接着,将寄存器A的内容复制到寄存器B,而且寄存器B经历24位右逻辑移位。通过这个操作,从码字串获得8位数据。First, the 32-bit data from the head of the code word string stored in the
通过将8位数据用作表格参考地址(的偏置)可以访问第一表格,而且执行根据第一实施例的预定解码操作,以获得代码长度s和解码数据。在解码之后,在寄存器A处执行s位左逻辑移位,从而将通过从L中减去s获得的值设为新L。通过这种操作,在删除之前立即解码码字。The first table can be accessed by using 8-bit data as (the offset of) the table reference address, and a predetermined decoding operation according to the first embodiment is performed to obtain the code length s and decoded data. After decoding, a left logical shift of s bits is performed at register A, setting the value obtained by subtracting s from L as new L. With this operation, the codeword is decoded immediately before erasure.
重复这种操作,而且如果L小于16,那么从外部存储器340获得连续码字,而且与保留在寄存器A中的码字串相结合,以形成新的码字串。重复该操作,直至出现EOB。This operation is repeated, and if L is less than 16, successive codewords are obtained from the external memory 340 and combined with the string of codewords held in register A to form a new string of codewords. Repeat this operation until EOB occurs.
在本实施例中,寄存器的大小是32位;然而,通过利用由Intel公司揭示的MMX寄存器(64位)可以实现这。在这种情况下,首先将64位码字装入寄存器中;当剩余代码长度小于32,应只从外部存储器获得32位数据,而且其它部分与32位寄存器的相同。通过利用MMX寄存器,可使对于每个码字组的存储器访问次数近似减半,从而可以更高的速度执行可变长度解码。In the present embodiment, the size of the register is 32 bits; however, this can be realized by using the MMX register (64 bits) disclosed by Intel Corporation. In this case, first load the 64-bit code word into the register; when the remaining code length is less than 32, only 32-bit data should be obtained from the external memory, and the other parts are the same as those of the 32-bit register. By utilizing the MMX registers, the number of memory accesses per codeword group can be approximately halved, allowing variable-length decoding to be performed at higher speeds.
可以产生记录媒体,诸如磁记录媒体或光记录媒体,其中记录了对于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行如上所述的相同操作。A recording medium, such as a magnetic recording medium or an optical recording medium, is recorded in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment can be produced, and the same operations as described above can be performed with such a medium.
上述实施例主要与本发明的权利要求43至45相对应。The above-described embodiments mainly correspond to claims 43 to 45 of the present invention.
参照图16和17,描述第13发明的实施例,第13实施例。Referring to Figs. 16 and 17, an embodiment of the thirteenth invention, a thirteenth embodiment, will be described.
图16是示出根据本实施例的可变长度解码方法的流程图,而图17是示出根据本实施例的第一表格的示图。FIG. 16 is a flowchart showing a variable length decoding method according to the present embodiment, and FIG. 17 is a diagram showing a first table according to the present embodiment.
本实施例与第12实施例的不同之处在于以下几点:在输入8位模式包括两个码字,其中两个连续码字(下面,以这个顺序称为码字I和码字II)的代码长度之和是8或更小,而且两个码字的零游程长度是0的情况下,代替代码长度,设定两个码字的代码长度之和与-1相乘的值,代替零游程,设定码字I的值(值I)而且代替代码长度II,设定码字II的值(值II)作为输出。例如,当8位模式是“00110010”,这包括码字I“001”,它是(代码长度、零游程、值)=(3,0,-1),和码字II“10010”,它是(5,0,4)。此时,在与第一表格中的输入“00110010”相对应的代码长度的区域中设定-8、在零游程区域中设定-1和在值区域中设定4。The difference between this embodiment and the twelfth embodiment lies in the following points: the input 8-bit pattern includes two codewords, wherein two consecutive codewords (hereinafter referred to as codeword I and codeword II in this order) In the case where the sum of the code lengths of the two code words is 8 or less, and the zero-run length of the two code words is 0, instead of the code length, set the value of multiplying the sum of the code lengths of the two code words by -1, instead of With zero run, the value of codeword I (value I) is set and instead of code length II, the value of codeword II (value II) is set as output. For example, when the 8-bit pattern is "00110010", this includes codeword I "001", which is (code length, zero run, value) = (3, 0, -1), and codeword II "10010", which is is (5, 0, 4). At this time, -8 is set in the area of the code length corresponding to the input "00110010" in the first table, -1 is set in the zero-run area, and 4 is set in the value area.
当从如图16所示的流程图中的码字串获得8位数据时,和当它的值是“00110010”时,输出代码长度s=-8。此时,将-s作为代码长度,并设为8。此外,当读取从零游程区域输出的值作为值I,和读取从值以前输出的值作为值II时,两个码字的零游程变成0,从而可由1次表格参考来完成对两个码字的解码。When 8-bit data is obtained from the code word string in the flowchart shown in FIG. 16, and when its value is "00110010", the code length s=-8 is output. At this time, set -s as the code length and set it to 8. In addition, when reading the value output from the zero-run area as value I, and reading the value output from the previous value as value II, the zero-runs of the two codewords become 0, so that the comparison can be done by 1 table reference Decoding of two codewords.
其它操作与第12实施例的相类似。Other operations are similar to those of the twelfth embodiment.
如上所述,根据本实施例,当具有短代码长度的码字连续时,可通过一次表格参考来一次解码两个码字,从而可以更高速度来进行解码。As described above, according to the present embodiment, when codewords having a short code length continue, two codewords can be decoded at a time by one table reference, so that decoding can be performed at a higher speed.
在本实施例的解释中,假设,分别把值I和值II存储在零游程区域和第一表格的值区域中;然而,可将它们反码存储。此外,假设代码长度与-1相乘,以在一次解码两个码字的情况下,识别码字串;然而,如果可以进行识别,那么可以运用其它方法。此外,如果对于一个输入位模式保留4字节区域,那么例如执行对于代码长的数据分配、码字I的零游程、码字I的值和码字II的值;而且在代码长度总和是8位和码字II的零游程是0(不要求码字I的零游程是0)的情况下,可以进行扩展。In the explanation of the present embodiment, it is assumed that the value I and the value II are stored in the zero-run area and the value area of the first table, respectively; however, they may be inversely stored. In addition, it is assumed that the code length is multiplied by -1 to identify the codeword string in the case of decoding two codewords at a time; however, other methods can be used if identification is possible. Furthermore, if a 4-byte area is reserved for an input bit pattern, then for example data allocation for code length, zero run of code word I, value of code word I and value of code word II is performed; In the case where the zero-run of bits and codeword II is 0 (the zero-run of codeword I is not required to be 0), extension can be performed.
可以产生记录媒体,诸如磁记录媒体或光记录媒体,其中记录了对于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行如上所述的相同操作。A recording medium, such as a magnetic recording medium or an optical recording medium, is recorded in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment can be produced, and the same operations as described above can be performed with such a medium.
上述实施例主要与本发明的权利要求46至48相对应。The above-described embodiments mainly correspond to claims 46 to 48 of the present invention.
参照图18和19,描述第14发明的实施例,第14实施例。Referring to Figs. 18 and 19, an embodiment of the fourteenth invention, a fourteenth embodiment, will be described.
图18是输出根据本实施例的可变长度解码方法的流程图,而图19是示出根据本实施例的第一表格的示图。FIG. 18 is a flowchart outputting the variable length decoding method according to the present embodiment, and FIG. 19 is a diagram showing the first table according to the present embodiment.
本实施例与第13实施例的不同之处在于下列几点:对于两个连续码字(下面以这个顺序称为码字I和码字II),当码字I的代码长度是7或更小,码字I和码II的代码长度之和是9或更多,以及码字II的代码长度确定为“8-码字I的代码长度”位时,第一表格示出与-1相乘的代码长度、零游程及码字I的值以及对于解码码字II的第二表格访问偏置。The difference between this embodiment and the thirteenth embodiment lies in the following points: for two consecutive codewords (hereinafter referred to as codeword I and codeword II in this order), when the code length of codeword I is 7 or more Small, the sum of the code lengths of code word I and code II is 9 or more, and the code length of code word II is determined to be "8-code length of code word I" bits, the first table shows the same as -1 Multiplied code length, run of zeros and value of codeword I and a second table access offset for decoded codeword II.
例如,当假设获得的8位数据是“00111000”(例如,如图19所示),“001”变成码字I(代码长度3),而且输出码字I的零游程和值,即,-1和0。此外,由于确定以剩余“11000”开始的码字的代码长度为7,输出通过将码字I的代码长度3和码字II的代码长度7之和,即,10与-1相乘获得的“-10”,作为代码长度,此外,输出用于访问对于码字II的第二表格的偏置。For example, when it is assumed that the obtained 8-bit data is "00111000" (for example, as shown in FIG. 19 ), "001" becomes codeword I (code length 3), and the zero-run sum value of codeword I is output, that is, -1 and 0. Furthermore, since it is determined that the code length of the code word starting with the remaining "11000" is 7, output is obtained by multiplying the sum of the
其它操作与第13实施例的相同。Other operations are the same as those of the 13th embodiment.
如上所述,根据本实施例,由通过对第一表格和第二表格的两次表格参考获得的一次代码字解码两个码字,从而可以更高的速度执行解码。As described above, according to the present embodiment, two codewords are decoded from one codeword obtained by two table references to the first table and the second table, so that decoding can be performed at a higher speed.
在第11和第14实施例中,输出每个码字的代码长度作为第一表格;然而,如果可以唯一确定代码长度,而不是代码长度本身,可以使用其它值。In the eleventh and fourteenth embodiments, the code length of each codeword is output as the first table; however, other values may be used if the code length can be uniquely determined instead of the code length itself.
可以产生记录媒体,诸如磁记录媒体或光记录媒体,其中记录了对于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行如上所述的相同操作。A recording medium, such as a magnetic recording medium or an optical recording medium, is recorded in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment can be produced, and the same operations as described above can be performed with such a medium.
上述实施例主要与本发明的权利要求49至51相对应。The above-described embodiments mainly correspond to claims 49 to 51 of the present invention.
参照图20,描述第15发明的实施例,第15实施例。Referring to Fig. 20, an embodiment of the fifteenth invention, the fifteenth embodiment, will be described.
图20是示出根据本实施例的解码装置的结构的方框图。在图20中,标号2001表示编码数据输入部分、标号2002表示码字解码部分、标号2003表示存在访问检测部分、标号2004表示正交变换部分、标号2005表示DC元件替换部分和标号2006表示输出部分。FIG. 20 is a block diagram showing the structure of a decoding device according to the present embodiment. In FIG. 20, reference numeral 2001 denotes an encoded data input section, reference numeral 2002 denotes a codeword decoding section, reference numeral 2003 denotes a presence access detection section, reference numeral 2004 denotes an orthogonal transform section, reference numeral 2005 denotes a DC element replacement section, and reference numeral 2006 denotes an output section. .
本实施例用于在运用正交变换来解码编码数据时使用的正交反变换。首先,由码字解码部分2002将如图20所示的从编码数据输入部分2001输入的编码数据从码字转换成正交系数分量值。此时,将在解码之前的块的所有正交系数分量值初始化为零;在解码时正交系数分量值不为0的情况下,将正交系数分量值重写在两维块中的与其相对应的位置上。此时,相对于重写两维位置,由存在访问检测部分2003存储在块中的正交系数分量值的存在位置。此外,只当在相同块中,沿着水平或垂直方向产生高频分量时,才更新存在位置。This embodiment is for orthogonal inverse transform used when decoding coded data using orthogonal transform. First, encoded data input from encoded data input section 2001 as shown in FIG. 20 is converted from codewords into orthogonal coefficient component values by codeword decoding section 2002. At this time, all the orthogonal coefficient component values of the block before decoding are initialized to zero; when decoding, the orthogonal coefficient component value is not 0, the orthogonal coefficient component value is rewritten in the two-dimensional block in the corresponding position. At this time, with respect to rewriting the two-dimensional position, the presence position of the orthogonal coefficient component value stored in the block by the presence access detection section 2003 is present. Also, the existence position is updated only when high-frequency components are generated in the horizontal or vertical direction in the same block.
在上述存储的正交系数分量值的存在位置表示在获得对于一个块的正交系数分量值之后存在AC分量的情况下,由DC分量替换部分2005把DC系数分量或它的倍数值设为所有象素值,而且从输出部分2006输出执行所有输出。相反,当正交系数分量值的存在访问限于DC系数分量时,由正交变换部分2004执行普通的正交变换,而且从输出部分2006执行输出。In the case where the existence position of the above-mentioned stored orthogonal coefficient component value indicates that there is an AC component after obtaining the orthogonal coefficient component value for one block, the DC coefficient component or its multiple value is set to all by the DC component replacing section 2005 The pixel value, and output from the output section 2006 performs all output. On the contrary, when the existence access of the orthogonal coefficient component value is limited to the DC coefficient component, ordinary orthogonal transform is performed by the orthogonal transform section 2004 and output is performed from the output section 2006 .
通过利用本实施例,只当在码字解码时产生非零正交系数分量时检测DC系数分量的存在位置;因此,对于位置检测的计算量很小,从而可以大大减小对于正交变换的计算量。By utilizing this embodiment, the existence position of the DC coefficient component is detected only when a non-zero orthogonal coefficient component is generated when codeword decoding; Calculations.
可以产生记录媒体,诸如磁记录媒体或光记录媒体,其中记录了对于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行如上所述的相同操作。A recording medium, such as a magnetic recording medium or an optical recording medium, is recorded in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment can be produced, and the same operations as described above can be performed with such a medium.
上述实施例主要与本发明的权利要求91至93相对应。The above-described embodiments mainly correspond to claims 91 to 93 of the present invention.
参照图21描述第16发明的实施例,第16实施例。An embodiment of the sixteenth invention, the sixteenth embodiment, will be described with reference to FIG. 21 .
图21是示出根据本实施例的解码装置的结构的方框图。标号2101表示存在范围检测部分、标号2102是正交变换选择位置、标号2103表示第一正交变换部分和标号2104表示第二正交变换部分。Fig. 21 is a block diagram showing the structure of a decoding device according to the present embodiment. Reference numeral 2101 denotes an existing range detection section, reference numeral 2102 an orthogonal transform selection position, reference numeral 2103 a first orthogonal transform section, and reference numeral 2104 a second orthogonal transform section.
如图21上述的编码数据输入部分2001和码字解码部分2002的操作与如图20所示的相同。在存在范围检测部分2101处,根据码字检测部分2002的结果,沿着垂直方向把非零正交系数分量的存在位置存储在正交变换单元中。The operations of the encoded data input section 2001 and the codeword decoding section 2002 described above in FIG. 21 are the same as those shown in FIG. 20 . At the existence range detection section 2101, according to the result of the codeword detection section 2002, the existence positions of the non-zero orthogonal coefficient components are stored in the orthogonal transform unit along the vertical direction.
接着,在正交变换选择部分2102处,根据在正交变换单元中沿着垂直方向的非零正交变换系数分量最大位置,控制第一正交变换部分2103的操作。此时,在第一正交变换部分2103处,在两种正交变换,即,普通正交变换和简化正交变换之间进行切换,其中将DC系数分量或它的倍数用作所有变换值。通过这种方法,只对其中存在DC正交分量的正交变换单元执行实际正交变换计算。此外,由第二正交变换部分2104,对沿着垂直方向进行正交变换的正交系数分量,沿着水平方向进行正交变换,而且输出到输出部分2106。Next, at the orthogonal transform selection section 2102, the operation of the first orthogonal transform section 2103 is controlled based on the maximum position of the non-zero orthogonal transform coefficient component along the vertical direction in the orthogonal transform unit. At this time, at the first orthogonal transform section 2103, switching is made between two kinds of orthogonal transform, i.e., ordinary orthogonal transform and simplified orthogonal transform in which the DC coefficient component or its multiple is used as all transform values . With this method, the actual orthogonal transform calculation is performed only on the orthogonal transform unit in which the DC orthogonal component exists. Furthermore, the orthogonal coefficient components that are orthogonally transformed in the vertical direction are subjected to orthogonal transformation in the horizontal direction by the second orthogonal transformation section 2104 and output to the output section 2106 .
本实施例可以确定是否在两维块的水平或垂直正交变换单元中执行实际正交变换;因此,在对于给定图像信息进行正交变换时可以减小计算量。This embodiment can determine whether to perform actual orthogonal transformation in a horizontal or vertical orthogonal transformation unit of a two-dimensional block; therefore, it is possible to reduce the amount of calculation when performing orthogonal transformation for given image information.
可以产生记录媒体,诸如磁记录媒体或光记录媒体,其中记录了对于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行如上所述的相同操作。A recording medium, such as a magnetic recording medium or an optical recording medium, is recorded in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment can be produced, and the same operations as described above can be performed with such a medium.
上述实施例主要与本发明的权利要求94至96相对应。The above-described embodiments mainly correspond to claims 94 to 96 of the present invention.
参照图22,描述第17发明的实施例,第17实施例。Referring to Fig. 22, an embodiment of the seventeenth invention, a seventeenth embodiment, will be described.
图22是示出根据本实施例的解码装置的结构的方框图。标号2201表示第一方向存在范围检测部分、标号2202是第一方向正交变换选择部分、标号2203表示第一正交变换部分、标号2204表示第二方向存在范围检测部分、标号2205是第二方向正交变换选择部分和标号2206表示第二正交变换部分。FIG. 22 is a block diagram showing the structure of a decoding device according to the present embodiment. Reference numeral 2201 denotes a first direction existence range detection part, reference numeral 2202 a first direction orthogonal transformation selection part, reference numeral 2203 a first orthogonal transformation part, reference numeral 2204 a second direction existence range detection part, and reference numeral 2205 a second direction An orthogonal transform selection section and reference numeral 2206 represent a second orthogonal transform section.
如图22所示的编码数据输入部分2001和码字解码部分2002的操作与图20的相同。在第一存在范围检测部分2201处,正如如图21所示的存在范围检测部分2101的情况下,沿着垂直方向,把非零正交系数分量的存在位置存储在正交变换单元。接着,在第一正交变换选择部分602处,根据在正交变换单元中,沿着垂直方向的非零正交变换系数分量的最大位置,控制第一正交变换部分2203的操作。此时,在第一正交变换部分2203处,在两种正交变换,即,普通正交变换和简化正交变换(其中将DC分量或它的倍数用作所有变换值)之间进行切换。The operations of the encoded data input section 2001 and the codeword decoding section 2002 shown in FIG. 22 are the same as those of FIG. 20 . At the first existence range detection section 2201, as in the case of the existence range detection section 2101 shown in FIG. 21, along the vertical direction, the existence positions of the non-zero orthogonal coefficient components are stored in the orthogonal transform unit. Next, at the first orthogonal
接着,第二方向存在范围检测部分2204接收来自第一正交变换部分的输出,而且沿着水平方向把非零正交系数分量的存在范围存储在正交变换单元中。在第二正交变换选择部分2205中,根据在正交变换单元中的沿着水平方向的非零正交变换系数分量的最大位置,控制第二正交变换部分2206的操作。此时,在第二正交变换部分206中,在两种正交变换,即,普通正交变换和简化正交变换(其中将DC系数分量或它的倍数用作所有变换值)之间进行切换。通过这种方法,从输出部分2006输出沿着第一和第二方向的正交变换获得的象素值。Next, the second direction existence range detection section 2204 receives the output from the first orthogonal transform section, and stores the existence range of non-zero orthogonal coefficient components in the orthogonal transform unit along the horizontal direction. In the second orthogonal transform selection section 2205, the operation of the second orthogonal transform section 2206 is controlled according to the maximum position of the non-zero orthogonal transform coefficient component along the horizontal direction in the orthogonal transform unit. At this time, in the second orthogonal transform section 206, between two kinds of orthogonal transform, that is, ordinary orthogonal transform and simplified orthogonal transform in which DC coefficient components or multiples thereof are used as all transform values switch. In this way, the pixel values obtained by the orthogonal transformation along the first and second directions are output from the output section 2006 .
在本实施例中,除了第15实施例中外,还可以减小从第二方向正交变换的计算量,从而可以获得更大的效果。In this embodiment, in addition to the fifteenth embodiment, the calculation amount of the orthogonal transformation from the second direction can be reduced, so that a greater effect can be obtained.
在第16和17实施例中,在第一或第二正交变换部分中,切换两种正交变换方法;然而,可以依赖于所使用的正交系数分量的数量可以选择其它正交变换方法。In the 16th and 17th embodiments, in the first or second orthogonal transform section, two orthogonal transform methods are switched; however, other orthogonal transform methods can be selected depending on the number of used orthogonal coefficient components .
此外,在运用普通正交变换编码的情况下,对两维块的正交系数分量进行称为Z形(zigzag)扫描的重新排列,以从低频分量到高频分量的次序进行两维编码。在这种情况下,可由在每个正交变换单元中最后产生的非零正交系数分量的位置表示在每个正交变换单元中的非零正交系数分量存在范围。因此,可以更加容易地检测存在范围。Also, in the case of employing ordinary orthogonal transform coding, rearrangement called zigzag scanning is performed on orthogonal coefficient components of a two-dimensional block to perform two-dimensional coding in order from low-frequency components to high-frequency components. In this case, a non-zero orthogonal coefficient component existence range in each orthogonal transform unit may be represented by a position of a non-zero orthogonal coefficient component generated last in each orthogonal transform unit. Therefore, the presence range can be detected more easily.
可以产生记录媒体,诸如磁记录媒体或光记录媒体,其中记录了对于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行如上所述的相同操作。A recording medium, such as a magnetic recording medium or an optical recording medium, is recorded in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment can be produced, and the same operations as described above can be performed with such a medium.
上述实施例主要与本发明的权利要求97至99相对应。The above-described embodiments mainly correspond to
参照图23和24,描述第18发明的实施例,第18实施例。Referring to Figs. 23 and 24, an eighteenth embodiment, an embodiment of the eighteenth invention, will be described.
图23是示出根据本实施例的解码装置的结构的方框图。在图23中,标号2301表示输入终端、标号2302标号可变长度解码部分、标号2303表示正交反变换部分、标号2304表示信号格式变换部分,以把YUV格式信号转换成RGB格式信号、标号2305表示去重排部分和标号2306表示输出终端。Fig. 23 is a block diagram showing the structure of a decoding device according to the present embodiment. In Fig. 23, the
由可变长度解码部分2302解码从输入终端2301输入的可变长度编码YUV格式图像信号。由正交反变换部分2303把解码信号转换成普通YUV格式信号并由信号格式转换部分2304将其立即转换成对于每个坐标的RGB格式信号。由去重排部分2305去重排从信号格式转换部分获得的RGB格式信号,而且从输出终端2306输出。The variable length coded YUV format image signal input from the
图24是当利用计算机执行上述图像信号处理时数据流的示图。FIG. 24 is a diagram of a flow of data when the above-described image signal processing is performed with a computer.
把从数据总线203输入的经编码YUV格式信号取入CPU202(2451),而且对其连续进行解码、正交反变换和信号格式转换(2452)。在根据重排模式生成的地址处,把经历信号格式变换的图像信号写入外部存储器201。此时,把再现的图像适当地存储在外部存储器201中;因此,通过显示装置(诸如,VRAM或文本)把图像信号映射在外部存储器202中,可以显示图像信号、存储它,等等(2454)。The coded YUV format signal input from the
如上所述,当将本实施例与如图36所示的传统例子相比较,在正交反变换之后,可以省略用于把数据写入到存储器以执行去重排和对于从存储器读取数据从而执行信号格式转换的操作;因此,可以缩短全部处理时间。结果,不必在CPU和外部存储器之间进行数据传递,而且可以大大缩短处理时间。As described above, when this embodiment is compared with the conventional example shown in FIG. 36 , after the orthogonal inverse transform, the functions for writing data to the memory to perform de-rearrangement and for reading data from the memory can be omitted. The operation of signal format conversion is thereby performed; therefore, the overall processing time can be shortened. As a result, data transfer between the CPU and external memory becomes unnecessary, and processing time can be greatly reduced.
在本实施例中,将RGB格式信号用作要输出的图像信号;然而,由信号格式转换部分转换的信号格式不局限于RGB格式信号,而且可以获得相同的效果,而与格式无关。In this embodiment, an RGB format signal is used as an image signal to be output; however, the signal format converted by the signal format conversion section is not limited to the RGB format signal, and the same effect can be obtained regardless of the format.
可以产生记录媒体,诸如磁记录媒体或光记录媒体,其中记录了对于利用计算机根据本实施例执行所有装置或部分装置的功能的程序,而且利用这样的媒体可以执行如上所述的相同操作。A recording medium, such as a magnetic recording medium or an optical recording medium, is recorded in which a program for executing the functions of all or part of the devices using a computer according to the present embodiment can be produced, and the same operations as described above can be performed with such a medium.
上述实施例主要与本发明的权利要求109至111相对应。The above-described embodiments mainly correspond to claims 109 to 111 of the present invention.
运用软件可以实现上述所有实施例,或者通过记录媒体或传输媒体来执行。此外,可以构成编码方法、装置和程序,其中组合上述多种技术并包括正交变换。All of the above-described embodiments can be implemented using software, or performed through a recording medium or a transmission medium. Furthermore, an encoding method, apparatus, and program can be constituted in which the above-mentioned various techniques are combined and include orthogonal transform.
此外,通过利用程序来实现本发明和把程序记录在记录媒体上(诸如,软盘)并通过传递程序,可用另一种独立计算机系统来容易地执行本发明。图37(a)至37(c)示出利用软盘获得的情况。Furthermore, by implementing the present invention using a program and recording the program on a recording medium such as a floppy disk and by transferring the program, the present invention can be easily carried out with another independent computer system. 37(a) to 37(c) show the cases obtained using a floppy disk.
图37(a)是示出用作记录媒体的主体的软盘的物理格式的例子。从外圆周到内圆周,同心产生磁道,而且沿着圆周方向把每个磁道区域分成16个扇区。根据按照这种方法分配的区域记录程序。Fig. 37(a) shows an example of the physical format of a floppy disk used as the main body of the recording medium. From the outer circumference to the inner circumference, tracks are generated concentrically, and each track area is divided into 16 sectors along the circumferential direction. Programs are recorded according to the area assigned in this way.
图37(b)示出用于容纳软盘的外壳。从左示出软盘的正视图和侧视图及软盘。通过这种方法把软盘容纳在外壳中,可以包含磁盘不受到灰尘和外部冲击,从而可以安全地传递它。Fig. 37(b) shows a case for accommodating a floppy disk. Front and side views of the floppy disk and the floppy disk are shown from the left. By housing the floppy disk in the casing in this way, it is possible to contain the disk from dust and external shocks, so that it can be safely transferred.
图37(c)是把程序记录到软盘并从它重现程序的示图。通过把软盘驱动器连到计算机系统(如图所示),可以把程序记录到磁盘并从它重现程序。通过槽口把磁盘插入软盘,并从软盘取出磁盘。在再现过程中,磁盘驱动器从磁盘读取程序并把它们传递到计算机系统。Fig. 37(c) is a diagram for recording a program to a floppy disk and reproducing the program from it. By connecting a floppy disk drive to the computer system (as shown), programs can be recorded to and reproduced from a disk. Insert the disk into the floppy through the notch, and remove the disk from the floppy. During reproduction, the disk drive reads the programs from the disk and transfers them to the computer system.
工业应用性Industrial applicability
如上所述,根据本发明,在编码处理中,例如,可以大大减小在正交变换计算时把寄存器值保存在存储器上的次数;因此,可以大大缩短计算时间。此外,通过按照非零正交系数分量的存在位置切换正交变换方法,可以大大减小对于正交变换的计算量。此外,在解码处理过程中,可以省略把数据写入到存储器以在反码正交变换之后执行去重排的操作以及从存储器读取数据以执行信号格式转换;因此,可以减小全部处理时间。结果,不必在CPU和外部存储器之间进行数据传递,而且可以大大缩短处理时间。As described above, according to the present invention, in encoding processing, for example, the number of times of storing register values in memory at the time of orthogonal transform calculation can be greatly reduced; therefore, calculation time can be greatly shortened. In addition, by switching the orthogonal transformation method according to the existence position of the non-zero orthogonal coefficient component, the calculation amount for the orthogonal transformation can be greatly reduced. In addition, during the decoding process, it is possible to omit the operation of writing data to the memory to perform de-rearrangement after the inverse orthogonal transform and reading data from the memory to perform signal format conversion; therefore, the overall processing time can be reduced . As a result, data transfer between the CPU and external memory becomes unnecessary, and processing time can be greatly reduced.
Claims (56)
Applications Claiming Priority (12)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP057278/97 | 1997-03-12 | ||
| JP5727897 | 1997-03-12 | ||
| JP057278/1997 | 1997-03-12 | ||
| JP14670397 | 1997-06-04 | ||
| JP146703/97 | 1997-06-04 | ||
| JP146703/1997 | 1997-06-04 | ||
| JP163971/1997 | 1997-06-20 | ||
| JP16397197 | 1997-06-20 | ||
| JP163971/97 | 1997-06-20 | ||
| JP190845/97 | 1997-07-16 | ||
| JP190845/1997 | 1997-07-16 | ||
| JP19084597 | 1997-07-16 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1252202A CN1252202A (en) | 2000-05-03 |
| CN1268135C true CN1268135C (en) | 2006-08-02 |
Family
ID=27463475
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB988040115A Expired - Fee Related CN1268135C (en) | 1997-03-12 | 1998-03-10 | Method, device and recording medium for encoding, and method, device and recording medium for decoding |
Country Status (6)
| Country | Link |
|---|---|
| US (2) | US6744928B1 (en) |
| EP (1) | EP0967806A4 (en) |
| KR (1) | KR100538607B1 (en) |
| CN (1) | CN1268135C (en) |
| TW (1) | TW468346B (en) |
| WO (1) | WO1998041026A1 (en) |
Families Citing this family (24)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0966184A1 (en) * | 1998-06-08 | 1999-12-22 | Molex Incorporated | IC card housing and method of manufacture |
| JP2002261623A (en) * | 2001-02-28 | 2002-09-13 | Canon Inc | Decoding device, decoding method, storage medium, and program software |
| JP3415126B2 (en) * | 2001-09-04 | 2003-06-09 | 三菱電機株式会社 | Variable length code multiplexer, variable length code separation device, variable length code multiplexing method, and variable length code separation method |
| JP2003169327A (en) | 2001-11-30 | 2003-06-13 | Matsushita Electric Ind Co Ltd | MPEG-2 video variable length decoding method in software |
| US20050248576A1 (en) * | 2004-05-07 | 2005-11-10 | Sheng-Hung Chen | Transformation method and system of computer system for transforming a series of video signals |
| KR101096916B1 (en) * | 2004-10-18 | 2011-12-22 | 톰슨 라이센싱 | Film grain simulation method |
| WO2006055199A2 (en) * | 2004-11-12 | 2006-05-26 | Thomson Licensing | Film grain simulation for normal play and trick mode play for video playback systems |
| CN101057259B (en) | 2004-11-16 | 2010-11-03 | 汤姆森许可贸易公司 | Film Grain Simulation Method Based on Precomputed Transform Coefficients |
| WO2006055333A2 (en) | 2004-11-16 | 2006-05-26 | Thomson Licensing | Film grain sei message insertion for bit-accurate simulation in a video system |
| MX2007005651A (en) | 2004-11-17 | 2007-06-05 | Thomson Licensing | Bit-accurate film grain simulation method based on pre-computed transformed coefficients. |
| CA2587437C (en) * | 2004-11-22 | 2015-01-13 | Thomson Licensing | Methods, apparatus and system for film grain cache splitting for film grain simulation |
| ZA200704141B (en) | 2004-11-23 | 2008-08-27 | Thomson Licensing | Low-complexity film grain simulation technique |
| JP4769039B2 (en) * | 2005-07-26 | 2011-09-07 | パナソニック株式会社 | Digital signal encoding and decoding apparatus and method |
| JP4345757B2 (en) * | 2006-02-22 | 2009-10-14 | セイコーエプソン株式会社 | Image data color correction |
| JP2008160404A (en) * | 2006-12-22 | 2008-07-10 | Ricoh Co Ltd | Image processing apparatus, image processing method, computer program, and information storage medium |
| JPWO2008120434A1 (en) * | 2007-03-28 | 2010-07-15 | パナソニック株式会社 | Decoding circuit, decoding method, encoding circuit, and encoding method |
| US10715834B2 (en) | 2007-05-10 | 2020-07-14 | Interdigital Vc Holdings, Inc. | Film grain simulation based on pre-computed transform coefficients |
| CN101854541B (en) * | 2009-04-03 | 2012-04-18 | 广达电脑股份有限公司 | Video compression circuit and method thereof |
| US10003803B1 (en) | 2012-04-18 | 2018-06-19 | Matrox Graphics Inc. | Motion-based adaptive quantization |
| US8873872B1 (en) * | 2012-04-18 | 2014-10-28 | Matrox Graphics Inc. | Division of entropy coding in codecs |
| US10003802B1 (en) | 2012-04-18 | 2018-06-19 | Matrox Graphics Inc. | Motion-based adaptive quantization |
| KR102410035B1 (en) * | 2017-07-06 | 2022-06-20 | 삼성디스플레이 주식회사 | Image signal processing apparatus and display device having them |
| US10645396B2 (en) * | 2018-06-04 | 2020-05-05 | Tencent America LLC | Method and apparatus for implicit transform splitting |
| GB2577890B (en) * | 2018-10-08 | 2021-03-10 | Advanced Risc Mach Ltd | Data processing with swizzle operation |
Family Cites Families (41)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5579565A (en) | 1978-12-12 | 1980-06-16 | Fujitsu Ltd | Picture signal decoding system |
| JPH0722393B2 (en) * | 1986-01-27 | 1995-03-08 | 富士写真フイルム株式会社 | Orthogonal transform coding method for image data |
| US4905297A (en) * | 1986-09-15 | 1990-02-27 | International Business Machines Corporation | Arithmetic coding encoder and decoder system |
| US4791598A (en) * | 1987-03-24 | 1988-12-13 | Bell Communications Research, Inc. | Two-dimensional discrete cosine transform processor |
| JPH0214672A (en) * | 1988-06-30 | 1990-01-18 | Dainippon Screen Mfg Co Ltd | Picture data compression method |
| JPH02154571A (en) * | 1988-12-06 | 1990-06-13 | Nec Corp | Still picture decoding system and its device |
| JP2858774B2 (en) * | 1989-02-27 | 1999-02-17 | 株式会社日立製作所 | Encoding / decoding device |
| JP2724223B2 (en) * | 1989-11-08 | 1998-03-09 | 富士通株式会社 | Image data restoration method |
| US5270832A (en) * | 1990-03-14 | 1993-12-14 | C-Cube Microsystems | System for compression and decompression of video data using discrete cosine transform and coding techniques |
| JPH047976A (en) * | 1990-04-25 | 1992-01-13 | Ricoh Co Ltd | Butterfly arithmetic circuit |
| JPH0451720A (en) | 1990-06-20 | 1992-02-20 | Ricoh Co Ltd | Variable length code decoding device |
| JPH04178087A (en) * | 1990-11-13 | 1992-06-25 | Fujitsu Ltd | Orthogonal transformation method and orthogonal transformation circuit |
| JP2697301B2 (en) * | 1990-11-26 | 1998-01-14 | 松下電器産業株式会社 | Decryption device |
| JPH04236664A (en) * | 1991-01-18 | 1992-08-25 | Sony Corp | Arithmetic circuit |
| JPH0540777A (en) * | 1991-08-06 | 1993-02-19 | Fujitsu Ltd | Butterfly operation system |
| JPH05183756A (en) * | 1992-01-06 | 1993-07-23 | Canon Inc | Image processing apparatus and method thereof |
| JPH05227442A (en) * | 1992-02-14 | 1993-09-03 | Ricoh Co Ltd | Color facsimile equipment |
| JPH0723423A (en) | 1993-06-16 | 1995-01-24 | Hitachi Ltd | Digital video signal recording / reproducing device |
| US6674897B1 (en) * | 1993-09-08 | 2004-01-06 | Sony Corporation | Picture data compression device and red data detection device |
| JP3569963B2 (en) | 1993-09-08 | 2004-09-29 | ソニー株式会社 | Image compression device |
| JP2836467B2 (en) * | 1993-12-16 | 1998-12-14 | 日本電気株式会社 | Binary symbol encoding / decoding circuit |
| US6408102B1 (en) * | 1993-12-20 | 2002-06-18 | Canon Kabushiki Kaisha | Encoding/decoding device |
| JP3224465B2 (en) * | 1993-12-22 | 2001-10-29 | シャープ株式会社 | Image coding device |
| FR2722041B1 (en) * | 1994-06-30 | 1998-01-02 | Samsung Electronics Co Ltd | HUFFMAN DECODER |
| KR0139162B1 (en) * | 1994-11-30 | 1998-05-15 | 김광호 | Variable length coder and decoder using codeword reassignment |
| EP1802141A2 (en) * | 1995-03-15 | 2007-06-27 | Kabushiki Kaisha Toshiba | Moving picture coding and/or decoding systems |
| US6104754A (en) * | 1995-03-15 | 2000-08-15 | Kabushiki Kaisha Toshiba | Moving picture coding and/or decoding systems, and variable-length coding and/or decoding system |
| US5748790A (en) * | 1995-04-05 | 1998-05-05 | Intel Corporation | Table-driven statistical decoder |
| NL1001171C2 (en) * | 1995-09-11 | 1997-03-13 | United Microelectronics Corp | A code table reduction device for variable length decoder. |
| US5862153A (en) * | 1995-09-29 | 1999-01-19 | Kabushiki Kaisha Toshiba | Coding apparatus and decoding apparatus for transmission/storage of information |
| US5663725A (en) * | 1995-11-08 | 1997-09-02 | Industrial Technology Research Institute | VLC decoder with sign bit masking |
| KR0179103B1 (en) * | 1995-11-15 | 1999-05-01 | 구자홍 | High speed variable length decoder apparatus |
| US5835035A (en) * | 1995-12-28 | 1998-11-10 | Philips Electronics North America Corporation | High performance variable length decoder with two-word bit stream segmentation and related method |
| US6058216A (en) * | 1996-09-03 | 2000-05-02 | Sumitomo Metal Industries Limited | Apparatus for encoding image data |
| JPH1079940A (en) * | 1996-09-05 | 1998-03-24 | Mitsubishi Electric Corp | Image coding device |
| MY129589A (en) * | 1997-02-28 | 2007-04-30 | Matsushita Electric Industrial Co Ltd | Motion picture converting apparatus |
| US6188797B1 (en) * | 1997-05-27 | 2001-02-13 | Apple Computer, Inc. | Decoder for programmable variable length data |
| US5973627A (en) * | 1997-08-28 | 1999-10-26 | Philips Electronics North America Corporation | Variable length decoder with adaptive acceleration optimized by sub-grouping and cross-grouping the symbols having the highest probability of occurrence |
| IL129203A (en) * | 1999-03-28 | 2002-07-25 | Univ Ramot | Method and system for compression of images |
| US6865299B1 (en) * | 1999-07-27 | 2005-03-08 | Canon Kabushiki Kaisha | Coding apparatus and method |
| US6757439B2 (en) * | 2000-12-15 | 2004-06-29 | International Business Machines Corporation | JPEG packed block structure |
-
1998
- 1998-03-10 CN CNB988040115A patent/CN1268135C/en not_active Expired - Fee Related
- 1998-03-10 EP EP98905825A patent/EP0967806A4/en not_active Withdrawn
- 1998-03-10 KR KR10-1999-7008212A patent/KR100538607B1/en not_active Expired - Fee Related
- 1998-03-10 WO PCT/JP1998/000969 patent/WO1998041026A1/en not_active Ceased
- 1998-03-10 US US09/380,794 patent/US6744928B1/en not_active Expired - Fee Related
- 1998-03-11 TW TW087103565A patent/TW468346B/en not_active IP Right Cessation
-
2004
- 2004-02-26 US US10/786,147 patent/US7050644B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| US20040184532A1 (en) | 2004-09-23 |
| WO1998041026A1 (en) | 1998-09-17 |
| CN1252202A (en) | 2000-05-03 |
| KR100538607B1 (en) | 2005-12-22 |
| KR20000076123A (en) | 2000-12-26 |
| EP0967806A4 (en) | 2010-12-22 |
| TW468346B (en) | 2001-12-11 |
| US6744928B1 (en) | 2004-06-01 |
| EP0967806A1 (en) | 1999-12-29 |
| US7050644B2 (en) | 2006-05-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1268135C (en) | Method, device and recording medium for encoding, and method, device and recording medium for decoding | |
| CN1175670C (en) | Image signal conversion method and apparatus, and image providing system | |
| CN1294540C (en) | Means for encoding and decoding coordinate interpolator key data and key value data | |
| CN1138420C (en) | Image processor, image data processor and variable length code decoder | |
| CN1152554C (en) | Encoding/decoding method of information aggregate and decoding method of image information | |
| CN1056716C (en) | Motion video encoding/decoding method, apparatus and storage medium therefor | |
| CN1196319C (en) | Image coding device, image decoding device, image decoding method, image decoding method and medium | |
| CN1114887C (en) | Picture synthesis method and apparatus, and data recording medium | |
| CN1130638C (en) | Storage device and access method | |
| CN1640142A (en) | Method and device for encoding wavelet transform coefficients | |
| CN1867034A (en) | Image signal processing apparatus, camera system and image signal processing method | |
| CN1918602A (en) | Multi-mode alpha image processing | |
| CN1168322C (en) | Image coding and decoding method | |
| CN1252646C (en) | Multifunction system, image processing method, computer program and storage medium | |
| CN1627426A (en) | Error corrector and its method | |
| CN1578468A (en) | Video decoding apparatus | |
| CN1165181C (en) | image decoding method | |
| CN1153468C (en) | Encoding device, decoding device, encoding method, decoding method, and image processing device | |
| CN1216199A (en) | Digital image filling method, image processing device and data recording medium | |
| CN1289509A (en) | Data processing method, data processing apparatus, and program recording medium | |
| CN1838724A (en) | Decoding apparatus, dequantizing method, distribution determining method, and program thereof | |
| CN1158876C (en) | Method and apparatus for digital image decoding | |
| CN1941910A (en) | Method and apparatus for encoding coordinate built in symbol and decoding bit data flow | |
| CN1744720A (en) | Variable length decoding device | |
| CN1142729A (en) | Decoder for compressed digit signals |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20060802 Termination date: 20100310 |