Bit rate allocation method, apparatus, and storage medium for code units in video coding
AssigneeTencent Technology (Shenzhen) Company Limited
InventorXu Nan Mao
Life of this patent
Estimating the term…
Abstract
A bit rate allocation method for video coding and a bit rate allocation method for code units are applied to a client or a server. The method includes: obtaining a target bit rate and a coded bit rate of a current frame; determining a frame uncoded bit rate based on the target bit rate and the coded bit rate; obtaining current code unit prediction costs and frame uncoded unit prediction costs that are determined based on precoding; and determining a target bit rate of a current to-be-coded code unit based on the frame uncoded bit rate and a cost ratio, the cost ratio being a ratio of the current code unit prediction costs to the frame uncoded unit prediction costs.
Claims20
A bit rate allocation method for code units in video coding, applied to a user terminal or a server, and comprising:
- obtaining a target bit rate and a coded bit rate of a current frame, the coded bit rate being determined based on an actual bit rate of each coded code unit in the current frame;
- determining a frame uncoded bit rate based on the target bit rate and the coded bit rate of the current frame;
- obtaining current code unit prediction costs and frame uncoded unit prediction costs that are determined based on precoding, the current code unit prediction costs being unit prediction costs of a current to-be-coded code unit among uncoded code units in the current frame, and the frame uncoded unit prediction costs being determined based on unit prediction costs of the uncoded code units in the current frame;
- and
- determining a target bit rate of the current to-be-coded code unit based on the frame uncoded bit rate and a cost ratio, the cost ratio being a ratio of the current code unit prediction costs to the frame uncoded unit prediction costs.
A bit rate allocation apparatus for code units in video coding comprising:
- at least one memory operable to store program code;
- and
- at least one processor operable to access said at least one memory, read said program code, and operate according to said program code, said program code comprising:
- first obtaining code configured to cause the at least one processor to obtain a target bit rate and a coded bit rate of a current frame, the coded bit rate being determined based on an actual bit rate of each coded code unit in the current frame;
- first determining code configured to cause the at least one processor to determine a frame uncoded bit rate based on the target bit rate and the coded bit rate of the current frame;
- second obtaining code configured to cause the at least one processor to obtain current code unit prediction costs and frame uncoded unit prediction costs that are determined based on precoding, the current code unit prediction costs being unit prediction costs of a current to-be-coded code unit among uncoded code units in the current frame, and the frame uncoded unit prediction costs being determined based on unit prediction costs of the uncoded code units in the current frame;
- and
- second determining code configured to cause the at least one processor to determine a target bit rate of the current to-be-coded code unit based on the frame uncoded bit rate and a cost ratio, the cost ratio being a ratio of the current code unit prediction costs to the frame uncoded unit prediction costs.
A non-transitory computer readable storage medium storing instructions, which, when executed by one or more processors, cause the one or more processors to perform:
- obtaining a target bit rate and a coded bit rate of a current frame, the coded bit rate being determined based on an actual bit rate of each coded code unit in the current frame;
- determining a frame uncoded bit rate based on the target bit rate and the coded bit rate of the current frame;
- obtaining current code unit prediction costs and frame uncoded unit prediction costs that are determined based on precoding, the current code unit prediction costs being unit prediction costs of a current to-be-coded code unit among uncoded code units in the current frame, and the frame uncoded unit prediction costs being determined based on unit prediction costs of the uncoded code units in the current frame;
- and
- determining a target bit rate of the current to-be-coded code unit based on the frame uncoded bit rate and a cost ratio, the cost ratio being a ratio of the current code unit prediction costs to the frame uncoded unit prediction costs.
Dependencies are inferred from the claim text.