[go: up one dir, main page]

CN1791218A - Variable length coding method and variable length decoding method. - Google Patents

Variable length coding method and variable length decoding method. Download PDF

Info

Publication number
CN1791218A
CN1791218A CNA200510066736XA CN200510066736A CN1791218A CN 1791218 A CN1791218 A CN 1791218A CN A200510066736X A CNA200510066736X A CN A200510066736XA CN 200510066736 A CN200510066736 A CN 200510066736A CN 1791218 A CN1791218 A CN 1791218A
Authority
CN
China
Prior art keywords
data
encoding
scanning
decoding
segment
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.)
Withdrawn
Application number
CNA200510066736XA
Other languages
Chinese (zh)
Inventor
郑济昌
全炳宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Samsung Electronics Co Ltd filed Critical Samsung Electronics Co Ltd
Publication of CN1791218A publication Critical patent/CN1791218A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods 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/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

一种对图像内的对象按段编码及译码的方法,其编码为求出所述对象被分割成段的段数据,该段数据相应于多个对象的多个数据段,并以适合于该段数据分布特性而定的模式对所得数据进行扫描、编码,输出已编码的数据及扫描模式数据。而其译码为接收已编码数据进行译码,并依据扫描模式数据而定的位置对已译码的数据进行排列而重新构成多个二维数据。本发明的编码及译码可采用可变长方式、哈夫曼方式或算术方式。

Figure 200510066736

A method for segmentally encoding and decoding objects in an image, the encoding is to obtain segment data in which the object is divided into segments, the segment data corresponds to a plurality of data segments of a plurality of objects, and is suitable for The pattern determined by the data distribution characteristics of this section scans and codes the obtained data, and outputs the coded data and the scanning pattern data. The decoding is to receive the coded data for decoding, and arrange the decoded data according to the position determined by the scanning pattern data to reconstruct a plurality of two-dimensional data. The encoding and decoding of the present invention can adopt variable length method, Huffman method or arithmetic method.

Figure 200510066736

Description

对图像内的对象按段数据进行编码及译码的方法Method for encoding and decoding objects in an image by segment data

本申请是申请日为1997年1月24日、名称为“对图像内的对象按段数据进行编码及译码方法”、申请号为00126057.x的发明专利申请的分案中请。This application is a divisional application for an invention patent application with the filing date of January 24, 1997, the title "Coding and Decoding Method for Segment Data of Objects in Images", and the application number 00126057.x.

技术领域technical field

本发明涉及数字数据的编码及译码系统,特别是涉及将图像内的目标对象以分割成段的数字数据进行编码及译码的方法,以便进一步改善存储或传送数据的压缩率。The present invention relates to a digital data encoding and decoding system, in particular to a method for encoding and decoding a target object in an image with segmented digital data, so as to further improve the compression rate of stored or transmitted data.

背景技术Background technique

最近,在传送和接收视频、声频信号的系统中,最近出现了把传送或存储在存储媒体中的视频、声频信号编码成数字数据和为再现视频声频信号而把已编码数字数据译码的多种方法。但是,人们探求了进一步压缩传送或存储数据量的技术方法以提高编码及译码系统中的数据传送效率。作为被传送或被存储数字数据的编码方法的例子有,变换编码法、差分脉码调制法(DPCM)、矢量量化法及可变长编码法等。这些编码方法通过去除传送或存储数字数据中的多余数据来对全数据量进行进一步压缩。Recently, in systems for transmitting and receiving video and audio signals, there have been multiple methods of encoding video and audio signals transmitted or stored in storage media into digital data and decoding the encoded digital data for reproducing video and audio signals. way. However, people have searched for a technical method to further compress the amount of transmitted or stored data so as to improve the efficiency of data transmission in the coding and decoding system. Examples of encoding methods for transmitted or stored digital data include transform encoding, differential pulse code modulation (DPCM), vector quantization, and variable length encoding. These encoding methods further compress the overall data volume by removing redundant data from transmitted or stored digital data.

如上所述的现有压缩方式均采用8×8或16×16等一定大小的方形块为基本单位进行数据处理。而本发明所涉及的图像数据的处理方式并非限于以块为单位的所有图像帧,而是仅对图像内有意义的客体按段进行处理。即,各帧的视频数据被分割成设定长度的段,为了视频信号的存储、传送及接收,在编码及译码系统中进行数据处理。各段数据或段数据间的差分数据被正交变换,视频数据变换成频率域的变换系数。众所周知的段数据变换方法有,离散余弦变换(DCT)、沃尔什-阿达玛变换(Walsh Hadamard Transform:WHT)、离散傅利叶变换(DFT)及离散正弦变换(DST)等。用这些变换方法得到的变换系数根据系数数据的特性而适当地编码,压缩效率得以提高。由于人的视觉对低频比对高频更加敏感,高频数据经数据处理得以减少。从而,可以减少被编码的数据量。The above-mentioned existing compression methods all use a square block of a certain size such as 8×8 or 16×16 as a basic unit for data processing. However, the image data processing method involved in the present invention is not limited to all image frames in units of blocks, but only processes meaningful objects in the image by segment. That is, video data of each frame is divided into segments of a set length, and data processing is performed in an encoding and decoding system for storage, transmission, and reception of video signals. Each segment data or differential data between segment data is orthogonally transformed, and the video data is transformed into transform coefficients in the frequency domain. Well-known segment data transformation methods include discrete cosine transform (DCT), Walsh Hadamard transform (WHT), discrete Fourier transform (DFT), and discrete sine transform (DST). Transform coefficients obtained by these transform methods are appropriately coded according to the characteristics of coefficient data, thereby improving compression efficiency. Since human vision is more sensitive to low frequencies than to high frequencies, high frequency data is reduced by data processing. Thus, the amount of encoded data can be reduced.

发明内容Contents of the invention

本发明的目的是针对现有技术而提供一种编码方法。这种编码方法采用最适合各段数据分布特性的扫描模式对图像内的目标对象被分割成段的数据进行编码,而且所述对象的段数据相应于多个对象的多个数据段。The purpose of the present invention is to provide an encoding method for the prior art. This encoding method encodes segmented data of a target object within an image using a scanning pattern most suitable for distribution characteristics of each segment data, and the segment data of the object corresponds to a plurality of data segments of a plurality of objects.

本发明的另一目的是提供一种译码方法,这种译码方法采用与在各段数据编码处理中选用的相同的扫描模式对图像内的目标对象按段数据已编码的数据进行算术译码,而且所述对象的段数据相应于多个数据段。Another object of the present invention is to provide a decoding method that uses the same scanning pattern as that selected in the encoding process of each segment data to perform arithmetic decoding on data encoded by segment data of a target object in an image. code, and the segment data of the object corresponds to a plurality of data segments.

为了实现上述目的,本发明提供了一种对图像内的对象被分割成段的数字数据进行编码的方法,该方法包含以下步骤:求得所述对象的段数据,该段数据为相应于多个对象的多个数据段;对上述对象的段数据求得其变换系数;根据以适合于所述对象的段数据分布特性而选定的扫描模式对上述步骤中所求得的数据进行扫描,并对被扫描的数据进行编码;输出上述已编码数据及编码该数据时所采用的扫描模式的扫描模式数据,其中,所述段数据表示由图像内的对象来选择的、与该对象像素值相应的图像段的大小及形状。In order to achieve the above object, the present invention provides a method for encoding digital data in which an object in an image is divided into segments. The method includes the following steps: obtaining segment data of the object, the segment data being A plurality of data segments of an object; obtaining its transformation coefficient for the segment data of the above-mentioned object; scanning the data obtained in the above-mentioned steps according to the selected scanning mode suitable for the segment data distribution characteristics of the object, And encode the scanned data; output the above-mentioned encoded data and the scanning mode data of the scanning mode adopted when encoding the data, wherein the segment data represents the pixel value selected by the object in the image and related to the object pixel value The size and shape of the corresponding image segment.

如上所述的本发明,在其编码步骤中不仅对所扫描、编码的数据相应于多个对象的多个段数据,而且由段数据的分布特性选定的描模式其扫描范围仅覆盖该段数据的分布区域,以便于更有效地对图像数字数据进行编码处理。In the present invention as described above, not only the scanned and coded data correspond to a plurality of segment data of a plurality of objects in the encoding step, but also the scanning range of the scanning mode selected by the distribution characteristics of the segment data covers only the segment. The distribution area of the data, in order to more effectively encode the image digital data.

在上述的求得其变换系数步骤中所得的数据为一种已设定系数,而且相应于与所述对象的段数据分布特性相一致的多个二维数据。The data obtained in the above-mentioned step of obtaining the transformation coefficient thereof is a set coefficient and corresponds to a plurality of two-dimensional data conforming to the distribution characteristics of the segment data of the object.

根据段数据的分布特性而选定的扫描模式,其扫描方向既可以为水平方向或垂直方向,也可以为具有30度或45度倾角的扫描方向。In the scanning mode selected according to the distribution characteristics of the segment data, the scanning direction can be horizontal or vertical, or a scanning direction with an inclination of 30 degrees or 45 degrees.

为了选定如上所述的最适合于段数据分布特性的扫描模式,在上述编码步骤中对所求得的数据按给定的多种扫描模式分别进行扫描、编码,选出相应于各编码数据的累计长度值中的最小值相应的扫描模式。In order to select the scanning mode most suitable for the distribution characteristics of the segment data as described above, in the above encoding step, the obtained data are scanned and encoded respectively according to the given multiple scanning modes, and the data corresponding to each encoded data are selected. The scan mode corresponding to the minimum of the accumulated length values.

由这种方式所选定的扫描模式不仅具有随段数据的分布特性而变化的通融性,而且最适合于该段数据的扫描。根据数字数据处理的要求,在上述的编码步骤中对所扫描的数据即可以采用可变长编码或哈夫曼编码的方式,也可以采用算术编码的方式。The scanning mode selected in this way not only has the flexibility to change with the distribution characteristics of the segment data, but also is most suitable for the scanning of the segment data. According to the requirements of digital data processing, variable length coding or Huffman coding can be used for the scanned data in the above coding step, and arithmetic coding can also be used.

为实现本发明的另一目的,本发明提供了一种对已编码的数据进行译码的方法,该方法包含以下步骤:接收上述已编码数据进行译码;将上述已译码的数据根据所提供的扫描模式数据而定的位置进行排列,其中,所接收的已编码数据相应于多个数据段,所述已编码数据为对图像内的对象按段编码的数据。To achieve another object of the present invention, the present invention provides a method for decoding encoded data, the method comprising the following steps: receiving the above-mentioned encoded data for decoding; The provided scan pattern data is arranged according to the location, wherein the received encoded data corresponds to a plurality of data segments, the encoded data being data encoding objects within the image segment by segment.

如上所述的译码方法中,所接收的已编码数据既可以为相应于一个图像的多个数据段,也可以为相应于多个图像的多个数据段;而所述的扫描模式数据为与已编码数据一起提供的,并表示该编码数据所采用的扫描信息。即,表示为适合于所述对象段数据分布特性而采用的扫描模式及仅在该段数据分布范围内进行扫描的信息。因此,在上述排列步骤中根据扫描模式数据所指定的扫描方向及扫描范围内对已译码数据进行排列的。In the decoding method described above, the received encoded data can be multiple data segments corresponding to one image, or multiple data segments corresponding to multiple images; and the scan mode data is Supplied with encoded data and represents the scan information used for that encoded data. That is, it indicates the scanning mode adopted to suit the data distribution characteristics of the target segment and the information that scans are performed only within the data distribution range of the segment. Therefore, in the arranging step above, the decoded data is arranged according to the scanning direction and scanning range specified by the scanning pattern data.

进一步说,根据所提供的扫描模式数据而决定的扫描方向及扫描范围相应地发生扫描地址,而已译码的数据在该扫描地址所指定的位置上一一排列。按上述步骤中经排列而得的数据实际为构成多个二维数据或多个二维已设定系数,而且该二维数据或二维已设定系数的分布特性与所述对象在编码之前的各段数据的分布特性相一致。Furthermore, a scan address is generated corresponding to the scan direction and scan range determined according to the provided scan pattern data, and the decoded data are arranged one by one at the positions specified by the scan address. The data arranged in the above steps actually constitute a plurality of two-dimensional data or a plurality of two-dimensional set coefficients, and the distribution characteristics of the two-dimensional data or two-dimensional set coefficients are the same as those of the object before encoding The distribution characteristics of each segment of data are consistent.

因此,根据上述扫描模式数据而发生的扫描地址或者所提供的扫描模式,其扫描方向既可以为水平方向或垂直方向,也可以为具有30度或45度倾角的扫描方向。不但如此,在所述译码步骤中根据所接收的已编码数据的类型,相应地采用可变长译码、哈夫曼译码或者算术译码的方式。Therefore, the scanning direction of the scanning address generated according to the scanning pattern data or the provided scanning pattern can be a horizontal direction or a vertical direction, or a scanning direction with an inclination angle of 30 degrees or 45 degrees. Furthermore, in the decoding step, variable length decoding, Huffman decoding or arithmetic decoding is adopted correspondingly according to the type of the received encoded data.

本发明可以用于对传送的或存储在半导体存储器、磁带、磁盘、只读光盘、数字视盘或其他存储媒体中的数据及从其复原的数据进行编码与/或译码的目的。The present invention may be used for the purpose of encoding and/or decoding data transmitted or stored in semiconductor memory, magnetic tape, magnetic disk, CD-ROM, digital video disk or other storage media and data retrieved therefrom.

附图说明Description of drawings

图1是采用可变长编码器的已有编码器的实施例的框图。Figure 1 is a block diagram of an embodiment of a known encoder using a variable length encoder.

图2是采用可变长译码器的已有译码器的实施例的框图。Figure 2 is a block diagram of an embodiment of a conventional decoder using a variable length decoder.

图3A至3C是说明数字数据的分割、扫描模式及编码处理的已有方法的实例图。3A to 3C are diagrams illustrating examples of conventional methods of digital data segmentation, scanning patterns, and encoding processing.

图3D至3G是说明根据多种对象的数字数据分割、扫描模式及编码处理的本发明的示例图。3D to 3G are exemplary diagrams illustrating the present invention according to digital data segmentation, scanning patterns, and encoding processes of various objects.

图3H是基于POCS的任意形态变换的流程图。Fig. 3H is a flow chart of POCS-based arbitrary morphological transformation.

图4是说明已可变长编码的数据分布状态的框图。Fig. 4 is a block diagram illustrating the distribution state of variable-length coded data.

图5是表示根据本发明的可变长编码器的实施例的框图。Fig. 5 is a block diagram showing an embodiment of a variable length coder according to the present invention.

图6是表示根据本发明的可变长译码器的实施例的框图。Fig. 6 is a block diagram showing an embodiment of a variable length decoder according to the present invention.

图7A至7C是联系图5及图6说明所使用的扫描模式的图。7A to 7C are diagrams illustrating scanning patterns used in connection with FIGS. 5 and 6 .

图8A至8C是表示根据本发明的多段扫描的简单的实例图。8A to 8C are diagrams showing simple examples of multi-segment scanning according to the present invention.

图8D至8E是表示根据本发明的多段扫描模式的简单的实例图。8D to 8E are diagrams showing simple examples of multi-segment scanning patterns according to the present invention.

具体实施方式Detailed ways

下面,根据附图详述本发明的最佳实施例。Below, the preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

图1是略表示采用可变长编码方法的视频数据已有编码装置的框图。输入端10接收与用块方式分割的图像段相应的数据段或与按对象分割的图像段相应的数据段。一般用M1×M2的尺寸表示块形段,但为了便于说明,假设M1=M2=M3。通过输入端10输入的段数据在第一加法器A1中与已设定的反馈数据相加,计算出两组数据(即输入数据和反馈数据)间的差分数据。正交变换器11对输入的差分数据进行离散余弦变换,把差分数据变换成频率域的系数。量化器12经过已设定的量化处理把变换系数变更成多层次的代表值。此时,量化器12根据从缓冲器14输入的量化电平Q可变地量化从正交变换器11输出的数据。可变长编码器13根据量化系数的统计特性对段数据进行可变长编码并生成已压缩的数据VCD。对视频数据进行可变长编码的过程在后面叙述。缓冲器14接收从可变长编码器13来的已压缩数据,把此数据以固定速率输出到传送通道。此时,量化电平Q成为输出,其目的是为了防止数据的上溢和下溢而控制被压缩的数据量。FIG. 1 is a block diagram schematically showing a conventional encoding apparatus for video data using a variable length encoding method. The input 10 receives data segments corresponding to block-wise segmented image segments or data segments corresponding to object-wise segmented image segments. Generally, the size of M1×M2 is used to represent the block segment, but for the sake of illustration, it is assumed that M1=M2=M3. The segment data input through the input terminal 10 is added to the set feedback data in the first adder A1 to calculate the difference data between two sets of data (ie input data and feedback data). The orthogonal transformer 11 performs discrete cosine transform on the input difference data, and converts the difference data into coefficients in the frequency domain. The quantizer 12 changes the transform coefficients into multi-level representative values through the set quantization process. At this time, the quantizer 12 variably quantizes the data output from the orthogonal transformer 11 according to the quantization level Q input from the buffer 14 . The variable length encoder 13 performs variable length encoding on the segment data according to the statistical properties of the quantized coefficients and generates compressed data V CD . The process of variable-length coding video data will be described later. The buffer 14 receives the compressed data from the variable length coder 13, and outputs the data to the transmission channel at a fixed rate. At this time, the quantization level Q is output, and its purpose is to control the amount of compressed data in order to prevent overflow and underflow of data.

一般说,视频数据的相邻帧间存在相似的图样。从而,图像微微移动时,其图像的运动可根据当前帧和过去帧的比较来推断。运动矢量MV的计算依赖于运动推断的结果,运动补偿可以根据运动矢量从过去帧得到。由于从运动补偿得到的段数据和输入到输入端10的段数据之间的差分数据量非常少,用上述编码处理的方法可进一步压缩数据。为进行运动推断及运动补偿用的反馈环路由逆量化器15、逆正交变换器16、帧存储器17、运动推断器18及运动补偿器19构成。逆量化器15逆量化从量化器12输出的量化系数,逆正交变换器16把逆量化器15的输出数据经逆离散余弦变换成空间域的视频数据。第二加法器A2输出段数据,此段数据产生于把从逆正交变换器16输出的视频数据相加到从第二开关SW2输入的反馈数据而得到的结果。从第二加法器A2输出的段数据顺序地存储在帧存储器17中,从而再构成帧。运动推断器18从存储在帧存储器17中的帧数据求得与通过输入端10输入的段数据量最相近图样的段数据,从这二个段数据计算出用于图像运动推断的运动矢量MV。为了能够在译码系统中使用运动矢量MV,将其传送到接收器及运动补偿器19。运动补偿器19从帧存储器17内的帧数据读出与运动矢量MV相应的段数据,把读出的数据加到第一加法器A1。正如前述,第一加法器A1计算从输入端10输入的段数据和运动补偿器19输入的段数据之间的差分数据,把此差分数据编码并传送到接收器。再有,图1中的两个开关SW1和SW2是更新开关,其目的是为了防止由差分数据的累积产生已编码帧数据和未被处理的帧数据之间的差异,把数据更新成已设定大小的帧或段单位。In general, similar patterns exist between adjacent frames of video data. Thus, when the image moves slightly, the motion of the image can be inferred from the comparison of the current frame and the past frame. The calculation of the motion vector MV relies on the result of motion inference, and the motion compensation can be obtained from the past frame according to the motion vector. Since the amount of differential data between the segment data obtained from motion compensation and the segment data input to the input terminal 10 is very small, the data can be further compressed by the encoding process described above. A feedback loop for motion estimation and motion compensation is composed of an inverse quantizer 15 , an inverse orthogonal transformer 16 , a frame memory 17 , a motion estimator 18 and a motion compensator 19 . The inverse quantizer 15 inversely quantizes the quantized coefficients output from the quantizer 12, and the inverse orthogonal transformer 16 converts the output data of the inverse quantizer 15 into video data in the spatial domain through inverse discrete cosine transform. The second adder A2 outputs segment data resulting from adding the video data output from the inverse orthogonal converter 16 to the feedback data input from the second switch SW2. The segment data output from the second adder A2 is sequentially stored in the frame memory 17, thereby reconstructing a frame. The motion inferring unit 18 finds the segment data of the most similar pattern to the segment data input through the input terminal 10 from the frame data stored in the frame memory 17, and calculates the motion vector MV used for image motion estimation from these two segment data. . In order to be able to use the motion vector MV in the decoding system, it is transmitted to the receiver and motion compensator 19 . The motion compensator 19 reads segment data corresponding to the motion vector MV from the frame data in the frame memory 17, and supplies the read data to the first adder A1. As previously described, the first adder A1 calculates differential data between the segment data input from the input terminal 10 and the segment data input from the motion compensator 19, encodes the differential data, and transmits it to the receiver. Furthermore, the two switches SW1 and SW2 in Fig. 1 are update switches, the purpose of which is to prevent the difference between the encoded frame data and the unprocessed frame data from being generated by the accumulation of differential data, and update the data to the set A frame or segment unit of a given size.

已编码视频数据VCD或者存储在存储媒体中,或者在接收器中传送到输入到如图2所示的译码器中。可变长译码器21通过可变长编码的逆过程对输入视频数据VCD进行译码。逆量化器22对从可变长译码器21输入的量化系数进行译码,然后输出频率域的变换系数。逆正交变换器23把从量化器22输入的频率域的变换系数变换成空间域的视频数据。从编码器的运动推断器18输出运动矢量MV输入到译码器的运动补偿器24。运动补偿器24从存储在帧存储器25中的帧数据读出与运动矢量相应的段数据,把读出的数据加到加法器A中。加法器A把从逆正交换器23输出的差分数据加到从运动补偿器24输入的段数据中,输出从其结果产生的再构成的段数据。开关SW被连接到运动补偿器的输出端,其作用与上述图1编码器中的更新开关相同。The coded video data V CD is either stored in a storage medium or transmitted in a receiver to an input to a decoder as shown in FIG. 2 . The variable length decoder 21 decodes the input video data V CD through the inverse process of variable length coding. The inverse quantizer 22 decodes the quantized coefficients input from the variable length decoder 21, and outputs transform coefficients in the frequency domain. The inverse orthogonal transformer 23 transforms the transform coefficients in the frequency domain input from the quantizer 22 into video data in the spatial domain. The motion vector MV output from the motion estimator 18 of the encoder is input to the motion compensator 24 of the decoder. The motion compensator 24 reads out the segment data corresponding to the motion vector from the frame data stored in the frame memory 25, and adds the read data to the adder A. The adder A adds the differential data output from the inverse forward commutator 23 to the segment data input from the motion compensator 24, and outputs reconstructed segment data resulting from the result. A switch SW is connected to the output of the motion compensator and acts in the same way as the refresh switch in the encoder of Fig. 1 described above.

为达到可变长编码的目的,现有的编码系统使用哈夫曼(Huffman)编码技术方法。哈夫曼编码方法是根据已设定符号的概率给输入数据分配不同长度的代码。也就是说,概率越高分配的代码越短,概率越低分配的代码越长。采用哈夫曼算法的编码中,存在数量众多的相异符号,当特定符号具有低概率的时候,依据哈夫曼算法把长代码分配给很少出现的数量众多的符号的时候,在编码及译码处理中数据处理变得更加复杂。为了解决这个问题,若能为很少出现的许多个符号的分布域(以下称为逃逸域)分配已设定的固定长代码,则即使平均代码长度高于哈夫曼代码的平均值,数据处理复杂程度也可以大幅度地减少。In order to achieve the purpose of variable length coding, the existing coding system uses Huffman (Huffman) coding method. The Huffman coding method is to assign codes of different lengths to the input data according to the probability of the set symbols. That is to say, the higher the probability is, the shorter the code is assigned, and the lower the probability is, the longer the code is assigned. In encoding using the Huffman algorithm, there are a large number of different symbols. When a specific symbol has a low probability, when a long code is assigned to a large number of symbols that rarely appear according to the Huffman algorithm, the encoding and Data processing becomes more complicated in the decoding process. In order to solve this problem, if a set fixed-length code can be assigned to the distribution field of many symbols that rarely appear (hereinafter referred to as the escape field), even if the average code length is higher than the average value of the Huffman code, the data Processing complexity can also be greatly reduced.

图3A表示分割成8×8尺寸的段的数据结构的实例;图3B表示8×8段数据向频率域的变换及根据量化变换了的数据而产生的8×8量化系数;图3C表示鉴于大量的量化系数为频率域的“0”,从低频向高频对量化系数的Z形扫描及被扫描的系数向[行程、层次]符号的编码。在行程层次编码技术方法中,“行程”的意思是非“0”系数间的“0”的产生次数,“层次”的意思是非“0”系数的绝对值。图3A至图3C中8×8数据的情况下,“行程”的值是从“0”到“63”,当量化输出具有从“-255”到“255”的整数值时,“层次”的值是从“1”到“255”。其代码另外表示。Fig. 3A shows an example of the data structure divided into segments of 8x8 size; Fig. 3B shows the transformation of 8x8 segment data to the frequency domain and the 8x8 quantization coefficients generated according to the quantized transformed data; Fig. 3C shows that in view of A large number of quantized coefficients are "0" in the frequency domain, Z-shaped scanning of quantized coefficients from low frequency to high frequency and encoding of scanned coefficients to [length, level] symbols. In the run-level coding method, "run" means the number of "0" occurrences among non-"0" coefficients, and "level" means the absolute value of non-"0" coefficients. In the case of 8×8 data in Figure 3A to Figure 3C, the value of "run" is from "0" to "63", when the quantized output has an integer value from "-255" to "255", "level" The value is from "1" to "255". Its code indicates otherwise.

图3D表示以与多样化分割的另一种对象相一致的方式分割图像数据的另一种方法。一般来说,各数据段与独自成形的对象相对应。图3E表示与对象相对应的数据段的编码实例。由于对象的形状是任意的,在围绕给定对象的长方形上进行传统的基于块的正交变换这种特别的变换方法就显得必要。适当地选择处于给定对象之外和围绕它的长方形之内的象素值,就可根据变换系数的选择数目最好地再构成给定对象。图3F示出选择变换系数的例子。在表示拥有L个象素的图像部分的数据段的场合,变换域中可以存在L个有意义的变换系数。根据对图3E外部象素值的选择,图3F阴影部分的系数形成0或者已知值。采用行程长度编码和可变长编码,可以进一步压缩图3F中已选择的L个或更小数目的象素及成为0的变换系数。FIG. 3D shows another method of segmenting image data in a manner consistent with another object of diverse segmentation. In general, each data segment corresponds to a separately shaped object. Fig. 3E shows an example of encoding of data segments corresponding to objects. Since the shape of the object is arbitrary, a special transformation method of traditional block-based orthogonal transformation on a rectangle surrounding a given object is necessary. A given object can best be reconstructed according to the selected number of transform coefficients by proper selection of pixel values outside the given object and within the rectangle surrounding it. FIG. 3F shows an example of selecting transform coefficients. In the case of a data segment representing an image portion having L pixels, there may be L meaningful transform coefficients in the transform domain. Depending on the selection of the outer pixel values of FIG. 3E, the coefficients in the shaded portion of FIG. 3F form 0 or known values. Using run-length coding and variable-length coding, it is possible to further compress the selected L or smaller number of pixels and transform coefficients that become 0 in FIG. 3F.

基于图3H的流程图,可以进一步说明变换系数的选择及外推处理。Based on the flowchart in FIG. 3H , the selection and extrapolation processing of transform coefficients can be further explained.

可以采用基于POSC的迭代方式选择给定对象的外部象素值。在第一次迭代中,可以任意设定外部象素值,已知这对迭代或反映内部象素值是有效的[S.F.Chang and D.G.Messerschmitt,″Transform Coding of anArbitrarily-shaped Image Segment(任意形状图像段的变换编码)Proceedings of ACMMultimedia,August,1993]。一旦选择了外部象素值,就对长方形块进行正变换以期得到L个或少于该数目的变换系数。由于各变换系数的大小与同其系数相关联的能量相对应,系数选择的一个方法是选择L个(或已设定的少于该数目的)最大的变换系数。An iterative POSC-based approach may be used to select the outer pixel values for a given object. In the first iteration, the outer pixel values can be set arbitrarily, which is known to be effective for iterating or reflecting the inner pixel values [S.F.Chang and D.G.Messerschmitt, "Transform Coding of an Arbitrarily-shaped Image Segment (arbitrarily shaped image Transform coding of segment) Proceedings of ACMMultimedia, August, 1993]. Once the external pixel value is selected, the rectangular block is transformed forward in order to obtain L or less than the number of transform coefficients. Since the size of each transform coefficient is the same as Corresponding to the energy associated with the coefficients, one method of coefficient selection is to select L (or a set number less than this number) largest transformation coefficients.

一旦系数被选择,未被选择的别的系数被置成“0”。这些系数置“0”会引起空间域的信号变形,所以在未被选择位置置“0”的系数的逆变换之后,把对象的内部及边界上的象素值替换成原来的值。Once a coefficient is selected, other coefficients that are not selected are set to "0". Setting these coefficients to "0" will cause signal distortion in the spatial domain, so after the inverse transformation of the coefficients that are not set to "0" in the selected position, replace the pixel values inside and on the boundary of the object with the original values.

只有外部象素值受正变换、逆变换及内部象素替换的影响,未被选择的位置的系数值不再成为“0”。因此,重复以前的“正变换→置零→逆变换→内部象素替换”处理直至收敛。已知收敛可得到保证[如H.H.ChenM.R.Civanlar and B.G.Haskell,″A Block Transform Coder forArbitrarily Shaped Image Segments(用于任意形状图像段的块变换编码器)”Proceedings of IEEE International Conference on Image Processing,1994,Vol.1,85~89所示]。如果收敛,已完成适形变换的变换系数就可以,如图3F及图3G所示用行程层次编码及可变长编码的同一例子被进一步压缩。图3F中的变换系数块按Z形扫描顺序进行扫描和进行行程层次编码。用可变长编码可以进一步压缩[行程、层次]符号。Only the outer pixel values are affected by forward transformation, inverse transformation and inner pixel replacement, and the coefficient values of unselected positions no longer become "0". Therefore, the previous process of "forward transformation → zeroing → inverse transformation → internal pixel replacement" is repeated until convergence. Known convergence can be guaranteed [e.g. H.H.ChenM.R.Civanlar and B.G.Haskell, "A Block Transform Coder for Arbitrarily Shaped Image Segments (block transform coder for arbitrary shape image segments)" Proceedings of IEEE International Conference on Image Processing, 1994, Vol.1, 85-89]. If it converges, the transform coefficients that have completed the conformal transformation can be further compressed as shown in FIG. 3F and FIG. 3G with the same example of run-level coding and variable-length coding. The transform coefficient blocks in FIG. 3F are scanned and run-level coded in zigzag scanning order. The [run, level] symbols can be further compressed with variable length encoding.

图4示出根据[行程、层次]符号的按概率分类的逃逸(escape)域及规则域。从统计方面来讲,[行程、层次]符号拥有大值“行程”和/或“层次”的概率非常低。在低概率符号分布域也就是逃逸域,符号表示成定长逃逸序列,而正规哈夫曼代码则分配给别的域即规则域。比如,8×8段数据的场合,逃逸序列由6位逃逸符号、表示从“0”到“63”的6位“行程”、表示从“1”到“255”的8位“层次”及1位符号位构成。从而,逃逸序列具有共21位的固定长度。Figure 4 shows the escape and rule domains sorted by probability according to the [run, level] notation. Statistically speaking, the [run,level] symbol has a very low probability of having a large value for 'run' and/or 'level'. In the domain of low-probability symbol distribution, which is the escape domain, the symbols are expressed as fixed-length escape sequences, while regular Huffman codes are assigned to other domains, namely the regular domain. For example, in the case of 8×8 segments of data, the escape sequence consists of a 6-bit escape symbol, a 6-bit "stroke" from "0" to "63", an 8-bit "level" from "1" to "255" and 1 sign bit constitutes. Thus, the escape sequence has a fixed length of 21 bits in total.

在已有的可变长编码系统中,视频信号的能量集中在构成AC(交流)成分的中心的低频域,所以在视频数据的可变长编码中,为N×N量化系数使用了Z形扫描模式(见图3A至图3C)。但是,因视频信号模式的不同,视频信号的能量可能更广泛地分布在水平或垂直方向的频率成分中。因而,已有的Z形扫描模式并非是进行视频数据可变长编码的最佳扫描模式。从而,为进行可变长编码及可变长译码,向水平或垂直方向倾斜的扫描模式是所期望的,以便有随视频数据的分布特性而变化的通融性。In the existing variable-length coding system, the energy of the video signal is concentrated in the low-frequency region constituting the center of the AC (alternating current) component, so in the variable-length coding of video data, a zigzag is used for the N×N quantization coefficient Scan mode (see Figure 3A to Figure 3C). However, depending on the mode of the video signal, the energy of the video signal may be more widely distributed in the horizontal or vertical frequency components. Therefore, the existing zigzag scan mode is not the best scan mode for variable length coding of video data. Thus, for variable length encoding and variable length decoding, a scanning pattern inclined horizontally or vertically is desirable in order to have flexibility to vary with the distribution characteristics of the video data.

图5表示依据本发明实施例的可变长编码器。图5所示的编码器由以下部件构成:分别存储如图3B及图3F所示量化段数据那样的已量化段数据的量化系数的系数存储部件CM1~CMN;把分别的扫描地址分别提供给系数存储部件的N个扫描地址输出部件SAG1~SAGN;根据一个个扫描模式对系数各存储部件的各个系数进行程层次编码的N个行程层次编码器CD1~CDN;根据可变长编码映射对从各个行程层次编码器输出的[行程、层次]符号进行可变长编码的N个可变长编码器VLC1~VLCN;存储可变长编码器的各个可变长编码数据的N个缓冲器BF1~BFN;对从各个可变长编码器输出的已可变长编码的数据的长度进行分别累计的N个累计器ACCM1~ACCMN;从在N个累计器已累计的长度中选择最小值的最小值选择器;选择及传送在最小值选择器52中选定的那个可变长编码通道的缓冲器输出的选择开关54。Fig. 5 shows a variable length coder according to an embodiment of the present invention. The coder shown in Fig. 5 is made up of following parts: respectively store the coefficient memory parts CM 1 ~CM N of the quantization coefficient of quantized segment data as shown in Fig. 3B and Fig. 3F quantized segment data; N scan address output parts SAG 1 -SAG N provided to the coefficient storage unit; N run-level encoders CD 1 -CD N that carry out process-level encoding for each coefficient of each coefficient storage unit according to the scanning mode; according to the available Variable-length coding mapping N variable-length coders VLC 1 ~ VLC N that perform variable-length coding on the [run, level] symbols output from each run-level coder; store each variable-length code of the variable-length coder N buffers BF 1 to BF N of data; N accumulators ACCM 1 to ACCM N respectively accumulating the length of the variable-length-coded data output from each variable-length coder; A minimum value selector for selecting the minimum value in the length accumulated by the device; a selection switch 54 for selecting and transmitting the buffer output of the variable length coding channel selected in the minimum value selector 52 .

首先,量化成已设定大小段的量化系数分别存储在N个系数存储部件CM1~CMN。第1、第2及第N系数存储部件分别接收从第1、第2及第N种扫描地址输出部件分别输出的第1、第2及第N种扫描地址。下面叙述根据N种扫描地址进行扫描的N个系数存贮部件中的第1系数存储部件的编码通道。First, quantized coefficients quantized into segments of a predetermined size are stored in N coefficient storage units CM 1 to CM N , respectively. The first, second, and Nth coefficient storage means receive the first, second, and Nth type scan addresses respectively outputted from the first, second, and Nth type scan address output means, respectively. The encoding channel of the first coefficient storage unit among the N coefficient storage units scanned according to N types of scan addresses will be described below.

按照第1种扫描地址以已设定的扫描方向扫描存储在第1系数存储部件CM1中的量化系数,在第1行程层次编码器CD1中将该量化系数编码长[行程、层次]符号。第1可变长编码器VLC1根据已设定的可变长编码映射来可变长编码从第1行程层次编码器CD1输出的[行程、层次]符号,一个一个地输出可变长编码后的数据DVLC和可变长编码后的数据长度LVLC。从第1可变长编码器VLC1输出的已可变长编码数据DVLC存储在第1缓冲器BF1中;已可变长编码数据的长度LVLC输入到累计由第1可变长编码器VLC1编码的长LVLC的第1累计器ACCM1中,进行累计。第1累计器ACCM1由加法器A1和第1累计长度存储部件LM1构成。在加法器A1,把从第1可变长编码器VLC1输入的已可变长编码数据的长度LVLC与从第1累计长度存储部件LM1反馈的累计长度相加。第1累计长度存储部件LM1存储从加法器A1输出已更新的累计长度。Scan the quantized coefficients stored in the first coefficient storage unit CM 1 in the set scanning direction according to the first type of scanning address, and encode the quantized coefficients in the first run-length layer coder CD 1 into long [run-length, layer] symbols . The first variable length coder VLC 1 performs variable length coding on the [run, level] symbols output from the first run level coder CD 1 according to the set variable length code map, and outputs the variable length codes one by one The subsequent data D VLC and the variable length coded data length L VLC . The variable length coded data D VLC output from the first variable length coder VLC 1 is stored in the first buffer BF 1 ; the length L VLC of the variable length coded data is input Accumulation is carried out in the first accumulator ACCM 1 of the long L VLC coded by the VLC 1 . The first accumulator ACCM1 is composed of an adder A1 and a first accumulation length storage unit LM1 . In the adder A 1 , the length L VLC of the variable length coded data input from the first variable length coder VLC 1 is added to the cumulative length fed back from the first cumulative length storage unit LM 1 . The first cumulative length storage unit LM1 stores the updated cumulative length output from the adder A1 .

这个由一连串组成的编码通道适用于第2、第3以及第N系数存储部件CM2、CM3、CM4的量化系数。但是,为了扫描一个一个地存储在N个系数存储部件中的一个段的量化系数,可以使用别的模式。图7表示多个别的扫描模式的实现例。图7A显示具有0度扫描方向的扫描模式,图7B显示具有30度扫描方向的扫描模式,图7C显示具有45度扫描方向的扫描模式。This coding pass consisting of a succession is applied to the quantized coefficients of the 2nd, 3rd and Nth coefficient storage means CM 2 , CM 3 , CM 4 . However, in order to scan quantized coefficients of one segment stored in N coefficient storage sections one by one, another mode may be used. Fig. 7 shows a realization example of a plurality of other scanning modes. Figure 7A shows a scan pattern with a scan direction of 0 degrees, Figure 7B shows a scan pattern with a scan direction of 30 degrees, and Figure 7C shows a scan pattern with a scan direction of 45 degrees.

与任意成形的对象相对应并与对所围绕的长方形进行变换操作的图像段相对应的数据段的场合,扫描模式不必覆盖全部的频率成分。In the case of data segments corresponding to arbitrarily shaped objects and corresponding to image segments transformed by surrounding rectangles, the scanning pattern need not cover all frequency components.

在根据多种扫描模式的可变长编码通道中,把分别存储在N个累计器ACCM1~ACCMN的累计长度存储器部件的累计长度数据一个一个地提供给最小的值选择器52的N个输入端,最小值选择器52决定累计长度的最小值。存储根据N个类型的扫描模式可变长编码的数据的N个缓冲器BF1~BFN的各个输出端被分别连接到选择开关54的N个输入端。最小值选择器52从N个累计长度存储部件LM1~LMN分别输入的累计长度数据中选择最小值。最小值选择器52输出扫描模式数据DSCAN,此数据表示具有累计长度中选出最小累计长度的那个可变长编码通道的扫描模式,把与累计长度中选出的最小值相对应的规定的选择控制信号SEL提供给选择开关54。选择开关54选择已可变长编码的数据DVLC并予以输出,此数据DVLC与一个一个地输入到N个输入端的输入数据中累计长度的最小值相符合。In the variable length coding channel according to a plurality of scanning modes, the cumulative length data stored in the cumulative length memory parts of the N accumulators ACCM 1 to ACCM N are provided to the N minimum value selectors 52 one by one. At the input, a minimum value selector 52 determines the minimum value for the cumulative length. Respective output terminals of N buffers BF 1 ˜BF N storing data variable-length coded according to N types of scan patterns are respectively connected to N input terminals of the selection switch 54 . The minimum value selector 52 selects the minimum value from the cumulative length data input from the N cumulative length storage units LM 1 to LM N , respectively. The minimum value selector 52 outputs scanning mode data D SCAN , which represents the scanning mode of the variable-length coding channel having the minimum cumulative length selected from the cumulative lengths, and the prescribed minimum value corresponding to the cumulative length is selected. The selection control signal SEL is supplied to the selection switch 54 . The selection switch 54 selects and outputs the variable-length-coded data D VLC corresponding to the minimum value of the accumulated length among the input data inputted one by one to N input terminals.

每当选择了最小值,也就是每当每个段数据的可变长编码完成时,最小值选择器52产生复位信号RST,复位N个缓冲器BF1~BFN和N个累计长度存储部件LM1~LMN。可变长编码数据DVLC和扫描模式数据DSCAN从可变长编码器输出作为数字数据或者存储或者传送到进行译码用的接收器。Whenever the minimum value is selected, that is, whenever the variable-length coding of each segment data is completed, the minimum value selector 52 generates a reset signal RST to reset the N buffers BF 1 to BF N and the N cumulative length storage units LM 1 ~LM N . Variable length coded data D VLC and scan pattern data D SCAN are output from the variable length coder as digital data which are either stored or transmitted to a receiver for decoding.

图6表示依据本发明的可变长译码器的实施例。参考图6,输入到可变长译码器61的可变长编码数据DVLC根据可变长译码映射变换成[行程、层次]符号。而且,从译码器传送过来的扫描模式数据DSCAN输入到扫描模式选择器62,此扫描模式选择器62用于存储与如图7所示多种扫描模式(第1至第N种扫描)相对应的各个扫描地址。扫描模式选择器62选择与输入的扫描模式数据DSCAN相对应的扫描地址ADDRs并予以输出。行程层次译码器63根据从扫描模式选择器62输入的扫描地址ADDRs把从可变长译码器61输入的[行程、层次]符号变换成二维量化系数。此后,量化系数被提供给逆量化器。Fig. 6 shows an embodiment of a variable length decoder according to the present invention. Referring to FIG. 6, the variable-length coded data D VLC input to the variable-length decoder 61 is converted into [run, level] symbols according to the variable-length decoding map. And, the scanning mode data D SCAN that is sent from the decoder is input to the scanning mode selector 62, and this scanning mode selector 62 is used for storing and as shown in Figure 7 a plurality of scanning modes (the first to the Nth scanning) Corresponding to each scanning address. The scan mode selector 62 selects and outputs scan addresses ADDRs corresponding to the input scan mode data D SCAN . The run-level decoder 63 converts the [run-level, level] symbols input from the variable-length decoder 61 into two-dimensional quantization coefficients based on the scan addresses ADDRs input from the scan mode selector 62 . Thereafter, the quantized coefficients are supplied to an inverse quantizer.

正如前述,依本发明的可变长编码系统或者传送据多样化扫描模式对各段数据可变长编码之后使可变长编码数据长度为最小的扫描模式和传送据该扫描模式可变长编码的数据,或者为进行以后的译码把其存储在数字记录媒体中。依本发明的可变长译码系统,采用与在存储或传送的可变长编码数据的可变长编码过程中使用过的同样的扫描模式进行译码。其结果,可变长编码及可变长译码的系统,可以进一步压缩传送数据。As mentioned above, according to the variable-length coding system of the present invention, the variable-length coding of each piece of data is performed according to the variable-length scanning mode or the scanning mode that minimizes the length of the variable-length coding data and the variable-length coding according to the scanning mode is transmitted. data, or store it on a digital recording medium for subsequent decoding. According to the variable length decoding system of the present invention, decoding is performed using the same scanning pattern as used in the variable length encoding process of stored or transmitted variable length encoded data. As a result, the system of variable length coding and variable length decoding can further compress transmission data.

在本发明,各个段数据适合于图像部分的多样化的尺寸和形状。也就是,不管数字数据以何种方式分割成段数据,本发明都可以用于段数据的编码及译码。基于图3D至图3H,可以进一步理解此点。若适形变换如前述已完成,则长方形块内的变换系数按多重扫描顺序被扫描,然后采用与图5说明的同样的方法来选择特定扫描顺序。从而,联系图5说明了的本发明究竟可以怎样地扩展到具有多样化的尺寸和形态的更加一般场合的图像部分,这一点就非常清楚了。In the present invention, each segment data is adapted to various sizes and shapes of image parts. That is, regardless of how digital data is divided into segment data, the present invention can be applied to encoding and decoding of segment data. This can be further understood based on FIGS. 3D to 3H . If the conformal transformation is done as described above, the transformation coefficients in the rectangular block are scanned in multiple scanning order, and then the specific scanning order is selected using the same method as illustrated in FIG. 5 . It is thus clear how the invention, described in connection with Fig. 5, can be extended to more general image portions of varying sizes and shapes.

以上用可变长编码器/译码器例示和说明了本发明,但其他类型的编码器/译码器也可以在本发明中使用。例如,可以用哈夫曼或算术编码器/译码器来代替。进而言之,本发明的优点是不考虑编码器/译码器的类型用最合适的扫描模式来得到的,因此,本发明可以在没有可变长编码器/译码器的情况下使用。The present invention has been illustrated and described above using a variable length encoder/decoder, but other types of encoder/decoders may also be used in the present invention. For example, a Huffman or arithmetic coder/decoder could be used instead. Furthermore, the advantage of the present invention is obtained with the most suitable scanning pattern irrespective of the type of encoder/decoder, therefore, the present invention can be used without a variable length encoder/decoder.

进而,尽管联系二维数据例示和说明了本发明,但本发明也可适用于采用多维数据的编码及译码系统。Furthermore, although the present invention has been illustrated and described in relation to two-dimensional data, the present invention is also applicable to encoding and decoding systems employing multi-dimensional data.

向多维的扩展可以根据对多个段进行共同扫描的方法来实现。图8A表示从同一幅图像得到多个段的特定例。但是,正如在图8B中作为例子表示的那样,也可以同时扫描别的时间的段。如图8C所示,图8A和图8B的两种情况可以无任何限制地进行混合。图8D和图8E表示用于多重段的扫描模式的实例。图8D及图8E中所示的数字,表示在图3A或图3C中数据段的扫描顺序。The extension to multi-dimensionality can be realized by co-scanning multiple segments. FIG. 8A shows a specific example of obtaining multiple segments from the same image. However, as shown as an example in FIG. 8B, other time segments may also be scanned simultaneously. As shown in FIG. 8C, the two cases of FIG. 8A and FIG. 8B can be mixed without any limitation. 8D and 8E show examples of scan patterns for multiple segments. The numbers shown in FIG. 8D and FIG. 8E represent the scanning order of the data segments in FIG. 3A or FIG. 3C.

本发明可以无任何限制地经常适用于多维的场合。The invention can often be applied to multidimensional situations without any restrictions.

Claims (30)

1、一种对图像内的对象被分割成段的数字数据进行编码的方法,其特征在于该方法包含以下步骤:1. A method of encoding digital data in which an object within an image is segmented into segments, characterized in that the method comprises the following steps: 求得所述对象的段数据,该段数据为相应于多个对象的多个数据段;obtaining segment data of the object, the segment data being a plurality of data segments corresponding to a plurality of objects; 对上述对象的段数据求得其变换系数;Obtain the transformation coefficient for the segment data of the above object; 根据以适合于所述对象的段数据分布特性而选定的扫描模式对上述步骤中所求得的数据进行扫描,并对被扫描的数据进行编码;Scanning the data obtained in the above steps according to the selected scanning mode suitable for the segment data distribution characteristics of the object, and encoding the scanned data; 输出上述已编码数据及编码该数据时所采用的扫描模式的扫描模式数据,其中,outputting the scan mode data of the above coded data and the scan mode used to encode the data, wherein, 每个所述段数据对应于在图像内选择的一个对象,并表示与该对象的像素值相应的图像段的大小及形状。Each of the segment data corresponds to an object selected within the image and indicates the size and shape of the image segment corresponding to the pixel value of the object. 2、如权利要求1所述的编码方法,其特征在于,在所述编码步骤中,依据所选定的扫描模式进行扫描的范围仅覆盖该段数据的分布区域。2. The encoding method according to claim 1, characterized in that, in the encoding step, the scanning range according to the selected scanning mode only covers the distribution area of the segment of data. 3、如权利要求1所述的编码方法,其特征在于,在所述的求得其变换系数步骤中,所得的数据为一种已设定系数,并且相应于与所述对象段数据分布特性相一致的多个二维数据。3. The coding method as claimed in claim 1, characterized in that, in the step of obtaining the transform coefficients, the obtained data is a set coefficient, and corresponds to the data distribution characteristics of the object segment Consistent multiple two-dimensional data. 4、如权利要求1所述的编码方法,其特征在于,在所述的求得其变换系数步骤中,所得的数据为一种与所述对象段数据的分布特性相一致的多个二维量化系数。4. The encoding method according to claim 1, characterized in that, in the step of obtaining the transform coefficients, the obtained data is a plurality of two-dimensional data consistent with the distribution characteristics of the object segment data. Quantization coefficient. 5、如权利要求1至4中任一项所述的编码方法,其特征在于,在所述编码步骤中,对所扫描的数据进行可变长编码。5. The encoding method according to any one of claims 1 to 4, characterized in that, in the encoding step, variable length encoding is performed on the scanned data. 6、如权利要求1至4中任一项所述的编码方法,其特征在于,在所述编码步骤中,对所扫描的数据进行哈夫曼编码。6. The encoding method according to any one of claims 1 to 4, characterized in that, in the encoding step, Huffman encoding is performed on the scanned data. 7、如权利要求1至4中任一项所述的编码方法,其特征在于,在所述编码步骤中,对所扫描的数据进行算术编码。7. The encoding method according to any one of claims 1 to 4, characterized in that, in said encoding step, arithmetic encoding is performed on the scanned data. 8、如权利要求1至4中任一项所述的编码方法,其特征在于,在所述编码步骤中,所选定的扫描模式的扫描方向为水平方向。8. The encoding method according to any one of claims 1 to 4, characterized in that, in the encoding step, the scanning direction of the selected scanning mode is the horizontal direction. 9、如权利要求1或4中任一项所述的编码方法,其特征在于,在所述编码步骤中,所选定的扫描模式的扫描方向为垂直方向。9. The encoding method according to any one of claims 1 or 4, characterized in that, in the encoding step, the scanning direction of the selected scanning mode is the vertical direction. 10、如权利要求1或4中任一项所述的编码方法,其特征在于,在所述编码步骤中,所选定的扫描模式具有30度或45度倾角的扫描方向。10. The encoding method according to any one of claims 1 or 4, characterized in that, in the encoding step, the selected scanning pattern has a scanning direction with an inclination of 30 degrees or 45 degrees. 11、如权利要求1或4中任一项所述的编码方法,其特征在于,在所述编码步骤中,对所求得的数据按给定的多种扫描模式分别进行扫描、编码,并且相应于各编码数据的累计长度值中与最小值相应的扫描模式为所选定的扫描模式。11. The encoding method according to any one of claims 1 or 4, characterized in that, in the encoding step, the obtained data are respectively scanned and encoded according to a plurality of given scanning modes, and The scan mode corresponding to the minimum value among the accumulated length values of each coded data is the selected scan mode. 12、如权利要求11所述的编码方法,其特征在于,所述给定的多种扫描模式可含有分别具有0度(水平)、30度、45度(Z型)及90度(垂直)倾角方向的扫描模式。12. The encoding method according to claim 11, characterized in that, the given multiple scanning modes can include 0 degrees (horizontal), 30 degrees, 45 degrees (Z type) and 90 degrees (vertical) Scanning pattern in the direction of the obliquity. 13、一种对已编码的数据进行译码的方法,其特征在于该方法包含以下步骤:13. A method of decoding encoded data, characterized in that the method comprises the steps of: 接收上述已编码数据进行译码;receiving the above coded data for decoding; 将上述已译码的数据根据所提供的扫描模式数据而定的位置进行排列,其中,Arrange the above-mentioned decoded data according to the positions determined by the provided scan pattern data, wherein, 所接收的已编码数据相应于多个数据段,The received encoded data corresponds to a plurality of data segments, 所述已编码数据为对图像内的对象按段编码的数据;The encoded data is segment-encoded data for objects within the image; 其中,每个所述段数据对应于在图像内选择的一个对象,并表示与该对象的像素值相应的图像段的大小及形状。Wherein, each of the segment data corresponds to an object selected in the image, and represents the size and shape of the image segment corresponding to the pixel value of the object. 14、如权利要求13所述的译码方法,其特征在于,所述的扫描模式数据为与已编码数据一起提供的,并表示该编码数据所采用的扫描信息。14. The decoding method according to claim 13, characterized in that said scan mode data is provided together with the encoded data, and represents the scan information used by the encoded data. 15、如权利要求13所述的译码方法,其特征在于,在所述排列步骤中,所定的位置上排列而构成的数据与所述对象在编码之前的各段数据的分布特性相一致。15. The decoding method according to claim 13, characterized in that, in the arranging step, the data formed by arranging at predetermined positions is consistent with the distribution characteristics of each piece of data of the object before encoding. 16、如权利要求13所述的译码方法,其特征在于,在所述译码步骤中,所接收的已编码数据相应于一个图像的多个数据段。16. The decoding method according to claim 13, wherein, in said decoding step, the received encoded data corresponds to a plurality of data segments of one picture. 17、如权利要求13所述的译码方法,其特征在于,在所述译码步骤中,所接收的已编码数据相应于多个图像的多个数据段。17. The decoding method according to claim 13, characterized in that, in said decoding step, the received encoded data corresponds to a plurality of data segments of a plurality of images. 18、如权利要求13所述的译码方法,其特征在于,所述译码步骤为接收可变长编码数据,并对该编码数据进行可变长译码。18. The decoding method according to claim 13, wherein the decoding step is to receive variable-length coded data and perform variable-length decoding on the coded data. 19、如权利要求13所述的译码方法,其特征在于,所述译码步骤为接收哈夫曼编码数据,并对该编码数据进行哈夫曼译码。19. The decoding method according to claim 13, wherein the decoding step is to receive Huffman encoded data and perform Huffman decoding on the encoded data. 20、如权利要求13所述的译码方法,其特征在于,所述译码步骤为接收算术编码数据,并对该编码数据进行算术译码。20. The decoding method according to claim 13, wherein the decoding step is to receive arithmetic coded data and perform arithmetic decoding on the coded data. 21、如权利要求13至20中任一项所述的译码方法,其特征在于,在所述排列步骤中,根据扫描模式数据而定的扫描方向为水平方向。21. The decoding method according to any one of claims 13 to 20, characterized in that, in the arranging step, the scanning direction determined according to the scanning pattern data is the horizontal direction. 22、如权利要求13至20中任一项所述的译码方法,其特征在于,在所述排列步骤中,根据扫描模式数据而定的扫描方向为垂直方向。22. The decoding method according to any one of claims 13 to 20, characterized in that, in the arranging step, the scanning direction determined according to the scanning pattern data is the vertical direction. 23、如权利要求13至20中任一项所述的译码方法,其特征在于,在所述排列步骤中,根据扫描模式数据而定的扫描方向为具有30度或45度倾角的扫描方向。23. The decoding method according to any one of claims 13 to 20, characterized in that, in the arranging step, the scanning direction determined according to the scanning pattern data is a scanning direction with an inclination angle of 30 degrees or 45 degrees . 24、如权利要求13至20中任一项所述的译码方法,其特征在于,在所述排列步骤中,根据扫描模式数据而决定的扫描方向及扫描范围相应发生扫描地址,并在该扫描地址所指定的位置上一一排列已译码的数据。24. The decoding method according to any one of claims 13 to 20, characterized in that, in the arranging step, a scanning address is generated corresponding to the scanning direction and scanning range determined according to the scanning pattern data, and in the The decoded data are arranged one by one at the positions specified by the scan address. 25、如权利要求24所述的译码方法,其特征在于,所发生的扫描地址是由多种扫描地址中根据所提供的扫描模式数据相应选定的一种。25. The decoding method according to claim 24, characterized in that, the generated scanning address is one of multiple scanning addresses selected according to the provided scanning mode data. 26、如权利要求25所述的译码方法,其特征在于,所述的多种扫描地址可含有分别具有0度(水平)、30度、45度(Z型)及90度(垂直)倾角方向的扫描地址。26. The decoding method according to claim 25, characterized in that, said multiple scanning addresses can include tilt angles of 0 degree (horizontal), 30 degrees, 45 degrees (Z-type) and 90 degrees (vertical) Direction scan address. 27、如权利要求13至20中任一项所述的译码方法,其特征在于,在所述排列步骤中,经排列而得的数据为一种多个二维数据。27. The decoding method according to any one of claims 13 to 20, characterized in that, in the step of arranging, the data obtained after arranging is a plurality of two-dimensional data. 28、如权利要求27所述的译码方法,其特征在于,所述二维数据为多个已变换系数的二维数据。28. The decoding method according to claim 27, wherein the two-dimensional data is two-dimensional data of a plurality of transformed coefficients. 29、如权利要求27所述的译码方法,其特征在于,所述二维数据为多个二维量化系数。29. The decoding method according to claim 27, wherein the two-dimensional data is a plurality of two-dimensional quantized coefficients. 30、如权利要求29所述的译码方法,其特征在于,还包含对所述量化系数进行逆量化的步骤。30. The decoding method according to claim 29, further comprising the step of dequantizing the quantized coefficients.
CNA200510066736XA 1996-01-25 1997-01-24 Variable length coding method and variable length decoding method. Withdrawn CN1791218A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1019960001588A KR100242635B1 (en) 1996-01-25 1996-01-25 Variable length coding and variable length decoding system
KR1588/96 1996-01-25

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CNB00126057XA Division CN100568742C (en) 1996-01-25 1997-01-24 Method for encoding and decoding object in image by segment data

Publications (1)

Publication Number Publication Date
CN1791218A true CN1791218A (en) 2006-06-21

Family

ID=19450054

Family Applications (6)

Application Number Title Priority Date Filing Date
CNA2005100082144A Pending CN1652468A (en) 1996-01-25 1997-01-24 Variable length coding method and device , and variable length decoding method and device
CNB00126060XA Expired - Fee Related CN1178396C (en) 1996-01-25 1997-01-24 Variable length coding method and variable length decoding method
CNB00126057XA Expired - Fee Related CN100568742C (en) 1996-01-25 1997-01-24 Method for encoding and decoding object in image by segment data
CNA200510066736XA Withdrawn CN1791218A (en) 1996-01-25 1997-01-24 Variable length coding method and variable length decoding method.
CNB001260588A Expired - Fee Related CN1178395C (en) 1996-01-25 1997-01-24 Method for Arithmetic Coding and Decoding of Objects in an Image
CNB001260596A Expired - Fee Related CN1179486C (en) 1996-01-25 2000-08-29 Variable length coding method and variable length decoding method

Family Applications Before (3)

Application Number Title Priority Date Filing Date
CNA2005100082144A Pending CN1652468A (en) 1996-01-25 1997-01-24 Variable length coding method and device , and variable length decoding method and device
CNB00126060XA Expired - Fee Related CN1178396C (en) 1996-01-25 1997-01-24 Variable length coding method and variable length decoding method
CNB00126057XA Expired - Fee Related CN100568742C (en) 1996-01-25 1997-01-24 Method for encoding and decoding object in image by segment data

Family Applications After (2)

Application Number Title Priority Date Filing Date
CNB001260588A Expired - Fee Related CN1178395C (en) 1996-01-25 1997-01-24 Method for Arithmetic Coding and Decoding of Objects in an Image
CNB001260596A Expired - Fee Related CN1179486C (en) 1996-01-25 2000-08-29 Variable length coding method and variable length decoding method

Country Status (4)

Country Link
KR (1) KR100242635B1 (en)
CN (6) CN1652468A (en)
GB (1) GB2309613B (en)
MY (1) MY118173A (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874509B (en) * 2001-09-14 2014-01-15 诺基亚有限公司 Method and system for context-based adaptive binary arithmetic coding
WO2006051796A1 (en) * 2004-11-09 2006-05-18 Matsushita Electric Industrial Co., Ltd. Two step arithmetic decoding with conversion into an intermediate format
WO2008128380A1 (en) * 2007-04-20 2008-10-30 Thomson Licensing Method and apparatus for selecting a scan path for the elements of a block in spatial domain picture encoding and decoding
US8004431B2 (en) * 2008-12-09 2011-08-23 Qualcomm Incorporated Fast parsing of variable-to-fixed-length codes
US20120230405A1 (en) * 2009-10-28 2012-09-13 Media Tek Singapore Pte. Ltd. Video coding methods and video encoders and decoders with localized weighted prediction
KR101373814B1 (en) * 2010-07-31 2014-03-18 엠앤케이홀딩스 주식회사 Apparatus of generating prediction block
PL409214A1 (en) * 2011-11-08 2015-07-20 Kt Corporation Method and the device for scanning coefficients on the basis of the prediction unit division mode
EP3664449A1 (en) * 2018-12-05 2020-06-10 InterDigital VC Holdings, Inc. Method and device for picture encoding and decoding

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62145988A (en) * 1985-12-20 1987-06-30 Fujitsu Ltd Transmission system for picture applied with adoptive scanning-line conversion
GB2219458A (en) * 1988-06-01 1989-12-06 Philips Electronic Associated Processing sub-sampled signals
KR960006762B1 (en) * 1992-02-29 1996-05-23 삼성전자주식회사 Efficient 2D Scan Selection Circuit for Image Coding
KR950010913B1 (en) * 1992-07-23 1995-09-25 삼성전자주식회사 Variable length coding and decoding system
EP0729688A1 (en) * 1993-11-15 1996-09-04 National Semiconductor Corporation Quadtree-structured walsh transform coding

Also Published As

Publication number Publication date
KR100242635B1 (en) 2000-02-01
KR970060954A (en) 1997-08-12
CN1178396C (en) 2004-12-01
CN1290068A (en) 2001-04-04
HK1033511A1 (en) 2001-08-31
MY118173A (en) 2004-09-30
HK1033510A1 (en) 2001-08-31
GB2309613B (en) 1997-12-10
GB2309613A (en) 1997-07-30
CN1652468A (en) 2005-08-10
CN1179486C (en) 2004-12-08
CN1290067A (en) 2001-04-04
CN100568742C (en) 2009-12-09
CN1290070A (en) 2001-04-04
CN1178395C (en) 2004-12-01
HK1033508A1 (en) 2001-08-31
GB9701440D0 (en) 1997-03-12
CN1290069A (en) 2001-04-04
HK1033509A1 (en) 2001-08-31

Similar Documents

Publication Publication Date Title
JP4111644B2 (en) Embedded encoding / decoding method and system
US5714950A (en) System for variable-length-coding and variable-length-decoding digitaldata
JP3699425B2 (en) Image compression method and system with adaptive block size
US5654706A (en) System for variable length decoding digital transmission data which has been compressed by selecting a scanning pattern
CN1071526C (en) Adaptive Variable Length Coding and Decoding Method for Image Data
EP1529401A1 (en) System and method for rate-distortion optimized data partitioning for video coding using backward adaptation
CN1173958A (en) Region-based texture coding method ad decoding method, and corresponding systems
JP4426118B2 (en) Lossless adaptive coding of finite alphabet data
CN1179486C (en) Variable length coding method and variable length decoding method
US9077960B2 (en) Non-zero coefficient block pattern coding
CN1268061C (en) Variable length coding and variable length decoding method and device
CN1218584C (en) Reduced complexity IDCT decoding with graceful degradation
CN1183199A (en) Improved post-processing method and apparatus for use in an image signal decoding system
WO2002013539A1 (en) Sub-optimal variable length coding
HK1033508B (en) Methods for arithmetic coding and decoding an object within an image
HK1033510B (en) Method for variable length encoding and method for variable length decoding
HK1033511B (en) Variable length coding method and variable length decoding method
KR0134358B1 (en) Coding and Decoding System Using Variable Scan Method
HK1033509B (en) Methods for coding and decoding an object within an image based on segment data
JPH03243066A (en) Image coding system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C04 Withdrawal of patent application after publication (patent law 2001)
WW01 Invention patent application withdrawn after publication