CN109743572B - A kind of code rate model update method and device - Google Patents

A kind of code rate model update method and device Download PDF

Info

Publication number
CN109743572B
CN109743572B CN201910026382.8A CN201910026382A CN109743572B CN 109743572 B CN109743572 B CN 109743572B CN 201910026382 A CN201910026382 A CN 201910026382A CN 109743572 B CN109743572 B CN 109743572B
Authority
CN
China
Prior art keywords
virtual
quantization
code rate
blocks
control unit
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.)
Active
Application number
CN201910026382.8A
Other languages
Chinese (zh)
Other versions
CN109743572A (en
Inventor
王振宇
韩冰杰
李旭峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Immersion Vision Technology Co ltd
Original Assignee
Shenzhen Youwei Vision Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Youwei Vision Technology Co Ltd filed Critical Shenzhen Youwei Vision Technology Co Ltd
Priority to CN201910026382.8A priority Critical patent/CN109743572B/en
Publication of CN109743572A publication Critical patent/CN109743572A/en
Application granted granted Critical
Publication of CN109743572B publication Critical patent/CN109743572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The application provides a kind of code rate model update method and device, this method comprises: encoding using control parameter collection to control unit, obtains each piece of transform block under corresponding encoded mode, and determine the number of coded bits of control unit;It determines one or more virtual controlling parameter sets near the control parameter collection, transform block is quantified respectively using virtual controlling parameter set, each corresponding all virtual quantization blocks composition one of virtual controlling parameter set virtually quantifies set of blocks;Entropy coding is carried out to virtual quantization block respectively, or virtual quantization block is estimated respectively using approximate algorithm, obtains virtual encoder bit number corresponding to each virtual quantization set of blocks;Using the control parameter collection, virtual controlling parameter set, number of coded bits and virtual encoder bit number, the code rate model is updated.Using the technical solution of the application, code rate model can be updated more accurately, improve the accuracy of code rate control.

Description

A kind of code rate model update method and device
Technical field
This specification is related to technical field of video coding more particularly to a kind of code rate model update method and device.
Background technique
Code rate control is an important technology of field of video encoding, and the purpose is to adjust the relevant some control ginsengs of coding Number.By the adjustment to control parameter, when encoding to the control unit as a coding units, generation can make The code rate of code stream reaches or is bordering on preset code rate.In most of rate control algorithms, some code rate mould can be all set Type obtains the relationship between the number of coded bits of control unit and control parameter according to code rate model, to utilize this pass System meets scheduled code rate requirement.It is widely different due to different video sequence, using changeless code rate model, It cannot be fitted all video sequences well, to avoid the problem, it will usually be updated to code rate model.
In the prior art, code rate model is directed to one or more model parameters, real by encoded control unit The number of coded bits and control parameter on border adjust the value of model parameter, and then realize the update of code rate model.However, this code Rate model update method can not accurately update code rate model, reduce the accuracy of code rate control.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of code rate model update method and device, to solve existing skill The problem of code rate model modification existing for art is not accurate enough, the accuracy for causing code rate to control.
A kind of code rate model update method is provided based on the above-mentioned purpose present invention, comprising:
Control unit is encoded according to determining coding mode using control parameter collection, is obtained in described control unit Each of piece transform block encoded under corresponding encoded mode;And determine described control unit is encoded after obtain Number of coded bits;
It determines one or more virtual controlling parameter sets near the control parameter collection, utilizes the virtual controlling parameter Collection quantifies the transform block respectively, obtains the virtual quantization block after quantifying to each transform block;Each institute It states the corresponding all virtual quantization blocks of virtual controlling parameter set and forms a virtual quantization set of blocks;
Entropy coding is carried out to the virtual quantization block in each virtual quantization set of blocks respectively, or uses approximate algorithm Virtual quantization block in each virtual quantization set of blocks is estimated respectively, obtains each virtual quantization set of blocks Corresponding virtual encoder bit number;
Using the control parameter collection, virtual controlling parameter set, number of coded bits and virtual encoder bit number, to described Code rate model is updated.
Optionally, the control parameter collection includes one or more control parameters, and the control parameter includes at least: quantization Parameter, quantization step, Lagrangian.
Optionally, described control unit includes: a picture frame, a maximum coding unit, a maximum coding unit Row, an image-region or a consecutive image group.
Optionally, the coding mode includes: during being encoded using control parameter collection to a control unit, The smallest coding mode of rate distortion costs corresponding to each piece in described control unit.
Optionally, the number of coded bits obtained after encoding to described control unit is determined, comprising: the control is single Each piece of the sum of the number of coded bits obtained after being encoded, the number of coded bits as described control unit in member.
Optionally, one or more virtual controlling parameter sets near the control parameter collection are determined, comprising: pass through increase Or the value of one or more control parameters in the reduction control parameter collection obtains one or more virtual controlling parameters Collection.
Optionally, described to utilize the control parameter collection, virtual controlling parameter set, number of coded bits and virtual encoder ratio Special number is updated the code rate model, comprising: passes through the control parameter collection, virtual controlling parameter set, number of coded bits And virtual encoder bit number carrys out the value of correction model parameter, realizes the update to the code rate model.
Optionally, the code rate model are as follows:
λ=α Bβ
Wherein, λ indicates Lagrangian;α and β respectively indicate model parameter;B presentation code bit number.
Optionally, according to following model modification formula come the value of correction model parameter:
Wherein, α and β respectively indicate model parameter;λiIndicate Lagrangian or virtual Lagrangian;BiIt indicates Number of coded bits or virtual encoder bit number.
A kind of code rate model modification device, comprising:
Coding module is obtained for being encoded to control unit according to determining coding mode using control parameter collection The transform block that each of described control unit piece encodes under corresponding encoded mode;And determine to described control unit into The number of coded bits obtained after row coding;
Quantization modules utilize institute for determining one or more virtual controlling parameter sets near the control parameter collection It states virtual controlling parameter set to quantify the transform block respectively, obtain virtual after quantifying to each transform block Quantify block;Corresponding all virtual quantization blocks composition one of each virtual controlling parameter set virtually quantifies set of blocks;
Estimation module, for it is each it is described it is virtual quantization set of blocks in virtual quantization block carry out entropy coding respectively, or Person estimates the virtual quantization block in each virtual quantization set of blocks using approximate algorithm respectively, obtains each described Virtual encoder bit number corresponding to virtual quantization set of blocks;
Update module, for utilizing the control parameter collection, virtual controlling parameter set, number of coded bits and virtual encoder Bit number is updated the code rate model.
This specification embodiment use at least one above-mentioned technical solution can reach it is following the utility model has the advantages that
The present invention encodes control unit by control parameter collection, obtains the encoding ratio after control unit is encoded Each of special number and control unit piece transform block encoded under corresponding encoded mode;Control parameter collection is determined again Neighbouring one or more virtual controlling parameter sets quantify above-mentioned transform block respectively using virtual controlling parameter set, obtain Virtual quantization block to after quantifying to each transform block, the corresponding all virtual quantization block groups of each virtual controlling parameter set At a virtual quantization set of blocks;Using entropy coding or approximate algorithm to all virtual amounts in each virtual quantization set of blocks Change block to be encoded or estimated respectively, obtains virtual encoder bit number corresponding to each virtual quantization set of blocks, finally utilize Control parameter collection, virtual controlling parameter set, number of coded bits and virtual encoder bit number, are updated code rate model.Base In the solution of the present invention, code rate model can be updated more accurately, and then improves the accuracy of code rate control.
Detailed description of the invention
Illustrate the embodiment of the present invention or technical solution in the prior art in order to clearer, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it is clear that below description in attached drawing be only this hair Bright embodiment without creative efforts, can also be according to offer for ordinary people in the field Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow diagram for code rate model update method that this specification embodiment provides;
Fig. 2 is the process schematic that the virtual controlling parameter set that this specification embodiment provides quantifies transform block;
Fig. 3 is a kind of structural schematic diagram for code rate model modification device that this specification embodiment provides.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described Embodiment be merely a part but not all of the embodiments of the present application.Based on this specification embodiment, this field Those of ordinary skill's every other embodiment obtained without creative efforts, all should belong to the application The range of protection.
Fig. 1 is a kind of flow diagram of code rate model update method provided in an embodiment of the present invention.This method specifically may be used With the following steps are included:
Step S101 encodes a control unit according to determining coding mode using control parameter collection, obtains The transform block that each of described control unit piece encodes under corresponding encoded mode;And determine to described control unit into The number of coded bits obtained after row coding.
In the embodiment of the present application, control parameter can be, for controlling the volume of encoder bit rate in rate control algorithm Code parameter.Control parameter can include but is not limited to: quantization parameter, quantization step or Lagrangian (Lambda) etc., or It is multiple in these parameters of person.By in rate control algorithm using to the collection of control parameter be collectively referred to as control parameter collection, control Include one or more control parameters in parameter set.
In the embodiment of the present application, control unit can be, a basic control unit, code rate in rate control algorithm Control algolithm adjusts code rate by adjusting the control parameter of control unit: in practical applications, using control unit as basic Unit adjusts control parameter.One control unit may include: a picture frame, a maximum coding unit, a maximum Coding unit row, an image-region or a consecutive image group;Wherein, a picture frame refers to, one in Video coding Frame image or a piece group;Maximum coding unit refers to, in Video coding a image block (for example, pixel be 64x64, The image block etc. of 32x32);Maximum coding unit row refers to, the identical all maximum coding units compositions of ordinate it is lateral One strip image-region;One image-region refers to, such as image is divided into upper and lower two parts, then upper and lower two parts can Using as an image-region;One consecutive image group can indicate continuous one group of image.
In the embodiment of the present application, during being encoded using control parameter collection to a control unit, first The control unit is divided into several blocks, each piece can choose different coding modes according to video encoding standard and be compiled Code, cataloged procedure are exactly that the mode for selecting cost performance to meet the requirements from all multiple coded modes is encoded, i.e., are determined by coding Plan process choosing goes out the coding mode that meets the requirements to encode.It can choose optimal volume in the embodiment of the present application, between different masses Pattern, concrete mode may include: that rate distortion costs (RDCost) corresponding to each piece in control unit are the smallest Coding mode, as the corresponding optimal coding mode of the block.Each piece is saved to encode under corresponding optimal coding mode Obtained transform block, and the sum of the coded-bit digit that each piece in control unit is obtained in encoded, as the control list The number of coded bits of member.
In a specific embodiment, such as: control parameter concentrate only include control parameter be Lagrangian λ, The control parameter collection is denoted as λ0;Also, control unit is used as using picture frame (for example, a frame), first with Lagrange Operator encodes this frame, this frame is divided into several blocks, takes each piece different coding moulds respectively later Formula is encoded, and selects the smallest coding mode of rate distortion costs, as the optimal coding mode of the block, is saved later each The transform block that block encodes under corresponding optimal coding mode will encode the encoding ratio actually obtained after this frame Special number scale is B0
In the embodiment of the present application, the selection the smallest coding mode of rate distortion costs refers to: owning in a control unit Block, using identical quantization step and Lagrangian, each piece when being encoded according to different modes, Bit number needed for available different coding mode and corresponding image fault, indicate image fault with D, indicate bit with B Number indicates that Lagrangian, the calculation formula of rate distortion costs are RDCost=D+ λ * B with λ;So, selection rate is distorted generation The smallest coding mode of valence, it may also be said to be, during the block to control unit encodes, in each piece of corresponding institute Have under coding mode, selects the smallest coding mode of value of D+ λ * B, the coding mode as the block.By to control unit Block is encoded, and the transform block obtained after being encoded with the coding mode to block is obtained.
It should be noted that in the embodiment of the present application, by selecting the smallest coding mode of rate distortion costs as control Each piece of optimal coding mode in unit obtains the transform block obtained after encoding under optimal coding mode to each piece; But in practical application, the smallest coding mode of rate distortion costs can not also be selected as optimal coding mode, but adopted Each piece is encoded with any or random coding mode, and obtains the transform block under any or random coded mode.
Step S102 determines one or more virtual controlling parameter sets near the control parameter collection, utilizes the void Quasi- control parameter collection quantifies the transform block respectively, obtains the virtual quantization after quantifying to each transform block Block;Corresponding all virtual quantization blocks composition one of each virtual controlling parameter set virtually quantifies set of blocks.
In the embodiment of the present application, it can determine that the one or more near control parameter collection is virtual using following methods Control parameter collection: the value by increasing or reducing one or more control parameters in control parameter collection obtains one or more void Quasi- control parameter collection.
Continue above-mentioned specific embodiment, control parameter is Lagrangian λ, and control parameter integrates as λ0, based on λ Parameter value determines control parameter collection λ by increasing or reducing the value of λ respectively0Two neighbouring virtual controlling parameter sets, such as λ1 And λ2, wherein virtual controlling parameter set λ1The λ, virtual controlling parameter set λ that corresponding Lagrangian is 1.5 times2It is corresponding The λ that Lagrangian is 0.75 times.
As shown in Fig. 2, the process quantified for the virtual controlling parameter set that this specification embodiment provides to transform block Schematic diagram, the figure shows carry out all transform blocks acquired in step s101 using a virtual controlling parameter set respectively Quantization, obtains the virtual quantization block after quantifying to each transform block;When the number of virtual controlling parameter set is multiple, press All transform blocks are quantified respectively using different virtual controlling parameter sets respectively according to identical process.Each virtual control The set for the virtual quantization block that parameter set processed obtains after quantifying respectively to all transform blocks, i.e. the virtual controlling parameter set pair The virtual quantization set of blocks answered.
In the embodiment of the present application, it when carrying out quantization operation respectively to transform block using virtual controlling parameter set, can adopt With following quantitative formula: V=(T+d)/S;Wherein, T indicates the value of a location point inside transform block;S indicates quantization step;d Indicate a constant value between 0~S;V indicates the value for quantifying corresponding position point on block after quantifying.
Step S103 carries out entropy coding to the virtual quantization block in each virtual quantization set of blocks respectively, or makes The virtual quantization block in each virtual quantization set of blocks is estimated respectively with approximate algorithm, is obtained each described virtual Quantify virtual encoder bit number corresponding to set of blocks.
In the embodiment of the present application, virtual encoder bit number can be obtained using following two mode: entropy coding algorithm and Approximate algorithm estimation;Specifically, by carrying out entropy coding respectively to all virtual quantization blocks in each virtual quantization set of blocks Algorithm or approximate algorithm estimation obtain the virtual encoder bit number of each virtual quantization block under a virtual quantization set of blocks, The virtual encoder bit number of virtual quantization blocks all under the virtual quantization set of blocks is added, so that it may obtain the virtual quantization block The corresponding virtual encoder bit number of set.
According to above-mentioned specific embodiment, control parameter collection λ is determined0Two neighbouring virtual controlling parameter sets, such as λ1And λ2, It is utilized respectively λ1And λ2All transform blocks obtained in step S101 are quantified respectively, are obtained a pair of with all transform blocks one The virtual quantization block answered, by λ1Under the set of all virtual quantization blocks be denoted as virtual quantization set of blocks P1, λ2Under it is all virtual The set of quantization block is denoted as virtual quantization set of blocks P2;By to P1In all virtual quantization blocks carry out entropy coding algorithm respectively Or approximate algorithm estimation, and the P that estimation is obtained1In it is all it is virtual quantization blocks virtual encoder bit numbers be added, just obtain λ1 Under virtual encoder bit number B1, also available λ in the same manner2Under virtual encoder bit number B2, no longer superfluous herein It states.
In the embodiment of the present application, approximate algorithm estimation can be carried out to virtual quantization block in the following ways, if it is empty Analog quantity block is M*N, there is M*N quantized value, wherein non-zero quantized value number is Num, then encoding this virtual quantization Virtual encoder bit number required for block can be Num.
Step S104 utilizes the control parameter collection, virtual controlling parameter set, number of coded bits and virtual encoder bit Number, is updated the code rate model.
In the embodiment of the present application, control parameter collection, virtual controlling parameter set, number of coded bits and virtual be can use Number of coded bits carrys out the value of correction model parameter, realizes the update to code rate model.Code rate model can be presented as one or one Group formula, this formula are used to describe the functional relation between code rate, distortion and control parameter.The formula of this functional relation In can also include some constants, these constants can be called model parameter.For example, in one specific embodiment of the application, Code rate model can indicate are as follows:
λ=α Bβ
Wherein, λ indicates Lagrangian;α and β respectively indicate model parameter;B presentation code bit number.
In the embodiment of the present application, code rate refers to the number of coded bits of unit time, such as the unit time is one second, then code Rate is exactly the number of coded bits in one second.Therefore, the B in above-mentioned code rate model can also indicate the number of coded bits in one second, That is code rate.For the embodiment of the present application with a frame for a control unit, different code rate models is can be used in different type picture frame, With different model parameters;First frame in same type picture frame is when carrying out code rate control, if without historical data It can refer to, it may be considered that use the model parameter of default.
According to above-mentioned code rate model, control parameter collection, virtual controlling parameter set, number of coded bits and virtual encoder are utilized Bit number carrys out the value of correction model parameter, the mode of concrete modification can there are many.Here it is possible to public according to following model modification Formula carrys out the value of correction model parameter:
Wherein, α and β respectively indicate model parameter;λiIndicate Lagrangian and virtual Lagrangian;BiIt indicates Number of coded bits and virtual encoder bit number.
Continue above-mentioned specific embodiment, firstly, utilizing control parameter collection λ in step s1010One frame image is compiled Code determines the transform block obtained after encoding to block all in the picture frame, and actually obtains after having encoded the picture frame To number of coded bits be denoted as B0;Secondly, determining control parameter collection λ0Two neighbouring virtual controlling parameter set λ1And λ2, then Utilize λ1And λ2Obtained transform block is quantified respectively, and entropy volume is carried out respectively to all virtual quantization blocks after quantization Code algorithm or approximate algorithm estimation, obtain virtual controlling parameter set λ1And λ2Under virtual encoder bit number B1And B2.Finally, According to above-mentioned model modification formula, pass through obtained control parameter collection λ0, virtual controlling parameter set λ1And λ2, number of coded bits B0 With virtual encoder bit number B1And B2, the value of model parameter is modified.The application realizes code by the value of correction model parameter The update of rate model, updated code rate model can also be further used for the code rate control of subsequent control unit.
It is single having encoded a control using control parameter collection by step S101 to step S104 according to previous embodiment After member, true number of coded bits under available practical control parameter collection, by determining near practical control parameter collection One or more virtual controlling parameter sets quantify transform block using virtual controlling parameter set, respectively after being quantified Virtual quantization block, and virtual quantization block progress entropy coding or approximate algorithm are estimated to obtain virtual encoder bit number, finally use Practical control parameter collection and true number of coded bits and virtual controlling parameter set and virtual encoder bit number, to code rate mould Type is updated;The update of code rate model is completed, jointly by actual and virtual parameter and bit number so as to more Code rate model is accurately updated, and then improves the accuracy of code rate control.
It should be noted that the above content in step S104 is the code rate model under one specific embodiment of the application And the model modification formula of the corresponding code rate model, in practical application, the application is not limited to above-mentioned code rate model, all uses It in the rate control algorithm of code rate model, needs to constantly update the model parameter of code rate model in an encoding process, can adopt The code rate model in rate control algorithm is updated with the application method.
Based on same thinking, this specification embodiment additionally provides a kind of code rate model modification device, if Fig. 3 is this theory A kind of code rate model modification device that bright book embodiment provides, the device 300 specifically include that
Coding module 301 is obtained for being encoded to control unit according to determining coding mode using control parameter collection The transform block for taking each of described control unit piece to encode under corresponding encoded mode;And it determines to described control unit The number of coded bits obtained after being encoded;
Quantization modules 302 are utilized for determining one or more virtual controlling parameter sets near the control parameter collection The virtual controlling parameter set quantifies the transform block respectively, obtains the void after quantifying to each transform block Analog quantity block;Corresponding all virtual quantization blocks composition one of each virtual controlling parameter set virtually quantifies set of blocks;
Estimation module 303, for carrying out entropy coding respectively to the virtual quantization block in each virtual quantization set of blocks, Or the virtual quantization block in each virtual quantization set of blocks is estimated respectively using approximate algorithm, obtain each institute State virtual encoder bit number corresponding to virtual quantization set of blocks;
Update module 304, for utilizing the control parameter collection, virtual controlling parameter set, number of coded bits and virtual Number of coded bits is updated the code rate model.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and what each implementation emphasis illustrated is the difference from other embodiments.Especially for device, For electronic equipment, nonvolatile computer storage media embodiment, since it is substantially similar to the method embodiment, so description It is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
This specification is referring to the method, equipment (system) and computer program product according to this specification embodiment Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers Processor of the program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices To generate a machine, so that generating use by the instruction that computer or the processor of other programmable data processing devices execute In the dress for realizing the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram It sets.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can Without departing from the spirit and scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest Range.

Claims (10)

1. a kind of code rate model update method characterized by comprising
Control unit is encoded according to determining coding mode using control parameter collection, is obtained every in described control unit The transform block that a block encodes under corresponding encoded mode;And determine described control unit is encoded after obtained coding Bit number;
It determines one or more virtual controlling parameter sets near the control parameter collection, utilizes the virtual controlling parameter set pair The transform block is quantified respectively, obtains the virtual quantization block after quantifying to each transform block;Each void Corresponding all virtual quantization blocks composition one of quasi- control parameter collection virtually quantifies set of blocks;
Entropy coding is carried out respectively to the virtual quantization block in each virtual quantization set of blocks, or using approximate algorithm to every Virtual quantization block in a virtual quantization set of blocks is estimated respectively, and it is right to obtain each virtual quantization set of blocks institute The virtual encoder bit number answered;
Using the control parameter collection, virtual controlling parameter set, number of coded bits and virtual encoder bit number, to the code rate Model is updated.
2. the method according to claim 1, wherein the control parameter collection includes one or more control ginsengs Number, the control parameter include at least: quantization parameter, quantization step, Lagrangian.
3. the method according to claim 1, wherein described control unit includes: a picture frame, a maximum Coding unit, a maximum coding unit row, an image-region or a consecutive image group.
4. the method according to claim 1, wherein the coding mode includes: using control parameter collection to one During a control unit is encoded, the smallest coding mould of rate distortion costs corresponding to each piece in described control unit Formula.
5. the method according to claim 1, wherein the volume that determination obtains after encoding to described control unit Code bit number, comprising:
The sum of the number of coded bits obtained after each piece in described control unit is encoded, the volume as described control unit Code bit number.
6. the method according to claim 1, wherein determining that the one or more near the control parameter collection is empty Quasi- control parameter collection, comprising:
Value by increasing or reducing one or more control parameters in the control parameter collection obtains described in one or more Virtual controlling parameter set.
7. the method according to claim 1, wherein described utilize the control parameter collection, virtual controlling parameter Collection, number of coded bits and virtual encoder bit number, are updated the code rate model, comprising:
By the control parameter collection, virtual controlling parameter set, number of coded bits and virtual encoder bit number come correction model The value of parameter realizes the update to the code rate model.
8. the method according to the description of claim 7 is characterized in that the code rate model are as follows:
λ=α Bβ
Wherein, λ indicates Lagrangian;α and β respectively indicate model parameter;B presentation code bit number.
9. according to the method described in claim 8, it is characterized in that, according to following model modification formula come correction model parameter Value:
Wherein, α and β respectively indicate model parameter;λiIndicate Lagrangian or virtual Lagrangian;BiPresentation code Bit number or virtual encoder bit number.
10. a kind of code rate model modification device characterized by comprising
Coding module, for being encoded to control unit according to determining coding mode using control parameter collection, described in acquisition The transform block that each of control unit piece encodes under corresponding encoded mode;And described control unit is compiled in determination The number of coded bits obtained after code;
Quantization modules utilize the void for determining one or more virtual controlling parameter sets near the control parameter collection Quasi- control parameter collection quantifies the transform block respectively, obtains the virtual quantization after quantifying to each transform block Block;Corresponding all virtual quantization blocks composition one of each virtual controlling parameter set virtually quantifies set of blocks;
Estimation module or makes for carrying out entropy coding respectively to the virtual quantization block in each virtual quantization set of blocks The virtual quantization block in each virtual quantization set of blocks is estimated respectively with approximate algorithm, is obtained each described virtual Quantify virtual encoder bit number corresponding to set of blocks;
Update module, for utilizing the control parameter collection, virtual controlling parameter set, number of coded bits and virtual encoder bit Number, is updated the code rate model.
CN201910026382.8A 2019-01-08 2019-01-08 A kind of code rate model update method and device Active CN109743572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910026382.8A CN109743572B (en) 2019-01-08 2019-01-08 A kind of code rate model update method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910026382.8A CN109743572B (en) 2019-01-08 2019-01-08 A kind of code rate model update method and device

Publications (2)

Publication Number Publication Date
CN109743572A CN109743572A (en) 2019-05-10
CN109743572B true CN109743572B (en) 2019-12-03

Family

ID=66364488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910026382.8A Active CN109743572B (en) 2019-01-08 2019-01-08 A kind of code rate model update method and device

Country Status (1)

Country Link
CN (1) CN109743572B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365981B (en) * 2019-07-10 2021-12-24 中移(杭州)信息技术有限公司 Video coding method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188752A (en) * 2007-12-18 2008-05-28 方春 A self-adapted code rate control method based on relevancy
CN101466040A (en) * 2009-01-09 2009-06-24 北京大学 Code rate estimation method for video encoding mode decision
CN103888765A (en) * 2014-03-27 2014-06-25 天格科技(杭州)有限公司 H.265 rate control method for improved R-lambda model
CN103957410A (en) * 2013-12-30 2014-07-30 南京邮电大学 I-frame code rate control method based on residual frequency domain complexity
CN106231320A (en) * 2016-08-31 2016-12-14 上海交通大学 A kind of unicode rate control method supporting multi-host parallel to encode and system
CN106454360A (en) * 2016-10-26 2017-02-22 北京大学深圳研究生院 Intra-frame coding code rate estimation method in video coding
CN108235025A (en) * 2018-03-13 2018-06-29 电子科技大学 The Lagrange multiplier optimization method of reference configuration between adaptive frame

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100540655B1 (en) * 2003-01-23 2006-01-10 삼성전자주식회사 Rate control method and apparatus in video coding
US7986731B2 (en) * 2004-02-06 2011-07-26 Apple Inc. H.264/AVC coder incorporating rate and quality controller
TWI394462B (en) * 2010-06-22 2013-04-21 Univ Nat Taiwan Rate control method of perceptual-based rate-distortion optimized bit allocation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188752A (en) * 2007-12-18 2008-05-28 方春 A self-adapted code rate control method based on relevancy
CN101466040A (en) * 2009-01-09 2009-06-24 北京大学 Code rate estimation method for video encoding mode decision
CN103957410A (en) * 2013-12-30 2014-07-30 南京邮电大学 I-frame code rate control method based on residual frequency domain complexity
CN103888765A (en) * 2014-03-27 2014-06-25 天格科技(杭州)有限公司 H.265 rate control method for improved R-lambda model
CN106231320A (en) * 2016-08-31 2016-12-14 上海交通大学 A kind of unicode rate control method supporting multi-host parallel to encode and system
CN106454360A (en) * 2016-10-26 2017-02-22 北京大学深圳研究生院 Intra-frame coding code rate estimation method in video coding
CN108235025A (en) * 2018-03-13 2018-06-29 电子科技大学 The Lagrange multiplier optimization method of reference configuration between adaptive frame

Also Published As

Publication number Publication date
CN109743572A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN101771868B (en) To quantizing method and the device of image
CN104602010B (en) Method and apparatus for encoding and decoding coding unit of picture boundary
CN104363450B (en) A kind of intra-frame encoding mode decision-making technique and device
CN104219522B (en) Bit rate control method and device in a kind of encoding video pictures
CN106937116B (en) Low-complexity video coding method based on random training set adaptive learning
CN104349167B (en) A kind of method of adjustment of Video coding rate-distortion optimization
CN1941915A (en) Video encoding method and apparatus
CN101572806B (en) Frame I code rate control method based on H264
CN104718753B (en) Compressed using the bounded rate of chipping rate control
CN103957410B (en) I-frame code rate control method based on residual frequency domain complexity
CN103997645B (en) Quick HEVC intra-frame coding unit and pattern decision method
CN101584215A (en) Integrated spatial-temporal prediction
CN110225343A (en) A kind of bit rate control method and device of Video coding
CN102647586A (en) Code rate control method and device used in video coding system
CN104754335B (en) A kind of code rate controlling method for video coding
CN106412594A (en) Panoramic image encoding method and apparatus
CN109743572B (en) A kind of code rate model update method and device
CN101335891B (en) Video rate control method and video rate controller
CN104104951A (en) Rate control method for screen content coding in HEVC
CN107087192A (en) Target bit rate method of adjustment and device
CN108200431A (en) A kind of video frequency coding rate controls frame-layer Bit distribution method
CN104333761B (en) A kind of HEVC elementary cells level bit-rate distribution method
CN103533365A (en) Bit rate control method and bit rate control system
CN110162290A (en) A kind of compression method for OLED screen DeMURA data
CN108347602A (en) Method and apparatus for lossless compression video data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221118

Address after: 518000 C430U8, Block B, No. 1021, Houhai Avenue, Yuyi Community, Shekou Street, Nanshan District, Shenzhen, Guangdong

Patentee after: Shenzhen Immersion Vision Technology Co.,Ltd.

Address before: 518000 506, Building 13, Maker Town, Xili Town, University Town, Nanshan District, Shenzhen, Guangdong

Patentee before: SHENZHEN UV VISUAL TECHNOLOGY Co.,Ltd.