A data lock-free caching method and server for video surveillance equipment

A video surveillance and data technology, applied in digital data processing, input/output process of data processing, instruments, etc., can solve the problems of low memory usage efficiency, unstable data size of each frame, unstable preview module, etc.

Active Publication Date: 2021-04-30
成都焱之阳科技有限公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In addition, in order to ensure the correctness of the read and write data, a mutex is added between the read and write threads for isolation operations. On average, a lock / unlock operation is performed every 30ms, which reduces the utilization efficiency of the system CPU. At the same time, it also repeatedly Dynamically apply for / release memory, resulting in a large number of memory fragments, resulting in low memory usage efficiency, which in turn affects the instability of product storage modules and preview modules
Another solution uses a fixed-size circular buffer queue for recycling, but since the size of each frame of data is not fixed during the actual operation of the product, this method will lead to waste of memory
These have greatly reduced the efficiency of data cache usage, leading to the problem of low efficiency of data cache

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 data lock-free caching method and server for video surveillance equipment
  • A data lock-free caching method and server for video surveillance equipment
  • A data lock-free caching method and server for video surveillance equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0054] Such as figure 1 As shown, the embodiment of the present invention provides a data lock-free caching method for video surveillance equipment, including:

[0055] S101. Initialize the buffer area, the buffer area includes an index area and a data area, wherein the data area is used to store the data stream to be processed by the video surveillance equipment; the index area is used to record that the data stream is stored in the The start and end positio...

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 provides a data stream lock-free caching method and server for video monitoring equipment, including: initializing a buffer area, the buffer area includes an index area and a data area; when the data stream is collected, the data stream is processed Encapsulating, obtaining the encapsulated data; when the length of the frame data in the encapsulated data exceeds the preset maximum single frame length, discarding the encapsulated data; when the length of the frame data in the encapsulated data does not exceed the preset When the maximum single frame length of the packaged data is stored in the data area, and the start and end position information of the encapsulated data in the data area is stored in the index area; When the data acquisition command is executed in the index area, the corresponding encapsulated data in the data area is obtained through the start and end position information stored in the index area, and the encapsulated data is sent. This method greatly saves system resource calls and improves the efficiency of data caching.

Description

technical field [0001] The invention relates to the technical field of video monitoring, in particular to a data lock-free caching method and server for video monitoring equipment. Background technique [0002] Existing video surveillance equipment caches data using chained splicing caches. When data streams are generated, the required memory is temporarily requested from the system dynamically and connected to the end of the previous storage node to form chained storage. Due to the "consumption" cycle Uncertain and irregular existence of multiple "consumers", while "producer" data is continuous, it is easy to cause data accumulation, resulting in a large amount of memory not being released in time. [0003] Among them, the producer of data refers to the electronic device that generates data, for example, the producer of the camera when the camera collects video data stream; the consumer of data refers to the electronic device that uses the data, for example, displaying surv...

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): G06F3/06
CPCG06F3/061G06F3/0644G06F3/0656G06F3/0676
Inventor 刘宇健文毅曾俊
Owner 成都焱之阳科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products