What HEVC coding unit level bit-rate controlled realizes device and method
Technical field
The present invention relates to multimedia video coding techniques field, more particularly, to towards SoC (System on Chip, SOC(system on a chip))
HEVC coding system in LCU (Large Coding Unit, maximum coding unit) level bit-rate control.
Background technology
HEVC (High Efficiency Video Coding, efficient video coding) is video compression standard up-to-date at present, should
Every two field picture is divided into several LCU (Large Coding Unit, maximum coding unit) and is encoded successively by standard.HEVC
Damage video compression technology as one kind, the loss of its compression mostlys come from quantization modules, and QP (Quantization
Parameter, quantization parameter) it is then to be used in video compression representing the parameter of quantization modules.In HEVC, code check control
The purpose of algorithm processed is exactly by calculating QP, to reach the balance between code check and picture quality, to reach targeted compression code check
On the basis of, obtain best picture quality.
In a two field picture, can with each LCU using identical QP it is also possible to according to image complexity situation, each LCU
Using different QP, the latter can obtain more preferable subjective quality.Need due to calculating more accurate QP for each LCU
Substantial amounts of system resource, therefore for SoC (System on Chip, SOC(system on a chip)) the restricted fortune such as this kind of resource, power consumption
For row environment, there is higher requirement to the complexity of algorithm, operand, low delay, need one and more efficiently count
Calculation method.
In view of the above, providing a kind of device and method that can quickly realize the control of HEVC coding unit level bit-rate to belong in fact must
Will.
Content of the invention
The shortcoming of prior art in view of the above, it is an object of the invention to provide a kind of HEVC coding unit level bit-rate controls
Realize device and method, in resource-constrained system, to realize the maximum coding of low complex degree, low operand, low delay
Cell level Rate Control, thus lift the subjective quality of Video coding.
For achieving the above object and other related purposes, the present invention provides the realization dress that a kind of HEVC coding unit level bit-rate controls
Put, described device of realizing includes:Complexity distribution statisticses module, for counting the complexity of each maximum coding unit of previous frame image
Degree distributed intelligence;Complexity threshold computing module, for the complexity distribution letter according to maximum coding unit each in previous frame image
Breath, calculates the complexity threshold of present frame;And quantization parameter processing module, by the complexity of each for present frame maximum coding unit
It is compared with present frame complexity threshold, the final quantization parameter determining each maximum coding unit of present frame.
A kind of preferred version realizing device controlling as the HEVC coding unit level bit-rate of the present invention, described complexity distribution
Statistical module is according to the complexity situation of systematic function and each maximum coding unit of previous frame image it would be desirable to the complexity number of analysis
Value carries out segmentation, and set up complexity distribution array the distribution situation of former frame each maximum coding unit complexity is counted.
Further, described complexity threshold computing module is distributed array, range adjustment parameters and frame level complexity according to complexity
Scale factor, calculates maximum complexity threshold and the least complex threshold value of present frame.
Further, described quantization parameter processing module is by the maximum complexity threshold of previous frame maximum coding unit complexity and present frame
Value and least complex threshold value are compared, and adjust maximum coding unit level amount based on the frame level quantization parameter of current frame image
Change parameter.
The present invention also provides the implementation method that a kind of HEVC coding unit level bit-rate controls, and described implementation method includes step:Step
Rapid 1), the complexity situation according to systematic function and each maximum coding unit of previous frame image it would be desirable to analysis complexity number
Value carries out segmentation;Step 2), set up complexity distribution array and the distribution situation of former frame each maximum coding unit complexity is entered
Row statistics;Step 3), array, range adjustment parameters and the frame level complexity proportion factor are distributed according to complexity, calculate current
The maximum complexity threshold of frame and least complex threshold value;Step 4), by the complexity of present frame maximum coding unit and calculating
The maximum complexity threshold of the present frame obtaining and least complex threshold value are compared, with the frame level quantization parameter of current frame image
Based on adjust maximum coding unit level quantized parameter step 5), if currently processed maximum coding unit be not present frame
A maximum coding unit afterwards, then repeat step 4) until terminating.
A kind of preferred version of the implementation method controlling as the HEVC coding unit level bit-rate of the present invention, step 1) according to being
System performance and each maximum coding unit of previous frame image complexity situation it would be desirable to analysis maximum coding unit complexity numerical value
It is divided into StepNum section, the every segment length of front StepNum-1 section is StepSize, and final stage length is infinity.
A kind of preferred version of the implementation method controlling as the HEVC coding unit level bit-rate of the present invention, step 2) in, adopt
Represent that complexity belongs to the maximum coding unit in the range of i*StepSize to (i+1) * StepSize hop count value with array element D [i]
Number, D [StepNum-1] represents that complexity is more than the number of the maximum coding unit of i* (StepNum-1), wherein,
i<StepNum-1, and i is integer.
Further, step 3) in, the determination method of described maximum complexity threshold Thmax is:When
OrAndWhen, Thmax=i × StepSize × δ;Described minimum multiple
Miscellaneous degree threshold value Thmin determination method be:WhenOrAndThmin=
(i+1)×StepSize×δ;Wherein, R is range adjustment parameters, and δ is the frame level complexity proportion factor.
Further, step 4) in, adjust maximum coding unit level based on the frame level quantization parameter of current frame image and quantify
The method of parameter is:
If Clcu>Thmax, then QPlcu=QPpic 1;
If Clcu<Thmin, then QPlcu=QPpic+1;
If other situations, then QPlcu=QPpic;
Wherein, QPpic is the frame level quantization parameter of current frame image, and QPlcu is maximum coding unit level quantized parameter, Clcu
Complexity for present frame maximum coding unit.
As described above, the present invention HEVC coding unit level bit-rate control realize device and method, have the advantages that:
The invention provides a kind of device and method quickly realizing the control of HEVC coding unit level bit-rate, according to each in previous frame image
The complexity distribution situation of maximum coding unit LCU can determine that the complexity threshold of current frame image, by each LCU of present frame
Complexity draws its corresponding quantization parameter QP with compared with institute threshold value.By method provided by the present invention, can be in resource
In limited system, realize the LCU level bit-rate control of low complex degree, low operand, low delay, thus lifting Video coding
Subjective quality.
Brief description
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, the present invention shows
Meaning property embodiment and its illustrate for explaining the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is shown as the schematic device of the embodiment realizing device of HEVC coding unit level bit-rate control of the present invention.
The steps flow chart that Fig. 2 is shown as the embodiment of implementation method of HEVC coding unit level bit-rate control of the present invention is illustrated
Figure.
Component label instructions
11 complexity distribution statisticses modules
12 complexity threshold computing modules
13 quantization parameter processing modules
S11~S15 step 1)~step 5)
Specific embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art can be disclosed by this specification
Content understand other advantages and effect of the present invention easily.The present invention can also be added by addition different specific embodiments
To implement or to apply, the every details in this specification can also be based on different viewpoints and application, in the essence without departing from the present invention
Carry out various modifications and changes under god.
Refer to Fig. 1~Fig. 2.It should be noted that the diagram provided in the present embodiment only illustrates the present invention's in a schematic way
Basic conception, in then illustrating only display and relevant assembly in the present invention rather than according to component count during actual enforcement, shape and
Size is drawn, and during its actual enforcement, the kenel of each assembly, quantity and ratio can be a kind of random change, and its assembly layout type
State is likely to increasingly complex.
As shown in figure 1, the present embodiment provides what a kind of HEVC coding unit level bit-rate controlled to realize device, described realize device
Including:Complexity distribution statisticses module 11, for counting the complexity distributed intelligence of each maximum coding unit of previous frame image;Multiple
Miscellaneous degree threshold calculation module 12, for the complexity distributed intelligence according to maximum coding unit each in previous frame image, calculates current
The complexity threshold of frame;And quantization parameter processing module 13, the complexity of each for present frame maximum coding unit is multiple with present frame
Miscellaneous degree threshold value is compared, the final quantization parameter determining each maximum coding unit of present frame.
As an example, described complexity distribution statisticses module 11 answering according to systematic function and each maximum coding unit of previous frame image
Miscellaneous degree situation is it would be desirable to the complexity numerical value of analysis carries out segmentation, and sets up complexity distribution array maximum coding each to former frame
The distribution situation of unit complexity is counted.
As an example, described complexity threshold computing module 12 is distributed array, range adjustment parameters and frame level complexity according to complexity
Degree scale factor, calculates maximum complexity threshold and the least complex threshold value of present frame.
As an example, described quantization parameter processing module 13 is by the maximum complexity of previous frame maximum coding unit complexity and present frame
Threshold value and least complex threshold value are compared, and adjust maximum coding unit level based on the frame level quantization parameter of current frame image
Quantization parameter.
As shown in Fig. 2 the present embodiment also provides the implementation method that a kind of HEVC coding unit level bit-rate controls, described realization side
Method includes step:
As shown in Fig. 2 carrying out step 1 first) S11, according to the complexity of systematic function and each maximum coding unit of previous frame image
Degree situation is it would be desirable to the complexity numerical value of analysis carries out segmentation.
Specifically, in this step, the complexity situation according to systematic function and each maximum coding unit of previous frame image, will need
Maximum coding unit complexity numerical value to be analyzed is divided into StepNum section, and the every segment length of front StepNum-1 section is StepSize,
Final stage length is infinity.
As shown in Fig. 2 and then carrying out step 2) S12, each maximum coding unit is complicated to former frame to set up complexity distribution array
The distribution situation of degree is counted.
Specifically, in this step, represent that complexity belongs to i*StepSize to (i+1) * StepSize section using array element D [i]
The number of the maximum coding unit in numerical range, D [StepNum-1] represents that complexity is more than the maximum coding of i* (StepNum-1)
The number of unit, wherein, i<StepNum-1, and i is integer.
As shown in Fig. 2 then carrying out step 3) S13, array, range adjustment parameters and frame level complexity are distributed according to complexity
Scale factor, calculates maximum complexity threshold and the least complex threshold value of present frame.
In the present embodiment, described range adjustment parameters can determine according to characteristics, described frame level complexity proportion because
Son is the ratio of present frame complexity and the complexity aggregate level of former frame.
Specifically, in this step, the determination method of described maximum complexity threshold Thmax is:When
OrAndWhen, Thmax=i × StepSize × δ;
The determination method of described least complex threshold value Thmin is:WhenOrAndThmin=(i+1) × StepSize × δ;Wherein, R is range adjustment parameters, and δ is frame level complexity proportion
The factor.
As shown in Fig. 2 then carrying out step 4) S14, the complexity of present frame maximum coding unit is current with calculated
The maximum complexity threshold of frame and least complex threshold value are compared, and are adjusted based on the frame level quantization parameter of current frame image
Maximum coding unit level quantized parameter;
Specifically, in this step, adjust maximum coding unit level based on the frame level quantization parameter of current frame image and quantify ginseng
Number method be:
If Clcu>Thmax, then QPlcu=QPpic 1;
If Clcu<Thmin, then QPlcu=QPpic+1;
If other situations, then QPlcu=QPpic;
Wherein, QPpic is the frame level quantization parameter of current frame image, and QPlcu is maximum coding unit level quantized parameter, Clcu
Complexity for present frame maximum coding unit.
As shown in Fig. 2 finally carrying out step 5) S15, if currently processed maximum coding unit be not present frame last
Maximum coding unit, then repeat step 4) until terminating.
As described above, the present invention provides what a kind of HEVC coding unit level bit-rate controlled to realize device and method, described realization dress
Put including:Complexity distribution statisticses module 11, for counting the complexity distributed intelligence of each maximum coding unit of previous frame image;
Complexity threshold computing module 12, for the complexity distributed intelligence according to maximum coding unit each in previous frame image, calculates and works as
The complexity threshold of previous frame;And quantization parameter processing module 13, by the complexity of each for present frame maximum coding unit and present frame
Complexity threshold is compared, the final quantization parameter determining each maximum coding unit of present frame.The invention provides it is a kind of quick
Realize the device and method of HEVC coding unit level bit-rate control, according to maximum coding unit LCU each in previous frame image
Complexity distribution situation can determine that the complexity threshold of current frame image, by present frame each LCU complexity and institute's threshold value phase
Relatively draw its corresponding quantization parameter QP.By method provided by the present invention, can realize low in resource-constrained system
Complexity, low operand, the LCU level bit-rate of low delay control, thus lifting the subjective quality of Video coding.So, this
Bright effectively overcome various shortcoming of the prior art and have high industrial utilization.
Above-described embodiment only principle of the illustrative present invention and its effect, not for the restriction present invention.Any it is familiar with this skill
The personage of art all can carry out modifications and changes without prejudice under the spirit and the scope of the present invention to above-described embodiment.Therefore, such as
Those of ordinary skill in the art completed under without departing from disclosed spirit and technological thought all etc.
Effect modifications and changes, must be covered by the claim of the present invention.