CN102420980B - Frame-layer and macroblock-layer quantization parameter adjusting method and system - Google Patents

Frame-layer and macroblock-layer quantization parameter adjusting method and system Download PDF

Info

Publication number
CN102420980B
CN102420980B CN201010294847.7A CN201010294847A CN102420980B CN 102420980 B CN102420980 B CN 102420980B CN 201010294847 A CN201010294847 A CN 201010294847A CN 102420980 B CN102420980 B CN 102420980B
Authority
CN
China
Prior art keywords
contrast
frame
quantization parameter
static
dynamic
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
CN201010294847.7A
Other languages
Chinese (zh)
Other versions
CN102420980A (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.)
Shenzhen Yunzhou Multimedia Technology Co., Ltd.
Original Assignee
Shenzhen Temobi Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Temobi Science and Technology Co Ltd filed Critical Shenzhen Temobi Science and Technology Co Ltd
Priority to CN201010294847.7A priority Critical patent/CN102420980B/en
Priority to PCT/CN2011/072822 priority patent/WO2012041055A1/en
Publication of CN102420980A publication Critical patent/CN102420980A/en
Application granted granted Critical
Publication of CN102420980B publication Critical patent/CN102420980B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/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/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/172Methods 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 picture, frame or field
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a frame-layer and macroblock-layer quantization parameter adjusting method and system. On one hand, the adjustment range of frame-layer quantization parameters is determined through dynamic and static contrast information of an image; on the other hand, further adjustment is carried out through a current bit or QP (Quantization Parameter) conditions of RC (Rate Control) output, which can effectively control the actual bit rate to close a target bit rate. In addition, the invention further provides a novel macroblock-layer quantization parameter adjusting method, wherein quantization parameters of a current macroblock are adaptively adjusted by utilizing static and dynamic contrast information of the current macroblock and a current frame as well as the frame-layer quantization parameters, so as to keep the stability of the fluctuating performance of code rate while the rate-distortion performance of an encoder is improved.

Description

A kind of frame layer and macroblock layer quantization parameter method of adjustment and system
Technical field
The present invention relates to field of video encoding, relate in particular to a kind of frame layer and macroblock layer quantization parameter method of adjustment and system.
Background technology
One of key problem in Video coding is exactly RC (Rate Control), determines all kinds of coding modes by it, as macroblock partitions, motion vector, quantization parameter etc.Wherein, because quantification can cause distortion, make the structure of quantification and the selection of quantization parameter particularly important.Meanwhile, in Video coding, first coding frame reconstruct after using the reference frame as next code frame, thereby make the quality of next code frame and the quality of reference frame closely bound up.
Prior art generally adopts the frame layer quantization parameter adjustment modes of fixed cycle, because it does not consider the characteristic of image, thus cannot online adaptive adjustment, thus its performance restricted.
Summary of the invention
The object of the embodiment of the present invention is to propose a kind of frame layer quantization parameter method of adjustment, and being intended to solve prior art frame layer quantization parameter adjustment modes cannot online adaptive adjustment, and the distortion performance of encoder is not high, the unsettled problem of code check fluctuating nature.
Described frame layer quantization parameter method of adjustment comprises the following steps:
Extract present frame Static and dynamic contrast information;
According to the quantization parameter of the dynamic static contrast information of current frame image and Rate Control output, determine the final adjustment function of frame layer quantization parameter;
According to the quantization parameter of present frame Rate Control output and described final adjustment function and draw the quantization parameter that frame layer is new.
Another object of the embodiment of the present invention is to propose a kind of frame layer quantization parameter adjustment System, and described system comprises:
Static and dynamic contrast information extraction module, for extracting present frame Static and dynamic contrast information;
The final adjustment function acquisition module of frame layer quantization parameter, for according to the quantization parameter of the dynamic static contrast information of current frame image and Rate Control output, determines the final adjustment function of frame layer quantization parameter;
The new quantization parameter acquisition module of frame layer, for according to the quantization parameter of present frame Rate Control output and described final adjustment function and draw the quantization parameter that frame layer is new.
Another object of the embodiment of the present invention is to propose a kind of macroblock layer quantization parameter method of adjustment, and described method comprises:
Extract the dynamic and static contrast information of current macro and present frame;
By the dynamic and static contrast information of frame layer quantization parameter and current macro, present frame, determine the quantization parameter of current macro.
Another object of the embodiment of the present invention is to propose a kind of macroblock layer quantization parameter adjustment System,, described system comprises:
Dynamic and the static contrast information extraction module of macro block and frame, for extracting the dynamic and static contrast information of current macro and present frame;
The quantization parameter acquisition module of macro block, for the dynamic and static contrast information by frame layer quantization parameter and current macro, present frame, determines the quantization parameter of current macro.
Beneficial effect of the present invention:
The embodiment of the present invention is determined the adjusting range of frame layer quantization parameter on the one hand by dynamic, the static contrast information of image, on the other hand by the QP situation of current bit or RC output, for further adjustments, this can effectively control actual bit rate and draw close to target bit rate.Utilize frame layer quantization parameter of the present invention to adjust strategy, not only can enhancing rate distortion performance but also can make the code check fluctuation of encoder output code flow more mild, thereby lifting network transmission performance, can make the more approaching coding target bit rate of the actual output bit rate of encoder in addition.
In addition, the embodiment of the present invention is utilized Static and dynamic contrast information and the frame layer quantization parameter of current macro, present frame, self adaptation is adjusted the quantization parameter of current macro, thereby in promoting the distortion performance of encoder, keeps the stability of code check fluctuating nature.
Brief description of the drawings
Fig. 1 is a kind of frame layer of embodiment of the present invention quantization parameter method of adjustment flow chart;
Fig. 2 is the acquisition methods flow chart that the frame layer quantization parameter in Fig. 1 method finally adjusted function;
Fig. 3 is a kind of frame layer of embodiment of the present invention quantization parameter adjustment System structural representation;
Fig. 4 is the detailed structure schematic diagram that the frame layer quantization parameter in Fig. 3 system finally adjusted function;
Fig. 5 is a kind of macroblock layer quantization parameter of embodiment of the present invention method of adjustment flow chart;
Fig. 6 is a kind of macroblock layer quantization parameter of embodiment of the present invention adjustment System structural representation.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated, for convenience of explanation, only show the part relevant to the embodiment of the present invention.Should be appreciated that the specific embodiment that this place is described, only for explaining the present invention, not in order to limit the present invention.
The embodiment of the present invention adopts a kind of new frame layer quantization parameter method of adjustment, determine on the one hand the adjusting range of frame layer quantization parameter by dynamic, the static contrast information of image, on the other hand by the QP situation of current bit or RC output, for further adjustments, this can effectively control actual bit rate and draw close to target bit rate; In addition, the embodiment of the present invention has also proposed a kind of new macroblock layer from quantizing parameter regulation means, utilize Static and dynamic contrast information and the frame layer quantization parameter of current macro, present frame, self adaptation is adjusted the quantization parameter of current macro, thereby in promoting the distortion performance of encoder, keep the stability of code check fluctuating nature.
Fig. 1 is a kind of frame layer of embodiment of the present invention quantization parameter method of adjustment flow chart, and described method comprises:
S101: extract present frame Static and dynamic contrast information
Contrast_static t=mean(Contrast_static n,t|Mb n,t∈region)
Contrast_moving t=mean(Contrast_movingj n,t)|Mb n,t∈region,j=1or2)
The wherein time sequence number of t presentation video in video sequence, n is the label of macro block in image, Contrast_static tit is the static contrast information of t two field picture; Contrast_static n, tit is the static contrast information of n macro block of t frame; Mb n, tbe n macro block of t frame; Contrast_moving tbe the dynamic contrast information of t two field picture; Contrast_movingj n, trepresent the dynamic contrast information of n the macro block of t frame of asking for distinct methods, when j=1, n macro block Mb of t frame while representing not use motion vector mv information n, tdynamic contrast, when j=2, n macro block Mb of t frame while representing to use motion vector mv information n, tdynamic contrast; Region is the image-region of adding up, and mean is for getting mean value function.
(1) the static contrast information extracting method of present frame is as follows:
If current macro is Mb n, t, p i, j, tfor Mb n, tin pixel, the time sequence number of t presentation video in video sequence, n is the label of macro block in image, i, j represents respectively the row, column label in the young image of current pixel, Mb n, tbe that n macro block of t frame is also current macro, p i, j, tfor Mb n, tin the capable j of t two field picture i row pixel be also current pixel.
P i, j, t8 adjacent pixels be listed as follows:
p i-1,j-1,t p i-1,j,t p i-1,j+1,t
p i,j-1,t p i,j,t p i,j+1,t
p i+1,j-1,t p i+1,j,t p i+1,j+1,t
Note sum i, j, t=p i-1, j-1, t+p i-1, j, t+ p i-1, j+1, t+ p i, j-1, t+ p i, j+1, t+ p i+1, j-1, t+ p i+1, j, t+ p i+1, j+1, t, p i, jthree in abutting connection with being:
P i, j, tthree in abutting connection with the first pattern: Contrast_3 i, j, t, 1=p i-1, j-1, t+ p i-1, j, t+ p i-1, j+1, t
P i, j, tthree in abutting connection with the second pattern: Contrast_3 i, j, t, 2=p i-1, j, t+ p i-1, j+1, t+ p i, j+1, t
P i, j, tthree in abutting connection with the third pattern: Contrast_3 i, j, t, 3=p i-1, j+1, t+ p i, j+1, t+ p i+1, j+1, t
P i, j, tthree in abutting connection with the 4th kind of pattern: Contrast_3 i, j, t, 4=p i, j+1, t+ p i+1, j+1, t+ p i+1, j, t
P i, j, tthree in abutting connection with the 5th kind of pattern: Contrast_3 i, j, t, 5=p i+1, j+1, t+ p i+1, j, t+ p i+1, j-1, t
P i, j, tthree in abutting connection with the 6th kind of pattern: Contrast_3 i, j, t, 6=p i+1, j, t+ p i+1, j-1, t+ p i, j-1, t
P i, j, tthree in abutting connection with the 7th kind of pattern: Contrast_3 i, j, t, 7=p i+1, j-1, t+ p i, j-1, t+ p i-1, j-1, t
P i, j, tthree in abutting connection with the 8th kind of pattern: Contrast_3 i, j, t, 8=p i, j-1, t+ p i-1, j-1, t+ p i-1, j, t
Five in abutting connection with being:
P i, j, tfive in abutting connection with k kind pattern: Contrast_5 i, j, t, k=sum i, j, t-Contrast_3 i, j, t, kcurrent pixel p i, j, tcontrast be:
Contrast i , j , t = max 1 ≤ k ≤ 8 ( abs ( 5 * Contrast _ 3 i , j , t , k - 3 * Contrast _ 5 i , j , t , k ) ) / 15
Contrast i, j, tbe the capable j of t two field picture i row pixel be also current pixel p i, j, tcontrast, Contrast_3 i, j, t, kfor p i, j, tthree in abutting connection with k kind patterns, Contrast_5 i, j, t, kfor p i, j, tfive in abutting connection with k kind patterns.
Current macro Mb n, tthe static contrast of (n macro block of t frame) is:
Contrast_static n,t=sum(δ(Contrast i,j,t)|p i,j,t∈M n,t),
Wherein and Thres f (x)for corresponding decision threshold.
Contrast_static n, tbe the static contrast information of n macro block of t frame, Contrast i, j, tbe the capable j of t two field picture i row pixel be also the contrast of current pixel, p i, j, tfor Mb n, tin the capable j of t two field picture i row pixel be also current pixel.
The static contrast of present frame is:
Contrast_static t=mean(Contrast_static n,t|Mb n,t∈region)
(2) present frame dynamic contrast information extracting method is as follows:
The embodiment of the present invention provides two kinds of methods of obtaining video image macro-block multidate information contrast.
Method 1: do not use motion vector mv information, current macro Mb n, tdynamic contrast be:
Contrast_moving1 n,t=sum(δ(Contrast i,j,t)|p i,j,t∈Mb n,t&&p i,j,t=p i,j,t-p i,j,t-1)
The method is without carrying out motion search, and amount of calculation is little.
Method 2: use motion vector mv information, current macro Mb n, tdynamic contrast be:
Contrast_moving2 n,t=sum(δ(mvx n,t 2+mvy n,t 2))|mv n,t∈Mb n,t)
Mvx n, trepresent the horizontal component of the motion vector of n macro block of t frame, mvy n, trepresent the vertical component of the motion vector of n macro block of t frame.
The motion vector that the method is obtained based on motion search, precision is high.
Based on the above two kinds methods of obtaining video image macro-block multidate information contrast, show that present frame dynamic contrast is:
Contrast_moving t=mean(Contrast_movingj n,t)|Mb n,t∈region,j=1or2)
Contrast_movingj n, trepresent the dynamic contrast information of n the macro block of t frame of asking for distinct methods; When j=1, n macro block Mb of t frame while representing not use motion vector mv information n, tdynamic contrast, when j=2, n macro block Mb of t frame while representing to use motion vector mv information n, tdynamic contrast.
S102: by the dynamic static contrast information of current frame image and the QP of RC output t, determine the final adjustment function of frame layer quantization parameter QP wherein RC is Rate Control, and QP is quantization parameter, QP tfor the quantization parameter of original t frame, it is the adjustment function of t frame quantization parameter.
Be illustrated in figure 2 described frame layer quantization parameter and finally adjust the acquisition methods flow chart of function, the acquisition methods that described frame layer quantization parameter finally adjusted function comprises the following steps:
S1021: first by the coding sequence number id of frame per second fps and image t, determine image sets period of waves.
period=f 0(id t,fps))
Wherein, period is image sets period of waves, id tbe the coding sequence number of t frame, f 0(id t, fps)) be the coded sequence id by frame per second fps and image tdefinite image sets function period of waves.
S1022: determine that by described image sets frame layer quantization parameter initially adjust dQP period of waves 1, tfunction dQP 1, t=f 1(id t, period),
Wherein f 1(x, y) meets, f 1(x+ky, y)=f 1(x, y),
DQP 1, tbe that t frame quantization parameter is initially adjusted function, k is phase constant, to ask local derviation.
S1023: dynamic, static contrast information and described initial adjustment function in conjunction with current frame image obtain frame layer quantization parameter correction dQP 2, tfunction
dQP 2,t=f 2(Contrast_static t,Contrast_moving t,dQP 1,t)
DQP 2, trepresent t frame quantization parameter correction function.
S1024: according to the QP situation of current bit or RC output, adjust frame layer quantization parameter correction function dQP 2, t, obtain frame layer QP and finally adjust function
dQP t new = f 3 ( dQP 2 , t , QP t , bit t )
be that t frame quantization parameter is finally adjusted function, Bitt is current bit value
S103: obtain the quantization parameter that frame layer is new
Be a kind of frame layer of embodiment of the present invention quantization parameter adjustment System structural representation as shown in Figure 3, described system comprises:
Frame Static and dynamic contrast information extraction module, for extracting present frame Static and dynamic contrast information;
The final adjustment function acquisition module of frame layer quantization parameter, for according to the quantization parameter of the dynamic static contrast information of current frame image and Rate Control output, determines the final adjustment function of frame layer quantization parameter;
The new quantization parameter acquisition module of frame layer, for according to the quantization parameter of present frame Rate Control output and described final adjustment function and draw the quantization parameter that frame layer is new.
Be the detailed structure schematic diagram that frame layer quantization parameter in Fig. 3 system finally adjusted function acquisition module as shown in Figure 4, described frame layer quantization parameter finally adjusted function acquisition module and comprised:
Image sets determination module period of waves, for according to the coding sequence number of frame per second and image, determines image sets period of waves;
Frame layer quantization parameter initially adjusted function determination module, for determining that according to image sets frame layer quantization parameter initially adjust function period of waves;
Frame layer quantization parameter correction function determination module, for obtaining frame layer quantization parameter correction function according to dynamic, the static contrast information of current frame image and described initial adjustment function;
Frame layer quantization parameter finally adjusted function determination module, for according to the quantization parameter situation of current bit or Rate Control output, adjusts described frame layer quantization parameter correction function, determines that frame layer quantization parameter finally adjust function.
Use the frame layer quantization parameter method of adjustment of the embodiment of the present invention, not only can promote the distortion performance of encoder, and can make the code check fluctuation of encoder more mild, promote the network transmission performance of code stream, can make in addition the more approaching coding target bit rate of the actual output bit rate of encoder.
Fig. 5 is a kind of macroblock layer quantization parameter of embodiment of the present invention method of adjustment flow chart.
Definite various modes that exists of current macroblock layer quantization parameter is as determined method according to the energy of AC coefficient, and macroblock layer Rate Control is determined method, adjusts method based on visual characteristic.Wherein the method based on AC coefficient energy is calculated simply, and detail of the high frequency is had to good preservation characteristics.The embodiment of the present invention, in conjunction with the Static and dynamic contrast information of macro block and the Static and dynamic contrast information of frame, frame layer quantization parameter, is determined the quantization parameter of current macro.Wherein, Static and dynamic contrast information is respectively used to protect the high-frequency information of motion macro block and static macro block.
Described macroblock layer quantization parameter method of adjustment comprises the following steps:
S501: the dynamic and static contrast information that extracts current macro and present frame
The static contrast C ontrast_static of current macro n, t, current macro dynamic contrast Contrast_movingj n, tthe static contrast C ontrast_static of (j=1 or 2) and present frame t, present frame dynamic contrast Contrast_moving tacquisition methods above in detail record, do not repeat them here.
S502: by frame layer quantization parameter QP iand the dynamic and static contrast information of current macro, present frame, determine the quantization parameter QP of current macro n, t
QP n,t=QP t+f mb_static*weight mb_static+f mb_moving*weight mb_moving
Wherein QP tfor the quantization parameter of original t frame, weight mb_static, weight mb_moving, be respectively the weight of static contrast and dynamic contrast information; f mb_static(Contrast_static n, t, Contrast_static t), for the quantization parameter based on static contrast is adjusted function,
F mb_moving(Contrast_movingj n, t, Contrast_moving t), for the quantization parameter based on dynamic contrast information is adjusted function,
Be a kind of macroblock layer quantization parameter of embodiment of the present invention adjustment System structural representation as shown in Figure 6, described system comprises:
Dynamic and the static contrast information extraction module of macro block and frame, for extracting the dynamic and static contrast information of current macro and present frame;
The quantization parameter acquisition module of macro block, for according to the dynamic and static contrast information of frame layer quantization parameter and current macro, present frame, determines the quantization parameter of current macro.
Use the macroblock layer quantization parameter method of adjustment of the embodiment of the present invention can, in promoting the distortion performance of encoder, keep the stability of code check fluctuating nature.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (9)

1. a frame layer quantization parameter method of adjustment, is characterized in that, said method comprising the steps of:
Extract present frame Static and dynamic contrast information;
According to the quantization parameter of the dynamic static contrast information of current frame image and Rate Control output, determine the final adjustment function of frame layer quantization parameter;
According to the quantization parameter of present frame Rate Control output and described final adjustment function and draw the quantization parameter that frame layer is new;
Wherein, the static contrast information of described present frame is:
Contrast_static t=mean(Contrast_static n,t|Mb n,t∈region)
The wherein time sequence number of t presentation video in video sequence, n is the label of macro block in image, Contrast_static tit is the static contrast information of t two field picture; Contrast_static n,tbe the static contrast information of n macro block of t frame, Mb n,tbe n macro block of t frame, region is the image-region of adding up, and mean is for getting mean value function.
2. frame layer quantization parameter method of adjustment as claimed in claim 1, is characterized in that,
Described Contrast_static n,t=sum (d (Contrast i, j, t) | p i, j, t∈ M n,t),
Wherein and Thres f (x)for corresponding decision threshold,
Contrast_static n,tbe the static contrast information of n macro block of t frame, Contrast i, j, tbe the capable j of t two field picture i row pixel be also the contrast of current pixel, p i, j, tfor Mb n,tin the capable j of t two field picture i row pixel be also current pixel;
Wherein
Contrast i, j, tbe the capable j of t two field picture i row pixel be also current pixel p i, j, tcontrast, Contrast_3 i, j, t, kfor p i, j, tthree in abutting connection with k kind patterns, Contrast_5 i, j, t, kfor p i, j, tfive in abutting connection with k kind patterns.
3. frame layer quantization parameter method of adjustment as claimed in claim 2, is characterized in that described Contrast_3 i, j, t, kbe specially:
P i, j, tthree in abutting connection with the first pattern: Contrast_3 i, j, t, 1=p i-1, j-1, t+ p i-1, j, t+ p i-1, j+1, t
P i, j, tthree in abutting connection with the second pattern: Contrast_3 i, j, t, 2=p i-1, j, t+ p i-1, j+1, t+ p i, j+1, t
P i, j, tthree in abutting connection with the third pattern: Contrast_3 i, j, t, 3=p i-1, j+1, t+ p i, j+1, t+ p i+1, j+1, t
P i, j, tthree in abutting connection with the 4th kind of pattern: Contrast_3 i, j, t, 4=p i, j+1, t+ p i+1, j+1, t+ p i+1, j, t
P i, j, tthree in abutting connection with the 5th kind of pattern: Contrast_3 i, j, t, 5=p i+1, j+1, t+ p i+1, j, t+ p i+1, j-1, t
P i, j, tthree in abutting connection with the 6th kind of pattern: Contrast_3 i, j, t, 6=p i+1, j, t+ p i+1, j-1, t+ p i, j-1, t
P i, j, tthree in abutting connection with the 7th kind of pattern: Contrast_3 i, j, t, 7=p i+1, j-1, t+ p i, j-1, t+ p i-1, j-1, t
P i, j, tthree in abutting connection with the 8th kind of pattern: Contrast_3 i, j, t, 8=p i, j-1, t+ p i-1, j-1, t+ p i-1, j, t
Described Contrast_5 i, j, t, kbe specially:
P i, j, tfive in abutting connection with k kind pattern: Contrast_5 i, j, t, k=sum i, j, t-Contrast_3 i, j, t, k
Wherein, sum i, j, t=p i-1, j-1, t+ p i-1, j, t+ p i-1, j+1, t+ p i, j-1, t+ p i, j+1, t+ p i+1, j-1, t+ p i+1, j, t+ p i+1, j+1, t, the time sequence number of t presentation video in video sequence, i, j represent respectively the row, column label in the young image of current pixel, p i, j, tfor the capable j of t two field picture i in current macro row pixel be also current pixel.
4. frame layer quantization parameter method of adjustment as claimed in claim 1, is characterized in that,
Described present frame dynamic contrast information is:
Contrast_moving t=mean(Contrast_movingj n,t)|Mb n,t∈region,j=1or2)
Wherein, Contrast_moving tbe the dynamic contrast information of t two field picture; Mb n,tbe n macro block of t frame, region is the image-region of adding up, and mean is for getting mean value function; Contrast_movingj n,trepresent the dynamic contrast information of n the macro block of t frame of asking for distinct methods, when j=1, n macro block Mb of t frame while representing not use motion vector mv information n,tdynamic contrast, when j=2, n macro block Mb of t frame while representing to use motion vector mv information n,tdynamic contrast;
Contrast_moving1 n,t=sum(d(Contrast i,j,t)|p i,j,t∈Mb n,t&&p i,j,t=p i,j,t-p i,j,t-1)
Wherein,
Contrast i, j, tbe the capable j of t two field picture i row pixel be also current pixel p i, j, tcontrast, Contrast_3 i, j, t, kfor p i, j, tthree in abutting connection with k kind patterns, Contrast_5 i, j, t, kp i, j, tfive in abutting connection with k kind patterns;
Contrast_moving2 n,t=sum(d(mvx n,t 2+mvy n,t 2))|mv n,t∈Mb n,t)
Wherein mvx n,trepresent the horizontal component of the motion vector of n macro block of t frame, mvy n,trepresent the vertical component of the motion vector of n macro block of t frame.
5. frame layer quantization parameter method of adjustment as claimed in claim 1, is characterized in that, the final adjustment function of described definite frame layer quantization parameter specifically comprises the following steps:
According to the coding sequence number of frame per second and image, determine image sets period of waves;
Determine that according to image sets frame layer quantization parameter initially adjust function period of waves;
Obtain frame layer quantization parameter correction function according to dynamic, the static contrast information of current frame image and described initial adjustment function;
According to the quantization parameter situation of current bit or Rate Control output, adjust described frame layer quantization parameter correction function, obtain frame layer quantization parameter and finally adjust function.
6. frame layer quantization parameter method of adjustment as claimed in claim 5, is characterized in that,
Described image sets is period of waves:
period=f 0(id t,fps))
Wherein, period is image sets period of waves, id tbe the coding sequence number of t frame, f 0(id t, fps)) be the coded sequence id by frame per second fps and image tdefinite image sets function period of waves;
Described frame layer quantization parameter initially adjusted function and is:
dQP 1,t=f 1(id t,period),
Wherein f 1(x, y) meets, f 1(x+ky, y)=f 1(x, y),
DQP 1, tbe that t frame quantization parameter is initially adjusted function, k is phase constant, to ask local derviation; Described frame layer quantization parameter correction function is:
dQP 2,t=f 2(Contrast_static t,Contrast_moving t,dQP 1,t)
DQP 2, trepresent t frame quantization parameter correction function;
Described frame layer quantization parameter finally adjusted function and is:
be that t frame quantization parameter is finally adjusted function, Bitt is current bit value.
7. a frame layer quantization parameter adjustment System, is characterized in that, described system comprises:
Static and dynamic contrast information extraction module, for extracting present frame Static and dynamic contrast information;
The final adjustment function acquisition module of frame layer quantization parameter, for according to the quantization parameter of the dynamic static contrast information of current frame image and Rate Control output, determines the final adjustment function of frame layer quantization parameter;
The new quantization parameter acquisition module of frame layer, for according to the quantization parameter of present frame Rate Control output and described final adjustment function and draw the quantization parameter that frame layer is new
Wherein, the static contrast information of described present frame is:
Contrast_static t=mean(Contrast_static n,t|Mb n,t∈region)
The wherein time sequence number of t presentation video in video sequence, n is the label of macro block in image, Contrast_static tit is the static contrast information of t two field picture; Contrast_static n,tbe the static contrast information of n macro block of t frame, Mb n,tbe n macro block of t frame, region is the image-region of adding up, and mean is for getting mean value function.
8. frame layer quantization parameter adjustment System as claimed in claim 7, is characterized in that, the final adjustment function acquisition module of described frame layer quantization parameter comprises:
Image sets determination module period of waves, for according to the coding sequence number of frame per second and image, determines image sets period of waves;
Frame layer quantization parameter initially adjusted function determination module, for determining that according to image sets frame layer quantization parameter initially adjust function period of waves;
Frame layer quantization parameter correction function determination module, for obtaining frame layer quantization parameter correction function according to dynamic, the static contrast information of current frame image and described initial adjustment function;
Frame layer quantization parameter finally adjusted function determination module, for according to the quantization parameter situation of current bit or Rate Control output, adjusts described frame layer quantization parameter correction function, determines that frame layer quantization parameter finally adjust function.
9. a macroblock layer quantization parameter method of adjustment, is characterized in that, described method comprises:
Extract the dynamic and static contrast information of current macro and present frame;
By the dynamic and static contrast information of frame layer quantization parameter and current macro, present frame, determine the quantization parameter of current macro;
Wherein, the quantization parameter of described current macro is:
QP n,t=QP t+f mb_static*weight mb_static+f mb_moving*weight mb_moving
Wherein QP n,tfor the quantization parameter of current macro, QP tfor the quantization parameter of original t frame, weight mb_static, weight mb_moving, be respectively the weight of static contrast and dynamic contrast information; f mb_static(Contrast_static n,t, Contrast_static t), for the quantization parameter based on static contrast is adjusted function, f mb_moving(Contrast_movingj n,t, Contrast_moving t), for the quantization parameter based on dynamic contrast information is adjusted function, the wherein time sequence number of t presentation video in video sequence, n is the label of macro block in image, Contrast_static tbe the static contrast information of t two field picture, Contrast_static n,tbe the static contrast information of n macro block of t frame, Contrast_moving tbe the dynamic contrast information of t two field picture, Contrast_movingj n,trepresent the dynamic contrast information of n the macro block of t frame of asking for distinct methods, when j=1, n macro block Mb of t frame while representing not use motion vector mv information n,tdynamic contrast, when j=2, n macro block Mb of t frame while representing to use motion vector mv information n,tdynamic contrast.
CN201010294847.7A 2010-09-27 2010-09-27 Frame-layer and macroblock-layer quantization parameter adjusting method and system Expired - Fee Related CN102420980B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010294847.7A CN102420980B (en) 2010-09-27 2010-09-27 Frame-layer and macroblock-layer quantization parameter adjusting method and system
PCT/CN2011/072822 WO2012041055A1 (en) 2010-09-27 2011-04-14 Method and system for adjusting quantization parameters of frame level and macroblock level

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010294847.7A CN102420980B (en) 2010-09-27 2010-09-27 Frame-layer and macroblock-layer quantization parameter adjusting method and system

Publications (2)

Publication Number Publication Date
CN102420980A CN102420980A (en) 2012-04-18
CN102420980B true CN102420980B (en) 2014-08-27

Family

ID=45891878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010294847.7A Expired - Fee Related CN102420980B (en) 2010-09-27 2010-09-27 Frame-layer and macroblock-layer quantization parameter adjusting method and system

Country Status (2)

Country Link
CN (1) CN102420980B (en)
WO (1) WO2012041055A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559671B (en) * 2015-09-30 2019-08-23 展讯通信(上海)有限公司 A kind of display method for compressing image and system
CN110365983B (en) * 2019-09-02 2019-12-13 珠海亿智电子科技有限公司 Macroblock-level code rate control method and device based on human eye vision system
CN111586411B (en) * 2020-05-06 2022-07-12 深圳市梦网视讯有限公司 Low-contrast video coding method, system and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5844607A (en) * 1996-04-03 1998-12-01 International Business Machines Corporation Method and apparatus for scene change detection in digital video compression
CN1550108A (en) * 2001-03-02 2004-11-24 �ű�ʵ������ɹɷ����޹�˾ High precision encoding and decoding of video images
CN1696975A (en) * 2004-05-14 2005-11-16 蒲恬 Method for enhancing digital image

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101466035B (en) * 2007-12-21 2011-08-17 深圳市融创天下科技发展有限公司 Method for distributing video image set bit based on H.264
CN101582991B (en) * 2008-05-13 2011-02-09 华为终端有限公司 Method and device for processing image
CN101389012B (en) * 2008-09-28 2011-05-18 湖北科创高新网络视频股份有限公司 Method and device for rate distortion rate control

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5844607A (en) * 1996-04-03 1998-12-01 International Business Machines Corporation Method and apparatus for scene change detection in digital video compression
CN1550108A (en) * 2001-03-02 2004-11-24 �ű�ʵ������ɹɷ����޹�˾ High precision encoding and decoding of video images
CN1696975A (en) * 2004-05-14 2005-11-16 蒲恬 Method for enhancing digital image

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
唐田野,刘钊.《一种获得均匀图像质量的视频码率控制方法》.《计算机应用》.2005,第25卷(第11期),2592-2594. *

Also Published As

Publication number Publication date
CN102420980A (en) 2012-04-18
WO2012041055A1 (en) 2012-04-05

Similar Documents

Publication Publication Date Title
CN101390401B (en) Enhanced image/video quality through artifact evaluation
US9781449B2 (en) Rate distortion optimization in image and video encoding
CN105049850A (en) HEVC (High Efficiency Video Coding) code rate control method based on region-of-interest
CN102595130B (en) Image coding device and image decoding device
CN102026000A (en) Distributed video coding system with combined pixel domain-transform domain
CN1285115A (en) Apparatus and method for object based rate control in coding system
US9014268B2 (en) Video encoder and its decoder
CN107071422B (en) Low complex degree HEVC rate adaption transformation coding method based on image correlation model
CN100574447C (en) Fast intraframe predicting mode selecting method based on the AVS video coding
CN102932641A (en) Constant quality code rate controlling method
CN103327325A (en) Intra-frame prediction mode rapid self-adaptation selection method based on HEVC standard
CN101835042A (en) Wyner-Ziv video coding system controlled on the basis of non feedback speed rate and method
CN100591136C (en) Video frequency intraframe coding method based on null field decomposition
CN100581262C (en) Code rate controlling method for video coding based on Rho domain
CN103581670A (en) H.264 self-adaptation intra-frame mode selection code rate estimated rate-distortion optimization method and device thereof
CN104702959B (en) A kind of intra-frame prediction method and system of Video coding
CN102970536A (en) Improved video coding method with predicted residual regulation
CN102420980B (en) Frame-layer and macroblock-layer quantization parameter adjusting method and system
CN103945222A (en) Code rate control model updating method based on HEVC standards
CN104185024A (en) HEVC quantization parameter optimizing method based on total code rate and information entropy model
CN102857760B (en) Feedback-free code rate optimization distributed video encoding and decoding method and system
CN104853215A (en) Video steganography method based on motion vector local optimality preservation
CN102572428A (en) Side information estimating method oriented to distributed coding and decoding of multimedia sensor network
Yang et al. Adaptive HEVC video steganography based on distortion compensation optimization
CN102025994A (en) Coding method, coding device and coding and decoding system based on adaptive decoding complexity as well as equipment comprising coding and decoding system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: SHENZHEN YUNZHOU MULTIMEDIA TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: SHENZHEN TEMOBI SCIENCE + TECHNOLOGY CO., LTD.

Effective date: 20140813

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20140813

Address after: Unit B4 9 building 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Patentee after: Shenzhen Yunzhou Multimedia Technology Co., Ltd.

Address before: 19, building 18, Changhong technology building, 518057 South twelve Road, South tech Zone, Nanshan District hi tech Zone, Guangdong, Shenzhen

Patentee before: Shenzhen Temobi Science & Tech Development Co.,Ltd.

C56 Change in the name or address of the patentee
CP02 Change in the address of a patent holder

Address after: The central Shenzhen city of Guangdong Province, 518057 Keyuan Road, Nanshan District science and Technology Park No. 15 Science Park Sinovac A Building 1 unit 403, No. 405 unit

Patentee after: Shenzhen Yunzhou Multimedia Technology Co., Ltd.

Address before: Unit B4 9 building 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Patentee before: Shenzhen Yunzhou Multimedia Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140827

Termination date: 20190927

CF01 Termination of patent right due to non-payment of annual fee