A method and device for calculating code stream length
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 北京君正集成电路股份有限公司
- Publication Date
- 2021-11-12
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The present invention relates to the technical field of video encoding, in particular to a method and device for calculating the length of a code stream. Background technique
[0002] When performing H.264 encoding, for each video frame, in order to select the optimal encoding mode, it is generally necessary to traverse each mode, and finally select the optimal mode through comparison. In mode selection, a commonly used basis for selection is Cost, which can be calculated by formula (1):
[0003] Cost=Distortion+bit-count*lambda (1)
[0004] Among them, Distortion is used to indicate the degree of difference between the compressed image and the uncompressed image. The larger the Distortion, the worse the effect of this mode. bit-count is the cost to describe the number of bits (bits) required to write all the information required for encoding into the code stream, that is, the length of the code stream obtained after encoding. The more bits required,...