CN103327324A - Method and system for coding and decoding light sudden change video - Google Patents
Method and system for coding and decoding light sudden change video Download PDFInfo
- Publication number
- CN103327324A CN103327324A CN2013101736291A CN201310173629A CN103327324A CN 103327324 A CN103327324 A CN 103327324A CN 2013101736291 A CN2013101736291 A CN 2013101736291A CN 201310173629 A CN201310173629 A CN 201310173629A CN 103327324 A CN103327324 A CN 103327324A
- Authority
- CN
- China
- Prior art keywords
- frame
- current
- module
- same way
- ref
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses a method and system for coding and decoding a light sudden change video. According to the method, aiming at a film source with illumination variation happening, through homodromous correction carried out on brightness information and chrominance information of a reference frame, the correlation between the reference frame and a coding frame is enhanced, and finally the effects that the number of intra-frame prediction modes of inter-frame prediction frames is reduced, code rate consumption is reduced, and performance of eliminating interframe information redundancy by a coder is improved are achieved.
Description
Technical field
The present invention relates to the coding and decoding video field, relate in particular to a kind of light sudden change video coding-decoding method and system.
Background technology
When video image generation illumination variation, can produce the image (for example image under the photoflash lamp effect) of light sudden change.At this moment, on the one hand, relatively large variation can occur in the monochrome information of consecutive frame image, and but then, because the body matter correlation of image still exists, the inter-frame information redundancy of video image is still very large.At this moment, if adopt the inter prediction technology of conventional encoder, but can't judge both correlations, thereby in MB of prediction frame, produce the problem that intra prediction mode is uprushed, code check rises rapidly, cause the decline of conventional encoder on the inter prediction technical performance.
Summary of the invention
The purpose of the embodiment of the invention is to propose a kind of light sudden change method for video coding, be intended to solve prior art when image produces the light sudden change, the problem that the inter prediction technical performance that the intra prediction mode that conventional coding produces is uprushed, code check rises rapidly to be caused descends.
The embodiment of the invention is achieved in that a kind of light sudden change method for video coding, said method comprising the steps of:
S101 judges current encoded frame frame
tWhether be I frame or scene switch frame, then enter if not step S102.
S102 makes variable m=1, frame
Ref=ref
m
S103 judges current encoded frame frame
tWith respect to current reference frame frame
RefWhether monochrome information sudden change occurs, if, note then
m=1, then enter step S104;
S104 is to current reference frame frame
RefCarry out the in the same way correction of monochrome information;
S105 utilizes corrected in the same way frame
RefTo frame
tThe inter prediction that carries out routine obtains the conventional inter prediction value of current encoded frame, then makes m=m+1;
S106 judges whether to satisfy
M〉number
List0+ number
List1And frame
tBe B
Frame) or (m〉number
List0And frame
tBe P
Frame), if, then enter step S107, if not, then return step S103;
S107 utilizes the conventional inter prediction value of described current encoded frame and the infra-prediction techniques of routine, carries out rate-distortion optimization (RDO) and obtains optimum prediction mode;
S108 judges whether to satisfy
Described optimum prediction mode is reference frame symbolic variable note corresponding to inter-frame forecast mode and optimum prediction mode
mEqual 1, if then make symbolic variable note
t=1, otherwise make note
t=0;
S109 carries out variation, quantification and the entropy of conventional coding handling process and encodes, and finally finishes frame
tCoding;
S110 judges whether next frame to be encoded exists, if then next one frame to be encoded is made as current encoded frame frame
t, reenter step S101, if not, then finish;
Wherein, m is ref
mLabel; Frame
RefRepresent current reference frame; Ref
mM reference frame of expression reference listing;
Note wherein
mBe current reference frame frame
RefSymbolic variable;
Wherein, number
List0Reference frame sum in the expression forward direction reference listing; Number
List1Reference frame sum in the backward reference listing of expression expression;
Note wherein
tBe current encoded frame frame
tSymbolic variable.
The second purpose of the embodiment of the invention is to propose a kind of light sudden change video coding system, described system comprises: the first judge module, the first coding processing module, the second judge module, the first monochrome information be correction module, the first conventional prediction module, the second conventional prediction module, the 3rd judge module, rate-distortion optimization module, the 4th judge module, the second coding processing module, the 3rd coding processing module in the same way
The first judge module is used for judging current encoded frame frame
tWhether be I frame or scene switch frame, if then enter the first coding processing module, then make if not variable m=1, frame
Ref=ref
m, enter the second judge module;
The first coding processing module is used for current encoded frame frame
tEncode, then enter the 3rd coding processing module;
The second judge module is used for judging current encoded frame frame
tWith respect to current reference frame frame
RefWhether monochrome information sudden change occurs, if, note then
m=1, then enter in the same way correction module of the first monochrome information; If not, note then
m=0, the first conventional prediction module then;
The first monochrome information is correction module in the same way, is used for current reference frame frame
RefCarry out the in the same way correction of monochrome information;
The first conventional prediction module is used for current encoded frame frame
tThe inter prediction that carries out routine obtains the conventional inter prediction value of current encoded frame, then enters the 3rd judge module;
The second conventional prediction module is used for utilizing corrected in the same way frame
RefTo frame
tThe inter prediction that carries out routine obtains the conventional inter prediction value of current encoded frame, then makes m=m+1, enters the 3rd judge module;
The 3rd judge module is used for judging whether to satisfy
M〉number
List0+ number
List1And frame
tBe B
Frame) or (m〉number
List0And frame
tBe P
Frame), if then admission rate aberration optimizing module if not, is then returned the second judge module;
The rate-distortion optimization module is used for utilizing the conventional inter prediction value of described current encoded frame and the infra-prediction techniques of routine, carries out rate-distortion optimization (RDO) and obtains optimum prediction mode;
The 4th judge module, being used for judging whether to satisfy described optimum prediction mode is reference frame symbolic variable note corresponding to inter-frame forecast mode and optimum prediction mode
mEqual 1, if then make symbolic variable note
t=1, otherwise make note
t=0, then enter the second coding processing module;
The second coding processing module for the variation of carrying out conventional coding handling process, quantification and entropy coding, is finally finished frame
tCoding;
The 3rd coding processing module is used for judging whether next frame to be encoded exists, if then next one frame to be encoded is made as current encoded frame frame
t, reenter the first judge module, if not, then finish;
Wherein, m is ref
mLabel; Frame
RefRepresent current reference frame; Ref
mM reference frame of expression reference listing; Note
mBe current reference frame frame
RefSymbolic variable; Number
List0Reference frame sum in the expression forward direction reference listing; Number
List1Reference frame sum in the backward reference listing of expression expression; Note
tBe current encoded frame frame
tSymbolic variable.
The 3rd purpose of the embodiment of the invention is to propose a kind of light sudden change video encoding/decoding method,, said method comprising the steps of:
S201: judge whether to satisfy " symbolic variable note
t=0 or current decoded frame
Be the I frame ", then enter if not S202;
S202: to the reference frame ref of current decoded frame
tCarry out the in the same way correction of monochrome information;
S204: seek next frame to be decoded by decoding order, if next frame to be decoded does not exist, then finish; Otherwise, next one frame to be decoded is made as current decoded frame
Reenter S201.
The 4th purpose of the embodiment of the invention is to propose a kind of light sudden change video decoding system, described system comprises: the 5th judge module, the first regular decode module, the second monochrome information be correction module, the second regular decode module, the 3rd decoding process module in the same way
The 5th judge module is used for judging whether to satisfy " symbolic variable note
t=0 or current decoded frame
Be the I frame ", if then enter the first regular decode module, then enter if not in the same way correction module of the second monochrome information;
The first regular decode module is used for ref
tCarry out the in the same way correction of monochrome information, ref
tThe reference frame that represents current decoded frame;
The second monochrome information is correction module in the same way, is used for ref
tCarry out the in the same way correction of monochrome information;
The second regular decode module is used for utilizing corrected in the same way ref
t, right
Carry out regular decode;
The 3rd decoding process module is used for seeking next frame to be decoded by decoding order, if next frame to be decoded does not exist, then finishes; If exist and then next one frame to be decoded be made as current decoded frame
Reenter the 5th judge module.
Beneficial effect of the present invention
The embodiment of the invention proposes a kind of light sudden change video coding-decoding method and system for the film source that illumination variation occurs.Embodiment of the invention method is proofreaied and correct processing in the same way by monochrome information, chrominance information to reference frame, thereby strengthen the correlation between reference frame and the coded frame, finally reach the intra prediction mode quantity, the consumption of reduction code check that reduce MB of prediction frame, promote the performance of encoder on the inter-frame information redundancy is eliminated.
Description of drawings
Fig. 1 is a kind of light sudden change of preferred embodiment of the present invention method for video coding flow chart;
Fig. 2 is a kind of light sudden change of preferred embodiment of the present invention video coding system structure chart;
Fig. 3 is the second judge module structure chart among Fig. 2;
Fig. 4 is the first monochrome information correction module structure chart in the same way among Fig. 2;
Fig. 5 is the first monochrome information syndrome modular structure figure in the same way among Fig. 4;
Fig. 6 is a kind of light sudden change of preferred embodiment of the present invention video encoding/decoding method flow chart;
Fig. 7 is a kind of light sudden change of preferred embodiment of the present invention video decoding system structure chart;
Fig. 8 is the second monochrome information correction module structure chart in the same way in Fig. 7 structure chart;
Fig. 9 is the second monochrome information syndrome modular structure figure in the same way in Fig. 8 structure chart.
Embodiment
In order to make purpose 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 with the embodiment of the invention.Should be appreciated that the specific embodiment that this place is described, only be used for explaining the present invention, not in order to limit the present invention.
The embodiment of the invention proposes a kind of light sudden change video coding-decoding method and system for the film source that illumination variation occurs.Embodiment of the invention method is proofreaied and correct processing in the same way by monochrome information, chrominance information to reference frame, thereby strengthen the correlation between reference frame and the coded frame, finally reach the intra prediction mode quantity, the consumption of reduction code check that reduce MB of prediction frame, promote the performance of encoder on the inter-frame information redundancy is eliminated.
Embodiment one
Fig. 1 is a kind of light sudden change of preferred embodiment of the present invention method for video coding flow chart, said method comprising the steps of:
S101 judges current encoded frame frame
tWhether be I frame or scene switch frame, if, then to current encoded frame frame
tEncode, then enter step S111; Otherwise enter step S102.
The decision method of described scene switch frame, available now open or known any applicable method.
S102 makes variable m=1, frame
Ref=ref
m
Wherein, m is ref
mLabel; Frame
RefRepresent current reference frame; Ref
mM reference frame of expression reference listing;
S103 judges current encoded frame frame
tWith respect to current reference frame frame
RefWhether monochrome information sudden change occurs, if, note then
m=1, then enter step S104; If not, note then
m=0, then to current encoded frame frame
tThe inter prediction that carries out routine obtains the conventional inter prediction value of current encoded frame, then enters step S106.
Note wherein
mBe current reference frame frame
RefSymbolic variable.
Among the described step S103, " judge current encoded frame frame
tWith respect to current reference frame frame
RefWhether monochrome information sudden change occurs " method be specially:
For convenient expression, suppose that coded frame and reference frame are the n bitmaps, the brightness value of its all pixels consists of the monochrome information of respective frame, and the U chromatic value of all pixels consists of the U chrominance information of respective frame, and the V chromatic value of all pixels consists of the V chrominance information of respective frame; Line number, the columns of remembering its monochrome information are respectively: height
y, width
yLine number, the columns of remembering its U chrominance information are respectively: height
u, width
uLine number, the columns of remembering its V chrominance information are respectively: height
v, width
v
Wherein, y represents brightness;
Expression current encoded frame frame
tMonochrome information;
Expression is positioned at the brightness value of the capable j row of current encoded frame i pixel;
Expression
Corresponding value when equaling k and being not equal to k; Sum (variable | condition) represent all variablees that satisfy condition are sued for peace;
Expression
Intermediate value equals the pixel number of k;
For
Probability distribution.
Wherein,
Represent current reference frame frame
RefMonochrome information;
Expression is positioned at the brightness value of the capable j row of current reference frame i pixel;
Expression
Corresponding value when equaling k and being not equal to k;
Expression
Intermediate value equals the pixel number of k;
Expression
Probability distribution.
Step C: carry out the judgement of light sudden change, specific as follows:
If
Then,
Frame
tWith respect to frame
RefThe sudden change of generation light; Otherwise, the light sudden change does not then occur.
Wherein, abs represents to ask absolute value operation; Thres
Down, Thres
UpBe respectively decision threshold lower limit and the upper limit, generally get Thres
Down=0.15, Thres
Up=0.5.
S104 is to current reference frame frame
RefCarry out the in the same way correction of monochrome information;
To current reference frame frame
RefCarrying out the method that monochrome information proofreaies and correct in the same way is:
Steps A 1: at first, the monochrome information of calculating current encoded frame distributes;
Steps A 2: then, the monochrome information of calculating current reference frame distributes;
Steps A 3: the brightness value of current each pixel of reference frame is carried out monochrome information proofread and correct in the same way; Specifically may further comprise the steps:
A31: make x=0.
A32:
Otherwise, x=x+1.
A33: if x<2
n-1, then, reenter steps A 32; Otherwise, finish
Correction.
Above-mentioned variable i, the span of j is: 1≤i≤height
y﹠amp; ﹠amp; 1≤j≤width
y
X represents intermediate variable;
The monochrome information distribution function of expression current encoded frame;
The monochrome information distribution function that represents current reference frame;
The functional value that the monochrome information distribution function of expression current encoded frame is ordered at x;
The functional value that the monochrome information distribution function of expression current encoded frame is ordered at x+1;
Further, for obtaining better encoding efficiency, step S104 is to current reference frame frame
RefCarry out can also may further comprise the steps S104-B after the in the same way correction of monochrome information,
Step S104-B: to current reference frame frame
RefCarry out chrominance information and proofread and correct in the same way, specifically comprise (comprising step S104-B1, step S104-B2):
Step S104-B1: to current reference frame frame
RefCarry out the U chrominance information and proofread and correct in the same way, specifically may further comprise the steps:
Step S104-B11: at first, the U chrominance information of calculating current encoded frame distributes;
Step S104-B12: then, the U chrominance information of calculating current reference frame distributes;
Step S104-B13: the brightness value of current each pixel of reference frame is carried out the U chrominance information proofread and correct in the same way; Specifically may further comprise the steps:
S104-B131: make x=0.
S104-B132:
Otherwise, x=x+1.
Above-mentioned variable i, the span of j is: 1≤i≤height
u﹠amp; ﹠amp; 1≤j≤width
u
For
Probability distribution;
Expression
Probability distribution;
Computational methods and step S103 in the steps A
Computational methods identical, the correlated variables that the correlated variables of all brightness in the steps A among the step S103 is replaced to U colourity gets final product, and does not repeat them here;
Computational methods and step S103 among the step B
Computational methods identical, the correlated variables that the correlated variables of all brightness among the step B among the step S103 is replaced to U colourity gets final product, and does not repeat them here;
X represents intermediate variable;
The U chrominance information distribution function of expression current encoded frame;
The U chrominance information distribution function that represents current reference frame;
The functional value that the U chrominance information distribution function of expression current encoded frame is ordered at x;
The functional value that the U chrominance information distribution function of expression current encoded frame is ordered at x+1.
Step S104-B2: to current reference frame frame
RefCarry out the V chrominance information and proofread and correct in the same way,
Comprise:
Step S104-B21: at first, the V chrominance information of calculating current encoded frame distributes;
Step S104-B22: then, the V chrominance information of calculating current reference frame distributes;
Step S104-B23: the brightness value of current each pixel of reference frame is carried out the V chrominance information proofread and correct in the same way; Specifically may further comprise the steps:
S104-B231: make x=0.
S104-B232:
If
Then,
Finish
Correction;
Otherwise, x=x+1.
Above-mentioned variable i, the span of j is: 1≤i≤height
v﹠amp; ﹠amp; 1≤j≤width
v
For
Probability distribution;
Expression
Probability distribution;
Computational methods and step S103 in the steps A
Computational methods identical, the correlated variables that the correlated variables of all brightness in the steps A among the step S103 is replaced to V colourity gets final product, and does not repeat them here;
Computational methods and step S103 among the step B
Computational methods identical, the correlated variables that the correlated variables of all brightness among the step B among the step S103 is replaced to V colourity gets final product, and does not repeat them here;
X represents intermediate variable;
The V chrominance information distribution function of expression current encoded frame;
The V chrominance information distribution function that represents current reference frame;
The functional value that the V chrominance information distribution function of expression current encoded frame is ordered at x;
The functional value that the V chrominance information distribution function of expression current encoded frame is ordered at x+1.
S105 utilizes corrected in the same way frame
RefTo frame
tThe inter prediction that carries out routine obtains the conventional inter prediction value of current encoded frame, then makes m=m+1;
S106 judges whether to satisfy
M〉number
List0+ number
List1And frame
tBe B
Frame) or (m〉number
List0And frame
tBe P
Frame), if, then enter step S107, if not, then return step S103;
Wherein, number
List0Reference frame sum in the expression forward direction reference listing; Number
List1Reference frame sum in the backward reference listing of expression expression.
S107 utilizes the conventional inter prediction value of described current encoded frame and the infra-prediction techniques of routine, carries out rate-distortion optimization (RDO) and obtains optimum prediction mode;
S108 judges whether to satisfy
Described optimum prediction mode is reference frame symbolic variable note corresponding to inter-frame forecast mode and optimum prediction mode
mEqual 1, if then make symbolic variable note
t=1, otherwise make note
t=0;
Note wherein
tBe current encoded frame frame
tSymbolic variable.
S109 carries out variation, quantification and the entropy of conventional coding handling process and encodes, and finally finishes frame
tCoding.
S110 judges whether next frame to be encoded exists, if then next one frame to be encoded is made as current encoded frame frame
t, reenter step S101, if not, then finish.
Embodiment two
Fig. 2 is a kind of light sudden change of preferred embodiment of the present invention video coding system structure chart, described system comprises: the first judge module, the first coding processing module, the second judge module, the first monochrome information be correction module, the first conventional prediction module, the second conventional prediction module, the 3rd judge module, rate-distortion optimization module, the 4th judge module, the second coding processing module, the 3rd coding processing module in the same way
The first judge module is used for judging current encoded frame frame
tWhether be I frame or scene switch frame, if then enter the first coding processing module, then make if not variable m=1, frame
Ref=ref
m, enter the second judge module; Wherein, m is ref
mLabel; Frame
RefRepresent current reference frame; Ref
mM reference frame of expression reference listing.
The first coding processing module is used for current encoded frame frame
tEncode, then enter the 3rd coding processing module;
The second judge module is used for judging current encoded frame frame
tWith respect to current reference frame frame
RefWhether monochrome information sudden change occurs, if, note then
m=1, then enter in the same way correction module of the first monochrome information; If not, note then
m=0, the first conventional prediction module then;
Note wherein
mBe current reference frame frame
RefSymbolic variable.
The first monochrome information is correction module in the same way, is used for current reference frame frame
RefCarry out the in the same way correction of monochrome information;
The first conventional prediction module is used for current encoded frame frame
tThe inter prediction that carries out routine obtains the conventional inter prediction value of current encoded frame, then enters the 3rd judge module;
The second conventional prediction module is used for utilizing corrected in the same way frame
RefTo frame
tThe inter prediction that carries out routine obtains the conventional inter prediction value of current encoded frame, then makes m=m+1, enters the 3rd judge module;
The 3rd judge module is used for judging whether to satisfy
M〉number
List0+ number
List1And frame
tBe B
Frame) or (m〉number
List0And frame
tBe P
Frame), if then admission rate aberration optimizing module if not, is then returned the second judge module;
Wherein, number
List0Reference frame sum in the expression forward direction reference listing; Number
List1Reference frame sum in the backward reference listing of expression expression;
The rate-distortion optimization module is used for utilizing the conventional inter prediction value of described current encoded frame and the infra-prediction techniques of routine, carries out rate-distortion optimization (RDO) and obtains optimum prediction mode;
The 4th judge module, being used for judging whether to satisfy described optimum prediction mode is reference frame symbolic variable note corresponding to inter-frame forecast mode and optimum prediction mode
mEqual 1, if then make symbolic variable note
t=1, otherwise make note
t=0, then enter the second coding processing module,
Note wherein
tBe current encoded frame frame
tSymbolic variable;
The second coding processing module for the variation of carrying out conventional coding handling process, quantification and entropy coding, is finally finished frame
tCoding;
The 3rd coding processing module is used for judging whether next frame to be encoded exists, if then next one frame to be encoded is made as current encoded frame frame
t, reenter the first judge module, if not, then finish.
Further, be to obtain better encoding efficiency, described the first monochrome information between correction module and the described second conventional prediction module, can also comprise in the same way correction module of chrominance information in the same way,
Chrominance information is correction module in the same way, is used for current reference frame frame
RefCarrying out chrominance information proofreaies and correct in the same way;
Further, described the second judge module also comprises: the first probability distribution is obtained submodule, the second probability distribution is obtained submodule, light sudden change decision sub-module (as shown in Figure 3),
The first probability distribution is obtained submodule, is used for calculating current encoded frame frame
tMonochrome information
Probability distribution:
Wherein, the line number of monochrome information, columns are respectively: height
y, width
yY represents brightness;
Expression current encoded frame frame
tMonochrome information;
Expression is positioned at the brightness value of the capable j row of current encoded frame i pixel;
Expression
Corresponding value when equaling k and being not equal to k; Sum (variable | condition) represent all variablees that satisfy condition are sued for peace;
Expression
Intermediate value equals the pixel number of k;
For
Probability distribution;
The second probability distribution is obtained submodule, is used for calculating current reference frame frame
RefMonochrome information
Probability distribution:
Wherein,
Wherein,
Represent current reference frame frame
RefMonochrome information;
Expression is positioned at the brightness value of the capable j row of current reference frame i pixel;
Expression
Corresponding value when equaling k and being not equal to k;
Expression
Intermediate value equals the pixel number of k;
Expression
Probability distribution;
Light sudden change decision sub-module is used for carrying out the judgement of light sudden change, and is specific as follows:
If
Then,
Frame
tWith respect to frame
RefThe sudden change of generation light; Otherwise, the light sudden change does not then occur.
Wherein, abs represents to ask absolute value operation; Thres
Down, Thres
UpBe respectively decision threshold lower limit and the upper limit, generally get Thres
Down=0.15, Thres
Up=0.5.
Further, described the first monochrome information in the same way correction module also comprises: current encoded frame monochrome information distribution calculating sub module, current reference frame monochrome information distribution calculating sub module, the first monochrome information be syndrome module (as shown in Figure 4) in the same way,
Current encoded frame monochrome information distribution calculating sub module, the monochrome information distribution that is used for calculating current encoded frame; Be specially
Current reference frame monochrome information distribution calculating sub module, the monochrome information distribution that is used for calculating current reference frame; Be specially
The first monochrome information is the syndrome module in the same way, carries out monochrome information for the brightness value to current each pixel of reference frame and proofreaies and correct in the same way;
Further, the first monochrome information in the same way syndrome module also comprises: the first initialization unit, the 5th judging unit, the 6th judging unit (as shown in Figure 5),
The first initialization unit is used for arranging intermediate variable x=0;
The 5th judging unit is judged if be used for
The 6th judging unit is if be used for judging x<2
n-1, then reenter the 5th judging unit; Otherwise, finish
Correction;
Variable i wherein, the span of j is: 1≤i≤height
y﹠amp; ﹠amp; 1≤j≤width
y,
X represents intermediate variable;
The monochrome information distribution function of expression current encoded frame;
The monochrome information distribution function that represents current reference frame;
The functional value that the monochrome information distribution function of expression current encoded frame is ordered at x;
The functional value that the monochrome information distribution function of expression current encoded frame is ordered at x+1.
Further, described chrominance information in the same way correction module also comprises: the U chrominance information is correction module, V chrominance information correction module (not shown in the accompanying drawing) in the same way in the same way,
The U chrominance information is correction module in the same way, is used for current reference frame frame
RefCarrying out the U chrominance information proofreaies and correct in the same way;
The V chrominance information is correction module in the same way, to current reference frame frame
RefCarrying out the V chrominance information proofreaies and correct in the same way;
Further, described U chrominance information in the same way correction module also comprises: current encoded frame U chrominance information distribution calculating sub module, current reference frame U chrominance information distribution calculating sub module, U chrominance information be syndrome module (not shown in the accompanying drawing) in the same way,
Current encoded frame U chrominance information distribution calculating sub module, the U chrominance information distribution that is used for calculating current encoded frame; Be specially
Current reference frame U chrominance information distribution calculating sub module, the U chrominance information distribution that is used for calculating current reference frame; Be specially
The U chrominance information is the syndrome module in the same way, carries out the U chrominance information for the brightness value to current each pixel of reference frame and proofreaies and correct in the same way;
Further, U chrominance information in the same way syndrome module also comprises: the second initialization unit, the 7th judging unit, the 8th judging unit (not shown in the accompanying drawing),
The second initialization unit is used for arranging intermediate variable x=0;
The 7th judging unit is judged if be used for
The 8th judging unit is if be used for judging x<2
n-1, then reenter the 7th judging unit; Otherwise, finish
Correction;
Above-mentioned variable i, the span of j is: 1≤i≤height
u﹠amp; ﹠amp; 1≤j≤width
u
For
Probability distribution;
Expression
Probability distribution;
Computational methods and step S103 in the steps A
Computational methods identical, the correlated variables that the correlated variables of all brightness in the steps A among the step S103 is replaced to U colourity gets final product, and does not repeat them here;
Computational methods and step S103 among the step B
Computational methods identical, the correlated variables that the correlated variables of all brightness among the step B among the step S103 is replaced to U colourity gets final product, and does not repeat them here;
X represents intermediate variable;
The U chrominance information distribution function of expression current encoded frame;
The U chrominance information distribution function that represents current reference frame;
The functional value that the U chrominance information distribution function of expression current encoded frame is ordered at x;
The functional value that the U chrominance information distribution function of expression current encoded frame is ordered at x+1.
Further, described V chrominance information in the same way correction module also comprises: current encoded frame V chrominance information distribution calculating sub module, current reference frame V chrominance information distribution calculating sub module, V chrominance information be syndrome module (not shown in the accompanying drawing) in the same way,
Current encoded frame V chrominance information distribution calculating sub module, the V chrominance information distribution that is used for calculating current encoded frame; Be specially
Current reference frame V chrominance information distribution calculating sub module, the V chrominance information distribution that is used for calculating current reference frame; Be specially
The V chrominance information is the syndrome module in the same way, carries out the V chrominance information for the brightness value to current each pixel of reference frame and proofreaies and correct in the same way;
Further, V chrominance information in the same way syndrome module also comprises: the 3rd initialization unit, the 9th judging unit, the tenth judging unit (not shown in the accompanying drawing),
The 3rd initialization unit is used for arranging intermediate variable x=0;
The 9th judging unit is used for judging
The tenth judging unit is if be used for judging x<2
n-1, then reenter the 7th judging unit; Otherwise, finish
Correction;
Above-mentioned variable i, the span of j is: 1≤i≤height
v﹠amp; ﹠amp; 1≤j≤width
v
For
Probability distribution;
Expression
Probability distribution;
Computational methods and step S103 in the steps A
Computational methods identical, the correlated variables that the correlated variables of all brightness in the steps A among the step S103 is replaced to V colourity gets final product, and does not repeat them here;
Computational methods and step S103 among the step B
Computational methods identical, the correlated variables that the correlated variables of all brightness among the step B among the step S103 is replaced to V colourity gets final product, and does not repeat them here;
X represents intermediate variable;
The V chrominance information distribution function of expression current encoded frame;
The V chrominance information distribution function that represents current reference frame;
The functional value that the V chrominance information distribution function of expression current encoded frame is ordered at x;
The functional value that the V chrominance information distribution function of expression current encoded frame is ordered at x+1.
Embodiment three
Fig. 6 is a kind of light sudden change of preferred embodiment of the present invention video encoding/decoding method flow chart; Said method comprising the steps of:
S201: judge whether to satisfy " symbolic variable note
t=0 or
Be the I frame ", if then carry out regular decode, then enter S204; Otherwise enter S202.
Represent current decoded frame.
S202: to ref
tCarry out the in the same way correction of monochrome information.Ref
tThe reference frame that represents current decoded frame.
Described to ref
tThe in the same way bearing calibration of carrying out monochrome information is specially:
Steps A 1: at first, the monochrome information of calculating current decoded frame distributes;
Steps A 2: then, the monochrome information of calculating current decoding reference frame distributes;
Steps A 3: the brightness value of current each pixel of decoding reference frame is carried out monochrome information proofread and correct in the same way; Specifically may further comprise the steps:
A31: make x=0.
A32:
Otherwise, x=x+1.
A33: if x<2
n-1, then, reenter steps A 32; Otherwise, finish
Correction.
Above-mentioned variable i, the span of j is: 1≤i≤height
y﹠amp; ﹠amp; 1≤j≤width
y
X represents intermediate variable;
The monochrome information distribution function that represents current decoded frame;
The monochrome information distribution function that represents the reference frame of current decoded frame;
Represent the functional value that the monochrome information distribution function of current decoded frame is ordered at x;
Represent the functional value that the monochrome information distribution function of current decoded frame is ordered at x+1;
Proofread and correct in the same way if coding side has comprised chrominance information, then at step S202 " to ref
tCarry out the in the same way correction of monochrome information " also comprise afterwards step S202-B,
Step S202-B: to ref
tCarry out chrominance information and proofread and correct in the same way, specifically comprise
Step S202-B1: to ref
tCarrying out the U chrominance information proofreaies and correct in the same way;
Step S202-B2: to ref
tCarrying out the V chrominance information proofreaies and correct in the same way;
Among the described step S202-B1 " to ref
tCarrying out the U chrominance information proofreaies and correct in the same way " method and step S202 in " to ref
tCarry out the in the same way correction of monochrome information " method identical, only get final product with the correlated variables that all brightness correlated variabless is replaced to U colourity, do not repeat them here.
Among the described step S202-B2 " to ref
tCarrying out the V chrominance information proofreaies and correct in the same way " method and step S202 in " to ref
tCarry out the in the same way correction of monochrome information " method identical, only get final product with the correlated variables that all brightness correlated variabless is replaced to V colourity, do not repeat them here.
S204: seek next frame to be decoded by decoding order, if next frame to be decoded does not exist, then finish; Otherwise, next one frame to be decoded is made as current decoded frame
Reenter S201.
Embodiment four
Fig. 7 is a kind of light sudden change of preferred embodiment of the present invention video decoding system structure chart; Described system comprises: the 5th judge module, the first regular decode module, the second monochrome information be correction module, the second regular decode module, the 3rd decoding process module in the same way,
The 5th judge module is used for judging whether to satisfy " symbolic variable note
t=0 or current decoded frame
Be the I frame ", if then enter the first regular decode module, then enter if not in the same way correction module of the second monochrome information;
The first regular decode module is used for ref
tCarry out the in the same way correction of monochrome information, ref
tThe reference frame that represents current decoded frame;
The second monochrome information is correction module in the same way, is used for ref
tCarry out the in the same way correction of monochrome information;
The second regular decode module is used for utilizing corrected in the same way ref
t, right
Carry out regular decode;
The 3rd decoding process module is used for seeking next frame to be decoded by decoding order, if next frame to be decoded does not exist, then finishes; If exist and then next one frame to be decoded be made as current decoded frame
Reenter the 5th judge module.
Further, proofread and correct in the same way if coding side has comprised chrominance information, then the second monochrome information also comprises in the same way correction module of the second chrominance information between correction module and the second regular decode module in the same way,
The second chrominance information is correction module in the same way, is used for ref
tCarrying out chrominance information proofreaies and correct in the same way.
Further, described the second monochrome information in the same way correction module also comprises: current decoded frame monochrome information distribution calculating sub module, current decoding reference frame monochrome information distribution calculating sub module, the second monochrome information be syndrome module (as shown in Figure 8) in the same way,
Current decoded frame monochrome information distribution calculating sub module, the monochrome information distribution that is used for calculating current encoded frame; Be specially
Current decoding reference frame monochrome information distribution calculating sub module, the monochrome information distribution that is used for calculating current decoding reference frame; Be specially
The second monochrome information is the syndrome module in the same way, carries out monochrome information for the brightness value to current each pixel of decoding reference frame and proofreaies and correct in the same way;
Further, described the second monochrome information in the same way syndrome module also comprises the 4th initialization unit, the 11 judging unit, the 12 judging unit (as shown in Figure 9),
The 4th initialization unit is used for arranging intermediate variable x=0;
The 11 judging unit is judged if be used for
The 12 judging unit is if be used for judging x<2
n-1, then reenter the 11 judging unit; Otherwise, finish
Correction.
Above-mentioned variable i, the span of j is: 1≤i≤height
y﹠amp; ﹠amp; 1≤j≤width
y
X represents intermediate variable;
The monochrome information distribution function that represents current decoded frame;
The monochrome information distribution function that represents the reference frame of current decoded frame;
Represent the functional value that the monochrome information distribution function of current decoded frame is ordered at x;
Represent the functional value that the monochrome information distribution function of current decoded frame is ordered at x+1;
Further, described the second chrominance information in the same way correction module also comprises: the 2nd U chrominance information is correction module, the 2nd V chrominance information correction module (not shown in the accompanying drawing) in the same way in the same way,
The 2nd U chrominance information is correction module in the same way, is used for ref
tCarrying out the U chrominance information proofreaies and correct in the same way;
The 2nd V chrominance information is correction module in the same way, to ref
tCarrying out the V chrominance information proofreaies and correct in the same way;
Described the 2nd U chrominance information in the same way correction module and the second monochrome information the structure of correction module is identical in the same way, only get final product with the correlated variables that all brightness correlated variabless is replaced to U colourity, do not repeat them here.
Described the 2nd V chrominance information in the same way correction module and the second monochrome information the structure of correction module is identical in the same way, only get final product with the correlated variables that all brightness correlated variabless is replaced to V colourity, do not repeat them here.
Those having ordinary skill in the art will appreciate that, all or part of step in realization above-described embodiment method can be finished by the program command related hardware, described program can be stored in the computer read/write memory medium, and described storage medium can be ROM, RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (31)
1. a light sudden change method for video coding is characterized in that, said method comprising the steps of:
S101 judges current encoded frame frame
tWhether be I frame or scene switch frame, then enter if not step S102;
S102 makes variable m=1, frame
Ref=ref
m
S103 judges current encoded frame frame
tWith respect to current reference frame frame
RefWhether monochrome information sudden change occurs, if, note then
m=1, then enter step S104;
S104 is to current reference frame frame
RefCarry out the in the same way correction of monochrome information;
S105 utilizes corrected in the same way frame
RefTo frame
tThe inter prediction that carries out routine obtains the conventional inter prediction value of current encoded frame, then makes m=m+1;
S106 judges whether to satisfy
M〉number
List0+ number
List1And frame
tBe B
Frame) or (m〉number
List0And frame
tBe P
Frame), if, then enter step S107, if not, then return step S103;
S107 utilizes the conventional inter prediction value of described current encoded frame and the infra-prediction techniques of routine, carries out rate-distortion optimization (RDO) and obtains optimum prediction mode;
S108 judges whether to satisfy
Described optimum prediction mode is reference frame symbolic variable note corresponding to inter-frame forecast mode and optimum prediction mode
mEqual 1, if then make symbolic variable note
t=1, otherwise make note
t=0;
S109 carries out variation, quantification and the entropy of conventional coding handling process and encodes, and finally finishes frame
tCoding;
S110 judges whether next frame to be encoded exists, if then next one frame to be encoded is made as current encoded frame frame
t, reenter step S101, if not, then finish;
Wherein, m is ref
mLabel; Frame
RefRepresent current reference frame; Ref
mM reference frame of expression reference listing;
Note wherein
mBe current reference frame frame
RefSymbolic variable;
Wherein, number
List0Reference frame sum in the expression forward direction reference listing; Number
List1Reference frame sum in the backward reference listing of expression expression;
Note wherein
tBe current encoded frame frame
tSymbolic variable.
2. such as claim 1 light sudden change method for video coding, it is characterized in that, step S101 also comprises: judge current encoded frame frame
tWhether be I frame or scene switch frame, if, then to current encoded frame frame
tEncode, then enter step S111.
3. such as claim 1 light sudden change method for video coding, it is characterized in that, step S103 also comprises: judge current encoded frame frame
tWith respect to current reference frame frame
RefWhether monochrome information sudden change occurs, if not, note then
m=0, then to current encoded frame frame
tThe inter prediction that carries out routine obtains the conventional inter prediction value of current encoded frame, then enters step S106.
4. such as claim 1 light sudden change method for video coding, it is characterized in that, also comprise step S104-B after the step S104: to current reference frame frame
RefCarrying out chrominance information proofreaies and correct in the same way.
5. such as claim 1 light sudden change method for video coding, it is characterized in that, among the step S103, " judge current encoded frame frame
tWith respect to current reference frame frame
RefWhether monochrome information sudden change occurs " method be specially:
Step C: carry out the judgement of light sudden change
Frame
tWith respect to frame
RefThe sudden change of generation light; Otherwise, the light sudden change does not then occur;
Wherein, abs represents to ask absolute value operation; Thres
Down, Thres
UpBe respectively decision threshold lower limit and the upper limit, generally get Thres
Down=0.15, Thres
Up=0.5;
For
Probability distribution,
Expression
Probability distribution, k=0,1,2 ..., 2
n-1, n is that each pixel value represents required bit number in the image, n=8 in conventional 8 bitmaps, and y represents brightness;
Expression current encoded frame frame
tMonochrome information;
Represent current reference frame frame
RefMonochrome information.
6. such as claim 5 light sudden change method for video coding, it is characterized in that,
Described calculating current encoded frame frame
tMonochrome information
Probability distribution be specially:
Wherein,
Expression is positioned at the brightness value of the capable j row of current encoded frame i pixel;
Expression
Corresponding value when equaling k and being not equal to k; Sum (variable | condition) represent all variablees that satisfy condition are sued for peace;
Expression
Intermediate value equals the pixel number of k;
The current reference frame frame of described calculating
RefMonochrome information
Probability distribution be specially:
7. such as claim 1 light sudden change method for video coding, it is characterized in that, among the described step S104, to current reference frame frame
RefCarry out the method that monochrome information proofreaies and correct in the same way and comprise step:
Steps A 3: the brightness value of current each pixel of reference frame is carried out monochrome information proofread and correct in the same way.
8. light sudden change method for video coding as claimed in claim 7 is characterized in that,
The monochrome information of described calculating current encoded frame distributes and is specially:
The monochrome information of the current reference frame of described calculating distributes and is specially:
9. light sudden change method for video coding as claimed in claim 8 is characterized in that,
Described brightness value to current each pixel of reference frame carries out monochrome information and proofreaies and correct in the same way;
Specifically may further comprise the steps:
A31: make x=0;
A32: if
Described variable i, the span of j is: 1≤i≤height
y﹠amp; ﹠amp; 1≤j≤width
yX represents intermediate variable;
The monochrome information distribution function of expression current encoded frame;
The monochrome information distribution function that represents current reference frame;
The functional value that the monochrome information distribution function of expression current encoded frame is ordered at x;
The functional value that the monochrome information distribution function of expression current encoded frame is ordered at x+1.
10. light sudden change method for video coding as claimed in claim 4 is characterized in that, among the described step S104-B, to current reference frame frame
RefCarrying out chrominance information proofreaies and correct in the same way and comprises step:
Step S104-B1: to current reference frame frame
RefCarrying out the U chrominance information proofreaies and correct in the same way;
Step S104-B2: to current reference frame frame
RefCarrying out the V chrominance information proofreaies and correct in the same way.
11. light sudden change method for video coding as claimed in claim 10 is characterized in that,
Among the described step S104-B1, to current reference frame frame
RefCarry out the U chrominance information and proofread and correct in the same way, specifically may further comprise the steps:
Step S104-B11: at first, the U chrominance information of calculating current encoded frame distributes;
Step S104-B12: then, the U chrominance information of calculating current reference frame distributes;
Step S104-B13: the brightness value of current each pixel of reference frame is carried out the U chrominance information proofread and correct in the same way; Specifically may further comprise the steps:
S104-B131: make x=0;
S104-B132,
Described variable i, the span of j is: 1≤i≤height
u﹠amp; ﹠amp; 1≤j≤width
u
X represents intermediate variable;
The U chrominance information distribution function of expression current encoded frame;
The U chrominance information distribution function that represents current reference frame;
The functional value that the U chrominance information distribution function of expression current encoded frame is ordered at x;
The functional value that the U chrominance information distribution function of expression current encoded frame is ordered at x+1.
12. light sudden change method for video coding as claimed in claim 10 is characterized in that,
Among the described step S104-B2, to current reference frame frame
RefCarry out the V chrominance information and proofread and correct in the same way, comprise step:
Step S104-B21: at first, the V chrominance information of calculating current encoded frame distributes;
Step S104-B22: then, the V chrominance information of calculating current reference frame distributes;
Step S104-B23: the brightness value of current each pixel of reference frame is carried out the V chrominance information proofread and correct in the same way; Specifically may further comprise the steps:
S104-B231: make x=0;
S104-B232:
S104-B233: if x<2
n-1, then, reenter step S104-B232;
Described variable i, the span of j is: 1≤i≤height
v﹠amp; ﹠amp; 1≤j≤width
v,
X represents intermediate variable;
The V chrominance information distribution function of expression current encoded frame;
The V chrominance information distribution function that represents current reference frame;
The functional value that the V chrominance information distribution function of expression current encoded frame is ordered at x;
The functional value that the V chrominance information distribution function of expression current encoded frame is ordered at x+1.
13. light sudden change video coding system, it is characterized in that, described system comprises: the first judge module, the first coding processing module, the second judge module, the first monochrome information be correction module, the first conventional prediction module, the second conventional prediction module, the 3rd judge module, rate-distortion optimization module, the 4th judge module, the second coding processing module, the 3rd coding processing module in the same way
The first judge module is used for judging current encoded frame frame
tWhether be I frame or scene switch frame, if then enter the first coding processing module, then make if not variable m=1, frame
Ref=ref
m, enter the second judge module;
The first coding processing module is used for current encoded frame frame
tEncode, then enter the 3rd coding processing module;
The second judge module is used for judging current encoded frame frame
tWith respect to current reference frame frame
RefWhether monochrome information sudden change occurs, if, note then
m=1, then enter in the same way correction module of the first monochrome information; If not, note then
m=0, the first conventional prediction module then;
The first monochrome information is correction module in the same way, is used for current reference frame frame
RefCarry out the in the same way correction of monochrome information;
The first conventional prediction module is used for current encoded frame frame
tThe inter prediction that carries out routine obtains the conventional inter prediction value of current encoded frame, then enters the 3rd judge module;
The second conventional prediction module is used for utilizing corrected in the same way frame
RefTo frame
tThe inter prediction that carries out routine obtains the conventional inter prediction value of current encoded frame, then makes m=m+1, enters the 3rd judge module;
The 3rd judge module is used for judging whether to satisfy
M〉number
List0+ number
List1And frame
tBe B
Frame) or (m〉number
List0And frame
tBe P
Frame), if then admission rate aberration optimizing module if not, is then returned the second judge module;
The rate-distortion optimization module is used for utilizing the conventional inter prediction value of described current encoded frame and the infra-prediction techniques of routine, carries out rate-distortion optimization (RDO) and obtains optimum prediction mode;
The 4th judge module, being used for judging whether to satisfy described optimum prediction mode is reference frame symbolic variable note corresponding to inter-frame forecast mode and optimum prediction mode
mEqual 1, if then make symbolic variable note
t=1, otherwise make note
t=0, then enter the second coding processing module;
The second coding processing module for the variation of carrying out conventional coding handling process, quantification and entropy coding, is finally finished frame
tCoding;
The 3rd coding processing module is used for judging whether next frame to be encoded exists, if then next one frame to be encoded is made as current encoded frame frame
t, reenter the first judge module, if not, then finish;
Wherein, m is ref
mLabel; Frame
RefRepresent current reference frame; Ref
mM reference frame of expression reference listing; Note
mBe current reference frame frame
RefSymbolic variable; Number
List0Reference frame sum in the expression forward direction reference listing; Number
List1Reference frame sum in the backward reference listing of expression expression; Note
tBe current encoded frame frame
tSymbolic variable.
14. light as claimed in claim 13 sudden change video coding system is characterized in that, described the first monochrome information between correction module and the described second conventional prediction module, can also comprise in the same way correction module of chrominance information in the same way,
Chrominance information is correction module in the same way, is used for current reference frame frame
RefCarrying out chrominance information proofreaies and correct in the same way.
15. light sudden change video coding system as claimed in claim 13 is characterized in that, described the second judge module also comprises: the first probability distribution is obtained submodule, the second probability distribution is obtained submodule, light sudden change decision sub-module,
The first probability distribution is obtained submodule, is used for calculating current encoded frame frame
tMonochrome information
Probability distribution;
The second probability distribution is obtained submodule, is used for calculating current reference frame frame
RefMonochrome information
Probability distribution;
Light sudden change decision sub-module is used for carrying out the judgement of light sudden change, and is specific as follows:
Frame
tWith respect to frame
RefThe sudden change of generation light; Otherwise, the light sudden change does not then occur;
Wherein, abs represents to ask absolute value operation; Thres
Down, Thres
UpBe respectively decision threshold lower limit and the upper limit, generally get Thres
Down=0.15, Thres
Up=0.5, k=0,1,2 ..., 2
n-1, n is that each pixel value represents required bit number in the image, n=8 in conventional 8 bitmaps, and y represents brightness;
Expression current encoded frame frame
tMonochrome information;
For
Probability distribution;
Represent current reference frame frame
RefMonochrome information;
Expression
Probability distribution.
16. light sudden change video coding system as claimed in claim 15 is characterized in that,
Described the first probability distribution is obtained in the submodule, is used for calculating current encoded frame frame
tMonochrome information
Probability distribution be specially
Wherein, the line number of monochrome information, columns are respectively: height
y, width
y Expression is positioned at the brightness value of the capable j row of current encoded frame i pixel;
Expression
Corresponding value when equaling k and being not equal to k; Sum (variable | condition) represent all variablees that satisfy condition are sued for peace;
Expression
Intermediate value equals the pixel number of k;
Described the second probability distribution is obtained in the submodule, is used for calculating current reference frame frame
RefMonochrome information
Probability distribution be specially:
Wherein,
17. light sudden change video coding system as claimed in claim 13, it is characterized in that, described the first monochrome information in the same way correction module also comprises: current encoded frame monochrome information distribution calculating sub module, current reference frame monochrome information distribution calculating sub module, the first monochrome information be the syndrome module in the same way
Current encoded frame monochrome information distribution calculating sub module, the monochrome information distribution that is used for calculating current encoded frame; Be specially
Current reference frame monochrome information distribution calculating sub module, the monochrome information distribution that is used for calculating current reference frame; Be specially
The first monochrome information is the syndrome module in the same way, carries out monochrome information for the brightness value to current each pixel of reference frame and proofreaies and correct in the same way.
18. light sudden change video coding system as claimed in claim 17 is characterized in that, the first monochrome information in the same way syndrome module also comprises: the first initialization unit, the 5th judging unit, the 6th judging unit,
The first initialization unit is used for arranging intermediate variable x=0;
The 5th judging unit is judged if be used for
The 6th judging unit is if be used for judging x<2
n-1, then reenter the 5th judging unit; Otherwise, finish
Correction;
Variable i wherein, the span of j is: 1≤i≤height
y﹠amp; ﹠amp; 1≤j≤width
y,
X represents intermediate variable;
The monochrome information distribution function of expression current encoded frame;
The monochrome information distribution function that represents current reference frame;
The functional value that the monochrome information distribution function of expression current encoded frame is ordered at x;
The functional value that the monochrome information distribution function of expression current encoded frame is ordered at x+1.
19. light as claimed in claim 14 sudden change video coding system is characterized in that, described chrominance information in the same way correction module also comprises: the U chrominance information is correction module, V chrominance information correction module in the same way in the same way,
The U chrominance information is correction module in the same way, is used for current reference frame frame
RefCarrying out the U chrominance information proofreaies and correct in the same way;
The V chrominance information is correction module in the same way, to current reference frame frame
RefCarrying out the V chrominance information proofreaies and correct in the same way.
20. light sudden change video coding system as claimed in claim 19, it is characterized in that, described U chrominance information in the same way correction module also comprises: current encoded frame U chrominance information distribution calculating sub module, current reference frame U chrominance information distribution calculating sub module, U chrominance information be the syndrome module in the same way
Current encoded frame U chrominance information distribution calculating sub module, the U chrominance information distribution that is used for calculating current encoded frame; Be specially
Current reference frame U chrominance information distribution calculating sub module, the U chrominance information distribution that is used for calculating current reference frame; Be specially
K=0,1,2,...,2
n-1
The U chrominance information is the syndrome module in the same way, carries out the U chrominance information for the brightness value to current each pixel of reference frame and proofreaies and correct in the same way.
21. light sudden change video coding system as claimed in claim 20 is characterized in that, described U chrominance information in the same way syndrome module also comprises: the second initialization unit, the 7th judging unit, the 8th judging unit,
The second initialization unit is used for arranging intermediate variable x=0;
The 7th judging unit is judged if be used for
The 8th judging unit is if be used for judging x<2
n-1, then reenter the 7th judging unit; Otherwise, finish
Correction;
Described variable i, the span of j is: 1≤i≤height
u﹠amp; ﹠amp; 1≤j≤width
u
X represents intermediate variable;
The U chrominance information distribution function of expression current encoded frame;
The U chrominance information distribution function that represents current reference frame;
The functional value that the U chrominance information distribution function of expression current encoded frame is ordered at x;
The functional value that the U chrominance information distribution function of expression current encoded frame is ordered at x+1.
22. light sudden change video coding system as claimed in claim 19, it is characterized in that, described V chrominance information in the same way correction module also comprises: current encoded frame V chrominance information distribution calculating sub module, current reference frame V chrominance information distribution calculating sub module, V chrominance information be the syndrome module in the same way
Current encoded frame V chrominance information distribution calculating sub module, the V chrominance information distribution that is used for calculating current encoded frame; Be specially
Current reference frame V chrominance information distribution calculating sub module, the V chrominance information distribution that is used for calculating current reference frame; Be specially
The V chrominance information is the syndrome module in the same way, carries out the V chrominance information for the brightness value to current each pixel of reference frame and proofreaies and correct in the same way.
23. light sudden change video coding system as claimed in claim 22 is characterized in that, V chrominance information in the same way syndrome module also comprises: the 3rd initialization unit, the 9th judging unit, the tenth judging unit,
The 3rd initialization unit is used for arranging intermediate variable x=0;
The 9th judging unit is used for judging
The tenth judging unit is if be used for judging x<2
n-1, then reenter the 7th judging unit; Otherwise, finish
Correction;
Above-mentioned variable i, the span of j is: 1≤i≤height
v﹠amp; ﹠amp; 1≤j≤width
v;
X represents intermediate variable;
The V chrominance information distribution function of expression current encoded frame;
The V chrominance information distribution function that represents current reference frame;
The functional value that the V chrominance information distribution function of expression current encoded frame is ordered at x;
The functional value that the V chrominance information distribution function of expression current encoded frame is ordered at x+1.
24. a light sudden change video encoding/decoding method is characterized in that, said method comprising the steps of: S201: judge whether to satisfy " symbolic variable note
t=0 or current decoded frame
Be the I frame ", then enter if not S202;
S202: to the reference frame ref of current decoded frame
tCarry out the in the same way correction of monochrome information;
25. light sudden change video encoding/decoding method as claimed in claim 24 is characterized in that, also comprises step after the described step S202:
To ref
tCarrying out chrominance information proofreaies and correct in the same way.
26. light sudden change video encoding/decoding method as claimed in claim 24 is characterized in that, and is described to ref
tThe in the same way bearing calibration of carrying out monochrome information is specially:
Steps A 1: at first, the monochrome information of calculating current decoded frame distributes;
Steps A 2: then, the monochrome information of calculating current decoding reference frame distributes;
Steps A 3: the brightness value of current each pixel of decoding reference frame is carried out monochrome information proofread and correct in the same way;
The monochrome information distribution function that represents current decoded frame;
The monochrome information distribution function that represents the reference frame of current decoded frame;
Represent the functional value that the monochrome information distribution function of current decoded frame is ordered at x.
27. light sudden change video encoding/decoding method as claimed in claim 26 is characterized in that,
In the described steps A 3, the brightness value of each pixel of the reference frame of front decoded frame is carried out monochrome information proofread and correct in the same way; Specifically may further comprise the steps:
A31: make x=0;
A32:
Described variable i, the span of j is: 1≤i≤height
y﹠amp; ﹠amp; 1≤j≤width
y,
28. a light sudden change video decoding system, it is characterized in that described system comprises: the 5th judge module, the first regular decode module, the second monochrome information be correction module, the second regular decode module, the 3rd decoding process module in the same way,
The 5th judge module is used for judging whether to satisfy " symbolic variable note
t=0 or current decoded frame
Be the I frame ", if then enter the first regular decode module, then enter if not in the same way correction module of the second monochrome information;
The first regular decode module is used for ref
tCarry out the in the same way correction of monochrome information, ref
tThe reference frame that represents current decoded frame;
The second monochrome information is correction module in the same way, is used for ref
tCarry out the in the same way correction of monochrome information;
The second regular decode module is used for utilizing corrected in the same way ref
t, right
Carry out regular decode;
29. light as claimed in claim 28 sudden change video decoding system is characterized in that, described the second monochrome information also comprises in the same way correction module of the second chrominance information between correction module and the second regular decode module in the same way,
The second chrominance information is correction module in the same way, is used for ref
tCarrying out chrominance information proofreaies and correct in the same way.
30. light sudden change video decoding system as claimed in claim 28, it is characterized in that, described the second monochrome information in the same way correction module also comprises: current decoded frame monochrome information distribution calculating sub module, current decoding reference frame monochrome information distribution calculating sub module, the second monochrome information be the syndrome module in the same way
Current decoded frame monochrome information distribution calculating sub module, the monochrome information distribution that is used for calculating current encoded frame; Be specially
Current decoding reference frame monochrome information distribution calculating sub module, the monochrome information distribution that is used for calculating current decoding reference frame; Be specially
K=0,1,2,...,2
n-1
The second monochrome information is the syndrome module in the same way, carries out monochrome information for the brightness value to current each pixel of decoding reference frame and proofreaies and correct in the same way.
30, light sudden change video decoding system as claimed in claim 29 is characterized in that, described the second monochrome information in the same way syndrome module also comprises the 4th initialization unit, the 11 judging unit, the 12 judging unit,
The 4th initialization unit is used for arranging intermediate variable x=0;
The 11 judging unit is judged if be used for
Then order
Finish
Correction, otherwise make x=x+1, enter the 12 judging unit;
The 12 judging unit is if be used for judging x<2
n-1, then reenter the 11 judging unit; Otherwise, finish
Correction;
Described variable i, the span of j is: 1≤i≤height
y﹠amp; ﹠amp; 1≤j≤width
y,
X represents intermediate variable;
The monochrome information distribution function that represents current decoded frame;
The monochrome information distribution function that represents the reference frame of current decoded frame;
Represent the functional value that the monochrome information distribution function of current decoded frame is ordered at x;
Represent the functional value that the monochrome information distribution function of current decoded frame is ordered at x+1.
31. light as claimed in claim 30 sudden change video decoding system is characterized in that, described the second chrominance information in the same way correction module also comprises: the 2nd U chrominance information is correction module, the 2nd V chrominance information correction module in the same way in the same way,
The 2nd U chrominance information is correction module in the same way, is used for ref
tCarrying out the U chrominance information proofreaies and correct in the same way;
The 2nd V chrominance information is correction module in the same way, to ref
tCarrying out the V chrominance information proofreaies and correct in the same way.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101736291A CN103327324A (en) | 2013-05-13 | 2013-05-13 | Method and system for coding and decoding light sudden change video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101736291A CN103327324A (en) | 2013-05-13 | 2013-05-13 | Method and system for coding and decoding light sudden change video |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103327324A true CN103327324A (en) | 2013-09-25 |
Family
ID=49195822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013101736291A Pending CN103327324A (en) | 2013-05-13 | 2013-05-13 | Method and system for coding and decoding light sudden change video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103327324A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118982A (en) * | 2022-06-24 | 2022-09-27 | 腾讯科技(深圳)有限公司 | Video processing method, video processing equipment, storage medium and computer program product |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070058714A1 (en) * | 2005-09-09 | 2007-03-15 | Kabushiki Kaisha Toshiba | Image encoding apparatus and image encoding method |
WO2007108661A1 (en) * | 2006-03-22 | 2007-09-27 | Electronics And Telecommunications Research Institute | Method and apparatus for encoding and decoding the compensated illumination change |
CN101771827A (en) * | 2008-12-29 | 2010-07-07 | 深圳艾科创新微电子有限公司 | Device and method for regulating image brightness by gamma |
CN102905140A (en) * | 2012-09-21 | 2013-01-30 | 宁波大学 | Color correction method of colored microscopic three-dimensional image pair |
CN103024384A (en) * | 2012-12-14 | 2013-04-03 | 深圳百科信息技术有限公司 | Method and device for encoding and decoding videos |
CN103081468A (en) * | 2010-09-03 | 2013-05-01 | 杜比实验室特许公司 | Method and system for illumination compensation and transition for video coding and processing |
-
2013
- 2013-05-13 CN CN2013101736291A patent/CN103327324A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070058714A1 (en) * | 2005-09-09 | 2007-03-15 | Kabushiki Kaisha Toshiba | Image encoding apparatus and image encoding method |
WO2007108661A1 (en) * | 2006-03-22 | 2007-09-27 | Electronics And Telecommunications Research Institute | Method and apparatus for encoding and decoding the compensated illumination change |
CN101771827A (en) * | 2008-12-29 | 2010-07-07 | 深圳艾科创新微电子有限公司 | Device and method for regulating image brightness by gamma |
CN103081468A (en) * | 2010-09-03 | 2013-05-01 | 杜比实验室特许公司 | Method and system for illumination compensation and transition for video coding and processing |
CN102905140A (en) * | 2012-09-21 | 2013-01-30 | 宁波大学 | Color correction method of colored microscopic three-dimensional image pair |
CN103024384A (en) * | 2012-12-14 | 2013-04-03 | 深圳百科信息技术有限公司 | Method and device for encoding and decoding videos |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118982A (en) * | 2022-06-24 | 2022-09-27 | 腾讯科技(深圳)有限公司 | Video processing method, video processing equipment, storage medium and computer program product |
CN115118982B (en) * | 2022-06-24 | 2024-05-24 | 腾讯科技(深圳)有限公司 | Video processing method, device, storage medium and computer program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102656890B (en) | For the method and apparatus of Video coding | |
EP2721824B1 (en) | Method and apparatus for coding of intra prediction mode | |
CN102835111B (en) | The motion vector of previous block is used as the motion vector of current block, image to be carried out to the method and apparatus of coding/decoding | |
US10070126B2 (en) | Method and apparatus of intra mode coding | |
US20140126648A1 (en) | Method and apparatus for encoding and decoding motion vector | |
US20070065026A1 (en) | Method of and apparatus for lossless video encoding and decoding | |
CN102098519B (en) | Video encoding method and decoding method as well as encoding and decoding device | |
US8144782B2 (en) | Adaptive motion estimation/compensation device for MB/based illumination change and method thereof | |
CN100591136C (en) | Video frequency intraframe coding method based on null field decomposition | |
CN103260018B (en) | Intra-frame image prediction decoding method and Video Codec | |
US20090034619A1 (en) | Adapting an encoded video signal to encoding complexity | |
CN101415122A (en) | Forecasting encoding/decoding method and apparatus between frames | |
CN104581162A (en) | Method and apparatus for encoding and decoding image by using large transformation unit | |
CN101014129B (en) | Video data compression method | |
GB2332115A (en) | Motion vector prediction method | |
CN106060539A (en) | Video encoding method with low transmission bandwidth | |
MX2012013263A (en) | Methods and apparatus for intra coding a block having pixels assigned to groups. | |
CN103024384A (en) | Method and device for encoding and decoding videos | |
CN103596003B (en) | Interframe predication quick mode selecting method for high-performance video coding | |
CN102883161A (en) | Video encoding and decoding processing method and device | |
CN102196253B (en) | Video coding method and device for frame type adaptive selection | |
CN113766245A (en) | Inter-frame prediction method, decoder, encoder, and computer storage medium | |
CN102843555A (en) | Intra-frame prediction method and system | |
CN101198054A (en) | Variable length coding and decoding method and its coding and decoding device | |
CN101790096A (en) | Encoding and decoding method and device based on double prediction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130925 |