CN110990606A - Picture storage method and device, storage medium and electronic equipment - Google Patents

Picture storage method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110990606A
CN110990606A CN201911264310.3A CN201911264310A CN110990606A CN 110990606 A CN110990606 A CN 110990606A CN 201911264310 A CN201911264310 A CN 201911264310A CN 110990606 A CN110990606 A CN 110990606A
Authority
CN
China
Prior art keywords
picture
stored
storage unit
storage
loading
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.)
Granted
Application number
CN201911264310.3A
Other languages
Chinese (zh)
Other versions
CN110990606B (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.)
JRD Communication Shenzhen Ltd
Original Assignee
JRD Communication Shenzhen Ltd
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 JRD Communication Shenzhen Ltd filed Critical JRD Communication Shenzhen Ltd
Priority to CN201911264310.3A priority Critical patent/CN110990606B/en
Publication of CN110990606A publication Critical patent/CN110990606A/en
Application granted granted Critical
Publication of CN110990606B publication Critical patent/CN110990606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses a picture storage method, a picture storage device, a storage medium and electronic equipment, wherein the method is applied to the electronic equipment and comprises the following steps: when a picture storage instruction is received, obtaining a picture to be stored carried in the picture storage instruction; determining a target storage unit which does not store data in the electronic equipment memory; and storing the picture to be stored into a target storage unit through a discrete electric signal. The picture to be stored is stored through the discrete electric signals, and the electric signals can carry more information, so that when the picture to be stored is stored through the discrete electric signals, one storage unit can store more pictures, the storage space of the memory is used to the maximum extent, and the storage efficiency of the memory is improved; meanwhile, each stored picture can be conveniently extracted by storing the discrete electric signals.

Description

Picture storage method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of data storage technologies, and in particular, to a method and an apparatus for storing pictures, a storage medium, and an electronic device.
Background
With the development of the technology, the photographing function is integrated in electronic equipment such as mobile phones and flat panels; in addition, in order to enhance user experience, pictures obtained by photographing are all pictures with higher definition, so that storage occupied for storing the pictures in the electronic device is larger and larger. The electronic device uses a memory to store pictures, and the memory comprises a plurality of storage units which are the minimum storage units of the memory. In the prior art, a storage unit stores a picture (digital information corresponding to the picture). However, the size of one picture is different, and one storage unit stores one picture, which results in more storage resource waste in some storage units. With more and more pictures stored in the memory, the waste of the storage resources is more and more serious, and the storage efficiency of the electronic equipment is greatly reduced.
Disclosure of Invention
The embodiment of the application provides a picture storage method and device, a storage medium and electronic equipment, which can improve the storage efficiency of a memory of the electronic equipment.
The embodiment of the application provides a picture storage method, which is applied to electronic equipment and comprises the following steps:
when a picture storage instruction is received, obtaining a picture to be stored carried in the picture storage instruction;
determining a target storage unit of the electronic equipment memory, which does not store data;
and storing the picture to be stored into the target storage unit through a discrete electric signal.
An embodiment of the present application further provides a picture storage device, which is applied to an electronic device, and includes:
the image acquisition unit is used for acquiring the image to be stored carried in the image storage instruction when the image storage instruction is received;
a storage determination unit for determining a target storage unit of the non-stored data in the electronic device memory;
and the storage unit is used for storing the picture to be stored into the target storage unit through a discrete electric signal.
The embodiment of the application also provides a computer readable storage medium, wherein a plurality of instructions are stored in the computer readable storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the above-mentioned picture storage methods.
An embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used in any one of the steps of the image storage method.
According to the picture storage method, the picture storage device, the storage medium and the electronic equipment, when a picture storage instruction is received, a picture to be stored carried in the picture storage instruction is obtained; determining a target storage unit which does not store data in the electronic equipment memory; and storing the picture to be stored into a target storage unit through a discrete electric signal. The picture to be stored is stored through the discrete electric signals, and the electric signals can carry more information, so that when the picture to be stored is stored through the discrete electric signals, one storage unit can store more pictures, the storage space of the memory is used to the maximum extent, and the storage efficiency of the memory is improved; meanwhile, each stored picture can be conveniently extracted by storing the discrete electric signals.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a picture storage method according to an embodiment of the present application.
Fig. 2 is another schematic flow chart of the picture storage method according to the embodiment of the present application.
Fig. 3 is another schematic flow chart diagram of a picture storage method according to an embodiment of the present application.
Fig. 4 is a schematic diagram illustrating a determination that a picture needs to be restored according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a picture storage device according to an embodiment of the present application.
Fig. 6 is another schematic structural diagram of the image storage device according to the embodiment of the present application.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
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 a part of the embodiments of the present application, and not all of the 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.
The embodiment of the application provides a picture storage method and device, a storage medium and electronic equipment. Any picture storage device provided by the embodiment of the application can be integrated in electronic equipment, and the electronic equipment can comprise a smart phone, a tablet computer and the like. The electronic device includes a memory therein, which can be used to store data, such as pictures.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a picture storage method according to an embodiment of the present disclosure, which is applied to an electronic device. The picture storage method comprises the following steps 101-103. The method comprises the following specific steps:
101, when receiving a picture storage instruction, obtaining a picture to be stored carried in the picture storage instruction.
The picture storage instruction may be triggered in a number of ways. For example, when the user finishes photographing, that is, it is detected that photographing is finished and a picture is to be stored, a picture storage instruction is triggered; when a user browses pictures on a webpage or browses pictures sent by other users on the instant messaging tool, a corresponding button for downloading or storing is clicked, a picture storage instruction is triggered, and the like. The picture storage instruction may also be triggered by voice, for example, receiving a voice related to the user storing the picture to trigger the picture storage instruction. The picture storing instruction may also be triggered by means of a command, e.g. a command to store a picture is executed, to trigger the picture storing instruction. The picture storage instruction may also be triggered in other ways. The picture storage instruction carries a picture to be stored, and the picture storage instruction is used for indicating the electronic equipment to store the picture to be stored into the memory. And when receiving the picture storage instruction, acquiring the picture to be stored carried in the picture storage instruction. The number of pictures to be stored may be one or more.
And 102, determining a target storage unit which does not store data in the electronic equipment memory.
The target storage unit which does not store data comprises the following two conditions: (1) the storage space of the target storage unit does not store any data; (2) the storage space of the target storage unit has stored data, but the storage space of the target storage unit is not completely stored, that is, the storage space still remains in the storage unit, and the data can be stored by the remaining storage space.
Specifically, step 102 includes: detecting whether a storage unit which does not store any data exists in a storage of the electronic equipment; if the storage units which do not store any data exist, determining one storage unit from the storage units which do not store any data as a target storage unit; and if the storage unit which does not store any data does not exist, determining a storage unit from the storage units with the remaining storage space of the memory according to a preset condition to be used as a target storage unit. Wherein, determining a storage unit from the storage units which do not store any data as a target storage unit comprises: determining a first detected storage unit which does not store any data as a target storage unit; or a memory cell which is closest to a memory cell in which data has been stored and in which no data is stored is set as a target memory cell. The preset condition may be in an order from large to small or from small to large of the remaining storage space, or may be another condition. Determining a storage unit from the storage units with the remaining storage space of the memory according to a preset condition, comprising: acquiring the size of the residual storage space in each storage unit of the memory; and acquiring a first storage unit as a target storage unit according to a preset condition. In the scheme, the storage unit which does not store data is preferentially selected as the target storage unit.
The target storage unit may also be determined by other manners, specifically, step 102 includes: detecting whether a storage unit with a residual storage space exists in a storage; if the storage unit exists, determining a storage unit from the storage units with the remaining storage space of the storage according to a preset condition to serve as a target storage unit; if the storage unit with the storage space does not exist, detecting whether a storage unit which does not store data exists or not; and if the storage units which do not store data exist, determining one storage unit from the storage units which do not store any data as a target storage unit. In the scheme, the storage unit with the remaining storage space is preferentially selected as the target storage unit.
It will be appreciated that the target storage unit may be determined in other ways.
103, storing the picture to be stored in the target storage unit through the discrete electric signal.
The picture to be stored is loaded through the discrete electric signals, so that the picture to be stored is stored in the target storage unit. Signals that are not continuous in time but are still continuous in amplitude are referred to herein as discrete signals. Whereas an analog signal is a signal in which the information parameter appears continuous within a given range. Or in a continuous time interval, the characteristic quantity representing the information may be present as a signal of any value at any instant. It should be noted that the picture to be stored is loaded by discrete electrical signals, rather than analog signals, for the following two reasons. On the one hand, because analog signals cannot be used for storage, electronic devices currently recognize digital signals such as 0 and 1, and the current memories actually store information in different combinations of 0 and 1, analog signals cannot be used for storage in electronic devices. On the other hand, each picture is information which independently exists, and the information of each picture is conveniently extracted by a user through accessing the pictures through discrete electric signals. Wherein the discrete electrical signal may be a sinusoidal discrete electrical signal.
Specifically, step 103 includes: loading the picture to be stored on the discrete electric signal to obtain loading information corresponding to the picture to be stored; and storing the loading information corresponding to the picture to be stored into the target storage unit. Before the picture to be stored is loaded to the discrete electric signal, the method further comprises the following steps: a discrete electrical signal is generated. If the discrete electrical signal is a sinusoidal discrete electrical signal, a sinusoidal discrete electrical signal is generated. Wherein the amplitude of the sinusoidal discrete electrical signal is set to [ -W, W ], wherein W >1, and the frequency of the sinusoidal discrete electrical signal is n/2 π. If the information is expected to be loaded quickly, increasing the frequency of the sinusoidal discrete electric signal, namely increasing n; if it is desired to load more information, the amplitude, i.e., W, is increased, which can be considered comprehensively. Whether the picture to be stored is one or multiple pictures, all the pictures to be stored can be loaded by utilizing a discrete electric signal; or one discrete electric signal can be used for loading one picture to be stored, and a plurality of pictures to be stored are loaded, so that a plurality of discrete point signals are correspondingly needed; more than one picture to be stored and the like can also be loaded by using one discrete electric signal, and the method is not limited in particular.
The loading information is information obtained after the picture to be stored is loaded on the discrete electric signal. It is to be understood that the loading information includes the picture to be stored and the discrete electrical signals.
The step of loading the picture to be stored on the discrete electric signal to obtain loading information corresponding to the picture to be stored includes: determining the digital information of the picture to be stored and the length of the digital information; determining the loading period of the picture to be stored according to the length of the digital information; and loading the digital information of the picture to be stored on the discrete electric signal according to the loading period so as to obtain loading information corresponding to the picture to be stored. And storing the corresponding relation between the loading information and the picture to be stored so as to facilitate the user to see the picture to be stored.
And performing analog-to-digital conversion on the picture to be loaded to obtain the digital information of the picture to be stored, namely, the digital information of the picture to be stored, which is represented by 0 and 1, acquiring the length of the digital information of the picture to be stored, determining the loading period of the picture to be stored on the discrete point signal according to the length of the digital information, and loading the digital information of the picture to be stored on the discrete electrical signal according to the loading period to obtain the loading information corresponding to the picture to be stored. That is, the loading information is the information obtained after the digital information of the picture to be stored is loaded on the discrete point signal.
Let the discrete electrical signal be a sinusoidal discrete electrical signal, and the relation of the sinusoidal off-line electrical signal is T (m) [ sin (nm) ]. Wherein T is the loading period of the digital information of the pictures to be stored, the loading period of the pictures to be stored on the sinusoidal discrete electrical signal is determined according to the length of the digital information of the pictures to be stored, m is the number of the pictures to be stored, and n is a positive and negative natural number. Then m corresponds to n, i.e. the loading information corresponding to a plurality of pictures to be stored is T (1) [ sin (n1) ], T (2) [ sin (n2) ], a. When the number of the pictures to be stored is 1, loading digital information of the pictures to be stored on the sinusoidal discrete electrical signal to obtain loading information T (1) [ sin (n1) ] of the pictures to be stored, setting the loading information T (1) [ sin (n1) ] as 1 piece of loading information, and storing the 1 piece of loading information into a target storage unit; when the number of pictures to be stored is 2, loading the digital information of the pictures to be stored on the sinusoidal discrete electrical signal to obtain loading information T (1) [ sin (n1) ] and T (2) [ sin (n2) ] of the pictures to be stored, setting the loading information T (1) [ sin (n1) ] and T (2) [ sin (n2) ] as 2 pieces of loading information, and storing the 2 pieces of loading information into a target storage unit; by analogy, when less than 10 pictures to be stored are taken, the digital information of the pictures to be stored is loaded into the sinusoidal discrete electrical signal T (1) [ sin (n1) ], T (2) [ sin (n2) ], T (m) [ sin (n m) ], and m <10, and the m pieces of loaded information are stored into the target storage unit.
In the prior art, each storage unit stores one picture, the embodiment of the application provides another brand-new storage mode, the loading information corresponding to the picture to be stored is stored through the discrete electric signals, and as the electric signals can carry more information, when the information corresponding to the picture to be stored is stored through the discrete electric signals, one storage unit can store more pictures, the storage space of the memory is used to the maximum extent, and the storage efficiency of the memory is greatly improved. For example, in the embodiment of the present application, the loading information corresponding to m pictures to be stored may be stored in the target storage unit through an offline electrical signal, that is, in the embodiment of the present application, one storage unit stores m pieces of loading information, that is, m pictures to be stored, which greatly reduces the storage of the electronic device and improves the storage efficiency of the memory of the electronic device.
If there are multiple pictures to be stored, if m > is 10, in the process of storing the loading information corresponding to the pictures to be stored in the target storage unit, the method includes: detecting whether the storage space corresponding to the target storage unit is completely stored; if the storage space of the target storage unit is completely stored, detecting whether the loading information corresponding to the plurality of pictures to be stored is completely stored; if not, determining another target storage unit which does not store data in the memory; and storing the loading information corresponding to the picture to be stored which is not stored into another target storage unit. Wherein the other target storage unit in the memory not storing data is determined in the same manner as in the above. According to the scheme, when the storage space of the target storage unit is not enough for storing the loading information corresponding to the plurality of pictures to be stored, another target storage unit which does not store data in the storage is determined, and the loading information corresponding to the pictures to be stored which are not stored is stored in another target storage unit, so that the plurality of pictures to be stored can be accurately stored at one time, and the storage efficiency is improved.
FIG. 2 is another schematic flow chart diagram of a picture storing method applied to an electronic device according to an embodiment of the present application, where the picture storing method includes steps 201 to 206. The method comprises the following specific steps:
201, when receiving a picture storage instruction, obtaining a picture to be stored carried in the picture storage instruction.
202, a target storage location in the electronic device memory where data is not stored is determined.
And 203, storing the picture to be stored into a target storage unit through discrete electric signals.
204, when the picture viewing instruction is received, acquiring the loading information of the picture to be viewed carried by the picture viewing instruction from the target storage unit.
The picture viewing instruction can be triggered in various ways, for example, a user clicks picture related information in an album of the electronic device, such as a picture thumbnail, namely, the picture viewing instruction is triggered; or the voice information is triggered, for example, the voice information of the picture viewed by the user is received, the voice information comprises the identification information of the picture, such as the name and the like, and the picture viewing instruction is triggered; or may trigger the picture viewing instruction by way of a command. The picture viewing instruction carries relevant information of the picture to be viewed, such as information of the ID, the name and the like of the picture to be viewed. And when the picture viewing instruction is received, acquiring the loading information of the picture to be viewed carried by the picture viewing instruction from the target storage unit. Because the corresponding relation between the loading information and the picture to be stored is stored during storage, the loading information of the picture to be checked can be acquired according to the relevant information of the picture to be checked during checking of the picture to be checked.
And 205, performing analog-to-digital conversion on the loading information of the picture to be viewed to obtain analog information of the picture to be viewed.
After the loading information of the picture to be viewed is acquired, because the loading information of the picture to be viewed comprises the digital information of the picture to be viewed, the digital information of the picture to be viewed is subjected to digital-to-analog conversion to obtain the analog information of the picture to be viewed.
And 206, displaying the picture to be checked according to the simulation information of the picture to be checked.
Wherein, steps 201 to 203 are consistent with steps 101 to 103, please refer to the corresponding description of steps 101 to 103, which is not described herein again.
The embodiment further defines how to view the picture to be stored after the loading information corresponding to the picture to be stored is stored in the target storage unit of the memory through the discrete electrical signal, that is, the loading information of the picture to be viewed is subjected to analog-to-digital conversion to obtain the analog information of the picture to be viewed, and the picture to be viewed is displayed through the analog information of the picture to be viewed. Therefore, after the loading information corresponding to the picture to be stored is stored in the memory through the discrete electric signals, the picture stored in the memory can still be displayed, and the normal use is not influenced. Therefore, the storage space can be reduced, normal display can be realized, and the user experience is improved.
Fig. 3 is another schematic flow chart of the picture storing method according to the embodiment of the present application. The picture storage method is applied to electronic equipment and comprises the following steps 301-305:
301, when receiving a picture storage instruction, obtaining a picture to be stored carried in the picture storage instruction, where the picture to be stored includes a picture already stored in the electronic device.
For example, when the user finishes photographing, that is, it is detected that photographing is finished and pictures are to be stored, the electronic device prompts the user to select one or more pictures from the pictures already stored in the electronic device, or the electronic device automatically selects one or more pictures from the stored pictures, that is, it determines one or more pictures to be stored again from the pictures already stored in the electronic device, and if it is detected that it is determined that the one or more pictures to be stored again are successful, a picture storage instruction is triggered. And taking one or more pictures which are determined from pictures stored in the electronic equipment and need to be stored again and the photographed picture as pictures to be stored. In this way, the pictures to be stored include pictures already stored in the electronic device. For example, the user determines one or more pictures to be restored from an album of the electronic device, and if it is detected that the one or more pictures to be restored are successfully determined, the picture storing instruction is triggered. And taking one or more pictures which are determined from pictures stored in the electronic equipment and need to be stored again as pictures to be stored. In this way, the pictures to be stored include pictures already stored in the electronic device. The picture storage instruction may also be triggered in the manner in step 101 or in other manners.
As shown in fig. 4, after selecting a plurality of pictures from the album of the electronic device, if it is detected that the user clicks the "restore" button, it is detected that the plurality of pictures to be restored are successfully determined, and a picture storing instruction is triggered. In fig. 4, there are 9 pictures, wherein the check mark in the lower right corner of the picture indicates that the picture is selected, and 5 pictures are selected in fig. 4. And if the situation that the user clicks a 'restore' button is detected, the picture storage instruction is stored, and the 5 pictures are the pictures to be stored.
It should be noted that the stored pictures of the electronic device are stored in the original manner, that is, one storage unit stores one picture correspondingly, in this case, the storage space of the memory is wasted. Therefore, the stored pictures need to be stored again, that is, the pictures need to be stored in a completely new storage manner provided in the embodiment of the present application, so as to reduce the waste of storage space and improve the storage efficiency of the memory.
A storage unit of pictures already stored in the electronic device is determined 302 as a first storage unit.
Determining a storage unit of a picture which is stored in the electronic equipment, in particular determining a storage unit of a picture which needs to be stored again. The corresponding relation between the picture and the storage unit is stored in the memory, and the storage unit of the picture to be restored can be determined according to the picture to be restored. And taking the storage unit of the picture to be stored again as a first storage unit.
303, determining a target storage unit of the electronic device memory, which does not store data.
304, storing the picture to be stored in the target storage unit through the discrete electric signal.
And 305, deleting the picture to be stored in the first storage unit.
The picture to be stored in the first storage unit is deleted, namely the picture to be stored which is stored in the original mode is deleted, so that the storage unit occupied by the picture to be stored which is stored in the original mode is emptied.
Wherein, the steps 303 to 304 are the same as the steps 102 to 103, please refer to the above description.
The embodiment further defines how to store the pictures stored in the original mode according to the brand-new storage mode provided by the embodiment of the application, so that the storage space of the electronic equipment memory is saved, and the storage efficiency of the electronic equipment memory is improved.
Further, after step 305, the picture storage method further includes: when an image viewing instruction is received, acquiring loading information of an image to be viewed carried by the image viewing instruction from a target storage unit; performing analog-to-digital conversion on the loading information of the picture to be viewed to obtain analog information of the picture to be viewed; and displaying the picture to be viewed according to the simulation information of the picture to be viewed. Please refer to the description of steps 204-206.
According to the method described in the above embodiments, this embodiment will be further described from the perspective of a picture storage device, which may be implemented as a separate entity, or may be integrated in an electronic device, where the electronic device includes a memory, and the memory may store data, such as storing pictures.
Referring to fig. 5, fig. 5 specifically describes that the picture storage apparatus provided in the embodiment of the present application is applied to an electronic device including a memory, and the picture storage apparatus may include: a picture acquisition unit 401, a storage determination unit 402, and a storage unit 403. Wherein:
the picture obtaining unit 401 is configured to, when receiving the picture storing instruction, obtain a picture to be stored carried in the picture storing instruction.
A storage determination unit 402, configured to determine a target storage unit in the electronic device memory where data is not stored.
Specifically, the storage determination unit 402 includes: and the loading unit is used for loading the picture to be stored on the discrete electric signal so as to obtain loading information corresponding to the picture to be stored. And the picture storage unit is used for storing the loading information corresponding to the picture to be stored into the target storage unit.
Further, the storage determination unit 402 further includes: and a generating unit. The generating unit is used for generating discrete electric signals.
The loading unit is specifically used for determining the digital information of the picture to be stored and the length of the digital information; determining the loading period of the picture to be stored according to the length of the digital information; and loading the digital information of the picture to be stored on the discrete electric signal according to the loading period so as to obtain loading information corresponding to the picture to be stored.
The image storage unit is specifically used for detecting whether the storage space corresponding to the target storage unit is completely stored; if the storage space of the target storage unit is completely stored, detecting whether the loading information corresponding to the plurality of pictures to be stored is completely stored; if not, determining another target storage unit which does not store data in the memory; and storing the loading information corresponding to the picture to be stored which is not stored into another target storage unit.
And a storage unit 403, configured to store the picture to be stored in the target storage unit through a discrete electrical signal.
Fig. 6 is a picture storage apparatus provided in an embodiment of the present application, and is applied to an electronic device including a memory, where the picture storage apparatus may include: a picture acquisition unit 401, a storage determination unit 402, a storage unit 403, a load acquisition unit 404, a conversion unit 405, and a display unit 406. Wherein,
and a load obtaining unit 404, configured to obtain, when the picture viewing instruction is received, load information of the picture to be viewed carried by the picture viewing instruction from the target storage unit.
A conversion unit 405, configured to perform analog-to-digital conversion on the loading information of the picture to be viewed to obtain analog information of the picture to be viewed.
And the display unit 406 is configured to display the picture to be viewed according to the simulation information of the picture to be viewed.
An embodiment of the present application further provides a picture storage device, which is applied to an electronic device including a memory, and the picture storage device may include: the image processing apparatus includes a picture acquisition unit, a storage unit determination unit, a storage unit, and a deletion unit. Wherein,
the image acquisition unit is used for acquiring the image to be stored carried in the image storage instruction when the image storage instruction is received, wherein the image to be stored comprises the image stored in the electronic equipment.
A storage unit determination unit configured to determine a storage unit of a picture that has been stored in the electronic device as the first storage unit.
And the storage determining unit is used for determining a target storage unit which is not used for storing data in the electronic equipment storage.
And the storage unit is used for storing the picture to be stored into the target storage unit through the discrete electric signal.
And the deleting unit is used for deleting the picture to be stored in the first storage unit.
Further, the picture storage device further comprises: the device comprises a loading acquisition unit, a conversion unit and a display unit. The loading obtaining unit is used for obtaining loading information of the picture to be viewed carried by the picture viewing instruction from the target storage unit when the picture viewing instruction is received. And the conversion unit is used for carrying out analog-to-digital conversion on the loading information of the picture to be viewed so as to obtain the analog information of the picture to be viewed. And the display unit is used for displaying the picture to be viewed according to the simulation information of the picture to be viewed.
In a specific implementation, each of the modules and/or units may be implemented as an independent entity, or may be implemented as one or several entities by any combination, where the specific implementation of each of the modules and/or units may refer to the foregoing method embodiment, and specific achievable beneficial effects also refer to the beneficial effects in the foregoing method embodiment, which are not described herein again.
In addition, the embodiment of the application also provides an electronic device, and the electronic device can be a smart phone, a tablet computer, a robot and other devices comprising a memory. As shown in fig. 7, the electronic device 500 includes a processor 501, a memory 502. The processor 4501 is electrically connected to the memory 502.
The processor 501 is a control center of the electronic device 500, connects various parts of the whole electronic device by using various interfaces and lines, executes various functions of the electronic device and processes data by running or loading an application program stored in the memory 502 and calling the data stored in the memory 502, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 runs the application programs stored in the memory 502, so as to implement various functions:
when a picture storage instruction is received, obtaining a picture to be stored carried in the picture storage instruction;
determining a target storage unit of the electronic equipment memory, which does not store data;
and storing the picture to be stored into the target storage unit through a discrete electric signal.
The electronic device can implement the steps in any embodiment of the image storage method provided in the embodiment of the present application, and therefore, the beneficial effects that can be achieved by any image storage method provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
Fig. 8 is a block diagram showing a specific structure of an electronic device according to an embodiment of the present invention, where the electronic device may be used to implement the picture storage method provided in the foregoing embodiment. The electronic device 600 may be a mobile phone, PAD, PC, or the like.
The RF circuit 610 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuit 610 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 610 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Microwave Access (Microwave for Wireless), Max-1, and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 620 may be used to store software programs and modules, such as the corresponding program instructions/modules in the above-described embodiments, and the processor 680 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 620. The memory 620 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 620 can further include memory located remotely from the processor 680, which can be connected to the electronic device 600 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 630 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 630 may include a touch sensitive surface 631 as well as other input devices 632. The touch sensitive surface 631, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on the touch sensitive surface 631 or near the touch sensitive surface 631 using any suitable object or attachment such as a finger, a stylus, etc.) on or near the touch sensitive surface 631 and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 631 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch sensitive surface 631 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 630 may include other input devices 632 in addition to the touch-sensitive surface 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 600, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 641, and when the touch-sensitive surface 631 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in the figure, the touch-sensitive surface 631 and the display panel 641 are shown as two separate components to implement input and output functions, in some embodiments, the touch-sensitive surface 631 and the display panel 641 may be integrated to implement input and output functions.
The electronic device 600 may also include at least one sensor 650, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the electronic device 600, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and electronic device 600. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, which is then processed by the audio data output processor 680 and then passed through the RF circuit 610 to be transmitted to, for example, another terminal, or output to the memory 620 for further processing. The audio circuit 660 may also include an earbud jack to provide communication of peripheral headphones with the electronic device 600.
The electronic device 600, via the transport module 670 (e.g., a Wi-Fi module), may assist the user in receiving requests, sending information, etc., which provides the user with wireless broadband internet access. Although the transmission module 670 is shown in the drawing, it is understood that it does not belong to the essential constitution of the electronic device 600 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the electronic device 600, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the electronic device 600 and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby integrally monitoring the electronic device. Optionally, processor 680 may include one or more processing cores; in some embodiments, processor 680 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
Electronic device 600 also includes a power supply 690 (e.g., a battery) that provides power to the various components, and in some embodiments may be logically coupled to processor 680 via a power management system that may perform functions such as managing charging, discharging, and power consumption. The power supply 690 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device 600 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when a picture storage instruction is received, obtaining a picture to be stored carried in the picture storage instruction;
determining a target storage unit of the electronic equipment memory, which does not store data;
and storing the picture to be stored into the target storage unit through a discrete electric signal.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps of any embodiment of the image storage method provided in the embodiment of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any embodiment of the image storage method provided in the embodiment of the present invention, the beneficial effects that any image storage method provided in the embodiment of the present invention can achieve can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above detailed description is provided for a picture storage method, an apparatus, a storage medium, and an electronic device provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A picture storage method is applied to electronic equipment and is characterized by comprising the following steps:
when a picture storage instruction is received, obtaining a picture to be stored carried in the picture storage instruction;
determining a target storage unit of the electronic equipment memory, which does not store data;
and storing the picture to be stored into the target storage unit through a discrete electric signal.
2. The picture storage method according to claim 1, wherein the storing the picture to be stored in the target storage unit by discrete electrical signals comprises:
loading the picture to be stored on a discrete electric signal to obtain loading information corresponding to the picture to be stored;
and storing the loading information corresponding to the picture to be stored into the target storage unit.
3. The method according to claim 2, wherein the loading the picture to be stored on the discrete electrical signal to obtain loading information corresponding to the picture to be stored comprises:
determining the digital information of the picture to be stored and the length of the digital information;
determining the loading period of the picture to be stored according to the length of the digital information;
and loading the digital information of the picture to be stored on the discrete electric signal according to the loading period so as to obtain loading information corresponding to the picture to be stored.
4. The method according to claim 2, wherein the number of the pictures to be stored is multiple, and in the process of storing the loading information corresponding to the pictures to be stored in the target storage unit, the method further comprises:
detecting whether the storage space corresponding to the target storage unit is completely stored;
if the storage space of the target storage unit is completely stored, detecting whether the loading information corresponding to the plurality of pictures to be stored is completely stored;
if not, determining another target storage unit which does not store data in the memory;
and storing the loading information corresponding to the picture to be stored which is not stored into the other target storage unit.
5. The picture storing method according to claim 1, further comprising, after storing the picture to be stored in the target storage unit by discrete electrical signals:
when an image viewing instruction is received, acquiring loading information of an image to be viewed carried by the image viewing instruction from the target storage unit;
performing digital-to-analog conversion on the loading information of the picture to be viewed to obtain analog information of the picture to be viewed;
and displaying the picture to be viewed according to the simulation information of the picture to be viewed.
6. The picture storage method according to claim 1, wherein when the picture to be stored includes a picture already stored in the electronic device, after the obtaining of the picture to be stored carried in the picture storage instruction, the picture storage method further comprises: determining a storage unit of the picture which is stored in the electronic equipment as a first storage unit;
after the picture to be stored is stored in the target storage unit through discrete electric signals, the picture storage method further comprises the following steps:
and deleting the picture to be stored in the first storage unit.
7. A picture storage device applied to electronic equipment is characterized by comprising:
the image acquisition unit is used for acquiring the image to be stored carried in the image storage instruction when the image storage instruction is received;
a storage determination unit for determining a target storage unit of the non-stored data in the electronic device memory;
and the storage unit is used for storing the picture to be stored into the target storage unit through a discrete electric signal.
8. The picture storage device according to claim 7, wherein the storage unit includes:
the loading unit is used for loading the picture to be stored on the discrete electric signal so as to obtain loading information corresponding to the picture to be stored;
and the picture storage unit is used for storing the loading information corresponding to the picture to be stored into the target storage unit.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the picture storage method of any of claims 1 to 6.
10. An electronic device comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the picture storage method according to any one of claims 1 to 6.
CN201911264310.3A 2019-12-11 2019-12-11 Picture storage method and device, storage medium and electronic equipment Active CN110990606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911264310.3A CN110990606B (en) 2019-12-11 2019-12-11 Picture storage method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911264310.3A CN110990606B (en) 2019-12-11 2019-12-11 Picture storage method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110990606A true CN110990606A (en) 2020-04-10
CN110990606B CN110990606B (en) 2023-10-03

Family

ID=70092189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911264310.3A Active CN110990606B (en) 2019-12-11 2019-12-11 Picture storage method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110990606B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0591456A (en) * 1991-09-27 1993-04-09 Toshiba Corp Recording/reproducing device
JP2000069478A (en) * 1998-08-18 2000-03-03 Canon Inc Picture processor, picture processing method and storage medium
WO2011019794A2 (en) * 2009-08-11 2011-02-17 Texas Memory Systems, Inc. Method and apparatus for addressing actual or predicted failures in a flash-based storage system
WO2015032099A1 (en) * 2013-09-09 2015-03-12 宇龙计算机通信科技(深圳)有限公司 Image processing method and terminal
CN105045846A (en) * 2015-06-30 2015-11-11 广东欧珀移动通信有限公司 Image storage method and terminal
CN106294603A (en) * 2016-07-29 2017-01-04 北京奇虎科技有限公司 File memory method and device
US20170168822A1 (en) * 2015-12-15 2017-06-15 International Business Machines Corporation Operation of a multi-slice processor with selective producer instruction types
WO2018076879A1 (en) * 2016-10-25 2018-05-03 广东欧珀移动通信有限公司 Data backup method and apparatus, storage medium, and terminal
CN108093016A (en) * 2016-11-23 2018-05-29 杭州海康威视数字技术股份有限公司 A kind of picture storage method, device and video monitoring system
CN108108384A (en) * 2016-11-25 2018-06-01 中国移动通信有限公司研究院 A kind of date storage method and device
CN108182408A (en) * 2017-12-28 2018-06-19 广东欧珀移动通信有限公司 Image classification method, device, storage medium and electronic equipment
CN108334541A (en) * 2017-12-18 2018-07-27 中兴通讯股份有限公司 A kind of date storage method, device, equipment and storage medium
WO2019085235A1 (en) * 2017-10-31 2019-05-09 歌尔科技有限公司 Picture processing method, and user interface display method and device
CN109815226A (en) * 2018-12-13 2019-05-28 平安科技(深圳)有限公司 Date storage method, device, equipment and storage medium based on block chain
CN109871335A (en) * 2018-12-28 2019-06-11 努比亚技术有限公司 Terminal and its Memory Allocation control method, computer readable storage medium
CN110099212A (en) * 2019-04-25 2019-08-06 努比亚技术有限公司 A kind of photographic method, mobile terminal and computer readable storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0591456A (en) * 1991-09-27 1993-04-09 Toshiba Corp Recording/reproducing device
JP2000069478A (en) * 1998-08-18 2000-03-03 Canon Inc Picture processor, picture processing method and storage medium
WO2011019794A2 (en) * 2009-08-11 2011-02-17 Texas Memory Systems, Inc. Method and apparatus for addressing actual or predicted failures in a flash-based storage system
WO2015032099A1 (en) * 2013-09-09 2015-03-12 宇龙计算机通信科技(深圳)有限公司 Image processing method and terminal
CN105045846A (en) * 2015-06-30 2015-11-11 广东欧珀移动通信有限公司 Image storage method and terminal
US20170168822A1 (en) * 2015-12-15 2017-06-15 International Business Machines Corporation Operation of a multi-slice processor with selective producer instruction types
CN106294603A (en) * 2016-07-29 2017-01-04 北京奇虎科技有限公司 File memory method and device
WO2018076879A1 (en) * 2016-10-25 2018-05-03 广东欧珀移动通信有限公司 Data backup method and apparatus, storage medium, and terminal
CN108093016A (en) * 2016-11-23 2018-05-29 杭州海康威视数字技术股份有限公司 A kind of picture storage method, device and video monitoring system
CN108108384A (en) * 2016-11-25 2018-06-01 中国移动通信有限公司研究院 A kind of date storage method and device
WO2019085235A1 (en) * 2017-10-31 2019-05-09 歌尔科技有限公司 Picture processing method, and user interface display method and device
CN108334541A (en) * 2017-12-18 2018-07-27 中兴通讯股份有限公司 A kind of date storage method, device, equipment and storage medium
CN108182408A (en) * 2017-12-28 2018-06-19 广东欧珀移动通信有限公司 Image classification method, device, storage medium and electronic equipment
CN109815226A (en) * 2018-12-13 2019-05-28 平安科技(深圳)有限公司 Date storage method, device, equipment and storage medium based on block chain
CN109871335A (en) * 2018-12-28 2019-06-11 努比亚技术有限公司 Terminal and its Memory Allocation control method, computer readable storage medium
CN110099212A (en) * 2019-04-25 2019-08-06 努比亚技术有限公司 A kind of photographic method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN110990606B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN110830127B (en) Radio frequency parameter processing method and device, mobile terminal and storage medium
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN112749074A (en) Test case recommendation method and device
CN111355892B (en) Picture shooting method and device, storage medium and electronic terminal
CN111143580B (en) Multimedia data storage method and device, storage medium and electronic equipment
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN110996003B (en) Photographing positioning method and device and mobile terminal
CN111163221B (en) Group address book updating method and device, storage medium and terminal equipment
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN110990606B (en) Picture storage method and device, storage medium and electronic equipment
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN112199050A (en) Storage method, device, storage medium and terminal equipment
CN111538706A (en) Data compression method and device, storage medium and mobile terminal
CN111596827A (en) Icon display control method and device, storage medium and mobile terminal
CN106033358B (en) Batch installation method and device of application programs
CN111966271B (en) Screen panorama screenshot method and device, terminal equipment and storage medium
CN109656438B (en) Desktop wallpaper preview method and device, mobile terminal and storage medium
CN111026488B (en) Communication data saving method, device, terminal equipment and storage medium
CN111917982B (en) Camera selection method and device, storage medium and mobile terminal
CN109995441B (en) Communication information processing method, device and storage medium
CN114189436B (en) Multi-cluster configuration deployment method and device, electronic equipment and storage medium
CN111221782B (en) File searching method and device, storage medium and mobile terminal
CN112468725B (en) Photo shooting method and device, storage medium and mobile terminal
CN109661023B (en) Mobile terminal control method and device, mobile terminal and storage medium

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