A method and device for calculating code stream length

A calculation method and code stream technology, applied in the field of video coding, can solve the problems of slow calculation process, reduced video coding efficiency, long time required to obtain Cost, etc., to achieve the effect of improving efficiency, improving calculation speed and shortening time.
CN108206950BActive Publication Date: 2021-11-12北京君正集成电路股份有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
北京君正集成电路股份有限公司
Publication Date
2021-11-12

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The present invention relates to a code stream length calculation method and equipment, comprising: in the process of encoding video, at least two residual coefficients that need to be calculated in a decision mode to calculate the code stream length in the first video frame are obtained; the first A video frame is any video frame in the video; the length of the code stream obtained after encoding each residual coefficient in the at least two residual coefficients is calculated in parallel. In the code stream length calculation method provided by the embodiment of the present invention, when calculating the code stream length obtained after encoding the residual-coefficient, a parallel calculation method can be used instead of a serial method, which can greatly improve the calculation speed and shorten the obtained Cost time, improve the efficiency of video encoding. Especially in the process of real-time encoding, the method provided by the embodiment of the present invention will have relatively great advantages.
Need to check novelty before this filing date? Find Prior Art

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,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More