Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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.

Active Publication Date: 2021-11-12
北京君正集成电路股份有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Take the calculation of the bit-count of the residual coefficient (residual-coefficient) as an example. Since the calculation of the bit-count of the residual-coefficient is serially calculated, if the number of residual-coefficient is large, it is obvious that the calculation process of the bit-count It will be very slow, which will take a long time to get Cost and reduce the efficiency of video encoding

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for calculating code stream length
  • A method and device for calculating code stream length
  • A method and device for calculating code stream length

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, and to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the present invention will be further detailed below in conjunction with the accompanying drawings illustrate.

[0047] Introduce with specific embodiment below:

[0048] Such as figure 1 As shown, the embodiment of the present invention provides a method for calculating the code stream length, and the flow of the method is described as follows:

[0049] Step 101: In the process of encoding the video, obtain at least two residual coefficients in the first video frame that need to calculate the code stream length through a decision mode; the first video frame is any video frame in the video ;

[0050] Step 102: Calculate in parallel the length of a code stream obtained by encoding eac...

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

PUM

No PUM Login to View More

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.

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04N19/103H04N19/136H04N19/147H04N19/19H04N19/436
CPCH04N19/103H04N19/136H04N19/147H04N19/19H04N19/436
Inventor 许义远
Owner 北京君正集成电路股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products