Data buffering process and device
A data buffering and data technology, which is applied in the field of data processing, can solve problems such as differences in data processing capabilities, low adaptability of processing terminals, poor data buffering effect, etc., and achieve the effect of reducing loss and good data buffering effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0022] figure 1 It is a flow chart of the data buffer processing method provided by the first embodiment of the present invention. Such as figure 1 As shown, the method for data buffering in this embodiment includes:
[0023] Step 11. Receive data, buffer the received data into the data bit whose attribute is the first state in the buffer, and update the attribute of the corresponding data bit to the second state, wherein the first state is used to indicate that the data bit has no cached data Alternatively, it indicates that the data bit is buffered with data and the data has been processed, and the second state is used to indicate that the data bit is buffered with data and the data is to be processed.
[0024] According to the data storage situation of the data bit itself, the attribute of any data bit in the buffer can be set to one of three different optional states, which is used to indicate in real time whether the data bit currently has data in the cache and the curr...
no. 2 example
[0037] figure 2 It is a flow chart of the data buffer processing method provided by the second embodiment of the present invention. In this embodiment, the attribute of any data bit in the buffer can be set to one of three optional states according to whether there is data in the cache and the current processing state of the data, assuming that the three optional states are: "empty", " "To be processed" and "processing" respectively correspond to the first state, the second state and the third state described in the implementation of the present invention. Such as figure 2 As shown, the method for data buffering in this embodiment includes:
[0038] Step 21 , with the preset time length as the detection cycle, periodically detect whether there is a data bit whose attribute is "empty" in the buffer, if yes, execute step 22, otherwise execute step 23.
[0039] In this step, periodic detection is an optional solution, that is, the receiving end can also adopt alternative sol...
no. 3 example
[0058] image 3 It is an example of the application scenario of the method for data buffering provided by the embodiment of the present invention. image 3 The application scenario shown is illustrated by taking audio data playback as an example. In this application scenario, the processing end connected to the buffer may be a device capable of processing audio data, such as a sound card. The attribute of any data bit can be set to one of three optional states according to whether it has data cached and the current processing state of the data. Assuming that the three optional states are respectively represented by the setting value of a certain flag in the data bit attribute information, the figure only shows the flag bits of some data bits in the buffer, for example:
[0059] 0: "empty bit", corresponding to the first state described in the implementation of the present invention, indicating that the data bit can be used to store new data;
[0060] 1: "to be played", corre...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 