CN1176562A - 视频编码的量化方法和装置 - Google Patents

视频编码的量化方法和装置 Download PDF

Info

Publication number
CN1176562A
CN1176562A CN97117599.3A CN97117599A CN1176562A CN 1176562 A CN1176562 A CN 1176562A CN 97117599 A CN97117599 A CN 97117599A CN 1176562 A CN1176562 A CN 1176562A
Authority
CN
China
Prior art keywords
image
macro block
quantized level
motion
function
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.)
Granted
Application number
CN97117599.3A
Other languages
English (en)
Other versions
CN1164123C (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.)
Technicolor SA
Original Assignee
Thomson Consumer Electronics SA
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 Thomson Consumer Electronics SA filed Critical Thomson Consumer Electronics SA
Publication of CN1176562A publication Critical patent/CN1176562A/zh
Application granted granted Critical
Publication of CN1164123C publication Critical patent/CN1164123C/zh
Anticipated expiration legal-status Critical
Expired - Lifetime 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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/196Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters
    • H04N19/198Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters including smoothing of a sequence of encoding parameters, e.g. by averaging, by choice of the maximum, minimum or median value
    • 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/103Selection of coding mode or of prediction mode
    • H04N19/107Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
    • 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
    • H04N19/126Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • H04N19/139Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/142Detection of scene cut or scene change
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/149Data rate or code amount at the encoder output by estimating the code amount by means of a model, e.g. mathematical model or statistical model
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • 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/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • 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/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/177Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a group of pictures [GOP]
    • 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/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/196Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive 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/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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Algebra (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

视频编码的量化方法和装置。本发明涉及视频数据压缩方法,包含将当前图像划分为宏块和通过按设定速率的函数计算量化级来量化每个宏块中的数据,其特征在于量化级作为宏块编码成本的函数被校正。还可按照所计算的或所估计的宏块运动的函数来校正量化级。

Description

视频编码的量化方法和装置
本发明涉及视频编码的量化方法,该量化一般用在数据压缩期间。
如公知的,数据压缩方法实现以下功能,将图像划分为图像块,对这些块作离散余弦变换以提供亮度和色度系数宏块,量化这些系数以及作可变长度编码。
按照上述方法,内部型编码仅利用图像的固有内容。
中间型编码估计例如先前图像与当前图像之间的运动,以提供先前图像的运动补偿,由此提供一预测图像,然后按当前图像与预测图像之间的差来执行编码。
余弦变换能去除空间冗余和运动补偿去除时间冗余。
为了控制编码器数据速率,使量化级随该数据速率变化是已知的。通常所采用算法的目的在于获得最佳图像质量的最低可能速率同时考虑实际编码成本。
对于给定速率,改进图像质量要求去除空间和时间冗余。这一类型的算法遇到编码类型上所固有的问题,用术语块效应表示缺陷的出现。由于量化级从一个块到另一个块是不同的,解压缩的图像可示出图像块的边界,如果压缩因子大并且因此相继宏块的量化级之间的偏差大则更是如此。
本发明的目的是通过优化控制算法、亦即通过改进给定传输速率的图像质量限制前述缺点。
为此,本发明涉及视频图像数据压缩的方法,包含将当前图像划分为宏块和通过按设定速率的函数计算量化级量化每一宏块中的数据,其特征在于所计算的量化级按宏块编码成本的函数被校正。
本发明还涉及一种视频图像数据压缩的方法,包含将当前图像划分为宏块和通过按设定速率的函数计算量化级量化每一宏块中的数据,其特征在于所计算的量化级按当前图像的宏块相对于前一或后一图像中相匹配的那一个的估计或计算的运动的函数加以校正的。
本发明还涉及实现该方法的装置。
由于眼睛的整体效应,观察者的眼睛对运动的图像区域的块效应不太敏感。其对非均匀区的块效应也不太敏感,因为图像的这种均匀性或“规则性,,使前述缺陷加大。
本发明的意图是通过对这些主观图像感知准则加以考虑而采纳图像量化方法。对于均匀和/或稳定的或具有非常小运动的区域减少量化级,由此更好地进行编码。对于这一类型的区域而言,从一个宏块到另一宏块量化级的变化因此更小。对那些不均匀和/或运动的编码区域说来量化级增加,以保持图像的相同速率分配。
对围绕被处理宏块的图像区中的量化校正执行过滤使得有可能限制跃变,从而对于解压缩的图像质量,编码结果主观上显现出均匀。由此在不增加平均速率的情况下改进解压缩图像质量。
本发明的其他特征和优点通过以下结合附图对本发明优选实施例所作的非限定性描述而更为显而易见,其中:
图1示出图像中的一个宏块及其过滤窗;
图2a示出P型帧的一个运动矢量;
图2b示出P型帧的两个运动矢量;
图3示出按照本发明方法的一种算法;
图4示出按照本发明的装置。
如上所述,要编码的图像被分为构成宏块的图像块。
按照本发明,对应于输入视频序列的图像n的宏块的行i和列i的每个宏块(n,i,j)被用量化级编码,所述量化级是按照下列方程局部调整的:
Q[n][i][j]=Q[n][i]·αw/p[n][i][j]β2w/p[n][i][j]
利用标准MPEG术语,Q[n][i]是对图像n的“切片”i计算的量化级。调整系数αw/p[n][i][j]是在已编码序列的空间特性、尤其是宏块的编码成本的基础上计算的,系数β2w/p[n][i][j]是在已编码序列的时间特性、尤其是赋予宏块的运动的基础上计算的,如后面将进一步解释的。
空间调整系数的计算:
该系数直接与图像的内部编码成本相联系。
宏块(n,i,j)的编码成本α[n][i][j]一般在图像的预分析期间确定,图像的预分析包括对具有恒定量化级的图像编码和测量宏块产生的速率。为了衰减从给定空间特性的一个区域到另一个区域的跃变效应,随后在宏块周围的尺寸为w的窗中过滤相应于编码成本的这一数值。因此能够衰减在邻近宏块的量化级中的急剧变化,这在经过一种类型的区域到另一区域时,例如从一个均匀的区域到一个有纹理的区域时确实是可能在边界上发生的,并且可能导致边缘效应,类似于块效应但限于这些边界。区域中的块效应是同量衰减的。
图1示出一个这种类型的窗。
整个图1包括每切片M个宏块和S个切片。
对于位于图像n的第i片和第j宏块列的给定宏块2(n,i,j)来说,考虑离所讨论宏块的距离小于或等于w的相邻宏块,定义了尺寸为w的一个窗3,亦即,这些宏块既属于包含在i-w与i+w之间的切片,也属于包含在j-w与j+w之间的列。因此w对应于被处理宏块周围的偏移。
应用下列方程在窗W上对编码成本α(n,i,j)取平均: α w ( n , i , j ) = 1 ( 2 W + 1 ) 2 Σ u = i - w i + w Σ v = j - w j + w α ( n , u , v )
为了量化级的校正不令作为设定平均速率的函数的步骤计算无效,亦即常规控制算法,在尺寸为w的窗上平均的校正系数αw通过将它除以整个图像上系数α的平均值αp在整个图像上被加权。 α p ( n ) = 1 M . S Σ u = 1 S Σ v = 1 M α ( n , u , v ) 然后对于宏块(n,i,j)空间系数假定为下列值: α w / p ( n , i , j ) = α w ( n , i , j ) α p ( n )
可以用S行和P列的矩阵表示图像n,行i和列j的矩阵系数对应于αw/p(n,i,j)。该矩阵Sp是在图像n的宏块的编码成本矩阵的基础上计算的,该编码成本矩阵是在该图像n的第一遍内部编码期间获得的。内部系数的这一矩阵称为校正屏蔽,矩阵中的每一系数被应用于相应宏块以在对该宏块编码期间校正由常规压缩算法计算的量化级。
由于图像n上系数αw/p(n,i,j)的和等于1,可能证明控制算法不受将这一空间系数应用于量化级的干扰。
所计算的系数受到约束以避免过校正,过校正可能与使用的控制算法有联系,并且为与设定速率相符,例如在编码图像的最后一些切片时,可能迫使量化级不考虑图像的复杂性。在我们的实例中,系数限制在从0.67延伸到1.5的区域中。
时间调整系数的计算:
为了使运动得少的区域与运动得大的区域相比具有更好的编码质量,有必要检测这些区域,这是通过恢复运动信息的数量而实现的。
可供图像的每一宏块使用的运动矢量类型取决于图像(该宏块所属图像)的类型。以MPEG标准定义的图像类型取决于图像编码,即对于内部图像编码,为类型I、即内部,对于仅考虑前一图像基准的图像编码,为类型P、即预测,以及对于考虑前一和/或后一图像基准的图像编码为类型B、即双向。
因此这些矢量可以为:
-对于P型图像,图像矢量参考前一内部或P型图像;
-对于B型图像,正向或反向图像矢量取决于它们是否参考前一图像或后一图像。
如果对图像帧而非重构图像执行处理,计算的矢量参考这些帧而不是图像。因此可得到的帧矢量是具有相同或者相反奇偶性的帧矢量。
所有这些矢量通过块匹配获得。用运动估值器计算矢量。
考虑用于计算时间调整系数的信息是图像运动矢量的模方或模。 V [ n ] [ i ] [ j ] = V X 2 [ n ] [ i ] [ j ] + V Y 2 [ n ] [ i ] [ j ]
Vx和Vy是运动矢量的水平和垂直分量。
然后这一模信息作为将当前图像从用于计算当前图像的运动场的参考图像分离的图像数的函数被归一化,或者,如果计算是在帧的等级上执行的,则作为将当前帧与参考帧分离的帧数的函数被归一化,这是为了获得在整个序列上最相似的矢量场。
该归一化矢量为:
V′[n][i][j]=ηV[n][i][j]
η是归一化因子。
所选择的参考持续时间是分离两个P型图像的持续时间。设M是分离两个P型图像的图像间隔数,设Bpos是从前一P型(或I型)图像分离B型图像的间隔数,也就是在两P型图像之间B的位置。
图2a表示P型图像的矢量4。因此该矢量参考前一图像I。当前图像P与参考图像I之间的间隙对应于M。
当应用于图像时,运动矢量的归一化因子为:
-当相应于前一P型(或I型)图像对一B型图像编码时,亦即对于向前类型的矢量: η = M B pos
-当相应于下一P型(或I型)图像对一B型图像编码时,亦即对于向后类型的矢量: η = M M - B pos
当对一P型图像编码时(在图2a的情况下):
η=1
图2b示出参考前一I型图像第二帧的P型图像的第一帧的第一运动矢量5,和参考前一I型图像的第一帧的P型图像的第二帧的第二运动矢量6。
当应用于帧时,运动矢量场的归一化因子取决于帧的场位置和奇偶性,并为:
-对于P型帧(在图2b的情况下): η = 2 · M 2 · M + [ 2 · M · ( 1 - field ) + ( - 1 ) field ] · parity -对于B型帧和前向预测: η = 2 · M 2 · B pos + ( - 1 ) field · parity -对于B型帧和后向预测: η = 2 · M 2 · ( M - B pos ) - ( - 1 ) field · parity
根据图像中包含的是第一帧还是第二帧,“场”等于1或2,根据是包含相同奇偶性还是相反奇偶性,奇偶性等于0或1。
在双向类型图像的情况下,图像宏块可以在仅有正向矢量、仅有反向矢量或可选择地为这两者的组合的基础上编码。在这种情况下,对应于最大值的那些将被选择,而两个矢量的平均值可以被同样好地采用。
因此通过将分配给图像或帧的运动矢量V(n,i,j)的模乘以相应系数η获得归一化运动矢量V′(n,i,i)。
然后通过在尺寸为W的窗上过滤矢量V′和通过在整个图像上加权来计算时间调整系数βlw/p(n,i,j)的矩阵,如前面对系数α所说明的。 β lw / p [ n ] [ i ] [ j ] = 1 ( 2 W + 1 ) 2 Σ u = i - W i + W Σ v = j - W j + W V ′ [ n ] [ u ] [ v ] 1 M · S Σ u = 1 S Σ v = 1 M V ′ [ n ] [ u ] [ v ]
换言之,βlw/p(n)(i)(j)对应于尺寸为W的窗中局部运动的平均值被图像中运动的平均值加权。 β lw / p [ n ] [ i ] [ j ] = V ′ w - V ′ p [ n ] = 1 - V ′ p ( n ) - - V ′ w - [ n ] [ i ] [ j ] V ′ p [ n ] - = 1 - λ lw / p [ n ] [ i ] [ j ]
表示量化级的校正因子的λ1w/p(n)(i)(j)因此对应于图像中运动的平均值与由图像中运动的平均值加权的局部运动值之间的差。
校正的目的是有利于具有少量运动的区域,代价是那些高度运动的区域。对于较低等级的局部运动 V′w(n)(i)(j),时间系数(因此量化级)较小并且对应于该局部运动的宏块的编码质量较好。而且,由于对图像的固定速率分配,运动少的这一区域如同图像 V′p(n)中平均运动增加时被同样较好地加以编码。
对于高度运动的序列,校正因子最佳地起到其作用。但是,也为了适应运动少的场景,有必要调整这一系数。一个实例能够使这点得到证明。
考虑一个为“汽车日历”型、在数据压缩领域公知的运动少的场景。图像的平均运动矢量是3,是一小的数值,因为对于水平分量按8位以及对于垂直分量按7位编码的运动矢量最大值为143的数量级。对于等于1的宏块相对运动,该值给出0.33的校正因子。因此在自身运动少的序列中运动少的区域的校正加权过于大。
因此可以这样推断,校正系数λ1应该用因子 加权,其中 V表示对高度运动序列的图像上运动的平均值的估计,其降低系数λ1,因此衰减对具有小的平均运动 (V′p(n)< V)的场景的校正(通过设β1趋近于1),而对于高度运动的场景则保持它。
一秒期间图像总宽度上图像像素的运动已经从实验上规定为对 V的良好估值: V - = picture _ width F R · M
“picture width”是按像素数(例如720)表示的这一宽度,FR是图像频率(例如50Hz)。
M使得归一化平均值成为可能(因此这是在参考时间距离上的平均运动)。
最后,局部时间调整系数β21w/p(n,i,j)可以写为: β 2 w / p [ n ] [ i ] [ j ] = 1 - λ lw / p [ n ] [ i ] [ j ] V ′ p [ n ] V - = v - - ( V ′ p [ n ] - ) + V ′ w - [ n ] [ i ] [ j ] V - 如果采用表达式V″[n][i][j]=V′[n][i][j]+( V- V′p[n]),则: β 2 w / p [ n ] [ i ] [ j ] = V ′ ′ w - [ n ] [ i ] [ j ] V - = V ′ ′ w - [ n ] [ i ] [ j ] V ′ ′ p [ n ] -
换言之,局部时间调整系数β21w/p(n,i,j)对应于在尺寸为W的窗上归一化矢量V″的过滤,V″是通过将代表高度运动序列的平均速度矢量周围的归一化矢量V′再集中而得到的。
最后,用常规控制算法计算的当前宏块的量化级由总调整系数校正,总调整系数是考虑图像的空间和时间复杂性的乘积αw/p(n,i,j)×β2w/p(n)(i)(j)。
通过注意该乘积中的每一项可以用同一算子计算,用于计算系数的算法可得到简化,所述算子如下:
Figure A9711759900101
对于系数α,项d(n)(u)(v)代表宏块(n,u,v)的编码成本,对于系数β,它代表分配给宏块(n,u,v)的矢量V″的模。
图3示出用于计算量化系数的算法。
标号为7的步骤在关于输入端I1上接收的并在图像的第一遍编码或预分析期间计算的内部图像块的编码成本的信息的基础上计算空间调整系数。然后在步骤8期间在尺寸为w的窗中过滤这些系数,以给出被送至步骤9的空间调整系数矩阵。
步骤10在正向和反向矢量的基础上计算图像运动矢量的模,正向和反向矢量是由运动估值器提供的并在输入端I2上获得。下一步骤11按照图像组上相应图像的位置的函数归一化这些矢量的模。它按赋予每一图像的值M的函数计算归一化因子η。下一步骤12计算高度运动的序列在整个图像上运动的平均值,如以上所定义的。然后在步骤13将归一化的矢量在这一平均值周围再集中,然后在尺寸为w的窗上将它们过滤。进而对于源自步骤13的信息,相关于图像序列中的切割部分,步骤14接收从输入端I3发出的信息。如果为被处理的当前图像发送“切割”信息项,通过发送等于1的系数矩阵,步骤14停止对量化级按时间调整系数的函数的校正。在另一情况下,它是在前一步骤计算的系数,是以时间调整系数的矩阵的形式发送的。步骤9将每一时间调整系数乘以相应的空间调整系数(同一行,同一列),以给出它应被再调用的、相应于正被处理的图像中宏块的新系数矩阵。这一步骤也考虑送至输入端I4的量化级,它是在常规控制算法的基础上计算的那一量化级。乘以对于当前宏块所获得的新系数的这一量化级给出在步骤9输出S提供的新的被调整的量化级。
图4表示实施上述方法的装置的说明性实施例。
视频预处理电路15接收其输入端上的视频信息,也是该装置的输入端。其输出端连接到预分析或“第一遍”电路16的输入端,运动估值器17的输入端和中间/内部编码回路18的输入端。预分析电路的第一输出端连接到用于计算量化级的电路19的第一输入端,而预分析电路的第二输出端连接到用于调整量化级的电路20的第一输入端。运动估值器17的输出端并联连接到量化级调整电路20的第二输入端和中间/内部编码回路18的第二输入端。在第二输入端,量化级计算电路19接收从输出缓冲器或缓冲存储器21发出的存储容量信息。量化级计算电路19的输出端连接到量化级调整电路20的第三输入端。该电路的输出端连接到编码回路18的第三输入端。编码回路的输出端连接到输出缓冲器或缓冲存储器21,其第一输出端是该装置的输出,其第二输出端连接到量化级计算电路19。
以常规方式,预处理电路在图像组级别重新排列图像,如MPEG标准中所定义的,然后将图像分为宏块。预分析器执行第一遍,亦即在恒定量化级的基础上对图像作内部编码,恒定量化级是作为正被处理的图像组(MPEG标准的GOP)的先前图像的编码复杂性的函数预先定义或调整的,在GOP级别实现控制,以为量化级计算电路19提供每图像编码成本。预分析器还将每宏块编码成本供给局部调整量化级的电路20,以计算空间调整系数。该电路20还接收在运动估值器17的基础上计算的运动矢量,以确定时间调整系数。中间/内部编码回路18从预处理电路15接收宏块形式的视频信息,并从运动估值器接收分配给每一宏块的运动矢量,以便计算中间宏块。依据通过计算这些宏块固有的能量确定的中间或内部模式,它对中间或内部宏块执行离散余弦变换。利用由量化级调整电路20送出的已调整的量化级信息对获得的系数进行量化。然后将量化后的系数传送到缓冲存储器21然后到本装置的输出端。缓冲存储器使得能够控制本装置的输出速率。关于该存储器的存储容量的信息被传送到量化级计算电路19,其也具有关于该装置设定输出速率的信息。如其名称所暗示的,这一量化级计算电路19具有按该设定速率的函数计算每一图像的量化级的作用,该速率是在图像组级产生的并也是缓冲存储器装载的程度。然后将这一步骤送至量化级调整电路,该电路的作用尤其是按为所讨论的宏块所计算的空间和时间调整系数的函数校正其值。
自然,这些是说明性实施例,准数α可以是任何表示图像复杂性的系数,例如宏块的能量或亮度梯度。对于准数β来说同样如此,其可以是任何给出运动信息的系数。
如上所述,时间准数的应用假定被编码的场景中的连续性。因此,在例如通过由运动估值器计算的运动矢量的相干(则矢量场是非均匀的)检测的景的变化期间,系数β的使用被停止。按时间准数的函数调整量化级被停止,这样就不会损害观察算法,尤其是该算法的变换速率。在内部模式的宏块编码期间(一般与景的变化相关),将系数β例如限制为1。
过滤窗的尺寸取决于量化级校正的所需级别:窗越宽,系数越趋近于1。这一尺寸可以按正被处理区域的函数进行调整,亦即它们的均匀性和/或它们的运动取决于它们需要的量化级的校正度。
利用同一过滤器计算空间和时间校正系数不需要实现同一过滤窗。关于时间准数,当一个宏块所获得的运动矢量(无论是正向型还是反向型)相对于相邻宏块获得的那些是均匀的时,可将过滤窗减小为其最小尺寸。
该方法可适合于运用亮度数据量化的任何类型的编码器,不管是在空间域还是在频域中。描述的实例涉及变换块的系数,但本发明可能应用于图像块的亮度值。
该方法还可适合于对量化级起作用的任何类型的控制算法。我们已假定按照MPEG标准,量化级对于切片是恒定的,但本发明能够应用于为每个宏块计算一个量化级的算法。

Claims (8)

1、视频图像的数据压缩方法,包含将当前图像划分为宏块和通过按设定速率的函数计算量化级量化每个宏块中的数据,其特征在于将所计算的量化级作为当前图像的宏块相对于前一或后一图像(10,11,12,13,14,9)中匹配的那一个所作的估计或计算的运动的函数,并作为宏块(7,8,9)编码成本的函数来加以修改。
2、视频图像的数据压缩方法,包含将当前图像划分为宏块并通过作为设定速率的函数来计算量化级而量化每一宏块中的数据,其特征在于作为运动信息的函数来修改(10,11,12,13,14,9)所计算的量化级,所述运动信息包括当前图像的宏块相对于前一或后一图像中匹配的那一个所作的估计或计算的运动,并用相应于对于具有高度运动的序列估计的平均运动与宏块(13)所属的图像中的平均运动之间的偏差的值加以校正。
3、如权利要求1所述的方法,其特征在于:在集中在当前宏块上的窗上平均(8)宏块的编码成本。
4、如权利要求3所述的方法,其特征在于:通过将对宏块计算的量化级乘以等于在窗上平均的宏块的编码成本的空间调整系数,除以在整个图像上平均的编码成本来实行修改。
5、如权利要求2所述的方法,其特征在于:在集中在当前宏块上的窗上来平均(13)已校正的运动。
6、如权利要求5所述的方法,其特征在于:通过将对宏块计算的量化级乘以等于相应于在尺寸为w的窗上平均的已校正运动的运动矢量的模的时间调整系数,除以在整个图像上平均的已校正的运动矢量的模来实行修改。
7、如前述权利要求之一所述的方法,其特征在于:每一宏块中的数据是由图像块的离散余弦变换产生的系数。
8、视频图像的数据压缩装置,包含对图像的宏块进行中间和内部编码的电路(18),其自身包括一个图像宏块的离散余弦变换电路和一个基于由电路(19)计算的量化级的已变换系数的量化器,电路(19)用于作为该装置输出速率的函数计算量化级,其特征在于它包括接收所计算的量化级的装置(20),以便按已编码宏块编码成本(16)的函数调整该量化级,并将其提供到中间和内部编码电路(18)和作为分配给已编码宏块的运动(17)的函数。
CNB971175993A 1996-09-06 1997-09-04 视频编码的量化方法和装置 Expired - Lifetime CN1164123C (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
FR9610878 1996-09-06
FR9610878A FR2753330B1 (fr) 1996-09-06 1996-09-06 Procede de quantification pour codage video

Publications (2)

Publication Number Publication Date
CN1176562A true CN1176562A (zh) 1998-03-18
CN1164123C CN1164123C (zh) 2004-08-25

Family

ID=9495508

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB971175993A Expired - Lifetime CN1164123C (zh) 1996-09-06 1997-09-04 视频编码的量化方法和装置

Country Status (6)

Country Link
US (1) US6148107A (zh)
EP (1) EP0828393B1 (zh)
JP (1) JP4370005B2 (zh)
CN (1) CN1164123C (zh)
DE (1) DE69729697T2 (zh)
FR (1) FR2753330B1 (zh)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100353768C (zh) * 2003-11-26 2007-12-05 联发科技股份有限公司 在视频压缩系统中进行运动估测的方法及相关装置
CN100466734C (zh) * 2004-06-30 2009-03-04 Lg电子株式会社 编码图像信号
US8005139B2 (en) 2004-06-27 2011-08-23 Apple Inc. Encoding with visual masking
US8208536B2 (en) 2005-04-28 2012-06-26 Apple Inc. Method and apparatus for encoding using single pass rate controller
CN1926863B (zh) * 2004-06-27 2012-09-19 苹果公司 多通路视频编码的方法
US8355436B2 (en) 2002-11-08 2013-01-15 Apple Inc. Method and apparatus for control of rate-distortion tradeoff by mode selection in video encoders
US8406293B2 (en) 2004-06-27 2013-03-26 Apple Inc. Multi-pass video encoding based on different quantization parameters
CN101663895B (zh) * 2007-05-04 2013-05-01 高通股份有限公司 使用所估计译码成本的视频译码模式选择
US8781002B2 (en) 2003-01-08 2014-07-15 Apple Inc. Method and apparatus for improved coding mode selection
CN104335583A (zh) * 2012-04-16 2015-02-04 法国布雷维茨公司 用于视频编码的动态量化方法
CN104754342A (zh) * 2013-12-31 2015-07-01 Vixs系统公司 带有块合并的视频编码器以及与其一起使用的方法

Families Citing this family (48)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1077000B1 (en) * 1998-05-12 2003-04-16 STMicroelectronics Asia Pacific Pte Ltd. Conditional masking for video encoder
EP0994627B1 (en) * 1998-10-13 2006-03-08 Matsushita Electric Industrial Co., Ltd. Regulation of the computational and memory requirements of a compressed bitstream in a video decoder
US6389072B1 (en) * 1998-12-23 2002-05-14 U.S. Philips Corp. Motion analysis based buffer regulation scheme
EP1057344A1 (en) * 1998-12-23 2000-12-06 Koninklijke Philips Electronics N.V. Adaptive buffer and quantizer regulation scheme for bandwidth scalability of video data
KR20010041441A (ko) * 1998-12-29 2001-05-25 요트.게.아. 롤페즈 비디오 신호를 인코딩하기 위한 방법 및 장치
FR2792798B1 (fr) * 1999-04-26 2001-05-25 Thomson Multimedia Sa Procede et dispositif de quantification pour compression video
US6735249B1 (en) * 1999-08-11 2004-05-11 Nokia Corporation Apparatus, and associated method, for forming a compressed motion vector field utilizing predictive motion coding
US7295614B1 (en) * 2000-09-08 2007-11-13 Cisco Technology, Inc. Methods and apparatus for encoding a video signal
JP4203707B2 (ja) * 2001-01-31 2009-01-07 日本電気株式会社 事前解析を用いた動画像符号化装置、動画像符号化方法、及びそのプログラム。
US7050497B2 (en) * 2001-03-28 2006-05-23 Thomson Licensing Process and device for the video coding of high definition images
JP4447805B2 (ja) * 2001-08-09 2010-04-07 ソニー株式会社 画像符号化装置および方法、記録媒体、並びにプログラム
US7580584B2 (en) 2003-07-18 2009-08-25 Microsoft Corporation Adaptive multiple quantization
US8218624B2 (en) 2003-07-18 2012-07-10 Microsoft Corporation Fractional quantization step sizes for high bit rates
US10554985B2 (en) 2003-07-18 2020-02-04 Microsoft Technology Licensing, Llc DC coefficient signaling at small quantization step sizes
US7602851B2 (en) 2003-07-18 2009-10-13 Microsoft Corporation Intelligent differential quantization of video coding
US7738554B2 (en) 2003-07-18 2010-06-15 Microsoft Corporation DC coefficient signaling at small quantization step sizes
FR2866737B1 (fr) * 2004-02-25 2006-11-17 Nextream France Dispositif et procede de pre-traitement avant codage d'une sequence d'images
US7801383B2 (en) 2004-05-15 2010-09-21 Microsoft Corporation Embedded scalar quantizers with arbitrary dead-zone ratios
FR2872665A1 (fr) * 2004-07-01 2006-01-06 Thomson Licensing Sa Dispositif et procede de compression video
US7567722B2 (en) * 2005-03-22 2009-07-28 Qualcomm Incorporated Dynamically scaled file encoding
US8422546B2 (en) 2005-05-25 2013-04-16 Microsoft Corporation Adaptive video encoding using a perceptual model
US7889790B2 (en) * 2005-12-20 2011-02-15 Sharp Laboratories Of America, Inc. Method and apparatus for dynamically adjusting quantization offset values
US8059721B2 (en) 2006-04-07 2011-11-15 Microsoft Corporation Estimating sample-domain distortion in the transform domain with rounding compensation
US8130828B2 (en) 2006-04-07 2012-03-06 Microsoft Corporation Adjusting quantization to preserve non-zero AC coefficients
US7995649B2 (en) 2006-04-07 2011-08-09 Microsoft Corporation Quantization adjustment based on texture level
US7974340B2 (en) 2006-04-07 2011-07-05 Microsoft Corporation Adaptive B-picture quantization control
US8503536B2 (en) 2006-04-07 2013-08-06 Microsoft Corporation Quantization adjustments for DC shift artifacts
US8711925B2 (en) 2006-05-05 2014-04-29 Microsoft Corporation Flexible quantization
US8090022B2 (en) * 2007-01-05 2012-01-03 Sony Corporation Video coding system
KR100968204B1 (ko) 2007-01-11 2010-07-06 전자부품연구원 다시점 비디오 코덱에서의 영상 예측 방법 및 이를 위한프로그램을 기록한 컴퓨터로 판독 가능한 기록매체
US8238424B2 (en) 2007-02-09 2012-08-07 Microsoft Corporation Complexity-based adaptive preprocessing for multiple-pass video compression
US8498335B2 (en) 2007-03-26 2013-07-30 Microsoft Corporation Adaptive deadzone size adjustment in quantization
US8243797B2 (en) 2007-03-30 2012-08-14 Microsoft Corporation Regions of interest for quality adjustments
US8442337B2 (en) 2007-04-18 2013-05-14 Microsoft Corporation Encoding adjustments for animation content
US8331438B2 (en) 2007-06-05 2012-12-11 Microsoft Corporation Adaptive selection of picture-level quantization parameters for predicted video pictures
JP4820800B2 (ja) * 2007-10-30 2011-11-24 日本電信電話株式会社 画像符号化方法、画像符号化装置、及び画像符号化プログラム
JP4681011B2 (ja) * 2008-01-31 2011-05-11 日本電信電話株式会社 動画像符号化方法、動画像符号化装置、動画像符号化プログラムおよびそのプログラムを記録したコンピュータ読み取り可能な記録媒体
US8189933B2 (en) 2008-03-31 2012-05-29 Microsoft Corporation Classifying and controlling encoding quality for textured, dark smooth and smooth video content
US8897359B2 (en) 2008-06-03 2014-11-25 Microsoft Corporation Adaptive quantization for enhancement layer video coding
US9319578B2 (en) 2012-10-24 2016-04-19 Alcatel Lucent Resolution and focus enhancement
US8929456B2 (en) * 2010-09-30 2015-01-06 Alcatel Lucent Video coding using compressive measurements
US9344736B2 (en) 2010-09-30 2016-05-17 Alcatel Lucent Systems and methods for compressive sense imaging
US8644376B2 (en) 2010-09-30 2014-02-04 Alcatel Lucent Apparatus and method for generating compressive measurements of video using spatial and temporal integration
US9634690B2 (en) 2010-09-30 2017-04-25 Alcatel Lucent Method and apparatus for arbitrary resolution video coding using compressive sampling measurements
US9398310B2 (en) 2011-07-14 2016-07-19 Alcatel Lucent Method and apparatus for super-resolution video coding using compressive sampling measurements
US9600899B2 (en) 2013-12-20 2017-03-21 Alcatel Lucent Methods and apparatuses for detecting anomalies in the compressed sensing domain
US9563806B2 (en) 2013-12-20 2017-02-07 Alcatel Lucent Methods and apparatuses for detecting anomalies using transform based compressed sensing matrices
US9894324B2 (en) 2014-07-15 2018-02-13 Alcatel-Lucent Usa Inc. Method and system for modifying compressive sensing block sizes for video monitoring using distance information

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2000156C (en) * 1989-02-14 1995-05-02 Kohtaro Asai Picture signal encoding and decoding apparatus
KR960010392B1 (ko) * 1990-09-29 1996-07-31 니뽕 빅터 가부시끼가이샤 적응 양자화를 이용한 화상 신호 부호화 복호화 장치
EP0514663A3 (en) * 1991-05-24 1993-07-14 International Business Machines Corporation An apparatus and method for motion video encoding employing an adaptive quantizer
US5144424A (en) * 1991-10-15 1992-09-01 Thomson Consumer Electronics, Inc. Apparatus for video data quantization control
US5231484A (en) * 1991-11-08 1993-07-27 International Business Machines Corporation Motion video compression system with adaptive bit allocation and quantization
US5214507A (en) * 1991-11-08 1993-05-25 At&T Bell Laboratories Video signal quantization for an mpeg like coding environment
US5650860A (en) * 1995-12-26 1997-07-22 C-Cube Microsystems, Inc. Adaptive quantization

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8355436B2 (en) 2002-11-08 2013-01-15 Apple Inc. Method and apparatus for control of rate-distortion tradeoff by mode selection in video encoders
US8781002B2 (en) 2003-01-08 2014-07-15 Apple Inc. Method and apparatus for improved coding mode selection
CN100353768C (zh) * 2003-11-26 2007-12-05 联发科技股份有限公司 在视频压缩系统中进行运动估测的方法及相关装置
CN102833539B (zh) * 2004-06-27 2015-03-25 苹果公司 多通路视频编码
CN1926863B (zh) * 2004-06-27 2012-09-19 苹果公司 多通路视频编码的方法
CN102833539A (zh) * 2004-06-27 2012-12-19 苹果公司 多通路视频编码
US8406293B2 (en) 2004-06-27 2013-03-26 Apple Inc. Multi-pass video encoding based on different quantization parameters
US8594190B2 (en) 2004-06-27 2013-11-26 Apple Inc. Encoding with visual masking
US8005139B2 (en) 2004-06-27 2011-08-23 Apple Inc. Encoding with visual masking
CN102833538B (zh) * 2004-06-27 2015-04-22 苹果公司 多通路视频编码
CN100466734C (zh) * 2004-06-30 2009-03-04 Lg电子株式会社 编码图像信号
US8208536B2 (en) 2005-04-28 2012-06-26 Apple Inc. Method and apparatus for encoding using single pass rate controller
CN101663895B (zh) * 2007-05-04 2013-05-01 高通股份有限公司 使用所估计译码成本的视频译码模式选择
CN104335583A (zh) * 2012-04-16 2015-02-04 法国布雷维茨公司 用于视频编码的动态量化方法
CN104754342A (zh) * 2013-12-31 2015-07-01 Vixs系统公司 带有块合并的视频编码器以及与其一起使用的方法
CN104754342B (zh) * 2013-12-31 2019-07-09 Vixs系统公司 带有块合并的视频编码器以及与其一起使用的方法

Also Published As

Publication number Publication date
FR2753330B1 (fr) 1998-11-27
DE69729697D1 (de) 2004-08-05
EP0828393A1 (en) 1998-03-11
JP4370005B2 (ja) 2009-11-25
DE69729697T2 (de) 2005-07-07
CN1164123C (zh) 2004-08-25
EP0828393B1 (en) 2004-06-30
JPH10108187A (ja) 1998-04-24
US6148107A (en) 2000-11-14
FR2753330A1 (fr) 1998-03-13

Similar Documents

Publication Publication Date Title
CN1164123C (zh) 视频编码的量化方法和装置
CN1209929C (zh) 视频压缩的量化处理方法和装置
CN1177480C (zh) 编码系统中基于对象的速率控制装置和方法
CN1071526C (zh) 图象数据的自适应可变长度编码和译码方法
CN1110962C (zh) 用于视频信号编码系统的自适应量化器
CN1145363C (zh) 静画和动画编码的量化矩阵
CN1098599C (zh) 在存在图象强度渐变情况下的视频信号编码系统
CN100571365C (zh) 用于在双通道编码中选择扫描模式的方法与设备
EP1867175B1 (en) Method for locally adjusting a quantization step
US20030223492A1 (en) Bit rate control through selective modification of DCT coefficients
EP1995971A1 (en) A method and device for realizing quantization in coding-decoding
CN1949877A (zh) 自适应量化控制器及其方法
CN1794815A (zh) 产生对图像或图像序列进行编码的量化矩阵的方法和设备
CN1909662A (zh) 采用帧目标比特数不平均分配的视频压缩码率控制方法
CN1285214C (zh) 一种环路滤波方法和环路滤波器
CN1193616C (zh) 一种用于图像压缩传输的量化与码流控制方法
CN1379591A (zh) 用于控制视频数据质量的方法和设备
JPH09200758A (ja) 画像符号化装置
CN1756353A (zh) 一种视频数据压缩的量化方法
CN102427529B (zh) 视频编码压缩方法
CN1754389A (zh) 用于改进的编码模式选择的方法和装置
CN100563336C (zh) 一种基于手机电视的恒定码率控制方法
CN1159923C (zh) 图像信号自适应编码的方法和装置
CN113630599B (zh) 一种基于roi的视频码率控制方法及系统
CN100342728C (zh) 控制视频信号编码比特流的量化程度的方法与相关装置

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20040825