[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110377262B - Data storage method and device, storage medium and processor - Google Patents

Data storage method and device, storage medium and processor Download PDF

Info

Publication number
CN110377262B
CN110377262B CN201910578675.7A CN201910578675A CN110377262B CN 110377262 B CN110377262 B CN 110377262B CN 201910578675 A CN201910578675 A CN 201910578675A CN 110377262 B CN110377262 B CN 110377262B
Authority
CN
China
Prior art keywords
data
row
target
data packet
storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910578675.7A
Other languages
Chinese (zh)
Other versions
CN110377262A (en
Inventor
郭春成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Analogix China Semiconductor Inc
Analogix International LLC
Original Assignee
Analogix China Semiconductor Inc
Analogix International LLC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Analogix China Semiconductor Inc, Analogix International LLC filed Critical Analogix China Semiconductor Inc
Priority to CN201910578675.7A priority Critical patent/CN110377262B/en
Publication of CN110377262A publication Critical patent/CN110377262A/en
Application granted granted Critical
Publication of CN110377262B publication Critical patent/CN110377262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a data storage method and device, a storage medium and a processor. The method comprises the following steps: receiving a target data packet, and storing data of a target row in the target data packet in a storage device, wherein the target data packet is a new data packet of one frame and comprises a plurality of rows of data; comparing each row of data except the data of the target row in the target data packet with the data of the target row respectively; and determining and storing the storage mode of each row of data in the storage device based on the comparison result of each row of data. By the method and the device, the problem that the requirement on the storage space is large on the premise that data is not compressed and stored in the related technology is solved.

Description

Data storage method and device, storage medium and processor
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data storage method and apparatus, a storage medium, and a processor.
Background
In the existing display products, in order to achieve better display effect, the central control board has many functions to process data, and the memory device is also integrated into the central control board chip in this case, such as DDR, DDR2, SRAM, etc. Storing a frame of data, two conventional methods are used: compressed storage and uncompressed storage. And (3) compression and storage: the advantage is that the memory device space can be relatively small. The disadvantage is that real data is lost and the recovered data is only near real data. The inherent weakness is reflected on a display layer and is more easily observed by people below some pictures. And (4) non-compressed storage: the advantage is that real data is preserved. The disadvantage is that a larger memory space is required and the corresponding power consumption increases.
Aiming at the problem that the requirement on storage space is large on the premise of not compressing and storing data in the related art, an effective solution is not provided at present.
Disclosure of Invention
The present application mainly aims to provide a data storage method and apparatus, a storage medium, and a processor, so as to solve the problem in the related art that the requirement for a storage space is large on the premise that data is not compressed for storage.
To achieve the above object, according to one aspect of the present application, there is provided a data storage method. The method comprises the following steps: receiving a target data packet, and storing data of a target row in the target data packet in a storage device, wherein the target data packet is a new data packet of one frame, and the target data packet comprises a plurality of rows of data; comparing each row of data except the data of the target row in the target data packet with the data of the target row respectively; and determining and storing the storage mode of each row of data in the storage device based on the comparison result of each row of data.
Further, determining a storage manner of each line of data in the storage device based on the comparison result of each line of data includes: if the comparison result is that the currently compared row data has correlation with the data of the target row, determining a correlation data packet based on the correlation between the currently compared row data and the data of the target row, and storing the correlation data packet in the storage device; if the comparison result is that the currently compared row data does not have correlation with the data of the target row, storing the currently compared row data in the storage device; until the comparison of each row of data in the target data packet except the data of the target row with the data of the target row is completed.
Further, determining a relevance data packet based on the relevance of the currently compared row data to the data of the target row comprises: calculating a gain coefficient and a deviation value between the currently compared line data and the data of the target line; and generating a correlation data packet based on the calculated gain coefficient and the deviation value.
Further, the data of the target row is the data of the first row or the data of the row with the largest data amount in the target data packet.
In order to achieve the above object, according to another aspect of the present application, there is provided a data storage device including: the first storage unit is further used for receiving a target data packet and storing data of a target row in the target data packet in a storage device, wherein the target data packet is a new data packet of one frame, and the target data packet comprises a plurality of rows of data; the comparison unit is further used for comparing each row of data except the data of the target row in the target data packet with the data of the target row; and the second storage unit is also used for determining the storage mode of each row of data in the storage device and storing the data based on the comparison result of each row of data.
Further, the second storage unit includes: the first storage module is further used for determining a correlation data packet based on the correlation between the currently compared line data and the data of the target row when the comparison result is that the currently compared line data and the data of the target row have correlation, and storing the correlation data packet in the storage device; and the second storage module is further configured to, if the comparison result indicates that the currently compared row data does not have correlation with the data of the target row, store the currently compared row data in the storage device until each remaining row data in the target data packet, except for the data of the target row, is compared with the data of the target row.
Further, the first storage module includes: the calculation module is also used for calculating a gain coefficient and a deviation value between the currently compared line data and the data of the target line; and the generating module is also used for generating the correlation data packet based on the calculated gain coefficient and the deviation value.
Further, the data of the target row is the data of the first row or the data of the row with the largest data amount in the target data packet.
In order to achieve the above object, according to another aspect of the present application, there is provided a storage medium characterized in that the storage medium includes a stored program, wherein the program executes the data storage method of any one of the above.
To achieve the above object, according to another aspect of the present application, there is provided a processor, wherein the processor is configured to execute a program, wherein the program executes to execute the data storage method according to any one of the above.
Through the application, the following steps are adopted: receiving a target data packet, and storing data of a target row in the target data packet in a storage device, wherein the target data packet is a new data packet of one frame and comprises a plurality of rows of data; comparing each row of data except the data of the target row in the target data packet with the data of the target row respectively; based on the comparison result of each row of data, the storage mode of each row of data in the storage device is determined and stored, and the problem that the requirement on storage space is large on the premise that the data is not compressed and stored in the related technology is solved. The storage mode of each row of data in the storage device is determined and stored based on the comparison result of each row of data, so that the storage space is saved and the requirement on the storage space is reduced on the premise of not compressing and storing the data.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, are included to provide a further understanding of the application, and the description of the exemplary embodiments of the application are intended to be illustrative of the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flow chart of a data storage method provided according to an embodiment of the present application;
FIG. 2 is a schematic diagram of dividing each row of data in a data storage method provided according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an alternative data storage method provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of an alternative data storage method provided in accordance with an embodiment of the present application; and
FIG. 5 is a schematic diagram of a data storage device provided according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The present invention is described below with reference to preferred implementation steps, and fig. 1 is a flowchart of a data storage method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step S101, receiving a target data packet, and storing data of a target row in the target data packet in a storage device, where the target data packet is a new data packet of a frame, and the target data packet includes multiple rows of data.
When the data receiver receives the data packet, whether the data packet is a new frame of data is judged, and if the data packet is the new frame of data, the data packet is determined to be a target data packet.
Optionally, each row of data in the destination packet is divided into a plurality of portions upon receipt of the destination packet. For example, each row of data is divided into 6 parts as shown in fig. 2.
And step S102, comparing each row of data except the data of the target row in the target data packet with the data of the target row respectively.
If each row of data in the target data packet is divided into a plurality of parts, each part in each remaining row of data except the data of the target row in the target data packet is compared with each part in the data of the target row respectively, and the comparison accuracy is guaranteed.
Optionally, in the data storage method provided in this embodiment of the present application, the data in the target row is the data in the first row or the data in the row with the largest data size in the target data packet.
And step S103, determining and storing the storage mode of each row of data in the storage device based on the comparison result of each row of data.
Optionally, in the data storage method provided in the embodiment of the present application, determining, based on the comparison result of each row of data, a storage manner of each row of data in the storage device includes: if the comparison result is that the currently compared row data has correlation with the target row data, determining a correlation data packet based on the correlation between the currently compared row data and the target row data, and storing the correlation data packet in a storage device; if the comparison result is that the currently compared row data does not have correlation with the data of the target row, storing the currently compared row data in the storage device; until each row of data in the target data packet except the data of the target row is compared with the data of the target row.
The correlation may be that the line data currently being compared is the same as the data of the target line, or that the line data currently being compared is partially the same as the data of the target line.
The above-mentioned correlation data packet can be generated by the following method: calculating a gain coefficient and a deviation value between the currently compared row data and the data of the target row; and generating a correlation data packet based on the calculated gain coefficient and the deviation value.
For example, the data of the target row is the data of the first row. By comparing the first part of the data of the second row with the first part of the data of the first row, it is found that the data of the first part of the data of the second row is 1.5 times as large as that of the first part of the data of the first row, and the gain coefficient is calculated to be 1.5, and the deviation value is 0. The calculated gain factor and offset value are stored as a correlation packet.
As shown in fig. 3 below, the first row of data in the data packet is divided into 6 parts, which are: line1-1, line1-2, line1-3, line1-4, line1-5, line1-6, comparing the first portion of the data of the second Line, line2-1, with Line1-1, and finding that the data of Line2-1 is the same as Line1-1 data but the gray scale is different, the correlation data packet is generated as follows:
1.Header:0xAA 0x55 0x52 0x4F 0x50 0x44
2.The Line1-1Data Address
3.Gain Parameter
4.Offset Value
5.End:0xAA 0x55 0x45 0x4E 0x44
comparing the second part of the data of the second Line, line2-2, with Line1-2, and finding that the data of Line2-1 and the data of Line1-1 are identical, the correlation data packet is generated as follows:
1.Header:0xAA 0x55 0x52 0x4F 0x50 0x44
2.The Line1-2Data Address
3.Gain Parameter=1
4.Offset Value=0
5.End:0xAA 0x55 0x45 0x4E 0x44
comparing the third portion of the data of the second row, line2-3, with Line1-3, and finding that the data of Line2-3 and the data of Line1-3 are completely different, the data of Line2-3 is stored in the memory device.
As shown in fig. 4, in the entire data storage process, when data is received, it is determined whether the data is a new frame of data, if the data is the first line of data in the data, the next line of data in the data is compared with the first line of data, if the data in the next line is consistent with the data in the first line (corresponding to the above mentioned existence of correlation), a gain coefficient and an offset value of the data in the next line and the first line are calculated, a data packet including the gain coefficient and the offset value is stored, and if the data in the next line is inconsistent with the data in the first line, the data in the next line is stored, and it is determined whether each line of data in the new frame of data is judged to be finished. And if the new line data is not continuously finished, comparing the new line data with the data in the first line until each line data in the new frame of data is compared and stored.
Through practical findings, the data volume of 1/6 line with the resolution of 1920x1080 8bpc is as follows: (1920 x3x 8)/6 =7680bit. If the memory device is a 256M bits DDR2, the address requires 32bits. By the data storage method provided by the application, under the condition that the data of the next row is related to the data of the previous row, the data volume is as follows: header 48bits + Address 32bits + gain 8bits + Offset 8bit + End 40bits =136bits. The 7544bits of storage space is saved.
To sum up, in the data storage method provided in the embodiment of the present application, a target data packet is received, and data of a target row in the target data packet is stored in a storage device, where the target data packet is a new data packet of one frame, and the target data packet includes multiple rows of data; comparing each row of data except the data of the target row in the target data packet with the data of the target row respectively; based on the comparison result of each row of data, the storage mode of each row of data in the storage device is determined and stored, and the problem that the requirement on storage space is large on the premise that the data is not compressed and stored in the related technology is solved. The storage mode of each row of data in the storage device is determined and stored based on the comparison result of each row of data, so that the storage space is saved and the requirement on the storage space is reduced on the premise of not compressing and storing the data.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the present application further provides a data storage device, and it should be noted that the data storage device according to the embodiment of the present application may be used to execute the method for storing data provided by the embodiment of the present application. The data storage device provided by the embodiment of the present application is described below.
FIG. 5 is a schematic diagram of a data storage device according to an embodiment of the present application. As shown in fig. 5, the apparatus includes: a first memory cell 501, a comparison cell 502 and a second memory cell 503.
Specifically, the first storage unit 501 is further configured to receive a target data packet, and store data of a target row in the target data packet in a storage device, where the target data packet is a new data packet of one frame, and the target data packet includes multiple rows of data; the comparing unit 502 is further configured to compare each remaining row of data in the target data packet except the data of the target row with the data of the target row; the second storage unit 503 is further configured to determine and store a storage manner of each row of data in the storage device based on a comparison result of each row of data.
To sum up, the data storage apparatus provided in the embodiment of the present application receives a target data packet through the first storage unit 501, and stores data of a target row in the target data packet in a storage device, where the target data packet is a new data packet of one frame, and the target data packet includes multiple rows of data; the comparison unit 502 compares each row of data except the data of the target row in the target data packet with the data of the target row respectively; the second storage unit 503 determines and stores the storage mode of each row of data in the storage device based on the comparison result of each row of data, and solves the problem of large demand on storage space on the premise of not compressing and storing data in the related art. The storage mode of each row of data in the storage device is determined and stored based on the comparison result of each row of data, so that the storage space is saved and the requirement on the storage space is reduced on the premise of not compressing and storing the data.
Optionally, in the data storage device provided in the embodiment of the present application, the second storage unit 503 includes: the first storage module is further used for determining a correlation data packet based on the correlation between the currently compared line data and the data of the target row and storing the correlation data packet in the storage device under the condition that the comparison result is that the currently compared line data is correlated with the data of the target row; and the second storage module is also used for storing the currently compared line data in the storage device until each other line data except the data of the target row in the target data packet is compared with the data of the target row when the comparison result shows that the currently compared line data does not have correlation with the data of the target row.
Optionally, in the data storage device provided in the embodiment of the present application, the first storage module includes: the calculation module is also used for calculating a gain coefficient and a deviation value between the currently compared row data and the data of the target row; and the generating module is also used for generating the correlation data packet based on the calculated gain coefficient and the deviation value.
Optionally, in the data storage device provided in this embodiment of the present application, the data of the target row is the data of the first row or the data of the row with the largest data amount in the target data packet.
The data storage device comprises a processor and a memory, wherein the first storage unit 501, the comparison unit 502, the second storage unit 503 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to one or more, and data is stored by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the data storage method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the data storage method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: receiving a target data packet, and storing data of a target row in the target data packet in a storage device, wherein the target data packet is a new data packet of one frame, and the target data packet comprises a plurality of rows of data; comparing each row of data except the data of the target row in the target data packet with the data of the target row respectively; and determining and storing the storage mode of each row of data in the storage device based on the comparison result of each row of data.
Optionally, determining, based on the comparison result of each row of data, a storage manner of each row of data in the storage device includes: if the comparison result is that the currently compared row data has correlation with the target row data, determining a correlation data packet based on the correlation of the currently compared row data and the target row data, and storing the correlation data packet in the storage device; if the comparison result is that the currently compared row data does not have correlation with the data of the target row, storing the currently compared row data in the storage device; until the comparison of each row of data in the target data packet except the data of the target row with the data of the target row is completed.
Optionally, determining a relevance data packet based on the relevance of the currently compared line data and the data of the target line comprises: calculating a gain coefficient and a deviation value between the currently compared line data and the data of the target line; and generating a correlation data packet based on the calculated gain coefficient and the deviation value.
Optionally, the data of the target row is data of a first row or data of a row with the largest data amount in the target data packet. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application also provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: receiving a target data packet, and storing data of a target row in the target data packet in a storage device, wherein the target data packet is a new data packet of one frame, and the target data packet comprises a plurality of rows of data; comparing each row of data except the data of the target row in the target data packet with the data of the target row respectively; and determining and storing the storage mode of each row of data in the storage device based on the comparison result of each row of data.
Optionally, determining, based on the comparison result of each row of data, a storage manner of each row of data in the storage device includes: if the comparison result is that the currently compared row data has correlation with the data of the target row, determining a correlation data packet based on the correlation between the currently compared row data and the data of the target row, and storing the correlation data packet in the storage device; if the comparison result is that the currently compared row data does not have correlation with the data of the target row, storing the currently compared row data in the storage device; until the comparison of each row of data except the data of the target row in the target data packet with the data of the target row is completed.
Optionally, determining a correlation data packet based on the correlation of the currently compared row data and the data of the target row comprises: calculating a gain coefficient and a deviation value between the currently compared line data and the data of the target line; and generating a correlation data packet based on the calculated gain coefficient and the deviation value.
Optionally, the data of the target row is data of a first row or data of a row with the largest data amount in the target data packet.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of storing data, comprising:
receiving a target data packet, and storing data of a target row in the target data packet in a storage device, wherein the target data packet is a new data packet of one frame, and the target data packet comprises a plurality of rows of data;
comparing each row of data except the data of the target row in the target data packet with the data of the target row respectively;
and determining and storing the storage mode of each row of data in the storage device based on the comparison result of each row of data.
2. The method of claim 1, wherein determining a manner in which each row of data is stored in the memory device based on the comparison of each row of data comprises:
if the comparison result is that the currently compared row data has correlation with the target row data, determining a correlation data packet based on the correlation of the currently compared row data and the target row data, and storing the correlation data packet in the storage device;
if the comparison result is that the currently compared row data does not have correlation with the data of the target row, storing the currently compared row data in the storage device; until the comparison of each row of data in the target data packet except the data of the target row with the data of the target row is completed.
3. The method of claim 2, wherein determining a relevance data packet based on the relevance of the currently compared row of data to the data of the target row comprises:
calculating a gain coefficient and a deviation value between the currently compared line data and the data of the target line;
and generating a correlation data packet based on the calculated gain coefficient and the deviation value.
4. The method of claim 1, wherein the data of the destination row is data of a first row or data of a row with the largest amount of data in the destination packet.
5. A data storage device, comprising:
the first storage unit is further used for receiving a target data packet and storing data of a target row in the target data packet in a storage device, wherein the target data packet is a new data packet of one frame, and the target data packet comprises a plurality of rows of data;
the comparison unit is further used for comparing each row of data except the data of the target row in the target data packet with the data of the target row;
and the second storage unit is also used for determining the storage mode of each row of data in the storage device and storing the data based on the comparison result of each row of data.
6. The apparatus of claim 5, wherein the second storage unit comprises:
the first storage module is further used for determining a correlation data packet based on the correlation between the currently compared line data and the data of the target row when the comparison result is that the currently compared line data and the data of the target row have correlation, and storing the correlation data packet in the storage device;
and the second storage module is further configured to, if the comparison result indicates that the currently compared row data does not have correlation with the data of the target row, store the currently compared row data in the storage device until each remaining row data in the target data packet, except for the data of the target row, is compared with the data of the target row.
7. The apparatus of claim 6, wherein the first storage module comprises:
the calculation module is also used for calculating a gain coefficient and a deviation value between the currently compared line data and the data of the target line;
and the generating module is also used for generating the correlation data packet based on the calculated gain coefficient and the deviation value.
8. The apparatus of claim 5, wherein the data of the target row is data of a first row or data of a row with a largest amount of data in the target data packet.
9. A storage medium characterized by comprising a stored program, wherein the program executes the data storage method of any one of claims 1 to 4.
10. A processor configured to run a program, wherein the program when running performs the data storage method of any one of claims 1 to 4.
CN201910578675.7A 2019-06-28 2019-06-28 Data storage method and device, storage medium and processor Active CN110377262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910578675.7A CN110377262B (en) 2019-06-28 2019-06-28 Data storage method and device, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910578675.7A CN110377262B (en) 2019-06-28 2019-06-28 Data storage method and device, storage medium and processor

Publications (2)

Publication Number Publication Date
CN110377262A CN110377262A (en) 2019-10-25
CN110377262B true CN110377262B (en) 2022-12-09

Family

ID=68251210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910578675.7A Active CN110377262B (en) 2019-06-28 2019-06-28 Data storage method and device, storage medium and processor

Country Status (1)

Country Link
CN (1) CN110377262B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114003525B (en) * 2021-12-30 2022-04-08 中科声龙科技发展(北京)有限公司 Data transmission method, module, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05336511A (en) * 1992-06-03 1993-12-17 Toshiba Corp Moving picture encoding device
CN105321164A (en) * 2014-07-31 2016-02-10 南京理工大学 Infrared small object early-warning system
CN109561128A (en) * 2017-09-27 2019-04-02 北京国双科技有限公司 Data transmission method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05336511A (en) * 1992-06-03 1993-12-17 Toshiba Corp Moving picture encoding device
CN105321164A (en) * 2014-07-31 2016-02-10 南京理工大学 Infrared small object early-warning system
CN109561128A (en) * 2017-09-27 2019-04-02 北京国双科技有限公司 Data transmission method and device

Also Published As

Publication number Publication date
CN110377262A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN110768912B (en) API gateway current limiting method and device
CN106407207B (en) Real-time newly-added data updating method and device
CN107968810B (en) Resource scheduling method, device and system for server cluster
CN102999436B (en) The method and apparatus of dynamic partition information is generated in Nand flash memory
CN113312361B (en) Track query method, device, equipment, storage medium and computer program product
CN108512715A (en) Load pressure test method of service link and related device
CN110908707A (en) Resource packaging method, device, server and storage medium
CN110377262B (en) Data storage method and device, storage medium and processor
CN115033551A (en) Database migration method and device, electronic equipment and storage medium
CN110019347A (en) A kind of data processing method, device and the terminal device of block chain
US20140215035A1 (en) Distribution of application components among devices
US10901972B2 (en) Table partition configuration method, apparatus and system for database system
CN110018986B (en) Abnormal snapshot identification method and device
CN108536759B (en) Sample playback data access method and device
CN115442262B (en) Resource evaluation method and device, electronic equipment and storage medium
CN106557469B (en) Method and device for processing data in data warehouse
CN110874268B (en) Data processing method, device and equipment
CN113553193B (en) Mirror image data auditing and distributing processing method and system
CN112835867B (en) Data preprocessing method and device
CN111290850B (en) Data storage method, device and equipment
CN110321133B (en) H5 application deployment method and device
CN114885404A (en) Method and equipment for reducing call power consumption of smart watch
CN113296973A (en) Message processing method, message reading method, device and readable medium
CN109299421A (en) A kind of data-updating method, server, electric terminal
CN118193338A (en) Method and device for counting number of access users

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant