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

Method and device for optimizing memory of audio and video codec and storage medium

A codec, audio and video technology, applied in multi-channel programming devices, instruments, program control design, etc., can solve the problem of large memory consumption of audio and video codecs, achieve memory optimization, reduce consumption, and optimize memory Effect

Pending Publication Date: 2021-03-16
BEIJING BAIRUI INTERNET TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of this application is to provide a method, device and storage medium for optimizing the memory of audio and video codecs to solve the problem of large memory consumption of audio and video codecs in the prior art

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
  • Method and device for optimizing memory of audio and video codec and storage medium
  • Method and device for optimizing memory of audio and video codec and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0011] The preferred embodiments of the application will be described in detail below in conjunction with the accompanying drawings, so that the advantages and features of the application can be more easily understood by those skilled in the art, so as to define the protection scope of the application more clearly.

[0012] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elemen...

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 invention discloses a method and device for optimizing a memory of an audio and video codec and a storage medium, and relates to the technical field of memory optimization. The method comprises the following steps: according to the life cycle of each variable in an audio and video codec, dividing the variables with no intersection in the life cycle into one group; in any two groups, determining whether an intersection exists between the life cycles of the first maximum variable corresponding to the smaller group and the second maximum variable corresponding to the larger group or not; if the intersection does not exist, merging the smaller group into the larger group, wherein in the smaller group, the sum of the byte number occupied by the first maximum variable and the byte number occupied by the third variable is smaller than or equal to the byte number occupied by the second maximum variable; and according to the final grouping result, allocating the corresponding same memory unit to the variables in each group. By analyzing the life cycle of each variable in the audio and video codec, each variable is grouped to share the same memory unit, so that the consumption of the memory is reduced, and the optimization of the memory of the established audio and video codec is realized.

Description

technical field [0001] The present application relates to the technical field of memory optimization, in particular to a method, device and storage medium for optimizing the memory of an audio and video codec. Background technique [0002] There are two existing memory allocation methods: 1. Use the dynamic memory allocation method. When a continuous memory block needs to be used, a continuous memory block is allocated to it; Block release, this (NEW / FREE method) or (Malloc / Free method) dynamic memory allocation method will get the lowest memory usage, each data unit is allocated according to its complete life cycle, that is, when it starts to be used, and ends Release when used. 2. Use the static memory allocation method. During initialization, a fixed-size memory is allocated and divided into two types: (1) It is a globally fixed and independently used memory area. Each variable occupies a fixed position by itself and does not need to be linked with Other variable sharin...

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 Applications(China)
IPC IPC(8): G06F9/50
CPCG06F9/5016
Inventor 王尧李强叶东翔朱勇
Owner BEIJING BAIRUI INTERNET TECH CO LTD
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