CN1972445A - Video encoder and video encoding method capable of updating quantization table - Google Patents
Video encoder and video encoding method capable of updating quantization table Download PDFInfo
- Publication number
- CN1972445A CN1972445A CN 200510123732 CN200510123732A CN1972445A CN 1972445 A CN1972445 A CN 1972445A CN 200510123732 CN200510123732 CN 200510123732 CN 200510123732 A CN200510123732 A CN 200510123732A CN 1972445 A CN1972445 A CN 1972445A
- Authority
- CN
- China
- Prior art keywords
- video
- quantization table
- random access
- quantization
- access memory
- 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.)
- Pending
Links
- 238000013139 quantization Methods 0.000 title claims abstract description 98
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000008859 change Effects 0.000 claims abstract description 8
- 230000003068 static effect Effects 0.000 claims description 10
- 230000006835 compression Effects 0.000 abstract description 18
- 238000007906 compression Methods 0.000 abstract description 18
- 230000008569 process Effects 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种视讯编码器以及编码的方法,特别涉及一种具有随机存取内存(RAM,Random Access Memory)可储存量化表(Quantization Table),而量化表可根据使用者需求或特殊环境而被更新,借以改变量化(Quantization)的取舍标准。The present invention relates to a video encoder and an encoding method, in particular to a random access memory (RAM, Random Access Memory) that can store a quantization table (Quantization Table), and the quantization table can be configured according to user needs or special circumstances. is updated to change the selection criteria for Quantization.
背景技术Background technique
视讯压缩技术,缘起于在有限的频宽、储存空间中,能够有效传输、储存视讯资料的需求。例如,一部640×480,30frame/s,30分钟的全彩视讯,若未经压缩,需要约47GB的储存空间,显然无法达到视讯传播的效益。Video compression technology originates from the need to efficiently transmit and store video data in limited bandwidth and storage space. For example, a 640×480, 30frame/s, 30-minute full-color video requires about 47GB of storage space if it is not compressed, which obviously cannot achieve the benefits of video transmission.
现有的视讯压缩技术,主要是通过去除重复性(redundancy)、人眼不易察觉的信息,以及熵编码(entropy coding)的方式来达到压缩的目的。如图1所示,为现有的视讯编码器的示意图,在视讯编码器10中,空间域的视讯信息输入转换单元101,利用DCT(Discrete Cosine Transformation)等方式转换为频率域的视讯信息。而后进行量化,透过量化单元102以量化表1021(Quantization Table)针对频率域的视讯信息进行取舍,去除视讯信息中人眼不易察觉的高频信息。最后,进行熵编码103,如Huffman或Arithmetic coding,以有效率的方式来储存信息。Existing video compression technology mainly achieves the purpose of compression by removing redundancy, information that is not easily perceived by the human eye, and entropy coding. As shown in FIG. 1 , it is a schematic diagram of an existing video encoder. In the video encoder 10, the video information in the spatial domain is input into the conversion unit 101, and converted into video information in the frequency domain by means of DCT (Discrete Cosine Transformation). Quantization is then carried out, through the quantization unit 102, the quantization table 1021 (Quantization Table) is used to select or reject the video information in the frequency domain, and remove the high-frequency information in the video information that is not easy for human eyes to detect. Finally, entropy coding 103 is performed, such as Huffman or Arithmetic coding, to store information in an efficient manner.
上述的量化过程,简而言之,就是对频率域的视讯信息进行除法运算,而除法的分母在量化表中根据频率高低而有不同,即量化位阶(Quantization Scale)的选取。原则上,高频信息人眼不易察觉,故应采用较大的scale,使其尽可能成为零;而低频信息采用较小的scale,使其还原后不至于和原来的资料相差太多。The above-mentioned quantization process, in short, is to divide the video information in the frequency domain, and the denominator of the division is different according to the frequency in the quantization table, that is, the selection of the quantization scale (Quantization Scale). In principle, high-frequency information is not easy to detect by the human eye, so a larger scale should be used to make it as zero as possible; and a smaller scale should be used for low-frequency information so that the restored data will not differ too much from the original data.
现有的视讯编码器,在编码压缩视讯信息过程中,其量化表是固定不变的。换言之,不管视讯信息内容如何,对于去除高低频信息的标准都一样。这样的作法会导致一些问题,对于特殊的环境或场景,无法提供一较佳的压缩比,压缩太过或不及,造成压缩效果变差,或影像画质变差等问题,例如,当视讯信息中出现近距离取景发丝飘动等高频讯号时,同样的量化表,对这种埸景而言,压缩比可能过高,经编码译码后,造成飘动的发丝可能都看不到了,又例如,当影像的背景一直为静态时,同样的量化表,反而有压缩比太小的可能,进而造成压缩不彰,浪费储存空间。因此,对于常用技术的一些缺点,有必要加以改进。In the existing video coder, the quantization table is fixed during the process of encoding and compressing video information. In other words, regardless of the content of the video information, the criteria for removing high and low frequency information are the same. This approach will lead to some problems. For special environments or scenes, it is impossible to provide a better compression ratio. If the compression is too high or not enough, the compression effect will be deteriorated, or the image quality will be deteriorated. For example, when the video information When there are high-frequency signals such as hair fluttering in the close-up view, the same quantization table, for this kind of scene, the compression ratio may be too high. After encoding and decoding, the fluttering hair may not be visible. For another example, when the background of the image is always static, the same quantization table may have a too small compression ratio, resulting in poor compression and wasting storage space. Therefore, it is necessary to improve on some shortcomings of commonly used technologies.
发明内容Contents of the invention
本发明的目的,在于建立一种可更新量化表的视讯编码器,利用随机存取内存(RAM,Random Access Memory)储存量化表(Quantization Table),而量化表可根据使用者需求或特殊环境而被更新,藉以改变量化(Quantization)的取舍标准,而使得视讯编码压缩的结果更趋完美。The purpose of the present invention is to establish a video coder that can update the quantization table, and use random access memory (RAM, Random Access Memory) to store the quantization table (Quantization Table), and the quantization table can be changed according to user needs or special circumstances It is updated to change the standard of quantization (Quantization), so that the result of video coding compression is more perfect.
本发明的另一目的,在于提出一种视讯编码方法,是在视讯编码过程中,可根据视讯信息的内容,更新量化表(Quantization Table),并根据该量化表量化该频率域的视讯信息,以便更有弹性地去除视讯信息中的多余讯号。同时,在不改变影像品质下,提高压缩率,或者在维持现有压缩率下,提高影像品质。Another object of the present invention is to propose a video encoding method, which can update the quantization table (Quantization Table) according to the content of the video information during the video encoding process, and quantize the video information in the frequency domain according to the quantization table. In order to more flexibly remove redundant signals in video information. At the same time, the compression rate can be increased without changing the image quality, or the image quality can be improved while maintaining the existing compression rate.
为达上述目的,本发明提出一种可更新量化表的视讯编码器(Video Encoder),用以压缩一视讯信息,其具有一随机存取内存(RAM,Random Access Memory)以储存一量化表(Quantization Table),该量化表可在该视讯编码器处理该视讯信息过程中被更新,藉以改变量化(Quantization)的取舍标准。In order to achieve the above object, the present invention proposes a video encoder (Video Encoder) that can update the quantization table to compress a video information, and it has a random access memory (RAM, Random Access Memory) to store a quantization table ( Quantization Table), the quantization table can be updated during the process of the video encoder processing the video information, so as to change the selection standard of quantization (Quantization).
所述的视讯编码器,为Mpeg2或Mpeg4的视讯编码器。The video coder is Mpeg2 or Mpeg4 video coder.
所述的视讯编码器,其中该随机存取内存为一挥发性内存(Volatile Memory)或一非挥发性内存(NVRAM,Non-Volatile Random Access Memory)。The video encoder, wherein the random access memory is a volatile memory (Volatile Memory) or a non-volatile memory (NVRAM, Non-Volatile Random Access Memory).
所述的视讯编码器,其中该挥发性内存(Volatile Memory)为静态随机存取内存(SRAM,Static Random Access Memory)。The video encoder, wherein the volatile memory (Volatile Memory) is Static Random Access Memory (SRAM, Static Random Access Memory).
所述的视讯编码器,其中还包含一记体装置,藉以储存数个情况的量化表,以根据各种情况,更新该随机存取内存(RAM,Random Access Memory)的该量化表。The video encoder further includes a memory device for storing quantization tables of several situations, so as to update the quantization tables of the Random Access Memory (RAM) according to various situations.
为达上述目的,本发明提出一种视讯编码的方法,其步骤为:提供一视讯信息;转换该视讯信息为一频率域的视讯信息;根据该视讯信息的内容,更新一量化表(Quantization Table);以及根据该量化表量化该频率域的视讯信息。In order to achieve the above object, the present invention proposes a method for video encoding, the steps of which are: providing a video information; converting the video information into video information in a frequency domain; updating a Quantization Table (Quantization Table) according to the content of the video information ); and quantize the video information in the frequency domain according to the quantization table.
所述的视讯编码的方法,为Mpeg2或Mpeg4的视讯编码的方法。The video coding method is Mpeg2 or Mpeg4 video coding method.
所述的视讯编码的方法,其中该量化表储存于一随机存取内存(RAM,Random Access Memory)。In the video coding method, the quantization table is stored in a random access memory (RAM, Random Access Memory).
所述的视讯编码的方法,其中该随机存取内存为一挥发性内存(VolatileMemory)或一非挥发性内存(NVRAM,Non-Volatile Random Access Memory)。The video encoding method, wherein the random access memory is a volatile memory (VolatileMemory) or a non-volatile memory (NVRAM, Non-Volatile Random Access Memory).
所述的视讯编码的方法,其中该挥发性内存(Volatile Memory)为静态随机存取内存(SRAM,Static Random Access Memory)。The video encoding method, wherein the volatile memory (Volatile Memory) is Static Random Access Memory (SRAM, Static Random Access Memory).
所述的视讯编码的方法,其中还包含一记体装置,藉以储存数个情况的量化表,以根据各种情况,更新该随机存取内存(RAM,Random Access Memory)的该量化表。The video encoding method further includes a storage device for storing quantization tables of several situations, so as to update the quantization tables of the Random Access Memory (RAM) according to various situations.
上述的发明是针对常用技术提出改善,利用建立一种可更新量化表的视讯编码器,以随机存取内存(RAM,Random Access Memory)储存量化表(QuantizationTable),而量化表可根据使用者需求或特殊环境而被更新,借以改变量化(Quantization)的取舍标准,而使得视讯编码压缩的结果更趋完美。而本发明更提出一种视讯编码方法,在视讯编码过程中,可根据视讯信息的内容,更新量化表(Quantization Table),并根据该量化表量化该频率域的视讯信息,以便更有弹性地去除视讯信息中的多余讯号。The above-mentioned invention proposes an improvement to the commonly used technology, utilizes a kind of video coder that can update the quantization table, stores the quantization table (Quantization Table) with random access memory (RAM, Random Access Memory), and the quantization table can be changed according to the user's demand Or special circumstances are updated, so as to change the quantization (Quantization) selection standard, so that the result of video coding compression is more perfect. The present invention further proposes a video encoding method. During the video encoding process, the quantization table (Quantization Table) can be updated according to the content of the video information, and the video information in the frequency domain can be quantized according to the quantization table, so as to more flexibly Remove unwanted signals from video messages.
附图说明Description of drawings
图1为现有的视讯编码器的示意图。FIG. 1 is a schematic diagram of a conventional video encoder.
图2为本发明较佳实施例的可更新量化表的视讯编码器的示意图。FIG. 2 is a schematic diagram of a video encoder with an updateable quantization table according to a preferred embodiment of the present invention.
图3为本发明较佳实施例的可更新量化表的视讯编码器的示意图二。FIG. 3 is a second schematic diagram of a video encoder with an updateable quantization table according to a preferred embodiment of the present invention.
具体实施方式Detailed ways
如图2所示,为本发明较佳实施例的可更新量化表的视讯编码器的示意图。如图所示,在视讯编码器20中,空间域的视讯信息输入转换单元201,利用DCT等方式转换为频率域的视讯信息后,经由量化单元202进行量化,最后,进行熵编码203,以Huffman或Arithmetic coding等有效率的方式来储存信息。As shown in FIG. 2 , it is a schematic diagram of a video encoder with an updateable quantization table according to a preferred embodiment of the present invention. As shown in the figure, in the
量化过程所需的量化表2041,是储存在SRAM等随机存取内存204(RAM,Random Access Memory)中,可在视讯编码器20处理视讯信息的过程中被更新,以根据视讯信息的内容而改变对高低频信息的去除标准。例如,当视讯信息中,低频讯号多而高频讯号少时,则可依一般的原则,对高频信息采用较大的scale,使其尽可能成为零;而低频信息采用较小的scale,使其还原后不至于和原来的资料相差太多。然而,在视讯信息中明显只包含高频讯号时,则可更新量化表,对高频信息采用较小的scale,以避免视讯译码后看不到画面。The quantization table 2041 required for the quantization process is stored in a random access memory 204 (RAM, Random Access Memory) such as SRAM, and can be updated during the process of video information processing by the
图3为本发明的另一实施例。此实施例中,多了一记忆装置30,该记忆装置可预设一些常出现情况的量化表,例如第一情况量化表为静态影像的量化表,第二情况量化表为夜间影像的量化表,而第N情况为雪地影像的量化表,除此,也可利用使用者来更新量化表2041。这样一来,可使本发明的应用更具弹性,针对某些特殊情况的影像,直接利用预设的量化表来更新即可。Fig. 3 is another embodiment of the present invention. In this embodiment, a
当然,除了Mpeg2或Mpeg4外,本发明更可应用于其它有用到quantizationtable的压缩法。一般quantization的运作有两种:scalar和vector两种,MPEG列用的是scalar的,但vector quantization的方式也是一个表格,故此这个方法也可以用在vector的quantization上面。而改变quantization table的目的在于底下两者之一:1.不改变影像品质下,提高压缩率。2.在维持现有压缩率下,提高影像品质。Certainly, besides Mpeg2 or Mpeg4, the present invention can be applied to other compression methods useful for quantization table. Generally, there are two types of quantization operations: scalar and vector. The MPEG column uses scalar, but the vector quantization method is also a table, so this method can also be used for vector quantization. The purpose of changing the quantization table is one of the following: 1. Improve the compression rate without changing the image quality. 2. Improve the image quality while maintaining the existing compression rate.
综上所述,本发明是针对常用技术提出改善,利用建立一种可更新量化表的视讯编码器,以随机存取内存(RAM,Random Access Memory)储存量化表(Quantization Table),而量化表可根据使用者需求或特殊环境而被更新,借以改变量化(Quantization)的取舍标准,而使得视讯编码压缩的结果更趋完美。而本发明更提出一种视讯编码方法,在视讯编码过程中,可根据视讯信息的内容,更新量化表(Quantization Table),并根据该量化表量化该频率域的视讯信息,以便更有弹性地去除视讯信息中的多余讯号。To sum up, the present invention proposes an improvement to the commonly used technology, utilizes the video coder that establishes a kind of updatable quantization table, uses random access memory (RAM, Random Access Memory) to store the quantization table (Quantization Table), and the quantization table It can be updated according to user needs or special circumstances, so as to change the selection standard of quantization, so that the result of video coding compression is more perfect. The present invention further proposes a video encoding method. During the video encoding process, the quantization table (Quantization Table) can be updated according to the content of the video information, and the video information in the frequency domain can be quantized according to the quantization table, so as to more flexibly Remove unwanted signals from video messages.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200510123732 CN1972445A (en) | 2005-11-22 | 2005-11-22 | Video encoder and video encoding method capable of updating quantization table |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200510123732 CN1972445A (en) | 2005-11-22 | 2005-11-22 | Video encoder and video encoding method capable of updating quantization table |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1972445A true CN1972445A (en) | 2007-05-30 |
Family
ID=38112987
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200510123732 Pending CN1972445A (en) | 2005-11-22 | 2005-11-22 | Video encoder and video encoding method capable of updating quantization table |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1972445A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505484A (en) * | 2019-08-12 | 2019-11-26 | 深圳市华星光电技术有限公司 | Data compression device and compression method |
-
2005
- 2005-11-22 CN CN 200510123732 patent/CN1972445A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505484A (en) * | 2019-08-12 | 2019-11-26 | 深圳市华星光电技术有限公司 | Data compression device and compression method |
US11494946B2 (en) | 2019-08-12 | 2022-11-08 | Tcl China Star Optoelectronics Technology Co., Ltd. | Data compression device and compression method configured to gradually adjust a quantization step size to obtain an optimal target quantization step size |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12256089B2 (en) | Coded-block-flag coding and derivation | |
US12256104B2 (en) | Non-transform coding | |
US8457425B2 (en) | Embedded graphics coding for images with sparse histograms | |
US9648355B2 (en) | Adaptive security camera image compression apparatus and method of operation | |
US20080205782A1 (en) | JPEG Processing Engine for Low Profile Systems | |
KR101224397B1 (en) | Data File Compressing Apparatus and Method, Image Forming Apparatus | |
US20060067582A1 (en) | Progressive JPEG decoding system | |
US8451892B2 (en) | Method and system for linear quantization and dequantization | |
CN1972445A (en) | Video encoder and video encoding method capable of updating quantization table | |
JP2007166323A (en) | Image decoding apparatus and image decoding method | |
US20060285588A1 (en) | Video encoder and encoding method with updateable quantization table | |
TWI228877B (en) | Video encoder capable of updating quantization table and video encoding method thereof | |
JP5879571B2 (en) | Encoding device and decoding device | |
JP2005110071A (en) | Image encoding device and device and method for preparing digest image | |
JP2016105528A (en) | Image coding device and image coding method | |
EP1064792A1 (en) | Method and arrangement for quantizing data | |
JP2004159027A (en) | Digital data storage system | |
KR20040092522A (en) | Animation compression and restoration system that use difference video signal | |
JPH05300386A (en) | Image encoding / decoding device | |
JP2009060320A (en) | Image processing device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |