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

Cache allocation method for video data

A technology for cache allocation and video data, applied in the computer field, can solve the problems of increased memory waste rate and decreased hit rate, and achieve the effect of reducing fragmentation, solving low hit rate, and improving memory usage rate.

Active Publication Date: 2020-07-28
ZHENGZHOU SEANET TECH CO LTD
View PDF9 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to solve the problems in the prior art that the memory pool using a fixed-size value memory block will produce a significant drop in hit rate or a sharp increase in memory waste rate,

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
  • Cache allocation method for video data

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0067] Step S101, detecting video request conversion, including creating a new video playback request and code rate conversion request;

[0068] Step S102, when the video request changes, according to the current video request and playback history information statistics, three memory pools are established to cache different types of video frame data respectively; the media data is mainly composed of I frame, P frame and B frame, according to Bit rate compression algorithm, when the video bit rate is different, the proportion and size of the I frame, P frame and B frame in the video data will change; if the current video playback request is a bit rate of 480P, according to historical information statistics, The ratio of I, P, and B is 4:2:1, and the ratio of the size of the three established memory pools is 4:2:1. In terms of the data volume of the video data frame, I frame>P frame>B frame , so the size of the memory block in the memory pool corresponding to the I frame is set ...

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 provides a cache allocation method for video data, which comprises the following steps of: 1) establishing N memory pools according to a video type and historical playing information, and calculating and allocating initial size values of the N memory pools according to a code rate and the historical playing information of a current video request; 2) dividing each memory pool into a plurality of memory blocks; allocating an initial size value of each memory block; 3) determining a memory pool to which cache is allocated according to the video type of the current video request, andcaching the current video frame data in the memory pool; and 4) adjusting the size value of the memory block of the memory pool according to the memory state of the memory pool after caching the current video frame data. By adopting the cache allocation method of the video data, the characteristics of the video can be considered, the problems of low hit rate and memory waste caused by size valuetransformation of the video data when the video resolution is switched are particularly solved, and the memory utilization rate is effectively improved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a video data cache allocation method. Background technique [0002] With the rapid development of media services and the continuous pursuit of higher quality, especially the increasing amount of video data, the video data on the terminal needs to receive, cache and copy a large number of processing operations, involving frequent allocation of memory , release, which seriously affects the video processing efficiency of the embedded media terminal, and may further cause problems such as unsmooth operation and stuck playback when playing high-definition media. In order to improve the video data processing efficiency of embedded terminals, it can generally be solved by using a memory pool. The memory pool is to allocate memory in advance, so as to effectively avoid frequent allocation and release of memory. At present, there are two main methods: [0003] The first is to cache the video dat...

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): H04N21/433H04N21/4402G06F12/0871G06F12/0862
CPCG06F12/0862G06F12/0871H04N21/433H04N21/4402
Inventor 朱小勇冯航伟宋锐星
Owner ZHENGZHOU SEANET 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