Method and device for using annular data buffer to read and write batch data

A ring buffer and ring data technology, which is applied in the direction of electrical digital data processing, instruments, etc., can solve the problem of mutual exclusion of read data and write data, and achieve the effect of providing accuracy and ensuring efficiency

Active Publication Date: 2012-07-18
TCL CORPORATION
View PDF3 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to provide a method and device for reading and writing batch data with a ring data buffer in view of the above-mentioned defe

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 using annular data buffer to read and write batch data
  • Method and device for using annular data buffer to read and write batch data
  • Method and device for using annular data buffer to read and write batch data

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0053] The method and device for reading and writing batch data using a ring data buffer provided by the present invention, in order to make the objectives, technical solutions, and advantages of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.

[0054] An embodiment of the present invention uses a ring data buffer to read and write batch data, such as figure 1 As shown, it mainly includes the following steps:

[0055] Step S100: When there is a data write request, the write pointer calculates the starting position of the data currently to be written in the ring data buffer, reads the peripheral data, and starts writing data to the ring buffer from the starting position , The value of the write pointer is increased by 1 aft...

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 a device for using an annular data buffer to read and write batch data. The method includes: when a data writing request is received, a writing pointer calculates an initial position of data to be written currently in the annular data buffer to read peripheral data and write data in the annular data buffer from the initial position, and 1 is added to the numerical value of the writing pointer after writing is completed; when a data reading request is received, a reading pointer calculates the position of data needed to be read currently and reads the data from the position, and 1 is added to the numerical value of the reading pointer after reading is completed; and when the annular data buffer is abnormal, corresponding operation is performed according to the abnormal types. The writing process and the reading process are executed separately to monitor abnormality of the annular data buffer, when the annular data buffer is abnormal, the reading pointer and the writing pointer are adjusted to enable data to be read and written smoothly, and accordingly data transmission efficiency is guaranteed, and data transmission precision is further improved.

Description

technical field [0001] The invention relates to the field of image data processing, in particular to a method and device for reading and writing batch data by using a ring data buffer. Background technique [0002] In image processing, it is often necessary to collect batch data or display multiple images. Ensuring the integrity of data is the basic requirement of image processing. Therefore, data transmission and communication are the key during image processing. [0003] Usually, the data is buffered from the peripheral data to the memory of the terminal device before being processed. However, whether it is a personal computer (PC) or other embedded device terminals, the memory is always limited, and one memory is applied for buffering at a time. These data are more difficult, so it is necessary to use the data structure of the ring data buffer to solve this problem. [0004] The ring buffer is a first-in-first-out circular buffer, which usually has a read pointer and a w...

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
IPC IPC(8): G06F13/16
Inventor 刘亚萍
Owner TCL CORPORATION
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