[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN102088538B - Bit rate control circuit and method for image compression - Google Patents

Bit rate control circuit and method for image compression Download PDF

Info

Publication number
CN102088538B
CN102088538B CN 200910211936 CN200910211936A CN102088538B CN 102088538 B CN102088538 B CN 102088538B CN 200910211936 CN200910211936 CN 200910211936 CN 200910211936 A CN200910211936 A CN 200910211936A CN 102088538 B CN102088538 B CN 102088538B
Authority
CN
China
Prior art keywords
target
lqf
ini
image
equal interval
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
Application number
CN 200910211936
Other languages
Chinese (zh)
Other versions
CN102088538A (en
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.)
Novatek Microelectronics Corp
Original Assignee
Novatek Microelectronics Corp
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 Novatek Microelectronics Corp filed Critical Novatek Microelectronics Corp
Priority to CN 200910211936 priority Critical patent/CN102088538B/en
Publication of CN102088538A publication Critical patent/CN102088538A/en
Application granted granted Critical
Publication of CN102088538B publication Critical patent/CN102088538B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明是有关一种影像压缩的位元速率控制电路,包括压缩单元、R值估算单元、LQF值估算单元。压缩单元用来根据一预设线性量化参数(LQFini)对一影像进行第一次压缩,以得到一初始像素位元数(bppini)以及一初始零系数个数(Rini)。R值估算单元根据该初始像素位元数以及一目标像素位元数(bpptarget)估算出量化后一目标零系数个数(Rtarget)。LQF值估算单元,根据该目标零系数个数(Rtarget),估算所需要的一目标线性量化参数(LQFtarget)。其中LQFtarget可以用来对该影像进行一第二次压缩,以取得对应该目标像素位元数的一压缩影像。

Figure 200910211936

The present invention relates to a bit rate control circuit for image compression, comprising a compression unit, an R value estimation unit, and an LQF value estimation unit. The compression unit is used to perform a first compression on an image according to a preset linear quantization parameter (LQF ini ) to obtain an initial pixel bit number (bpp ini ) and an initial zero coefficient number (R ini ). The R value estimation unit estimates a target zero coefficient number (R target ) after quantization according to the initial pixel bit number and a target pixel bit number (bpp target ). The LQF value estimation unit estimates a required target linear quantization parameter (LQF target ) according to the target zero coefficient number (R target ). The LQF target can be used to perform a second compression on the image to obtain a compressed image corresponding to the target pixel bit number.

Figure 200910211936

Description

影像压缩的位元速率控制电路与方法Image compression bit rate control circuit and method

技术领域 technical field

本发明是有关于影像压缩技术,且特别是有关于影像压缩的位元速率控制技术。The present invention relates to image compression techniques, and more particularly to bit rate control techniques for image compression.

背景技术 Background technique

影像压缩技术可以有效地将一原始影像所占用的记忆容量减少,以有效达到减少储存空间而同时维持影像内容。然而就一般而言,一影像的压缩率会随着其内容的复杂度而有不同。因此,经压缩后的影像,其记忆空间的大小会改变。然而,对于数字相机的应用,在静态的影像压缩上,除了希望减少记忆空间之外,也希望压缩后的影像大小大致相同,不随影像内容的复杂度而有太多改变。The image compression technology can effectively reduce the memory capacity occupied by an original image, so as to effectively reduce the storage space while maintaining the image content. Generally speaking, however, the compression rate of an image varies with the complexity of its content. Therefore, the size of the memory space of the compressed image will change. However, for the application of digital cameras, in addition to reducing the memory space in static image compression, it is also hoped that the size of the compressed images is roughly the same, and does not change too much with the complexity of the image content.

为了维持影像是大约固定大小,静态影像压缩的位元速率(Bit Rate)控制很重要,如此可以让照片的档案大小不随内容变异而变化太大,如此使用者能更有效的知道剩余储存空间可以照几张照片。In order to keep the image at about a fixed size, the bit rate control of still image compression is very important, so that the file size of the photo will not change too much with the content variation, so that the user can know the remaining storage space more effectively Take a few photos.

美国第5594554号专利内容揭示利用压缩影像后的第一次所得的档案大小和一先前得出的数学模型来计算出第二次压缩应该设定的量化表(Quantization Table)。但此方法使用的数学模型对不同影像准确度会不一样。而且所使用到的运算也比较复杂,特别有利用指数运算。The content of US Patent No. 5594554 discloses that the quantization table (Quantization Table) that should be set for the second compression is calculated by using the file size obtained for the first time after image compression and a previously obtained mathematical model. However, the accuracy of the mathematical model used in this method will be different for different images. Moreover, the calculations used are more complicated, especially the use of exponential calculations.

美国第5677689号专利内容揭示利用第一次压缩所得的活动统计值(activity metric)和先前得出的数学模型来计算出第二次压缩的量化表。然而此方法只能让第二次压缩的档案比第一次的更小,没有办法向上调整档案大小。US Patent No. 5677689 discloses that the quantization table for the second compression is calculated by using the activity metric obtained from the first compression and the previously obtained mathematical model. However, this method can only make the second compressed file smaller than the first one, and there is no way to adjust the file size upwards.

在先前技术中也有提出一个参数ρ,其定义为量化后零系数数量(R)占全部系数(T)的比例。此参数ρ可以与压缩后的档案大小相关联。A parameter ρ is also proposed in the prior art, which is defined as the ratio of the number of zero coefficients (R) to all coefficients (T) after quantization. This parameter ρ can be associated with the compressed archive size.

发明内容 Contents of the invention

本发明提供一种影像压缩的位元速率控制电路与方法,可以简单估算出第二次压缩的目标线性量化参数(LQFtarget),以作为第二次压缩的依据,以维持接近目标的影像档案大小。The present invention provides a bit rate control circuit and method for image compression, which can simply estimate the target linear quantization parameter (LQF target ) of the second compression as the basis for the second compression, so as to maintain an image file close to the target size.

本发明的一实施例提出一种影像压缩的位元速率控制电路,包括压缩单元、R值估算单元、LQF值估算单元。一种影像压缩的位元速率控制电路,包括压缩单元、R值估算单元、LQF值估算单元。压缩单元用来根据一预设线性量化参数(LQFini)对一影像进行第一次压缩,以得到一初始像素位元数(bppini)以及一初始零系数个数(Rini)。R值估算单元根据该初始像素位元数以及一目标像素位元数(bpptarget)估算出量化后一目标零系数个数(Rtarget)。LQF值估算单元,根据该目标零系数个数(Rtarget),估算所需要的一目标线性量化参数(LQFtarget)。其中LQFtarget可以用来对该影像进行一第二次压缩,以取得对应该目标像素位元数的一压缩影像。An embodiment of the present invention provides a bit rate control circuit for image compression, including a compression unit, an R value estimation unit, and an LQF value estimation unit. A bit rate control circuit for image compression, including a compression unit, an R value estimation unit, and an LQF value estimation unit. The compression unit is used to compress an image for the first time according to a preset linear quantization parameter (LQF ini ) to obtain an initial number of pixel bits (bpp ini ) and an initial number of zero coefficients (R ini ). The R value estimating unit estimates a target number of zero coefficients (R target ) after quantization according to the initial number of pixel bits and a target number of pixel bits (bpp target ). The LQF value estimating unit estimates a required target linear quantization parameter (LQF target ) according to the target number of zero coefficients (R target ). The LQF target can be used to perform a second compression on the image to obtain a compressed image corresponding to the number of bits of the target pixel.

依据一实施例,在前述的影像压缩的位元速率控制电路中,例如该R值估算单元是根据该bppini与该Rini的一坐标点与一共通原点之间的一线性关系,以该bpptarget估算出所要的该RtargetAccording to an embodiment, in the aforementioned image compression bit rate control circuit, for example, the R value estimating unit is based on a linear relationship between a coordinate point and a common origin of the bpp ini and the R ini , and the The bpp target estimates the desired R target .

依据一实施例,在前述的影像压缩的位元速率控制电路中,例如该共通原点的像素位元数与零系数个数的坐标是零与总系数个数T。According to an embodiment, in the aforementioned image compression bit rate control circuit, for example, the coordinates of the pixel bit number and the zero coefficient number of the common origin are zero and the total coefficient number T.

依据一实施例,在前述的影像压缩的位元速率控制电路中,例如该LQF值估算单元是依照R值相对于LQF的一数值关系,以得到对应该Rtarget的该LQFtargetAccording to an embodiment, in the aforementioned bit rate control circuit for video compression, for example, the LQF value estimating unit obtains the LQF target corresponding to the R target according to a numerical relationship between the R value and the LQF.

依据一实施例,在前述的影像压缩的位元速率控制电路中,例如R值相对于LQF的该数值关系包括在该压缩单元执行该第一次压缩中,同时统计对应多个LQF值的一组Rset,以提供给该LQF值估算单元,藉由线性插入法计算对应该Rtarget的该LQFtargetAccording to an embodiment, in the aforementioned bit rate control circuit for video compression, for example, the numerical relationship between the R value and the LQF is included in the first compression performed by the compression unit, and simultaneously counts a number corresponding to a plurality of LQF values. A set R set is provided to the LQF value estimation unit to calculate the LQF target corresponding to the R target by linear interpolation.

依据一实施例,在前述的影像压缩的位元速率控制电路中,例如所述LQF值是以该LQFini的多个倍数的值。According to an embodiment, in the aforementioned bit rate control circuit for image compression, for example, the LQF value is a multiple of the LQF ini .

依据一实施例,在前述的影像压缩的位元速率控制电路中,例如所述LQF值包括LQFini/4,LQFini/2,LQFini/1,LQFini*2,LQFini*4。According to an embodiment, in the aforementioned image compression bit rate control circuit, for example, the LQF values include LQF ini /4, LQF ini /2, LQF ini /1, LQF ini *2, LQF ini *4.

依据一实施例,在前述的影像压缩的位元速率控制电路中,例如该R值估算单元与该LQF值估算单元是整合于一计算单元。According to an embodiment, in the aforementioned image compression bit rate control circuit, for example, the R value estimating unit and the LQF value estimating unit are integrated into a computing unit.

依据一实施例,在前述的影像压缩的位元速率控制电路中,例如该压缩单元另依据该LQFtarget对该影像进行该第二次压缩,以取得该压缩影像。According to an embodiment, in the aforementioned image compression bit rate control circuit, for example, the compression unit further performs the second compression on the image according to the LQF target to obtain the compressed image.

依据一实施例,在前述的影像压缩的位元速率控制电路中,例如更包括另一压缩单元,用来根据该LQFtarget进行该第二次压缩。According to an embodiment, the aforementioned image compression bit rate control circuit, for example, further includes another compression unit for performing the second compression according to the LQF target .

依据一实施例,在前述的影像压缩的位元速率控制电路中,例如该影像是一静态影像。According to an embodiment, in the aforementioned image compression bit rate control circuit, for example, the image is a static image.

本发明的另一实施例提出一种影像压缩的位元速率控制方法,包括根据一预设量化表与一预设线性量化参数对一影像做量化处理,以对该影像进行一第一次压缩;藉由该第一次压缩,取得一初始像素位元数(bppini)以及一初始零系数个数(Rini);根据该初始像素位元数(bppini)所要的一目标像素位元数(bpptarget)估算出一目标零系数个数(Rtarget);根据该Rtarget估算一目标线性量化参数(LQFtarget);以及根据该LQFtarget对该影像进行一第二次压缩,以取得对应该目标像素位元数的一压缩影像。Another embodiment of the present invention proposes a bit rate control method for image compression, including performing quantization processing on an image according to a preset quantization table and a preset linear quantization parameter, so as to perform a first compression on the image ; Obtain an initial number of pixel bits (bpp ini ) and an initial number of zero coefficients (R ini ) through the first compression; a target pixel bit required according to the initial number of pixel bits (bpp ini ) number (bpp target ) to estimate a target number of zero coefficients (R target ); estimate a target linear quantization parameter (LQF target ) according to the R target ; and perform a second compression on the image according to the LQF target to obtain A compressed image corresponding to the target pixel number of bits.

依据一实施例,在前述的影像压缩的位元速率控制方法中,例如估算出该目标零系数个数(Rtarget)的步骤包含有:根据该bppini与该Rini的一坐标点与一共通原点之间的一线性关系,以该bpptarget估算出所要的该Rtarget According to an embodiment, in the aforementioned bit rate control method for image compression, for example, the step of estimating the target number of zero coefficients (R target ) includes: a coordinate point and a coordinate point according to the bpp ini and the R ini A linear relationship between the common origin, the bpp target is used to estimate the desired R target

依据一实施例,在前述的影像压缩的位元速率控制方法中,例如其中该共通原点的像素位元数与零系数个数的坐标是零与总系数个数T。According to an embodiment, in the aforementioned bit rate control method for image compression, for example, the coordinates of the pixel bit number and the zero coefficient number of the common origin are zero and the total coefficient number T.

依据一实施例,在前述的影像压缩的位元速率控制方法中,例如其中估算该目标线性量化参数(LQFtarget)的步骤包含有:依照R值相对于LQF的一数值关系,以得到对应该Rtarget的该LQFtargetAccording to an embodiment, in the aforementioned bit rate control method for video compression, for example, the step of estimating the target linear quantization parameter (LQF target ) includes: according to a numerical relationship between the R value and the LQF, to obtain the corresponding The LQF target of the R target .

依据一实施例,在前述的影像压缩的位元速率控制方法中,例如R值相对于LQF的该数值关系包括在进行该第一次压缩中,同时统计对应多个LQF值的一组Rset,以提供在进行LQF值估算的该步骤中藉由线性插入法计算对应该Rtarget的该LQFtargetAccording to an embodiment, in the aforementioned bit rate control method for image compression, for example, the numerical relationship between the R value and the LQF is included in the first compression, and a group of R sets corresponding to a plurality of LQF values are counted at the same time , to provide the LQF target corresponding to the R target calculated by linear interpolation in the step of estimating the LQF value.

依据一实施例,在前述的影像压缩的位元速率控制方法中,例如所述LQF值是以该LQFini的多个倍数的值。According to an embodiment, in the aforementioned bit rate control method for image compression, for example, the LQF value is a multiple of the LQF ini .

依据一实施例,在前述的影像压缩的位元速率控制方法中,例如所述LQF值包括LQFini/4,LQFini/2,LQFini/1,LQFini*2,LQFini*4。According to an embodiment, in the aforementioned bit rate control method for image compression, for example, the LQF values include LQF ini /4, LQF ini /2, LQF ini /1, LQF ini *2, LQF ini *4.

依据一实施例,在前述的影像压缩的位元速率控制方法中,例如R值相对于LQF的该数值关系,是预先统计得到的一关系曲线。According to an embodiment, in the aforementioned bit rate control method for image compression, for example, the numerical relationship between the R value and the LQF is a relationship curve obtained by pre-statistics.

依据一实施例,在前述的影像压缩的位元速率控制方法中,例如该影像是一静态影像。According to an embodiment, in the aforementioned bit rate control method for image compression, for example, the image is a static image.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其他目的、特征和优点能够更明显易懂,以下特举较佳实施例,并配合附图,详细说明如下。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the following preferred embodiments are specifically cited below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明 Description of drawings

图1绘示JPEG的标准压缩流程示意图。FIG. 1 is a schematic diagram of the standard compression process of JPEG.

图2绘示本发明一实施例,像素位元数(bpp)与参数ρ的关系示意图。FIG. 2 is a schematic diagram illustrating the relationship between the number of pixel bits (bpp) and the parameter ρ according to an embodiment of the present invention.

图3绘示参数ρ与NQF的关系示意图。FIG. 3 shows a schematic diagram of the relationship between parameter ρ and NQF.

图4绘示依据本发明一实施例,影像压缩的位元速率控制电路的方块示意图。FIG. 4 is a schematic block diagram of a bit rate control circuit for image compression according to an embodiment of the present invention.

图5绘示依据本发明一实施例,影像压缩的位元速率控制方法流程示意图。FIG. 5 is a schematic flowchart of a bit rate control method for image compression according to an embodiment of the present invention.

图6绘示依据本发明一实施例,影像压缩的位元速率控制方法流程示意图。FIG. 6 is a schematic flowchart of a bit rate control method for image compression according to an embodiment of the present invention.

100:DCT单元100: DCT unit

102:系数量化单元102: Coefficient quantization unit

104:霍夫曼编码单元104: Huffman coding unit

200:压缩单元200: Compression unit

202:R值估算单元202: R value estimation unit

204:LQF值估算单元204: LQF value estimation unit

206:压缩单元206: Compression unit

S100~S108:步骤S100~S108: steps

S200~S206:步骤S200~S206: steps

具体实施方式 Detailed ways

为更进一步阐述本发明为达成预定发明目的所采取的技术手段及功效,以下结合附图及较佳实施例,对依据本发明提出的影像压缩的位元速率控制电路与方法其具体实施方式、结构、特征及其功效,详细说明如后。In order to further explain the technical means and effects of the present invention to achieve the intended purpose of the invention, below in conjunction with the accompanying drawings and preferred embodiments, the specific implementation of the bit rate control circuit and method for image compression proposed according to the present invention, Structure, characteristic and effect thereof are as follows in detail.

本发明以参数ρ的概念为基础,可以对影像依照预定档案大小进行压缩。其更可对静态影像,例如是JPEG,提供一个简单且相当准确的位元速率控制方法。以下举多个实施例来说明本发明。但是本发明并不限于所举的多个实施例。又所举的实施例之间也可以相互做适当结合。Based on the concept of the parameter ρ, the present invention can compress images according to a predetermined file size. It also provides a simple and fairly accurate bit rate control method for still images, such as JPEG. A number of embodiments are given below to illustrate the present invention. However, the invention is not limited to the various exemplary embodiments presented. In addition, the examples mentioned can also be properly combined with each other.

图1绘示JPEG的标准压缩流程示意图。参阅图1,数字的影像资料输入后,经过一离散余弦转换(Discrete Cosine Transform,DCT)单元100转换后,会经由系数量化单元102依量化表(Quantization Table)Q[i]对DCT系数作量化(Quantization)而得到量化结果。接着量化结果经霍夫曼编码(Huffman Coding)单元104的编码后就可以得到标准的位元串,即是JPEG串流。FIG. 1 is a schematic diagram of the standard compression process of JPEG. Referring to Fig. 1, after the digital image data is input, after being converted by a discrete cosine transform (Discrete Cosine Transform, DCT) unit 100, the DCT coefficients will be quantized by the coefficient quantization unit 102 according to the quantization table (Quantization Table) Q[i] (Quantization) to obtain quantitative results. After the quantization result is encoded by the Huffman Coding unit 104, a standard bit string can be obtained, that is, a JPEG stream.

一般DCT单元100的处理单位是以8x8像素区块为单位的运算,而对于其64个转换后系数有个量化表Q[i]记录每一个位置相对应的量化系数。Generally, the processing unit of the DCT unit 100 is an operation in units of 8×8 pixel blocks, and there is a quantization table Q[i] for its 64 converted coefficients to record the quantization coefficients corresponding to each position.

一般而言,量化表Q[i]例如是由一组预设的量化表再搭配一个线性量化参数(Linear Quantization Factor,LQF)而得到。例如预设量化表为{Qdefault[i],i:0~63},则用来压缩的量化表以精确度为1/512为例,Q[i]为:Generally speaking, the quantization table Q[i] is obtained, for example, by a set of preset quantization tables combined with a linear quantization parameter (Linear Quantization Factor, LQF). For example, the preset quantization table is {Q default [i], i: 0~63}, and the quantization table used for compression takes the accuracy of 1/512 as an example, and Q[i] is:

(1)Q[i]=min(255,max(1,(Qdefault[i]*LQF+256)/512))(1) Q[i]=min(255, max(1, (Qdefault[i]*LQF+256)/512))

其中,Q[i]及Qdefault[i]皆为1~255之间的整数。LQF是用来以线性比例去缩放预设量化表。这个例子的精确度为1/512。以下的实施例除非特意提起,否则假设LQF精确度为1/512。另外如一般习此技艺者所知,Y和Cb/Cr的对应预设量化表通常不一样。Wherein, both Q[i] and Q default [i] are integers between 1 and 255. LQF is used to scale the preset quantization table linearly. This example has an accuracy of 1/512. The following embodiments assume that the LQF accuracy is 1/512 unless otherwise mentioned. In addition, as known to those skilled in the art, the corresponding preset quantization tables of Y and Cb/Cr are usually different.

接着本发明提出处理影像压缩的缩放比例的方法前,对于前述所提到的参数ρ做进一步研究。参数ρ的定义为量化后零系数个数R占总系数个数T的比例(ρ=R/T)。Then, before the present invention proposes a method for processing the scaling ratio of the image compression, further research is conducted on the aforementioned parameter ρ. The parameter ρ is defined as the ratio of the number R of zero coefficients after quantization to the total number T of coefficients (ρ=R/T).

在此要说明的是,以下说明中所提到的R值皆是代表量化后零系数个数R,其对于不同压缩方法可以对应出其与位元速率之间不同的特性。以下取JPEG格式的一张影像来做的实验与说明。当然,经过多个不同影像的验证后,其所描述的特性可以推论为一般化特性,不因不同影像而不同。It should be noted here that the R values mentioned in the following description all represent the number R of zero coefficients after quantization, which may correspond to different characteristics of bit rates for different compression methods. Take an image in JPEG format as the experiment and explanation below. Of course, after the verification of multiple different images, the characteristics described can be deduced as general characteristics, which are not different for different images.

对于一张影像,其压缩系数的个数T是一个固定数值,但是压缩后的零系数个数R会随影像的内容而不同。因此,由于参数ρ定义为ρ=R/T,其会与影像档案的大小相关。图2绘示本发明一实施例,像素位元数(bpp)与参数ρ的关系示意图。参阅图2,其横轴为参数ρ而纵轴为bpp(bits perpixel)。这里的位元数量是DCT后被量化系数的编码资料,不包含JPEG的档头资料(header)。从bpp对应参数ρ的分布来看,可以观察出bpp和ρ呈现接近线性的关系。当ρ较小时例如在0.7处,虽然关系线的斜率稍缓,但还是接近直线的关系。因此,bpp和ρ藉由直线来描述仍维持可以接受的准确度。此线性关系有利于做预测。另外也可观察出当ρ接近1时,bpp会接近0。所以对于任意一张图,当已知其任意一组ρ0和bpp0的坐标时,就可以用(ρ0,bpp0)和(1,0)的连线来作为该图bpp与ρ关系的预测参考直线。For an image, the number T of compression coefficients is a fixed value, but the number R of compressed zero coefficients varies with the content of the image. Therefore, since the parameter ρ is defined as ρ=R/T, it will be related to the size of the image file. FIG. 2 is a schematic diagram illustrating the relationship between the number of pixel bits (bpp) and the parameter ρ according to an embodiment of the present invention. Referring to FIG. 2 , the horizontal axis is the parameter ρ and the vertical axis is bpp (bits per pixel). The number of bits here is the encoding data of quantized coefficients after DCT, excluding JPEG file header data (header). From the distribution of bpp corresponding to parameter ρ, it can be observed that bpp and ρ present a nearly linear relationship. When ρ is small, for example, at 0.7, although the slope of the relationship line is slightly gentle, it is still close to a straight line relationship. Therefore, bpp and ρ described by straight lines still maintain acceptable accuracy. This linear relationship is useful for making predictions. It can also be observed that when ρ approaches 1, bpp approaches 0. Therefore, for any graph, when the coordinates of any set of ρ 0 and bpp 0 are known, the connection between (ρ 0 , bpp 0 ) and (1, 0) can be used as the relationship between bpp and ρ in the graph forecast reference line.

更进一步来看,由于T对于一张影像是一个常数,经个T的修正后,此预测参考直线对等于根据已知任意一组R0和bpp0,藉由(R0,bpp0)和(T,0)的连线来当作该图的bpp与R关系的预测参考直线。ρ与R之间仅是固定倍数的代数的置换。然而就实际的处理上,R取代ρ有简化硬体或软体的计算处理,其一实施例会描述于后。Furthermore, since T is a constant for an image, after a correction of T, the prediction reference line is equivalent to any known set of R 0 and bpp 0 , by (R 0 , bpp 0 ) and The connecting line of (T, 0) is used as the prediction reference straight line of the relationship between bpp and R in the figure. Between ρ and R is only an algebraic replacement of fixed multiples. However, in actual processing, R replaces ρ to simplify the calculation processing of hardware or software, and an embodiment thereof will be described later.

接着,本发明继续寻求可利用于控制位元速率的连动关系。图3绘示参数ρ与NQF的关系示意图,其中NQF代表正规化的LQF,即是NQF(normalized quantization factor)=LQF/512。参阅图3,参数ρ与NQF的关系是一光滑曲线,也即是ρ与LQF的关系也是一光滑曲线。虽然此曲线无法用简单的数学式来描述,但是可以藉由数值分析的方式来描述。换句话说,此参数ρ与NQF的曲线可以由多个参考点来描述,而其中的取线点可以藉由内插法(interpolation)来估计(例如以线性内插法)。Next, the present invention goes on to find the linkage relationship that can be used to control the bit rate. FIG. 3 shows a schematic diagram of the relationship between the parameter ρ and NQF, where NQF represents the normalized LQF, that is, NQF (normalized quantization factor)=LQF/512. Referring to Fig. 3, the relationship between parameter ρ and NQF is a smooth curve, that is, the relationship between ρ and LQF is also a smooth curve. Although this curve cannot be described by a simple mathematical formula, it can be described by numerical analysis. In other words, the curve of the parameter ρ and NQF can be described by multiple reference points, and the line-taking points can be estimated by interpolation (for example, linear interpolation).

由图2与图3的相联关系来看,bpp可以对应到LQF,而图3的曲线一般可以先进行统计制作完成。然而,此曲线的点,也可以在做第一次压缩时同时统计得出,其方式会于后述。又本发明也针对不同影像做相同参数的分析,进而确定图2与图3的特性是一般化特性,不会因影像内容的不同而有明显差异。因此,bpp的控制可以藉由适当的LQF做调整。影像再次压缩后,可以达到接近所要目标的bpp。Judging from the relationship between Figure 2 and Figure 3, bpp can correspond to LQF, and the curve in Figure 3 can generally be completed through statistics first. However, the points of this curve can also be obtained by statistics during the first compression, and the method will be described later. Moreover, the present invention also analyzes the same parameters for different images, and then determines that the characteristics in FIG. 2 and FIG. 3 are generalized characteristics, and there will be no obvious difference due to different image contents. Therefore, the control of bpp can be adjusted by proper LQF. After the image is compressed again, a bpp close to the desired target can be achieved.

图4绘示依据本发明一实施例,影像压缩的位元速率控制电路的方块示意图。参阅图4,影像压缩的位元速率控制电路包括一压缩单元200、R值估算单元202、LQF值估算单元204。压缩单元200是根据一预设量化表与一线性量化参数对一影像做量化处理。亦即,压缩单元200根据一预设线性量化参数(LQFini)影像执行一第一次影像压缩,进而得到一初始像素位元数(bppini)以及一初始零系数个数(Rini)。R值估算单元202根据初始像素位元数(bppini)以及所要的一目标像素位元数(bpptarget)估算出量化后一目标零系数个数(Rtarget)。LQF值估算单元204根据R值估算单元202得到的Rtarget,估算所需要的一目标线性量化参数(LQFtarget)。LQFtarget可以用来对该影像给一压缩单元206进行一第二次压缩,其例如再输入给压缩单元200做第二次影像压缩,而LQFini是以LQFtarget取代。FIG. 4 is a schematic block diagram of a bit rate control circuit for image compression according to an embodiment of the present invention. Referring to FIG. 4 , the bit rate control circuit for image compression includes a compression unit 200 , an R value estimation unit 202 , and an LQF value estimation unit 204 . The compression unit 200 quantizes an image according to a preset quantization table and a linear quantization parameter. That is, the compression unit 200 performs a first image compression according to a preset linear quantization parameter (LQF ini ) to obtain an initial number of pixel bits (bpp ini ) and an initial number of zero coefficients (R ini ). The R value estimating unit 202 estimates a target number of zero coefficients (R target ) after quantization according to the initial number of pixel bits (bpp ini ) and a desired number of target pixel bits (bpp target ). The LQF value estimating unit 204 estimates a required target linear quantization parameter (LQF target ) according to the R target obtained by the R value estimating unit 202 . The LQF target can be used to perform a second compression on the image to a compression unit 206 , which is then input to the compression unit 200 for the second image compression, and the LQF ini is replaced by the LQF target .

在此,LQF值估算单元204是根据图3的关系来估计所要的LQFtarget。为了建立如图3的曲线资料,就数值方式来描述该曲线而言,其需要一组数据点来描述。换句话说其需要多个不同R值所组成的一组Rset,而不同R值是对应包含多个不同LQF的一组LQFset。一般的直接方式是针对一组LQFset上的多个数值点,以统计出对应的多个R数值点。这些R数值点例如可以预先藉由多次量化所得。Here, the LQF value estimating unit 204 estimates the desired LQF target according to the relationship in FIG. 3 . In order to establish the curve data as shown in FIG. 3 , a set of data points is needed to describe the curve numerically. In other words, it requires a set of R set composed of multiple different R values, and different R values correspond to a set of LQF set including multiple different LQFs. The general direct way is to count multiple numerical points on a set of LQF sets to count the corresponding multiple R numerical points. These R value points can be obtained, for example, through multiple quantizations in advance.

然而,本发明例如提出更简易方式以获得所要的一组Rset,其可以在压缩单元200进行第一次压缩时,同时作统计获得一组曲线数据点。也就是说,Rset不需要真正的进行多次量化才能得到。举例来说以四舍五入的量化做法是对于DCT系数x[i]和量化系数Q[i],对应所选取得LQF点做数量统计。However, the present invention, for example, proposes an easier way to obtain a desired set of R set , which can simultaneously perform statistics to obtain a set of curve data points when the compression unit 200 performs the first compression. In other words, R set does not need to be quantized multiple times to obtain it. For example, the quantization method of rounding is to count the number of DCT coefficients x[i] and quantization coefficients Q[i] corresponding to the selected LQF points.

例如,首先根据计算式(2)得到x′[i],For example, first obtain x'[i] according to formula (2),

(2)x′[i]=sign(x[i])*int((abs(x[i])+Q[i]/2)/Q[i]),(2) x'[i]=sign(x[i])*int((abs(x[i])+Q[i]/2)/Q[i]),

其中sign()为正负号函数,abs()为绝对值函数,int()为取整数函数。则量化结果为零是对等于(abs(x[i])+Q[i]/2)/Q[i]<1,也就是abs(x[i])/Q[i]<1/2,其abs(x[i])/Q[i]在压缩过程中的量化过程本来就会得到的值。又,后项所加的Q[i]/2是一般四舍五入的方式,然而其仅是一种方式。所加的Q[i]/2也可以其他的值,例如Q[i]/4,其不是四舍五入的条件。LQFset的选取例如是LQFset={LQFini/4,LQFini/2,LQFini/1,LQFini*2,LQFini*4}的五个统计点,其对应的Rset可以用如以下的简单比较大小来得出:Among them, sign() is a sign function, abs() is an absolute value function, and int() is an integer function. Then the quantization result is zero is equal to (abs(x[i])+Q[i]/2)/Q[i]<1, that is, abs(x[i])/Q[i]<1/2 , the value of abs(x[i])/Q[i] would have been obtained during the quantization process during the compression process. Also, Q[i]/2 added to the latter term is a general rounding method, but it is only one method. The added Q[i]/2 can also be other values, such as Q[i]/4, which is not a condition of rounding. The selection of LQF set is, for example, the five statistical points of LQF set = {LQF ini /4, LQF ini /2, LQF ini /1, LQF ini *2, LQF ini *4}, and the corresponding R set can be used as follows A simple comparison of sizes yields:

Rini={x[i]符合abs(x[i])/Q[i]<1/2的数量}R ini ={x[i] meets the quantity of abs(x[i])/Q[i]<1/2}

RLQFini/2={x[i]符合abs(x[i])/Q[i]<1/4的数量}R LQFini/2 ={x[i] meets abs(x[i])/Q[i]<1/4 quantity}

RLQFini/4={x[i]符合abs(x[i])/Q[i]<1/8的数量}R LQFini/4 ={x[i] meets abs(x[i])/Q[i]<1/8 quantity}

RLQFini*2={x[i]符合abs(x[i])/Q[i]<1的数量}R LQFini*2 ={x[i] meets the number of abs(x[i])/Q[i]<1}

RLQFini*4={x[i]符合abs(x[i])/Q[i]<2的数量}R LQFini*4 ={x[i] conforms to the number of abs(x[i])/Q[i]<2}

也就是说,整个流程例如首先以一初始LQFini进行第一次的JPEG压缩可得到bppini和Rini。接着利用(bppini,Rini)和(0,T),依据图2的特性,可连成一条直线,再用bpptarget代入可得Rtarget。此外,除了Rini在第一次JPEG压缩中可由DCT后的系数得出量化参数,分别为LQFini/2,LQFini/4,LQFini*2,和LQFini*4相对的RLQFini/2,RLQFini/4,RLQFini*2,和RLQFini*4。LQFset为{LQFini/4,LQFini/2,LQFini,LQFini*2,LQFini*4},其对应的Rset则为{RLQFini/4,RLQFini/2,Rini,RLQFini*2,RLQFini*4}。Rset如以前述的统计方式获得。That is to say, in the whole process, for example, an initial LQF ini is used to perform the first JPEG compression to obtain bpp ini and R ini . Then use (bpp ini , R ini ) and (0, T) to form a straight line according to the characteristics in Figure 2, and then substitute bpp target to get R target . In addition, in addition to R ini , the quantization parameters can be obtained from the coefficients after DCT in the first JPEG compression, which are LQFini/2, LQFini/4, LQFini*2, and LQFini*4 relative R LQFini/2 , R LQFini/ 4 , R LQFini*2 , and R LQFini*4 . The LQF set is {LQF ini /4, LQF ini /2, LQF ini , LQF ini *2, LQF ini *4}, and the corresponding R set is {R LQFini/4 , R LQFini/2 , R ini , R LQFini*2 , R LQFini*4 }. R set was obtained in the aforementioned statistical manner.

接下来,LQFtarget的估计可以藉由内插法(例如以线性插值法)来获得。例如,可先由Rset中找出最接近Rtarget的R1和R2,再与相对应的LQF1和LQF2找出连结(R1,LQF1)和(R2,LQF2)的直线。之后,将Rtarget代入该直线便得LQFtarget。最后再用LQFtarget对原图进行第二次压缩,便可得最后的结果。Next, an estimate of the LQF target can be obtained by interpolation (eg, linear interpolation). For example, R 1 and R 2 closest to R target can be found from R set first, and then the corresponding LQF 1 and LQF 2 can be found to connect (R 1 , LQF 1 ) and (R 2 , LQF 2 ) straight line. Then, substitute R target into the straight line to get LQF target . Finally, use the LQF target to compress the original image a second time to get the final result.

以下是利用上述方法针对一张4064x2704大小的影像进行JPEG 422格式压缩的位元速率控制的范例过程。首先想要得到bpptarget=3的位元速率,其压缩的初始值LQFini=96。第一次压缩例如可得到bppini=2.429,Rini=18108052,以及与LQFset={LQFini/4,LQFini/2,LQFini,LQFini*2,LQFini*4}={24,48,96,192,384}相对应的Rset={14688698,16739607,18108052,19161683,19980455}。接下来将bpptarget的3代入由(2.429,18108052)和(0,T=21978112)连起来的直线得到Rtarget=17198293。接着,由分析可知Rtarget是介于16739607和18108052之间对应LQF=48与LQF=96。于是再将Rtarget代入由(16739607,48)和(18108052,96)连起来的直线得到LQFtarget=64,其就是对应bpptarget=3的位元速率的估计值。The following is an example process of bit rate control for JPEG 422 compression for a 4064x2704 image using the above method. Firstly, it is desired to obtain a bit rate of bpp target =3, and its compressed initial value LQF ini =96. For example, the first compression can obtain bpp ini =2.429, R ini =18108052, and with LQF set ={LQF ini /4, LQF ini /2, LQF ini , LQF ini *2, LQF ini *4}={24, 48, 96, 192, 384} correspond to R set = {14688698, 16739607, 18108052, 19161683, 19980455}. Next, substitute 3 of bpp target into the straight line connected by (2.429, 18108052) and (0, T=21978112) to obtain R target =17198293. Then, it can be seen from the analysis that the R target is between 16739607 and 18108052 corresponding to LQF=48 and LQF=96. Then substitute R target into the straight line connected by (16739607, 48) and (18108052, 96) to obtain LQF target = 64, which is the estimated value of the bit rate corresponding to bpp target = 3.

最后用LQFtarget=64取代LQFini=96进行第二次压缩可得bpp=3.01137,其与bpptarget=3的误差只有0.38%。如此,藉由简易的方式,可以对影像作接近于bpptarget做压缩,其包括影像档案大小的变小与变大,而接近维持在bpptarget上。Finally, LQF ini =96 is replaced by LQF target =64 for the second compression to obtain bpp=3.01137, and the error between it and bpp target =3 is only 0.38%. In this way, in a simple way, the image can be compressed close to the bpp target , which includes reducing and increasing the size of the image file, and maintaining it close to the bpp target .

上述的LQFtarget是以五个点来描述曲线。然而,如果要增加量化参数范围和准确度,也例如可以将Rset多增加RLQFini*8或RLQFini/8。这也就是说,更多的参考点就可以更准确描述曲线。另外,为了增加LQFtarget的插值准确度,有例如可以将线性插值法改以多项式插值法,以更准确估计LQFtarget。又于另一实施例,为了增加量化参数的精准度,LQF精确度也可以提高例如设为1/1024。The above LQF target describes the curve with five points. However, if the scope and accuracy of quantization parameters are to be increased, R set can also be increased by R LQFini*8 or R LQFini/8 , for example. That is to say, more reference points can describe the curve more accurately. In addition, in order to increase the interpolation accuracy of the LQF target , for example, the linear interpolation method can be changed to a polynomial interpolation method to estimate the LQF target more accurately. In yet another embodiment, in order to increase the precision of the quantization parameters, the precision of the LQF can also be increased, for example, set to 1/1024.

图5绘示依据本发明一实施例,影像压缩的位元速率控制方法流程示意图。参阅图5,影像压缩的位元速率控制方法包括步骤S100对一影像以LQFini进行一第一次压缩。第一次压缩是根据一预设量化表Qini[i]与一预设线性量化参数LQFini对该影像做量化处理。在进行一次压缩中同时也计算得到一初始像素位元数(bppini)以及一初始像素位元数(Rini)。于步骤S102,在进行第一次压缩中同时也针对所预定的LQFset做Rset的统计。于步骤S104,接着又进行R值估算,其包括根据所要的一目标像素位元数(bpptarget)估算出量化后一目标零系数个数(Rtarget)。于步骤S106进行LQF值估算,其包括根据该Rtarget估算所需要的一目标线性量化参数(LQFtarget)。于步骤S108以该LQFtarget再对该影像进行一第二次压缩。FIG. 5 is a schematic flowchart of a bit rate control method for image compression according to an embodiment of the present invention. Referring to FIG. 5 , the bit rate control method for image compression includes step S100 to perform a first compression on an image with LQF ini . The first compression is to quantize the image according to a preset quantization table Q ini [i] and a preset linear quantization parameter LQF ini . During one compression, an initial pixel bit number (bpp ini ) and an initial pixel bit number (R ini ) are also calculated. In step S102, statistics of R set are also made for the predetermined LQF set during the first compression. In step S104 , R value estimation is performed again, which includes estimating a target number of zero coefficients after quantization (R target ) according to a desired number of target pixel bits (bpp target ). In step S106, LQF value estimation is performed, which includes a target linear quantization parameter (LQF target ) required for estimation according to the R target . In step S108, a second compression is performed on the image with the LQF target .

上述的影像压缩的位元速率控制方法中,步骤S102是在第一次压缩时同时进行统计,以简化压缩的流程。然而就一般原则而言,只要能分析出Rtarget所对应的LQFtarget即可,其二者之间的关系曲线可以由各种不同方式取得,不限于图5的方式。In the bit rate control method for image compression described above, step S102 is to simultaneously perform statistics during the first compression, so as to simplify the compression process. However, as a general principle, as long as the LQF target corresponding to the R target can be analyzed, the relationship curve between the two can be obtained in various ways, not limited to the way shown in FIG. 5 .

图6绘示依据本发明一实施例,影像压缩的位元速率控制方法流程示意图。参阅图6,步骤S200对一影像进行一第一次压缩,其中第一次压缩是根据一预设量化表Qini[i]与一预设线性量化参数LQFini对该影像做量化处理。在进行该一次压缩中同时也计算得到一初始像素位元数(bppini)以及一初始像素位元数(Rini)。接着步骤S202进行R值估算,其包括根据所要的一目标像素位元数(bpptarget)估算出量化后一目标零系数个数(Rtarget)。步骤S204进行LQF值估算,其包括根据该Rtarget估算所需要的一目标线性量化参数(LQFtarget),其中更例如是藉由一曲线资料表以供LQFtarget的插值计算。换句话说,步骤S204中的曲线资料表可以由预先得到的资料或是例如由图5中步骤S102的方式所得到,并不限于特定方式。步骤S206是以该LQFtarget再对该影像进行一第二次压缩。FIG. 6 is a schematic flowchart of a bit rate control method for image compression according to an embodiment of the present invention. Referring to FIG. 6 , step S200 performs a first compression on an image, wherein the first compression is to quantize the image according to a preset quantization table Q ini [i] and a preset linear quantization parameter LQF ini . During the compression, an initial pixel bit number (bpp ini ) and an initial pixel bit number (R ini ) are also calculated. Next step S202 is to estimate the R value, which includes estimating a target number of zero coefficients (R target ) after quantization according to a desired number of target pixel bits (bpp target ). Step S204 performs LQF value estimation, which includes a target linear quantization parameter (LQF target ) required for estimation according to the R target , for example, a curve data table for interpolation calculation of the LQF target . In other words, the curve data table in step S204 can be obtained from pre-obtained data or, for example, by the method of step S102 in FIG. 5 , and is not limited to a specific method. Step S206 uses the LQF target to perform a second compression on the image.

以上所述,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制,虽然本发明已以较佳实施例揭露如上,然而并非用以限定本发明,任何熟悉本专业的技术人员,在不脱离本发明技术方案范围内,当可利用上述揭示的技术内容作出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均仍属于本发明技术方案的范围内。The above description is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Anyone familiar with this field Those skilled in the art, without departing from the scope of the technical solution of the present invention, can use the technical content disclosed above to make some changes or modify equivalent embodiments with equivalent changes. Any simple modifications, equivalent changes and modifications made to the above embodiments by the technical essence still belong to the scope of the technical solutions of the present invention.

Claims (18)

1. the bit rate control circuit of an image compression is characterized in that it comprises:
One compression unit is used for according to a default equal interval quantizing parameter L QF IniOne image is carried out the compression first time, count bpp to obtain an initial pixel bit IniAn and initial zero coefficient number R Ini
One R value evaluation unit, according to this initial pixel bit number and an object pixel bit count bpptarget estimate quantize after a target zero coefficient number R Target, wherein the R value is zero coefficient number R value after representative quantizes; And
One LQF value evaluation unit is according to this target zero coefficient number R Target, estimate the linear quantization parameter LQF of a needed target Target, wherein the LQF value is to represent equal interval quantizing parameter L QF value;
The linear quantization parameter LQF of this target wherein TargetCan be used for this image is carried out a for the second time compression, to obtain a compressing image that should object pixel bit number;
Wherein said R value evaluation unit is to count bpp according to this initial pixel bit IniWith this initial zero coefficient number R IniA coordinate points and the linear relationship between the common initial point, count bpp with this object pixel bit TargetEstimate desired this target zero coefficient number R Target
2. the bit rate control circuit of image compression according to claim 1 is characterized in that the pixel bit number of wherein said common initial point and the coordinate of zero coefficient number are zero and overall coefficient number T.
3. the bit rate control circuit of image compression according to claim 1, it is characterized in that wherein said LQF value evaluation unit is with respect to the numerical relation of described equal interval quantizing parameter L QF, to obtain should target zero coefficient number R according to zero coefficient number R value after the described quantification TargetThe linear quantization parameter LQF of this target Target
4. the bit rate control circuit of image compression according to claim 3, it is characterized in that zero coefficient number R value after the wherein said quantification is included in this compression unit with respect to this numerical relation of described equal interval quantizing parameter L QF and carries out during this compresses for the first time, add up simultaneously one group of zero coefficient number R of corresponding a plurality of equal interval quantizing parameter L QF values Set, offering this LQF value evaluation unit, calculate should target zero coefficient number R by linear interpolation TargetThe linear quantization parameter LQF of this target Target
5. the bit rate control circuit of image compression according to claim 4 is characterized in that wherein said a plurality of equal interval quantizing parameter L QF value is with this default equal interval quantizing parameter L QF IniThe value of a plurality of multiples.
6. the bit rate control circuit of image compression according to claim 4 is characterized in that wherein said a plurality of equal interval quantizing parameter L QF value comprises described default equal interval quantizing parameter L QF Ini/ 4, described default equal interval quantizing parameter L QF Ini/ 2, described default equal interval quantizing parameter L QF Ini/ 1, described default equal interval quantizing parameter L QF Ini* 2, described default equal interval quantizing parameter L QF Ini* 4.
7. the bit rate control circuit of image compression according to claim 1 is characterized in that wherein said R value evaluation unit and this LQF value evaluation unit are to be integrated in a computing unit.
8. the bit rate control circuit of image compression according to claim 1 is characterized in that wherein said compression unit is in addition according to the linear quantization parameter LQF of this target TargetThis image is carried out this compress for the second time, to obtain this compressing image.
9. the bit rate control circuit of image compression according to claim 1 is characterized in that it also comprises another compression unit, is used for according to the linear quantization parameter LQF of this target TargetCarrying out this compresses for the second time.
10. the bit rate control circuit of image compression according to claim 1 is characterized in that wherein said image is a static image.
11. the bit rate control method of an image compression is characterized in that it may further comprise the steps:
According to a default quantization table and a default equal interval quantizing parameter one image is done quantification treatment, this image is carried out a for the first time compression;
Compress for the first time by this, obtain an initial pixel bit and count bpp IniAn and initial zero coefficient number R Ini
Count bpp according to this initial pixel bit IniA desired object pixel bit is counted bpp TargetEstimate a target zero coefficient number R Target
According to this target zero coefficient number R TargetEstimate the linear quantization parameter LQF of a target TargetAnd
According to the linear quantization parameter LQF of this target TargetThis image is carried out a for the second time compression, to obtain a compressing image that should object pixel bit number;
Wherein estimate this target zero coefficient number R TargetStep include: count bpp according to this initial pixel bit IniWith this initial zero coefficient number R IniA coordinate points and the linear relationship between the common initial point, count bpp with this object pixel bit TargetEstimate desired this target zero coefficient number R Target
12. the bit rate control method of image compression according to claim 11 is characterized in that the pixel bit number of wherein said common initial point and the coordinate of zero coefficient number are zero and overall coefficient number T.
13. the bit rate control method of image compression according to claim 11 is characterized in that wherein estimating the linear quantization parameter LQF of this target TargetStep include: according to the numerical relation of zero coefficient number R value after quantizing with respect to equal interval quantizing parameter L QF, to obtain should target zero coefficient number R TargetThe linear quantization parameter LQF of this target Target
14. the bit rate control method of image compression according to claim 13, it is characterized in that zero coefficient number R value after the wherein said quantification is included in respect to this numerical relation of described equal interval quantizing parameter L QF carries out adding up simultaneously one group of zero coefficient number R of corresponding a plurality of equal interval quantizing parameter L QF values during this compresses for the first time Set, calculate should target zero coefficient number R to be provided in this step of carrying out equal interval quantizing parameter L QF value estimation by linear interpolation TargetThe linear quantization parameter LQF of this target Target
15. the bit rate control method of image compression according to claim 14 is characterized in that wherein said a plurality of equal interval quantizing parameter L QF value is with default equal interval quantizing parameter L QF IniThe value of a plurality of multiples.
16. the bit rate control method of image compression according to claim 14 is characterized in that wherein said a plurality of equal interval quantizing parameter L QF value comprises described default equal interval quantizing parameter L QF Ini/ 4, described default equal interval quantizing parameter L QF Ini/ 2, described default equal interval quantizing parameter L QF Ini/ 1, described default equal interval quantizing parameter L QF Ini* 2, described default equal interval quantizing parameter L QF Ini* 4.
17. the bit rate control method of image compression according to claim 13 is characterized in that zero coefficient number R value is to add up in advance a relation curve that obtains with respect to this numerical relation of described equal interval quantizing parameter L QF value after the wherein said quantification.
18. the bit rate control method of image compression according to claim 11 is characterized in that wherein said image is a static image.
CN 200910211936 2009-12-03 2009-12-03 Bit rate control circuit and method for image compression Expired - Fee Related CN102088538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910211936 CN102088538B (en) 2009-12-03 2009-12-03 Bit rate control circuit and method for image compression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910211936 CN102088538B (en) 2009-12-03 2009-12-03 Bit rate control circuit and method for image compression

Publications (2)

Publication Number Publication Date
CN102088538A CN102088538A (en) 2011-06-08
CN102088538B true CN102088538B (en) 2013-01-09

Family

ID=44100137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910211936 Expired - Fee Related CN102088538B (en) 2009-12-03 2009-12-03 Bit rate control circuit and method for image compression

Country Status (1)

Country Link
CN (1) CN102088538B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5594554A (en) * 1993-10-04 1997-01-14 Zoran Corporation Image compression coder having improved scale factor control
US5677689A (en) * 1995-08-31 1997-10-14 Yovanof; Gregory S. Fixed rate JPEG compliant still image compression
CN1581975A (en) * 2003-08-08 2005-02-16 矽统科技股份有限公司 Variable Bit Rate Control Device for Motion Picture Compression
CN1852438A (en) * 2006-04-14 2006-10-25 北京中星微电子有限公司 Automatic bit-rate control method and image compression apparatus
CN1866298A (en) * 2005-05-17 2006-11-22 凌阳科技股份有限公司 Method for object edge detection in image box and determination of quantization scaling parameters

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5594554A (en) * 1993-10-04 1997-01-14 Zoran Corporation Image compression coder having improved scale factor control
US5677689A (en) * 1995-08-31 1997-10-14 Yovanof; Gregory S. Fixed rate JPEG compliant still image compression
CN1581975A (en) * 2003-08-08 2005-02-16 矽统科技股份有限公司 Variable Bit Rate Control Device for Motion Picture Compression
CN1866298A (en) * 2005-05-17 2006-11-22 凌阳科技股份有限公司 Method for object edge detection in image box and determination of quantization scaling parameters
CN1852438A (en) * 2006-04-14 2006-10-25 北京中星微电子有限公司 Automatic bit-rate control method and image compression apparatus

Also Published As

Publication number Publication date
CN102088538A (en) 2011-06-08

Similar Documents

Publication Publication Date Title
US8509556B2 (en) Image coding apparatus and image coding method to generate a targeted amount of code
TWI253862B (en) Method and system for rate control during video transcoding
US8031769B2 (en) Method and device for controlling quantization scales of a video encoding bit stream
US7720145B2 (en) Model based bit rate control for a macroblock encoder
CN104683804B (en) Parameter adaptive multidimensional bit rate control method based on video content features
US6931159B2 (en) Size reduction method and device for compressed images
JP4796019B2 (en) Video quality estimation apparatus, method, and program
TW200847793A (en) Distortion estimation for quantized data
WO2021129007A1 (en) Method and device for determining video bitrate, computer apparatus, and storage medium
US20110243218A1 (en) Method of implementing improved rate control for a multimedia compression and encoding system
TWI247547B (en) Rate controlling method and apparatus for use in a transcoder
CN112165620B (en) Video encoding method and device, storage medium and electronic equipment
TWI405467B (en) Bit rate control circuit and method for image compression
CN110740324B (en) Coding control method and related device
WO2004006188A2 (en) Iterative compression parameters control for a sequence of images
CN102088538B (en) Bit rate control circuit and method for image compression
US7778468B2 (en) Decoding apparatus, dequantizing method, and program thereof
CN115174907A (en) Method and device for controlling video compression code rate
US20050254576A1 (en) Method and apparatus for compressing video data
CN102271247B (en) Method and device for adjusting coding code rate
CN112565755B (en) Video frame encoding method, video frame encoding device, electronic equipment and readable storage medium
JP4730144B2 (en) Decoding device, inverse quantization method, and program thereof
US20100080286A1 (en) Compression-aware, video pre-processor working with standard video decompressors
CN115988201B (en) Method, apparatus, electronic device and storage medium for encoding film grain
JP5042978B2 (en) Data encoding apparatus and data encoding 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
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130109

Termination date: 20141203

EXPY Termination of patent right or utility model