Image data storage method, system and device
By using address mapping rules to migrate image data from SRAM to PSRAM during JPEG decoding, the problem of discontinuous storage of JPEG decoding data is solved, and the balance between rapid processing and long-term storage is achieved, and data storage efficiency is improved.
Patent Information
- Application Number
- CN202510523430.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-24
- Publication Date
- 2025-07-25
AI Technical Summary
In the prior art, the data addresses output during JPEG decoding are discontinuous, making it difficult for image data to be continuously stored and processed in the stored process.
The image data address is converted from the first storage medium to the second storage medium address by using the preset address mapping rules. Taking advantage of the advantages of different storage media, data is processed quickly and migrated and stored, for example, using SRAM as the first storage medium and PSRAM as the second storage medium.
The balance between rapid processing and long-term storage of data in embedded systems is achieved, and the processing efficiency and space waste of high-speed small-capacity storage media are avoided by the single use of large-capacity low-speed storage media.
Smart Images

Figure CN120378564A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of digital image processing technology, and particularly to a method, a system, and a device for storing image data. Background Art
[0002] With the development of digital image processing technology, the image format (JPEG, Joint Photographic Experts Group), as a widely used image compression standard, is used in various devices to achieve the purpose of efficient storage and writing of image data. However, during the JPEG decoding process, since the encoding algorithm operates based on blocks, the address distribution of the data output by the decoder in memory is often discontinuous, making it difficult to perform continuous storage and processing during subsequent operations.
[0003] In related technologies, the data is directly reorganized after decoding to obtain a continuous storage format, achieving an efficient conversion from decoding to storage. Summary of the Invention
[0004] Based on this, it is necessary to provide a method, a system, and a device for storing image data in view of the above technical problems.
[0005] In a first aspect, this application provides a method for storing image data. The method includes:
[0006] Receiving a first image data address and the image data to be stored;
[0007] The first image data address is an address obtained by converting a second image data address based on a preset address mapping rule. The arrangement order of the first image data address is the same as that of the second image data address, and the first storage medium of the first image data address is different from the second storage medium of the second image data address;
[0008] Writing the image data to be stored into the first storage medium according to the first image data address;
[0009] In the case where the amount of written data is greater than a write threshold, writing the image data to be stored from the first storage medium into and storing it in the second storage medium according to the second image data address.
[0010] In one embodiment, the storage speed of the first storage medium is greater than that of the second storage medium, and the integration degree of the second storage medium is greater than that of the first storage medium.
[0011] In one embodiment, the second image data address includes an address of the storage position of the pixel blocks after segmentation in the second storage medium based on the decoder's segmentation processing of the image based on basic coding units.
[0012] In one embodiment, the write threshold is determined based on the data volume of the image, and the write threshold is used to determine whether to write and store the second image data address from the first storage medium to the second storage medium.
[0013] In one embodiment, the identification process for the storage space of the first storage medium being full includes:
[0014] The first storage medium includes a first storage space and a second storage space, and the capacities of the first storage space and the second storage space are the same;
[0015] When the remaining data volume is greater than or equal to the capacity of the storage space and the written data volume is the same as the capacity of the storage space, it indicates that the first storage space is full;
[0016] When the remaining data volume is less than the storage capacity of the first storage medium and the written data volume is equal to the remaining data volume, it indicates that the storage space of the first storage medium is full, and the remaining data volume includes the difference between the data volume of the image and the written data volume.
[0017] In one embodiment, after the storage space of the first storage medium is full, the method further includes:
[0018] When the first storage space is full, write the data in the first storage space to the second storage medium, and write the image data to be stored to the second storage space;
[0019] When the second storage space is full and the data in the first storage space has not been written completely, pause writing the image data to be stored to the first storage medium. When the first storage space is empty, write the data in the second storage space to the second storage medium, and write the image data to be stored to the first storage space.
[0020] In a second aspect, the present application further provides a storage system for image data, including:
[0021] A bus interface, which is used to monitor the read or write behavior of the bus to the first storage medium. The write behavior includes writing the image data on the bus to the first storage medium, and the read behavior includes reading the image data in the first storage medium to the bus;
[0022] A first storage medium, which includes two identical storage spaces;
[0023] A software configuration interface, which is used to configure controller parameters;
[0024] An address decoding unit, which is configured to convert a second image data address into a first image data address. The first image data address determines the storage location of the image data in the first storage medium, and the second image data address determines the storage location of the image data in the second storage medium;
[0025] A controller, which is configured to monitor the read or write behavior of the bus to the first storage medium. When the amount of written data is greater than the write threshold, the to-be-stored image data is written from the first storage medium to the second storage medium according to the second image data address, and the controller executes the method described in any one of the above.
[0026] In a third aspect, the present application further provides a storage device for image data. The device includes:
[0027] A receiving module, configured to receive a first image data address and the to-be-stored image data;
[0028] The first image data address includes an address converted based on a preset address mapping rule and a second image data address. The arrangement order of the first image data address is the same as that of the second image data address, and the first storage medium of the first image data address is different from the second storage medium of the second image data address;
[0029] A writing module, configured to write the to-be-stored image data into the first storage medium according to the first image data address;
[0030] A storage module, configured to, when the amount of written data is greater than the write threshold, write the to-be-stored image data from the first storage medium to the second storage medium according to the second image data address and store it in the second storage medium.
[0031] In a fourth aspect, the present disclosure further provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the storage method for image data are implemented.
[0032] In a fifth aspect, the present disclosure further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the storage method for image data are implemented.
[0033] In a sixth aspect, the present disclosure further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the storage method for image data are implemented.
[0034] The above storage method for image data has at least the following beneficial effects:
[0035] In the embodiment solution provided by the present disclosure, the first storage medium is usually fast but has limited capacity, and the second storage medium has a large capacity but is relatively slow. By first storing the image data to be stored in the first storage medium according to the first image data address and then transferring it to the second storage medium when the amount of written data exceeds the threshold, the advantages of both storage media can be fully utilized. For example, in an embedded system, SRAM is used as the first storage medium to process data quickly, and PSRAM is used as the second storage medium to store data for a long time, avoiding the low processing efficiency caused by using a single large-capacity but low-speed storage medium and preventing the waste of space of a high-speed small-capacity storage medium.
[0036] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. Brief Description of the Drawings
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or in the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0038] Figure 1 It is an application environment diagram of the storage method of image data in an embodiment;
[0039] Figure 2 It is a schematic flow chart of the storage method of image data in an embodiment;
[0040] Figure 3 It is a schematic diagram of the data structure of a JPEG decoder in an embodiment;
[0041] Figure 4 It is a schematic diagram for judging that SRAM is full in an embodiment;
[0042] Figure 5 It is a schematic diagram of the storage of image data in an embodiment;
[0043] Figure 6 It is a structural block diagram of the storage device of image data in an embodiment;
[0044] Figure 7 It is an internal structure diagram of a computer device in an embodiment;
[0045] Figure 8 It is an internal structure diagram of a server in an embodiment. Detailed Embodiments
[0046] In order to enable those of ordinary skill in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0047] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims. The term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a process, method, product or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, product or device. Without further limitation, there is no exclusion of additional identical or equivalent elements in the process, method, product or device including the said elements. For example, if the terms first, second, etc. are used to denote names, they do not denote any specific order.
[0048] The embodiments of the present disclosure provide a storage system for image data, which can be applied to an application environment as Figure 1 shown. The bus interface is used to monitor the read or write behavior of the bus with respect to the first storage medium. The write behavior includes writing the image data on the bus to the first storage medium, and the read behavior includes reading the image data in the first storage medium onto the bus. The first storage medium includes two identical storage spaces. The software configuration interface is used to configure the controller parameters. The address decoding unit is used to convert the second image data address into the first image data address. The first image data address determines the storage location of the image data in the first storage medium, and the second image data address determines the storage location of the image data in the second storage medium. The controller is used to monitor the read or write behavior of the bus with respect to the first storage medium, and in the case where the amount of written data is greater than the write threshold, write and store the image data to be stored from the first storage medium to the second storage medium according to the second image data address.
[0049] In some embodiments of the present disclosure, as Figure 2 shown, a method for storing image data is provided. In a specific embodiment, the method may include the following steps:
[0050] S202: Receive the first image data address and the image data to be stored; the first image data address includes the address converted based on a preset address mapping rule and the second image data address, the arrangement order of the first image data address is the same as that of the second image data address, and the first storage medium of the first image data address is different from the second storage medium of the second image data address.
[0051] The first image data address indicates the specific location where the image data to be stored will be stored in the first storage medium. The preset address mapping rule can be used to specify how to convert the second image data address into the first image data address to ensure that data can be correctly migrated and stored between the two storage media. The first storage medium and the second storage medium may have different characteristics, such as storage capacity, storage structure, access speed, etc. The arrangement order of the first image data address is the same as that of the second image data address, which can ensure that the relative position relationship of the image data does not change during the process of transferring the image data from the second storage medium to the first storage medium.
[0052] S204: Write the image data to be stored into the first storage medium according to the first image data address.
[0053] Writing the image data to be stored into the first storage medium according to the first image data address can ensure that the image data is organized and stored in the first storage medium according to certain rules, facilitating subsequent data reading and processing.
[0054] S206: When the amount of written data is greater than the write threshold, write and store the image data to be stored from the first storage medium into the second storage medium according to the second image data address.
[0055] The amount of written data can be the image data written into the first storage medium. When the amount of written data is greater than the write threshold, write and store the image data to be stored from the first storage medium into the second storage medium according to the second image data address.
[0056] In the above method for storing image data, the first storage medium is usually fast but has limited capacity, and the second storage medium has a large capacity but relatively slow speed. By first storing the image data to be stored in the first storage medium according to the first image data address and then transferring it to the second storage medium when the amount of written data exceeds the threshold, the advantages of both storage media can be fully utilized. For example, in an embedded system, SRAM (Static Random Access Memory) is used as the first storage medium to quickly process data, and PSRAM (Pseudo static random access memory) is used as the second storage medium to store data for a long time, avoiding the low processing efficiency caused by using a single large-capacity but low-speed storage medium and preventing the waste of space in the high-speed small-capacity storage medium.
[0057] In some embodiments of the present disclosure, the storage speed of the first storage medium is greater than that of the second storage medium, and the integration degree of the second storage medium is greater than that of the first storage medium.
[0058] When processing image data, the fast storage speed allows the first storage medium to quickly cache new data and also quickly provide data during data processing, reducing the waiting time and improving the processing efficiency. SRAM (Static Random Access Memory) can be used as the first storage medium, and its read and write speed is faster than that of general storage media.
[0059] The integration degree indicates the number of storage units that a storage medium can accommodate per unit volume or area. The higher integration degree of the second storage medium means that it can provide a larger storage capacity under the same physical space. In the entire storage system, the first storage medium and the second storage medium cooperate with each other. The first storage medium is responsible for the fast processing and temporary storage of data by virtue of its high-speed characteristics, and the second storage medium relies on its high integration degree to provide a large amount of storage space for long-term data storage, which can be a pseudo-static random access memory (PSRAM).
[0060] In some embodiments of the present disclosure, the second image data address includes an address of the storage position of the pixel block after partitioning in the second storage medium based on the decoder's partitioning process of the image based on the basic coding unit.
[0061] The second image data addresses output by the JPEG decoder are arranged according to the minimum coding unit. When the JPEG decoder initiates a write operation, the address decoder converts the PSRAM address (i.e., the second image data address) into the same arranged SRAM address (the first image data address) according to a preset address mapping rule and writes it into the AXI bus matrix through the AXI bus write channel.
[0062] Figure 3Schematic diagram of the data structure of the JPEG decoder in an embodiment. The picture data output by the JPEG decoder is X columns and Y rows. Due to the block-based coding characteristic of JPEG, the data output mode is A0 - A1 - A2 - … - A7 - … When directly writing these discontinuous addresses in the memory space to the PSRAM, it needs to be restarted X * Y times, resulting in a large amount of time consumption. Using SRAM as the storage medium is not restricted by this. After storing a certain amount of data in the SRAM, a large amount of data can be quickly written to the PSRAM through DMA, reducing the restart times of the PSRAM, thereby improving the overall data writing performance.
[0063] In some embodiments of the present disclosure, the write threshold is determined based on the data volume of the image, and the write threshold is used to determine whether to write and store the second image data address from the first storage medium to the second storage medium.
[0064] The AXI bus matrix writes the first image data address and the image data to be stored to the SRAM (i.e., the first storage medium) through the AXI bus write channel. At the same time, the controller monitors the AXI bus write channel. The controller records the effective write data volume, determines the write threshold according to the decoded picture specification, and generates a control signal when the effective write data volume is equal to the threshold, and starts DMA to write the data from the SRAM (i.e., the first storage medium) to the PSRAM (i.e., the second storage medium).
[0065] In some embodiments of the present disclosure, the identification process that the storage space of the first storage medium is full includes:
[0066] The first storage medium includes a first storage space and a second storage space, and the capacities of the first storage space and the second storage space are the same;
[0067] When the remaining data volume is greater than or equal to the capacity of the storage space and the written data volume is the same as the capacity of the storage space, it indicates that the first storage space is full;
[0068] When the remaining data volume is less than the storage capacity of the first storage medium and the written data volume is equal to the remaining data volume, it indicates that the storage space of the first storage medium is full, and the remaining data volume includes the difference between the data volume of the image and the written data volume.
[0069] Figure 4Schematic diagram for judging full writing of SRAM in an embodiment. The controller monitors the valid data volume written into the SRAM through the write channel of the AXI bus, that is, the written data volume. According to the decoded picture specification, the total JPEG data volume can be obtained. The difference between the two is the remaining data volume. If the remaining data volume is less than the size of the current SRAM, when the current written data volume is equal to the remaining data volume, it is considered that the current SRAM is full. If the remaining data volume is greater than or equal to the size of the current SRAM, when the current written data volume is equal to the SRAM size, it is considered that the current SRAM is full. When it is determined that the SRAM is full, stop writing data to it in time to avoid loss problems caused by data overflow.
[0070] For example, the total SRAM capacity is 48KB, the total JPEG data volume is 100KB, the written data volume is set as M, and the remaining data volume N is 100 - M. As the decoding process progresses, N gradually decreases from 100. When N is greater than 48, every time M = 48, it is regarded as filling one of the two SRAMs, and DMA reading is started and data is written into the other SRAM; when the decoding progresses to N < 48 (in this example, that is, writing 48K to SRAM_A, then writing 48K to SRAM_B, and there are still 4K data left, N = 4 < 48), after writing the remaining 4KB data into the current SRAM, although there is still 44KB space left in this SRAM, it should be regarded as the current SRAM being full and DMA transmission is started.
[0071] In some embodiments of the present disclosure, after the storage space of the first storage medium is full, the method further includes:
[0072] The first storage medium includes a first storage space and a second storage space;
[0073] When the first storage space is full, write the data in the first storage space into the second storage medium, and write the image data to be stored into the second storage space;
[0074] When the second storage space is full and the data writing in the first storage space is not completed, suspend writing the image data to be stored into the first storage medium. When the first storage space is empty, write the data in the second storage space into the second storage medium, and write the image data to be stored into the first storage space.
[0075] The controller determines whether the SRAM is full by monitoring the AXI write channel. If SRAM_A is full, it writes data to SRAM_B and starts the DMA to write the data in SRAM_A. During this process, if SRAM_B is full and SRAM_A has not been emptied, the controller will pause the write operation on the bus until SRAM_A is emptied, then start the DMA to write the data in SRAM_B and write data to SRAM_A.
[0076] Figure 5 It is a schematic diagram of the storage of image data in an embodiment.
[0077] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise clearly stated in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0078] Based on the same inventive concept, the embodiments of the present disclosure also provide an image data storage device for implementing the above-mentioned image data storage method. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in the embodiments of the image data storage device provided below can refer to the limitations on the image data storage method in the above text, and will not be repeated here.
[0079] The device may include a system (including a distributed system), software (application), module, component, server, client, etc. that use the method described in the embodiments of this specification and combine the necessary implementation hardware. Based on the same innovative concept, the devices in one or more embodiments provided by the embodiments of the present disclosure are as described in the following embodiments. Since the solution for the device to solve the problem is similar to the method, the implementation of the specific device in the embodiments of this specification can refer to the implementation of the foregoing method, and the repeated parts will not be described again. As used below, the term "unit" or "module" may be a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0080] In one embodiment, as Figure 6As shown, a storage device 600 for image data is provided. The device may be the aforementioned server, or a module, component, device, unit, etc. integrated in the server. The device 600 may include:
[0081] A receiving module 602, configured to receive a first image data address and the image data to be stored;
[0082] The first image data address includes an address converted based on a preset address mapping rule and a second image data address. The arrangement order of the first image data address is the same as that of the second image data address, and the first storage medium of the first image data address is different from the second storage medium of the second image data address;
[0083] A writing module 604, configured to write the image data to be stored into a first storage medium according to the first image data address;
[0084] A storage module 606, configured to, when the amount of written data is greater than a writing threshold, write and store the image data to be stored from the first storage medium into the second storage medium according to the second image data address.
[0085] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0086] Each module in the above storage device for image data may be implemented in whole or in part by software, hardware, and their combination. The above modules may be embedded in the processor in the computer device in hardware form or independent of the processor, or stored in the memory in the computer device in software form, so as to be called by the processor to execute the operations corresponding to the above modules.
[0087] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as Figure 7 shown. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store image data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a storage method for image data.
[0088] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structural diagram may be as shown in Figure 8 . The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner. The wireless manner can be achieved through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it realizes a method for storing image data. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device may be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse, etc.
[0089] Those skilled in the art can understand that Figure 7 , Figure 8 The structure shown in is only a block diagram of some structures related to the solution of the present disclosure, and does not constitute a limitation on the computer device to which the solution of the present disclosure is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0090] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it realizes the method described in any embodiment of the present disclosure.
[0091] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, it realizes the method described in any embodiment of the present disclosure.
[0092] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above-mentioned embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned various methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memories. Non-volatile memories can include read-only memory (ROM), magnetic tapes, floppy disks, flash memories, optical memories, high-density embedded non-volatile memories, resistive random access memories (ReRAM), magnetoresistive random access memories (MRAM), ferroelectric random access memories (FRAM), phase change memories (PCM), graphene memories, etc. Volatile memories can include random access memory (RAM) or external cache memories, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided by the present disclosure can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided by the present disclosure can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0093] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0094] The above-described embodiments merely represent several implementation manners of the present disclosure. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the patent of the present disclosure. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present disclosure, several modifications and improvements can still be made, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the appended claims.
Claims
1. A method for storing image data, characterized in that, The method includes: Receiving a first image data address and the image data to be stored; The first image data address is an address obtained by converting a second image data address based on a preset address mapping rule. The arrangement order of the first image data address is the same as that of the second image data address, and the first storage medium of the first image data address is different from the second storage medium of the second image data address; Writing the image data to be stored into the first storage medium according to the first image data address; When the amount of written data is greater than the write threshold, writing and storing the image data to be stored from the first storage medium into the second storage medium according to the second image data address.
2. The method according to claim 1, characterized in that, The storage speed of the first storage medium is greater than that of the second storage medium, and the integration degree of the second storage medium is greater than that of the first storage medium.
3. The method according to claim 1, wherein The second image data address includes an address of the storage position of the pixel blocks after block division of the image by the decoder based on the basic coding unit in the second storage medium.
4. The method according to claim 1, wherein The write threshold is determined based on the data amount of the image, and the write threshold is used to judge whether to write and store the second image data address from the first storage medium into the second storage medium.
5. The method according to claim 1, characterized in that, The recognition process for the first storage medium being full includes: The first storage medium includes a first storage space and a second storage space, and the capacities of the first storage space and the second storage space are the same; When the remaining data amount is greater than or equal to the capacity of the storage space and the amount of written data is the same as the capacity of the storage space, it indicates that the first storage space is full; When the remaining data amount is less than the storage amount of the first storage medium and the amount of written data is equal to the remaining data amount, it indicates that the storage space of the first storage medium is full. The remaining data amount includes the difference between the data amount of the image and the amount of written data.
6. The method according to claim 5, characterized in that, After the storage space of the first storage medium is full, the method further includes: When the first storage space is full, writing the data in the first storage space into the second storage medium and writing the image data to be stored into the second storage space; When the second storage space is full and the data in the first storage space has not been written completely, suspending writing the image data to be stored into the first storage medium. When the first storage space is empty, writing the data in the second storage space into the second storage medium and writing the image data to be stored into the first storage space.
7. An image data storage system, characterized in that, Including: A bus interface for monitoring the read or write behavior of the bus to the first storage medium. The write behavior includes writing the image data on the bus into the first storage medium, and the read behavior includes reading the image data in the first storage medium onto the bus; A first storage medium including two identical storage spaces; A software configuration interface for configuring controller parameters; An address decoding unit, which is configured to convert a second image data address into a first image data address. The first image data address determines the storage location of the image data in a first storage medium, and the second image data address determines the storage location of the image data in a second storage medium; A controller, which is configured to monitor the read or write behavior of the bus with respect to the first storage medium. When the amount of written data is greater than a write threshold, the controller writes and stores the image data to be stored from the first storage medium to the second storage medium according to the second image data address. The controller executes the method according to any one of claims 1 to 6.
8. A storage device for image data, characterized in that, The apparatus includes: A receiving module, which is configured to receive a first image data address and image data to be stored; The first image data address includes an address converted based on a preset address mapping rule and a second image data address. The arrangement order of the first image data addresses is the same as the arrangement order of the second image data addresses. The first storage medium corresponding to the first image data address is different from the second storage medium corresponding to the second image data address; A writing module, which is configured to write the image data to be stored into the first storage medium according to the first image data address; A storage module, which is configured to, when the amount of written data is greater than a write threshold, write and store the image data to be stored from the first storage medium to the second storage medium according to the second image data address.
9. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.